Exemple #1
0
        public void CountTrailingZerosTest2(UInt64 a, UInt64 b)
        {
            ReadOnlySpan <UInt64> s = stackalloc UInt64[] { a, b };

            Assert.IsTrue(BinaryNumerals.CountTrailingZeros(s) >= BinaryNumerals.CountTrailingZeros(s[1..]));
Exemple #2
0
        public void CountTrailingZerosTest2()
        {
            ReadOnlySpan <UInt64> s = default;

            Assert.IsTrue(BinaryNumerals.CountTrailingZeros(s) == 0);
        }
Exemple #3
0
        public void CountTrailingZerosTest2(UInt64 a)
        {
            ReadOnlySpan <UInt64> s = stackalloc UInt64[] { a };

            Assert.IsTrue(BinaryNumerals.CountTrailingZeros(s) == BinaryNumerals.CountTrailingZeros(a));
        }
Exemple #4
0
 public void CountTrailingZerosTest1(ReadOnlySpan <UInt64> aa)
 {
     Assert.IsTrue(BinaryNumerals.CountTrailingZeros(aa) >= 0);
     Assert.IsTrue(BinaryNumerals.CountTrailingZeros(aa) <= 64 * aa.Length);
 }