mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2025-12-30 18:00:25 +00:00
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.
This commit is contained in:
parent
88f7e2b32d
commit
f492c12364
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user