Lines Matching refs:rotateRightChar
124 private static int rotateRightChar(char value, int distance) { in rotateRightChar() method in TestRotate
419 expectEqualsInt(0x00008000, rotateRightChar((char)0x8000, 0)); in testRotateRightChar()
420 expectEqualsInt(0x00004000, rotateRightChar((char)0x8000, 1)); in testRotateRightChar()
421 expectEqualsInt(0x00010000, rotateRightChar((char)0x8000, 31)); in testRotateRightChar()
422 expectEqualsInt(0x00008000, rotateRightChar((char)0x8000, 32)); // overshoot in testRotateRightChar()
423 expectEqualsInt(0x80004000, rotateRightChar((char)0x8001, 1)); in testRotateRightChar()
424 expectEqualsInt(0x40002000, rotateRightChar((char)0x8001, 2)); in testRotateRightChar()
425 expectEqualsInt(0x40000123, rotateRightChar((char)0x1234, 4)); in testRotateRightChar()
426 expectEqualsInt(0xBC00009A, rotateRightChar((char)0x9ABC, 8)); in testRotateRightChar()
429 expectEqualsInt(0x00000000, rotateRightChar((char)0x0000, i)); in testRotateRightChar()
430 expectEqualsInt(1 << (32 - j), rotateRightChar((char)0x0001, i)); in testRotateRightChar()
431 expectEqualsInt((0x1234 >>> j) | (0x1234 << -j), rotateRightChar((char)0x1234, i)); in testRotateRightChar()