Home
last modified time | relevance | path

Searched refs:shiftRight (Results 1 – 7 of 7) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DBigIntegerTest.java417 assertTrue("1 >> 0", BigInteger.valueOf(1).shiftRight(0).equals( in test_shiftRightI()
419 assertTrue("1 >> 1", BigInteger.valueOf(1).shiftRight(1).equals( in test_shiftRightI()
421 assertTrue("1 >> 63", BigInteger.valueOf(1).shiftRight(63).equals( in test_shiftRightI()
423 assertTrue("1 >> 64", BigInteger.valueOf(1).shiftRight(64).equals( in test_shiftRightI()
425 assertTrue("1 >> 65", BigInteger.valueOf(1).shiftRight(65).equals( in test_shiftRightI()
427 assertTrue("1 >> 1000", BigInteger.valueOf(1).shiftRight(1000).equals( in test_shiftRightI()
429 assertTrue("-1 >> 0", BigInteger.valueOf(-1).shiftRight(0).equals( in test_shiftRightI()
431 assertTrue("-1 >> 1", BigInteger.valueOf(-1).shiftRight(1).equals( in test_shiftRightI()
433 assertTrue("-1 >> 63", BigInteger.valueOf(-1).shiftRight(63).equals( in test_shiftRightI()
435 assertTrue("-1 >> 64", BigInteger.valueOf(-1).shiftRight(64).equals( in test_shiftRightI()
[all …]
DBigIntegerHashCodeTest.java42 aNumber1.subtract(aNumber2).shiftRight(125); in testSameObject()
DBigIntegerOperateBitsTest.java1134 BigInteger result = aNumber.shiftRight(number); in testShiftRight1()
1152 BigInteger result = aNumber.shiftRight(number); in testShiftRight2()
1170 BigInteger result = aNumber.shiftRight(number); in testShiftRight3()
1188 BigInteger result = aNumber.shiftRight(number); in testShiftRight4()
1206 BigInteger result = aNumber.shiftRight(number); in testShiftRight5()
1226 BigInteger result = aNumber.shiftRight(number); in testShiftRightNegNonZeroesMul32()
1246 BigInteger result = aNumber.shiftRight(number); in testShiftRightNegNonZeroes()
1266 BigInteger result = aNumber.shiftRight(number); in testShiftRightNegZeroes()
1286 BigInteger result = aNumber.shiftRight(number); in testShiftRightNegZeroesMul32()
/libcore/luni/src/main/java/java/math/
DBitLevel.java136 static BigInteger shiftRight(BigInteger source, int count) { in shiftRight() method in BitLevel
147 shiftRight(resDigits, resLength, source.digits, intCount, count); in shiftRight()
185 static boolean shiftRight(int[] result, int resultLen, int[] source, int intCount, int count) { in shiftRight() method in BitLevel
DBigInteger.java465 public BigInteger shiftRight(int n) { in shiftRight() method in BigInteger
496 return BitLevel.shiftRight(this, -n); in shiftLeft()
DConversion.java434 long lVal = val.abs().shiftRight(delta).longValue(); in bigInteger2Double()
DBigDecimal.java1218 q = q.shiftRight(k); in divide()
2576 bits = mantissa.shiftRight(discardedSize).longValue(); in doubleValue()