diff options
| author | GregF <greg@LunarG.com> | 2014-11-10 17:26:41 -0700 |
|---|---|---|
| committer | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2014-11-21 16:49:39 -0700 |
| commit | db1204e088947d0f0ff4520299e685130fc29a5e (patch) | |
| tree | 9426492bb62f3a9dbecc681aedb91cd4da1c0270 | |
| parent | d02256717f2bbdbc3c869fe2aa3e31dcb46433c7 (diff) | |
| download | usermoji-db1204e088947d0f0ff4520299e685130fc29a5e.tar.xz | |
Added u_popcount to abstract __builtin_popcount.
| -rw-r--r-- | icd/common/icd-utils.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/icd/common/icd-utils.h b/icd/common/icd-utils.h index ac4f23d6..c102158c 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) |
