From f84f95788121dcf5946f721ff88d14ee64247a40 Mon Sep 17 00:00:00 2001 From: Matt Sarett Date: Mon, 15 Feb 2016 14:45:14 -0500 Subject: [PATCH] Use PNG_INTEL_SSE_OPT instead of PNG_INTEL_SSE2_OPT --- intel/filter_sse2_intrinsics.c | 10 +++++----- intel/intel_init.c | 4 ++-- pngpriv.h | 8 ++++---- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/intel/filter_sse2_intrinsics.c b/intel/filter_sse2_intrinsics.c index 17b385efb..51837a64c 100644 --- a/intel/filter_sse2_intrinsics.c +++ b/intel/filter_sse2_intrinsics.c @@ -12,11 +12,11 @@ #ifdef PNG_READ_SUPPORTED -#if PNG_INTEL_SSE2_OPT > 0 +#if PNG_INTEL_SSE_OPT > 0 -#if PNG_INTEL_SSE2_OPT == 1 +#if PNG_INTEL_SSE_OPT == 1 #include -#elif PNG_INTEL_SSE2_OPT == 2 +#elif PNG_INTEL_SSE_OPT == 2 #include #endif @@ -132,7 +132,7 @@ void png_read_filter_row_avg4_sse2(png_row_infop row_info, png_bytep row, // Returns |x| for 16-bit lanes. static __m128i abs_i16(__m128i x) { -#if PNG_INTEL_SSE2_OPT >= 2 +#if PNG_INTEL_SSE_OPT >= 2 return _mm_abs_epi16(x); #else // Read this all as, return x<0 ? -x : x. @@ -257,5 +257,5 @@ void png_read_filter_row_paeth4_sse2(png_row_infop row_info, png_bytep row, } } -#endif /* PNG_INTEL_SSE2_OPT > 0 */ +#endif /* PNG_INTEL_SSE_OPT > 0 */ #endif /* READ */ diff --git a/intel/intel_init.c b/intel/intel_init.c index 6b1d859c6..7e7af2944 100644 --- a/intel/intel_init.c +++ b/intel/intel_init.c @@ -11,7 +11,7 @@ #include "../pngpriv.h" #ifdef PNG_READ_SUPPORTED -#if PNG_INTEL_SSE2_OPT > 0 +#if PNG_INTEL_SSE_OPT > 0 void png_init_filter_functions_sse2(png_structp pp, unsigned int bpp) @@ -34,5 +34,5 @@ png_init_filter_functions_sse2(png_structp pp, unsigned int bpp) // No need optimize PNG_FILTER_VALUE_UP. The compiler should autovectorize. } -#endif /* PNG_INTEL_SSE2_OPT > 0 */ +#endif /* PNG_INTEL_SSE_OPT > 0 */ #endif /* PNG_READ_SUPPORTED */ diff --git a/pngpriv.h b/pngpriv.h index 9f4d6302d..18ff7f379 100644 --- a/pngpriv.h +++ b/pngpriv.h @@ -182,15 +182,15 @@ # endif #endif /* PNG_ARM_NEON_OPT > 0 */ -#ifndef PNG_INTEL_SSE2_OPT +#ifndef PNG_INTEL_SSE_OPT # if defined(__SSE3__) || defined(__SSSE3__) -# define PNG_INTEL_SSE2_OPT 2 +# define PNG_INTEL_SSE_OPT 2 # elif defined(__SSE2__) -# define PNG_INTEL_SSE2_OPT 1 +# define PNG_INTEL_SSE_OPT 1 # endif #endif -#if PNG_INTEL_SSE2_OPT > 0 +#if PNG_INTEL_SSE_OPT > 0 # define PNG_FILTER_OPTIMIZATIONS png_init_filter_functions_sse2 #endif