compiler.h: add popcount
This commit is contained in:
@ -106,3 +106,7 @@
|
||||
|
||||
typedef unsigned long ulong;
|
||||
typedef unsigned int uint;
|
||||
|
||||
static inline int popcount(uint x) {
|
||||
return __builtin_popcount(x);
|
||||
}
|
||||
|
Reference in New Issue
Block a user