Commit 7c908186 authored by Alexandre Julliard's avatar Alexandre Julliard

vkd3d: Only use __builtin_popcount in PE builds.

It's not compatible with -mabi=ms. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52664Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent a3e9ed6f
...@@ -65,7 +65,7 @@ static inline unsigned int vkd3d_popcount(unsigned int v) ...@@ -65,7 +65,7 @@ static inline unsigned int vkd3d_popcount(unsigned int v)
{ {
#ifdef _MSC_VER #ifdef _MSC_VER
return __popcnt(v); return __popcnt(v);
#elif defined(__GNUC__) && (__GNUC__ >= 4) #elif defined(__MINGW32__)
return __builtin_popcount(v); return __builtin_popcount(v);
#else #else
v -= (v >> 1) & 0x55555555; v -= (v >> 1) & 0x55555555;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment