/////////////////////////////////////////// BIT ROTATE LEFT
| 312 | // BIT ROTATE LEFT |
| 313 | // |
| 314 | uint8_t bitRotateLeft(uint8_t value, uint8_t pos) |
| 315 | { |
| 316 | if (pos == 0) return value; |
| 317 | if (pos > 7) return value; |
| 318 | return (value << pos) | (value >> (8 - pos)); |
| 319 | } |
| 320 | |
| 321 | |
| 322 | uint16_t bitRotateLeft(uint16_t value, uint8_t pos) |