Unbreak ARM64 kernel build after r361426

X-MFC-With:	r361426
This commit is contained in:
Conrad Meyer 2020-05-23 23:10:03 +00:00
parent 37f1f2684f
commit b6be5f6405
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=361427

View File

@ -19,7 +19,7 @@
/*-*************************************
* Dependencies
***************************************/
#ifdef __aarch64__
#if defined(__aarch64__) && !defined(_KERNEL)
#include <arm_neon.h>
#endif
#include "compiler.h"
@ -228,7 +228,7 @@ static const U32 OF_defaultNormLog = OF_DEFAULTNORMLOG;
* Shared functions to include for inlining
*********************************************/
static void ZSTD_copy8(void* dst, const void* src) {
#ifdef __aarch64__
#if defined(__aarch64__) && !defined(_KERNEL)
vst1_u8((uint8_t*)dst, vld1_u8((const uint8_t*)src));
#else
memcpy(dst, src, 8);
@ -237,7 +237,7 @@ static void ZSTD_copy8(void* dst, const void* src) {
#define COPY8(d,s) { ZSTD_copy8(d,s); d+=8; s+=8; }
static void ZSTD_copy16(void* dst, const void* src) {
#ifdef __aarch64__
#if defined(__aarch64__) && !defined(_KERNEL)
vst1q_u8((uint8_t*)dst, vld1q_u8((const uint8_t*)src));
#else
memcpy(dst, src, 16);