This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 5a60b3f1a618ec9981f2950558df59087f799995 Author: Andreas Rheinhardt <[email protected]> AuthorDate: Tue Feb 17 20:27:51 2026 +0100 Commit: Andreas Rheinhardt <[email protected]> CommitDate: Sun Feb 22 00:57:56 2026 +0100 avcodec/x86/vvc/mc: Remove always-false branches The C versions of the average and weighted average functions contains "FFMAX(3, 15 - BIT_DEPTH)" and the code here followed this; yet it is only instantiated for bit depths 8, 10 and 12, for which the above is just 15-BIT_DEPTH. So the comparisons are unnecessary. Signed-off-by: Andreas Rheinhardt <[email protected]> --- libavcodec/x86/vvc/mc.asm | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/libavcodec/x86/vvc/mc.asm b/libavcodec/x86/vvc/mc.asm index 539a5a4bb3..3272765b57 100644 --- a/libavcodec/x86/vvc/mc.asm +++ b/libavcodec/x86/vvc/mc.asm @@ -35,8 +35,6 @@ SECTION_RODATA %if HAVE_AVX2_EXTERNAL -pw_0 times 2 dw 0 -pw_4 times 2 dw 4 pw_256 times 2 dw 256 %macro AVG_JMP_TABLE 3-* @@ -241,8 +239,6 @@ cglobal vvc_avg_%1bpc, 4, 7, 3+2*(%1 != 8), dst, stride, src0, src1, w, h, bd sub bdd, 8 movd xm0, bdd - vpbroadcastd m1, [pw_4] - pminuw m0, m1 vpbroadcastd m2, [pw_256] psllw m2, xm0 ; shift @@ -283,9 +279,7 @@ cglobal vvc_w_avg_%1bpc, 4, 8, 6+2*(%1 != 8), dst, stride, src0, src1, w, h, t0, inc t0d ;((o0 + o1) << (BIT_DEPTH - 8)) + 1 neg ecx - add ecx, 4 ; bd - 12 - cmovl ecx, [pw_0] - add ecx, 3 + add ecx, 7 add ecx, r6m movd xm2, ecx ; shift _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
