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

12

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
H A DSimpleBigDecimal.java36 return new SimpleBigDecimal(value.shiftLeft(scale), scale);
84 return new SimpleBigDecimal(bigInt.shiftLeft(newScale - scale),
96 return new SimpleBigDecimal(bigInt.add(b.shiftLeft(scale)), scale);
111 return new SimpleBigDecimal(bigInt.subtract(b.shiftLeft(scale)),
129 BigInteger dividend = bigInt.shiftLeft(scale);
138 public SimpleBigDecimal shiftLeft(int n) method in class:SimpleBigDecimal
140 return new SimpleBigDecimal(bigInt.shiftLeft(n), scale);
151 return bigInt.compareTo(val.shiftLeft(scale));
199 BigInteger fract = bigInt.subtract(floorBigInt.shiftLeft(scale));
202 fract = ECConstants.ONE.shiftLeft(scal
[all...]
H A DECFieldElement.java138 BigInteger k = u.shiftLeft(1).add(ECConstants.ONE);
141 BigInteger fourQ = Q.shiftLeft(2).mod(q);
186 // BigInteger fourX = x.shiftLeft(2);
201 // BigInteger twoR = r.shiftLeft(1); //ECConstants.TWO.multiply(r);
257 Vh = Vh.multiply(Vh).subtract(Qh.shiftLeft(1)).mod(p);
264 Vl = Vl.multiply(Vl).subtract(Ql.shiftLeft(1)).mod(p);
277 Vl = Vl.multiply(Vl).subtract(Ql.shiftLeft(1)).mod(p);
512 // BigInteger az = a.shiftLeft(1);
666 // uz = uz.xor(vz.shiftLeft(j));
669 // g1z = g1z.xor(g2z.shiftLeft(
[all...]
H A DIntArray.java223 public void shiftLeft() method in class:IntArray
258 public IntArray shiftLeft(int n) method in class:IntArray
273 throw new IllegalArgumentException("shiftLeft() for max 31 bits "
365 b.shiftLeft();
390 // c.shiftLeft();
H A DTnaf.java93 BigInteger s3 = lambda.v.multiply(lambda.v).shiftLeft(1);
135 SimpleBigDecimal s3 = v.multiply(v).shiftLeft(1);
344 u[i] = (byte) ECConstants.TWO.subtract((r0.subtract(r1.shiftLeft(1))).mod(ECConstants.FOUR)).intValue();
487 u2 = s.subtract(u0.shiftLeft(1));
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/
H A DDSAParametersGenerator.java129 BigInteger c = x.mod(q.shiftLeft(1));
200 BigInteger U = new BigInteger(1, output).mod(ONE.shiftLeft(N - 1));
203 BigInteger q = ONE.shiftLeft(N - 1).add(U).add(ONE).subtract(U.mod(TWO));
234 Vj = Vj.mod(ONE.shiftLeft(b));
237 W = W.add(Vj.shiftLeft(exp));
241 BigInteger X = W.add(ONE.shiftLeft(L - 1));
244 BigInteger c = X.mod(q.shiftLeft(1));
H A DDHKeyGeneratorHelper.java34 min = ONE.shiftLeft(m - 1);
H A DDHParametersHelper.java43 p = q.shiftLeft(1).add(ONE);
/external/apache-harmony/math/src/test/java/org/apache/harmony/tests/java/math/
H A DBigIntegerHashCodeTest.java41 aNumber1.add(aNumber2).shiftLeft(125);
H A DBigIntegerOrTest.java414 BigInteger r1 = x.and((BigInteger.ZERO.not()).shiftLeft(32));
415 BigInteger r3 = x.and((BigInteger.ZERO.not().shiftLeft(32) ).not());
/external/proguard/src/proguard/evaluation/value/
H A DLongValue.java150 public LongValue shiftLeft(IntegerValue other) method in class:LongValue
304 public LongValue shiftLeft(SpecificLongValue other) method in class:LongValue
460 public LongValue shiftLeft(ParticularIntegerValue other) method in class:LongValue
462 return shiftLeft((SpecificIntegerValue)other);
H A DParticularIntegerValue.java151 public IntegerValue shiftLeft(IntegerValue other) method in class:ParticularIntegerValue
158 return other.shiftLeft(this);
183 return other.shiftLeft(this);
279 public IntegerValue shiftLeft(ParticularIntegerValue other) method in class:ParticularIntegerValue
H A DSpecificIntegerValue.java119 public IntegerValue shiftLeft(IntegerValue other) method in class:SpecificIntegerValue
126 return other.shiftLeft(this);
151 return other.shiftLeft(this);
251 public IntegerValue shiftLeft(SpecificIntegerValue other) method in class:SpecificIntegerValue
H A DUnknownLongValue.java105 public LongValue shiftLeft(IntegerValue other) method in class:UnknownLongValue
H A DIntegerValue.java137 public abstract IntegerValue shiftLeft(IntegerValue other); method in class:IntegerValue
332 public IntegerValue shiftLeft(UnknownIntegerValue other) method in class:IntegerValue
334 return shiftLeft((IntegerValue)other);
576 public IntegerValue shiftLeft(SpecificIntegerValue other) method in class:IntegerValue
578 return shiftLeft((IntegerValue)other);
820 public IntegerValue shiftLeft(ParticularIntegerValue other) method in class:IntegerValue
822 return shiftLeft((SpecificIntegerValue)other);
H A DParticularLongValue.java124 public LongValue shiftLeft(IntegerValue other) method in class:ParticularLongValue
212 public LongValue shiftLeft(ParticularIntegerValue other) method in class:ParticularLongValue
H A DSpecificLongValue.java104 public LongValue shiftLeft(IntegerValue other) method in class:SpecificLongValue
196 public LongValue shiftLeft(SpecificLongValue other) method in class:SpecificLongValue
H A DUnknownIntegerValue.java121 public IntegerValue shiftLeft(IntegerValue other) method in class:UnknownIntegerValue
/external/apache-harmony/math/src/test/java/tests/api/java/math/
H A DBigIntegerTest.java474 a = a.shiftLeft(1);
496 * @tests java.math.BigInteger#shiftLeft(int)
499 assertTrue("1 << 0", one.shiftLeft(0).equals(one));
500 assertTrue("1 << 1", one.shiftLeft(1).equals(two));
501 assertTrue("1 << 63", one.shiftLeft(63).equals(
503 assertTrue("1 << 64", one.shiftLeft(64).equals(
505 assertTrue("1 << 65", one.shiftLeft(65).equals(
507 assertTrue("-1 << 0", minusOne.shiftLeft(0).equals(minusOne));
508 assertTrue("-1 << 1", minusOne.shiftLeft(1).equals(minusTwo));
509 assertTrue("-1 << 63", minusOne.shiftLeft(6
[all...]
/external/skia/src/core/
H A DSk64.cpp38 void Sk64::shiftLeft(unsigned bits) function in class:Sk64
100 one.shiftLeft(bits - 1);
352 N.shiftLeft(shiftN);
H A DSkFloat.h33 void shiftLeft(int bits) { fPacked = Shift(fPacked, bits); } function in class:SkFloat
/external/guava/guava-tests/test/com/google/common/math/
H A DBigIntegerMathTest.java305 BigInteger plusHalfSquared = result.pow(2).add(result).shiftLeft(2).add(ONE);
306 BigInteger x4 = x.shiftLeft(2);
310 BigInteger minusHalfSquared = result.pow(2).subtract(result).shiftLeft(2).add(ONE);
320 BigInteger plusHalfSquared = result.pow(2).add(result).shiftLeft(2).add(ONE);
321 BigInteger x4 = x.shiftLeft(2);
325 BigInteger minusHalfSquared = result.pow(2).subtract(result).shiftLeft(2).add(ONE);
/external/skia/include/core/
H A DSk64.h114 void shiftLeft(unsigned bits);
/external/guava/guava/src/com/google/common/math/
H A DBigIntegerMath.java242 sqrt0 = sqrtApproxWithDoubles(x.shiftRight(shift)).shiftLeft(shift >> 1);
336 return listProduct(bignums).shiftLeft(shift);
H A DDoubleMath.java168 BigInteger result = BigInteger.valueOf(significand).shiftLeft(exponent - SIGNIFICAND_BITS);
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
H A DDERObjectIdentifier.java108 bigValue = bigValue.shiftLeft(7);

Completed in 667 milliseconds

12