Home
last modified time | relevance | path

Searched refs:shiftLeft (Results 1 – 7 of 7) 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.java466 return shiftLeft(-n); in shiftRight()
482 public BigInteger shiftLeft(int n) { in shiftLeft() method in BigInteger
DBigDecimal.java1249 : p.shiftLeft(-i); in divide()
2560 mantissa = mantissa.shiftLeft(k); in doubleValue()
2568 mantissa = quotAndRem[0].shiftLeft(2).add( in doubleValue()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DBigIntegerTest.java449 a = a.shiftLeft(1); in test_shiftRightI()
474 assertTrue("1 << 0", one.shiftLeft(0).equals(one)); in test_shiftLeftI()
475 assertTrue("1 << 1", one.shiftLeft(1).equals(two)); in test_shiftLeftI()
476 assertTrue("1 << 63", one.shiftLeft(63).equals( in test_shiftLeftI()
478 assertTrue("1 << 64", one.shiftLeft(64).equals( in test_shiftLeftI()
480 assertTrue("1 << 65", one.shiftLeft(65).equals( in test_shiftLeftI()
482 assertTrue("-1 << 0", minusOne.shiftLeft(0).equals(minusOne)); in test_shiftLeftI()
483 assertTrue("-1 << 1", minusOne.shiftLeft(1).equals(minusTwo)); in test_shiftLeftI()
484 assertTrue("-1 << 63", minusOne.shiftLeft(63).equals( in test_shiftLeftI()
486 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()