Lines Matching refs:rotateLeftChar
128 private static int rotateLeftChar(char value, int distance) { in rotateLeftChar() method in Main
410 expectEqualsInt(0x00000001, rotateLeftChar((char)0x0001, 0)); in testRotateLeftChar()
411 expectEqualsInt(0x00000002, rotateLeftChar((char)0x0001, 1)); in testRotateLeftChar()
412 expectEqualsInt(0x80000000, rotateLeftChar((char)0x0001, 31)); in testRotateLeftChar()
413 expectEqualsInt(0x00000001, rotateLeftChar((char)0x0001, 32)); // overshoot in testRotateLeftChar()
414 expectEqualsInt(0x00010002, rotateLeftChar((char)0x8001, 1)); in testRotateLeftChar()
415 expectEqualsInt(0x00020004, rotateLeftChar((char)0x8001, 2)); in testRotateLeftChar()
416 expectEqualsInt(0x00012340, rotateLeftChar((char)0x1234, 4)); in testRotateLeftChar()
417 expectEqualsInt(0x009ABC00, rotateLeftChar((char)0x9ABC, 8)); in testRotateLeftChar()
418 expectEqualsInt(0x00FF0000, rotateLeftChar((char)0xFF00, 8)); in testRotateLeftChar()
421 expectEqualsInt(0x00000000, rotateLeftChar((char)0x0000, i)); in testRotateLeftChar()
422 expectEqualsInt((1 << j), rotateLeftChar((char)0x0001, i)); in testRotateLeftChar()
423 expectEqualsInt((0x1234 << j) | (0x1234 >>> -j), rotateLeftChar((char)0x1234, i)); in testRotateLeftChar()