HomeSort by relevance Sort by last modified time
    Searched refs:shortToLong (Results 1 - 2 of 2) sorted by null

  /art/test/551-checker-shifter-operand/src/
Main.java 64 static long $noinline$shortToLong (short v) { if (doThrow) throw new Error(); return (long)v; }
365 assertLongEquals(a + $noinline$shortToLong (b), a + (long)b);
    [all...]
  /art/test/422-type-conversion/src/
Main.java 81 shortToLong();
151 private static void shortToLong() {
152 assertLongEquals(1L, $opt$noinline$ShortToLong((short)1));
153 assertLongEquals(0L, $opt$noinline$ShortToLong((short)0));
154 assertLongEquals(-1L, $opt$noinline$ShortToLong((short)-1));
155 assertLongEquals(51L, $opt$noinline$ShortToLong((short)51));
156 assertLongEquals(-51L, $opt$noinline$ShortToLong((short)-51));
157 assertLongEquals(32767L, $opt$noinline$ShortToLong((short)32767)); // 2^15 - 1
158 assertLongEquals(-32767L, $opt$noinline$ShortToLong((short)-32767)); // -(2^15 - 1)
159 assertLongEquals(-32768L, $opt$noinline$ShortToLong((short)-32768)); // -(2^15
    [all...]

Completed in 186 milliseconds