From 8e6832407a3059b04f65715cb99e4b98812a8dd7 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 3 Feb 2012 17:40:21 -0800 Subject: Only use fast float-to-int GCC assembly for x86 and x86_64 targets --- OpenAL32/Include/alMain.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenAL32') 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) -- cgit v1.2.3