OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:intToDouble
(Results
1 - 2
of
2
) sorted by null
/art/test/422-type-conversion/src/
Main.java
94
intToDouble
();
255
private static void
intToDouble
() {
256
assertDoubleEquals(1D, $opt$noinline$
IntToDouble
(1));
257
assertDoubleEquals(0D, $opt$noinline$
IntToDouble
(0));
258
assertDoubleEquals(-1D, $opt$noinline$
IntToDouble
(-1));
259
assertDoubleEquals(51D, $opt$noinline$
IntToDouble
(51));
260
assertDoubleEquals(-51D, $opt$noinline$
IntToDouble
(-51));
261
assertDoubleEquals(16777216D, $opt$noinline$
IntToDouble
(16777216)); // 2^24
262
assertDoubleEquals(-16777216D, $opt$noinline$
IntToDouble
(-16777216)); // -(2^24)
263
assertDoubleEquals(2147483647D, $opt$noinline$
IntToDouble
(2147483647)); // 2^31 -
[
all
...]
/external/dexmaker/src/test/java/com/google/dexmaker/
DexMakerTest.java
583
Method
intToDouble
= numericCastingMethod(int.class, double.class);
584
assertEquals(0.0,
intToDouble
.invoke(null, 0));
585
assertEquals(-1.0,
intToDouble
.invoke(null, -1));
586
assertEquals(16777216.0,
intToDouble
.invoke(null, 16777216));
587
assertEquals(16777217.0,
intToDouble
.invoke(null, 16777217));
[
all
...]
Completed in 2319 milliseconds