commit | 8a814424db47965003dd47deabfd31f9f231fbca | [log] [tgz] |
---|---|---|
author | GregF <greg@LunarG.com> | Mon Nov 10 17:26:41 2014 -0700 |
committer | Courtney Goeltzenleuchter <courtney@LunarG.com> | Fri Nov 21 16:49:39 2014 -0700 |
tree | 7113e1c6f327d6e4aa1f64a1c1663da6703ad7cd | |
parent | 791a49cc0d8b86bd6df98157dfe0388178330993 [diff] [blame] |
Added u_popcount to abstract __builtin_popcount.
diff --git a/icd/common/icd-utils.h b/icd/common/icd-utils.h index ac4f23d..c102158 100644 --- a/icd/common/icd-utils.h +++ b/icd/common/icd-utils.h
@@ -35,6 +35,8 @@ #define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0])) +#define u_popcount(u) __builtin_popcount(u) + #define STATIC_ASSERT(expr) do { \ (void) sizeof(char[1 - 2 * !(expr)]); \ } while (0)