Searched refs:logFloor (Results 1 – 7 of 7) sorted by relevance
/external/guava/guava-gwt/src-super/com/google/common/math/super/com/google/common/math/ |
D | BigIntegerMath.java | 69 int logFloor = x.bitLength() - 1; in log2() local 75 return logFloor; in log2() 79 return isPowerOfTwo(x) ? logFloor : logFloor + 1; in log2() 84 if (logFloor < SQRT2_PRECOMPUTE_THRESHOLD) { in log2() 86 SQRT2_PRECOMPUTE_THRESHOLD - logFloor); in log2() 88 return logFloor; in log2() 90 return logFloor + 1; in log2() 101 return (logX2Floor < 2 * logFloor + 1) ? logFloor : logFloor + 1; in log2()
|
D | LongMath.java | 101 int logFloor = (Long.SIZE - 1) - leadingZeros; in log2() local 102 return logFloor + lessThanBranchFree(cmp, x); in log2()
|
D | IntMath.java | 105 int logFloor = (Integer.SIZE - 1) - leadingZeros; in log2() local 106 return logFloor + lessThanBranchFree(cmp, x); in log2()
|
/external/guava/guava/src/com/google/common/math/ |
D | BigIntegerMath.java | 71 int logFloor = x.bitLength() - 1; in log2() local 77 return logFloor; in log2() 81 return isPowerOfTwo(x) ? logFloor : logFloor + 1; in log2() 86 if (logFloor < SQRT2_PRECOMPUTE_THRESHOLD) { in log2() 88 SQRT2_PRECOMPUTE_THRESHOLD - logFloor); in log2() 90 return logFloor; in log2() 92 return logFloor + 1; in log2() 103 return (logX2Floor < 2 * logFloor + 1) ? logFloor : logFloor + 1; in log2()
|
D | IntMath.java | 108 int logFloor = (Integer.SIZE - 1) - leadingZeros; in log2() local 109 return logFloor + lessThanBranchFree(cmp, x); in log2() 130 int logFloor = log10Floor(x); in log10() local 131 int floorPow = powersOf10[logFloor]; in log10() 138 return logFloor; in log10() 141 return logFloor + lessThanBranchFree(floorPow, x); in log10() 146 return logFloor + lessThanBranchFree(halfPowersOf10[logFloor], x); in log10()
|
D | LongMath.java | 106 int logFloor = (Long.SIZE - 1) - leadingZeros; in log2() local 107 return logFloor + lessThanBranchFree(cmp, x); in log2() 129 int logFloor = log10Floor(x); in log10() local 130 long floorPow = powersOf10[logFloor]; in log10() 137 return logFloor; in log10() 140 return logFloor + lessThanBranchFree(floorPow, x); in log10() 145 return logFloor + lessThanBranchFree(halfPowersOf10[logFloor], x); in log10()
|
/external/guava/guava-tests/test/com/google/common/math/ |
D | BigIntegerMathTest.java | 200 int logFloor = BigIntegerMath.log10(x, FLOOR); in testLog10Exact() local 201 boolean expectSuccess = TEN.pow(logFloor).equals(x); in testLog10Exact() 203 assertEquals(logFloor, BigIntegerMath.log10(x, UNNECESSARY)); in testLog10Exact()
|