Comment 180 for bug 612377

Revision history for this message
In , Jmuizelaar (jmuizelaar) wrote :

Comment on attachment 522544
Proposed upstream patch for addressing concern about jround_up() argument types.

>+#define PAD(size, align) (((size) + (align) - 1) & (~((align) - 1)))

I usually prefer functions over macros for the additional type safety and to avoid evaluating arguments twice (e.g. PAD(x, a++))