/libcore/benchmarks/src/benchmarks/regression/ |
D | MathBenchmark.java | 35 double result = d; in timeAbsD() local 43 float result = f; in timeAbsF() local 51 int result = i; in timeAbsI() local 59 long result = l; in timeAbsL() local 67 double result = d; in timeAcos() local 75 double result = d; in timeAsin() local 83 double result = d; in timeAtan() local 91 double result = d; in timeAtan2() local 99 double result = d; in timeCbrt() local 107 double result = d; in timeCeil() local [all …]
|
D | IntConstantMultiplicationBenchmark.java | 21 int result = 1; in timeMultiplyIntByConstant6() local 28 int result = 1; in timeMultiplyIntByConstant7() local 35 int result = 1; in timeMultiplyIntByConstant8() local 42 int result = 1; in timeMultiplyIntByConstant8_Shift() local 49 int result = 1; in timeMultiplyIntByConstant10() local 56 int result = 1; in timeMultiplyIntByConstant10_Shift() local 63 int result = 1; in timeMultiplyIntByConstant2047() local 70 int result = 1; in timeMultiplyIntByConstant2048() local 77 int result = 1; in timeMultiplyIntByConstant2049() local 84 int result = 1; in timeMultiplyIntByVariable10() local [all …]
|
D | IntConstantDivisionBenchmark.java | 21 int result = 1; in timeDivideIntByConstant2() local 28 int result = 1; in timeDivideIntByConstant8() local 35 int result = 1; in timeDivideIntByConstant10() local 42 int result = 1; in timeDivideIntByConstant100() local 49 int result = 1; in timeDivideIntByConstant100_HandOptimized() local 56 int result = 1; in timeDivideIntByConstant2048() local 63 int result = 1; in timeDivideIntByVariable2() local 71 int result = 1; in timeDivideIntByVariable10() local
|
D | IntConstantRemainderBenchmark.java | 21 int result = 1; in timeRemainderIntByConstant2() local 28 int result = 1; in timeRemainderIntByConstant8() local 51 int result = 1; in timeRemainderIntByConstant2048() local 58 int result = 1; in timeRemainderIntByVariable2() local
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
D | BigDecimalConvertTest.java | 39 double result = -1.2380964839238476E53; in testDoubleValueNeg() local 49 double result = 1.2380964839238476E53; in testDoubleValuePos() local 59 double result = Double.POSITIVE_INFINITY; in testDoubleValuePosInfinity() local 69 double result = Double.NEGATIVE_INFINITY; in testDoubleValueNegInfinity() local 80 double result = aNumber.doubleValue(); in testDoubleValueMinusZero() local 91 double result = aNumber.doubleValue(); in testDoubleValuePlusZero() local 101 float result = -1.2380965E36F; in testFloatValueNeg() local 111 float result = 1.2380965E36F; in testFloatValuePos() local 121 float result = Float.POSITIVE_INFINITY; in testFloatValuePosInfinity() local 131 float result = Float.NEGATIVE_INFINITY; in testFloatValueNegInfinity() local [all …]
|
D | BigIntegerOperateBitsTest.java | 148 BigInteger result = aNumber.clearBit(number); in testClearBitZero() local 166 BigInteger result = aNumber.clearBit(number); in testClearBitZeroOutside1() local 184 BigInteger result = aNumber.clearBit(number); in testClearBitNegativeInside1() local 202 BigInteger result = aNumber.clearBit(number); in testClearBitNegativeInside2() local 218 BigInteger result = aNumber.clearBit(number); in testClearBitNegativeInside3() local 232 BigInteger result = aNumber.clearBit(number); in testClearBitNegativeInside4() local 246 BigInteger result = aNumber.clearBit(number); in testClearBitNegativeInside5() local 259 BigInteger result = aNumber.clearBit(number); in testClearBitNegativeOutside1() local 277 BigInteger result = aNumber.clearBit(number); in testClearBitNegativeOutside2() local 295 BigInteger result = aNumber.clearBit(number); in testClearBitPositiveInside1() local [all …]
|
D | BigIntegerAddTest.java | 42 BigInteger result = aNumber.add(bNumber); in testCase1() local 62 BigInteger result = aNumber.add(bNumber); in testCase2() local 84 BigInteger result = aNumber.add(bNumber); in testCase3() local 106 BigInteger result = aNumber.add(bNumber); in testCase4() local 128 BigInteger result = aNumber.add(bNumber); in testCase5() local 150 BigInteger result = aNumber.add(bNumber); in testCase6() local 171 BigInteger result = aNumber.add(bNumber); in testCase7() local 190 BigInteger result = aNumber.add(bNumber); in testCase8() local 211 BigInteger result = aNumber.add(bNumber); in testCase9() local 232 BigInteger result = aNumber.add(bNumber); in testCase10() local [all …]
|
D | BigIntegerSubtractTest.java | 43 BigInteger result = aNumber.subtract(bNumber); in testCase1() local 64 BigInteger result = aNumber.subtract(bNumber); in testCase2() local 86 BigInteger result = aNumber.subtract(bNumber); in testCase3() local 108 BigInteger result = aNumber.subtract(bNumber); in testCase4() local 129 BigInteger result = aNumber.subtract(bNumber); in testCase5() local 150 BigInteger result = aNumber.subtract(bNumber); in testCase6() local 172 BigInteger result = aNumber.subtract(bNumber); in testCase7() local 194 BigInteger result = aNumber.subtract(bNumber); in testCase8() local 215 BigInteger result = aNumber.subtract(bNumber); in testCase9() local 236 BigInteger result = aNumber.subtract(bNumber); in testCase10() local [all …]
|
D | BigIntegerAndTest.java | 42 BigInteger result = aNumber.and(bNumber); in testZeroPos() local 62 BigInteger result = aNumber.and(bNumber); in testZeroNeg() local 82 BigInteger result = aNumber.and(bNumber); in testPosZero() local 102 BigInteger result = aNumber.and(bNumber); in testNegPos() local 122 BigInteger result = aNumber.and(bNumber); in testZeroZero() local 137 BigInteger result = aNumber.and(bNumber); in testZeroOne() local 148 BigInteger result = aNumber.and(bNumber); in testOneOne() local 164 BigInteger result = aNumber.and(bNumber); in testPosPosSameLength() local 184 BigInteger result = aNumber.and(bNumber); in testPosPosFirstLonger() local 204 BigInteger result = aNumber.and(bNumber); in testPosPosFirstShorter() local [all …]
|
D | BigIntegerToStringTest.java | 39 String result = aNumber.toString(45); in testRadixOutOfRange() local 50 String result = aNumber.toString(radix); in testRadix2Neg() local 61 String result = aNumber.toString(radix); in testRadix2Pos() local 72 String result = aNumber.toString(radix); in testRadix10Neg() local 83 String result = aNumber.toString(radix); in testRadix10Pos() local 94 String result = aNumber.toString(radix); in testRadix16Neg() local 105 String result = aNumber.toString(radix); in testRadix16Pos() local 116 String result = aNumber.toString(radix); in testRadix24Neg() local 127 String result = aNumber.toString(radix); in testRadix24Pos() local 138 String result = aNumber.toString(radix); in testRadix36Neg() local [all …]
|
D | BigIntegerMultiplyTest.java | 42 BigInteger result = aNumber.multiply(bNumber); in testCase1() local 63 BigInteger result = aNumber.multiply(bNumber); in testCase2() local 85 BigInteger result = aNumber.multiply(bNumber); in testCase3() local 107 BigInteger result = aNumber.multiply(bNumber); in testCase4() local 130 BigInteger result = aNumber.multiply(bNumber); in testCase5() local 153 BigInteger result = aNumber.multiply(bNumber); in testCase6() local 173 BigInteger result = aNumber.multiply(bNumber); in testCase7() local 191 BigInteger result = aNumber.multiply(bNumber); in testCase8() local 209 BigInteger result = aNumber.multiply(bNumber); in testCase9() local 227 BigInteger result = aNumber.multiply(bNumber); in testCase10() local [all …]
|
D | BigIntegerNotTest.java | 42 BigInteger result = aNumber.andNot(bNumber); in testAndNotPosPosFirstLonger() local 62 BigInteger result = aNumber.andNot(bNumber); in testAndNotPosPosFirstShorter() local 82 BigInteger result = aNumber.andNot(bNumber); in testAndNotNegNegFirstLonger() local 102 BigInteger result = aNumber.andNot(bNumber); in testNegPosFirstLonger() local 117 BigInteger result = aNumber.not(); in testNotZero() local 132 BigInteger result = aNumber.not(); in testNotOne() local 149 BigInteger result = aNumber.not(); in testNotPos() local 166 BigInteger result = aNumber.not(); in testNotNeg() local 184 BigInteger result = aNumber.not(); in testNotSpecialCase() local
|
D | BigIntegerOrTest.java | 42 BigInteger result = aNumber.or(bNumber); in testZeroPos() local 62 BigInteger result = aNumber.or(bNumber); in testZeroNeg() local 82 BigInteger result = aNumber.or(bNumber); in testPosZero() local 102 BigInteger result = aNumber.or(bNumber); in testNegPos() local 122 BigInteger result = aNumber.or(bNumber); in testZeroZero() local 142 BigInteger result = aNumber.or(bNumber); in testZeroOne() local 162 BigInteger result = aNumber.or(bNumber); in testOneOne() local 182 BigInteger result = aNumber.or(bNumber); in testPosPosSameLength() local 202 BigInteger result = aNumber.or(bNumber); in testPosPosFirstLonger() local 222 BigInteger result = aNumber.or(bNumber); in testPosPosFirstShorter() local [all …]
|
D | BigIntegerDivideTest.java | 74 BigInteger result = aNumber.divide(bNumber); in testCase3() local 94 BigInteger result = aNumber.divide(bNumber); in testCase4() local 115 BigInteger result = aNumber.divide(bNumber); in testCase5() local 136 BigInteger result = aNumber.divide(bNumber); in testCase6() local 156 BigInteger result = aNumber.divide(bNumber); in testCase7() local 176 BigInteger result = aNumber.divide(bNumber); in testCase8() local 196 BigInteger result = aNumber.divide(bNumber); in testCase9() local 216 BigInteger result = aNumber.divide(bNumber); in testCase10() local 236 BigInteger result = aNumber.divide(bNumber); in testCase11() local 254 BigInteger result = aNumber.divide(bNumber); in testCase12() local [all …]
|
D | BigIntegerConvertTest.java | 37 double result = 0.0; in testDoubleValueZero() local 48 double result = 2.7467238945E10; in testDoubleValuePositive1() local 59 double result = 2.7467238945723645E36; in testDoubleValuePositive2() local 70 double result = -2.7467238945E10; in testDoubleValueNegative1() local 81 double result = -2.7467238945723645E36; in testDoubleValueNegative2() local 94 double result = 1.54747264387948E26; in testDoubleValuePosRounded1() local 108 double result = 1.547472643879479E26; in testDoubleValuePosRounded2() local 119 double result = 1.5474726438794828E26; in testDoubleValuePosNotRounded() local 131 double result = -1.54747264387948E26; in testDoubleValueNegRounded1() local 145 double result = -1.547472643879479E26; in testDoubleValueNegRounded2() local [all …]
|
D | BigIntegerXorTest.java | 40 BigInteger result = aNumber.xor(bNumber); in testZeroPos() local 53 BigInteger result = aNumber.xor(bNumber); in testZeroNeg() local 66 BigInteger result = aNumber.xor(bNumber); in testPosZero() local 79 BigInteger result = aNumber.xor(bNumber); in testNegPos() local 92 BigInteger result = aNumber.xor(bNumber); in testZeroZero() local 105 BigInteger result = aNumber.xor(bNumber); in testZeroOne() local 118 BigInteger result = aNumber.xor(bNumber); in testOneOne() local 131 BigInteger result = aNumber.xor(bNumber); in testPosPosSameLength() local 144 BigInteger result = aNumber.xor(bNumber); in testPosPosFirstLonger() local 157 BigInteger result = aNumber.xor(bNumber); in testPosPosFirstShorter() local [all …]
|
D | BigIntegerModPowTest.java | 72 BigInteger result = aNumber.modPow(exp, modulus); in testModPowPosExp() local 95 BigInteger result = aNumber.modPow(exp, modulus); in testModPowNegExp() local 172 BigInteger result = aNumber.modInverse(modulus); in testmodInversePos1() local 192 BigInteger result = aNumber.modInverse(modulus); in testmodInversePos2() local 212 BigInteger result = aNumber.modInverse(modulus); in testmodInverseNeg1() local 230 BigInteger result = aNumber.modInverse(modulus); in testmodInverseNeg2() local 250 BigInteger result = aNumber.gcd(bNumber); in testGcdSecondZero() local 270 BigInteger result = aNumber.gcd(bNumber); in testGcdFirstZero() local 288 BigInteger result = aNumber.gcd(bNumber); in testGcdFirstZERO() local 304 BigInteger result = aNumber.gcd(bNumber); in testGcdBothZeros() local [all …]
|
/libcore/benchmarks/src/benchmarks/ |
D | AdditionBenchmark.java | 24 int result = 0; in timeAddConstantToLocalInt() local 31 int result = 0; in timeAddTwoLocalInts() local 39 long result = 0; in timeAddConstantToLocalLong() local 46 long result = 0; in timeAddTwoLocalLongs() local 54 float result = 0.0f; in timeAddConstantToLocalFloat() local 61 float result = 0.0f; in timeAddTwoLocalFloats() local 69 double result = 0.0; in timeAddConstantToLocalDouble() local 76 double result = 0.0; in timeAddTwoLocalDoubles() local
|
D | FieldAccessBenchmark.java | 34 int result = 0; in timeField() local 41 int result = 0; in timeFieldFinal() local 48 int result = 0; in timeFieldStatic() local 55 int result = 0; in timeFieldStaticFinal() local 62 int result = 0; in timeFieldCached() local 70 int result = 0; in timeFieldPrivateInnerClassPublicField() local 78 int result = 0; in timeFieldPrivateInnerClassProtectedField() local 86 int result = 0; in timeFieldPrivateInnerClassPrivateField() local 94 int result = 0; in timeFieldPrivateInnerClassPackageField() local
|
D | MultiplicationBenchmark.java | 24 int result = 1; in timeMultiplyIntByConstant10() local 31 int result = 1; in timeMultiplyIntByConstant8() local 38 int result = 1; in timeMultiplyIntByVariable10() local 46 int result = 1; in timeMultiplyIntByVariable8() local
|
/libcore/luni/src/test/java/libcore/java/math/ |
D | BigIntegerTest.java | 199 private void try_gcd_variants(BigInteger arg1, BigInteger arg2, BigInteger result) in try_gcd_variants() 202 assertEquals(arg1.gcd(arg2), result); in try_gcd_variants() local 203 assertEquals(arg2.gcd(arg1), result); in try_gcd_variants() local 204 assertEquals(arg1.negate().gcd(arg2), result); in try_gcd_variants() local 205 assertEquals(arg2.gcd(arg1.negate()), result); in try_gcd_variants() local 206 assertEquals(arg1.gcd(arg2.negate()), result); in try_gcd_variants() local 207 assertEquals(arg2.negate().gcd(arg1), result); in try_gcd_variants() local 208 assertEquals(arg1.negate().gcd(arg2.negate()), result); in try_gcd_variants() local 209 assertEquals(arg2.negate().gcd(arg1.negate()), result); in try_gcd_variants() local
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestNumberPrinter.java | 185 …public void test_pad_NOT_NEGATIVE(int minPad, int maxPad, long value, String result) throws Except… in test_pad_NOT_NEGATIVE() 191 assertEquals(buf.toString(), result); in test_pad_NOT_NEGATIVE() local 202 public void test_pad_NEVER(int minPad, int maxPad, long value, String result) throws Exception { in test_pad_NEVER() 208 assertEquals(buf.toString(), result); in test_pad_NEVER() local 218 … public void test_pad_NORMAL(int minPad, int maxPad, long value, String result) throws Exception { in test_pad_NORMAL()
|
/libcore/ojluni/src/main/java/java/util/ |
D | EnumSet.java | 130 EnumSet<E> result = noneOf(elementType); in allOf() local 176 EnumSet<E> result = EnumSet.of(first); in copyOf() local 194 EnumSet<E> result = copyOf(s); in complementOf() local 214 EnumSet<E> result = noneOf(e.getDeclaringClass()); in of() local 235 EnumSet<E> result = noneOf(e1.getDeclaringClass()); in of() local 258 EnumSet<E> result = noneOf(e1.getDeclaringClass()); in of() local 283 EnumSet<E> result = noneOf(e1.getDeclaringClass()); in of() local 312 EnumSet<E> result = noneOf(e1.getDeclaringClass()); in of() local 337 EnumSet<E> result = noneOf(first.getDeclaringClass()); in of() local 361 EnumSet<E> result = noneOf(from.getDeclaringClass()); in range() local [all …]
|
/libcore/luni/src/test/java/libcore/sun/security/jca/ |
D | ProvidersTest.java | 334 Object result = a.getInstance(); in testBeforeLimit() local 338 Object result = a.getInstance(); in testBeforeLimit() local 354 Object result = a.getInstance(); in testAtLimit() local 358 Object result = a.getInstance(); in testAtLimit() local 382 Object result = a.getInstance(); in testPastLimit() local 415 Object result = a.getInstance(); in testCustomProvider() local 419 Object result = a.getInstance(); in testCustomProvider() local
|
/libcore/luni/src/test/java/tests/java/sql/ |
D | SelectFunctionalityTest.java | 132 ResultSet result = statement.executeQuery(sql); in test_SelectSimple() local 197 ResultSet result = prepStatement.executeQuery(); in test_SelectPrepared() local 239 ResultSet result = statement.executeQuery(sql); in test_SubSelect() local 275 ResultSet result = statement.executeQuery(sql); in test_SelectThreeTables() local 307 ResultSet result = statement.executeQuery(sql); in test_SelectUnionItself() local 334 ResultSet result = statement.executeQuery(sql); in test_SelectLeftOuterJoin() local 367 ResultSet result = statement.executeQuery(sql); in test_SelectRightOuterJoin() local 397 ResultSet result = statement.executeQuery(selectQuery); in test_SelectGroupBy() local 424 ResultSet result = statement.executeQuery(selectQuery); in test_SelectOrderBy() local 457 ResultSet result = statement.executeQuery(selectQuery); in test_SelectDistinct() local [all …]
|