Skip to content

Call memcpy() in avm_[highbd_]convolve_copy_*() - #5258

Merged
urvangjoshi merged 1 commit into
AOMediaCodec:mainfrom
wantehchang:convolve-copy-memcpy
Aug 20, 2026
Merged

Call memcpy() in avm_[highbd_]convolve_copy_*()#5258
urvangjoshi merged 1 commit into
AOMediaCodec:mainfrom
wantehchang:convolve-copy-memcpy

Conversation

@wantehchang

@wantehchang wantehchang commented Aug 12, 2026

Copy link
Copy Markdown
Member
Call memcpy() instead of memmove() in avm_convolve_copy_*() and
avm_highbd_convolve_copy_*(). avm_highbd_convolve_copy_avx2() and 
avm_highbd_convolve_copy_sse2() do not handle overlapping src and dst 
buffers when w is 256, so it is not necessary to call memmove().

Comment thread avm_dsp/x86/avm_convolve_copy_avx2.c
Comment thread avm_dsp/x86/avm_convolve_copy_avx2.c
@urvangjoshi
urvangjoshi enabled auto-merge (squash) August 12, 2026 23:25
Comment thread avm_dsp/x86/avm_convolve_copy_avx2.c
Comment thread avm_dsp/x86/avm_convolve_copy_avx2.c
Comment thread avm_dsp/x86/avm_convolve_copy_sse2.c
@wantehchang
wantehchang marked this pull request as draft August 13, 2026 17:02
auto-merge was automatically disabled August 13, 2026 17:02

Pull request was converted to draft

@wantehchang
wantehchang force-pushed the convolve-copy-memcpy branch from 181dbb8 to 77f4d60 Compare August 19, 2026 20:26
@wantehchang
wantehchang marked this pull request as ready for review August 19, 2026 20:27
@urvangjoshi
urvangjoshi enabled auto-merge (squash) August 19, 2026 20:29
Call memcpy() instead of memmove() in avm_convolve_copy_*() and
avm_highbd_convolve_copy_*(). avm_highbd_convolve_copy_avx2() and
avm_highbd_convolve_copy_sse2() do not handle overlapping src and dst
buffers when w is 256, so it is not necessary to call memmove().
@wantehchang
wantehchang force-pushed the convolve-copy-memcpy branch from 77f4d60 to 1dd6acf Compare August 19, 2026 20:35
@wantehchang

Copy link
Copy Markdown
Member Author

Urvang: I just updated the commit message to reflect my latest findings.

@urvangjoshi
urvangjoshi merged commit dcc6b02 into AOMediaCodec:main Aug 20, 2026
107 checks passed
@wantehchang
wantehchang deleted the convolve-copy-memcpy branch August 20, 2026 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants