Home
last modified time | relevance | path

Searched refs:shift (Results 1 – 11 of 11) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DBigDecimalScaleOperationsTest.java258 int shift = 18; in testMovePointLeftPos() local
261 BigDecimal bNumber = aNumber.movePointLeft(shift); in testMovePointLeftPos()
272 int shift = -18; in testMovePointLeftNeg() local
275 BigDecimal bNumber = aNumber.movePointLeft(shift); in testMovePointLeftNeg()
286 int shift = 18; in testMovePointRightPosGreater() local
289 BigDecimal bNumber = aNumber.movePointRight(shift); in testMovePointRightPosGreater()
301 int shift = 30; in testMovePointRightPosLess() local
304 BigDecimal bNumber = aNumber.movePointRight(shift); in testMovePointRightPosLess()
315 int shift = -18; in testMovePointRightNeg() local
318 BigDecimal bNumber = aNumber.movePointRight(shift); in testMovePointRightNeg()
[all …]
/libcore/ojluni/src/main/java/java/lang/
DLong.java353 static String toUnsignedString0(long val, int shift) { in toUnsignedString0() argument
356 int chars = Math.max(((mag + (shift - 1)) / shift), 1); in toUnsignedString0()
359 formatUnsignedLong(val, shift, buf, 0, chars); in toUnsignedString0()
374 static int formatUnsignedLong(long val, int shift, char[] buf, int offset, int len) { in formatUnsignedLong() argument
376 int radix = 1 << shift; in formatUnsignedLong()
380 val >>>= shift; in formatUnsignedLong() local
DInteger.java310 private static String toUnsignedString0(int val, int shift) { in toUnsignedString0() argument
313 int chars = Math.max(((mag + (shift - 1)) / shift), 1); in toUnsignedString0()
316 formatUnsignedInt(val, shift, buf, 0, chars); in toUnsignedString0()
332 static int formatUnsignedInt(int val, int shift, char[] buf, int offset, int len) { in formatUnsignedInt() argument
334 int radix = 1 << shift; in formatUnsignedInt()
338 val >>>= shift; in formatUnsignedInt() local
DMath.java655 int shift = (FloatConsts.SIGNIFICAND_WIDTH - 2 in round() local
657 if ((shift & -32) == 0) { // shift >= 0 && shift < 32 in round()
670 return ((r >> shift) + 1) >> 1; in round()
704 long shift = (DoubleConsts.SIGNIFICAND_WIDTH - 2 in round() local
706 if ((shift & -64) == 0) { // shift >= 0 && shift < 64 in round()
719 return ((r >> shift) + 1) >> 1; in round()
/libcore/ojluni/src/main/java/sun/misc/
DFloatingDecimal.java1269 int shift = leadingZeros - (63 - EXP_SHIFT);
1270 bigBbits <<= shift;
1271 binexp = 1 - shift;
1575 int shift = leadingZeros - (31 - SINGLE_EXP_SHIFT); in floatValue() local
1576 bigBbits <<= shift; in floatValue() local
1577 binexp = 1 - shift; in floatValue()
1773 int shift = leadingZeros-(63-EXP_SHIFT); in getBinaryToASCIIConverter() local
1774 fractBits <<= shift; in getBinaryToASCIIConverter() local
1775 binExp = 1 - shift; in getBinaryToASCIIConverter()
1813 int shift = leadingZeros-(31-SINGLE_EXP_SHIFT); in getBinaryToASCIIConverter() local
[all …]
DFDBigInteger.java457 public FDBigInteger leftShift(int shift) { in leftShift() argument
458 if (shift == 0 || nWords == 0) { in leftShift()
461 int wordcount = shift >> 5; in leftShift()
462 int bitcount = shift & 0x1f; in leftShift()
/libcore/luni/src/main/java/java/math/
DBigInt.java230 static BigInt shift(BigInt a, int n) { in shift() method in BigInt
236 void shift(int n) { in shift() method in BigInt
DBigInteger.java491 return new BigInteger(BigInt.shift(getBigInt(), n)); in shiftLeft()
DBigDecimal.java497 bi.shift(-scale); in BigDecimal()
/libcore/luni/src/main/native/
Dcbigint.cpp36 #define bitSection(x, mask, shift) (((x) & (mask)) >> (shift)) argument
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DCalendarTest.java1059 Map<String, Integer> result, int shift) { in assertDisplayNameMap() argument
1068 assertEquals(i + shift, result.get(trimValue.get(i)).intValue()); in assertDisplayNameMap()