Home
last modified time | relevance | path

Searched refs:rotateLeftChar (Results 1 – 1 of 1) sorted by relevance

/art/test/565-checker-rotate/src/
DMain.java128 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()
[all …]