diff options
Diffstat (limited to 'include/sys/sysmacros.h')
-rw-r--r-- | include/sys/sysmacros.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sys/sysmacros.h b/include/sys/sysmacros.h index 4a96e075f..f6b1e28e8 100644 --- a/include/sys/sysmacros.h +++ b/include/sys/sysmacros.h @@ -158,6 +158,9 @@ extern uint32_t zone_get_hostid(void *zone); extern void spl_setup(void); extern void spl_cleanup(void); +#define highbit(x) __fls(x) +#define lowbit(x) __ffs(x) + #define highbit64(x) fls64(x) #define makedevice(maj,min) makedev(maj,min) |