/external/guava/guava-tests/test/com/google/common/math/ |
D | BigDecimalMathTest.java | 19 import static java.math.RoundingMode.CEILING; 97 .setExpectation(0.33333333333333337, UP, CEILING) in testRoundToDouble_oneThird() 107 .setExpectation(Double.MIN_VALUE, UP, CEILING, HALF_UP) in testRoundToDouble_halfMinDouble() 118 .setExpectation(-0.0, HALF_EVEN, CEILING, DOWN, HALF_DOWN) in testRoundToDouble_halfNegativeMinDouble() 138 .setExpectation(Math.nextUp(twoToThe53), CEILING, UP, HALF_UP) in testRoundToDouble_maxPreciselyRepresentablePlusOne() local 149 .setExpectation(Math.nextUp(twoToThe54), CEILING, UP) in testRoundToDouble_twoToThe54PlusOne() local 160 .setExpectation(Math.nextUp(twoToThe54), CEILING, UP) in testRoundToDouble_twoToThe54PlusOneHalf() local 171 .setExpectation(Math.nextUp(twoToThe54), CEILING, UP, HALF_DOWN, HALF_UP, HALF_EVEN) in testRoundToDouble_twoToThe54PlusThree() local 191 .setExpectation(Double.POSITIVE_INFINITY, UP, CEILING) in testRoundToDouble_maxDoublePlusOne() 200 .setExpectation(Double.POSITIVE_INFINITY, UP, CEILING) in testRoundToDouble_wayTooBig() [all …]
|
D | BigIntegerMathTest.java | 30 import static java.math.RoundingMode.CEILING; 161 for (RoundingMode mode : asList(CEILING, UP)) { in testLog2Ceiling() 252 for (RoundingMode mode : asList(CEILING, UP)) { in testLog10Ceiling() 352 for (RoundingMode mode : asList(CEILING, UP)) { in testSqrtCeiling() 625 .setExpectation(Math.nextUp(twoToThe53), CEILING, UP, HALF_UP) 637 .setExpectation(Math.nextUp(twoToThe54), CEILING, UP) 649 .setExpectation(Math.nextUp(twoToThe54), CEILING, UP, HALF_DOWN, HALF_UP, HALF_EVEN) 673 .setExpectation(Double.POSITIVE_INFINITY, UP, CEILING) 683 .setExpectation(Double.POSITIVE_INFINITY, UP, CEILING) 705 .setExpectation(-Math.pow(2, 53), DOWN, CEILING, HALF_DOWN, HALF_EVEN) [all …]
|
D | MathTesting.java | 21 import static java.math.RoundingMode.CEILING; 51 ImmutableList.of(DOWN, UP, FLOOR, CEILING, HALF_EVEN, HALF_UP, HALF_DOWN);
|
/external/guava/android/guava-tests/test/com/google/common/math/ |
D | BigDecimalMathTest.java | 19 import static java.math.RoundingMode.CEILING; 97 .setExpectation(0.33333333333333337, UP, CEILING) in testRoundToDouble_oneThird() 107 .setExpectation(Double.MIN_VALUE, UP, CEILING, HALF_UP) in testRoundToDouble_halfMinDouble() 118 .setExpectation(-0.0, HALF_EVEN, CEILING, DOWN, HALF_DOWN) in testRoundToDouble_halfNegativeMinDouble() 138 .setExpectation(Math.nextUp(twoToThe53), CEILING, UP, HALF_UP) in testRoundToDouble_maxPreciselyRepresentablePlusOne() local 149 .setExpectation(Math.nextUp(twoToThe54), CEILING, UP) in testRoundToDouble_twoToThe54PlusOne() local 160 .setExpectation(Math.nextUp(twoToThe54), CEILING, UP) in testRoundToDouble_twoToThe54PlusOneHalf() local 171 .setExpectation(Math.nextUp(twoToThe54), CEILING, UP, HALF_DOWN, HALF_UP, HALF_EVEN) in testRoundToDouble_twoToThe54PlusThree() local 191 .setExpectation(Double.POSITIVE_INFINITY, UP, CEILING) in testRoundToDouble_maxDoublePlusOne() 200 .setExpectation(Double.POSITIVE_INFINITY, UP, CEILING) in testRoundToDouble_wayTooBig() [all …]
|
D | BigIntegerMathTest.java | 30 import static java.math.RoundingMode.CEILING; 161 for (RoundingMode mode : asList(CEILING, UP)) { in testLog2Ceiling() 252 for (RoundingMode mode : asList(CEILING, UP)) { in testLog10Ceiling() 352 for (RoundingMode mode : asList(CEILING, UP)) { in testSqrtCeiling() 625 .setExpectation(Math.nextUp(twoToThe53), CEILING, UP, HALF_UP) 637 .setExpectation(Math.nextUp(twoToThe54), CEILING, UP) 649 .setExpectation(Math.nextUp(twoToThe54), CEILING, UP, HALF_DOWN, HALF_UP, HALF_EVEN) 673 .setExpectation(Double.POSITIVE_INFINITY, UP, CEILING) 683 .setExpectation(Double.POSITIVE_INFINITY, UP, CEILING) 705 .setExpectation(-Math.pow(2, 53), DOWN, CEILING, HALF_DOWN, HALF_EVEN) [all …]
|
D | MathTesting.java | 21 import static java.math.RoundingMode.CEILING; 51 ImmutableList.of(DOWN, UP, FLOOR, CEILING, HALF_EVEN, HALF_UP, HALF_DOWN);
|
/external/guava/android/guava/src/com/google/common/math/ |
D | BigIntegerMath.java | 22 import static java.math.RoundingMode.CEILING; 61 return BigInteger.ZERO.setBit(log2(x, CEILING)); in ceilingPowerOfTwo() 102 case CEILING: in log2() 200 case CEILING: in log10() 240 case CEILING: in sqrt() 399 int approxSize = IntMath.divide(n * IntMath.log2(n, CEILING), Long.SIZE, CEILING); in factorial() 490 int bits = LongMath.log2(n, CEILING); in binomial()
|
D | ToDoubleRounder.java | 60 case CEILING: in roundToDouble() 80 case CEILING: in roundToDouble() 114 roundCeiling = toX(roundCeilingAsDouble, RoundingMode.CEILING); in roundToDouble()
|
D | IntMath.java | 129 case CEILING: in log2() 170 case CEILING: in log10() 278 case CEILING: in sqrt() 347 case CEILING: in divide()
|
D | LongMath.java | 132 case CEILING: in log2() 174 case CEILING: in log10() 348 case CEILING: in sqrt() 413 case CEILING: in divide() 835 int nBits = LongMath.log2(n, RoundingMode.CEILING); in binomial() 1276 case CEILING: in roundToDouble()
|
D | DoubleMath.java | 71 case CEILING: in roundIntermediate() 254 case CEILING: in log2()
|
/external/guava/guava/src/com/google/common/math/ |
D | BigIntegerMath.java | 22 import static java.math.RoundingMode.CEILING; 61 return BigInteger.ZERO.setBit(log2(x, CEILING)); in ceilingPowerOfTwo() 102 case CEILING: in log2() 200 case CEILING: in log10() 240 case CEILING: in sqrt() 399 int approxSize = IntMath.divide(n * IntMath.log2(n, CEILING), Long.SIZE, CEILING); in factorial() 490 int bits = LongMath.log2(n, CEILING); in binomial()
|
D | ToDoubleRounder.java | 60 case CEILING: in roundToDouble() 80 case CEILING: in roundToDouble() 114 roundCeiling = toX(roundCeilingAsDouble, RoundingMode.CEILING); in roundToDouble()
|
D | IntMath.java | 129 case CEILING: in log2() 170 case CEILING: in log10() 278 case CEILING: in sqrt() 347 case CEILING: in divide()
|
D | LongMath.java | 132 case CEILING: in log2() 174 case CEILING: in log10() 348 case CEILING: in sqrt() 413 case CEILING: in divide() 835 int nBits = LongMath.log2(n, RoundingMode.CEILING); in binomial() 1276 case CEILING: in roundToDouble()
|
D | DoubleMath.java | 71 case CEILING: in roundIntermediate() 254 case CEILING: in log2()
|
/external/caliper/caliper/src/main/java/com/google/caliper/runner/ |
D | NanoTimeGranularityTester.java | 19 import static java.math.RoundingMode.CEILING; 56 return ShortDuration.of(LongMath.divide(total, TRIALS * 8, CEILING), NANOSECONDS); in testNanoTimeGranularity()
|
/external/guava/android/guava-tests/benchmark/com/google/common/math/ |
D | BigIntegerMathBenchmark.java | 22 import static java.math.RoundingMode.CEILING; 64 if (IntMath.log2(n2, CEILING) * (n2 - n1) < Long.SIZE - 1) { in oldSlowFactorial()
|
/external/guava/guava-tests/benchmark/com/google/common/math/ |
D | BigIntegerMathBenchmark.java | 22 import static java.math.RoundingMode.CEILING; 64 if (IntMath.log2(n2, CEILING) * (n2 - n1) < Long.SIZE - 1) { in oldSlowFactorial()
|
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/ |
D | NumberFormatICU.java | 114 mode = RoundingMode.CEILING; in getRoundingMode() 209 if (roundingMode.equals(RoundingMode.CEILING)) { in setRoundingMode()
|
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/icuadapter/ |
D | NumberFormatJDK.java | 153 if (jdkMode.equals(RoundingMode.CEILING)) { in getRoundingMode() 256 mode = RoundingMode.CEILING; in setRoundingMode()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/ |
D | DecimalQuantityTest.java | 187 … private static final MathContext MATH_CONTEXT_CEILING = new MathContext(0, RoundingMode.CEILING); 568 {3.00, -1, RoundingMode.CEILING, "3"}, in testNickelRounding() 569 {3.25, -1, RoundingMode.CEILING, "3.5"}, in testNickelRounding() 570 {3.50, -1, RoundingMode.CEILING, "3.5"}, in testNickelRounding() 571 {3.75, -1, RoundingMode.CEILING, "4"}, in testNickelRounding()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/ |
D | DecimalQuantityTest.java | 184 … private static final MathContext MATH_CONTEXT_CEILING = new MathContext(0, RoundingMode.CEILING); 565 {3.00, -1, RoundingMode.CEILING, "3"}, in testNickelRounding() 566 {3.25, -1, RoundingMode.CEILING, "3.5"}, in testNickelRounding() 567 {3.50, -1, RoundingMode.CEILING, "3.5"}, in testNickelRounding() 568 {3.75, -1, RoundingMode.CEILING, "4"}, in testNickelRounding()
|
/external/freetype/src/raster/ |
D | ftraster.c | 445 #undef CEILING 450 #define CEILING( x ) ( ( (x) + ras.precision - 1 ) & -ras.precision ) macro 458 (Bool)( CEILING( x ) - x >= ras.precision_half ) 1244 e = CEILING( y1 ); in Bezier_Up() 2256 e1 = CEILING( x1 ); in Vertical_Sweep_Span() 2350 e1 = CEILING( x1 ); in Vertical_Sweep_Drop() 2516 e1 = CEILING( x1 ); in Horizontal_Sweep_Span() 2593 e1 = CEILING( x1 ); in Horizontal_Sweep_Drop() 2827 e2 = CEILING( x2 ); in Draw_Sweep()
|
/external/guava/android/guava-tests/test/com/google/common/collect/ |
D | TopKSelectorTest.java | 120 assertThat(compareCalls[0]).isAtMost(10L * n * IntMath.log2(k, RoundingMode.CEILING)); in testWorstCase()
|