Re: [PATCH v9] eal/x86: improve rte_memcpy const size 16 performance

2024-07-10 Thread David Marchand
On Tue, Jul 9, 2024 at 3:28 PM Morten Brørup wrote: > > When the rte_memcpy() size is 16, the same 16 bytes are copied twice. > In the case where the size is known to be 16 at build time, omit the > duplicate copy. > > Reduced the amount of effectively copy-pasted code by using #ifdef > inside fun

Re: [PATCH v9] eal/x86: improve rte_memcpy const size 16 performance

2024-07-09 Thread David Marchand
On Tue, Jul 9, 2024 at 3:28 PM Morten Brørup wrote: > > When the rte_memcpy() size is 16, the same 16 bytes are copied twice. > In the case where the size is known to be 16 at build time, omit the > duplicate copy. > > Reduced the amount of effectively copy-pasted code by using #ifdef > inside fun

[PATCH v9] eal/x86: improve rte_memcpy const size 16 performance

2024-07-09 Thread Morten Brørup
When the rte_memcpy() size is 16, the same 16 bytes are copied twice. In the case where the size is known to be 16 at build time, omit the duplicate copy. Reduced the amount of effectively copy-pasted code by using #ifdef inside functions instead of outside functions. Suggested-by: Stephen Hemmin