]> git.ipfire.org Git - thirdparty/linux.git/commit
ARM: clean up the memset64() C wrapper
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Fri, 13 Feb 2026 07:39:29 +0000 (08:39 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 13 Feb 2026 19:15:05 +0000 (11:15 -0800)
commitb52343d1cb47bb27ca32a3f4952cc2fd3cd165bf
tree231db992346ebb9930440d888f62ae80799ce503
parentcd7a5651db263b5384aef1950898e5e889425134
ARM: clean up the memset64() C wrapper

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.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/arm/include/asm/string.h