Guest User

Untitled

a guest
Jan 21st, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. return (input + 7) & ~7;
  2.  
  3. return (input + 8) & ~7;
  4.  
  5. static inline int round_up_to_multiple_of_8 (int v)
  6. {
  7. return (v|7)+1;
  8. }
  9.  
  10. int roundUp(int input, int round)
  11. {
  12. return input + round - (input % round);
  13. }
Add Comment
Please, Sign In to add comment