Searched refs:rotateLeftByte (Results 1 – 1 of 1) sorted by relevance
/art/test/565-checker-rotate/src-art/ |
D | Main.java | 39 private static int rotateLeftByte(byte value, int distance) { in rotateLeftByte() method in Main 269 expectEqualsInt(0x00000001, rotateLeftByte((byte)0x01, 0)); in testRotateLeftByte() 270 expectEqualsInt(0x00000002, rotateLeftByte((byte)0x01, 1)); in testRotateLeftByte() 271 expectEqualsInt(0x80000000, rotateLeftByte((byte)0x01, 31)); in testRotateLeftByte() 272 expectEqualsInt(0x00000001, rotateLeftByte((byte)0x01, 32)); // overshoot in testRotateLeftByte() 273 expectEqualsInt(0xFFFFFF03, rotateLeftByte((byte)0x81, 1)); in testRotateLeftByte() 274 expectEqualsInt(0xFFFFFE07, rotateLeftByte((byte)0x81, 2)); in testRotateLeftByte() 275 expectEqualsInt(0x00000120, rotateLeftByte((byte)0x12, 4)); in testRotateLeftByte() 276 expectEqualsInt(0xFFFF9AFF, rotateLeftByte((byte)0x9A, 8)); in testRotateLeftByte() 279 expectEqualsInt(0x00000000, rotateLeftByte((byte)0x0000, i)); in testRotateLeftByte() [all …]
|