ROT{L,R}{8,16,32,64} macros
Install with clib
$ clib install jb55/rotate-bits.h
#include "rotate-bits/rotate-bits.h"
int main() {
  unsigned short val = ROTL16(0x8000, 1);
  int tru = val == 1;
}- 
value: unsigned integer value to rotate 
- 
rotateN: number of bits to rotate by 
Public Domain