Reformat a bit, add MSVS checks, add SSE4

This commit is contained in:
Matt Sarett
2016-02-16 10:10:11 -05:00
parent f84f957881
commit 577c1f0305
3 changed files with 114 additions and 76 deletions

View File

@@ -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