Searched refs:rotateLeftShort (Results 1 – 1 of 1) sorted by relevance
/art/test/565-checker-rotate/src/ |
D | Main.java | 107 private static int rotateLeftShort(short value, int distance) { in rotateLeftShort() method in Main 392 expectEqualsInt(0x00000001, rotateLeftShort((short)0x0001, 0)); in testRotateLeftShort() 393 expectEqualsInt(0x00000002, rotateLeftShort((short)0x0001, 1)); in testRotateLeftShort() 394 expectEqualsInt(0x80000000, rotateLeftShort((short)0x0001, 31)); in testRotateLeftShort() 395 expectEqualsInt(0x00000001, rotateLeftShort((short)0x0001, 32)); // overshoot in testRotateLeftShort() 396 expectEqualsInt(0xFFFF0003, rotateLeftShort((short)0x8001, 1)); in testRotateLeftShort() 397 expectEqualsInt(0xFFFE0007, rotateLeftShort((short)0x8001, 2)); in testRotateLeftShort() 398 expectEqualsInt(0x00012340, rotateLeftShort((short)0x1234, 4)); in testRotateLeftShort() 399 expectEqualsInt(0xFF9ABCFF, rotateLeftShort((short)0x9ABC, 8)); in testRotateLeftShort() 402 expectEqualsInt(0x00000000, rotateLeftShort((short)0x0000, i)); in testRotateLeftShort() [all …]
|