diff options
-rw-r--r-- | libavcodec/x86/hevc_intra_intrinsic.c | 10 | ||||
-rw-r--r-- | libavcodec/x86/hevcdsp_init.c | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/libavcodec/x86/hevc_intra_intrinsic.c b/libavcodec/x86/hevc_intra_intrinsic.c index 40e44d9f59..3a8a331ed9 100644 --- a/libavcodec/x86/hevc_intra_intrinsic.c +++ b/libavcodec/x86/hevc_intra_intrinsic.c @@ -7,7 +7,7 @@ #ifdef __GNUC__ #pragma GCC push_options -#pragma GCC target("sse4.2") +#pragma GCC target("sse4.1") #endif #if HAVE_SSE2 @@ -16,11 +16,11 @@ #if HAVE_SSSE3 #include <tmmintrin.h> #endif -#if HAVE_SSE42 +#if HAVE_SSE4 #include <smmintrin.h> #endif -#if HAVE_SSE42 +#if HAVE_SSE4 #define _MM_PACKUS_EPI32 _mm_packus_epi32 #else static av_always_inline __m128i _MM_PACKUS_EPI32( __m128i a, __m128i b ) @@ -37,7 +37,7 @@ static av_always_inline __m128i _MM_PACKUS_EPI32( __m128i a, __m128i b ) //////////////////////////////////////////////////////////////////////////////// // //////////////////////////////////////////////////////////////////////////////// -#if HAVE_SSE42 +#if HAVE_SSE4 #define PLANAR_INIT_8() \ uint8_t *src = (uint8_t*)_src; \ const uint8_t *top = (const uint8_t*)_top; \ @@ -634,7 +634,7 @@ PRED_PLANAR_3(10) //////////////////////////////////////////////////////////////////////////////// // //////////////////////////////////////////////////////////////////////////////// -#if HAVE_SSE42 +#if HAVE_SSE4 #define ANGULAR_COMPUTE_10(W) \ for (x = 0; x < W; x += 4) { \ r3 = _mm_set1_epi32((fact << 16) + (32 - fact)); \ diff --git a/libavcodec/x86/hevcdsp_init.c b/libavcodec/x86/hevcdsp_init.c index a792359136..1d02ed06cc 100644 --- a/libavcodec/x86/hevcdsp_init.c +++ b/libavcodec/x86/hevcdsp_init.c @@ -722,12 +722,12 @@ void ff_hevc_pred_init_x86(HEVCPredContext *hpc, int bit_depth) int mm_flags = av_get_cpu_flags(); if (bit_depth == 8) { - if (HAVE_SSE42 && EXTERNAL_SSE42(mm_flags)) { + if (EXTERNAL_SSE4(mm_flags)) { HEVC_PRED(8); } } if (bit_depth == 10) { - if (HAVE_SSE42 && EXTERNAL_SSE42(mm_flags)) { + if (EXTERNAL_SSE4(mm_flags)) { HEVC_PRED(10); } } |