1uint8_t a = 124;
2uint8_t aShifted = leftBitshiftWrap(a,2);
3
4uint8_t leftBitshiftWrap_uint8_t(uint8_t val, uint8_t amt){
5 return (val << amt) | (val >> (8-amt));
6}
1//Rotating integers are done as follows
2letter = ((unsigned char)letter >> 1) | (letter << 7);