From f492c12364d7b751e9e2f480b977d2275eb8a75f Mon Sep 17 00:00:00 2001 From: Arnon Gilboa Date: Sun, 22 May 2011 14:53:13 +0300 Subject: [PATCH] common: add WIN64 ifdef for spice_bit_find_msb (fix broken windows x64 build) inline __asm is not supported in x64, so use the naive implementation until x64 asm implemented. --- common/bitops.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/bitops.h b/common/bitops.h index 4823662..449409b 100644 --- a/common/bitops.h +++ b/common/bitops.h @@ -27,7 +27,7 @@ extern "C" { #endif -#ifdef WIN32 +#if defined(WIN32) && !defined(_WIN64) static INLINE int spice_bit_find_msb(uint32_t val) { uint32_t r; @@ -56,7 +56,7 @@ static inline int spice_bit_find_msb(unsigned int val) } #else -static inline int spice_bit_find_msb(unsigned int val) +static INLINE int spice_bit_find_msb(unsigned int val) { signed char index = 31;