3347e3d686
This package is a bit special, because we've got no buildroot. To address this th epatch is applied to the installed header file. Thus we need to run the patch cmd after the installation. Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
28 lines
519 B
Diff
28 lines
519 B
Diff
--- cl.hpp 2014-04-25 09:53:03.029286394 +0200
|
|
+++ cl.hpp.mod 2014-04-25 09:55:06.330122827 +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
|
|
+
|
|
}; // namespace detail
|
|
|
|
|