Searched refs:rotateRightChar (Results 1 – 1 of 1) sorted by relevance
/art/test/565-checker-rotate/src/ |
D | Main.java | 278 private static int rotateRightChar(char value, int distance) { in rotateRightChar() method in Main 509 expectEqualsInt(0x00008000, rotateRightChar((char)0x8000, 0)); in testRotateRightChar() 510 expectEqualsInt(0x00004000, rotateRightChar((char)0x8000, 1)); in testRotateRightChar() 511 expectEqualsInt(0x00010000, rotateRightChar((char)0x8000, 31)); in testRotateRightChar() 512 expectEqualsInt(0x00008000, rotateRightChar((char)0x8000, 32)); // overshoot in testRotateRightChar() 513 expectEqualsInt(0x80004000, rotateRightChar((char)0x8001, 1)); in testRotateRightChar() 514 expectEqualsInt(0x40002000, rotateRightChar((char)0x8001, 2)); in testRotateRightChar() 515 expectEqualsInt(0x40000123, rotateRightChar((char)0x1234, 4)); in testRotateRightChar() 516 expectEqualsInt(0xBC00009A, rotateRightChar((char)0x9ABC, 8)); in testRotateRightChar() 519 expectEqualsInt(0x00000000, rotateRightChar((char)0x0000, i)); in testRotateRightChar() [all …]
|