Home
last modified time | relevance | path

Searched refs:roundToDouble (Results 1 – 25 of 27) sorted by relevance

12

/external/guava/android/guava/src/com/google/common/math/
DBigDecimalMath.java52 public static double roundToDouble(BigDecimal x, RoundingMode mode) { in roundToDouble() method in BigDecimalMath
53 return BigDecimalToDoubleRounder.INSTANCE.roundToDouble(x, mode); in roundToDouble()
DToDoubleRounder.java45 final double roundToDouble(X x, RoundingMode mode) { in roundToDouble() method in ToDoubleRounder
DBigIntegerMath.java333 public static double roundToDouble(BigInteger x, RoundingMode mode) { in roundToDouble() method in BigIntegerMath
334 return BigIntegerToDoubleRounder.INSTANCE.roundToDouble(x, mode); in roundToDouble()
DLongMath.java1246 public static double roundToDouble(long x, RoundingMode mode) { in roundToDouble() method
/external/guava/guava/src/com/google/common/math/
DBigDecimalMath.java52 public static double roundToDouble(BigDecimal x, RoundingMode mode) { in roundToDouble() method in BigDecimalMath
53 return BigDecimalToDoubleRounder.INSTANCE.roundToDouble(x, mode); in roundToDouble()
DToDoubleRounder.java45 final double roundToDouble(X x, RoundingMode mode) { in roundToDouble() method in ToDoubleRounder
DBigIntegerMath.java333 public static double roundToDouble(BigInteger x, RoundingMode mode) { in roundToDouble() method in BigIntegerMath
334 return BigIntegerToDoubleRounder.INSTANCE.roundToDouble(x, mode); in roundToDouble()
DLongMath.java1246 public static double roundToDouble(long x, RoundingMode mode) { in roundToDouble() method
/external/guava/guava-tests/benchmark/com/google/common/math/
DBigIntegerMathRoundingBenchmark.java93 long roundToDouble(int reps) { in roundToDouble() method in BigIntegerMathRoundingBenchmark
97 tmp += Double.doubleToRawLongBits(BigIntegerMath.roundToDouble(nonzero1[j], mode)); in roundToDouble()
/external/guava/android/guava-tests/benchmark/com/google/common/math/
DBigIntegerMathRoundingBenchmark.java93 long roundToDouble(int reps) { in roundToDouble() method in BigIntegerMathRoundingBenchmark
97 tmp += Double.doubleToRawLongBits(BigIntegerMath.roundToDouble(nonzero1[j], mode)); in roundToDouble()
/external/guava/android/guava-tests/test/com/google/common/math/
DLongMathTest.java994 assertThat(LongMath.roundToDouble(candidate, roundingMode)) in testRoundToDoubleAgainstBigInteger()
995 .isEqualTo(BigIntegerMath.roundToDouble(BigInteger.valueOf(candidate), roundingMode)); in testRoundToDoubleAgainstBigInteger()
1005 expectedDouble = BigIntegerMath.roundToDouble(BigInteger.valueOf(candidate), UNNECESSARY); in testRoundToDoubleAgainstBigIntegerUnnecessary()
1011 assertThat(LongMath.roundToDouble(candidate, UNNECESSARY)).isEqualTo(expectedDouble); in testRoundToDoubleAgainstBigIntegerUnnecessary()
1014 LongMath.roundToDouble(candidate, UNNECESSARY); in testRoundToDoubleAgainstBigIntegerUnnecessary()
DBigDecimalMathTest.java71 .that(BigDecimalMath.roundToDouble(input, mode)) in test()
80 BigDecimalMath.roundToDouble(input, UNNECESSARY); in test()
DBigIntegerMathTest.java583 .that(BigIntegerMath.roundToDouble(input, mode))
592 BigIntegerMath.roundToDouble(input, UNNECESSARY);
/external/llvm/include/llvm/ADT/
DAPInt.h1464 double roundToDouble(bool isSigned) const;
1467 double roundToDouble() const { return roundToDouble(false); } in roundToDouble() function
1470 double signedRoundToDouble() const { return roundToDouble(true); } in signedRoundToDouble()
1821 return APIVal.roundToDouble(); in RoundAPIntToDouble()
/external/guava/guava-tests/test/com/google/common/math/
DLongMathTest.java994 assertThat(LongMath.roundToDouble(candidate, roundingMode)) in testRoundToDoubleAgainstBigInteger()
995 .isEqualTo(BigIntegerMath.roundToDouble(BigInteger.valueOf(candidate), roundingMode)); in testRoundToDoubleAgainstBigInteger()
1005 expectedDouble = BigIntegerMath.roundToDouble(BigInteger.valueOf(candidate), UNNECESSARY); in testRoundToDoubleAgainstBigIntegerUnnecessary()
1011 assertThat(LongMath.roundToDouble(candidate, UNNECESSARY)).isEqualTo(expectedDouble); in testRoundToDoubleAgainstBigIntegerUnnecessary()
1014 LongMath.roundToDouble(candidate, UNNECESSARY); in testRoundToDoubleAgainstBigIntegerUnnecessary()
DBigDecimalMathTest.java71 .that(BigDecimalMath.roundToDouble(input, mode)) in test()
80 BigDecimalMath.roundToDouble(input, UNNECESSARY); in test()
DBigIntegerMathTest.java583 .that(BigIntegerMath.roundToDouble(input, mode))
592 BigIntegerMath.roundToDouble(input, UNNECESSARY);
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DAPInt.h1440 double roundToDouble(bool isSigned) const;
1443 double roundToDouble() const { return roundToDouble(false); } in roundToDouble() function
1446 double signedRoundToDouble() const { return roundToDouble(true); } in signedRoundToDouble()
1848 return APIVal.roundToDouble(); in RoundAPIntToDouble()
/external/llvm-project/llvm/include/llvm/ADT/
DAPInt.h1769 double roundToDouble(bool isSigned) const;
1772 double roundToDouble() const { return roundToDouble(false); }
1775 double signedRoundToDouble() const { return roundToDouble(true); }
2204 return APIVal.roundToDouble();
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DAPInt.h1758 double roundToDouble(bool isSigned) const;
1761 double roundToDouble() const { return roundToDouble(false); } in roundToDouble() function
1764 double signedRoundToDouble() const { return roundToDouble(true); } in signedRoundToDouble()
2193 return APIVal.roundToDouble(); in RoundAPIntToDouble()
/external/llvm-project/llvm/lib/ExecutionEngine/
DExecutionEngine.cpp683 GV.FloatVal = float(GV.IntVal.roundToDouble()); in getConstantValue()
685 GV.DoubleVal = GV.IntVal.roundToDouble(); in getConstantValue()
/external/llvm/lib/ExecutionEngine/
DExecutionEngine.cpp687 GV.FloatVal = float(GV.IntVal.roundToDouble()); in getConstantValue()
689 GV.DoubleVal = GV.IntVal.roundToDouble(); in getConstantValue()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/
DExecutionEngine.cpp689 GV.FloatVal = float(GV.IntVal.roundToDouble()); in getConstantValue()
691 GV.DoubleVal = GV.IntVal.roundToDouble(); in getConstantValue()
/external/swiftshader/third_party/llvm-subzero/lib/Support/
DAPInt.cpp855 double APInt::roundToDouble(bool isSigned) const { in roundToDouble() function in APInt
/external/llvm/lib/Support/
DAPInt.cpp877 double APInt::roundToDouble(bool isSigned) const { in roundToDouble() function in APInt

12