about summary refs log tree commit diff
path: root/sysdeps/generic
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-09-20 21:49:26 +0000
committerRoland McGrath <roland@gnu.org>2002-09-20 21:49:26 +0000
commit800a312a56abc34e98c5b2474260adc8c4faccd7 (patch)
tree326638c1c25cc1cec6907d56d8bc35e53c3c7355 /sysdeps/generic
parent1010f17b925bdd26f313e64084bc82f57be9ab03 (diff)
downloadglibc-800a312a56abc34e98c5b2474260adc8c4faccd7.tar.gz
glibc-800a312a56abc34e98c5b2474260adc8c4faccd7.tar.xz
glibc-800a312a56abc34e98c5b2474260adc8c4faccd7.zip
* sysdeps/generic/gmp-mparam.h: Include <bits/wordsize.h>.
	(BITS_PER_MP_LIMB, BYTES_PER_MP_LIMB, BITS_PER_LONGINT): Define in
	terms of __WORDSIZE.
	* sysdeps/x86_64/gmp-mparam.h: File removed.
	* sysdeps/sparc/gmp-mparam.h: File removed.
	* sysdeps/mips/mips64/gmp-mparam.h: File removed.
	* sysdeps/ia64/gmp-mparam.h: File removed.
	* sysdeps/alpha/gmp-mparam.h: File removed.
Diffstat (limited to 'sysdeps/generic')
-rw-r--r--sysdeps/generic/gmp-mparam.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/sysdeps/generic/gmp-mparam.h b/sysdeps/generic/gmp-mparam.h
index 14bcaece83..6fc7429872 100644
--- a/sysdeps/generic/gmp-mparam.h
+++ b/sysdeps/generic/gmp-mparam.h
@@ -1,6 +1,5 @@
 /* gmp-mparam.h -- Compiler/machine parameter header file.
-
-Copyright (C) 1991, 1993, 1994 Free Software Foundation, Inc.
+Copyright (C) 1991,93,94,2002 Free Software Foundation, Inc.
 
 This file is part of the GNU MP Library.
 
@@ -19,9 +18,11 @@ along with the GNU MP Library; see the file COPYING.LIB.  If not, write to
 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
 MA 02111-1307, USA. */
 
-#define BITS_PER_MP_LIMB 32
-#define BYTES_PER_MP_LIMB 4
-#define BITS_PER_LONGINT 32
-#define BITS_PER_INT 32
-#define BITS_PER_SHORTINT 16
-#define BITS_PER_CHAR 8
+#include <bits/wordsize.h>
+
+#define BITS_PER_MP_LIMB	__WORDSIZE
+#define BYTES_PER_MP_LIMB	(__WORDSIZE / 8)
+#define BITS_PER_LONGINT	__WORDSIZE
+#define BITS_PER_INT		32
+#define BITS_PER_SHORTINT	16
+#define BITS_PER_CHAR		8