예제 #1
0
 public static int CeilingLogBaseTwo(Int128 a)
 {
     return(IntegerMath.IsPowerOfTwo(a) ? a.GetBitLength() - 1 : a.GetBitLength());
 }
예제 #2
0
 public static int FloorLogBaseTwo(Int128 a)
 {
     return(a.GetBitLength() - 1);
 }