^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0-only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) * Copyright (C) 2018 Linaro, Ltd. <ard.biesheuvel@linaro.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) #ifndef __ASM_NEON_INTRINSICS_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) #define __ASM_NEON_INTRINSICS_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) #include <asm-generic/int-ll64.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) * In the kernel, u64/s64 are [un]signed long long, not [un]signed long.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) * So by redefining these macros to the former, we can force gcc-stdint.h
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) * to define uint64_t / in64_t in a compatible manner.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #ifdef __INT64_TYPE__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #undef __INT64_TYPE__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) #define __INT64_TYPE__ long long
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) #ifdef __UINT64_TYPE__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) #undef __UINT64_TYPE__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) #define __UINT64_TYPE__ unsigned long long
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) * genksyms chokes on the ARM NEON instrinsics system header, but we
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) * don't export anything it defines anyway, so just disregard when
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) * genksyms execute.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) #ifndef __GENKSYMS__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) #include <arm_neon.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) #ifdef CONFIG_CC_IS_CLANG
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) #pragma clang diagnostic ignored "-Wincompatible-pointer-types"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) #endif /* __ASM_NEON_INTRINSICS_H */