[PATCH] ARM: clean up the memset64() C wrapper
Linus Torvalds
torvalds at linux-foundation.org
Fri Feb 13 11:16:44 PST 2026
On Thu, 12 Feb 2026 at 23:39, Thomas Weißschuh
<thomas.weissschuh at linutronix.de> wrote:
>
> The current logic to split the 64-bit argument into its 32-bit halves is
> byte-order specific and a bit clunky. Use a union instead which is
> easier to read and works in all cases.
>
> GCC still generates the same machine code.
>
> While at it, rename the arguments of the __memset64() prototype to
> actually reflect their semantics.
I'll just apply this directly since I suggested this change, and I'm
doing some architecture patches - like your alpha fix for a missing
argument - and pulls right now anyway.
Linus
More information about the linux-arm-kernel
mailing list