28 static inline __uint64_t xfs_mask64hi(
int n)
30 return (__uint64_t)-1 << (64 - (
n));
32 static inline __uint32_t xfs_mask32lo(
int n)
34 return ((__uint32_t)1 << (n)) - 1;
36 static inline __uint64_t xfs_mask64lo(
int n)
38 return ((__uint64_t)1 << (n)) - 1;
42 static inline int xfs_highbit32(__uint32_t
v)
48 static inline int xfs_highbit64(__uint64_t
v)
54 static inline int xfs_lowbit32(__uint32_t
v)
60 static inline int xfs_lowbit64(__uint64_t
v)
62 __uint32_t
w = (__uint32_t)v;
68 w = (__uint32_t)(v >> 32);
69 if (w && (n =
ffs(w)))