From: Brian Paul Date: Sat, 28 Feb 2015 20:28:06 +0000 (-0700) Subject: util: replace Elements() with ARRAY_SIZE() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=692bd4a1ab9ae00a4771746626d4f33ceb8bcc9b;p=mesa.git util: replace Elements() with ARRAY_SIZE() Reviewed-by: Matt Turner --- diff --git a/src/util/bitset.h b/src/util/bitset.h index 17c5d5d252a..febcddefd97 100644 --- a/src/util/bitset.h +++ b/src/util/bitset.h @@ -94,6 +94,6 @@ __bitset_ffs(const BITSET_WORD *x, int n) return 0; } -#define BITSET_FFS(x) __bitset_ffs(x, Elements(x)) +#define BITSET_FFS(x) __bitset_ffs(x, ARRAY_SIZE(x)) #endif