summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-02-03 17:40:21 -0800
committerChris Robinson <[email protected]>2012-02-03 17:40:21 -0800
commit8e6832407a3059b04f65715cb99e4b98812a8dd7 (patch)
treeabaea4ac6810dfc77f3350ee06ece2b6b6683aeb
parent9166432ccf9729c0a7d96abedbdbe8ca52089302 (diff)
Only use fast float-to-int GCC assembly for x86 and x86_64 targets
-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 fa88a4e4..195b5e3a 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -412,7 +412,7 @@ static __inline ALint fastf2i(ALfloat f)
#if defined(_MSC_VER) && !defined(_WIN64)
__asm fld f
__asm fistp i
-#elif defined(__GNUC__)
+#elif defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
__asm__ __volatile__("flds %1\n\t"
"fistpl %0\n\t"
: "=m" (i)