HomeSort by relevance Sort by last modified time
    Searched refs:floatToInt (Results 1 - 2 of 2) sorted by null

  /external/dexmaker/dexmaker-tests/src/androidTest/java/com/android/dx/
DexMakerTest.java 708 Method floatToInt = numericCastingMethod(float.class, int.class);
709 assertEquals(0, floatToInt.invoke(null, 0.0f));
710 assertEquals(-1, floatToInt.invoke(null, -1.0f));
711 assertEquals(Integer.MAX_VALUE, floatToInt.invoke(null, 10e15f));
712 assertEquals(0, floatToInt.invoke(null, 0.5f));
713 assertEquals(Integer.MIN_VALUE, floatToInt.invoke(null, Float.NEGATIVE_INFINITY));
714 assertEquals(0, floatToInt.invoke(null, Float.NaN));
    [all...]
  /art/test/422-type-conversion/src/
Main.java 107 floatToInt();
346 private static void floatToInt() {
347 assertIntEquals(1, $opt$noinline$FloatToInt(1F));
348 assertIntEquals(0, $opt$noinline$FloatToInt(0F));
349 assertIntEquals(0, $opt$noinline$FloatToInt(-0F));
350 assertIntEquals(-1, $opt$noinline$FloatToInt(-1F));
351 assertIntEquals(51, $opt$noinline$FloatToInt(51F));
352 assertIntEquals(-51, $opt$noinline$FloatToInt(-51F));
353 assertIntEquals(0, $opt$noinline$FloatToInt(0.5F));
354 assertIntEquals(0, $opt$noinline$FloatToInt(0.4999999F))
    [all...]

Completed in 177 milliseconds