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
1572 assertDoubleEquals(-42D, DoubleNegation()); in main()
1580 assertDoubleEquals(3D, DoubleAddition()); in main()
1585 assertDoubleEquals(4D, DoubleSubtraction()); in main()
1590 assertDoubleEquals(21D, DoubleMultiplication()); in main()
1595 assertDoubleEquals(3.2D, DoubleDivision()); in main()
1600 assertDoubleEquals(0.5D, DoubleRemainder()); in main()
1695 assertDoubleEquals(33, ReturnDouble33()); in main()
1696 assertDoubleEquals(34, ReturnDouble34()); in main()
1697 assertDoubleEquals(99.25, ReturnDouble99P25()); in main()
/art/test/530-checker-lse/src/
DMain.java1150 static void assertDoubleEquals(double result, double expected) { in assertDoubleEquals() method in Main
1165 assertDoubleEquals(Math.PI * Math.PI * Math.PI, calcCircleArea(Math.PI)); in main()
1210 assertDoubleEquals(Math.PI * Math.PI * Math.PI, getCircleArea(Math.PI, true)); in main()
1211 assertDoubleEquals(0d, getCircleArea(Math.PI, false)); in main()
1216 assertDoubleEquals(Math.PI * Math.PI * Math.PI, testDeoptimize(iarray, darray, Math.PI)); in main()
1223 assertDoubleEquals(darray[0], Math.PI); in main()
1224 assertDoubleEquals(darray[1], Math.PI); in main()
1225 assertDoubleEquals(darray[2], Math.PI); in main()
/art/test/458-checker-instruct-simplification/src/
DMain.java45 public static void assertDoubleEquals(double expected, double result) { in assertDoubleEquals() method in Main
2592 assertDoubleEquals(75.0, $noinline$Div2(150.0)); in main()
2594 assertDoubleEquals(-600.0, $noinline$DivMP25(150.0)); in main()
2650 assertDoubleEquals((double) 0x12345678, $noinline$longToIntToDouble(0x1234567812345678L)); in main()
2651 assertDoubleEquals(0.0, $noinline$longToIntToDouble(Long.MIN_VALUE)); in main()
2652 assertDoubleEquals(-1.0, $noinline$longToIntToDouble(Long.MAX_VALUE)); in main()
2688 assertDoubleEquals(0.0, $noinline$shortAnd0xffffToShortToDouble((short) 0)); in main()
2689 assertDoubleEquals(1.0, $noinline$shortAnd0xffffToShortToDouble((short) 1)); in main()
2690 assertDoubleEquals(-2.0, $noinline$shortAnd0xffffToShortToDouble((short) -2)); in main()
2691 assertDoubleEquals(12345.0, $noinline$shortAnd0xffffToShortToDouble((short) 12345)); in main()
[all …]