Home
last modified time | relevance | path

Searched refs:sqrtFloor (Results 1 – 11 of 11) sorted by relevance

/external/guava/guava/src/com/google/common/math/
DIntMath.java233 int sqrtFloor = sqrtFloor(x); in sqrt() local
236 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
DBigIntegerMath.java212 BigInteger sqrtFloor = sqrtFloor(x); in sqrt() local
215 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
DLongMath.java319 long sqrtFloor = guess - ((x < guessSquared) ? 1 : 0); in sqrt() local
320 long halfSquare = sqrtFloor * sqrtFloor + sqrtFloor; in sqrt()
332 return sqrtFloor + lessThanBranchFree(halfSquare, x); in sqrt()
/external/guava/guava-tests/test/com/google/common/math/
DLongMathTest.java301 long sqrtFloor = LongMath.sqrt(x, FLOOR); in testSqrtExactMatchesFloorOrThrows() local
303 boolean isPerfectSquare = (sqrtFloor * sqrtFloor == x); in testSqrtExactMatchesFloorOrThrows()
305 assertEquals(sqrtFloor, LongMath.sqrt(x, UNNECESSARY)); in testSqrtExactMatchesFloorOrThrows()
/external/guava/guava-gwt/src-super/com/google/common/math/super/com/google/common/math/
DIntMath.java143 private static int sqrtFloor(int x) { in sqrtFloor() method in IntMath
/external/owasp/sanitizer/distrib/lib/
Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/external/owasp/sanitizer/lib/guava-libraries/
Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/external/guice/lib/
Dguava-16.0.1.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...
/external/dagger2/lib/
Dauto-value-1.0.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
Dgoogle-java-format-0.1-20151017.042846-2.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/external/robolectric/v3/runtime/
Dandroid-all-4.4_r1-robolectric-1.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...