Skip to content

Commit

Permalink
linux: enable float operation on SSE unit
Browse files Browse the repository at this point in the history
Potentially faster and requires to flush denormal float to 0
  • Loading branch information
gregory38 committed Feb 9, 2016
1 parent 5b74374 commit 253e801
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion cmake/BuildParameters.cmake
Expand Up @@ -232,7 +232,9 @@ endif()
#-------------------------------------------------------------------------------
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)
set(COMMON_FLAG "${COMMON_FLAG} -DDISABLE_SVU")
endif()
Expand Down
1 change: 0 additions & 1 deletion plugins/GSdx/CMakeLists.txt
Expand Up @@ -11,7 +11,6 @@ set(Output GSdx-1.0.0)

set(CommonFlags
-fno-operator-names # because Xbyak uses and()/xor()/or()/not() function
-mfpmath=sse
-fno-strict-aliasing
-Wno-unknown-pragmas
-Wno-parentheses
Expand Down

0 comments on commit 253e801

Please sign in to comment.