Mesa (master): util: replace Elements() with ARRAY_SIZE()
Brian Paul
brianp at kemper.freedesktop.org
Mon Mar 2 16:02:51 UTC 2015
Module: Mesa
Branch: master
Commit: 692bd4a1ab9ae00a4771746626d4f33ceb8bcc9b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=692bd4a1ab9ae00a4771746626d4f33ceb8bcc9b
Author: Brian Paul <brianp at vmware.com>
Date: Sat Feb 28 13:28:06 2015 -0700
util: replace Elements() with ARRAY_SIZE()
Reviewed-by: Matt Turner <mattst88 at gmail.com>
---
src/util/bitset.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/util/bitset.h b/src/util/bitset.h
index 17c5d5d..febcdde 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
More information about the mesa-commit
mailing list