Re: [PATCH] eal/x86: optimize memcpy of small 64-byte blocks

Stephen Hemminger <[email protected]>
Newsgroups org.dpdk.dev
Message-ID <[email protected]>
On Tue,  4 Aug 2026 14:33:04 +0000
Morten Brørup <[email protected]> wrote:

> +	/* Common way for small copy size of 64-byte blocks. Unlikely, so constant size only */
> +	if (__rte_constant(n) && (n & 63) == 0 && n <= RTE_MEMCPY_BLOCK_64_MAX) {
> +		void *ret = dst;
> +

Maybe just let compiler decide, it will generate vector instructions in most cases.

	if (__rte_constant(n))
		return mempcpy(dst, src, n);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.