Lines Matching refs:Integer

468     Assert.assertEquals(Math.abs(Integer.MAX_VALUE), Integer.MAX_VALUE);
469 Assert.assertEquals(Math.abs(Integer.MIN_VALUE), Integer.MIN_VALUE);
470 Assert.assertEquals(Math.abs(Integer.MIN_VALUE - 1), Integer.MAX_VALUE);
471 Assert.assertEquals(Math.abs(Integer.MIN_VALUE + 1), Integer.MAX_VALUE);
490 Assert.assertEquals(Math.min(0, Integer.MAX_VALUE), 0);
491 Assert.assertEquals(Math.min(Integer.MIN_VALUE, 0), Integer.MIN_VALUE);
492 Assert.assertEquals(Math.min(Integer.MIN_VALUE, Integer.MAX_VALUE), Integer.MIN_VALUE);
500 Assert.assertEquals(Math.max(0, Integer.MAX_VALUE), Integer.MAX_VALUE);
501 Assert.assertEquals(Math.max(Integer.MIN_VALUE, 0), 0);
502 Assert.assertEquals(Math.max(Integer.MIN_VALUE, Integer.MAX_VALUE), Integer.MAX_VALUE);
837 Assert.assertEquals(Math.round(Integer.MAX_VALUE + 1.0f), Integer.MAX_VALUE);
838 Assert.assertEquals(Math.round(Integer.MIN_VALUE - 1.0f), Integer.MIN_VALUE);
839 Assert.assertEquals(Math.round(Float.POSITIVE_INFINITY), Integer.MAX_VALUE);
840 Assert.assertEquals(Math.round(Float.NEGATIVE_INFINITY), Integer.MIN_VALUE);
948 Assert.assertEquals(StrictMath.abs(Integer.MAX_VALUE), Integer.MAX_VALUE);
949 Assert.assertEquals(StrictMath.abs(Integer.MIN_VALUE), Integer.MIN_VALUE);
950 Assert.assertEquals(StrictMath.abs(Integer.MIN_VALUE - 1), Integer.MAX_VALUE);
951 Assert.assertEquals(StrictMath.abs(Integer.MIN_VALUE + 1), Integer.MAX_VALUE);
969 Assert.assertEquals(StrictMath.min(0, Integer.MAX_VALUE), 0);
970 Assert.assertEquals(StrictMath.min(Integer.MIN_VALUE, 0), Integer.MIN_VALUE);
971 Assert.assertEquals(StrictMath.min(Integer.MIN_VALUE, Integer.MAX_VALUE), Integer.MIN_VALUE);
979 Assert.assertEquals(StrictMath.max(0, Integer.MAX_VALUE), Integer.MAX_VALUE);
980 Assert.assertEquals(StrictMath.max(Integer.MIN_VALUE, 0), 0);
981 Assert.assertEquals(StrictMath.max(Integer.MIN_VALUE, Integer.MAX_VALUE), Integer.MAX_VALUE);
1172 Assert.assertEquals(StrictMath.round(Integer.MAX_VALUE + 1.0f), Integer.MAX_VALUE);
1173 Assert.assertEquals(StrictMath.round(Integer.MIN_VALUE - 1.0f), Integer.MIN_VALUE);
1174 Assert.assertEquals(StrictMath.round(Float.POSITIVE_INFINITY), Integer.MAX_VALUE);
1175 Assert.assertEquals(StrictMath.round(Float.NEGATIVE_INFINITY), Integer.MIN_VALUE);
1231 Integer.reverseBytes(0x13579bdf);
1232 Assert.assertEquals(Integer.reverseBytes(0x00000000), 0x00000000);
1233 Assert.assertEquals(Integer.reverseBytes(0xffffffff), 0xffffffff);
1234 Assert.assertEquals(Integer.reverseBytes(0x80000000), 0x00000080);
1235 Assert.assertEquals(Integer.reverseBytes(0x00000080), 0x80000000);
1236 Assert.assertEquals(Integer.reverseBytes(0x01234567), 0x67452301);
1237 Assert.assertEquals(Integer.reverseBytes(0x89abcdef), 0xefcdab89);
1250 Integer.reverse(0x12345678);
1251 Assert.assertEquals(Integer.reverse(1), 0x80000000);
1252 Assert.assertEquals(Integer.reverse(-1), 0xffffffff);
1253 Assert.assertEquals(Integer.reverse(0), 0);
1254 Assert.assertEquals(Integer.reverse(0x12345678), 0x1e6a2c48);
1255 Assert.assertEquals(Integer.reverse(0x87654321), 0x84c2a6e1);
1256 Assert.assertEquals(Integer.reverse(Integer.MAX_VALUE), 0xfffffffe);
1257 Assert.assertEquals(Integer.reverse(Integer.MIN_VALUE), 1);
1320 Assert.assertEquals(Integer.numberOfLeadingZeros(0), Integer.SIZE);
1321 Assert.assertEquals(Integer.numberOfLeadingZeros(1), Integer.SIZE - 1);
1322 Assert.assertEquals(Integer.numberOfLeadingZeros(1 << (Integer.SIZE-1)), 0);
1323 Assert.assertEquals(Integer.numberOfLeadingZeros($noinline$return_int_zero()), Integer.SIZE);
1324 for (int i = 0; i < Integer.SIZE; i++) {
1325 Assert.assertEquals(Integer.numberOfLeadingZeros(1 << i), Integer.SIZE - 1 - i);
1326 Assert.assertEquals(Integer.numberOfLeadingZeros((1 << i) | 1), Integer.SIZE - 1 - i);
1327 Assert.assertEquals(Integer.numberOfLeadingZeros(0xFFFFFFFF >>> i), i);
1368 …new_non_movable_array = vm_runtime.getDeclaredMethod("newNonMovableArray", Class.class, Integer.TY…
1377 poke_int = io_memory.getDeclaredMethod("pokeInt", Long.TYPE, Integer.TYPE, Boolean.TYPE);
1485 Assert.assertEquals(Integer.numberOfTrailingZeros(0), Integer.SIZE);
1486 for (int i = 0; i < Integer.SIZE; i++) {
1488 Integer.numberOfTrailingZeros(0x80000000 >> i),
1489 Integer.SIZE - 1 - i);
1491 Integer.numberOfTrailingZeros((0x80000000 >> i) | 0x80000000),
1492 Integer.SIZE - 1 - i);
1493 Assert.assertEquals(Integer.numberOfTrailingZeros(1 << i), i);
1511 Assert.assertEquals(Integer.rotateRight(0x11, 0), 0x11);
1513 Assert.assertEquals(Integer.rotateRight(0x11, 1), 0x80000008);
1514 Assert.assertEquals(Integer.rotateRight(0x11, Integer.SIZE - 1), 0x22);
1515 Assert.assertEquals(Integer.rotateRight(0x11, Integer.SIZE), 0x11);
1516 Assert.assertEquals(Integer.rotateRight(0x11, Integer.SIZE + 1), 0x80000008);
1518 Assert.assertEquals(Integer.rotateRight(0x11, -1), 0x22);
1519 Assert.assertEquals(Integer.rotateRight(0x11, -(Integer.SIZE - 1)), 0x80000008);
1520 Assert.assertEquals(Integer.rotateRight(0x11, -Integer.SIZE), 0x11);
1521 Assert.assertEquals(Integer.rotateRight(0x11, -(Integer.SIZE + 1)), 0x22);
1523 Assert.assertEquals(Integer.rotateRight(0x80000000, 1), 0x40000000);
1525 for (int i = 0; i < Integer.SIZE; i++) {
1527 Integer.rotateRight(0xBBAAAADD, i),
1528 (0xBBAAAADD >>> i) | (0xBBAAAADD << (Integer.SIZE - i)));
1555 Assert.assertEquals(Integer.rotateLeft(0x11, 0), 0x11);
1557 Assert.assertEquals(Integer.rotateLeft(0x11, 1), 0x22);
1558 Assert.assertEquals(Integer.rotateLeft(0x11, Integer.SIZE - 1), 0x80000008);
1559 Assert.assertEquals(Integer.rotateLeft(0x11, Integer.SIZE), 0x11);
1560 Assert.assertEquals(Integer.rotateLeft(0x11, Integer.SIZE + 1), 0x22);
1562 Assert.assertEquals(Integer.rotateLeft(0x11, -1), 0x80000008);
1563 Assert.assertEquals(Integer.rotateLeft(0x11, -(Integer.SIZE - 1)), 0x22);
1564 Assert.assertEquals(Integer.rotateLeft(0x11, -Integer.SIZE), 0x11);
1565 Assert.assertEquals(Integer.rotateLeft(0x11, -(Integer.SIZE + 1)), 0x80000008);
1567 Assert.assertEquals(Integer.rotateLeft(0xC0000000, 1), 0x80000001);
1569 for (int i = 0; i < Integer.SIZE; i++) {
1571 Integer.rotateLeft(0xBBAAAADD, i),
1572 (0xBBAAAADD << i) | (0xBBAAAADD >>> (Integer.SIZE - i)));
1599 for (int i = 0; i < Integer.SIZE * 2; i++) {
1600 Assert.assertEquals(Integer.rotateLeft(0xBBAAAADD, i),
1601 Integer.rotateRight(0xBBAAAADD, -i));
1602 Assert.assertEquals(Integer.rotateLeft(0xBBAAAADD, -i),
1603 Integer.rotateRight(0xBBAAAADD, i));