summaryrefslogtreecommitdiff
path: root/openEMS
diff options
context:
space:
mode:
authorStefan Brüns <stefan.bruens@rwth-aachen.de>2018-03-27 02:28:22 +0200
committerSébastien Villemot <sebastien@debian.org>2019-10-07 14:02:23 +0200
commit1292f1fe7c4b3735ddf38bba2cc227b514847b06 (patch)
tree2bf56251994d5f91a34bf61545a5b485a4076277 /openEMS
parent8373f8f01cc1d60c1a8765563f7024e8c0246f71 (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')
-rw-r--r--openEMS/FDTD/engine_multithread.cpp3
-rw-r--r--openEMS/FDTD/engine_sse.cpp3
2 files changed, 6 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
diff --git a/openEMS/FDTD/engine_sse.cpp b/openEMS/FDTD/engine_sse.cpp
index 660e6d6..2e06685 100644
--- a/openEMS/FDTD/engine_sse.cpp
+++ b/openEMS/FDTD/engine_sse.cpp
@@ -15,7 +15,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#ifndef SSE_CORRECT_DENORMALS
#include <xmmintrin.h>
+#endif
+
#include "engine_sse.h"
//! \brief construct an Engine_sse instance