Lines Matching refs:log2
67 public static int log2(BigInteger x, RoundingMode mode) {
94 * Since sqrt(2) is irrational, log2(x) - logFloor cannot be exactly 0.5
233 int log2 = log2(x, FLOOR);
234 if(log2 < DoubleUtils.MAX_DOUBLE_EXPONENT) {
237 int shift = (log2 - DoubleUtils.SIGNIFICAND_BITS) & ~1; // even!
293 int approxSize = IntMath.divide(n * IntMath.log2(n, CEILING), Long.SIZE, CEILING);
303 // Use floor(log2(num)) + 1 to prevent overflow of multiplication.
304 int productBits = LongMath.log2(product, FLOOR) + 1;
305 int bits = LongMath.log2(startingNumber, FLOOR) + 1;
311 // Check to see if the floor(log2(num)) + 1 has changed.
320 // Adjust floor(log2(num)) + 1.
329 productBits = LongMath.log2(product, FLOOR) + 1;