mirror of
https://git.freebsd.org/ports.git
synced 2025-06-20 04:00:41 -04:00
immintrin.h is only used on amd64 and i386. In file included from /wrkdirs/usr/ports/devel/fccf/work/fccf-0.6.0/source/sse2_strstr.cpp:5: In file included from /usr/lib/clang/13.0.0/include/immintrin.h:17: /usr/lib/clang/13.0.0/include/mmintrin.h:33:5: error: use of undeclared identifier '__builtin_ia32_emms'; did you mean '__builtin_isless'? __builtin_ia32_emms(); ^
12 lines
310 B
C++
12 lines
310 B
C++
--- source/sse2_strstr.cpp.orig 2022-08-27 09:05:40 UTC
|
|
+++ source/sse2_strstr.cpp
|
|
@@ -2,7 +2,9 @@
|
|
#include <cstring>
|
|
|
|
#include <ctype.h>
|
|
+#if defined(__x86_64__) || defined (__i386__)
|
|
#include <immintrin.h>
|
|
+#endif
|
|
#include <sse2_strstr.hpp>
|
|
|
|
#define FORCE_INLINE inline __attribute__((always_inline))
|