Home
last modified time | relevance | path

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

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DBigIntegerTest.java418 assertTrue("1 >> 0", BigInteger.valueOf(1).shiftRight(0).equals( in test_shiftRightI()
420 assertTrue("1 >> 1", BigInteger.valueOf(1).shiftRight(1).equals( in test_shiftRightI()
422 assertTrue("1 >> 63", BigInteger.valueOf(1).shiftRight(63).equals( in test_shiftRightI()
424 assertTrue("1 >> 64", BigInteger.valueOf(1).shiftRight(64).equals( in test_shiftRightI()
426 assertTrue("1 >> 65", BigInteger.valueOf(1).shiftRight(65).equals( in test_shiftRightI()
428 assertTrue("1 >> 1000", BigInteger.valueOf(1).shiftRight(1000).equals( in test_shiftRightI()
430 assertTrue("-1 >> 0", BigInteger.valueOf(-1).shiftRight(0).equals( in test_shiftRightI()
432 assertTrue("-1 >> 1", BigInteger.valueOf(-1).shiftRight(1).equals( in test_shiftRightI()
434 assertTrue("-1 >> 63", BigInteger.valueOf(-1).shiftRight(63).equals( in test_shiftRightI()
436 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.java467 @NonNull public BigInteger shiftRight(int n) { in shiftRight() method in BigInteger
498 return BitLevel.shiftRight(this, -n); in shiftLeft()
DConversion.java434 long lVal = val.abs().shiftRight(delta).longValue(); in bigInteger2Double()
DBigDecimal.java1226 q = q.shiftRight(k); in divide()
2582 bits = mantissa.shiftRight(discardedSize).longValue(); in doubleValue()
/libcore/benchmarks/src/benchmarks/
DSmallBigIntegerBenchmark.java50 x = x.shiftRight(1); in main()