Check for a 32-bit x86 processor before using MSVC's asm intrinsics

This commit is contained in:
Chris Robinson
2012-02-03 19:34:06 -08:00
parent 8e6832407a
commit 47161150d7
+1 -1
View File
@@ -409,7 +409,7 @@ static __inline ALuint NextPowerOf2(ALuint value)
static __inline ALint fastf2i(ALfloat f)
{
ALint i;
#if defined(_MSC_VER) && !defined(_WIN64)
#if defined(_MSC_VER) && defined(_M_IX86)
__asm fld f
__asm fistp i
#elif defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))