xref: /kvmtool/include/linux/bits.h (revision 0febaae00bb6f8c5e694f87d6354fbcbe81e6653)
1 #ifndef LINUX__BITS_H_
2 #define LINUX__BITS_H_
3 
4 #define GENMASK(h, l) \
5 	((~0UL - (1UL << (l)) + 1) & \
6 	 (~0UL >> (BITS_PER_LONG - 1 - (h))))
7 
8 #endif /* LINUX__BITS_H */
9