From: Brian Date: Sun, 27 Jan 2008 02:31:20 +0000 (-0700) Subject: Cell: added ROUNUP4 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=419a5cca34d931e61587eaeb8d32a44b415c43ad;p=mesa.git Cell: added ROUNUP4 --- diff --git a/src/mesa/pipe/cell/common.h b/src/mesa/pipe/cell/common.h index e955bb9ec50..bdde166630f 100644 --- a/src/mesa/pipe/cell/common.h +++ b/src/mesa/pipe/cell/common.h @@ -54,6 +54,9 @@ assert((((unsigned long) (ptr)) & 0xf) == 0); +/** round up value to next multiple of 4 */ +#define ROUNDUP4(k) (((k) + 0x3) & ~0x3) + /** round up value to next multiple of 16 */ #define ROUNDUP16(k) (((k) + 0xf) & ~0xf)