OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:doubleToInt
(Results
1 - 2
of
2
) sorted by null
/external/dexmaker/src/test/java/com/google/dexmaker/
DexMakerTest.java
619
Method
doubleToInt
= numericCastingMethod(double.class, int.class);
620
assertEquals(0,
doubleToInt
.invoke(null, 0.0));
621
assertEquals(-1,
doubleToInt
.invoke(null, -1.0));
622
assertEquals(Integer.MAX_VALUE,
doubleToInt
.invoke(null, 10e15));
623
assertEquals(0,
doubleToInt
.invoke(null, 0.5));
624
assertEquals(Integer.MIN_VALUE,
doubleToInt
.invoke(null, Double.NEGATIVE_INFINITY));
625
assertEquals(0,
doubleToInt
.invoke(null, Double.NaN));
[
all
...]
/art/test/422-type-conversion/src/
Main.java
116
doubleToInt
();
424
private static void
doubleToInt
() {
425
assertIntEquals(1, $opt$noinline$
DoubleToInt
(1D));
426
assertIntEquals(0, $opt$noinline$
DoubleToInt
(0D));
427
assertIntEquals(0, $opt$noinline$
DoubleToInt
(-0D));
428
assertIntEquals(-1, $opt$noinline$
DoubleToInt
(-1D));
429
assertIntEquals(51, $opt$noinline$
DoubleToInt
(51D));
430
assertIntEquals(-51, $opt$noinline$
DoubleToInt
(-51D));
431
assertIntEquals(0, $opt$noinline$
DoubleToInt
(0.5D));
432
assertIntEquals(0, $opt$noinline$
DoubleToInt
(0.4999999D))
[
all
...]
Completed in 1134 milliseconds