about summary refs log tree commit diff
path: root/sysdeps/x86/bits/wordsize.h
blob: 3f40aa76f99c75e5aabc1390ab4a2ff4647e6035 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* Determine the wordsize from the preprocessor defines.  */

#if defined __x86_64__ && !defined __ILP32__
# define __WORDSIZE	64
#else
# define __WORDSIZE	32
#define __WORDSIZE32_SIZE_ULONG		0
#define __WORDSIZE32_PTRDIFF_LONG	0
#endif

#define __WORDSIZE_TIME64_COMPAT32 1

#ifdef __x86_64__
/* Both x86-64 and x32 use the 64-bit system call interface.  */
# define __SYSCALL_WORDSIZE		64
#endif