diff options
author | Leo Laksmana <beol@laksmana.com> | 2014-08-23 18:08:31 +0800 |
---|---|---|
committer | Leo Laksmana <beol@laksmana.com> | 2014-08-23 18:08:31 +0800 |
commit | 6f160921dca0e61f90bbc1fe42e9ee1b4b90676e (patch) | |
tree | b8f1b21b08b7bf0b052ecf24c10a7caa46d9e2dc | |
parent | c25310f215bc97a37944339d331b000ba806d505 (diff) | |
download | gf-complete-6f160921dca0e61f90bbc1fe42e9ee1b4b90676e.tar.gz |
On CPU that doesn't support SSE4.2 instructions set, this will fail
because incorrect header is included.
smmintrin.h => SSE4.1
nmmintrin.h => SSE4.2
-rw-r--r-- | include/gf_complete.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/gf_complete.h b/include/gf_complete.h index 8e1e641..5806625 100644 --- a/include/gf_complete.h +++ b/include/gf_complete.h @@ -13,7 +13,12 @@ #include <stdint.h> #ifdef INTEL_SSE4 - #include <nmmintrin.h> + #ifdef __SSE4_2__ + #include <nmmintrin.h> + #endif + #ifdef __SSE4_1__ + #include <smmintrin.h> + #endif #endif #ifdef INTEL_SSSE3 |