Searched refs:shift (Results 1 - 9 of 9) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
H A DBigDecimalScaleOperationsTest.java253 * Move the decimal point to the left; the shift value is positive
258 int shift = 18;
261 BigDecimal bNumber = aNumber.movePointLeft(shift);
267 * Move the decimal point to the left; the shift value is positive
272 int shift = -18;
275 BigDecimal bNumber = aNumber.movePointLeft(shift);
281 * Move the decimal point to the right; the shift value is positive
286 int shift = 18;
289 BigDecimal bNumber = aNumber.movePointRight(shift);
295 * Move the decimal point to the right; the shift valu
[all...]
/libcore/ojluni/src/main/java/java/lang/
H A DMath.java617 int shift = (FloatConsts.SIGNIFICAND_WIDTH - 2
619 if ((shift & -32) == 0) { // shift >= 0 && shift < 32
629 // (r >> shift) evaluates to floor(a * 2)
630 // ((r >> shift) + 1) evaluates to floor((a + 1/2) * 2)
631 // (((r >> shift) + 1) >> 1) evaluates to floor(a + 1/2)
632 return ((r >> shift) + 1) >> 1;
666 long shift = (DoubleConsts.SIGNIFICAND_WIDTH - 2
668 if ((shift
[all...]
H A DInteger.java260 private static String toUnsignedString(int i, int shift) { argument
263 int radix = 1 << shift;
267 i >>>= shift;
313 // TODO-FIXME: convert (x * 52429) into the equiv shift-add
H A DLong.java242 private static String toUnsignedString(long i, int shift) { argument
245 int radix = 1 << shift;
249 i >>>= shift;
/libcore/luni/src/main/java/java/math/
H A DBigInt.java227 // n > 0: shift left (multiply)
228 static BigInt shift(BigInt a, int n) { method in class:BigInt
234 void shift(int n) { method in class:BigInt
H A DBigInteger.java455 * negative arguments, the result is also negative. The shift distance may
461 * @param n shift distance
471 * result is equivalent to {@code this * pow(2, n)} if n >= 0. The shift
478 * @param n shift distance.
491 return new BigInteger(BigInt.shift(getBigInt(), n));
H A DBigDecimal.java497 bi.shift(-scale);
/libcore/luni/src/main/native/
H A Dcbigint.cpp36 #define bitSection(x, mask, shift) (((x) & (mask)) >> (shift))
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DCalendarTest.java1062 Map<String, Integer> result, int shift) {
1071 assertEquals(i + shift, result.get(trimValue.get(i)).intValue());
1061 assertDisplayNameMap(String[] values, Map<String, Integer> result, int shift) argument

Completed in 366 milliseconds