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++))
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++))