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/dexmaker-tests/src/androidTest/java/com/android/dx/
DexMakerTest.java
724
Method
doubleToInt
= numericCastingMethod(double.class, int.class);
725
assertEquals(0,
doubleToInt
.invoke(null, 0.0));
726
assertEquals(-1,
doubleToInt
.invoke(null, -1.0));
727
assertEquals(Integer.MAX_VALUE,
doubleToInt
.invoke(null, 10e15));
728
assertEquals(0,
doubleToInt
.invoke(null, 0.5));
729
assertEquals(Integer.MIN_VALUE,
doubleToInt
.invoke(null, Double.NEGATIVE_INFINITY));
730
assertEquals(0,
doubleToInt
.invoke(null, Double.NaN));
[
all
...]
/art/test/422-type-conversion/src/
Main.java
116
doubleToInt
();
426
private static void
doubleToInt
() {
427
assertIntEquals(1, $opt$noinline$
DoubleToInt
(1D));
428
assertIntEquals(0, $opt$noinline$
DoubleToInt
(0D));
429
assertIntEquals(0, $opt$noinline$
DoubleToInt
(-0D));
430
assertIntEquals(-1, $opt$noinline$
DoubleToInt
(-1D));
431
assertIntEquals(51, $opt$noinline$
DoubleToInt
(51D));
432
assertIntEquals(-51, $opt$noinline$
DoubleToInt
(-51D));
433
assertIntEquals(0, $opt$noinline$
DoubleToInt
(0.5D));
434
assertIntEquals(0, $opt$noinline$
DoubleToInt
(0.4999999D))
[
all
...]
Completed in 3055 milliseconds