Searched defs:smaliNotInt (Results 1 - 1 of 1) sorted by relevance

/art/test/416-optimizing-arith-not/src/
H A DMain.java39 expectEquals(1, smaliNotInt(-2));
40 expectEquals(0, smaliNotInt(-1));
41 expectEquals(-1, smaliNotInt(0));
42 expectEquals(-2, smaliNotInt(1));
43 expectEquals(2147483647, smaliNotInt(-2147483648)); // -(2^31)
44 expectEquals(2147483646, smaliNotInt(-2147483647)); // -(2^31 - 1)
45 expectEquals(-2147483647, smaliNotInt(2147483646)); // 2^31 - 2
46 expectEquals(-2147483648, smaliNotInt(2147483647)); // 2^31 - 1
66 private static int smaliNotInt(int a) throws Exception { method in class:Main

Completed in 48 milliseconds