Commit 6f160921dca0e61f90bbc1fe42e9ee1b4b90676e

Authored by Leo Laksmana
1 parent c25310f2
Exists in master and in 1 other branch v2

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
Showing 1 changed file with 6 additions and 1 deletions   Show diff stats
include/gf_complete.h
... ... @@ -13,7 +13,12 @@
13 13 #include <stdint.h>
14 14  
15 15 #ifdef INTEL_SSE4
16   - #include <nmmintrin.h>
  16 + #ifdef __SSE4_2__
  17 + #include <nmmintrin.h>
  18 + #endif
  19 + #ifdef __SSE4_1__
  20 + #include <smmintrin.h>
  21 + #endif
17 22 #endif
18 23  
19 24 #ifdef INTEL_SSSE3
... ...