neon-intrinsics.h 959 B

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