Home
last modified time | relevance | path

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

1234

/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.java107 return ONE.shiftLeft(bitLength).subtract(p); in calculateResidue()
352 Vh = modReduce(Vh.multiply(Vh).subtract(Qh.shiftLeft(1))); in lucasSequence()
359 Vl = modReduce(Vl.multiply(Vl).subtract(Ql.shiftLeft(1))); in lucasSequence()
372 Vl = modReduce(Vl.multiply(Vl).subtract(Ql.shiftLeft(1))); in lucasSequence()
391 BigInteger _2x = x.shiftLeft(1); in modDouble()
441 BigInteger v = x.subtract(u.shiftLeft(qLen)); in modReduce()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/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.java117 return ONE.shiftLeft(bitLength).subtract(p); in calculateResidue()
362 Vh = modReduce(Vh.multiply(Vh).subtract(Qh.shiftLeft(1))); in lucasSequence()
369 Vl = modReduce(Vl.multiply(Vl).subtract(Ql.shiftLeft(1))); in lucasSequence()
382 Vl = modReduce(Vl.multiply(Vl).subtract(Ql.shiftLeft(1))); in lucasSequence()
401 BigInteger _2x = x.shiftLeft(1); in modDouble()
451 BigInteger v = x.subtract(u.shiftLeft(qLen)); in modReduce()
/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.java117 return ONE.shiftLeft(bitLength).subtract(p); in calculateResidue()
362 Vh = modReduce(Vh.multiply(Vh).subtract(Qh.shiftLeft(1))); in lucasSequence()
369 Vl = modReduce(Vl.multiply(Vl).subtract(Ql.shiftLeft(1))); in lucasSequence()
382 Vl = modReduce(Vl.multiply(Vl).subtract(Ql.shiftLeft(1))); in lucasSequence()
401 BigInteger _2x = x.shiftLeft(1); in modDouble()
451 BigInteger v = x.subtract(u.shiftLeft(qLen)); in modReduce()
/external/cbor-java/src/main/java/co/nstant/in/cbor/decoder/
DAbstractDecoder.java96 .shiftLeft(56)); in getLengthAsBigInteger()
98 .shiftLeft(48)); in getLengthAsBigInteger()
100 .shiftLeft(40)); in getLengthAsBigInteger()
102 .shiftLeft(32)); in getLengthAsBigInteger()
104 .shiftLeft(24)); in getLengthAsBigInteger()
106 .shiftLeft(16)); in getLengthAsBigInteger()
108 .shiftLeft(8)); in getLengthAsBigInteger()
110 .shiftLeft(0)); in getLengthAsBigInteger()
/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.java322 CR result = valueOf(mantissa).shiftLeft(exp); in valueOf()
343 return k.shiftLeft(n); in shift()
349 return k.shiftLeft(n); in scale()
604 scaled_CR = shiftLeft(4*n); in toString()
797 public CR shiftLeft(int n) { in shiftLeft() method in CR
940 return cos_half.multiply(cos_half).shiftLeft(1).subtract(ONE); in cos()
996 return quarter.shiftLeft(2); in ln()
1222 BigInteger dividend = big1.shiftLeft(log_scale_factor); in approximate()
1263 BigInteger scaled_1 = big1.shiftLeft(-calc_precision); in approximate()
1268 big1.shiftLeft(p - 4 - calc_precision); in approximate()
[all …]
/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/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
DSpecificLongValue.java104 public LongValue shiftLeft(IntegerValue other) in shiftLeft() method in SpecificLongValue
196 public LongValue shiftLeft(SpecificLongValue other) in shiftLeft() method in SpecificLongValue
DParticularLongValue.java124 public LongValue shiftLeft(IntegerValue other) in shiftLeft() method in ParticularLongValue
212 public LongValue shiftLeft(ParticularIntegerValue other) in shiftLeft() method in ParticularLongValue
/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/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/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/guava/android/guava-tests/test/com/google/common/math/
DBigIntegerMathTest.java381 BigInteger plusHalfSquared = result.pow(2).add(result).shiftLeft(2).add(ONE);
382 BigInteger x4 = x.shiftLeft(2);
386 BigInteger minusHalfSquared = result.pow(2).subtract(result).shiftLeft(2).add(ONE);
397 BigInteger plusHalfSquared = result.pow(2).add(result).shiftLeft(2).add(ONE);
398 BigInteger x4 = x.shiftLeft(2);
402 BigInteger minusHalfSquared = result.pow(2).subtract(result).shiftLeft(2).add(ONE);
680 BigInteger bi = BigInteger.ONE.shiftLeft(2 * Double.MAX_EXPONENT);
756 BigInteger bi = BigInteger.ONE.shiftLeft(2 * Double.MAX_EXPONENT).negate();
/external/guava/guava-tests/test/com/google/common/math/
DBigIntegerMathTest.java381 BigInteger plusHalfSquared = result.pow(2).add(result).shiftLeft(2).add(ONE);
382 BigInteger x4 = x.shiftLeft(2);
386 BigInteger minusHalfSquared = result.pow(2).subtract(result).shiftLeft(2).add(ONE);
397 BigInteger plusHalfSquared = result.pow(2).add(result).shiftLeft(2).add(ONE);
398 BigInteger x4 = x.shiftLeft(2);
402 BigInteger minusHalfSquared = result.pow(2).subtract(result).shiftLeft(2).add(ONE);
680 BigInteger bi = BigInteger.ONE.shiftLeft(2 * Double.MAX_EXPONENT);
756 BigInteger bi = BigInteger.ONE.shiftLeft(2 * Double.MAX_EXPONENT).negate();
/external/ukey2/src/main/java/com/google/security/cryptauth/lib/securegcm/
DEd25519.java159 BigInteger d = p[Z].pow(2).shiftLeft(1); in doubleExtendedPoint()
160 BigInteger e = p[Y].multiply(p[X]).shiftLeft(2); in doubleExtendedPoint()
163 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/
DRSAKeyPairGenerator.java53 BigInteger squaredBound = ONE.shiftLeft(strength - 1); in generateKeyPair()
55 BigInteger minDiff = ONE.shiftLeft(mindiffbits); in generateKeyPair()
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()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/generators/
DRSAKeyPairGenerator.java55 BigInteger squaredBound = ONE.shiftLeft(strength - 1); in generateKeyPair()
57 BigInteger minDiff = ONE.shiftLeft(mindiffbits); in generateKeyPair()

1234