mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 05:00:09 +01:00
util/bitset: add a new last bit api
This is to be used where the bitset is a predefined array size. Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9456>
This commit is contained in:
parent
0e1afe7c70
commit
c55bd4b68d
1 changed files with 1 additions and 0 deletions
|
|
@ -109,6 +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) __bitset_last_bit(x, ARRAY_SIZE(x))
|
||||
#define BITSET_LAST_BIT_SIZED(x, size) __bitset_last_bit(x, size)
|
||||
|
||||
static inline unsigned
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue