Lines Matching refs:rotateRightInt
137 private static int rotateRightInt(int value, int distance) { in rotateRightInt() method in TestRotate
436 expectEqualsInt(0x80000000, rotateRightInt(0x80000000, 0)); in testRotateRightInt()
437 expectEqualsInt(0x40000000, rotateRightInt(0x80000000, 1)); in testRotateRightInt()
438 expectEqualsInt(0x00000001, rotateRightInt(0x80000000, 31)); in testRotateRightInt()
439 expectEqualsInt(0x80000000, rotateRightInt(0x80000000, 32)); // overshoot in testRotateRightInt()
440 expectEqualsInt(0xC0000000, rotateRightInt(0x80000001, 1)); in testRotateRightInt()
441 expectEqualsInt(0x60000000, rotateRightInt(0x80000001, 2)); in testRotateRightInt()
442 expectEqualsInt(0x81234567, rotateRightInt(0x12345678, 4)); in testRotateRightInt()
443 expectEqualsInt(0xF09ABCDE, rotateRightInt(0x9ABCDEF0, 8)); in testRotateRightInt()
446 expectEqualsInt(0x00000000, rotateRightInt(0x00000000, i)); in testRotateRightInt()
447 expectEqualsInt(0xFFFFFFFF, rotateRightInt(0xFFFFFFFF, i)); in testRotateRightInt()
448 expectEqualsInt(0x80000000 >>> j, rotateRightInt(0x80000000, i)); in testRotateRightInt()
449 expectEqualsInt((0x12345678 >>> j) | (0x12345678 << -j), rotateRightInt(0x12345678, i)); in testRotateRightInt()