summaryrefslogtreecommitdiff
path: root/pngpriv.h
diff options
context:
space:
mode:
authorMatt Sarett <msarett@google.com>2016-02-16 10:10:11 -0500
committerMatt Sarett <msarett@google.com>2016-02-16 10:10:11 -0500
commit577c1f03055e3b8c6ca9b7b8883eab1875f0a307 (patch)
tree0c50b57371e7488cde04587d258f8e9b03856c4e /pngpriv.h
parentf84f95788121dcf5946f721ff88d14ee64247a40 (diff)
downloadlibpng-577c1f03055e3b8c6ca9b7b8883eab1875f0a307.tar.gz
Reformat a bit, add MSVS checks, add SSE4
Diffstat (limited to 'pngpriv.h')
-rw-r--r--pngpriv.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/pngpriv.h b/pngpriv.h
index 18ff7f379..cf7b29974 100644
--- a/pngpriv.h
+++ b/pngpriv.h
@@ -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