Home
last modified time | relevance | path

Searched refs:shiftLeft (Results 1 – 25 of 68) sorted by relevance

123

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
DSimpleBigDecimal.java36 return new SimpleBigDecimal(value.shiftLeft(scale), scale); in getInstance()
78 return new SimpleBigDecimal(bigInt.shiftLeft(newScale - scale), in adjustScale()
90 return new SimpleBigDecimal(bigInt.add(b.shiftLeft(scale)), scale); in add()
105 return new SimpleBigDecimal(bigInt.subtract(b.shiftLeft(scale)), in subtract()
123 BigInteger dividend = bigInt.shiftLeft(scale); in divide()
132 public SimpleBigDecimal shiftLeft(int n) in shiftLeft() method in SimpleBigDecimal
134 return new SimpleBigDecimal(bigInt.shiftLeft(n), scale); in shiftLeft()
145 return bigInt.compareTo(val.shiftLeft(scale)); in compareTo()
193 BigInteger fract = bigInt.subtract(floorBigInt.shiftLeft(scale)); in toString()
196 fract = ECConstants.ONE.shiftLeft(scale).subtract(fract); in toString()
DECFieldElement.java108 return ONE.shiftLeft(bitLength).subtract(p); in calculateResidue()
353 Vh = modReduce(Vh.multiply(Vh).subtract(Qh.shiftLeft(1))); in lucasSequence()
360 Vl = modReduce(Vl.multiply(Vl).subtract(Ql.shiftLeft(1))); in lucasSequence()
373 Vl = modReduce(Vl.multiply(Vl).subtract(Ql.shiftLeft(1))); in lucasSequence()
392 BigInteger _2x = x.shiftLeft(1); in modDouble()
448 BigInteger v = x.subtract(u.shiftLeft(qLen)); in modReduce()
DTnaf.java93 BigInteger s3 = lambda.v.multiply(lambda.v).shiftLeft(1); in norm()
135 SimpleBigDecimal s3 = v.multiply(v).shiftLeft(1); in norm()
344 …u[i] = (byte) ECConstants.TWO.subtract((r0.subtract(r1.shiftLeft(1))).mod(ECConstants.FOUR)).intVa… in tauAdicNaf()
483 u2 = s.subtract(u0.shiftLeft(1)); in getLucas()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/ec/
DSimpleBigDecimal.java37 return new SimpleBigDecimal(value.shiftLeft(scale), scale); in getInstance()
79 return new SimpleBigDecimal(bigInt.shiftLeft(newScale - scale), in adjustScale()
91 return new SimpleBigDecimal(bigInt.add(b.shiftLeft(scale)), scale); in add()
106 return new SimpleBigDecimal(bigInt.subtract(b.shiftLeft(scale)), in subtract()
124 BigInteger dividend = bigInt.shiftLeft(scale); in divide()
133 public SimpleBigDecimal shiftLeft(int n) in shiftLeft() method in SimpleBigDecimal
135 return new SimpleBigDecimal(bigInt.shiftLeft(n), scale); in shiftLeft()
146 return bigInt.compareTo(val.shiftLeft(scale)); in compareTo()
194 BigInteger fract = bigInt.subtract(floorBigInt.shiftLeft(scale)); in toString()
197 fract = ECConstants.ONE.shiftLeft(scale).subtract(fract); in toString()
DECFieldElement.java118 return ONE.shiftLeft(bitLength).subtract(p); in calculateResidue()
363 Vh = modReduce(Vh.multiply(Vh).subtract(Qh.shiftLeft(1))); in lucasSequence()
370 Vl = modReduce(Vl.multiply(Vl).subtract(Ql.shiftLeft(1))); in lucasSequence()
383 Vl = modReduce(Vl.multiply(Vl).subtract(Ql.shiftLeft(1))); in lucasSequence()
402 BigInteger _2x = x.shiftLeft(1); in modDouble()
458 BigInteger v = x.subtract(u.shiftLeft(qLen)); in modReduce()
DTnaf.java94 BigInteger s3 = lambda.v.multiply(lambda.v).shiftLeft(1); in norm()
136 SimpleBigDecimal s3 = v.multiply(v).shiftLeft(1); in norm()
345 …u[i] = (byte) ECConstants.TWO.subtract((r0.subtract(r1.shiftLeft(1))).mod(ECConstants.FOUR)).intVa… in tauAdicNaf()
484 u2 = s.subtract(u0.shiftLeft(1)); in getLucas()
DWNafUtil.java30 BigInteger _3k = k.shiftLeft(1).add(k); in generateCompactNaf()
196 BigInteger _3k = k.shiftLeft(1).add(k); in generateNaf()
298 BigInteger _3k = k.shiftLeft(1).add(k); in getNafWeight()
/external/crcalc/src/com/hp/creals/
DUnaryCRFunction.java409 .shiftLeft(rough_prec - working_arg_prec); in approximate()
411 .shiftLeft(rough_prec - working_arg_prec); in approximate()
417 CR h_cr = CR.valueOf(h).shiftLeft(working_arg_prec); in approximate()
426 CR l_cr = CR.valueOf(l).shiftLeft(working_arg_prec); in approximate()
472 adj = adj.shiftLeft(8); in approximate()
477 .shiftLeft(8)); in approximate()
491 .shiftLeft(working_arg_prec); in approximate()
508 .shiftLeft(working_arg_prec); in approximate()
510 .shiftLeft(working_arg_prec); in approximate()
609 CR appr_diff2 = f_high[0].subtract(f_mid[0].shiftLeft(1)).add(f_low[0]); in monotoneDerivative_UnaryCRFunction()
[all …]
DCR.java319 CR result = valueOf(mantissa).shiftLeft(exp); in valueOf()
340 return k.shiftLeft(n); in shift()
346 return k.shiftLeft(n); in scale()
601 scaled_CR = shiftLeft(4*n); in toString()
791 public CR shiftLeft(int n) { in shiftLeft() method in CR
934 return cos_half.multiply(cos_half).shiftLeft(1).subtract(ONE); in cos()
990 return quarter.shiftLeft(2); in ln()
1216 BigInteger dividend = big1.shiftLeft(log_scale_factor); in approximate()
1257 BigInteger scaled_1 = big1.shiftLeft(-calc_precision); in approximate()
1262 big1.shiftLeft(p - 4 - calc_precision); in approximate()
[all …]
/external/proguard/src/proguard/evaluation/value/
DIntegerValue.java137 public abstract IntegerValue shiftLeft(IntegerValue other); in shiftLeft() method in IntegerValue
332 public IntegerValue shiftLeft(UnknownIntegerValue other) in shiftLeft() method in IntegerValue
334 return shiftLeft((IntegerValue)other); in shiftLeft()
576 public IntegerValue shiftLeft(SpecificIntegerValue other) in shiftLeft() method in IntegerValue
578 return shiftLeft((IntegerValue)other); in shiftLeft()
820 public IntegerValue shiftLeft(ParticularIntegerValue other) in shiftLeft() method in IntegerValue
822 return shiftLeft((SpecificIntegerValue)other); in shiftLeft()
DLongValue.java150 public LongValue shiftLeft(IntegerValue other) in shiftLeft() method in LongValue
304 public LongValue shiftLeft(SpecificLongValue other) in shiftLeft() method in LongValue
460 public LongValue shiftLeft(ParticularIntegerValue other) in shiftLeft() method in LongValue
462 return shiftLeft((SpecificIntegerValue)other); in shiftLeft()
DSpecificIntegerValue.java119 public IntegerValue shiftLeft(IntegerValue other) in shiftLeft() method in SpecificIntegerValue
126 return other.shiftLeft(this); in shiftLeftOf()
151 return other.shiftLeft(this); in shiftLeftOf()
251 public IntegerValue shiftLeft(SpecificIntegerValue other) in shiftLeft() method in SpecificIntegerValue
DParticularIntegerValue.java151 public IntegerValue shiftLeft(IntegerValue other) in shiftLeft() method in ParticularIntegerValue
158 return other.shiftLeft(this); in shiftLeftOf()
183 return other.shiftLeft(this); in shiftLeftOf()
279 public IntegerValue shiftLeft(ParticularIntegerValue other) in shiftLeft() method in ParticularIntegerValue
DParticularLongValue.java124 public LongValue shiftLeft(IntegerValue other) in shiftLeft() method in ParticularLongValue
212 public LongValue shiftLeft(ParticularIntegerValue other) in shiftLeft() method in ParticularLongValue
DSpecificLongValue.java104 public LongValue shiftLeft(IntegerValue other) in shiftLeft() method in SpecificLongValue
196 public LongValue shiftLeft(SpecificLongValue other) in shiftLeft() method in SpecificLongValue
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/zip/
DZipEightByteIntegerTest.java68 .shiftLeft(1)); in testBIToBytes()
89 BigInteger.valueOf(Long.MAX_VALUE).shiftLeft(1), in testBIFromBytes()
119 assertEquals(BigInteger.valueOf(Long.MAX_VALUE).shiftLeft(1).setBit(0), in testSign()
/external/swiftshader/third_party/subzero/tests_lit/assembler/arm32/
Drsb.ll24 define internal i64 @shiftLeft(i64 %v, i64 %l) {
25 ; ASM-LABEL:shiftLeft:
26 ; DIS-LABEL:00000000 <shiftLeft>:
27 ; IASM-LABEL:shiftLeft:
/external/guava/guava-tests/test/com/google/common/math/
DBigIntegerMathTest.java316 BigInteger plusHalfSquared = result.pow(2).add(result).shiftLeft(2).add(ONE);
317 BigInteger x4 = x.shiftLeft(2);
321 BigInteger minusHalfSquared = result.pow(2).subtract(result).shiftLeft(2).add(ONE);
332 BigInteger plusHalfSquared = result.pow(2).add(result).shiftLeft(2).add(ONE);
333 BigInteger x4 = x.shiftLeft(2);
337 BigInteger minusHalfSquared = result.pow(2).subtract(result).shiftLeft(2).add(ONE);
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/
DPrimes.java525 x = x.mod(ONE.shiftLeft(length - 1)).setBit(length - 1); in implSTRandomPrime()
527 BigInteger c0x2 = c0.shiftLeft(1); in implSTRandomPrime()
528 BigInteger tx2 = x.subtract(ONE).divide(c0x2).add(ONE).shiftLeft(1); in implSTRandomPrime()
541 tx2 = ONE.shiftLeft(length - 1).subtract(ONE).divide(c0x2).add(ONE).shiftLeft(1); in implSTRandomPrime()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/
DPrimes.java529 x = x.mod(ONE.shiftLeft(length - 1)).setBit(length - 1); in implSTRandomPrime()
531 BigInteger c0x2 = c0.shiftLeft(1); in implSTRandomPrime()
532 BigInteger tx2 = x.subtract(ONE).divide(c0x2).add(ONE).shiftLeft(1); in implSTRandomPrime()
545 tx2 = ONE.shiftLeft(length - 1).subtract(ONE).divide(c0x2).add(ONE).shiftLeft(1); in implSTRandomPrime()
/external/ukey2/src/main/java/com/google/security/cryptauth/lib/securegcm/
DEd25519.java160 BigInteger d = p[Z].pow(2).shiftLeft(1); in doubleExtendedPoint()
161 BigInteger e = p[Y].multiply(p[X]).shiftLeft(2); in doubleExtendedPoint()
164 BigInteger h = p[Y].pow(2).add(p[X].pow(2)).shiftLeft(1); in doubleExtendedPoint()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/
DDSAParametersGenerator.java187 BigInteger c = x.mod(q.shiftLeft(1)); in generateParameters_FIPS186_2()
258 BigInteger U = new BigInteger(1, output).mod(ONE.shiftLeft(N - 1)); in generateParameters_FIPS186_3()
300 BigInteger c = X.mod(q.shiftLeft(1)); in generateParameters_FIPS186_3()
DRSAKeyPairGenerator.java53 BigInteger squaredBound = ONE.shiftLeft(strength - 1); in generateKeyPair()
55 BigInteger minDiff = ONE.shiftLeft(mindiffbits); in generateKeyPair()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/generators/
DDSAParametersGenerator.java189 BigInteger c = x.mod(q.shiftLeft(1)); in generateParameters_FIPS186_2()
260 BigInteger U = new BigInteger(1, output).mod(ONE.shiftLeft(N - 1)); in generateParameters_FIPS186_3()
302 BigInteger c = X.mod(q.shiftLeft(1)); in generateParameters_FIPS186_3()
DRSAKeyPairGenerator.java55 BigInteger squaredBound = ONE.shiftLeft(strength - 1); in generateKeyPair()
57 BigInteger minDiff = ONE.shiftLeft(mindiffbits); in generateKeyPair()

123