4d3ae20f4b
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
28 lines
532 B
Diff
28 lines
532 B
Diff
--- cl.hpp.orig 2014-04-25 16:23:05.930403731 +0200
|
|
+++ cl.hpp 2014-04-25 16:26:59.894036540 +0200
|
|
@@ -212,8 +212,11 @@
|
|
#if defined(linux) || defined(__APPLE__) || defined(__MACOSX)
|
|
#include <alloca.h>
|
|
|
|
+#ifdef __SSE2__
|
|
#include <emmintrin.h>
|
|
#include <xmmintrin.h>
|
|
+#endif // __SSE2__
|
|
+
|
|
#endif // linux
|
|
|
|
#include <cstring>
|
|
@@ -1035,7 +1038,12 @@
|
|
#endif // !_WIN32
|
|
}
|
|
|
|
+#ifdef __SSE2__
|
|
inline void fence() { _mm_mfence(); }
|
|
+#else
|
|
+ inline void fence() {}
|
|
+#endif // __SSE2__
|
|
+
|
|
}; // namespace detail
|
|
|
|
|