Home
last modified time | relevance | path

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

/art/test/565-checker-rotate/src-art/
DMain.java157 private static int rotateRightShort(short value, int distance) { in rotateRightShort() method in Main
387 expectEqualsInt(0xFFFF8000, rotateRightShort((short)0x8000, 0)); in testRotateRightShort()
388 expectEqualsInt(0x7FFFC000, rotateRightShort((short)0x8000, 1)); in testRotateRightShort()
389 expectEqualsInt(0xFFFF0001, rotateRightShort((short)0x8000, 31)); in testRotateRightShort()
390 expectEqualsInt(0xFFFF8000, rotateRightShort((short)0x8000, 32)); // overshoot in testRotateRightShort()
391 expectEqualsInt(0xFFFFC000, rotateRightShort((short)0x8001, 1)); in testRotateRightShort()
392 expectEqualsInt(0x7FFFE000, rotateRightShort((short)0x8001, 2)); in testRotateRightShort()
393 expectEqualsInt(0x40000123, rotateRightShort((short)0x1234, 4)); in testRotateRightShort()
394 expectEqualsInt(0xBCFFFF9A, rotateRightShort((short)0x9ABC, 8)); in testRotateRightShort()
397 expectEqualsInt(0x00000000, rotateRightShort((short)0x0000, i)); in testRotateRightShort()
[all …]