aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alMain.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-02-03 19:34:06 -0800
committerChris Robinson <[email protected]>2012-02-03 19:34:06 -0800
commit47161150d7e414ef30bb03da4ecdfbdeae756464 (patch)
treed1f613b07fbe5db860618f4a9e5d136460d9a9d1 /OpenAL32/Include/alMain.h
parent8e6832407a3059b04f65715cb99e4b98812a8dd7 (diff)
Check for a 32-bit x86 processor before using MSVC's asm intrinsics
Diffstat (limited to 'OpenAL32/Include/alMain.h')
-rw-r--r--OpenAL32/Include/alMain.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index 195b5e3a..51a28e35 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -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__))