util: Constify __bitset_test_range

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17328>
This commit is contained in:
Jason Ekstrand 2022-07-13 15:20:38 -05:00 committed by Marge Bot
parent 7ca8dcb05f
commit 09188c9659
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ __bitset_shl(BITSET_WORD *x, unsigned amount, unsigned n)
(assert (!"BITSET_CLEAR_RANGE: bit range crosses word boundary"), 0))
static inline bool
__bitset_test_range(BITSET_WORD *r, unsigned start, unsigned end)
__bitset_test_range(const BITSET_WORD *r, unsigned start, unsigned end)
{
const unsigned size = end - start + 1;
const unsigned start_mod = start % BITSET_WORDBITS;