static void rotate_tile(unsigned int size,unsigned char *target) { unsigned int i,j,k,l=0; for (k=0;k>4; temp[i][(j<<1)+1]=target[l+(i*4)+j]&0x0f; } for(i=0;i<8;i++) for(j=0;j<8;j+=2) target[l+(i<<2)+(j>>1)]= (temp[8-j-1][i]<<4)|temp[8-j-2][i] ; l+=32; } }