projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bab5bd
)
Cell: added ROUNUP4
author
Brian
<brian.paul@tungstengraphics.com>
Sun, 27 Jan 2008 02:31:20 +0000
(19:31 -0700)
committer
Brian
<brian.paul@tungstengraphics.com>
Sun, 27 Jan 2008 02:31:20 +0000
(19:31 -0700)
src/mesa/pipe/cell/common.h
patch
|
blob
|
history
diff --git
a/src/mesa/pipe/cell/common.h
b/src/mesa/pipe/cell/common.h
index e955bb9ec50daf2d801baa82c42c813f335700db..bdde166630f42c45d40a072f31324516a18aab62 100644
(file)
--- 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)