/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 …]
|
/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/ojluni/src/test/java/math/BigDecimal/ |
D | ZeroScalingTests.java | 73 BigDecimal result = zero1.add(zero2); in addTests() local 107 BigDecimal result = element.add(zero, mc); in addTests() local 145 BigDecimal result = zero1.subtract(zero2); in subtractTests() local 181 BigDecimal result = element.subtract(zero, mc); in subtractTests() local 232 BigDecimal result = zero1.multiply(value); in multiplyTests() local 270 BigDecimal result = zero.divide(one); in divideTests() local 338 String result = bd.toEngineeringString(); in toEngineeringStringTests() local 350 BigDecimal result; in ulpTests() 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/luni/src/test/java/libcore/java/util/stream/ |
D | MapMultiTest.java | 67 int[] result = Stream.of(10, 20, 30).mapMultiToInt(intToId).toArray(); in testMapMultiToInt_toId() local 74 long[] result = Stream.of(10L, 20L, 30L).mapMultiToLong(longToId).toArray(); in testMapMultiToLong_toId() local 81 double[] result = Stream.of(10.0, 20.0, 30.0).mapMultiToDouble(doubleToId).toArray(); in testMapMultiToDouble_toId() local 88 int[] result = Stream.of(10, 20, 30).mapMultiToInt(intDevNull).toArray(); in testMapMultiToInt_noopSink() local 95 long[] result = Stream.of(10L, 20L, 30L).mapMultiToLong(longDevNull).toArray(); in testMapMultiToLong_noopSink() local 102 double[] result = Stream.of(10.0, 20.0, 30.0).mapMultiToDouble(doubleDevNull).toArray(); in testMapMultiToDouble_noopSink() local
|
/libcore/ojluni/src/test/java/lang/Math/ |
D | Tests.java | 238 boolean result, boolean expected) { in test() 246 boolean result, boolean expected) { in test() 254 boolean result, boolean expected) { in test() 263 boolean result, boolean expected) { in test() 272 int result, int expected) { in test() 280 int result, int expected) { in test() 288 float result, float expected) { in test() 297 double result, double expected) { in test() 306 float result, float expected) { in test() 316 double result, double expected) { in test() [all …]
|
/libcore/ojluni/src/test/java/lang/Double/ |
D | ToHexStringTest.java | 61 StringBuffer result = new StringBuffer(24); in hexLongStringtoHexDoubleString() local 134 String result = Double.toHexString(Double.parseDouble(testCases1[i][0])); in testToHexString() local 164 String result = Float.toHexString(Float.parseFloat(floatTestCases[i][0])); in testToHexString() local 217 String result = Double.toHexString(Double.parseDouble(testCases2[i][0])); in testToHexString() local 232 String result = Double.toHexString(d); in testRandomDoubles() local
|
/libcore/ojluni/src/test/java/lang/invoke/ |
D | MethodTypeTest.java | 120 MethodType result = MethodType.methodType(rtype, ptypes); in testMake_Class_ClassArr() local 131 MethodType result = MethodType.methodType(rtype, Arrays.asList(ptypes)); in testMake_Class_List() local 142 MethodType result = MethodType.methodType(rtype, ptypes[0], ptypes[1]); in testMake_3args() local 155 MethodType result = MethodType.methodType(rt); in testMake_Class() local 165 MethodType result = MethodType.genericMethodType(objectArgCount); in testMakeGeneric() local 177 MethodType result = MethodType.methodType(int.class, mt_IO2); in testMake_MethodType() local 203 String result = instance.toMethodDescriptorString(); in testMake_String_ClassLoader() local 257 MethodType result = instances[i].erase(); in testErase() local 269 MethodType result = instances[i].generic(); in testGeneric() local 281 MethodType result = instances[i].wrap(); in testWrap() local [all …]
|