diff options
author | Nanley Chery <[email protected]> | 2015-05-27 13:25:30 -0700 |
---|---|---|
committer | Nanley Chery <[email protected]> | 2015-08-26 14:36:43 -0700 |
commit | 97f4efd573aed7ffc0ea9395f4e69ccdeb5041f6 (patch) | |
tree | 0aba606a6f9f482fa49a544f797913d3a5ce2d68 /src/mesa/state_tracker/st_atom.c | |
parent | 8b1f008e9acf94645a28c27fa261f6450a3edb84 (diff) |
mesa/macros: add power-of-two assertions for alignment macros
ALIGN and ROUND_DOWN_TO both require that the alignment value passed
into the macro be a power of two in the comments. Using software assertions
verifies this to be the case.
v2: use static inline functions instead of gcc-specific statement expressions (Brian).
v3: fix indendation (Brian).
v4: add greater than zero requirement (Anuj).
Reviewed-by: Anuj Phogat <[email protected]>
Signed-off-by: Nanley Chery <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_atom.c')
0 files changed, 0 insertions, 0 deletions