Re: [PATCH 18/25] x86: move the XOR code to lib/raid/
From: Peter Zijlstra
Date: Fri Feb 27 2026 - 09:33:57 EST
On Thu, Feb 26, 2026 at 07:10:30AM -0800, Christoph Hellwig wrote:
> Move the optimized XOR code out of line into lib/raid.
>
> Signed-off-by: Christoph Hellwig <hch@xxxxxx>
> ---
> arch/x86/include/asm/xor.h | 518 ++----------------
> arch/x86/include/asm/xor_64.h | 32 --
> lib/raid/xor/Makefile | 8 +
> .../xor_avx.h => lib/raid/xor/x86/xor-avx.c | 14 +-
> .../xor_32.h => lib/raid/xor/x86/xor-mmx.c | 60 +-
> lib/raid/xor/x86/xor-sse.c | 476 ++++++++++++++++
I gotta ask, why lib/raid/xor/$arch/ instead of something like
arch/$arch/lib/xor ?