Lines Matching refs:rotateLeftInt
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()
439 expectEqualsInt(0xFFFFFFFF, rotateLeftInt(0xFFFFFFFF, i)); in testRotateLeftInt()
440 expectEqualsInt(1 << j, rotateLeftInt(0x00000001, i)); in testRotateLeftInt()
441 expectEqualsInt((0x12345678 << j) | (0x12345678 >>> -j), rotateLeftInt(0x12345678, i)); in testRotateLeftInt()