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
master
Leo Laksmana 2014-08-23 18:08:31 +08:00
parent c25310f215
commit 6f160921dc
1 changed files with 6 additions and 1 deletions

View File

@ -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