HomeSort by relevance Sort by last modified time
    Searched refs:shiftLeft (Results 1 - 25 of 143) sorted by null

1 2 3 4 5 6

  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
SimpleBigDecimal.java 36 return new SimpleBigDecimal(value.shiftLeft(scale), scale);
78 return new SimpleBigDecimal(bigInt.shiftLeft(newScale - scale),
90 return new SimpleBigDecimal(bigInt.add(b.shiftLeft(scale)), scale);
105 return new SimpleBigDecimal(bigInt.subtract(b.shiftLeft(scale)),
123 BigInteger dividend = bigInt.shiftLeft(scale);
132 public SimpleBigDecimal shiftLeft(int n)
134 return new SimpleBigDecimal(bigInt.shiftLeft(n), scale);
145 return bigInt.compareTo(val.shiftLeft(scale));
193 BigInteger fract = bigInt.subtract(floorBigInt.shiftLeft(scale));
196 fract = ECConstants.ONE.shiftLeft(scale).subtract(fract)
    [all...]
  /libcore/luni/src/main/java/java/math/
Multiplication.java 135 res = bigFivePows[1].pow(intExp).shiftLeft(intExp);
155 res = res.shiftLeft(Integer.MAX_VALUE);
158 res = res.shiftLeft(Integer.MAX_VALUE);
161 res = res.shiftLeft(intExp);
  /frameworks/base/tests/net/java/android/net/
NetworkUtilsTest.java 128 assertEquals(BigInteger.ONE.shiftLeft(128), NetworkUtils.routedIPv6AddressCount(set));
134 assertEquals(BigInteger.ONE.shiftLeft(128), NetworkUtils.routedIPv6AddressCount(set));
140 assertEquals(BigInteger.ONE.shiftLeft(120), NetworkUtils.routedIPv6AddressCount(set));
144 assertEquals(BigInteger.ONE.shiftLeft(120).add(BigInteger.ONE.shiftLeft(64)),
  /external/crcalc/src/com/hp/creals/
UnaryCRFunction.java 409 .shiftLeft(rough_prec - working_arg_prec);
411 .shiftLeft(rough_prec - working_arg_prec);
417 CR h_cr = CR.valueOf(h).shiftLeft(working_arg_prec);
426 CR l_cr = CR.valueOf(l).shiftLeft(working_arg_prec);
472 adj = adj.shiftLeft(8);
477 .shiftLeft(8));
491 .shiftLeft(working_arg_prec);
508 .shiftLeft(working_arg_prec);
510 .shiftLeft(working_arg_prec);
609 CR appr_diff2 = f_high[0].subtract(f_mid[0].shiftLeft(1)).add(f_low[0])
    [all...]
CR.java 313 CR result = valueOf(mantissa).shiftLeft(exp);
334 return k.shiftLeft(n);
340 return k.shiftLeft(n);
593 scaled_CR = shiftLeft(4*n);
783 public CR shiftLeft(int n) {
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/
DHKeyGeneratorHelper.java 42 min = ONE.shiftLeft(m - 1);
DHParametersHelper.java 42 p = q.shiftLeft(1).add(ONE);
RSAKeyPairGenerator.java 52 BigInteger squaredBound = ONE.shiftLeft(strength - 1);
54 BigInteger minDiff = ONE.shiftLeft(mindiffbits);
DSAParametersGenerator.java 186 BigInteger c = x.mod(q.shiftLeft(1));
257 BigInteger U = new BigInteger(1, output).mod(ONE.shiftLeft(N - 1));
299 BigInteger c = X.mod(q.shiftLeft(1));
  /external/proguard/src/proguard/evaluation/value/
LongValue.java 150 public LongValue shiftLeft(IntegerValue other)
304 public LongValue shiftLeft(SpecificLongValue other)
460 public LongValue shiftLeft(ParticularIntegerValue other)
462 return shiftLeft((SpecificIntegerValue)other);
ParticularIntegerValue.java 151 public IntegerValue shiftLeft(IntegerValue other)
158 return other.shiftLeft(this);
183 return other.shiftLeft(this);
279 public IntegerValue shiftLeft(ParticularIntegerValue other)
SpecificIntegerValue.java 119 public IntegerValue shiftLeft(IntegerValue other)
126 return other.shiftLeft(this);
151 return other.shiftLeft(this);
251 public IntegerValue shiftLeft(SpecificIntegerValue other)
UnknownLongValue.java 105 public LongValue shiftLeft(IntegerValue other)
IntegerValue.java 137 public abstract IntegerValue shiftLeft(IntegerValue other);
332 public IntegerValue shiftLeft(UnknownIntegerValue other)
334 return shiftLeft((IntegerValue)other);
576 public IntegerValue shiftLeft(SpecificIntegerValue other)
578 return shiftLeft((IntegerValue)other);
820 public IntegerValue shiftLeft(ParticularIntegerValue other)
822 return shiftLeft((SpecificIntegerValue)other);
ParticularLongValue.java 124 public LongValue shiftLeft(IntegerValue other)
212 public LongValue shiftLeft(ParticularIntegerValue other)
SpecificLongValue.java 104 public LongValue shiftLeft(IntegerValue other)
196 public LongValue shiftLeft(SpecificLongValue other)
UnknownIntegerValue.java 121 public IntegerValue shiftLeft(IntegerValue other)
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
BigIntegerHashCodeTest.java 41 aNumber1.add(aNumber2).shiftLeft(125);
BigIntegerTest.java 449 a = a.shiftLeft(1);
471 * @tests java.math.BigInteger#shiftLeft(int)
474 assertTrue("1 << 0", one.shiftLeft(0).equals(one));
475 assertTrue("1 << 1", one.shiftLeft(1).equals(two));
476 assertTrue("1 << 63", one.shiftLeft(63).equals(
478 assertTrue("1 << 64", one.shiftLeft(64).equals(
480 assertTrue("1 << 65", one.shiftLeft(65).equals(
482 assertTrue("-1 << 0", minusOne.shiftLeft(0).equals(minusOne));
483 assertTrue("-1 << 1", minusOne.shiftLeft(1).equals(minusTwo));
484 assertTrue("-1 << 63", minusOne.shiftLeft(63).equals
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/
Primes.java 525 x = x.mod(ONE.shiftLeft(length - 1)).setBit(length - 1);
527 BigInteger c0x2 = c0.shiftLeft(1);
528 BigInteger tx2 = x.subtract(ONE).divide(c0x2).add(ONE).shiftLeft(1);
541 tx2 = ONE.shiftLeft(length - 1).subtract(ONE).divide(c0x2).add(ONE).shiftLeft(1);
  /packages/apps/ExactCalculator/src/com/android/calculator2/
BoundedRational.java 89 num = num.shiftLeft(exp);
91 den = den.shiftLeft(-exp);
184 final BigInteger dividend = neededPrec < 0 ? mNum.shiftLeft(-neededPrec) : mNum;
185 final BigInteger divisor = neededPrec > 0 ? mDen.shiftLeft(neededPrec) : mDen;
199 quotient.add(BigInteger.ONE.shiftLeft(extraBits - 1)).shiftRight(extraBits);
  /external/guava/guava-tests/test/com/google/common/math/
BigIntegerMathTest.java 316 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/icu/icu4c/source/i18n/
number_decimalquantity.h 370 void shiftLeft(int32_t numDigits);
  /external/crcalc/tests/src/com/hp/creals/
CRTest.java 77 check_eq(one.shiftLeft(1),two, "shiftLeft failed");
91 check_eq(one.divide(four).shiftLeft(4), four, "divide failed 1");
  /external/guava/guava-gwt/test-super/com/google/common/primitives/super/com/google/common/primitives/
UnsignedLongTest.java 51 .add(BigInteger.ONE.shiftLeft(63).add(bigI))
52 .add(BigInteger.ONE.shiftLeft(64).add(bigI));

Completed in 637 milliseconds

1 2 3 4 5 6