Searched refs:rotateLeftInt (Results 1 – 1 of 1) sorted by relevance
/art/test/565-checker-rotate/src/ |
D | Main.java | 149 private static int rotateLeftInt(int value, int distance) { in rotateLeftInt() method in Main 428 expectEqualsInt(0x00000001, rotateLeftInt(0x00000001, 0)); in testRotateLeftInt() 429 expectEqualsInt(0x00000002, rotateLeftInt(0x00000001, 1)); in testRotateLeftInt() 430 expectEqualsInt(0x80000000, rotateLeftInt(0x00000001, 31)); in testRotateLeftInt() 431 expectEqualsInt(0x00000001, rotateLeftInt(0x00000001, 32)); // overshoot in testRotateLeftInt() 432 expectEqualsInt(0x00000003, rotateLeftInt(0x80000001, 1)); in testRotateLeftInt() 433 expectEqualsInt(0x00000006, rotateLeftInt(0x80000001, 2)); in testRotateLeftInt() 434 expectEqualsInt(0x23456781, rotateLeftInt(0x12345678, 4)); in testRotateLeftInt() 435 expectEqualsInt(0xBCDEF09A, rotateLeftInt(0x9ABCDEF0, 8)); in testRotateLeftInt() 438 expectEqualsInt(0x00000000, rotateLeftInt(0x00000000, i)); in testRotateLeftInt() [all …]
|