summaryrefslogtreecommitdiff
path: root/openEMS/FDTD/engine_multithread.cpp
diff options
context:
space:
mode:
authorStefan Brüns <stefan.bruens@rwth-aachen.de>2018-03-27 02:28:22 +0200
committerRuben Undheim <ruben.undheim@gmail.com>2018-11-27 18:59:05 +0100
commit90e3af27b5b6a6186bfe1c41789faf6e90bd1554 (patch)
tree7811b70457db34b8430452d28b91eb7345e18750 /openEMS/FDTD/engine_multithread.cpp
parent1374b983e0f78b0a938d68f1cbc79e68ff6d26d1 (diff)
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> Gbp-Pq: Name 0007-Guard-xmmintrin.h-include-so-it-is-only-used-when-ne.patch
Diffstat (limited to 'openEMS/FDTD/engine_multithread.cpp')
-rw-r--r--openEMS/FDTD/engine_multithread.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/openEMS/FDTD/engine_multithread.cpp b/openEMS/FDTD/engine_multithread.cpp
index 7370198..7ebe0d7 100644
--- a/openEMS/FDTD/engine_multithread.cpp
+++ b/openEMS/FDTD/engine_multithread.cpp
@@ -32,7 +32,10 @@
#include "boost/date_time/posix_time/posix_time.hpp"
#include "boost/date_time/gregorian/gregorian.hpp"
#include <iomanip>
+
+#ifndef SSE_CORRECT_DENORMALS
#include <xmmintrin.h>
+#endif
//! \brief construct an Engine_Multithread instance
//! it's the responsibility of the caller to free the returned pointer