diff options
Diffstat (limited to 'lib/libc/include/i386-linux-gnu/bits/wordsize.h')
| -rw-r--r-- | lib/libc/include/i386-linux-gnu/bits/wordsize.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/libc/include/i386-linux-gnu/bits/wordsize.h b/lib/libc/include/i386-linux-gnu/bits/wordsize.h new file mode 100644 index 0000000000..0bf84a4e99 --- /dev/null +++ b/lib/libc/include/i386-linux-gnu/bits/wordsize.h @@ -0,0 +1,17 @@ +/* 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 + +#ifdef __x86_64__ +# define __WORDSIZE_TIME64_COMPAT32 1 +/* Both x86-64 and x32 use the 64-bit system call interface. */ +# define __SYSCALL_WORDSIZE 64 +#else +# define __WORDSIZE_TIME64_COMPAT32 0 +#endif
\ No newline at end of file |
