mirror of
https://github.com/opnsense/src.git
synced 2026-06-07 15:52:40 -04:00
linuxkpi: Remove incorrect + 1 from HWEIGHT* macros
Fixes: 4cc8a9da49 ("LinuxKPI: add HWEIGHT32()")
Reviewed by: bz
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D51010
This commit is contained in:
parent
994bec47ee
commit
cdbff1b299
1 changed files with 4 additions and 4 deletions
|
|
@ -62,10 +62,10 @@
|
|||
#define hweight64(x) bitcount64(x)
|
||||
#define hweight_long(x) bitcountl(x)
|
||||
|
||||
#define HWEIGHT8(x) (bitcount8((uint8_t)(x)) + 1)
|
||||
#define HWEIGHT16(x) (bitcount16(x) + 1)
|
||||
#define HWEIGHT32(x) (bitcount32(x) + 1)
|
||||
#define HWEIGHT64(x) (bitcount64(x) + 1)
|
||||
#define HWEIGHT8(x) (bitcount8((uint8_t)(x)))
|
||||
#define HWEIGHT16(x) (bitcount16(x))
|
||||
#define HWEIGHT32(x) (bitcount32(x))
|
||||
#define HWEIGHT64(x) (bitcount64(x))
|
||||
|
||||
static inline int
|
||||
__ffs(int mask)
|
||||
|
|
|
|||
Loading…
Reference in a new issue