/art/test/952-invoke-custom/src/ |
D | TestLinkerMethodWithRange.java | 126 parameterTypes = {Double.class, Double.class, Double.class, 127 Double.class, Double.class, Double.class}, 131 private static Double multiply(Double a, Double b, Double c, Double d, Double e, Double f) { in multiply() 137 private static Double _multiply(Double a, Double b, Double c, Double d, Double e, Double f) { in _multiply() 138 Double[] values = new Double[] { a, b, c, d, e, f }; in _multiply() 139 Double product = 1.0; in _multiply() 140 for (Double value : values) { in _multiply() 157 public static void test(Double u, Double v, Double w, Double x, Double y, Double z) in test() 159 Double product = 1.0; in test()
|
D | Main.java | 53 TestLinkerMethodWithRange.test(Double.valueOf(1.0), null, Double.valueOf(3.0), null, in TestLinkerMethodWithRange() 54 Double.valueOf(37.0), null); in TestLinkerMethodWithRange() 55 TestLinkerMethodWithRange.test(null, Double.valueOf(3.0), null, in TestLinkerMethodWithRange() 56 Double.valueOf(37.0), null, Double.valueOf(113.0)); in TestLinkerMethodWithRange() 57 TestLinkerMethodWithRange.test(Double.valueOf(1.0), Double.valueOf(2.0), in TestLinkerMethodWithRange() 58 Double.valueOf(3.0), Double.valueOf(5.0), in TestLinkerMethodWithRange() 59 Double.valueOf(7.0), Double.valueOf(11.0)); in TestLinkerMethodWithRange()
|
D | TestReturnValues.java | 111 return Double.NaN; in passThroughCallSite() 230 Double.MIN_VALUE, in testDoubleReturnValues() 231 Double.MIN_NORMAL, in testDoubleReturnValues() 232 Double.NaN, in testDoubleReturnValues() 233 Double.POSITIVE_INFINITY, in testDoubleReturnValues() 234 Double.NEGATIVE_INFINITY, in testDoubleReturnValues() 235 Double.MAX_VALUE in testDoubleReturnValues() 294 double d = Double.MIN_VALUE; in testVoidReturnValues() 297 assertEquals(Double.MIN_VALUE, d); in testVoidReturnValues() 300 d = Double.MAX_VALUE; in testVoidReturnValues() [all …]
|
/art/test/436-rem-float/src/ |
D | Main.java | 172 expectApproxEquals(0D, $opt$Rem(Double.MAX_VALUE, 1D)); in remDouble() 173 expectApproxEquals(0D, $opt$Rem(Double.MAX_VALUE, -1D)); in remDouble() 174 expectApproxEquals(0D, $opt$Rem(Double.MIN_VALUE, 1D)); in remDouble() 175 expectApproxEquals(0D, $opt$Rem(Double.MIN_VALUE, -1D)); in remDouble() 177 expectApproxEquals(0D, $opt$Rem(0D, Double.MAX_VALUE)); in remDouble() 178 expectApproxEquals(0D, $opt$Rem(0D, Double.MIN_VALUE)); in remDouble() 179 expectApproxEquals(0D, $opt$Rem(0D, Double.POSITIVE_INFINITY)); in remDouble() 180 expectApproxEquals(0D, $opt$Rem(0D, Double.NEGATIVE_INFINITY)); in remDouble() 181 expectApproxEquals(4D, $opt$Rem(4D, Double.POSITIVE_INFINITY)); in remDouble() 182 expectApproxEquals(4D, $opt$Rem(4D, Double.NEGATIVE_INFINITY)); in remDouble() [all …]
|
/art/test/041-narrowing/ |
D | expected.txt | 2 Double.POSITIVE_INFINITY = 7ff0000000000000 3 Double.NEGATIVE_INFINITY = fff0000000000000 6 Double.NaN = 7ff8000000000000 9 (byte) Double.NaN = 00 expected: 00 10 (short) Double.NaN = 0000 expected: 0000 11 (int) Double.NaN = 00000000 expected: 00000000 12 (long) Double.NaN = 0000000000000000 expected: 0000000000000000 19 (byte) Double.POSITIVE_INFINITY = ff expected: ff 20 (short) Double.POSITIVE_INFINITY = ffff expected: ffff 21 (int) Double.POSITIVE_INFINITY = 7fffffff expected: 7fffffff [all …]
|
/art/test/575-checker-isnan/src/ |
D | Main.java | 44 return Double.isNaN(x); in isNaN64() 81 expectFalse(isNaN64(Double.NEGATIVE_INFINITY)); in main() 86 expectFalse(isNaN64(Double.POSITIVE_INFINITY)); in main() 89 expectFalse(isNaN64(Double.longBitsToDouble(0x0008000000000000l))); in main() 90 expectFalse(isNaN64(Double.longBitsToDouble(0x8008000000000000l))); in main() 91 expectFalse(isNaN64(Double.longBitsToDouble(0x0000000000000001l))); in main() 92 expectFalse(isNaN64(Double.longBitsToDouble(0x8000000000000001l))); in main() 95 expectTrue(isNaN64(Double.NaN)); in main() 99 Double.longBitsToDouble(0x7ff0000000000001L), in main() 100 Double.longBitsToDouble(0x7ff4000000000000L), in main() [all …]
|
/art/test/703-floating-point-div/src/ |
D | Main.java | 38 double d4 = Double.MIN_NORMAL; in divDoubleTest() 39 double d5 = Double.POSITIVE_INFINITY; in divDoubleTest() 40 double d6 = Double.NEGATIVE_INFINITY; in divDoubleTest() 42 double d8 = Double.MAX_VALUE; in divDoubleTest() 43 double d9 = Double.MIN_VALUE; in divDoubleTest() 44 double dNaN = Double.NaN; in divDoubleTest() 46 expectEquals(Double.doubleToRawLongBits(dPi/d1), 0x1921fb54442d18L); in divDoubleTest() 47 expectEquals(Double.doubleToRawLongBits(dPi/d2), 0xbff921fb54442d18L); in divDoubleTest() 48 expectEquals(Double.doubleToRawLongBits(dPi/d3), 0x7ff0000000000000L); in divDoubleTest() 49 expectEquals(Double.doubleToRawLongBits(dPi/d4), 0x7fe921fb54442d18L); in divDoubleTest() [all …]
|
/art/test/082-inline-execute/src/ |
D | Main.java | 560 Math.min(1.0d, Double.NaN); 561 Assert.assertTrue(Double.isNaN(Math.min(1.0d, Double.NaN))); 562 Assert.assertTrue(Double.isNaN(Math.min(Double.NaN, 1.0d))); 569 Assert.assertEquals(Math.min(0.0d, Double.MAX_VALUE), 0.0d); 570 Assert.assertEquals(Math.min(Double.MIN_VALUE, 0.0d), 0.0d); 571 Assert.assertEquals(Math.min(Double.MIN_VALUE, Double.MAX_VALUE), Double.MIN_VALUE); 573 Assert.assertEquals(Math.min(Double.MIN_VALUE, Double.MIN_VALUE), Double.MIN_VALUE); 577 Math.max(1.0d, Double.NaN); 578 Assert.assertTrue(Double.isNaN(Math.max(1.0d, Double.NaN))); 579 Assert.assertTrue(Double.isNaN(Math.max(Double.NaN, 1.0d))); [all …]
|
/art/test/411-optimizing-arith/src/ |
D | MulTest.java | 147 expectNaN($opt$Mul(0D, Double.POSITIVE_INFINITY)); in mulDouble() 148 expectNaN($opt$Mul(0D, Double.NEGATIVE_INFINITY)); in mulDouble() 149 expectNaN($opt$Mul(Double.NaN, 11D)); in mulDouble() 150 expectNaN($opt$Mul(Double.NaN, -11D)); in mulDouble() 151 expectNaN($opt$Mul(Double.NaN, Double.NEGATIVE_INFINITY)); in mulDouble() 152 expectNaN($opt$Mul(Double.NaN, Double.POSITIVE_INFINITY)); in mulDouble() 154 expectEquals(Double.POSITIVE_INFINITY, $opt$Mul(2D, 1.79769313486231570e+308)); in mulDouble() 155 expectEquals(Double.POSITIVE_INFINITY, $opt$Mul(2D, Double.POSITIVE_INFINITY)); in mulDouble() 156 expectEquals(Double.NEGATIVE_INFINITY, $opt$Mul(-2D, Double.POSITIVE_INFINITY)); in mulDouble() 157 expectEquals(Double.NEGATIVE_INFINITY, $opt$Mul(-2D, 1.79769313486231570e+308)); in mulDouble() [all …]
|
D | SubTest.java | 139 expectNaN($opt$Sub(Double.NEGATIVE_INFINITY, Double.NEGATIVE_INFINITY)); in subDouble() 140 expectNaN($opt$Sub(Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY)); in subDouble() 141 expectNaN($opt$Sub(Double.NaN, 11D)); in subDouble() 142 expectNaN($opt$Sub(Double.NaN, -11D)); in subDouble() 143 expectNaN($opt$Sub(Double.NaN, Double.NEGATIVE_INFINITY)); in subDouble() 144 expectNaN($opt$Sub(Double.NaN, Double.POSITIVE_INFINITY)); in subDouble() 146 expectEquals(Double.NEGATIVE_INFINITY, $opt$Sub(-Double.MAX_VALUE, Double.MAX_VALUE)); in subDouble() 147 expectEquals(Double.NEGATIVE_INFINITY, $opt$Sub(2D, Double.POSITIVE_INFINITY)); in subDouble() 148 expectEquals(Double.POSITIVE_INFINITY, $opt$Sub(Double.MAX_VALUE, -Double.MAX_VALUE)); in subDouble() 149 expectEquals(Double.POSITIVE_INFINITY, $opt$Sub(2D, Double.NEGATIVE_INFINITY)); in subDouble() [all …]
|
D | NegTest.java | 53 if (!expected.equals(new Double(result).toString())) { in assertEquals() 65 if (!Double.isNaN(result)) { in assertIsNaN() 159 assertEquals(-Double.MIN_NORMAL, $opt$noinline$NegDouble(Double.MIN_NORMAL)); in negDouble() 160 assertEquals(Double.MIN_NORMAL, $opt$noinline$NegDouble(-Double.MIN_NORMAL)); in negDouble() 161 assertEquals(-Double.MIN_VALUE, $opt$noinline$NegDouble(Double.MIN_VALUE)); in negDouble() 162 assertEquals(Double.MIN_VALUE, $opt$noinline$NegDouble(-Double.MIN_VALUE)); in negDouble() 163 assertEquals(-Double.MAX_VALUE, $opt$noinline$NegDouble(Double.MAX_VALUE)); in negDouble() 164 assertEquals(Double.MAX_VALUE, $opt$noinline$NegDouble(-Double.MAX_VALUE)); in negDouble() 166 assertEquals(Double.NEGATIVE_INFINITY, $opt$noinline$NegDouble(Double.POSITIVE_INFINITY)); in negDouble() 167 assertEquals(Double.POSITIVE_INFINITY, $opt$noinline$NegDouble(Double.NEGATIVE_INFINITY)); in negDouble() [all …]
|
/art/test/645-checker-abs-simd/src/ |
D | Main.java | 317 xd[0] = Double.longBitsToDouble(0x7ff0000000000001L); in main() 318 xd[1] = Double.longBitsToDouble(0x7ff4000000000000L); in main() 319 xd[2] = Double.longBitsToDouble(0x7ff8000000000000L); in main() 320 xd[3] = Double.longBitsToDouble(0x7fffffffffffffffL); in main() 321 xd[4] = Double.longBitsToDouble(0xfff0000000000001L); in main() 322 xd[5] = Double.longBitsToDouble(0xfff4000000000000L); in main() 323 xd[6] = Double.longBitsToDouble(0xfff8000000000000L); in main() 324 xd[7] = Double.longBitsToDouble(0xffffffffffffffffL); in main() 325 xd[8] = Double.NEGATIVE_INFINITY; in main() 332 xd[15] = Double.POSITIVE_INFINITY; in main() [all …]
|
/art/test/577-checker-fp2int/src/ |
D | Main.java | 44 return Double.doubleToLongBits(d); in d2long() 77 expectEquals64(0xfff0000000000000L, d2long(Double.NEGATIVE_INFINITY)); in main() 82 expectEquals64(0x7ff0000000000000L, d2long(Double.POSITIVE_INFINITY)); in main() 86 expectEquals64(l, d2long(Double.longBitsToDouble(l))); in main() 91 Double.longBitsToDouble(0x7ff0000000000001L), in main() 92 Double.longBitsToDouble(0x7ff4000000000000L), in main() 93 Double.longBitsToDouble(0x7ff8000000000000L), in main() 94 Double.longBitsToDouble(0x7fffffffffffffffL), in main() 95 Double.longBitsToDouble(0xfff0000000000001L), in main() 96 Double.longBitsToDouble(0xfff4000000000000L), in main() [all …]
|
/art/test/580-checker-round/src/ |
D | Main.java | 114 expectEquals64(-9223372036854775808L, round64(Double.NEGATIVE_INFINITY)); in main() 128 expectEquals64(9223372036854775807L, round64(Double.POSITIVE_INFINITY)); in main() 132 round64(Math.nextAfter(-9223372036854775808.0, Double.NEGATIVE_INFINITY))); in main() 135 round64(Math.nextAfter(-9223372036854775809.0, Double.POSITIVE_INFINITY))); in main() 139 round64(Math.nextAfter(9223372036854775808.0, Double.NEGATIVE_INFINITY))); in main() 142 round64(Math.nextAfter(9223372036854775808.0, Double.POSITIVE_INFINITY))); in main() 152 for (double d = -1.5d; d <= -1.49999999999d; d = Math.nextAfter(d, Double.POSITIVE_INFINITY)) { in main() 183 Double.longBitsToDouble(0x7ff0000000000001L), in main() 184 Double.longBitsToDouble(0x7ff4000000000000L), in main() 185 Double.longBitsToDouble(0x7ff8000000000000L), in main() [all …]
|
/art/test/432-optimizing-cmp/src/ |
D | Main.java | 91 expectLt(Double.MIN_VALUE, Double.MAX_VALUE); in cmpDouble() 92 expectGt(Double.MAX_VALUE, Double.MIN_VALUE); in cmpDouble() 93 expectFalse(3.1D, Double.NaN); in cmpDouble() 94 expectFalse(Double.NaN, 3.1D); in cmpDouble() 103 expectEquals(-1, smaliCmpGtDouble(Double.MIN_VALUE, Double.MAX_VALUE)); in cmpDouble() 104 expectEquals(1, smaliCmpGtDouble(Double.MAX_VALUE, Double.MIN_VALUE)); in cmpDouble() 105 expectEquals(0, smaliCmpGtDouble(Double.MIN_VALUE, Double.MIN_VALUE)); in cmpDouble() 106 expectEquals(0, smaliCmpGtDouble(Double.MAX_VALUE, Double.MAX_VALUE)); in cmpDouble() 107 expectEquals(1, smaliCmpGtDouble(5D, Double.NaN)); in cmpDouble() 108 expectEquals(1, smaliCmpGtDouble(Double.NaN, 5D)); in cmpDouble() [all …]
|
/art/test/041-narrowing/src/ |
D | Main.java | 10 + Long.toHexString(Double.doubleToRawLongBits(Double.POSITIVE_INFINITY))); in test_printNarrowing() 12 + Long.toHexString(Double.doubleToRawLongBits(Double.NEGATIVE_INFINITY))); in test_printNarrowing() 14 + Long.toHexString(Double.doubleToRawLongBits(Float.POSITIVE_INFINITY))); in test_printNarrowing() 16 + Long.toHexString(Double.doubleToRawLongBits(Float.NEGATIVE_INFINITY))); in test_printNarrowing() 18 + Long.toHexString(Double.doubleToRawLongBits(Double.NaN))); in test_printNarrowing() 20 + Long.toHexString(Double.doubleToRawLongBits(Float.NaN))); in test_printNarrowing() 21 double dbl2 = Double.NaN; in test_printNarrowing() 49 double dbl3 = Double.POSITIVE_INFINITY; in test_printNarrowing() 61 double dbl4 = Double.NEGATIVE_INFINITY; in test_printNarrowing()
|
/art/test/631-checker-fp-abs/src/ |
D | Main.java | 105 for (double d = -1.5d; d <= -1.49999999999d; d = Math.nextAfter(d, Double.POSITIVE_INFINITY)) { in main() 108 for (double d = 1.49999999999d; d <= 1.5; d = Math.nextAfter(d, Double.POSITIVE_INFINITY)) { in main() 113 expectEquals64(0L, Double.doubleToRawLongBits($opt$noinline$absDP(+0.0f))); in main() 114 expectEquals64(0L, Double.doubleToRawLongBits($opt$noinline$absDP(-0.0f))); in main() 117 expectEqualsDP(Double.POSITIVE_INFINITY, $opt$noinline$absDP(Double.NEGATIVE_INFINITY)); in main() 118 expectEqualsDP(Double.POSITIVE_INFINITY, $opt$noinline$absDP(Double.POSITIVE_INFINITY)); in main() 132 double d = Double.longBitsToDouble(dpnans[i]); in main() 135 Double.doubleToRawLongBits($opt$noinline$absDP(d))); in main()
|
/art/test/904-object-allocation/ |
D | expected.txt | 4 [ObjectAllocated type java.lang.Double/java.lang.Double size 16] 6 [ObjectAllocated type java.lang.Double/java.lang.Double size 16]
|
/art/test/690-hiddenapi-same-name-methods/src-ex/ |
D | SpecificClass.java | 17 public class SpecificClass implements GenericInterface<Double> { 18 public Double foo() { in foo()
|
/art/test/952-invoke-custom/ |
D | expected.txt | 18 Linking _multiply (Double,Double,Double,Double,Double,Double)Double
|
/art/test/044-proxy/src/ |
D | ReturnsAndArgPassing.java | 175 myHandler.returnType = Double.class; in testProxyReturns() 176 check(proxyMyInterface.doubleFoo() == Double.MAX_VALUE); in testProxyReturns() 180 check(proxyMyInterface.doubleBar() == Double.MIN_VALUE); in testProxyReturns() 318 myHandler.returnType = Double.class; // Double -> byte == fail in testProxyReturns() 448 Float.MAX_VALUE, Double.MAX_VALUE, Object.class) == 0); in testProxyArgPassing() 450 Float.MAX_VALUE, Double.MAX_VALUE, Object.class) == Integer.MAX_VALUE); in testProxyArgPassing() 452 Float.MAX_VALUE, Double.MAX_VALUE, Object.class) == Long.MAX_VALUE); in testProxyArgPassing() 454 Float.MAX_VALUE, Double.MAX_VALUE, Object.class) == Float.MAX_VALUE); in testProxyArgPassing() 455 check((Double)proxyMyInterface.selectArg(4, Integer.MAX_VALUE, Long.MAX_VALUE, in testProxyArgPassing() 456 Float.MAX_VALUE, Double.MAX_VALUE, Object.class) == Double.MAX_VALUE); in testProxyArgPassing() [all …]
|
/art/test/712-varhandle-invocations/src/ |
D | SampleValues.java | 63 public static final Double[] DOUBLES = 64 new Double[] {-1.0e-200, 1.11e200, 3.141, 1.1111, 6.022e23, 6.626e-34}; 126 public static Double get_Double(int index) { in get_Double()
|
/art/test/004-ThreadStress/src-art/ |
D | Main.java | 327 private final static Map<Operation, Double> createDefaultFrequencyMap(Object lock, in createDefaultFrequencyMap() 329 Map<Operation, Double> frequencyMap = new HashMap<Operation, Double>(); in createDefaultFrequencyMap() 346 private final static Map<Operation, Double> createAllocFrequencyMap() { in createAllocFrequencyMap() 347 Map<Operation, Double> frequencyMap = new HashMap<Operation, Double>(); in createAllocFrequencyMap() 356 private final static Map<Operation, Double> createLockFrequencyMap(Object lock) { in createLockFrequencyMap() 357 Map<Operation, Double> frequencyMap = new HashMap<Operation, Double>(); in createLockFrequencyMap() 372 private static Map<Operation, Double> updateFrequencyMap(Map<Operation, Double> in, in updateFrequencyMap() 380 d = Double.parseDouble(split[1]); in updateFrequencyMap() 419 in = new HashMap<Operation, Double>(); in updateFrequencyMap() 426 private static void normalize(Map<Operation, Double> map) { in normalize() [all …]
|
/art/test/684-checker-simd-dotprod/src/other/ |
D | TestFloatDouble.java | 56 if (Double.compare(expected, result) != 0) { in expectEquals() 64 final double MAX_D = Double.MAX_VALUE; in run() 65 final double MIN_D = Double.MIN_VALUE; in run()
|
/art/test/438-volatile/src/ |
D | Main.java | 27 checkVolatileUpdate(Double.MAX_VALUE); in main() 28 checkVolatileUpdate(-Double.MAX_VALUE); in main()
|