diff --git a/src/compiler.h b/src/compiler.h index 8d8722e5..de5c17c6 100644 --- a/src/compiler.h +++ b/src/compiler.h @@ -106,3 +106,7 @@ typedef unsigned long ulong; typedef unsigned int uint; + +static inline int popcount(uint x) { + return __builtin_popcount(x); +}