Re: [PATCH 00/32] Use structure assignment instead of memcpy

2025-06-11 Thread Thomas Monjalon
08/02/2025 21:21, Stephen Hemminger: > This patch series reduces use of memcpy and rte_memcpy > in DPDK. It changes memcpy to a simple assignment operator > which easier to read, generates the same code, and > keeps type safety. > > Historically memcpy was used in textbooks because there > was no

[PATCH 00/32] Use structure assignment instead of memcpy

2025-02-08 Thread Stephen Hemminger
This patch series reduces use of memcpy and rte_memcpy in DPDK. It changes memcpy to a simple assignment operator which easier to read, generates the same code, and keeps type safety. Historically memcpy was used in textbooks because there was no structure assignement in original K&R C. Stephen H