int-ll64.h 961 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. #ifndef __ASSEMBLY__
  11. /*
  12. * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
  13. * header files exported to user space
  14. */
  15. typedef __signed__ char __s8;
  16. typedef unsigned char __u8;
  17. typedef __signed__ short __s16;
  18. typedef unsigned short __u16;
  19. typedef __signed__ int __s32;
  20. typedef unsigned int __u32;
  21. #ifdef __GNUC__
  22. __extension__ typedef __signed__ long long __s64;
  23. __extension__ typedef unsigned long long __u64;
  24. #else
  25. typedef __signed__ long long __s64;
  26. typedef unsigned long long __u64;
  27. #endif
  28. typedef __s8 s8;
  29. typedef __u8 u8;
  30. typedef __s16 s16;
  31. typedef __u16 u16;
  32. typedef __s32 s32;
  33. typedef __u32 u32;
  34. typedef __s64 s64;
  35. typedef __u64 u64;
  36. #endif /* __ASSEMBLY__ */
  37. #endif /* _ASM_GENERIC_INT_LL64_H */