Lines Matching defs:longToDouble
104 longToDouble();
326 private static void longToDouble() {
327 assertDoubleEquals(1D, $opt$noinline$LongToDouble(1L));
328 assertDoubleEquals(0D, $opt$noinline$LongToDouble(0L));
329 assertDoubleEquals(-1D, $opt$noinline$LongToDouble(-1L));
330 assertDoubleEquals(51D, $opt$noinline$LongToDouble(51L));
331 assertDoubleEquals(-51D, $opt$noinline$LongToDouble(-51L));
332 assertDoubleEquals(2147483647D, $opt$noinline$LongToDouble(2147483647L)); // 2^31 - 1
333 assertDoubleEquals(-2147483647D, $opt$noinline$LongToDouble(-2147483647L)); // -(2^31 - 1)
334 assertDoubleEquals(-2147483648D, $opt$noinline$LongToDouble(-2147483648L)); // -(2^31)
335 assertDoubleEquals(2147483648D, $opt$noinline$LongToDouble(2147483648L)); // (2^31)
336 assertDoubleEquals(-2147483649D, $opt$noinline$LongToDouble(-2147483649L)); // -(2^31 + 1)
337 assertDoubleEquals(4294967296D, $opt$noinline$LongToDouble(4294967296L)); // (2^32)
338 assertDoubleEquals(-4294967296D, $opt$noinline$LongToDouble
339 assertDoubleEquals(140739635871745D, $opt$noinline$LongToDouble(140739635871745L)); // 1 + 2^15 + 2^31 + 2^47
340 assertDoubleEquals(-140739635871745D, $opt$noinline$LongToDouble(-140739635871745L)); // -(1 + 2^15 + 2^31 + 2^47)
341 assertDoubleEquals(9223372036854775807D, $opt$noinline$LongToDouble(9223372036854775807L)); // 2^63 - 1
342 assertDoubleEquals(-9223372036854775807D, $opt$noinline$LongToDouble(-9223372036854775807L)); // -(2^63 - 1)
343 assertDoubleEquals(-9223372036854775808D, $opt$noinline$LongToDouble(-9223372036854775808L)); // -(2^63)
657 static double $opt$noinline$LongToDouble(long a) { if (doThrow) throw new Error(); return (double)a; }