Exemplo n.º 1
0
 public static int CeilingLogBaseTwo(UInt128 a)
 {
     return(IntegerMath.IsPowerOfTwo(a) ? a.GetBitLength() - 1 : a.GetBitLength());
 }