Searched refs:rotateRightChar (Results 1 – 1 of 1) sorted by relevance
/art/test/565-checker-rotate/src-art/ |
D | Main.java | 176 private static int rotateRightChar(char value, int distance) { in rotateRightChar() method in Main 405 expectEqualsInt(0x00008000, rotateRightChar((char)0x8000, 0)); in testRotateRightChar() 406 expectEqualsInt(0x00004000, rotateRightChar((char)0x8000, 1)); in testRotateRightChar() 407 expectEqualsInt(0x00010000, rotateRightChar((char)0x8000, 31)); in testRotateRightChar() 408 expectEqualsInt(0x00008000, rotateRightChar((char)0x8000, 32)); // overshoot in testRotateRightChar() 409 expectEqualsInt(0x80004000, rotateRightChar((char)0x8001, 1)); in testRotateRightChar() 410 expectEqualsInt(0x40002000, rotateRightChar((char)0x8001, 2)); in testRotateRightChar() 411 expectEqualsInt(0x40000123, rotateRightChar((char)0x1234, 4)); in testRotateRightChar() 412 expectEqualsInt(0xBC00009A, rotateRightChar((char)0x9ABC, 8)); in testRotateRightChar() 415 expectEqualsInt(0x00000000, rotateRightChar((char)0x0000, i)); in testRotateRightChar() [all …]
|