diff options
author | Matt Sarett <msarett@google.com> | 2016-02-16 10:10:11 -0500 |
---|---|---|
committer | Matt Sarett <msarett@google.com> | 2016-02-16 10:10:11 -0500 |
commit | 577c1f03055e3b8c6ca9b7b8883eab1875f0a307 (patch) | |
tree | 0c50b57371e7488cde04587d258f8e9b03856c4e /pngpriv.h | |
parent | f84f95788121dcf5946f721ff88d14ee64247a40 (diff) | |
download | libpng-577c1f03055e3b8c6ca9b7b8883eab1875f0a307.tar.gz |
Reformat a bit, add MSVS checks, add SSE4
Diffstat (limited to 'pngpriv.h')
-rw-r--r-- | pngpriv.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -183,9 +183,12 @@ #endif /* PNG_ARM_NEON_OPT > 0 */ #ifndef PNG_INTEL_SSE_OPT -# if defined(__SSE3__) || defined(__SSSE3__) +# if defined(__SSE4_1__) +# define PNG_INTEL_SSE_OPT 3 +# elif defined(__SSE3__) || defined(__SSSE3__) # define PNG_INTEL_SSE_OPT 2 -# elif defined(__SSE2__) +# elif defined(__SSE2__) || defined(_M_X64) || defined(_M_AMD64) || \ + (defined(_M_IX86_FP) && _M_IX86_FP >= 2) # define PNG_INTEL_SSE_OPT 1 # endif #endif |