diff options
author | Chris Robinson <[email protected]> | 2018-02-25 13:14:14 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-02-25 13:14:14 -0800 |
commit | d25398d2c7efb02a9b8e630b15be3a7ab2578aa8 (patch) | |
tree | 26a47d2fc8caf7c6f9c9d29013611ca63245e452 /Alc | |
parent | 654a45833acb4ba3eb6c71906346fcd60034cb41 (diff) |
Avoid using static inline in headers
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/helpers.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Alc/helpers.c b/Alc/helpers.c index 45e137fd..6de1fdc3 100644 --- a/Alc/helpers.c +++ b/Alc/helpers.c @@ -121,6 +121,16 @@ DEFINE_PROPERTYKEY(PKEY_AudioEndpoint_GUID, 0x1da5d803, 0xd492, 0x4edd, 0x8c, 0x extern inline ALuint NextPowerOf2(ALuint value); extern inline size_t RoundUp(size_t value, size_t r); extern inline ALint fastf2i(ALfloat f); +#ifndef __GNUC__ +#if defined(HAVE_BITSCANFORWARD64_INTRINSIC) +extern inline int msvc64_ctz64(ALuint64 v); +#elif defined(HAVE_BITSCANFORWARD_INTRINSIC) +extern inline int msvc_ctz64(ALuint64 v); +#else +extern inline int fallback_popcnt64(ALuint64 v); +extern inline int fallback_ctz64(ALuint64 value); +#endif +#endif int CPUCapFlags = 0; |