1 // SPDX-License-Identifier: GPL-2.0-only
3 * linux/arch/arm/lib/xor-neon.c
8 #include <linux/raid/xor.h>
9 #include <linux/module.h>
11 MODULE_LICENSE("GPL");
14 #error You should compile this file with '-march=armv7-a -mfloat-abi=softfp -mfpu=neon'
18 * Pull in the reference implementations while instructing GCC (through
19 * -ftree-vectorize) to attempt to exploit implicit parallelism and emit
20 * NEON instructions. Clang does this by default at O2 so no pragma is
23 #ifdef CONFIG_CC_IS_GCC
24 #pragma GCC optimize "tree-vectorize"
27 #pragma GCC diagnostic ignored "-Wunused-variable"
28 #include <asm-generic/xor.h>
30 struct xor_block_template const xor_block_neon_inner = {
31 .name = "__inner_neon__",
37 EXPORT_SYMBOL(xor_block_neon_inner);