Searched refs:DoubleUtils (Results 1 – 4 of 4) sorted by relevance
37 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()
20 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;
35 final class DoubleUtils { class36 private DoubleUtils() { in DoubleUtils() method in DoubleUtils
267 int shift = (log2 - DoubleUtils.SIGNIFICAND_BITS) & ~1; // even! in sqrtFloor()287 return DoubleMath.roundToBigInteger(Math.sqrt(DoubleUtils.bigToDouble(x)), HALF_EVEN); in sqrtApproxWithDoubles()