diff options
Diffstat (limited to 'common/bitops.h')
-rw-r--r-- | common/bitops.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/common/bitops.h b/common/bitops.h index 666d82d3..48236627 100644 --- a/common/bitops.h +++ b/common/bitops.h @@ -21,12 +21,14 @@ #ifndef BITOPS_H #define BITOPS_H +#include <spice/macros.h> + #ifdef __cplusplus extern "C" { #endif #ifdef WIN32 -static inline int spice_bit_find_msb(uint32_t val) +static INLINE int spice_bit_find_msb(uint32_t val) { uint32_t r; __asm { @@ -74,7 +76,7 @@ static inline int spice_bit_find_msb(unsigned int val) #endif -static inline int spice_bit_next_pow2(unsigned int val) +static INLINE int spice_bit_next_pow2(unsigned int val) { if ((val & (val - 1)) == 0) { return val; |