From db1204e088947d0f0ff4520299e685130fc29a5e Mon Sep 17 00:00:00 2001 From: GregF Date: Mon, 10 Nov 2014 17:26:41 -0700 Subject: Added u_popcount to abstract __builtin_popcount. --- icd/common/icd-utils.h | 2 ++ 1 file changed, 2 insertions(+) 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) -- cgit v1.2.3