diff options
-rw-r--r-- | include/qemu/bitops.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/qemu/bitops.h b/include/qemu/bitops.h index 15418a8..98fb005 100644 --- a/include/qemu/bitops.h +++ b/include/qemu/bitops.h @@ -24,6 +24,9 @@ #define BIT_WORD(nr) ((nr) / BITS_PER_LONG) #define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(long)) +#define MAKE_64BIT_MASK(shift, length) \ + (((~0ULL) >> (64 - (length))) << (shift)) + /** * set_bit - Set a bit in memory * @nr: the bit to set |