I have a one 64-bit integer, which I need to rotate 90 degrees in 8 x 8 area (preferably with straight bit-manipulation). I cannot figure out any handy algorith
probably something like that
for(int i = 0; i < 8; i++) { for(int j = 0; j < 8; j++) { new_image[j*8+8-i] = image[i*8+j]; } }