Home
last modified time | relevance | path

Searched refs:assertDoubleEquals (Results 1 – 4 of 4) 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/458-checker-instruction-simplification/src/
DMain.java45 public static void assertDoubleEquals(double expected, double result) { in assertDoubleEquals() method in Main
1719 assertDoubleEquals(Div2(150.0), 75.0); in main()
1721 assertDoubleEquals(DivMP25(150.0), -600.0); in main()
1775 assertDoubleEquals((double) 0x12345678, longToIntToDouble(0x1234567812345678L)); in main()
1776 assertDoubleEquals(0.0, longToIntToDouble(Long.MIN_VALUE)); in main()
1777 assertDoubleEquals(-1.0, longToIntToDouble(Long.MAX_VALUE)); in main()
1807 assertDoubleEquals(0.0, shortAnd0xffffToShortToDouble((short) 0)); in main()
1808 assertDoubleEquals(1.0, shortAnd0xffffToShortToDouble((short) 1)); in main()
1809 assertDoubleEquals(-2.0, shortAnd0xffffToShortToDouble((short) -2)); in main()
1810 assertDoubleEquals(12345.0, shortAnd0xffffToShortToDouble((short) 12345)); in main()
[all …]
/art/test/442-checker-constant-folding/src/
DMain.java48 public static void assertDoubleEquals(double expected, double result) { in assertDoubleEquals() method in Main
1534 assertDoubleEquals(-42D, DoubleNegation()); in main()
1540 assertDoubleEquals(3D, DoubleAddition()); in main()
1545 assertDoubleEquals(4D, DoubleSubtraction()); in main()
1550 assertDoubleEquals(21D, DoubleMultiplication()); in main()
1555 assertDoubleEquals(3.2D, DoubleDivision()); in main()
1560 assertDoubleEquals(0.5D, DoubleRemainder()); in main()
1634 assertDoubleEquals(33, ReturnDouble33()); in main()
1635 assertDoubleEquals(34, ReturnDouble34()); in main()
1636 assertDoubleEquals(99.25, ReturnDouble99P25()); in main()
/art/test/530-checker-lse/src/
DMain.java701 public static void assertDoubleEquals(double result, double expected) { in assertDoubleEquals() method in Main
708 assertDoubleEquals(Math.PI * Math.PI * Math.PI, calcCircleArea(Math.PI)); in main()