1 // SPDX-License-Identifier: GPL-2.0-only 2 /* 3 * Copyright (C) 2013 Linaro Ltd <ard.biesheuvel@linaro.org> 4 */ 5 6 #include "xor_impl.h" 7 #include "xor_arch.h" 8 9 #ifndef __ARM_NEON__ 10 #error You should compile this file with '-march=armv7-a -mfloat-abi=softfp -mfpu=neon' 11 #endif 12 13 /* 14 * Pull in the reference implementations while instructing GCC (through 15 * -ftree-vectorize) to attempt to exploit implicit parallelism and emit 16 * NEON instructions. Clang does this by default at O2 so no pragma is 17 * needed. 18 */ 19 #ifdef CONFIG_CC_IS_GCC 20 #pragma GCC optimize "tree-vectorize" 21 #endif 22 23 #define NO_TEMPLATE 24 #include "../xor-8regs.c" 25 26 __DO_XOR_BLOCKS(neon_inner, xor_8regs_2, xor_8regs_3, xor_8regs_4, xor_8regs_5); 27