int-ll64.h 893 B

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