fork download
  1. static inline uint32_t shift_s32_l4 (uint32_t op1)
  2. {
  3. uint8_t op2;
  4. uint32_t res;
  5.  
  6. asm(
  7. "ldi %[op2],0x10\n"
  8.  
  9. "mul %A[op1],%A[op2]\n"
  10. "movw %A[res],r0\n"
  11.  
  12. "mul %C[op1],%A[op2]\n"
  13. "movw %C[res],r0\n"
  14.  
  15. "mul %D[op1],%A[op2]\n"
  16. "add %D[res],r0\n"
  17.  
  18. "mul %B[op1],%A[op2]\n"
  19. "add %B[res],r0\n"
  20. "adc %C[res],r1\n"
  21. "clr __zero_reg__\n"
  22. "adc %D[res],__zero_reg__\n"
  23.  
  24. : [res] "=&r" (res),
  25. [op2] "=&d" (op2)
  26. : [op1] "r" (op1)
  27. );
  28.  
  29. return res;
  30. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:1:1: error: unknown type name ‘uint32_t’
 static inline uint32_t shift_s32_l4 (uint32_t op1)
 ^
prog.c:1:38: error: unknown type name ‘uint32_t’
 static inline uint32_t shift_s32_l4 (uint32_t op1)
                                      ^
stdout
Standard output is empty