Searched refs:rotateLeftChar (Results 1 – 1 of 1) sorted by relevance
/art/test/565-checker-rotate/src-art/ |
D | Main.java | 79 private static int rotateLeftChar(char value, int distance) { in rotateLeftChar() method in Main 305 expectEqualsInt(0x00000001, rotateLeftChar((char)0x0001, 0)); in testRotateLeftChar() 306 expectEqualsInt(0x00000002, rotateLeftChar((char)0x0001, 1)); in testRotateLeftChar() 307 expectEqualsInt(0x80000000, rotateLeftChar((char)0x0001, 31)); in testRotateLeftChar() 308 expectEqualsInt(0x00000001, rotateLeftChar((char)0x0001, 32)); // overshoot in testRotateLeftChar() 309 expectEqualsInt(0x00010002, rotateLeftChar((char)0x8001, 1)); in testRotateLeftChar() 310 expectEqualsInt(0x00020004, rotateLeftChar((char)0x8001, 2)); in testRotateLeftChar() 311 expectEqualsInt(0x00012340, rotateLeftChar((char)0x1234, 4)); in testRotateLeftChar() 312 expectEqualsInt(0x009ABC00, rotateLeftChar((char)0x9ABC, 8)); in testRotateLeftChar() 313 expectEqualsInt(0x00FF0000, rotateLeftChar((char)0xFF00, 8)); in testRotateLeftChar() [all …]
|