summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2008-01-26 19:31:20 -0700
committerBrian <brian.paul@tungstengraphics.com>2008-01-26 19:31:20 -0700
commit419a5cca34d931e61587eaeb8d32a44b415c43ad (patch)
tree43dd63e9291167390d02c6b078d145c9f4f0166b
parent1bab5bd24e09b6e11cd99f989bb00c587119aed2 (diff)
Cell: added ROUNUP4
-rw-r--r--src/mesa/pipe/cell/common.h3
1 files changed, 3 insertions, 0 deletions
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)