linux: enable float operation on SSE unit

Potentially faster and requires to flush denormal float to 0
This commit is contained in:
Gregory Hainaut 2016-02-09 18:24:12 +01:00
parent 5b74374bb2
commit 253e801f51
2 changed files with 3 additions and 2 deletions

View File

@ -232,7 +232,9 @@ endif()
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
option(USE_LTO "Enable LTO optimization (will likely break the build)") option(USE_LTO "Enable LTO optimization (will likely break the build)")
set(COMMON_FLAG "-pipe -fvisibility=hidden -pthread -fno-builtin-strcmp -fno-builtin-memcmp") # Note1: Builtin strcmp/memcmp was proved to be slower on Mesa than stdlib version.
# Note2: float operation SSE is impacted by the PCSX2 SSE configuration. In particular, flush to zero denormal.
set(COMMON_FLAG "-pipe -fvisibility=hidden -pthread -fno-builtin-strcmp -fno-builtin-memcmp -mfpmath=sse")
if (DISABLE_SVU) if (DISABLE_SVU)
set(COMMON_FLAG "${COMMON_FLAG} -DDISABLE_SVU") set(COMMON_FLAG "${COMMON_FLAG} -DDISABLE_SVU")
endif() endif()

View File

@ -11,7 +11,6 @@ set(Output GSdx-1.0.0)
set(CommonFlags set(CommonFlags
-fno-operator-names # because Xbyak uses and()/xor()/or()/not() function -fno-operator-names # because Xbyak uses and()/xor()/or()/not() function
-mfpmath=sse
-fno-strict-aliasing -fno-strict-aliasing
-Wno-unknown-pragmas -Wno-unknown-pragmas
-Wno-parentheses -Wno-parentheses