mesa: Extend BITSET64_*_RANGE to work on arbitrary ranges.
authorMathias Fröhlich <Mathias.Froehlich@web.de>
Thu, 1 Dec 2011 17:29:18 +0000 (18:29 +0100)
committerMathias Fröhlich <Mathias.Froehlich@web.de>
Fri, 2 Dec 2011 06:04:49 +0000 (07:04 +0100)
commita4f345e0d21d13186b22f78718547b862d63fdf6
treecedc2dc0d840d3fa17af70ffec1c8b414e2b1a51
parent52b75c6165f2b100fe3f8a55ea3f91fbc79e1bf5
mesa: Extend BITSET64_*_RANGE to work on arbitrary ranges.

The BITSET64_{TEST,SET,CLEAR}_RANGE macros only work on ranges
wither in the lower 32 or in the upper 32 bits of the bitset.
This change extends these macros to work on arbitrary ranges
possibly crossing the bitset word boundary.

Signed-off-by: Mathias Froehlich <Mathias.Froehlich@web.de>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/bitset.h