Skip to content

Commit

Permalink
Revert "pngpriv: Enable SSE opt based on compiler support"
Browse files Browse the repository at this point in the history
This reverts commit ae304f5.
  • Loading branch information
csparker247 committed Aug 12, 2024
1 parent 5499c55 commit 24a7005
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions pngpriv.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,18 @@
#endif

#ifndef PNG_INTEL_SSE_OPT
# if 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
# ifdef PNG_INTEL_SSE
/* Only check for SSE if the build configuration has been modified to
* 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__) || \
defined(__SSE2__) || defined(_M_X64) || defined(_M_AMD64) || \
(defined(_M_IX86_FP) && _M_IX86_FP >= 2)
# define PNG_INTEL_SSE_OPT 1
# else
# define PNG_INTEL_SSE_OPT 0
# endif
# else
# define PNG_INTEL_SSE_OPT 0
# endif
Expand Down

0 comments on commit 24a7005

Please sign in to comment.