mirror of https://github.com/davisking/dlib.git
Made the SIMD code automatically pick which kind of instructions to use when compiled
in visual studio based on the setting of the /arch compiler option.
This commit is contained in:
parent
7e7943cd37
commit
481c85b213
|
@ -7,13 +7,14 @@
|
|||
|
||||
// figure out which SIMD instructions we can use.
|
||||
#ifndef DLIB_DO_NOT_USE_SIMD
|
||||
#ifdef _MSC_VER
|
||||
#if _MSC_VER >= 1400
|
||||
#if defined(_MSC_VER) && defined(_M_IX86_FP)
|
||||
#if _M_IX86_FP >= 2
|
||||
#define DLIB_HAVE_SSE2
|
||||
#endif
|
||||
#if _MSC_VER >= 1500
|
||||
#define DLIB_HAVE_SSE3
|
||||
#define DLIB_HAVE_SSE41
|
||||
#ifdef __AVX__
|
||||
#define DLIB_HAVE_SSE3
|
||||
#define DLIB_HAVE_SSE41
|
||||
#define DLIB_HAVE_AVX
|
||||
#endif
|
||||
#endif
|
||||
#else
|
||||
#ifdef __SSE2__
|
||||
|
|
Loading…
Reference in New Issue