Guard xmmintrin.h include so it is only used when necessary

The x86/SSE specific code for Flush-To-Zero is only used when
SSE_CORRECT_DENORMALS is not defined. Guarding the include allows the
code to compile on e.g. ARM.

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
pull/33/head
Stefan Brüns 2018-03-27 02:28:22 +02:00
parent 65ca6bfc44
commit a5a1dca832
2 changed files with 6 additions and 0 deletions

View File

@ -32,7 +32,10 @@
#include "boost/date_time/posix_time/posix_time.hpp" #include "boost/date_time/posix_time/posix_time.hpp"
#include "boost/date_time/gregorian/gregorian.hpp" #include "boost/date_time/gregorian/gregorian.hpp"
#include <iomanip> #include <iomanip>
#ifndef SSE_CORRECT_DENORMALS
#include <xmmintrin.h> #include <xmmintrin.h>
#endif
//! \brief construct an Engine_Multithread instance //! \brief construct an Engine_Multithread instance
//! it's the responsibility of the caller to free the returned pointer //! it's the responsibility of the caller to free the returned pointer

View File

@ -15,7 +15,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef SSE_CORRECT_DENORMALS
#include <xmmintrin.h> #include <xmmintrin.h>
#endif
#include "engine_sse.h" #include "engine_sse.h"
//! \brief construct an Engine_sse instance //! \brief construct an Engine_sse instance