Module: Mesa Branch: master Commit: c55bd4b68dd07bb7554d4d365bedb2955cf7dc5d URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c55bd4b68dd07bb7554d4d365bedb2955cf7dc5d
Author: Dave Airlie <[email protected]> Date: Tue Mar 9 11:19:17 2021 +1000 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 <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9456> --- src/util/bitset.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/bitset.h b/src/util/bitset.h index 61f6db8f4d1..8225070f703 100644 --- a/src/util/bitset.h +++ b/src/util/bitset.h @@ -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 _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
