Help! I am going crazy. Bit shifting a byte array
Hello
I really hope someone can help me with this. I have been working on it all weekend and I'm getting nowhere.
I need to left shift (with a rotate) an unsigned char array.
The array looks like this:
11110000 11001100 10101010 11110000
I have tried left shifting using a pointer to the array like so:
*array_ptr <<= 1;
But that does nothing.
Does anyone know of an easy way I can left shift the entire contents of the array? Also, if it could include a rotate (msb becomes lsb) that would be fantastic.
Thank you.