Home
last modified time | relevance | path

Searched refs:checkRoundingUnnecessary (Results 1 – 9 of 9) sorted by relevance

/external/guava/guava/src/com/google/common/math/
DIntMath.java24 import static com.google.common.math.MathPreconditions.checkRoundingUnnecessary;
91 checkRoundingUnnecessary(isPowerOfTwo(x)); in log2()
134 checkRoundingUnnecessary(x == floorPow); in log10()
236 checkRoundingUnnecessary(sqrtFloor * sqrtFloor == x); // fall through in sqrt()
301 checkRoundingUnnecessary(rem == 0); in divide()
DLongMath.java24 import static com.google.common.math.MathPreconditions.checkRoundingUnnecessary;
89 checkRoundingUnnecessary(isPowerOfTwo(x)); in log2()
133 checkRoundingUnnecessary(x == floorPow); in log10()
302 checkRoundingUnnecessary(guessSquared == x); in sqrt()
367 checkRoundingUnnecessary(rem == 0); in divide()
DBigIntegerMath.java23 import static com.google.common.math.MathPreconditions.checkRoundingUnnecessary;
74 checkRoundingUnnecessary(isPowerOfTwo(x)); // fall through in log2()
173 checkRoundingUnnecessary(floorCmp == 0); in log10()
215 checkRoundingUnnecessary(sqrtFloor.pow(2).equals(x)); // fall through in sqrt()
DDoubleMath.java28 import static com.google.common.math.MathPreconditions.checkRoundingUnnecessary;
63 checkRoundingUnnecessary(isMathematicalInteger(x)); in roundIntermediate()
244 checkRoundingUnnecessary(isPowerOfTwo(x)); in log2()
DMathPreconditions.java79 static void checkRoundingUnnecessary(boolean condition) { in checkRoundingUnnecessary() method in MathPreconditions
/external/guava/guava-gwt/src-super/com/google/common/math/super/com/google/common/math/
DIntMath.java23 import static com.google.common.math.MathPreconditions.checkRoundingUnnecessary;
88 checkRoundingUnnecessary(isPowerOfTwo(x)); in log2()
180 checkRoundingUnnecessary(rem == 0); in divide()
DLongMath.java22 import static com.google.common.math.MathPreconditions.checkRoundingUnnecessary;
84 checkRoundingUnnecessary(isPowerOfTwo(x)); in log2()
DBigIntegerMath.java23 import static com.google.common.math.MathPreconditions.checkRoundingUnnecessary;
72 checkRoundingUnnecessary(isPowerOfTwo(x)); // fall through in log2()
/external/guava/guava-tests/test/com/google/common/math/
DMathPreconditionsTest.java237 MathPreconditions.checkRoundingUnnecessary(true); in testCheckRoundingUnnnecessary_success()
242 MathPreconditions.checkRoundingUnnecessary(false); in testCheckRoundingUnnecessary_failure()