/external/guava/guava-tests/test/com/google/common/primitives/ |
D | UnsignedLongsTest.java | 59 assertEquals(2, UnsignedLongs.divide(14, 5)); in testDivide() 60 assertEquals(0, UnsignedLongs.divide(0, 50)); in testDivide() 61 assertEquals(1, UnsignedLongs.divide(0xfffffffffffffffeL, 0xfffffffffffffffdL)); in testDivide() 62 assertEquals(0, UnsignedLongs.divide(0xfffffffffffffffdL, 0xfffffffffffffffeL)); in testDivide() 63 assertEquals(281479271743488L, UnsignedLongs.divide(0xfffffffffffffffeL, 65535)); in testDivide() 64 assertEquals(0x7fffffffffffffffL, UnsignedLongs.divide(0xfffffffffffffffeL, 2)); in testDivide() 65 assertEquals(3689348814741910322L, UnsignedLongs.divide(0xfffffffffffffffeL, 5)); in testDivide() 87 assertTrue(dividend - (divisor * UnsignedLongs.divide(dividend, divisor) in testDivideRemainderEuclideanProperty()
|
D | UnsignedIntegerTest.java | 151 aUnsigned.bigIntegerValue().divide(bUnsigned.bigIntegerValue()).intValue(); in testDivide() 152 UnsignedInteger unsignedDiv = aUnsigned.divide(bUnsigned); in testDivide() 162 UnsignedInteger.asUnsigned(a).divide(UnsignedInteger.ZERO); in testDivideByZeroThrows()
|
D | UnsignedIntsTest.java | 65 assertEquals((int) (a / b), UnsignedInts.divide((int) a, (int) b)); in testDivide() 96 - (divisor * UnsignedInts.divide(dividend, divisor) + UnsignedInts.remainder(dividend, in testDivideRemainderEuclideanProperty()
|
/external/apache-harmony/math/src/test/java/org/apache/harmony/tests/java/math/ |
D | BigIntegerDivideTest.java | 42 aNumber.divide(bNumber); in testCase1() 57 aNumber.divide(bNumber); in testCase2() 74 BigInteger result = aNumber.divide(bNumber); in testCase3() 94 BigInteger result = aNumber.divide(bNumber); in testCase4() 115 BigInteger result = aNumber.divide(bNumber); in testCase5() 136 BigInteger result = aNumber.divide(bNumber); in testCase6() 156 BigInteger result = aNumber.divide(bNumber); in testCase7() 176 BigInteger result = aNumber.divide(bNumber); in testCase8() 196 BigInteger result = aNumber.divide(bNumber); in testCase9() 216 BigInteger result = aNumber.divide(bNumber); in testCase10() [all …]
|
D | BigDecimalArithmeticTest.java | 486 aNumber.divide(bNumber); in testDivideByZero() 504 aNumber.divide(bNumber, BigDecimal.ROUND_UNNECESSARY); in testDivideExceptionRM() 522 aNumber.divide(bNumber, 100); in testDivideExceptionInvalidRM() 541 BigDecimal result = aNumber.divide(bNumber, resScale, BigDecimal.ROUND_CEILING); in testDivideExpLessZero() 558 BigDecimal result = aNumber.divide(bNumber, resScale, BigDecimal.ROUND_CEILING); in testDivideExpEqualsZero() 575 BigDecimal result = aNumber.divide(bNumber, resScale, BigDecimal.ROUND_CEILING); in testDivideExpGreaterZero() 592 BigDecimal result = aNumber.divide(bNumber, resScale, BigDecimal.ROUND_CEILING); in testDivideRemainderIsZero() 609 BigDecimal result = aNumber.divide(bNumber, resScale, BigDecimal.ROUND_UP); in testDivideRoundUpNeg() 626 BigDecimal result = aNumber.divide(bNumber, resScale, BigDecimal.ROUND_UP); in testDivideRoundUpPos() 643 BigDecimal result = aNumber.divide(bNumber, resScale, BigDecimal.ROUND_DOWN); in testDivideRoundDownNeg() [all …]
|
/external/proguard/src/proguard/evaluation/value/ |
D | FloatValue.java | 96 public abstract FloatValue divide(FloatValue other); in divide() method in FloatValue 179 public FloatValue divide(SpecificFloatValue other) in divide() method in FloatValue 181 return divide((FloatValue)other); in divide() 282 public FloatValue divide(ParticularFloatValue other) in divide() method in FloatValue 284 return divide((SpecificFloatValue)other); in divide()
|
D | DoubleValue.java | 96 public abstract DoubleValue divide(DoubleValue other); in divide() method in DoubleValue 179 public DoubleValue divide(SpecificDoubleValue other) in divide() method in DoubleValue 181 return divide((DoubleValue)other); in divide() 282 public DoubleValue divide(ParticularDoubleValue other) in divide() method in DoubleValue 284 return divide((SpecificDoubleValue)other); in divide()
|
D | LongValue.java | 112 public LongValue divide(LongValue other) in divide() method in LongValue 124 return other.divide(this); in divideOf() 269 public LongValue divide(SpecificLongValue other) in divide() method in LongValue 425 public LongValue divide(ParticularLongValue other) in divide() method in LongValue 427 return divide((SpecificLongValue)other); in divide()
|
D | IntegerValue.java | 111 public abstract IntegerValue divide(IntegerValue other) in divide() method in IntegerValue 297 public IntegerValue divide(UnknownIntegerValue other) in divide() method in IntegerValue 299 return divide((IntegerValue)other); in divide() 541 public IntegerValue divide(SpecificIntegerValue other) in divide() method in IntegerValue 543 return divide((IntegerValue)other); in divide() 785 public IntegerValue divide(ParticularIntegerValue other) in divide() method in IntegerValue 787 return divide((SpecificIntegerValue)other); in divide()
|
D | SpecificDoubleValue.java | 80 public DoubleValue divide(DoubleValue other) in divide() method in SpecificDoubleValue 87 return other.divide(this); in divideOf() 134 public DoubleValue divide(SpecificDoubleValue other) in divide() method in SpecificDoubleValue
|
D | SpecificFloatValue.java | 80 public FloatValue divide(FloatValue other) in divide() method in SpecificFloatValue 87 return other.divide(this); in divideOf() 134 public FloatValue divide(SpecificFloatValue other) in divide() method in SpecificFloatValue
|
D | ParticularDoubleValue.java | 100 public DoubleValue divide(DoubleValue other) in divide() method in ParticularDoubleValue 107 return other.divide(this); in divideOf() 154 public DoubleValue divide(ParticularDoubleValue other) in divide() method in ParticularDoubleValue
|
D | ParticularFloatValue.java | 100 public FloatValue divide(FloatValue other) in divide() method in ParticularFloatValue 107 return other.divide(this); in divideOf() 154 public FloatValue divide(ParticularFloatValue other) in divide() method in ParticularFloatValue
|
D | ParticularLongValue.java | 100 public LongValue divide(LongValue other) in divide() method in ParticularLongValue 109 return other.divide(this); in divideOf() 188 public LongValue divide(ParticularLongValue other) in divide() method in ParticularLongValue
|
D | SpecificLongValue.java | 80 public LongValue divide(LongValue other) in divide() method in SpecificLongValue 89 return other.divide(this); in divideOf() 172 public LongValue divide(SpecificLongValue other) in divide() method in SpecificLongValue
|
D | SpecificIntegerValue.java | 95 public IntegerValue divide(IntegerValue other) in divide() method in SpecificIntegerValue 104 return other.divide(this); in divideOf() 227 public IntegerValue divide(SpecificIntegerValue other) in divide() method in SpecificIntegerValue
|
D | ParticularIntegerValue.java | 127 public IntegerValue divide(IntegerValue other) in divide() method in ParticularIntegerValue 136 return other.divide(this); in divideOf() 255 public IntegerValue divide(ParticularIntegerValue other) in divide() method in ParticularIntegerValue
|
/external/llvm/test/CodeGen/X86/ |
D | legalizedag_vec.ll | 7 ; legalizing the divide in LegalizeDAG, we scalarize the vector divide and make 8 ; two 64 bit divide library calls which introduces i64 nodes that needs to be
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/ |
D | SimpleBigDecimal.java | 126 public SimpleBigDecimal divide(SimpleBigDecimal b) in divide() method in SimpleBigDecimal 130 return new SimpleBigDecimal(dividend.divide(b.bigInt), scale); in divide() 133 public SimpleBigDecimal divide(BigInteger b) in divide() method in SimpleBigDecimal 135 return new SimpleBigDecimal(bigInt.divide(b), scale); in divide()
|
D | ECPoint.java | 266 ECFieldElement gamma = b.y.subtract(this.y).divide(b.x.subtract(this.x)); in add() 292 … ECFieldElement gamma = this.x.square().multiply(THREE).add(curve.a).divide(y.multiply(TWO)); in twice() 492 = (ECFieldElement.F2m)(this.y.add(y2)).divide(this.x.add(x2)); in addSimple() 551 = (ECFieldElement.F2m)this.x.add(this.y.divide(this.x)); in twice()
|
/external/guava/guava/src/com/google/common/math/ |
D | BigIntegerMath.java | 244 BigInteger sqrt1 = sqrt0.add(x.divide(sqrt0)).shiftRight(1); in sqrtFloor() 250 sqrt1 = sqrt0.add(x.divide(sqrt0)).shiftRight(1); in sqrtFloor() 266 public static BigInteger divide(BigInteger p, BigInteger q, RoundingMode mode){ in divide() method in BigIntegerMath 269 return pDec.divide(qDec, 0, mode).toBigIntegerExact(); in divide() 293 int approxSize = IntMath.divide(n * IntMath.log2(n, CEILING), Long.SIZE, CEILING); in factorial() 381 result = result.divide(BigInteger.valueOf(i + 1)); in binomial()
|
/external/guava/guava-tests/test/com/google/common/math/ |
D | BigIntegerMathTest.java | 348 new BigDecimal(p).divide(new BigDecimal(q), 0, mode).toBigIntegerExact(); 349 assertEquals(expected, BigIntegerMath.divide(p, q, mode)); 361 assertEquals(p, BigIntegerMath.divide(p, q, UNNECESSARY).multiply(q)); 373 assertEquals(ZERO, BigIntegerMath.divide(ZERO, q, mode)); 382 BigIntegerMath.divide(p, ZERO, mode); 416 .divide(BigIntegerMath.factorial(k)) 417 .divide(BigIntegerMath.factorial(n - k));
|
D | IntMathTest.java | 264 new BigDecimal(valueOf(p)).divide(new BigDecimal(valueOf(q)), 0, mode).intValue(); in testDivNonZero() 265 assertEquals(p + "/" + q, expected, IntMath.divide(p, q, mode)); in testDivNonZero() 278 assertEquals(p + "/" + q, p, IntMath.divide(p, q, UNNECESSARY) * q); in testDivNonZeroExact() 291 assertEquals(0, IntMath.divide(0, q, mode)); in testZeroDivIsAlwaysZero() 301 IntMath.divide(p, 0, mode); in testDivByZeroAlwaysFails()
|
/external/guava/guava/src/com/google/common/primitives/ |
D | UnsignedLong.java | 134 public UnsignedLong divide(UnsignedLong val) { in divide() method in UnsignedLong 136 return asUnsigned(UnsignedLongs.divide(value, val.value)); in divide()
|
D | UnsignedInteger.java | 137 public UnsignedInteger divide(UnsignedInteger val) { in divide() method in UnsignedInteger 139 return asUnsigned(UnsignedInts.divide(value, val.value)); in divide()
|