/guava/android/guava/src/com/google/common/math/BigIntegerMath.java
int logFloor = x.bitLength( ) - 1;int logX2Floor = x2.bitLength( ) - 1;
int logX2Floor = x2.bitLength ( ) - 1;
return logFloor; } else { return logFloor + 1; } } BigInteger x2 = x.pow(2); <extra_id_0> return (logX2Floor < 2 * logFloor + 1) ? logFloor : logFloor + 1; default: throw new AssertionError(); } } @VisibleForTesting static final int SQRT2_PRECOMPUTE_THRESHOLD = 256;