Searched refs:checkRoundingUnnecessary (Results 1 – 9 of 9) sorted by relevance
24 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()
24 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()
23 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()
28 import static com.google.common.math.MathPreconditions.checkRoundingUnnecessary;63 checkRoundingUnnecessary(isMathematicalInteger(x)); in roundIntermediate()244 checkRoundingUnnecessary(isPowerOfTwo(x)); in log2()
79 static void checkRoundingUnnecessary(boolean condition) { in checkRoundingUnnecessary() method in MathPreconditions
23 import static com.google.common.math.MathPreconditions.checkRoundingUnnecessary;88 checkRoundingUnnecessary(isPowerOfTwo(x)); in log2()180 checkRoundingUnnecessary(rem == 0); in divide()
22 import static com.google.common.math.MathPreconditions.checkRoundingUnnecessary;84 checkRoundingUnnecessary(isPowerOfTwo(x)); in log2()
23 import static com.google.common.math.MathPreconditions.checkRoundingUnnecessary;72 checkRoundingUnnecessary(isPowerOfTwo(x)); // fall through in log2()
237 MathPreconditions.checkRoundingUnnecessary(true); in testCheckRoundingUnnnecessary_success()242 MathPreconditions.checkRoundingUnnecessary(false); in testCheckRoundingUnnecessary_failure()