OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:LongToFloat
(Results
1 - 2
of
2
) sorted by null
/art/test/477-long-to-float-conversion-precision/src/
Main.java
29
longToFloat
();
32
private static void
longToFloat
() {
35
assertFloatEquals(Float.intBitsToFloat(-555858671), $opt$
LongToFloat
(-8008112895877447681L));
39
static float $opt$
LongToFloat
(long a) { return (float)a; }
/art/test/422-type-conversion/src/
Main.java
101
longToFloat
();
306
private static void
longToFloat
() {
307
assertFloatEquals(1F, $opt$noinline$
LongToFloat
(1L));
308
assertFloatEquals(0F, $opt$noinline$
LongToFloat
(0L));
309
assertFloatEquals(-1F, $opt$noinline$
LongToFloat
(-1L));
310
assertFloatEquals(51F, $opt$noinline$
LongToFloat
(51L));
311
assertFloatEquals(-51F, $opt$noinline$
LongToFloat
(-51L));
312
assertFloatEquals(2147483647F, $opt$noinline$
LongToFloat
(2147483647L)); // 2^31 - 1
313
assertFloatEquals(-2147483647F, $opt$noinline$
LongToFloat
(-2147483647L)); // -(2^31 - 1)
314
assertFloatEquals(-2147483648F, $opt$noinline$
LongToFloat
(-2147483648L)); // -(2^31
[
all
...]
Completed in 755 milliseconds