About Social Code
aboutsummaryrefslogtreecommitdiff
path: root/src/util/bitset.h
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@collabora.com>2022-07-13 15:20:38 -0500
committerMarge Bot <emma+marge@anholt.net>2022-07-19 19:19:33 +0000
commit09188c96595e857dbf932bc653c2da30b259abe0 (patch)
treec65c8a6ef62957bdea26acfa67a4ab90de8dade1 /src/util/bitset.h
parent7ca8dcb05fcfc5cdd8e92f298fc585fac512457d (diff)
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>
Diffstat (limited to 'src/util/bitset.h')
-rw-r--r--src/util/bitset.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/bitset.h b/src/util/bitset.h
index 55cb5d10977..e1e5962e59f 100644
--- a/src/util/bitset.h
+++ b/src/util/bitset.h
@@ -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;