Re: [PATCH] ARM: clean up the memset64() C wrapper
From: Linus Torvalds
Date: Fri Feb 13 2026 - 14:17:13 EST
On Thu, 12 Feb 2026 at 23:39, Thomas Weißschuh
<thomas.weissschuh@xxxxxxxxxxxxx> 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