Skip to content

Commit

Permalink
-Updated CFlags denormals code
Browse files Browse the repository at this point in the history
  • Loading branch information
harryhaaren committed Dec 10, 2013
1 parent eb2bbe6 commit 75a47bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/CMakeLists.txt
Expand Up @@ -37,8 +37,8 @@ IF(BUILD_TESTS)
ENDIF(BUILD_TESTS)

IF(RELEASE_BUILD)
SET(CMAKE_CXX_FLAGS "-g -Wall -Werror -Wno-unused-variable -ffast-math")
SET(CMAKE_C_FLAGS "-g -Wall -Werror -W -Wno-unused-variable -ffast-math")
SET(CMAKE_CXX_FLAGS "-g -Wall -Werror -Wno-unused-variable -msse2 -mfpmath=sse -ffast-math")
SET(CMAKE_C_FLAGS "-g -Wall -Werror -W -Wno-unused-variable -msse2 -mfpmath=sse -ffast-math")
ENDIF(RELEASE_BUILD)


Expand Down
4 changes: 2 additions & 2 deletions src/denormals.hxx
Expand Up @@ -29,15 +29,15 @@
#include <pmmintrin.h>
inline void AVOIDDENORMALS()
{
//std::cout << "Denormals: FZ DAZ using SSE3" << std::endl;
//LUPPP_NOTE("Denormals: FZ DAZ using SSE3");
_MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON);
_MM_SET_DENORMALS_ZERO_MODE(_MM_DENORMALS_ZERO_ON);
}
#else
#include <xmmintrin.h>
inline void AVOIDDENORMALS()
{
//std::cout << "Denormals: FZ" << std::endl;
//LUPPP_NOTE("Denormals: FZ");
_MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON);
}
#endif //__SSE3__
Expand Down

0 comments on commit 75a47bb

Please sign in to comment.