public void CountTrailingZerosTest2(UInt64 a, UInt64 b) { ReadOnlySpan <UInt64> s = stackalloc UInt64[] { a, b }; Assert.IsTrue(BinaryNumerals.CountTrailingZeros(s) >= BinaryNumerals.CountTrailingZeros(s[1..]));
public void CountTrailingZerosTest2() { ReadOnlySpan <UInt64> s = default; Assert.IsTrue(BinaryNumerals.CountTrailingZeros(s) == 0); }
public void CountTrailingZerosTest2(UInt64 a) { ReadOnlySpan <UInt64> s = stackalloc UInt64[] { a }; Assert.IsTrue(BinaryNumerals.CountTrailingZeros(s) == BinaryNumerals.CountTrailingZeros(a)); }
public void CountTrailingZerosTest1(ReadOnlySpan <UInt64> aa) { Assert.IsTrue(BinaryNumerals.CountTrailingZeros(aa) >= 0); Assert.IsTrue(BinaryNumerals.CountTrailingZeros(aa) <= 64 * aa.Length); }