Searched refs:assertFloatEquals (Results 1 – 5 of 5) sorted by relevance
/art/test/422-type-conversion/src/ |
D | Main.java | 53 public static void assertFloatEquals(float expected, float result) { in assertFloatEquals() method in Main 186 assertFloatEquals(1F, $opt$noinline$ByteToFloat((byte)1)); in byteToFloat() 187 assertFloatEquals(0F, $opt$noinline$ByteToFloat((byte)0)); in byteToFloat() 188 assertFloatEquals(-1F, $opt$noinline$ByteToFloat((byte)-1)); in byteToFloat() 189 assertFloatEquals(51F, $opt$noinline$ByteToFloat((byte)51)); in byteToFloat() 190 assertFloatEquals(-51F, $opt$noinline$ByteToFloat((byte)-51)); in byteToFloat() 191 assertFloatEquals(127F, $opt$noinline$ByteToFloat((byte)127)); // 2^7 - 1 in byteToFloat() 192 assertFloatEquals(-127F, $opt$noinline$ByteToFloat((byte)-127)); // -(2^7 - 1) in byteToFloat() 193 assertFloatEquals(-128F, $opt$noinline$ByteToFloat((byte)-128)); // -(2^7) in byteToFloat() 197 assertFloatEquals(1F, $opt$noinline$ShortToFloat((short)1)); in shortToFloat() [all …]
|
/art/test/477-long-to-float-conversion-precision/src/ |
D | Main.java | 21 public static void assertFloatEquals(float expected, float result) { in assertFloatEquals() method in Main 35 assertFloatEquals(Float.intBitsToFloat(-555858671), $opt$LongToFloat(-8008112895877447681L)); in longToFloat()
|
/art/test/442-checker-constant-folding/src/ |
D | Main.java | 42 public static void assertFloatEquals(float expected, float result) { in assertFloatEquals() method in Main 1533 assertFloatEquals(-42F, FloatNegation()); in main() 1539 assertFloatEquals(3F, FloatAddition()); in main() 1544 assertFloatEquals(4F, FloatSubtraction()); in main() 1549 assertFloatEquals(21F, FloatMultiplication()); in main() 1554 assertFloatEquals(3.2F, FloatDivision()); in main() 1559 assertFloatEquals(0.5F, FloatRemainder()); in main() 1630 assertFloatEquals(33, ReturnFloat33()); in main() 1631 assertFloatEquals(34, ReturnFloat34()); in main() 1632 assertFloatEquals(99.25f, ReturnFloat99P25()); in main()
|
/art/test/530-checker-lse/src/ |
D | Main.java | 695 public static void assertFloatEquals(float result, float expected) { in assertFloatEquals() method in Main 740 assertFloatEquals(test19(fa1, fa2), 1.8f); in main() 741 assertFloatEquals(test20().i, 0); in main() 746 assertFloatEquals(test24(), 8.0f); in main()
|
/art/test/458-checker-instruction-simplification/src/ |
D | Main.java | 39 public static void assertFloatEquals(float expected, float result) { in assertFloatEquals() method in Main 1718 assertFloatEquals(Div2(100.0f), 50.0f); in main() 1720 assertFloatEquals(DivMP25(100.0f), -400.0f); in main()
|