Changed SIMD #includes so they work on older versions of gcc

This commit is contained in:
Davis King 2014-01-02 09:22:10 -05:00
parent 43ce7908b9
commit f56043b79a
1 changed files with 17 additions and 21 deletions

View File

@ -38,27 +38,23 @@
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
#ifdef __GNUC__ #ifdef DLIB_HAVE_SSE2
#include <x86intrin.h> #include <xmmintrin.h>
#else #include <emmintrin.h>
#ifdef DLIB_HAVE_SSE2 #include <mmintrin.h>
#include <xmmintrin.h> #endif
#include <emmintrin.h> #ifdef DLIB_HAVE_SSE3
#include <mmintrin.h> #include <pmmintrin.h> // SSE3
#endif #include <tmmintrin.h>
#ifdef DLIB_HAVE_SSE3 #endif
#include <pmmintrin.h> // SSE3 #ifdef DLIB_HAVE_SSE41
#include <tmmintrin.h> #include <smmintrin.h> // SSE4
#endif #endif
#ifdef DLIB_HAVE_SSE41 #ifdef DLIB_HAVE_AVX
#include <smmintrin.h> // SSE4 #include <immintrin.h> // AVX
#endif #endif
#ifdef DLIB_HAVE_AVX #ifdef DLIB_HAVE_AVX2
#include <immintrin.h> // AVX #include <avx2intrin.h>
#endif
#ifdef DLIB_HAVE_AVX2
#include <avx2intrin.h>
#endif
#endif #endif
#endif // DLIB_SIMd_CHECK_H__ #endif // DLIB_SIMd_CHECK_H__