blob: 522510baed490214bbc2d15b9c3fbf4e4a7b84d7 [file] [log] [blame]
// SPDX-License-Identifier: GPL-2.0-only
* linux/arch/arm/lib/xor-neon.c
* Copyright (C) 2013 Linaro Ltd <>
#include <linux/raid/xor.h>
#include <linux/module.h>
#ifndef __ARM_NEON__
#error You should compile this file with '-march=armv7-a -mfloat-abi=softfp -mfpu=neon'
* Pull in the reference implementations while instructing GCC (through
* -ftree-vectorize) to attempt to exploit implicit parallelism and emit
* NEON instructions. Clang does this by default at O2 so no pragma is
* needed.
#pragma GCC optimize "tree-vectorize"
#pragma GCC diagnostic ignored "-Wunused-variable"
#include <asm-generic/xor.h>
struct xor_block_template const xor_block_neon_inner = {
.name = "__inner_neon__",
.do_2 = xor_8regs_2,
.do_3 = xor_8regs_3,
.do_4 = xor_8regs_4,
.do_5 = xor_8regs_5,