/libcore/luni/src/main/java/java/math/ |
RoundingMode.java | 57 FLOOR(BigDecimal.ROUND_FLOOR), 107 return FLOOR;
|
/libcore/luni/src/test/java/libcore/java/math/ |
OldBigDecimalCompareTest.java | 41 mc = new MathContext(34, RoundingMode.FLOOR); 57 MathContext mc = new MathContext(37, RoundingMode.FLOOR);
|
OldBigDecimalArithmeticTest.java | 32 mc = new MathContext(17, RoundingMode.FLOOR); 57 mc = new MathContext(17, RoundingMode.FLOOR); 80 mc = new MathContext(17, RoundingMode.FLOOR); 128 mc = new MathContext(7, RoundingMode.FLOOR); 135 mc = new MathContext(4, RoundingMode.FLOOR); 158 mc = new MathContext(0, RoundingMode.FLOOR); 167 mc = new MathContext(0, RoundingMode.FLOOR); 180 // mc = new MathContext(3, RoundingMode.FLOOR); 193 mc = new MathContext(17, RoundingMode.FLOOR); 220 mc = new MathContext(17, RoundingMode.FLOOR); [all...] |
BigDecimalTest.java | 64 BigDecimal rounded = bigDecimal.round(new MathContext(2, RoundingMode.FLOOR));
|
OldBigDecimalConstructorsTest.java | 70 mc = new MathContext(34, RoundingMode.FLOOR); 157 mc = new MathContext(34, RoundingMode.FLOOR); 217 mc = new MathContext(34, RoundingMode.FLOOR); 257 mc = new MathContext(28, RoundingMode.FLOOR); 268 mc = new MathContext(17, RoundingMode.FLOOR); 326 mc = new MathContext(34, RoundingMode.FLOOR); 465 mc = new MathContext(8, RoundingMode.FLOOR); 603 mc = new MathContext(12, RoundingMode.FLOOR); 708 mc = new MathContext(7, RoundingMode.FLOOR); [all...] |
OldBigDecimalTest.java | 113 // testing rounding Mode RoundingMode.FLOOR 114 setScale2 = setScale1.setScale(1, RoundingMode.FLOOR); 116 "the number 1234.5908 after setting scale to 1/RoundingMode.FLOOR is wrong", 118 setScale2 = setNeg.setScale(1, RoundingMode.FLOOR); 120 "the number -1234.5908 after setting scale to 1/RoundingMode.FLOOR is wrong",
|
/libcore/luni/src/test/java/tests/api/java/math/ |
RoundingModeTest.java | 31 assertEquals("valueOf failed for ROUND_FLOOR", RoundingMode.valueOf(BigDecimal.ROUND_FLOOR), RoundingMode.FLOOR);
|
/external/guava/guava/src/com/google/common/math/ |
BigIntegerMath.java | 25 import static java.math.RoundingMode.FLOOR; 74 case FLOOR: 154 case FLOOR: 191 case FLOOR: 221 * a) every iteration (except potentially the first) has guess >= floor(sqrt(x)). This is 225 * b) this iteration converges to floor(sqrt(x)). In fact, the number of correct digits doubles 230 * definitely >= floor(sqrt(x)), and then continue the iteration until we reach a fixed point. 233 int log2 = log2(x, FLOOR); 303 // Use floor(log2(num)) + 1 to prevent overflow of multiplication. 304 int productBits = LongMath.log2(product, FLOOR) + 1 [all...] |
IntMath.java | 83 case FLOOR: 96 // floor(2^(logFloor + 0.5)) 125 case FLOOR: 213 case FLOOR: 283 case FLOOR:
|
LongMath.java | 79 case FLOOR: 92 // floor(2^(logFloor + 0.5)) 123 case FLOOR: 252 case FLOOR: 327 case FLOOR:
|
DoubleMath.java | 59 case FLOOR: 60 return (x >= 0.0) ? x : Math.floor(x); 69 return (x >= 0.0) ? Math.ceil(x) : Math.floor(x); 224 case FLOOR:
|
/external/guava/guava-tests/test/com/google/common/math/ |
BigIntegerMathTest.java | 31 import static java.math.RoundingMode.FLOOR; 55 BigInteger.ZERO.setBit(2 * BigIntegerMath.SQRT2_PRECOMPUTE_THRESHOLD + 1), FLOOR), 89 for (RoundingMode mode : asList(FLOOR, DOWN)) { 147 // Now figure out what rounding mode we should behave like (it depends if FLOOR was 149 boolean floorWasEven = (BigIntegerMath.log2(x, FLOOR) & 1) == 0; 176 for (RoundingMode mode : asList(FLOOR, DOWN)) { 194 // Relies on the correctness of log10(BigInteger, FLOOR). 197 int logFloor = BigIntegerMath.log10(x, FLOOR); 234 // Now figure out what rounding mode we should behave like (it depends if FLOOR was 236 boolean floorWasEven = (BigIntegerMath.log10(x, FLOOR) & 1) == 0 [all...] |
IntMathTest.java | 27 import static java.math.RoundingMode.FLOOR; 50 BigIntegerMath.sqrt(BigInteger.ZERO.setBit(2 * Integer.SIZE - 1), FLOOR).intValue(), 66 BigIntegerMath.sqrt(BigInteger.TEN.pow(2 * i + 1), FLOOR).longValue()); 86 assertEquals(IntMath.sqrt(Integer.MAX_VALUE, FLOOR), IntMath.FLOOR_SQRT_MAX_INT); 177 // Relies on the correctness of log10(int, FLOOR) and of pow(int, int). 181 int floor = IntMath.log10(x, FLOOR); local 182 boolean expectSuccess = IntMath.pow(10, floor) == x; 184 assertEquals(floor, IntMath.log10(x, UNNECESSARY)); 233 /* Relies on the correctness of sqrt(int, FLOOR). * 237 int floor = IntMath.sqrt(x, FLOOR); local [all...] |
LongMathTest.java | 30 import static java.math.RoundingMode.FLOOR; 48 assertEquals(BigIntegerMath.sqrt(BigInteger.ZERO.setBit(2 * Long.SIZE - 1), FLOOR).longValue(), 64 assertEquals(BigIntegerMath.sqrt(BigInteger.TEN.pow(2 * i + 1), FLOOR), 68 BigIntegerMath.sqrt(BigInteger.TEN.pow(2 * LongMath.HALF_POWERS_OF_10.length + 1), FLOOR); 73 assertEquals(LongMath.sqrt(Long.MAX_VALUE, FLOOR), LongMath.FLOOR_SQRT_MAX_LONG); 212 // Relies on the correctness of log10(long, FLOOR) and of pow(long, int). 215 int floor = LongMath.log10(x, FLOOR); local 216 boolean expectSuccess = LongMath.pow(10, floor) == x; 218 assertEquals(floor, LongMath.log10(x, UNNECESSARY)) [all...] |
DoubleMathTest.java | 28 import static java.math.RoundingMode.FLOOR; 291 int log2 = DoubleMath.log2(d, FLOOR); 385 && StrictMath.pow(2.0, DoubleMath.log2(x, FLOOR)) == x; 481 tester.setDefault(RoundingMode.class, FLOOR);
|
MathTesting.java | 23 import static java.math.RoundingMode.FLOOR; 52 FLOOR, CEILING, HALF_EVEN, HALF_UP, HALF_DOWN);
|
/external/libvpx/libvpx/vp8/decoder/ |
error_concealment.c | 22 #define FLOOR(x,q) ((x) & -(1 << (q))) 204 overlap_b_row = FLOOR(new_row / 4, 3) >> 3; 205 overlap_b_col = FLOOR(new_col / 4, 3) >> 3; 210 overlap_mb_row = FLOOR((overlap_b_row << 3) / 4, 3) >> 3; 211 overlap_mb_col = FLOOR((overlap_b_col << 3) / 4, 3) >> 3;
|
/libcore/luni/src/main/java/java/util/ |
TreeMap.java | 206 FLOOR, 225 case FLOOR: 230 return FLOOR; 288 case FLOOR: 312 case FLOOR: 330 case FLOOR: 645 return immutableCopy(find(key, FLOOR)); 649 Entry<K, V> entry = find(key, FLOOR); 1004 public K floor(K key) { [all...] |
/external/chromium_org/third_party/freetype/src/raster/ |
ftraster.c | 445 #undef FLOOR 450 #define FLOOR( x ) ( (x) & -ras.precision ) 457 #define IS_TOP_OVERSHOOT( x ) ( x - FLOOR( x ) >= ras.precision_half ) [all...] |
/external/freetype/src/raster/ |
ftraster.c | 445 #undef FLOOR 450 #define FLOOR( x ) ( (x) & -ras.precision ) 457 #define IS_TOP_OVERSHOOT( x ) ( x - FLOOR( x ) >= ras.precision_half ) [all...] |
/external/v8/src/ |
macros.py | 116 macro FLOOR(arg) = $floor(arg);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
BigDecimalCompareTest.java | 374 RoundingMode rm = RoundingMode.FLOOR; 434 RoundingMode rm = RoundingMode.FLOOR;
|
BigDecimalArithmeticTest.java | 96 MathContext mc = new MathContext(5, RoundingMode.FLOOR); [all...] |
/external/chromium_org/v8/src/ |
macros.py | 126 macro FLOOR(arg) = $floor(arg);
|
/packages/apps/Calculator/ |
arity-2.1.2.jar | |