From cd3d8116fb751fea6c498998f6ec2e30e6529a5d Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sun, 25 Jan 2026 19:19:39 +0100 Subject: [PATCH] avcodec/x86/cfhdencdsp: Avoid load of -1 It can be easily generated at runtime. Reviewed-by: James Almer Signed-off-by: Andreas Rheinhardt --- libavcodec/x86/cfhdencdsp.asm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libavcodec/x86/cfhdencdsp.asm b/libavcodec/x86/cfhdencdsp.asm index 4aaeb56972..3d4aa90e96 100644 --- a/libavcodec/x86/cfhdencdsp.asm +++ b/libavcodec/x86/cfhdencdsp.asm @@ -31,7 +31,6 @@ pw_p11_n5: dw 11, -5, 11, -5, 11, -5, 11, -5 pw_n11_p5: dw -11, 5, -11, 5, -11, 5, -11, 5 pd_4: times 4 dd 4 pw_n4: times 8 dw -4 -cextern pw_m1 cextern pw_1 cextern pw_4 @@ -45,7 +44,7 @@ cglobal cfhdenc_horiz_filter, 8, 10, 11, input, low, high, istride, lwidth, hwid shl hwidthq, 1 mova m7, [pd_4] mova m8, [pw_1] - mova m9, [pw_m1] + pcmpeqw m9, m9 ; -1 mova m10,[pw_p1_n1] movsxdifnidn yq, yd movsxdifnidn widthq, widthd @@ -207,7 +206,7 @@ cglobal cfhdenc_vert_filter, 8, 11, 14, input, low, high, istride, lwidth, hwidt mova m7, [pd_4] mova m8, [pw_1] - mova m9, [pw_m1] + pcmpeqw m9, m9 ; -1 mova m10,[pw_p1_n1] mova m11,[pw_n1_p1] mova m12,[pw_4]