mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-02-07 06:44:18 +00:00
a94b3d14aa
Changes included (and more): 1. Dynamic RAM merge 2. Real-time page scan and allocation 3. Cache compression 4. Real-time IRQ checks 5. Dynamic I/O allocation for Java heap 6. Java page migration 7. Contiguous memory allocation 8. Idle pages tracking 9. Per CPU RAM usage tracking 10. ARM NEON scalar multiplication library 11. NEON/ARMv8 crypto extensions 12. NEON SHA, Blake, RIPEMD crypto extensions 13. Parallel NEON crypto engine for multi-algo based CPU stress reduction
38 lines
939 B
C
38 lines
939 B
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
/*
|
|
* linux/arch/arm/lib/xor-neon.c
|
|
*
|
|
* Copyright (C) 2013 Linaro Ltd <ard.biesheuvel@linaro.org>
|
|
*/
|
|
|
|
#include <linux/raid/xor.h>
|
|
#include <linux/module.h>
|
|
|
|
MODULE_LICENSE("GPL");
|
|
|
|
#ifndef __ARM_NEON__
|
|
#error You should compile this file with '-march=armv7-a -mfloat-abi=softfp -mfpu=neon'
|
|
#endif
|
|
|
|
/*
|
|
* 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.
|
|
*/
|
|
#ifdef CONFIG_CC_IS_GCC
|
|
#pragma GCC optimize "tree-vectorize"
|
|
#endif
|
|
|
|
#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,
|
|
};
|
|
EXPORT_SYMBOL(xor_block_neon_inner);
|