About Social Code
aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2021-03-09 11:17:17 +1000
committerDave Airlie <airlied@redhat.com>2021-03-10 06:15:50 +1000
commit0e1afe7c70a9037b6038ffac3a8c11c58a97df90 (patch)
tree68cc5780253aee520ec72b681284ecfd557bed2a /src/util
parentd978383966d448fae2f3d746e40611b67605ead9 (diff)
util/panfrost/glsl: rename BITSET_LAST_BIT to BITSET_LAST_BIT_SIZED
The current users all pass in the number of dwords, but I'd like to provide an interface that doess ARRAY_SIZE implicitly. Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9456>
Diffstat (limited to 'src/util')
-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 5313f85fcee..61f6db8f4d1 100644
--- a/src/util/bitset.h
+++ b/src/util/bitset.h
@@ -109,7 +109,7 @@ __bitset_last_bit(const BITSET_WORD *x, int n)
}
#define BITSET_FFS(x) __bitset_ffs(x, ARRAY_SIZE(x))
-#define BITSET_LAST_BIT(x, size) __bitset_last_bit(x, size)
+#define BITSET_LAST_BIT_SIZED(x, size) __bitset_last_bit(x, size)
static inline unsigned
__bitset_next_set(unsigned i, BITSET_WORD *tmp,