OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:intToShort
(Results
1 - 3
of
3
) sorted by null
/art/test/551-checker-shifter-operand/src/
Main.java
67
static short $noinline$
intToShort
(int v) { if (doThrow) throw new Error(); return (short)v; }
230
assertIntEquals(-$noinline$IntShl(a, 8) | -$noinline$
intToShort
(a),
410
assertLongEquals(a + $noinline$
intToShort
(b), a + (short)b);
[
all
...]
/art/test/422-type-conversion/src/
Main.java
131
intToShort
();
558
private static void
intToShort
() {
559
assertShortEquals((short)1, $opt$noinline$
IntToShort
(1));
560
assertShortEquals((short)0, $opt$noinline$
IntToShort
(0));
561
assertShortEquals((short)-1, $opt$noinline$
IntToShort
(-1));
562
assertShortEquals((short)51, $opt$noinline$
IntToShort
(51));
563
assertShortEquals((short)-51, $opt$noinline$
IntToShort
(-51));
564
assertShortEquals((short)32767, $opt$noinline$
IntToShort
(32767)); // 2^15 - 1
565
assertShortEquals((short)-32767, $opt$noinline$
IntToShort
(-32767)); // -(2^15 - 1)
566
assertShortEquals((short)-32768, $opt$noinline$
IntToShort
(-32768)); // -(2^15
[
all
...]
/external/dexmaker/src/test/java/com/google/dexmaker/
DexMakerTest.java
560
Method
intToShort
= numericCastingMethod(int.class, short.class);
561
assertEquals((short) 0x1234,
intToShort
.invoke(null, 0x00001234));
562
assertEquals((short) 0x1234,
intToShort
.invoke(null, 0xabcd1234));
563
assertEquals((short) 0x1234,
intToShort
.invoke(null, 0xffff1234));
[
all
...]
Completed in 947 milliseconds