/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
BigIntegerTest.java | 414 * @tests java.math.BigInteger#shiftRight(int) 417 assertTrue("1 >> 0", BigInteger.valueOf(1).shiftRight(0).equals( 419 assertTrue("1 >> 1", BigInteger.valueOf(1).shiftRight(1).equals( 421 assertTrue("1 >> 63", BigInteger.valueOf(1).shiftRight(63).equals( 423 assertTrue("1 >> 64", BigInteger.valueOf(1).shiftRight(64).equals( 425 assertTrue("1 >> 65", BigInteger.valueOf(1).shiftRight(65).equals( 427 assertTrue("1 >> 1000", BigInteger.valueOf(1).shiftRight(1000).equals( 429 assertTrue("-1 >> 0", BigInteger.valueOf(-1).shiftRight(0).equals( 431 assertTrue("-1 >> 1", BigInteger.valueOf(-1).shiftRight(1).equals( 433 assertTrue("-1 >> 63", BigInteger.valueOf(-1).shiftRight(63).equals [all...] |
BigIntegerHashCodeTest.java | 42 aNumber1.subtract(aNumber2).shiftRight(125);
|
BigIntegerOperateBitsTest.java | 28 * Methods: bitLength, shiftLeft, shiftRight, [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/ |
Tnaf.java | 287 BigInteger ns = k.shiftRight(m - _k - 2 + a); 291 BigInteger hs = gs.shiftRight(m); 296 BigInteger ls = gsPlusJs.shiftRight(_k-c); 364 BigInteger s = r0.shiftRight(1); 375 r1 = t.shiftRight(1).negate(); 557 BigInteger dividend0 = ECConstants.ONE.add(ui[1]).shiftRight(shifts); 558 BigInteger dividend1 = ECConstants.ONE.add(ui[0]).shiftRight(shifts).negate(); 575 BigInteger dividend0 = ECConstants.ONE.add(ui[1]).shiftRight(shifts); 576 BigInteger dividend1 = ECConstants.ONE.add(ui[0]).shiftRight(shifts).negate(); 755 BigInteger pow2wMin1 = pow2w.shiftRight(1) [all...] |
WNafUtil.java | 96 k = k.shiftRight(pos); 169 k0 = k0.shiftRight(30); 170 k1 = k1.shiftRight(30); 259 k = k.shiftRight(pos);
|
ECFieldElement.java | 96 BigInteger firstWord = p.shiftRight(bitLength - 64); 250 BigInteger e = q.shiftRight(2).add(ECConstants.ONE); 256 BigInteger t1 = x.modPow(q.shiftRight(3), q); 266 BigInteger t4 = ECConstants.TWO.modPow(q.shiftRight(2), q); 275 BigInteger legendreExponent = q.shiftRight(1); 397 return x.shiftRight(1); 406 return x.shiftRight(1); 438 BigInteger u = x.shiftRight(qLen);
|
SimpleBigDecimal.java | 150 return bigInt.shiftRight(scale);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/modes/gcm/ |
GCMUtil.java | 165 int m = shiftRight(x) >> 8; 171 int m = shiftRight(x, z) >> 8; 193 static int shiftRight(int[] x) 218 static int shiftRight(int[] x, int[] z) 243 static long shiftRight(long[] x) 253 static long shiftRight(long[] x, long[] z)
|
/external/proguard/src/proguard/evaluation/value/ |
LongValue.java | 158 public LongValue shiftRight(IntegerValue other) 312 public LongValue shiftRight(SpecificLongValue other) 468 public LongValue shiftRight(ParticularIntegerValue other) 470 return shiftRight((SpecificIntegerValue)other);
|
ParticularIntegerValue.java | 161 public IntegerValue shiftRight(IntegerValue other) 168 return other.shiftRight(this); 188 return other.shiftRight(this); 284 public IntegerValue shiftRight(ParticularIntegerValue other)
|
SpecificIntegerValue.java | 129 public IntegerValue shiftRight(IntegerValue other) 136 return other.shiftRight(this); 156 return other.shiftRight(this); 256 public IntegerValue shiftRight(SpecificIntegerValue other)
|
UnknownLongValue.java | 110 public LongValue shiftRight(IntegerValue other)
|
IntegerValue.java | 142 public abstract IntegerValue shiftRight(IntegerValue other); 340 public IntegerValue shiftRight(UnknownIntegerValue other) 342 return shiftRight((IntegerValue)other); 584 public IntegerValue shiftRight(SpecificIntegerValue other) 586 return shiftRight((IntegerValue)other); 828 public IntegerValue shiftRight(ParticularIntegerValue other) 830 return shiftRight((SpecificIntegerValue)other);
|
ParticularLongValue.java | 129 public LongValue shiftRight(IntegerValue other) 217 public LongValue shiftRight(ParticularIntegerValue other)
|
SpecificLongValue.java | 109 public LongValue shiftRight(IntegerValue other) 201 public LongValue shiftRight(SpecificLongValue other)
|
UnknownIntegerValue.java | 131 public IntegerValue shiftRight(IntegerValue other)
|
/libcore/benchmarks/src/benchmarks/ |
SmallBigIntegerBenchmark.java | 50 x = x.shiftRight(1);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/endo/ |
GLVTypeBEndomorphism.java | 51 b = b.shiftRight(t);
|
/external/guava/guava/src/com/google/common/math/ |
DoubleUtils.java | 111 long twiceSignifFloor = absX.shiftRight(shift).longValue();
|
BigIntegerMath.java | 87 BigInteger halfPower = SQRT2_PRECOMPUTED_BITS.shiftRight( 272 sqrt0 = sqrtApproxWithDoubles(x.shiftRight(shift)).shiftLeft(shift >> 1); 274 BigInteger sqrt1 = sqrt0.add(x.divide(sqrt0)).shiftRight(1); 280 sqrt1 = sqrt0.add(x.divide(sqrt0)).shiftRight(1);
|
/libcore/luni/src/main/java/java/math/ |
BitLevel.java | 135 /** @see BigInteger#shiftRight(int) */ 136 static BigInteger shiftRight(BigInteger source, int count) { 147 shiftRight(resDigits, resLength, source.digits, intCount, count); 185 static boolean shiftRight(int[] result, int resultLen, int[] source, int intCount, int count) {
|
/external/crcalc/src/com/hp/creals/ |
UnaryCRFunction.java | 456 guess = l.add(h).shiftRight(1); 471 if (adj.compareTo(difference.shiftRight(10)) < 0) { 475 .shiftRight(10)) > 0){ 556 .shiftRight(1)) >= 0) { 599 mid[0] = l.add(h).shiftRight(1); 645 CR left_deriv = f_arg.subtract(f_left).shiftRight(log_delta); 646 CR right_deriv = f_right.subtract(f_arg).shiftRight(log_delta);
|
CR.java | 321 if (n < 0) return k.shiftRight(-n); 331 return adj_k.shiftRight(1); 766 public CR shiftRight(int n) { 857 CR square_root = shiftRight(1).exp(); 872 static CR half_pi = PI.shiftRight(1); [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ |
Primes.java | 177 BigInteger m = wSubOne.shiftRight(a); 303 BigInteger m = wSubOne.shiftRight(a); 349 BigInteger m = wSubOne.shiftRight(a);
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/dfp/ |
DfpDec.java | 265 shiftRight();
|