162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Copyright (C) 2018 Linaro, Ltd. <ard.biesheuvel@linaro.org> 462306a36Sopenharmony_ci */ 562306a36Sopenharmony_ci 662306a36Sopenharmony_ci#ifndef __ASM_NEON_INTRINSICS_H 762306a36Sopenharmony_ci#define __ASM_NEON_INTRINSICS_H 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci#include <asm-generic/int-ll64.h> 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ci/* 1262306a36Sopenharmony_ci * In the kernel, u64/s64 are [un]signed long long, not [un]signed long. 1362306a36Sopenharmony_ci * So by redefining these macros to the former, we can force gcc-stdint.h 1462306a36Sopenharmony_ci * to define uint64_t / in64_t in a compatible manner. 1562306a36Sopenharmony_ci */ 1662306a36Sopenharmony_ci 1762306a36Sopenharmony_ci#ifdef __INT64_TYPE__ 1862306a36Sopenharmony_ci#undef __INT64_TYPE__ 1962306a36Sopenharmony_ci#define __INT64_TYPE__ long long 2062306a36Sopenharmony_ci#endif 2162306a36Sopenharmony_ci 2262306a36Sopenharmony_ci#ifdef __UINT64_TYPE__ 2362306a36Sopenharmony_ci#undef __UINT64_TYPE__ 2462306a36Sopenharmony_ci#define __UINT64_TYPE__ unsigned long long 2562306a36Sopenharmony_ci#endif 2662306a36Sopenharmony_ci 2762306a36Sopenharmony_ci/* 2862306a36Sopenharmony_ci * genksyms chokes on the ARM NEON instrinsics system header, but we 2962306a36Sopenharmony_ci * don't export anything it defines anyway, so just disregard when 3062306a36Sopenharmony_ci * genksyms execute. 3162306a36Sopenharmony_ci */ 3262306a36Sopenharmony_ci#ifndef __GENKSYMS__ 3362306a36Sopenharmony_ci#include <arm_neon.h> 3462306a36Sopenharmony_ci#endif 3562306a36Sopenharmony_ci 3662306a36Sopenharmony_ci#ifdef CONFIG_CC_IS_CLANG 3762306a36Sopenharmony_ci#pragma clang diagnostic ignored "-Wincompatible-pointer-types" 3862306a36Sopenharmony_ci#endif 3962306a36Sopenharmony_ci 4062306a36Sopenharmony_ci#endif /* __ASM_NEON_INTRINSICS_H */ 41