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