mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-15 13:47:19 +00:00
wined3d: Only use __builtin_popcount in PE builds.
It's not compatible with -mabi=ms. Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
73b94f8f94
commit
a3e9ed6fc8
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue