OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:intToFloat
(Results
1 - 2
of
2
) sorted by null
/art/test/422-type-conversion/src/
Main.java
88
intToFloat
();
207
private static void
intToFloat
() {
208
assertFloatEquals(1F, $opt$noinline$
IntToFloat
(1));
209
assertFloatEquals(0F, $opt$noinline$
IntToFloat
(0));
210
assertFloatEquals(-1F, $opt$noinline$
IntToFloat
(-1));
211
assertFloatEquals(51F, $opt$noinline$
IntToFloat
(51));
212
assertFloatEquals(-51F, $opt$noinline$
IntToFloat
(-51));
213
assertFloatEquals(16777215F, $opt$noinline$
IntToFloat
(16777215)); // 2^24 - 1
214
assertFloatEquals(-16777215F, $opt$noinline$
IntToFloat
(-16777215)); // -(2^24 - 1)
215
assertFloatEquals(16777216F, $opt$noinline$
IntToFloat
(16777216)); // 2^2
[
all
...]
/external/dexmaker/dexmaker-tests/src/androidTest/java/com/android/dx/
DexMakerTest.java
680
Method
intToFloat
= numericCastingMethod(int.class, float.class);
681
assertEquals(0.0f,
intToFloat
.invoke(null, 0));
682
assertEquals(-1.0f,
intToFloat
.invoke(null, -1));
683
assertEquals(16777216f,
intToFloat
.invoke(null, 16777216));
684
assertEquals(16777216f,
intToFloat
.invoke(null, 16777217)); // precision
[
all
...]
Completed in 2307 milliseconds