From c55bd4b68dd07bb7554d4d365bedb2955cf7dc5d Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 9 Mar 2021 11:19:17 +1000 Subject: [PATCH] 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 Part-of: --- 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