public void Log2_WithLookup() { for (var i = 1.0; i < uint.MaxValue; i *= 1.3) { var n = (ulong)i; Assert.Equal((uint)Math.Log(n, 2.0), AltMath.Log2(n)); } }
public uint Log2_AltMath_WithLookup() => AltMath.Log2(123);