aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/tile/bits/wordsize.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/tile/bits/wordsize.h')
-rw-r--r--sysdeps/tile/bits/wordsize.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/sysdeps/tile/bits/wordsize.h b/sysdeps/tile/bits/wordsize.h
new file mode 100644
index 0000000000..9dc4da5de9
--- /dev/null
+++ b/sysdeps/tile/bits/wordsize.h
@@ -0,0 +1,11 @@
+/* Determine the wordsize from the preprocessor defines. */
+
+#ifdef __LP64__
+# define __WORDSIZE 64
+# define __WORDSIZE_TIME64_COMPAT32 1
+#else
+# define __WORDSIZE 32
+# define __WORDSIZE_TIME64_COMPAT32 0
+# define __WORDSIZE32_SIZE_ULONG 0
+# define __WORDSIZE32_PTRDIFF_LONG 0
+#endif