Searched refs:shiftRight (Results 1 – 7 of 7) sorted by relevance
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
D | BigIntegerTest.java | 417 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 …]
|
D | BigIntegerHashCodeTest.java | 42 aNumber1.subtract(aNumber2).shiftRight(125); in testSameObject()
|
D | BigIntegerOperateBitsTest.java | 1134 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/ |
D | BitLevel.java | 136 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
|
D | BigInteger.java | 465 public BigInteger shiftRight(int n) { in shiftRight() method in BigInteger 496 return BitLevel.shiftRight(this, -n); in shiftLeft()
|
D | Conversion.java | 434 long lVal = val.abs().shiftRight(delta).longValue(); in bigInteger2Double()
|
D | BigDecimal.java | 1218 q = q.shiftRight(k); in divide() 2576 bits = mantissa.shiftRight(discardedSize).longValue(); in doubleValue()
|