From 419a5cca34d931e61587eaeb8d32a44b415c43ad Mon Sep 17 00:00:00 2001 From: Brian Date: Sat, 26 Jan 2008 19:31:20 -0700 Subject: [PATCH] Cell: added ROUNUP4 --- src/mesa/pipe/cell/common.h | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.30.2