OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:doubleToFloat
(Results
1 - 2
of
2
) sorted by null
/art/test/422-type-conversion/src/
Main.java
122
doubleToFloat
();
476
private static void
doubleToFloat
() {
477
assertFloatEquals(1F, $opt$noinline$
DoubleToFloat
(1D));
478
assertFloatEquals(0F, $opt$noinline$
DoubleToFloat
(0D));
479
assertFloatEquals(0F, $opt$noinline$
DoubleToFloat
(-0D));
480
assertFloatEquals(-1F, $opt$noinline$
DoubleToFloat
(-1D));
481
assertFloatEquals(51F, $opt$noinline$
DoubleToFloat
(51D));
482
assertFloatEquals(-51F, $opt$noinline$
DoubleToFloat
(-51D));
483
assertFloatEquals(0.5F, $opt$noinline$
DoubleToFloat
(0.5D));
484
assertFloatEquals(0.4999999F, $opt$noinline$
DoubleToFloat
(0.4999999D))
[
all
...]
/external/dexmaker/src/test/java/com/google/dexmaker/
DexMakerTest.java
644
Method
doubleToFloat
= numericCastingMethod(double.class, float.class);
645
assertEquals(0.0f,
doubleToFloat
.invoke(null, 0.0));
646
assertEquals(-1.0f,
doubleToFloat
.invoke(null, -1.0));
647
assertEquals(0.5f,
doubleToFloat
.invoke(null, 0.5));
648
assertEquals(Float.NEGATIVE_INFINITY,
doubleToFloat
.invoke(null, Double.NEGATIVE_INFINITY));
649
assertEquals(Float.NaN,
doubleToFloat
.invoke(null, Double.NaN));
[
all
...]
Completed in 40 milliseconds