Home
last modified time | relevance | path

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

/libcore/luni/src/main/java/java/math/
DMultiplication.java135 res = bigFivePows[1].pow(intExp).shiftLeft(intExp); in powerOf10()
155 res = res.shiftLeft(Integer.MAX_VALUE); in powerOf10()
158 res = res.shiftLeft(Integer.MAX_VALUE); in powerOf10()
161 res = res.shiftLeft(intExp); in powerOf10()
DBigInteger.java468 return shiftLeft(-n); in shiftRight()
484 @NonNull public BigInteger shiftLeft(int n) { in shiftLeft() method in BigInteger
DBigDecimal.java1257 : p.shiftLeft(-i); in divide()
2566 mantissa = mantissa.shiftLeft(k); in doubleValue()
2574 mantissa = quotAndRem[0].shiftLeft(2).add( in doubleValue()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DBigIntegerTest.java450 a = a.shiftLeft(1); in test_shiftRightI()
475 assertTrue("1 << 0", one.shiftLeft(0).equals(one)); in test_shiftLeftI()
476 assertTrue("1 << 1", one.shiftLeft(1).equals(two)); in test_shiftLeftI()
477 assertTrue("1 << 63", one.shiftLeft(63).equals( in test_shiftLeftI()
479 assertTrue("1 << 64", one.shiftLeft(64).equals( in test_shiftLeftI()
481 assertTrue("1 << 65", one.shiftLeft(65).equals( in test_shiftLeftI()
483 assertTrue("-1 << 0", minusOne.shiftLeft(0).equals(minusOne)); in test_shiftLeftI()
484 assertTrue("-1 << 1", minusOne.shiftLeft(1).equals(minusTwo)); in test_shiftLeftI()
485 assertTrue("-1 << 63", minusOne.shiftLeft(63).equals( in test_shiftLeftI()
487 assertTrue("-1 << 64", minusOne.shiftLeft(64).equals( in test_shiftLeftI()
[all …]
DBigIntegerHashCodeTest.java41 aNumber1.add(aNumber2).shiftLeft(125); in testSameObject()
DBigIntegerOperateBitsTest.java1044 BigInteger result = aNumber.shiftLeft(number); in testShiftLeft1()
1062 BigInteger result = aNumber.shiftLeft(number); in testShiftLeft2()
1080 BigInteger result = aNumber.shiftLeft(number); in testShiftLeft3()
1098 BigInteger result = aNumber.shiftLeft(number); in testShiftLeft4()
1116 BigInteger result = aNumber.shiftLeft(number); in testShiftLeft5()
DBigIntegerOrTest.java414 BigInteger r1 = x.and((BigInteger.ZERO.not()).shiftLeft(32)); in testRegression()
415 BigInteger r3 = x.and((BigInteger.ZERO.not().shiftLeft(32) ).not()); in testRegression()
/libcore/luni/src/test/java/libcore/java/lang/
DLongTest.java186 BigInteger.valueOf(2).shiftLeft(63).subtract(BigInteger.ONE)
263 BigInteger b = (BigInteger.valueOf(Integer.toUnsignedLong(upper))).shiftLeft(32).
/libcore/luni/src/test/java/libcore/java/math/
DBigIntegerTest.java222 BigInteger large = three.shiftLeft(500); in test_gcd()
/libcore/ojluni/src/main/java/java/lang/
DLong.java224 return (BigInteger.valueOf(Integer.toUnsignedLong(upper))).shiftLeft(32). in toUnsignedBigInteger()
/libcore/ojluni/src/main/java/sun/misc/
DFDBigInteger.java1495 return new BigInteger(magnitude).shiftLeft(offset * 32); in toBigInteger()