util: replace Elements() with ARRAY_SIZE()
authorBrian Paul <brianp@vmware.com>
Sat, 28 Feb 2015 20:28:06 +0000 (13:28 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 2 Mar 2015 15:55:31 +0000 (08:55 -0700)
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/util/bitset.h

index 17c5d5d252aae6e320dd17de5d977c68c6c2a78f..febcddefd9714c37c35281d0da89fb53a5700fd7 100644 (file)
@@ -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