diff options
author | Chris Robinson <[email protected]> | 2012-02-03 17:40:21 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-02-03 17:40:21 -0800 |
commit | 8e6832407a3059b04f65715cb99e4b98812a8dd7 (patch) | |
tree | abaea4ac6810dfc77f3350ee06ece2b6b6683aeb /OpenAL32/Include/alMain.h | |
parent | 9166432ccf9729c0a7d96abedbdbe8ca52089302 (diff) |
Only use fast float-to-int GCC assembly for x86 and x86_64 targets
Diffstat (limited to 'OpenAL32/Include/alMain.h')
-rw-r--r-- | OpenAL32/Include/alMain.h | 2 |
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) |