Don't enable SSE2 optimizations when using VC9 and older compiler
This commit is contained in:
parent
8cb5f8f158
commit
f1ecc2c50d
@ -211,7 +211,10 @@
|
||||
* enable SSE optimizations. This means that these optimizations will
|
||||
* be off by default. See contrib/intel for more details.
|
||||
*/
|
||||
# if defined(__SSE4_1__) || defined(__AVX__) || defined(__SSSE3__) || \
|
||||
# if defined(_MSC_VER) && _MSC_VER <= 1500
|
||||
// Don't enable for VC9 and older: missing include file immintrin.h
|
||||
# define PNG_INTEL_SSE_OPT 0
|
||||
# elif defined(__SSE4_1__) || defined(__AVX__) || defined(__SSSE3__) || \
|
||||
defined(__SSE2__) || defined(_M_X64) || defined(_M_AMD64) || \
|
||||
(defined(_M_IX86_FP) && _M_IX86_FP >= 2)
|
||||
# define PNG_INTEL_SSE_OPT 1
|
||||
|
Loading…
Reference in New Issue
Block a user