This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] ppc64 add gmp-mparam.h

Set the WORDSIZE for the GNU multiple precision library (gmp).
This patch supports both powerpc32 and powerpc64.  The original was
copied from sysdeps/sparc.  

2002-09-20  Steven Munroe  <>

	* sysdeps/powerpc/gmp-mparam.h: New file.  

diff -rupPN libc23-cvstip-20020918/sysdeps/powerpc/gmp-mparam.h libc23/sysdeps/powerpc/gmp-mparam.h
--- libc23-cvstip-20020918/sysdeps/powerpc/gmp-mparam.h	Wed Dec 31 18:00:00 1969
+++ libc23/sysdeps/powerpc/gmp-mparam.h	Wed Sep 18 19:43:52 2002
@@ -0,0 +1,29 @@
+/* gmp-mparam.h -- Compiler/machine parameter header file.
+Copyright (C) 2000, 2002 Free Software Foundation, Inc.
+This file is part of the GNU MP Library.
+The GNU MP Library is free software; you can redistribute it and/or modify
+it under the terms of the GNU Lesser General Public License as published by
+the Free Software Foundation; either version 2.1 of the License, or (at your
+option) any later version.
+The GNU MP Library is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
+License for more details.
+You should have received a copy of the GNU Lesser General Public License
+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. */
+#include <bits/wordsize.h>
+#define BITS_PER_INT 32
+#define BITS_PER_CHAR 8	

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]