int-ll64.h 932 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * asm-generic/int-ll64.h
  4. *
  5. * Integer declarations for architectures which use "long long"
  6. * for 64-bit types.
  7. */
  8. #ifndef _ASM_GENERIC_INT_LL64_H
  9. #define _ASM_GENERIC_INT_LL64_H
  10. #include <uapi/asm-generic/int-ll64.h>
  11. #ifndef __ASSEMBLY__
  12. typedef signed char s8;
  13. typedef unsigned char u8;
  14. typedef signed short s16;
  15. typedef unsigned short u16;
  16. typedef signed int s32;
  17. typedef unsigned int u32;
  18. typedef signed long long s64;
  19. typedef unsigned long long u64;
  20. #define S8_C(x) x
  21. #define U8_C(x) x ## U
  22. #define S16_C(x) x
  23. #define U16_C(x) x ## U
  24. #define S32_C(x) x
  25. #define U32_C(x) x ## U
  26. #define S64_C(x) x ## LL
  27. #define U64_C(x) x ## ULL
  28. #else /* __ASSEMBLY__ */
  29. #define S8_C(x) x
  30. #define U8_C(x) x
  31. #define S16_C(x) x
  32. #define U16_C(x) x
  33. #define S32_C(x) x
  34. #define U32_C(x) x
  35. #define S64_C(x) x
  36. #define U64_C(x) x
  37. #endif /* __ASSEMBLY__ */
  38. #endif /* _ASM_GENERIC_INT_LL64_H */