Searched refs:shiftLeft (Results 1 - 25 of 42) sorted by relevance

12

/openjdk10/jdk/test/java/math/BigInteger/
H A DExtremeShiftingTests.java27 * @summary Tests of shiftLeft and shiftRight on Integer.MIN_VALUE
37 BigInteger bi = ONE.shiftLeft(Integer.MIN_VALUE);
41 bi = ZERO.shiftLeft(Integer.MIN_VALUE);
46 bi = bi.shiftLeft(Integer.MIN_VALUE);
H A DDivisionOverflow.java37 BigInteger a = BigInteger.ONE.shiftLeft(2147483646);
38 BigInteger b = BigInteger.ONE.shiftLeft(1568);
H A DDoubleValueOverflow.java36 BigInteger x = BigInteger.valueOf(2).shiftLeft(Integer.MAX_VALUE); // x = pow(2,pow(2,31))
H A DBitLengthOverflow.java36 BigInteger x = BigInteger.ONE.shiftLeft(Integer.MAX_VALUE); // x = pow(2,Integer.MAX_VALUE)
H A DBigIntegerTest.java334 BigInteger p2 = BigInteger.ONE.shiftLeft(i);
461 BigInteger base = BigInteger.ONE.shiftLeft(BITS_KARATSUBA - 32 - 1);
466 BigInteger w = u.shiftLeft(a);
471 BigInteger z = v.shiftLeft(b);
473 BigInteger multiplyResult = u.multiply(v).shiftLeft(a + b);
484 base = base.shiftLeft(BITS_TOOM_COOK - BITS_KARATSUBA);
488 BigInteger u2 = u.shiftLeft(1);
491 BigInteger v2 = v.shiftLeft(1);
493 BigInteger multiplyResult = u.multiply(v).shiftLeft(2);
515 BigInteger base = BigInteger.ONE.shiftLeft(BITS_KARATSUBA_SQUAR
[all...]
H A DCompareToTests.java38 final BigInteger TWO_POW_126 = ONE.shiftLeft(126);
39 final BigInteger TWO_POW_127 = ONE.shiftLeft(127);
40 final BigInteger TWO_POW_128 = ONE.shiftLeft(128);
H A DSymmetricRangeTests.java127 BigInteger bi = BigInteger.ONE.shiftLeft(bitLength - 1).subtract(BigInteger.ONE);
159 BigInteger x = BigInteger.ONE.shiftLeft(px);
160 BigInteger y = BigInteger.ONE.shiftLeft(py);
196 BigInteger dividend = BigInteger.ONE.shiftLeft(dividendPow);
197 BigInteger divisor = BigInteger.ONE.shiftLeft(divisorPow);
200 BigInteger.ONE.shiftLeft(dividendPow - divisorPow),
272 System.out.println("Testing BigInteger.shiftLeft");
274 BigInteger actual = MIN_VALUE.shiftLeft(1);
275 throw new RuntimeException("BigInteger.MIN_VALUE.shiftLeft(1).bitLength()=" + actual.bitLength());
280 BigInteger actual = MAX_VALUE.shiftLeft(
[all...]
H A DPrimitiveConversionTests.java50 BigInteger x = ONE.shiftLeft(exponent);
H A DPrimeTest.java226 BigInteger mp = BigInteger.ONE.shiftLeft(n).subtract(BigInteger.ONE);
/openjdk10/nashorn/test/src/jdk/nashorn/internal/runtime/doubleconv/test/
H A DBignumTest.java160 final Method shiftLeft = method("shiftLeft", int.class);
165 shiftLeft.invoke(bignum, 100);
169 shiftLeft.invoke(bignum, 1);
173 shiftLeft.invoke(bignum, 4);
177 shiftLeft.invoke(bignum, 32);
181 shiftLeft.invoke(bignum, 64);
185 shiftLeft.invoke(bignum, 64);
187 shiftLeft.invoke(bignum, 1);
201 final Method shiftLeft
[all...]
/openjdk10/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/doubleconv/
H A DBignumDtoa.java433 numerator.shiftLeft(exponent);
440 denominator.shiftLeft(1);
441 numerator.shiftLeft(1);
445 delta_plus.shiftLeft(exponent);
448 delta_minus.shiftLeft(exponent);
469 denominator.shiftLeft(-exponent);
474 denominator.shiftLeft(1);
475 numerator.shiftLeft(1);
518 denominator.shiftLeft(-exponent);
523 numerator.shiftLeft(
[all...]
/openjdk10/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.word/src/org/graalvm/word/
H A DUnsignedWord.java75 UnsignedWord shiftLeft(UnsignedWord n); method in interface:UnsignedWord
228 UnsignedWord shiftLeft(int n); method in interface:UnsignedWord
H A DSignedWord.java75 SignedWord shiftLeft(UnsignedWord n); method in interface:SignedWord
214 SignedWord shiftLeft(int n); method in interface:SignedWord
/openjdk10/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/arrays/
H A DUndefinedArrayFilter.java80 public ArrayData shiftLeft(final int by) { method in class:UndefinedArrayFilter
81 super.shiftLeft(by);
82 undefined.shiftLeft(by, length());
209 newFilter.getUndefined().shiftLeft(from, newFilter.length());
H A DDeletedArrayFilter.java79 public ArrayData shiftLeft(final int by) { method in class:DeletedArrayFilter
80 super.shiftLeft(by);
81 deleted.shiftLeft(by, length());
170 newFilter.getDeleted().shiftLeft(from, newFilter.length());
H A DArrayFilter.java71 public ArrayData shiftLeft(final int by) { method in class:ArrayFilter
72 underlying.shiftLeft(by);
H A DTypedArrayData.java101 public ArrayData shiftLeft(final int by) { method in class:TypedArrayData
H A DByteBufferArrayData.java85 public ArrayData shiftLeft(final int by) { method in class:ByteBufferArrayData
86 throw unsupported("shiftLeft");
H A DDeletedRangeArrayFilter.java104 public ArrayData shiftLeft(final int by) { method in class:DeletedRangeArrayFilter
105 super.shiftLeft(by);
/openjdk10/corba/src/java.corba/share/classes/com/sun/tools/corba/se/idl/constExpr/
H A DShiftLeft.java69 BigInteger ls = bL.shiftLeft (bR.intValue ());
H A DExprFactory.java63 ShiftLeft shiftLeft (Expression left, Expression right); method in interface:ExprFactory
H A DDefaultExprFactory.java135 public ShiftLeft shiftLeft (Expression left, Expression right) method in class:DefaultExprFactory
138 } // shiftLeft
/openjdk10/hotspot/test/compiler/intrinsics/bigInteger/
H A DMontgomeryMultiplyTest.java164 BigInteger R = BigInteger.ONE.shiftLeft(len*32);
224 BigInteger r = BigInteger.ONE.shiftLeft(lenInInts * 32);
286 BigInteger r = BigInteger.ONE.shiftLeft(40*32);
/openjdk10/jdk/src/java.base/share/classes/java/math/
H A DBigInteger.java1593 return new BigInteger(shiftLeft(x,Integer.numberOfTrailingZeros(y)), sign);
1744 BigInteger result = p1.shiftLeft(32*half).add(p3.subtract(p1).subtract(p2)).shiftLeft(32*half).add(p2);
1812 v2 = da1.add(a2).shiftLeft(1).subtract(a0).multiply(
1813 db1.add(b2).shiftLeft(1).subtract(b0));
1827 t2 = t2.subtract(vinf.shiftLeft(1));
1833 BigInteger result = vinf.shiftLeft(ss).add(t2).shiftLeft(ss).add(t1).shiftLeft(ss).add(tm1).shiftLeft(s
3213 public BigInteger shiftLeft(int n) { method in class:BigInteger
3236 private static int[] shiftLeft(int[] mag, int n) { method in class:BigInteger
[all...]
/openjdk10/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot/src/org/graalvm/compiler/hotspot/replacements/arraycopy/
H A DUnsafeArrayCopySnippets.java241 UnsignedWord srcOffset = WordFactory.unsigned(srcPos).shiftLeft(log2ElementSize).add(headerSize);
242 UnsignedWord destOffset = WordFactory.unsigned(destPos).shiftLeft(log2ElementSize).add(headerSize);
244 UnsignedWord destEnd = destOffset.add(WordFactory.unsigned(length).shiftLeft(log2ElementSize));
248 UnsignedWord sizeInBytes = WordFactory.unsigned(length).shiftLeft(log2ElementSize);

Completed in 119 milliseconds

12