Commit a3e9ed6f authored by Alexandre Julliard's avatar Alexandre Julliard

wined3d: Only use __builtin_popcount in PE builds.

It's not compatible with -mabi=ms. Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 73b94f8f
......@@ -405,7 +405,7 @@ static inline float float_24_to_32(DWORD in)
static inline unsigned int wined3d_popcount(unsigned int x)
{
#if defined(__GNUC__) && (__GNUC__ >= 4)
#if defined(__MINGW32__)
return __builtin_popcount(x);
#else
x -= x >> 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