mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 02:20:11 +01:00
Cell: added ROUNUP4
This commit is contained in:
parent
1bab5bd24e
commit
419a5cca34
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue