2002-03-03 19:45:53 +00:00
|
|
|
/* Determine the wordsize from the preprocessor defines. */
|
|
|
|
|
2012-04-13 23:17:14 +00:00
|
|
|
#if defined __x86_64__ && !defined __ILP32__
|
2002-03-03 19:45:53 +00:00
|
|
|
# define __WORDSIZE 64
|
|
|
|
#else
|
|
|
|
# define __WORDSIZE 32
|
2016-11-04 16:37:44 +00:00
|
|
|
#define __WORDSIZE32_SIZE_ULONG 0
|
|
|
|
#define __WORDSIZE32_PTRDIFF_LONG 0
|
2002-03-03 19:45:53 +00:00
|
|
|
#endif
|
2012-05-21 18:45:16 +00:00
|
|
|
|
|
|
|
#ifdef __x86_64__
|
2012-05-21 20:39:55 +00:00
|
|
|
# define __WORDSIZE_TIME64_COMPAT32 1
|
2012-05-21 18:45:16 +00:00
|
|
|
/* Both x86-64 and x32 use the 64-bit system call interface. */
|
|
|
|
# define __SYSCALL_WORDSIZE 64
|
2016-11-04 16:37:44 +00:00
|
|
|
#else
|
|
|
|
# define __WORDSIZE_TIME64_COMPAT32 0
|
2012-05-21 18:45:16 +00:00
|
|
|
#endif
|