Lines Matching refs:rotateLeftShort
43 private static int rotateLeftShort(short value, int distance) { in rotateLeftShort() method in TestRotate
257 expectEqualsInt(0x00000001, rotateLeftShort((short)0x0001, 0)); in testRotateLeftShort()
258 expectEqualsInt(0x00000002, rotateLeftShort((short)0x0001, 1)); in testRotateLeftShort()
259 expectEqualsInt(0x80000000, rotateLeftShort((short)0x0001, 31)); in testRotateLeftShort()
260 expectEqualsInt(0x00000001, rotateLeftShort((short)0x0001, 32)); // overshoot in testRotateLeftShort()
261 expectEqualsInt(0xFFFF0003, rotateLeftShort((short)0x8001, 1)); in testRotateLeftShort()
262 expectEqualsInt(0xFFFE0007, rotateLeftShort((short)0x8001, 2)); in testRotateLeftShort()
263 expectEqualsInt(0x00012340, rotateLeftShort((short)0x1234, 4)); in testRotateLeftShort()
264 expectEqualsInt(0xFF9ABCFF, rotateLeftShort((short)0x9ABC, 8)); in testRotateLeftShort()
267 expectEqualsInt(0x00000000, rotateLeftShort((short)0x0000, i)); in testRotateLeftShort()
268 expectEqualsInt(0xFFFFFFFF, rotateLeftShort((short)0xFFFF, i)); in testRotateLeftShort()
269 expectEqualsInt((1 << j), rotateLeftShort((short)0x0001, i)); in testRotateLeftShort()
270 expectEqualsInt((0x1234 << j) | (0x1234 >>> -j), rotateLeftShort((short)0x1234, i)); in testRotateLeftShort()