wordsize.h 398 B

12345678910111213141516
  1. /* Determine the wordsize from the preprocessor defines. */
  2. #if defined __x86_64__ && !defined __ILP32__
  3. # define __WORDSIZE 64
  4. #else
  5. # define __WORDSIZE 32
  6. #define __WORDSIZE32_SIZE_ULONG 0
  7. #define __WORDSIZE32_PTRDIFF_LONG 0
  8. #endif
  9. #define __WORDSIZE_TIME64_COMPAT32 1
  10. #ifdef __x86_64__
  11. /* Both x86-64 and x32 use the 64-bit system call interface. */
  12. # define __SYSCALL_WORDSIZE 64
  13. #endif