Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/lgpl3/gmp/lib/libgmp/arch XXX: patch these files to...



details:   https://anonhg.NetBSD.org/src/rev/abd2baf1e10b
branches:  trunk
changeset: 766722:abd2baf1e10b
user:      mrg <mrg%NetBSD.org@localhost>
date:      Fri Jul 01 01:48:02 2011 +0000

description:
XXX: patch these files to let them work with src/compat style builds

diffstat:

 external/lgpl3/gmp/lib/libgmp/arch/sparc64/gmp-mparam.h |  5 +++++
 external/lgpl3/gmp/lib/libgmp/arch/sparc64/gmp.h        |  4 ++++
 external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp-mparam.h  |  5 +++++
 external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp.h         |  4 ++++
 4 files changed, 18 insertions(+), 0 deletions(-)

diffs (64 lines):

diff -r 0b19750595ff -r abd2baf1e10b external/lgpl3/gmp/lib/libgmp/arch/sparc64/gmp-mparam.h
--- a/external/lgpl3/gmp/lib/libgmp/arch/sparc64/gmp-mparam.h   Fri Jul 01 01:30:16 2011 +0000
+++ b/external/lgpl3/gmp/lib/libgmp/arch/sparc64/gmp-mparam.h   Fri Jul 01 01:48:02 2011 +0000
@@ -18,8 +18,13 @@
 You should have received a copy of the GNU Lesser General Public License
 along with the GNU MP Library.  If not, see http://www.gnu.org/licenses/.  */
 
+#ifdef _LP64
 #define GMP_LIMB_BITS 64
 #define BYTES_PER_MP_LIMB 8
+#else
+#define GMP_LIMB_BITS 32
+#define BYTES_PER_MP_LIMB 4
+#endif
 
 /* 500 MHz ultrasparc2 running GNU/Linux */
 
diff -r 0b19750595ff -r abd2baf1e10b external/lgpl3/gmp/lib/libgmp/arch/sparc64/gmp.h
--- a/external/lgpl3/gmp/lib/libgmp/arch/sparc64/gmp.h  Fri Jul 01 01:30:16 2011 +0000
+++ b/external/lgpl3/gmp/lib/libgmp/arch/sparc64/gmp.h  Fri Jul 01 01:48:02 2011 +0000
@@ -30,7 +30,11 @@
 #if ! defined (__GMP_WITHIN_CONFIGURE)
 #define __GMP_HAVE_HOST_CPU_FAMILY_power   0
 #define __GMP_HAVE_HOST_CPU_FAMILY_powerpc 0
+#ifdef _LP64
 #define GMP_LIMB_BITS                      64
+#else
+#define GMP_LIMB_BITS                      32
+#endif
 #define GMP_NAIL_BITS                      0
 #endif
 #define GMP_NUMB_BITS     (GMP_LIMB_BITS - GMP_NAIL_BITS)
diff -r 0b19750595ff -r abd2baf1e10b external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp-mparam.h
--- a/external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp-mparam.h    Fri Jul 01 01:30:16 2011 +0000
+++ b/external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp-mparam.h    Fri Jul 01 01:48:02 2011 +0000
@@ -18,8 +18,13 @@
 You should have received a copy of the GNU Lesser General Public License
 along with the GNU MP Library.  If not, see http://www.gnu.org/licenses/.  */
 
+#ifdef _LP64
 #define GMP_LIMB_BITS 64
 #define BYTES_PER_MP_LIMB 8
+#else
+#define GMP_LIMB_BITS 32
+#define BYTES_PER_MP_LIMB 4
+#endif
 
 
 #define MOD_1_NORM_THRESHOLD                 0  /* always */
diff -r 0b19750595ff -r abd2baf1e10b external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp.h
--- a/external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp.h   Fri Jul 01 01:30:16 2011 +0000
+++ b/external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp.h   Fri Jul 01 01:48:02 2011 +0000
@@ -30,7 +30,11 @@
 #if ! defined (__GMP_WITHIN_CONFIGURE)
 #define __GMP_HAVE_HOST_CPU_FAMILY_power   0
 #define __GMP_HAVE_HOST_CPU_FAMILY_powerpc 0
+#ifdef _LP64
 #define GMP_LIMB_BITS                      64
+#else
+#define GMP_LIMB_BITS                      32
+#endif
 #define GMP_NAIL_BITS                      0
 #endif
 #define GMP_NUMB_BITS     (GMP_LIMB_BITS - GMP_NAIL_BITS)



Home | Main Index | Thread Index | Old Index