Searched refs:sqrtFloor (Results 1 – 11 of 11) sorted by relevance
233 int sqrtFloor = sqrtFloor(x); in sqrt() local236 checkRoundingUnnecessary(sqrtFloor * sqrtFloor == x); // fall through in sqrt()239 return sqrtFloor; in sqrt()242 return sqrtFloor + lessThanBranchFree(sqrtFloor * sqrtFloor, x); in sqrt()246 int halfSquare = sqrtFloor * sqrtFloor + sqrtFloor; in sqrt()258 return sqrtFloor + lessThanBranchFree(halfSquare, x); in sqrt()264 private static int sqrtFloor(int x) { in sqrtFloor() method in IntMath
212 BigInteger sqrtFloor = sqrtFloor(x); in sqrt() local215 checkRoundingUnnecessary(sqrtFloor.pow(2).equals(x)); // fall through in sqrt()218 return sqrtFloor; in sqrt()221 int sqrtFloorInt = sqrtFloor.intValue(); in sqrt()224 && sqrtFloor.pow(2).equals(x); // slow exact check in sqrt()225 return sqrtFloorIsExact ? sqrtFloor : sqrtFloor.add(BigInteger.ONE); in sqrt()229 BigInteger halfSquare = sqrtFloor.pow(2).add(sqrtFloor); in sqrt()235 return (halfSquare.compareTo(x) >= 0) ? sqrtFloor : sqrtFloor.add(BigInteger.ONE); in sqrt()242 private static BigInteger sqrtFloor(BigInteger x) { in sqrtFloor() method in BigIntegerMath
319 long sqrtFloor = guess - ((x < guessSquared) ? 1 : 0); in sqrt() local320 long halfSquare = sqrtFloor * sqrtFloor + sqrtFloor; in sqrt()332 return sqrtFloor + lessThanBranchFree(halfSquare, x); in sqrt()
301 long sqrtFloor = LongMath.sqrt(x, FLOOR); in testSqrtExactMatchesFloorOrThrows() local303 boolean isPerfectSquare = (sqrtFloor * sqrtFloor == x); in testSqrtExactMatchesFloorOrThrows()305 assertEquals(sqrtFloor, LongMath.sqrt(x, UNNECESSARY)); in testSqrtExactMatchesFloorOrThrows()
143 private static int sqrtFloor(int x) { in sqrtFloor() method in IntMath
META-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
META-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...