fork download
  1. #include <stdio.h>
  2. #include <stdint.h>
  3.  
  4. uint32_t rotl(uint32_t x, uint32_t n)
  5. {
  6. return (x << n) | (x >> (32 - n));
  7. }
  8.  
  9. int main()
  10. {
  11. uint32_t y = rotl(10, 0);
  12. printf("%u\n", y);
  13. return 0;
  14. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
10