qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

bitmap: remove BITOP_WORD()

We have BIT_WORD(). It's the same.

Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>

authored by

Peter Xu and committed by
Juan Quintela
ab089e05 e595a01a

+2 -4
+2 -4
util/bitops.c
··· 14 14 #include "qemu/osdep.h" 15 15 #include "qemu/bitops.h" 16 16 17 - #define BITOP_WORD(nr) ((nr) / BITS_PER_LONG) 18 - 19 17 /* 20 18 * Find the next set bit in a memory region. 21 19 */ 22 20 unsigned long find_next_bit(const unsigned long *addr, unsigned long size, 23 21 unsigned long offset) 24 22 { 25 - const unsigned long *p = addr + BITOP_WORD(offset); 23 + const unsigned long *p = addr + BIT_WORD(offset); 26 24 unsigned long result = offset & ~(BITS_PER_LONG-1); 27 25 unsigned long tmp; 28 26 ··· 87 85 unsigned long find_next_zero_bit(const unsigned long *addr, unsigned long size, 88 86 unsigned long offset) 89 87 { 90 - const unsigned long *p = addr + BITOP_WORD(offset); 88 + const unsigned long *p = addr + BIT_WORD(offset); 91 89 unsigned long result = offset & ~(BITS_PER_LONG-1); 92 90 unsigned long tmp; 93 91