compile.h, utils.h: rename popcount

Rename `popcountl` to `popcntul` to avoid name conflicts with NetBSD
system headers.

Remove the unused `popcount` function.

Closes #502

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2020-10-07 19:35:55 +01:00
parent fb3760bbe3
commit d00c1c7a1d
3 changed files with 6 additions and 10 deletions

View File

@@ -136,10 +136,6 @@ static inline int attr_const normalize_i_range(int i, int min, int max) {
/// clamp `val` into interval [min, max]
#define clamp(val, min, max) max2(min2(val, max), min)
static inline int attr_const popcountl(unsigned long a) {
return __builtin_popcountl(a);
}
/**
* Normalize a double value to a specific range.
*