Home
last modified time | relevance | path

Searched refs:DoubleUtils (Results 1 – 4 of 4) sorted by relevance

/external/guava/guava-tests/test/com/google/common/math/
DDoubleUtilsTest.java37 assertEquals(FpUtils.nextDown(d), DoubleUtils.nextDown(d)); in testNextDown()
43 assertEquals(b.doubleValue(), DoubleUtils.bigToDouble(b)); in testBigToDouble()
48 assertEquals(0.0, DoubleUtils.ensureNonNegative(0.0)); in testEnsureNonNegative()
50 assertEquals(positiveValue, DoubleUtils.ensureNonNegative(positiveValue)); in testEnsureNonNegative()
51 assertEquals(0.0, DoubleUtils.ensureNonNegative(-positiveValue)); in testEnsureNonNegative()
53 assertEquals(Double.POSITIVE_INFINITY, DoubleUtils.ensureNonNegative(Double.POSITIVE_INFINITY)); in testEnsureNonNegative()
54 assertEquals(0.0, DoubleUtils.ensureNonNegative(Double.NEGATIVE_INFINITY)); in testEnsureNonNegative()
56 DoubleUtils.ensureNonNegative(Double.NaN); in testEnsureNonNegative()
/external/guava/guava/src/com/google/common/math/
DDoubleMath.java20 import static com.google.common.math.DoubleUtils.IMPLICIT_BIT;
21 import static com.google.common.math.DoubleUtils.SIGNIFICAND_BITS;
22 import static com.google.common.math.DoubleUtils.getSignificand;
23 import static com.google.common.math.DoubleUtils.isFinite;
24 import static com.google.common.math.DoubleUtils.isNormal;
25 import static com.google.common.math.DoubleUtils.scaleNormalize;
DDoubleUtils.java35 final class DoubleUtils { class
36 private DoubleUtils() { in DoubleUtils() method in DoubleUtils
DBigIntegerMath.java267 int shift = (log2 - DoubleUtils.SIGNIFICAND_BITS) & ~1; // even! in sqrtFloor()
287 return DoubleMath.roundToBigInteger(Math.sqrt(DoubleUtils.bigToDouble(x)), HALF_EVEN); in sqrtApproxWithDoubles()