diff options
author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2024-04-02 23:48:05 +0000 |
---|---|---|
committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2024-04-12 23:11:47 +0000 |
commit | f674f016c03d49e14f1c651ed088a6f2d01a62ee (patch) | |
tree | f8126ebcb6886f6047581714c00169ab791b2e03 /sys | |
parent | 218b2ccf8cc90698487515c681f3e3453b0dcead (diff) | |
download | src-f674f016c03d49e14f1c651ed088a6f2d01a62ee.tar.gz src-f674f016c03d49e14f1c651ed088a6f2d01a62ee.zip |
Diffstat (limited to 'sys')
-rw-r--r-- | sys/compat/linuxkpi/common/include/linux/bitops.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/bitops.h b/sys/compat/linuxkpi/common/include/linux/bitops.h index 58677631b604..1415d5224084 100644 --- a/sys/compat/linuxkpi/common/include/linux/bitops.h +++ b/sys/compat/linuxkpi/common/include/linux/bitops.h @@ -54,6 +54,7 @@ #define GENMASK_ULL(h, l) (((~0ULL) >> (BITS_PER_LONG_LONG - (h) - 1)) & ((~0ULL) << (l))) #define BITS_PER_BYTE 8 #define BITS_PER_TYPE(t) (sizeof(t) * BITS_PER_BYTE) +#define BITS_TO_BYTES(n) howmany((n), BITS_PER_BYTE) #define hweight8(x) bitcount((uint8_t)(x)) #define hweight16(x) bitcount16(x) |