diff options
Diffstat (limited to 'lib/bitops.h')
-rw-r--r-- | lib/bitops.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bitops.h b/lib/bitops.h index c0ad1a70..ce13732a 100644 --- a/lib/bitops.h +++ b/lib/bitops.h @@ -25,5 +25,6 @@ u32 u32_log2(u32 v); static inline u32 u32_hash(u32 v) { return v * 2902958171u; } -#endif +static inline u8 u32_popcount(u32 v) { return __builtin_popcount(v); } +#endif |