/external/guava/guava/src/com/google/common/math/ |
H A D | BigIntegerMath.java | 25 import static java.math.RoundingMode.FLOOR; 76 case FLOOR: 135 int approxLog10 = (int) (log2(x, FLOOR) * LN_2 / LN_10); 175 case FLOOR: 216 case FLOOR: 263 int log2 = log2(x, FLOOR); 336 int productBits = LongMath.log2(product, FLOOR) + 1; 337 int bits = LongMath.log2(startingNumber, FLOOR) + 1; 361 productBits = LongMath.log2(product, FLOOR) + 1;
|
H A D | IntMath.java | 94 case FLOOR: 136 case FLOOR: 237 case FLOOR: 312 case FLOOR:
|
H A D | LongMath.java | 92 case FLOOR: 135 case FLOOR: 304 case FLOOR: 378 case FLOOR:
|
H A D | DoubleMath.java | 66 case FLOOR: 246 case FLOOR:
|
/external/guava/guava-gwt/src-super/com/google/common/math/super/com/google/common/math/ |
H A D | BigIntegerMath.java | 25 import static java.math.RoundingMode.FLOOR; 74 case FLOOR: 153 int productBits = LongMath.log2(product, FLOOR) + 1; 154 int bits = LongMath.log2(startingNumber, FLOOR) + 1; 178 productBits = LongMath.log2(product, FLOOR) + 1;
|
H A D | IntMath.java | 91 case FLOOR: 191 case FLOOR:
|
H A D | LongMath.java | 87 case FLOOR:
|
/external/guava/guava-tests/test/com/google/common/math/ |
H A D | BigIntegerMathTest.java | 29 import static java.math.RoundingMode.FLOOR; 57 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; 177 for (RoundingMode mode : asList(FLOOR, DOWN)) { 196 // Relies on the correctness of log10(BigInteger, FLOOR). 200 int logFloor = BigIntegerMath.log10(x, FLOOR); 240 // Now figure out what rounding mode we should behave like (it depends if FLOOR was 242 boolean floorWasEven = (BigIntegerMath.log10(x, FLOOR) [all...] |
H A D | LongMathTest.java | 30 import static java.math.RoundingMode.FLOOR; 52 assertEquals(BigIntegerMath.sqrt(BigInteger.ZERO.setBit(2 * Long.SIZE - 1), FLOOR).longValue(), 60 BigIntegerMath.log10(BigInteger.ONE.shiftLeft(Long.SIZE - i), FLOOR), 79 assertEquals(BigIntegerMath.sqrt(BigInteger.TEN.pow(2 * i + 1), FLOOR), 83 BigIntegerMath.sqrt(BigInteger.TEN.pow(2 * LongMath.halfPowersOf10.length + 1), FLOOR); 89 assertEquals(LongMath.sqrt(Long.MAX_VALUE, FLOOR), LongMath.FLOOR_SQRT_MAX_LONG); 250 // Relies on the correctness of log10(long, FLOOR) and of pow(long, int). 254 int floor = LongMath.log10(x, FLOOR); 297 /* Relies on the correctness of sqrt(long, FLOOR). */ 301 long sqrtFloor = LongMath.sqrt(x, FLOOR); [all...] |
H A D | IntMathTest.java | 28 import static java.math.RoundingMode.FLOOR; 51 BigIntegerMath.sqrt(BigInteger.ZERO.setBit(2 * Integer.SIZE - 1), FLOOR).intValue(), 66 BigIntegerMath.log10(BigInteger.ONE.shiftLeft(Integer.SIZE - i), FLOOR), 76 BigIntegerMath.sqrt(BigInteger.TEN.pow(2 * i + 1), FLOOR).longValue()); 96 assertEquals(IntMath.sqrt(Integer.MAX_VALUE, FLOOR), IntMath.FLOOR_SQRT_MAX_INT); 197 // Relies on the correctness of log10(int, FLOOR) and of pow(int, int). 201 int floor = IntMath.log10(x, FLOOR); 253 /* Relies on the correctness of sqrt(int, FLOOR). */ 257 int floor = IntMath.sqrt(x, FLOOR);
|
H A D | MathTesting.java | 23 import static java.math.RoundingMode.FLOOR; 52 FLOOR, CEILING, HALF_EVEN, HALF_UP, HALF_DOWN);
|
H A D | DoubleMathTest.java | 31 import static java.math.RoundingMode.FLOOR; 319 int log2 = DoubleMath.log2(d, FLOOR); 403 && StrictMath.pow(2.0, DoubleMath.log2(x, FLOOR)) == x;
|
/external/guava/guava-gwt/test-super/com/google/common/math/super/com/google/common/math/ |
H A D | BigIntegerMathTest.java | 26 import static java.math.RoundingMode.FLOOR; 77 for (RoundingMode mode : asList(FLOOR, DOWN)) { 135 // Now figure out what rounding mode we should behave like (it depends if FLOOR was 137 boolean floorWasEven = (BigIntegerMath.log2(x, FLOOR) & 1) == 0; 142 // Relies on the correctness of log10(BigInteger, FLOOR). 146 // Relies on the correctness of sqrt(BigInteger, FLOOR).
|
/external/libvpx/libvpx/vp8/decoder/ |
H A D | error_concealment.c | 20 #define FLOOR(x,q) ((x) & -(1 << (q))) macro 202 overlap_b_row = FLOOR(new_row / 4, 3) >> 3; 203 overlap_b_col = FLOOR(new_col / 4, 3) >> 3; 208 overlap_mb_row = FLOOR((overlap_b_row << 3) / 4, 3) >> 3; 209 overlap_mb_col = FLOOR((overlap_b_col << 3) / 4, 3) >> 3;
|
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/icuadapter/ |
H A D | NumberFormatJDK.java | 155 } else if (jdkMode.equals(RoundingMode.FLOOR)) { 260 mode = RoundingMode.FLOOR;
|
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/ |
H A D | NumberFormatICU.java | 118 mode = RoundingMode.FLOOR; 211 } else if (roundingMode.equals(RoundingMode.FLOOR)) {
|
H A D | DecimalFormatICU.java | 207 mode = RoundingMode.FLOOR; 369 } else if (roundingMode.equals(RoundingMode.FLOOR)) {
|
/external/libvncserver/libvncserver/ |
H A D | scale.c | 67 #define FLOOR(x) ( (double) ((int) (x)) ) macro 107 x2 = FLOOR(x1); 108 y2 = FLOOR(y1);
|
/external/pdfium/third_party/freetype/src/raster/ |
H A D | ftraster.c | 445 #undef FLOOR macro 450 #define FLOOR( x ) ( (x) & -ras.precision ) macro 459 (Bool)( x - FLOOR( x ) >= ras.precision_half ) 1298 e2 = FLOOR( y2 ); 2302 e2 = TRUNC( FLOOR( x2 ) ); 2385 e2 = FLOOR ( x2 ); 2402 pxl = FLOOR( ( x1 + x2 - 1 ) / 2 + ras.precision_half ); 2451 pxl = FLOOR( ( x1 + x2 - 1 ) / 2 + ras.precision_half ); 2543 e2 = FLOOR ( x2 ); 2597 e2 = FLOOR ( x [all...] |
/external/freetype/src/raster/ |
H A D | ftraster.c | 444 #undef FLOOR macro 449 #define FLOOR( x ) ( (x) & -ras.precision ) macro 458 (Bool)( x - FLOOR( x ) >= ras.precision_half ) 1204 e2 = FLOOR( y2 ); 2214 e2 = TRUNC( FLOOR( x2 ) ); 2301 e2 = FLOOR ( x2 ); 2320 pxl = FLOOR( ( x1 + x2 - 1 ) / 2 + ras.precision_half ); 2369 pxl = FLOOR( ( x1 + x2 - 1 ) / 2 + ras.precision_half ); 2466 e2 = FLOOR ( x2 ); 2527 e2 = FLOOR ( x [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/analysis/ |
H A D | ComposableFunction.java | 186 public static final ComposableFunction FLOOR = new ComposableFunction() { field in class:ComposableFunction
|
/external/guava/guava/src/com/google/common/io/ |
H A D | BaseEncoding.java | 29 import static java.math.RoundingMode.FLOOR; 872 * divide(Math.max(0, unseparatedSize - 1), afterEveryChars, FLOOR);
|
/external/guava/guava-gwt/src-super/com/google/common/io/super/com/google/common/io/ |
H A D | BaseEncoding.java | 26 import static java.math.RoundingMode.FLOOR; 775 * divide(Math.max(0, unseparatedSize - 1), afterEveryChars, FLOOR);
|
/external/v8/src/ |
H A D | date.js | 233 var hours = FLOOR((sign * timezoneOffset)/60); 234 var min = FLOOR((sign * timezoneOffset)%60);
|
H A D | macros.py | 132 macro FLOOR(arg) = $floor(arg);
|