integer to shift
number of bits to shift
test rotateRight
1 t { 2 ubyte b0 = 0b00000101; 3 ubyte b1 = 0b10000010; 4 ubyte b2 = 0b01000001; 5 ubyte b7 = 0b00001010; 6 7 assert(rotateRight(b0,0) == b0); 8 assert(rotateRight(b0,1) == b1); 9 assert(rotateRight(b0,2) == b2); 10 assert(rotateRight(b0,7) == b7); 11 assert(rotateRight(b0,8) == b0
rot shift to the right