Skip to content

Commit 6d3f771

Browse files
committed
avcodec/x86/lpc, vp8dsp_init: Remove redundant checks
EXTERNAL_SSE2_SLOW is now more encompassing than EXTERNAL_SSE2. Signed-off-by: Andreas Rheinhardt <[email protected]>
1 parent ac322ec commit 6d3f771

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

libavcodec/x86/lpc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ av_cold void ff_lpc_init_x86(LPCContext *c)
154154
#if HAVE_SSE2_INLINE
155155
int cpu_flags = av_get_cpu_flags();
156156

157-
if (INLINE_SSE2(cpu_flags) || INLINE_SSE2_SLOW(cpu_flags)) {
157+
if (INLINE_SSE2_SLOW(cpu_flags)) {
158158
c->lpc_apply_welch_window = lpc_apply_welch_window_sse2;
159159
c->lpc_compute_autocorr = lpc_compute_autocorr_sse2;
160160
}

libavcodec/x86/vp8dsp_init.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ av_cold void ff_vp78dsp_init_x86(VP8DSPContext *c)
348348
c->put_vp8_bilinear_pixels_tab[0][0][0] = ff_put_vp8_pixels16_sse;
349349
}
350350

351-
if (EXTERNAL_SSE2(cpu_flags) || EXTERNAL_SSE2_SLOW(cpu_flags)) {
351+
if (EXTERNAL_SSE2_SLOW(cpu_flags)) {
352352
VP8_LUMA_MC_FUNC(0, 16, sse2);
353353
VP8_MC_FUNC(1, 8, sse2);
354354
VP8_BILINEAR_MC_FUNC(0, 16, sse2);
@@ -418,7 +418,7 @@ av_cold void ff_vp8dsp_init_x86(VP8DSPContext *c)
418418
c->vp8_luma_dc_wht = ff_vp8_luma_dc_wht_sse;
419419
}
420420

421-
if (EXTERNAL_SSE2(cpu_flags) || EXTERNAL_SSE2_SLOW(cpu_flags)) {
421+
if (EXTERNAL_SSE2_SLOW(cpu_flags)) {
422422
c->vp8_v_loop_filter_simple = ff_vp8_v_loop_filter_simple_sse2;
423423

424424
c->vp8_v_loop_filter16y_inner = ff_vp8_v_loop_filter16y_inner_sse2;

0 commit comments

Comments
 (0)