Searched refs:rotateRightByte (Results 1 – 1 of 1) sorted by relevance
/art/test/565-checker-rotate/src/ |
D | Main.java | 238 private static int rotateRightByte(byte value, int distance) { in rotateRightByte() method in Main 473 expectEqualsInt(0xFFFFFF80, rotateRightByte((byte)0x80, 0)); in testRotateRightByte() 474 expectEqualsInt(0x7FFFFFC0, rotateRightByte((byte)0x80, 1)); in testRotateRightByte() 475 expectEqualsInt(0xFFFFFF01, rotateRightByte((byte)0x80, 31)); in testRotateRightByte() 476 expectEqualsInt(0xFFFFFF80, rotateRightByte((byte)0x80, 32)); // overshoot in testRotateRightByte() 477 expectEqualsInt(0xFFFFFFC0, rotateRightByte((byte)0x81, 1)); in testRotateRightByte() 478 expectEqualsInt(0x7FFFFFE0, rotateRightByte((byte)0x81, 2)); in testRotateRightByte() 479 expectEqualsInt(0x20000001, rotateRightByte((byte)0x12, 4)); in testRotateRightByte() 480 expectEqualsInt(0x9AFFFFFF, rotateRightByte((byte)0x9A, 8)); in testRotateRightByte() 483 expectEqualsInt(0x00000000, rotateRightByte((byte)0x00, i)); in testRotateRightByte() [all …]
|