Lines Matching refs:rotateLeftByte
29 private static int rotateLeftByte(byte value, int distance) { in rotateLeftByte() method in TestRotate
239 expectEqualsInt(0x00000001, rotateLeftByte((byte)0x01, 0)); in testRotateLeftByte()
240 expectEqualsInt(0x00000002, rotateLeftByte((byte)0x01, 1)); in testRotateLeftByte()
241 expectEqualsInt(0x80000000, rotateLeftByte((byte)0x01, 31)); in testRotateLeftByte()
242 expectEqualsInt(0x00000001, rotateLeftByte((byte)0x01, 32)); // overshoot in testRotateLeftByte()
243 expectEqualsInt(0xFFFFFF03, rotateLeftByte((byte)0x81, 1)); in testRotateLeftByte()
244 expectEqualsInt(0xFFFFFE07, rotateLeftByte((byte)0x81, 2)); in testRotateLeftByte()
245 expectEqualsInt(0x00000120, rotateLeftByte((byte)0x12, 4)); in testRotateLeftByte()
246 expectEqualsInt(0xFFFF9AFF, rotateLeftByte((byte)0x9A, 8)); in testRotateLeftByte()
249 expectEqualsInt(0x00000000, rotateLeftByte((byte)0x0000, i)); in testRotateLeftByte()
250 expectEqualsInt(0xFFFFFFFF, rotateLeftByte((byte)0xFFFF, i)); in testRotateLeftByte()
251 expectEqualsInt((1 << j), rotateLeftByte((byte)0x0001, i)); in testRotateLeftByte()
252 expectEqualsInt((0x12 << j) | (0x12 >>> -j), rotateLeftByte((byte)0x12, i)); in testRotateLeftByte()