about summary refs log tree commit diff
path: root/sysdeps/x86
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-05-30 17:25:23 -0700
committerH.J. Lu <hjl.tools@gmail.com>2012-05-30 17:25:23 -0700
commit3a257e668e41fa6bab6b758adbe508b8fe32e2d2 (patch)
treed4e1b5f18a982fd6b780482abb46351b4acf830c /sysdeps/x86
parent62f62904cf2196c8593f31170a8df9b06e76e431 (diff)
downloadglibc-3a257e668e41fa6bab6b758adbe508b8fe32e2d2.tar.gz
glibc-3a257e668e41fa6bab6b758adbe508b8fe32e2d2.tar.xz
glibc-3a257e668e41fa6bab6b758adbe508b8fe32e2d2.zip
Use x86_64 bits/wordsize.h for both i386/x86_64
Diffstat (limited to 'sysdeps/x86')
-rw-r--r--sysdeps/x86/bits/wordsize.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/sysdeps/x86/bits/wordsize.h b/sysdeps/x86/bits/wordsize.h
new file mode 100644
index 0000000000..e25af287e8
--- /dev/null
+++ b/sysdeps/x86/bits/wordsize.h
@@ -0,0 +1,13 @@
+/* Determine the wordsize from the preprocessor defines.  */
+
+#if defined __x86_64__ && !defined __ILP32__
+# define __WORDSIZE	64
+#else
+# define __WORDSIZE	32
+#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
+#endif