diff options
Diffstat (limited to 'src/mesa/main/bitset.h')
-rw-r--r-- | src/mesa/main/bitset.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/bitset.h b/src/mesa/main/bitset.h index 28b3c127e75..defb7339e86 100644 --- a/src/mesa/main/bitset.h +++ b/src/mesa/main/bitset.h @@ -42,8 +42,8 @@ /* bitset declarations */ -#define BITSET_DECLARE(name, size) \ - BITSET_WORD name[((size) + BITSET_WORDBITS - 1) / BITSET_WORDBITS] +#define BITSET_WORDS(bits) (ALIGN(bits, BITSET_WORDBITS) / BITSET_WORDBITS) +#define BITSET_DECLARE(name, bits) BITSET_WORD name[BITSET_WORDS(bits)] /* bitset operations */ |