/libcore/luni/src/test/java/libcore/java/math/ |
D | BigIntegerTest.java | 222 BigInteger large = three.shiftLeft(500); in test_gcd() 242 BigInteger.ONE.shiftLeft(1000).byteValueExact(); in test_byteValueExact() 246 BigInteger.ONE.negate().shiftLeft(1000).byteValueExact(); in test_byteValueExact() 263 BigInteger.ONE.shiftLeft(1000).shortValueExact(); in test_shortValueExact() 267 BigInteger.ONE.negate().shiftLeft(1000).shortValueExact(); in test_shortValueExact() 284 BigInteger.ONE.shiftLeft(1000).intValueExact(); in test_intValueExact() 288 BigInteger.ONE.negate().shiftLeft(1000).intValueExact(); in test_intValueExact() 297 BigInteger big = BigInteger.valueOf(i).shiftLeft(61); in test_longValueExact() 308 BigInteger.ONE.shiftLeft(1000).longValueExact(); in test_longValueExact() 312 BigInteger.ONE.negate().shiftLeft(1000).longValueExact(); in test_longValueExact()
|
/libcore/ojluni/src/test/java/math/BigInteger/ |
D | BigIntegerTest.java | 297 BigInteger p2 = BigInteger.ONE.shiftLeft(i); in squareRoot() 406 BigInteger base = BigInteger.ONE.shiftLeft(BITS_KARATSUBA - 32 - 1); in multiplyLarge() 411 BigInteger w = u.shiftLeft(a); in multiplyLarge() 416 BigInteger z = v.shiftLeft(b); in multiplyLarge() 418 BigInteger multiplyResult = u.multiply(v).shiftLeft(a + b); in multiplyLarge() 424 base = base.shiftLeft(BITS_TOOM_COOK - BITS_KARATSUBA); in multiplyLarge() 428 BigInteger u2 = u.shiftLeft(1); in multiplyLarge() 431 BigInteger v2 = v.shiftLeft(1); in multiplyLarge() 433 BigInteger multiplyResult = u.multiply(v).shiftLeft(2); in multiplyLarge() 449 BigInteger base = BigInteger.ONE.shiftLeft(BITS_KARATSUBA_SQUARE - 32 - 1); in squareLarge() [all …]
|
D | CompareToTests.java | 44 final BigInteger TWO_POW_126 = ONE.shiftLeft(126); in compareToTests() 45 final BigInteger TWO_POW_127 = ONE.shiftLeft(127); in compareToTests() 46 final BigInteger TWO_POW_128 = ONE.shiftLeft(128); in compareToTests()
|
D | PrimitiveConversionTests.java | 56 BigInteger x = ONE.shiftLeft(exponent);
|
D | PrimeTest.java | 185 BigInteger mp = BigInteger.ONE.shiftLeft(n).subtract(BigInteger.ONE); in checkMersennePrimes()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
D | BigIntegerTest.java | 445 a = a.shiftLeft(1); in test_shiftRightI() 470 assertTrue("1 << 0", one.shiftLeft(0).equals(one)); in test_shiftLeftI() 471 assertTrue("1 << 1", one.shiftLeft(1).equals(two)); in test_shiftLeftI() 472 assertTrue("1 << 63", one.shiftLeft(63).equals( in test_shiftLeftI() 474 assertTrue("1 << 64", one.shiftLeft(64).equals( in test_shiftLeftI() 476 assertTrue("1 << 65", one.shiftLeft(65).equals( in test_shiftLeftI() 478 assertTrue("-1 << 0", minusOne.shiftLeft(0).equals(minusOne)); in test_shiftLeftI() 479 assertTrue("-1 << 1", minusOne.shiftLeft(1).equals(minusTwo)); in test_shiftLeftI() 480 assertTrue("-1 << 63", minusOne.shiftLeft(63).equals( in test_shiftLeftI() 482 assertTrue("-1 << 64", minusOne.shiftLeft(64).equals( in test_shiftLeftI() [all …]
|
D | BigIntegerHashCodeTest.java | 41 aNumber1.add(aNumber2).shiftLeft(125); in testSameObject()
|
D | BigIntegerOperateBitsTest.java | 1044 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()
|
D | BigIntegerOrTest.java | 414 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/ojluni/src/main/java/java/math/ |
D | BigInteger.java | 1690 return new BigInteger(shiftLeft(x,Integer.numberOfTrailingZeros(y)), sign); in multiplyByInt() 1869 …BigInteger result = p1.shiftLeft(32*half).add(p3.subtract(p1).subtract(p2)).shiftLeft(32*half).add… in multiplyKaratsuba() 1937 v2 = da1.add(a2).shiftLeft(1).subtract(a0).multiply( in multiplyToomCook3() 1938 db1.add(b2).shiftLeft(1).subtract(b0), true); in multiplyToomCook3() 1952 t2 = t2.subtract(vinf.shiftLeft(1)); in multiplyToomCook3() 1958 …BigInteger result = vinf.shiftLeft(ss).add(t2).shiftLeft(ss).add(t1).shiftLeft(ss).add(tm1).shiftL… in multiplyToomCook3() 2261 …return xhs.shiftLeft(half*32).add(xl.add(xh).square().subtract(xhs.add(xls))).shiftLeft(half*32).a… in squareKaratsuba() 2294 v2 = da1.add(a2).shiftLeft(1).subtract(a0).square(true); in squareToomCook3() 2307 t2 = t2.subtract(vinf.shiftLeft(1)); in squareToomCook3() 2313 …return vinf.shiftLeft(ss).add(t2).shiftLeft(ss).add(t1).shiftLeft(ss).add(tm1).shiftLeft(ss).add(v… in squareToomCook3() [all …]
|
/libcore/benchmarks/src/benchmarks/ |
D | BigIntegerBenchmark.java | 54 BigInteger big = BigInteger.TEN.pow(prec).shiftLeft(30).add(BigInteger.ONE); in inner() 112 BigInteger newRes = refRes.shiftLeft(30).add(BigInteger.valueOf(i)).shiftRight(30); in repeatToString() 196 BigInteger arg = BigInteger.ONE.shiftLeft(len / 4); in repeatModInverse()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | LongTest.java | 186 BigInteger.valueOf(2).shiftLeft(63).subtract(BigInteger.ONE) 263 BigInteger b = (BigInteger.valueOf(Integer.toUnsignedLong(upper))).shiftLeft(32).
|
/libcore/ojluni/src/test/java/lang/Long/ |
D | Unsigned.java | 159 (BigInteger.valueOf(Integer.toUnsignedLong(upper))).shiftLeft(32). in toUnsignedBigInt() 320 BigInteger.ONE.shiftLeft(64).subtract(BigInteger.ONE); in testParseUnsignedLong()
|
/libcore/ojluni/annotations/sdk/nullability/java/math/ |
D | BigInteger.annotated.java | 95 … @libcore.util.NonNull public BigInteger shiftLeft(int n) { throw new RuntimeException("Stub!"); } in shiftLeft() method in BigInteger
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Long.java | 258 return (BigInteger.valueOf(Integer.toUnsignedLong(upper))).shiftLeft(32). in toUnsignedBigInteger()
|
/libcore/ojluni/src/main/java/jdk/internal/math/ |
D | FDBigInteger.java | 1495 return new BigInteger(magnitude).shiftLeft(offset * 32); in toBigInteger()
|
/libcore/api/ |
D | current.txt | 4982 method @NonNull public java.math.BigInteger shiftLeft(int);
|