Пример #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);
 }