public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* wordsize.h for x86-64
@ 2002-02-28  1:04 Andreas Jaeger
  2002-02-28  1:09 ` Ulrich Drepper
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Jaeger @ 2002-02-28  1:04 UTC (permalink / raw)
  To: GNU libc hacker


I'd like to follow the example of Sparc in using __WORDSIZE in the
glibc headers of x86-64 to allow compilation with both 32-bit and
64-bit compilers of the same headers.

Since this first appended patch affects also i386, I'd like to get
permission to commit this file to both branches.

Andreas

2002-02-28  Andreas Jaeger  <aj@suse.de>

	* sysdeps/i386/bits/wordsize.h: New file to allow sharing with
	x86-64.
	* sysdeps/x86_64/bits/wordsize.h: Likewise.

============================================================
Index: sysdeps/i386/bits/wordsize.h
--- sysdeps/i386/bits/wordsize.h	created
+++ sysdeps/i386/bits/wordsize.h	Thu Feb 28 10:00:25 2002	1.1
@@ -0,0 +1,7 @@
+/* Determine the wordsize from the preprocessor defines.  */
+
+#if defined __x86_64__
+# define __WORDSIZE	64
+#else
+# define __WORDSIZE	32
+#endif
============================================================
Index: sysdeps/x86_64/bits/wordsize.h
--- sysdeps/x86_64/bits/wordsize.h	created
+++ sysdeps/x86_64/bits/wordsize.h	Thu Feb 28 10:00:52 2002	1.1
@@ -0,0 +1,7 @@
+/* Determine the wordsize from the preprocessor defines.  */
+
+#if defined __x86_64__
+# define __WORDSIZE	64
+#else
+# define __WORDSIZE	32
+#endif

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-02-28  9:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-28  1:04 wordsize.h for x86-64 Andreas Jaeger
2002-02-28  1:09 ` Ulrich Drepper
2002-02-28  1:37   ` Andreas Jaeger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).