Guest User

Untitled

a guest
Jul 15th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. ## In the .h
  2.  
  3. __attribute__((always_inline))
  4. static int tuv(int x) {
  5. int s = 0, i;
  6. for (i = 0; i < x; ++ i)
  7. s += i*i;
  8. return s;
  9. }
  10.  
  11. ## In the .c
  12.  
  13. int main () {
  14. int s = 0;
  15. s += tuv(13);
  16. s += tuv(55);
  17. s += tuv(129);
  18. s += tuv(33);
  19. s += 2;
  20. return s;
  21. }
Add Comment
Please, Sign In to add comment