Page MenuHomeFreeBSD

D30501.diff
No OneTemporary

D30501.diff

diff --git a/sys/compat/linuxkpi/common/include/linux/bitops.h b/sys/compat/linuxkpi/common/include/linux/bitops.h
--- a/sys/compat/linuxkpi/common/include/linux/bitops.h
+++ b/sys/compat/linuxkpi/common/include/linux/bitops.h
@@ -63,6 +63,11 @@
#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)
+
static inline int
__ffs(int mask)
{

File Metadata

Mime Type
text/plain
Expires
Tue, Jan 14, 2:36 AM (20 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15790194
Default Alt Text
D30501.diff (541 B)

Event Timeline