Home
last modified time | relevance | path

Searched refs:assertDoubleEquals (Results 1 – 5 of 5) sorted by relevance

/art/test/422-type-conversion/src/
DMain.java59 public static void assertDoubleEquals(double expected, double result) { in assertDoubleEquals() method in Main
234 assertDoubleEquals(1D, $opt$noinline$ByteToDouble((byte)1)); in byteToDouble()
235 assertDoubleEquals(0D, $opt$noinline$ByteToDouble((byte)0)); in byteToDouble()
236 assertDoubleEquals(-1D, $opt$noinline$ByteToDouble((byte)-1)); in byteToDouble()
237 assertDoubleEquals(51D, $opt$noinline$ByteToDouble((byte)51)); in byteToDouble()
238 assertDoubleEquals(-51D, $opt$noinline$ByteToDouble((byte)-51)); in byteToDouble()
239 assertDoubleEquals(127D, $opt$noinline$ByteToDouble((byte)127)); // 2^7 - 1 in byteToDouble()
240 assertDoubleEquals(-127D, $opt$noinline$ByteToDouble((byte)-127)); // -(2^7 - 1) in byteToDouble()
241 assertDoubleEquals(-128D, $opt$noinline$ByteToDouble((byte)-128)); // -(2^7) in byteToDouble()
245 assertDoubleEquals(1D, $opt$noinline$ShortToDouble((short)1)); in shortToDouble()
[all …]
/art/test/530-checker-lse-ctor-fences/src/
DMain.java175 static void assertDoubleEquals(double result, double expected) { in assertDoubleEquals() method in Main
188 assertDoubleEquals(Math.PI * Math.PI * Math.PI, calcCircleArea(Math.PI)); in main()
189 assertDoubleEquals(Math.PI * Math.PI * Math.PI, calcEllipseArea(Math.PI, Math.PI)); in main()
190 assertDoubleEquals(2 * Math.PI * Math.PI, calcCircleAreaOrCircumference(Math.PI, false)); in main()
191 assertDoubleEquals(2 * Math.PI * Math.PI, calcCircleAreaOrCircumferenceSmali(Math.PI, false)); in main()
/art/test/442-checker-constant-folding/src/
DMain.java48 public static void assertDoubleEquals(double expected, double result) { in assertDoubleEquals() method in Main
1529 assertDoubleEquals(-42D, DoubleNegation()); in main()
1537 assertDoubleEquals(3D, DoubleAddition()); in main()
1542 assertDoubleEquals(4D, DoubleSubtraction()); in main()
1547 assertDoubleEquals(21D, DoubleMultiplication()); in main()
1552 assertDoubleEquals(3.2D, DoubleDivision()); in main()
1557 assertDoubleEquals(0.5D, DoubleRemainder()); in main()
1633 assertDoubleEquals(33, ReturnDouble33()); in main()
1634 assertDoubleEquals(34, ReturnDouble34()); in main()
1635 assertDoubleEquals(99.25, ReturnDouble99P25()); in main()
/art/test/458-checker-instruct-simplification/src/
DMain.java45 public static void assertDoubleEquals(double expected, double result) { in assertDoubleEquals() method in Main
2657 assertDoubleEquals(75.0, $noinline$Div2(150.0)); in main()
2659 assertDoubleEquals(-600.0, $noinline$DivMP25(150.0)); in main()
2715 assertDoubleEquals((double) 0x12345678, $noinline$longToIntToDouble(0x1234567812345678L)); in main()
2716 assertDoubleEquals(0.0, $noinline$longToIntToDouble(Long.MIN_VALUE)); in main()
2717 assertDoubleEquals(-1.0, $noinline$longToIntToDouble(Long.MAX_VALUE)); in main()
2753 assertDoubleEquals(0.0, $noinline$shortAnd0xffffToShortToDouble((short) 0)); in main()
2754 assertDoubleEquals(1.0, $noinline$shortAnd0xffffToShortToDouble((short) 1)); in main()
2755 assertDoubleEquals(-2.0, $noinline$shortAnd0xffffToShortToDouble((short) -2)); in main()
2756 assertDoubleEquals(12345.0, $noinline$shortAnd0xffffToShortToDouble((short) 12345)); in main()
[all …]
/art/test/530-checker-lse/src/
DMain.java1152 static void assertDoubleEquals(double result, double expected) { in assertDoubleEquals() method in Main
1159 assertDoubleEquals(Math.PI * Math.PI * Math.PI, calcCircleArea(Math.PI)); in main()
1204 assertDoubleEquals(Math.PI * Math.PI * Math.PI, getCircleArea(Math.PI, true)); in main()
1205 assertDoubleEquals(0d, getCircleArea(Math.PI, false)); in main()
1210 assertDoubleEquals(Math.PI * Math.PI * Math.PI, testDeoptimize(iarray, darray, Math.PI)); in main()
1217 assertDoubleEquals(darray[0], Math.PI); in main()
1218 assertDoubleEquals(darray[1], Math.PI); in main()
1219 assertDoubleEquals(darray[2], Math.PI); in main()