Home
last modified time | relevance | path

Searched refs:assertFloatEquals (Results 1 – 3 of 3) sorted by relevance

/art/test/422-type-conversion/src/
DMain.java53 public static void assertFloatEquals(float expected, float result) { in assertFloatEquals() method in Main
186 assertFloatEquals(1F, $opt$ByteToFloat((byte)1)); in byteToFloat()
187 assertFloatEquals(0F, $opt$ByteToFloat((byte)0)); in byteToFloat()
188 assertFloatEquals(-1F, $opt$ByteToFloat((byte)-1)); in byteToFloat()
189 assertFloatEquals(51F, $opt$ByteToFloat((byte)51)); in byteToFloat()
190 assertFloatEquals(-51F, $opt$ByteToFloat((byte)-51)); in byteToFloat()
191 assertFloatEquals(127F, $opt$ByteToFloat((byte)127)); // 2^7 - 1 in byteToFloat()
192 assertFloatEquals(-127F, $opt$ByteToFloat((byte)-127)); // -(2^7 - 1) in byteToFloat()
193 assertFloatEquals(-128F, $opt$ByteToFloat((byte)-128)); // -(2^7) in byteToFloat()
197 assertFloatEquals(1F, $opt$ShortToFloat((short)1)); in shortToFloat()
[all …]
/art/test/477-long-to-float-conversion-precision/src/
DMain.java21 public static void assertFloatEquals(float expected, float result) { in assertFloatEquals() method in Main
36 assertFloatEquals(Float.intBitsToFloat(-555858671), $opt$LongToFloat(-8008112895877447681L)); in longToFloat()
/art/test/458-checker-instruction-simplification/src/
DMain.java37 public static void assertFloatEquals(float expected, float result) { in assertFloatEquals() method in Main
1077 assertFloatEquals(Div2(100.0f), 50.0f); in main()
1079 assertFloatEquals(DivMP25(100.0f), -400.0f); in main()