int-ll64.h 864 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  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 <asm/bitsperlong.h>
  11. #ifndef __ASSEMBLY__
  12. /*
  13. * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
  14. * header files exported to user space
  15. */
  16. typedef __signed__ char __s8;
  17. typedef unsigned char __u8;
  18. typedef __signed__ short __s16;
  19. typedef unsigned short __u16;
  20. typedef __signed__ int __s32;
  21. typedef unsigned int __u32;
  22. #ifdef __GNUC__
  23. __extension__ typedef __signed__ long long __s64;
  24. __extension__ typedef unsigned long long __u64;
  25. #else
  26. typedef __signed__ long long __s64;
  27. typedef unsigned long long __u64;
  28. #endif
  29. #endif /* __ASSEMBLY__ */
  30. #endif /* _ASM_GENERIC_INT_LL64_H */