CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch

2021-07-12 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Jul 12 18:42:40 UTC 2021

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb: config.h config.m4
gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el: config.h config.m4
gmp.h

Log Message:
mknative-gmp for mipsn64* and GMP 6.2.1.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.m4 \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/gmp.h
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/config.m4 \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/gmp.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.h
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.h:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.h:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.h:1.1	Sun Apr 25 23:57:47 2021
+++ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.h	Mon Jul 12 18:42:39 2021
@@ -548,7 +548,7 @@ see https://www.gnu.org/licenses/.
 #define PACKAGE_NAME "GNU MP"
 
 /* Define to the full name and version of this package. */
-#define PACKAGE_STRING "GNU MP 6.2.0"
+#define PACKAGE_STRING "GNU MP 6.2.1"
 
 /* Define to the one symbol short name of this package. */
 #define PACKAGE_TARNAME "gmp"
@@ -557,7 +557,7 @@ see https://www.gnu.org/licenses/.
 #define PACKAGE_URL "http://www.gnu.org/software/gmp/;
 
 /* Define to the version of this package. */
-#define PACKAGE_VERSION "6.2.0"
+#define PACKAGE_VERSION "6.2.1"
 
 /* Define as the return type of signal handlers (`int' or `void'). */
 #define RETSIGTYPE void
@@ -569,13 +569,13 @@ see https://www.gnu.org/licenses/.
 #define SIZEOF_UNSIGNED 4
 
 /* The size of `unsigned long', as computed by sizeof. */
-#define SIZEOF_UNSIGNED_LONG 4
+#define SIZEOF_UNSIGNED_LONG 8
 
 /* The size of `unsigned short', as computed by sizeof. */
 #define SIZEOF_UNSIGNED_SHORT 2
 
 /* The size of `void *', as computed by sizeof. */
-#define SIZEOF_VOID_P 4
+#define SIZEOF_VOID_P 8
 
 /* Define to 1 if sscanf requires writable inputs */
 /* #undef SSCANF_WRITABLE_INPUT */
@@ -590,7 +590,7 @@ see https://www.gnu.org/licenses/.
 #define TUNE_SQR_TOOM2_MAX SQR_TOOM2_MAX_GENERIC
 
 /* Version number of package */
-#define VERSION "6.2.0"
+#define VERSION "6.2.1"
 
 /* Define to 1 to enable ASSERT checking, per --enable-assert */
 /* #undef WANT_ASSERT */
Index: src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.m4
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.m4:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.m4:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.m4:1.1	Sun Apr 25 23:57:47 2021
+++ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.m4	Mon Jul 12 18:42:39 2021
@@ -27,7 +27,7 @@ changequote(`,')
 ifdef(`__CONFIG_M4_INCLUDED__',,`
 include(CONFIG_TOP_SRCDIR`/mpn/asm-defs.m4')
 include_mpn(`mips32/mips-defs.m4')
-define_not_for_expansion(`HAVE_HOST_CPU_mips64')
+define_not_for_expansion(`HAVE_HOST_CPU_mipsn64eb')
 define_not_for_expansion(`HAVE_ABI_n32')
 define_not_for_expansion(`HAVE_LIMB_BIG_ENDIAN')
 define_not_for_expansion(`HAVE_DOUBLE_IEEE_BIG_ENDIAN')
Index: src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/gmp.h
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/gmp.h:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/gmp.h:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/gmp.h:1.1	Sun Apr 25 23:57:47 2021
+++ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/gmp.h	Mon Jul 12 18:42:39 2021
@@ -361,11 +361,9 @@ typedef __mpq_struct *mpq_ptr;
 GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
 inline semantics, unless -fgnu89-inline is used.  */
 #ifdef __GNUC__
-#if (defined __GNUC_STDC_INLINE__) || (__GNUC__ == 4 && __GNUC_MINOR__ == 2) \
-  || (defined __GNUC_GNU_INLINE__ && defined __cplusplus)
+#if (defined __GNUC_STDC_INLINE__) || \
+(__GNUC__ == 4 && __GNUC_MINOR__ >= 2) || (__GNUC__ > 4)
 #define __GMP_EXTERN_INLINE extern __inline__ __attribute__ ((__gnu_inline__))
-#else
-#define __GMP_EXTERN_INLINE  extern __inline__
 #endif
 #define __GMP_INLINE_PROTOTYPES  1
 #endif
@@ -1693,6 +1691,9 @@ __GMP_DECLSPEC int mpn_sec_invert (mp_pt
 #define mpn_sec_invert_itch __MPN(sec_invert_itch)
 __GMP_DECLSPEC mp_size_t mpn_sec_invert_itch (mp_size_t) __GMP_ATTRIBUTE_PURE;
 
+#define mpn_udiv_w_sdiv __MPN(udiv_w_sdiv)
+__GMP_DECLSPEC mp_limb_t mpn_udiv_w_sdiv (mp_limb_t *, mp_limb_t, mp_limb_t, mp_limb_t);
+
 
 / mpz inlines /
 
@@ -2324,12 +2325,12 @@ enum
 
 /* Define CC and CFLAGS which were used to build this version 

CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch

2021-07-12 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Jul 12 09:34:57 UTC 2021

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/aarch64: config.h
src/external/lgpl3/gmp/lib/libgmp/arch/alpha: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/arm: config.h config.m4 gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/armeb: config.h config.m4 gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/hppa: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/ia64: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/m68000: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/m68k: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/mips64el: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/mipseb: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/mipsel: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/riscv32: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/riscv64: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/sh3eb: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/sh3el: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/sparc: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/sparc64: config.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/vax: config.h gmp.h

Log Message:
mknative-gmp for GMP 6.2.1 and most platforms.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 \
src/external/lgpl3/gmp/lib/libgmp/arch/aarch64/config.h
cvs rdiff -u -r1.5 -r1.6 \
src/external/lgpl3/gmp/lib/libgmp/arch/alpha/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/alpha/gmp.h
cvs rdiff -u -r1.6 -r1.7 src/external/lgpl3/gmp/lib/libgmp/arch/arm/config.h
cvs rdiff -u -r1.5 -r1.6 src/external/lgpl3/gmp/lib/libgmp/arch/arm/config.m4 \
src/external/lgpl3/gmp/lib/libgmp/arch/arm/gmp.h
cvs rdiff -u -r1.7 -r1.8 \
src/external/lgpl3/gmp/lib/libgmp/arch/armeb/config.h
cvs rdiff -u -r1.6 -r1.7 \
src/external/lgpl3/gmp/lib/libgmp/arch/armeb/config.m4 \
src/external/lgpl3/gmp/lib/libgmp/arch/armeb/gmp.h
cvs rdiff -u -r1.5 -r1.6 src/external/lgpl3/gmp/lib/libgmp/arch/hppa/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/hppa/gmp.h
cvs rdiff -u -r1.4 -r1.5 src/external/lgpl3/gmp/lib/libgmp/arch/ia64/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/ia64/gmp.h
cvs rdiff -u -r1.5 -r1.6 \
src/external/lgpl3/gmp/lib/libgmp/arch/m68000/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/m68000/gmp.h
cvs rdiff -u -r1.5 -r1.6 src/external/lgpl3/gmp/lib/libgmp/arch/m68k/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/m68k/gmp.h
cvs rdiff -u -r1.7 -r1.8 \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/gmp.h
cvs rdiff -u -r1.7 -r1.8 \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64el/config.h
cvs rdiff -u -r1.8 -r1.9 \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64el/gmp.h
cvs rdiff -u -r1.5 -r1.6 \
src/external/lgpl3/gmp/lib/libgmp/arch/mipseb/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/mipseb/gmp.h
cvs rdiff -u -r1.5 -r1.6 \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsel/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsel/gmp.h
cvs rdiff -u -r1.4 -r1.5 \
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc/config.h
cvs rdiff -u -r1.5 -r1.6 src/external/lgpl3/gmp/lib/libgmp/arch/powerpc/gmp.h
cvs rdiff -u -r1.4 -r1.5 \
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/gmp.h
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/riscv32/config.h
cvs rdiff -u -r1.3 -r1.4 src/external/lgpl3/gmp/lib/libgmp/arch/riscv32/gmp.h
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/riscv64/config.h
cvs rdiff -u -r1.3 -r1.4 src/external/lgpl3/gmp/lib/libgmp/arch/riscv64/gmp.h
cvs rdiff -u -r1.5 -r1.6 \
src/external/lgpl3/gmp/lib/libgmp/arch/sh3eb/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/sh3eb/gmp.h
cvs rdiff -u -r1.5 -r1.6 \
src/external/lgpl3/gmp/lib/libgmp/arch/sh3el/config.h
cvs rdiff -u -r1.6 -r1.7 src/external/lgpl3/gmp/lib/libgmp/arch/sh3el/gmp.h
cvs rdiff -u -r1.5 -r1.6 \
src/external/lgpl3/gmp/lib/libgmp/arch/sparc/config.h
cvs rdiff -u -r1.4 -r1.5 src/external/lgpl3/gmp/lib/libgmp/arch/sparc/gmp.h
cvs rdiff -u -r1.4 -r1.5 \
src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/config.h
cvs rdiff -u -r1.5 -r1.6 src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/gmp.h
cvs rdiff -u -r1.4 -r1.5 src/external/lgpl3/gmp/lib/libgmp/arch/vax/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/vax/gmp.h

Please note that diffs are not public domain; they are subject to the
copyright notices on 

CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/x86_64

2021-07-12 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Jul 12 07:04:37 UTC 2021

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/x86_64: config.h config.m4 gmp.h

Log Message:
regen gmp parts for amd64 and gmp 6.2.1.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 \
src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/config.m4
cvs rdiff -u -r1.5 -r1.6 src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/config.h
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/config.h:1.4 src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/config.h:1.5
--- src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/config.h:1.4	Sun Sep 27 00:31:54 2020
+++ src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/config.h	Mon Jul 12 07:04:37 2021
@@ -548,7 +548,7 @@ see https://www.gnu.org/licenses/.
 #define PACKAGE_NAME "GNU MP"
 
 /* Define to the full name and version of this package. */
-#define PACKAGE_STRING "GNU MP 6.2.0"
+#define PACKAGE_STRING "GNU MP 6.2.1"
 
 /* Define to the one symbol short name of this package. */
 #define PACKAGE_TARNAME "gmp"
@@ -557,7 +557,7 @@ see https://www.gnu.org/licenses/.
 #define PACKAGE_URL "http://www.gnu.org/software/gmp/;
 
 /* Define to the version of this package. */
-#define PACKAGE_VERSION "6.2.0"
+#define PACKAGE_VERSION "6.2.1"
 
 /* Define as the return type of signal handlers (`int' or `void'). */
 #define RETSIGTYPE void
@@ -590,7 +590,7 @@ see https://www.gnu.org/licenses/.
 /* #undef TUNE_SQR_TOOM2_MAX */
 
 /* Version number of package */
-#define VERSION "6.2.0"
+#define VERSION "6.2.1"
 
 /* Define to 1 to enable ASSERT checking, per --enable-assert */
 /* #undef WANT_ASSERT */
Index: src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/config.m4
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/config.m4:1.4 src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/config.m4:1.5
--- src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/config.m4:1.4	Sun Sep 27 00:31:54 2020
+++ src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/config.m4	Mon Jul 12 07:04:37 2021
@@ -19,6 +19,7 @@ define(, <.L>)
 define(, <.long>)
 define(,)
 define(,)
+define(, )
 define(,<34>)
 define(,<16>)
 define(,<4>)

Index: src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp.h
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp.h:1.5 src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp.h:1.6
--- src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp.h:1.5	Sun Sep 27 00:31:54 2020
+++ src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp.h	Mon Jul 12 07:04:37 2021
@@ -361,11 +361,9 @@ typedef __mpq_struct *mpq_ptr;
 GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
 inline semantics, unless -fgnu89-inline is used.  */
 #ifdef __GNUC__
-#if (defined __GNUC_STDC_INLINE__) || (__GNUC__ == 4 && __GNUC_MINOR__ == 2) \
-  || (defined __GNUC_GNU_INLINE__ && defined __cplusplus)
+#if (defined __GNUC_STDC_INLINE__) || \
+(__GNUC__ == 4 && __GNUC_MINOR__ >= 2) || (__GNUC__ > 4)
 #define __GMP_EXTERN_INLINE extern __inline__ __attribute__ ((__gnu_inline__))
-#else
-#define __GMP_EXTERN_INLINE  extern __inline__
 #endif
 #define __GMP_INLINE_PROTOTYPES  1
 #endif
@@ -1693,6 +1691,9 @@ __GMP_DECLSPEC int mpn_sec_invert (mp_pt
 #define mpn_sec_invert_itch __MPN(sec_invert_itch)
 __GMP_DECLSPEC mp_size_t mpn_sec_invert_itch (mp_size_t) __GMP_ATTRIBUTE_PURE;
 
+#define mpn_udiv_w_sdiv __MPN(udiv_w_sdiv)
+__GMP_DECLSPEC mp_limb_t mpn_udiv_w_sdiv (mp_limb_t *, mp_limb_t, mp_limb_t, mp_limb_t);
+
 
 / mpz inlines /
 
@@ -2329,7 +2330,7 @@ enum
 /* Major version number is the value of __GNU_MP__ too, above. */
 #define __GNU_MP_VERSION6
 #define __GNU_MP_VERSION_MINOR  2
-#define __GNU_MP_VERSION_PATCHLEVEL 0
+#define __GNU_MP_VERSION_PATCHLEVEL 1
 #define __GNU_MP_RELEASE (__GNU_MP_VERSION * 1 + __GNU_MP_VERSION_MINOR * 100 + __GNU_MP_VERSION_PATCHLEVEL)
 
 #define __GMP_H__



CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el

2021-04-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Apr 25 23:58:23 UTC 2021

Added Files:
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el: Makefile.inc config.h
config.m4 gmp-mparam.h gmp.h srcs.mk

Log Message:
Copied from mips64el


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/Makefile.inc \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/config.m4 \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/gmp-mparam.h \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/gmp.h \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/srcs.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/Makefile.inc
diff -u /dev/null src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/Makefile.inc:1.1
--- /dev/null	Sun Apr 25 19:58:23 2021
+++ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/Makefile.inc	Sun Apr 25 19:58:23 2021
@@ -0,0 +1,7 @@
+#	$NetBSD: Makefile.inc,v 1.1 2021/04/25 23:58:23 christos Exp $
+
+COPTS+=		-Wno-error
+
+GMP_LIMB_BITS=64
+
+.include "srcs.mk"
Index: src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/config.h
diff -u /dev/null src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/config.h:1.1
--- /dev/null	Sun Apr 25 19:58:23 2021
+++ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/config.h	Sun Apr 25 19:58:23 2021
@@ -0,0 +1,668 @@
+/* config.h.  Generated from config.in by configure.  */
+/* config.in.  Generated from configure.ac by autoheader.  */
+
+/*
+
+Copyright 1996-2020 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 either:
+
+  * the GNU Lesser General Public License as published by the Free
+Software Foundation; either version 3 of the License, or (at your
+option) any later version.
+
+or
+
+  * the GNU General Public License as published by the Free Software
+Foundation; either version 2 of the License, or (at your option) any
+later version.
+
+or both in parallel, as here.
+
+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 General Public License
+for more details.
+
+You should have received copies of the GNU General Public License and the
+GNU Lesser General Public License along with the GNU MP Library.  If not,
+see https://www.gnu.org/licenses/.
+*/
+
+/* Define if building universal (internal helper macro) */
+/* #undef AC_APPLE_UNIVERSAL_BUILD */
+
+/* The gmp-mparam.h file (a string) the tune program should suggest updating.
+   */
+#define GMP_MPARAM_H_SUGGEST "./mpn/mips64/gmp-mparam.h"
+
+/* Define to 1 if you have the `alarm' function. */
+#define HAVE_ALARM 1
+
+/* Define to 1 if alloca() works (via gmp-impl.h). */
+#define HAVE_ALLOCA 1
+
+/* Define to 1 if you have  and it should be used (not on Ultrix).
+   */
+/* #undef HAVE_ALLOCA_H */
+
+/* Define to 1 if the compiler accepts gcc style __attribute__ ((const)) */
+#define HAVE_ATTRIBUTE_CONST 1
+
+/* Define to 1 if the compiler accepts gcc style __attribute__ ((malloc)) */
+#define HAVE_ATTRIBUTE_MALLOC 1
+
+/* Define to 1 if the compiler accepts gcc style __attribute__ ((mode (XX)))
+   */
+#define HAVE_ATTRIBUTE_MODE 1
+
+/* Define to 1 if the compiler accepts gcc style __attribute__ ((noreturn)) */
+#define HAVE_ATTRIBUTE_NORETURN 1
+
+/* Define to 1 if you have the `attr_get' function. */
+/* #undef HAVE_ATTR_GET */
+
+/* Define to 1 if tests/libtests has calling conventions checking for the CPU
+   */
+/* #undef HAVE_CALLING_CONVENTIONS */
+
+/* Define to 1 if you have the `clock' function. */
+#define HAVE_CLOCK 1
+
+/* Define to 1 if you have the `clock_gettime' function */
+#define HAVE_CLOCK_GETTIME 1
+
+/* Define to 1 if you have the `cputime' function. */
+/* #undef HAVE_CPUTIME */
+
+/* Define to 1 if you have the declaration of `fgetc', and to 0 if you don't.
+   */
+#define HAVE_DECL_FGETC 1
+
+/* Define to 1 if you have the declaration of `fscanf', and to 0 if you don't.
+   */
+#define HAVE_DECL_FSCANF 1
+
+/* Define to 1 if you have the declaration of `optarg', and to 0 if you don't.
+   */
+#define HAVE_DECL_OPTARG 1
+
+/* Define to 1 if you have the declaration of `sys_errlist', and to 0 if you
+   don't. */
+#define HAVE_DECL_SYS_ERRLIST 1
+
+/* Define to 1 if you have the declaration of `sys_nerr', and to 0 if you
+   don't. */
+#define HAVE_DECL_SYS_NERR 1
+
+/* Define to 1 if you have the declaration of `ungetc', and to 0 if you don't.
+   */
+#define HAVE_DECL_UNGETC 1
+
+/* Define to 1 if you have the declaration of `vfprintf', and to 0 if you
+   don't. */
+#define HAVE_DECL_VFPRINTF 1
+
+/* Define to 

CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb

2021-04-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Apr 25 23:57:47 UTC 2021

Added Files:
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb: Makefile.inc config.h
config.m4 gmp-mparam.h gmp.h srcs.mk

Log Message:
copied from mips64eb


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/Makefile.inc \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.m4 \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/gmp-mparam.h \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/gmp.h \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/srcs.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/Makefile.inc
diff -u /dev/null src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/Makefile.inc:1.1
--- /dev/null	Sun Apr 25 19:57:48 2021
+++ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/Makefile.inc	Sun Apr 25 19:57:47 2021
@@ -0,0 +1,7 @@
+#	$NetBSD: Makefile.inc,v 1.1 2021/04/25 23:57:47 christos Exp $
+
+COPTS+=		-Wno-error
+
+GMP_LIMB_BITS=64
+
+.include "srcs.mk"
Index: src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.h
diff -u /dev/null src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.h:1.1
--- /dev/null	Sun Apr 25 19:57:48 2021
+++ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.h	Sun Apr 25 19:57:47 2021
@@ -0,0 +1,668 @@
+/* config.h.  Generated from config.in by configure.  */
+/* config.in.  Generated from configure.ac by autoheader.  */
+
+/*
+
+Copyright 1996-2020 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 either:
+
+  * the GNU Lesser General Public License as published by the Free
+Software Foundation; either version 3 of the License, or (at your
+option) any later version.
+
+or
+
+  * the GNU General Public License as published by the Free Software
+Foundation; either version 2 of the License, or (at your option) any
+later version.
+
+or both in parallel, as here.
+
+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 General Public License
+for more details.
+
+You should have received copies of the GNU General Public License and the
+GNU Lesser General Public License along with the GNU MP Library.  If not,
+see https://www.gnu.org/licenses/.
+*/
+
+/* Define if building universal (internal helper macro) */
+/* #undef AC_APPLE_UNIVERSAL_BUILD */
+
+/* The gmp-mparam.h file (a string) the tune program should suggest updating.
+   */
+#define GMP_MPARAM_H_SUGGEST "./mpn/mips64/gmp-mparam.h"
+
+/* Define to 1 if you have the `alarm' function. */
+#define HAVE_ALARM 1
+
+/* Define to 1 if alloca() works (via gmp-impl.h). */
+#define HAVE_ALLOCA 1
+
+/* Define to 1 if you have  and it should be used (not on Ultrix).
+   */
+/* #undef HAVE_ALLOCA_H */
+
+/* Define to 1 if the compiler accepts gcc style __attribute__ ((const)) */
+#define HAVE_ATTRIBUTE_CONST 1
+
+/* Define to 1 if the compiler accepts gcc style __attribute__ ((malloc)) */
+#define HAVE_ATTRIBUTE_MALLOC 1
+
+/* Define to 1 if the compiler accepts gcc style __attribute__ ((mode (XX)))
+   */
+#define HAVE_ATTRIBUTE_MODE 1
+
+/* Define to 1 if the compiler accepts gcc style __attribute__ ((noreturn)) */
+#define HAVE_ATTRIBUTE_NORETURN 1
+
+/* Define to 1 if you have the `attr_get' function. */
+/* #undef HAVE_ATTR_GET */
+
+/* Define to 1 if tests/libtests has calling conventions checking for the CPU
+   */
+/* #undef HAVE_CALLING_CONVENTIONS */
+
+/* Define to 1 if you have the `clock' function. */
+#define HAVE_CLOCK 1
+
+/* Define to 1 if you have the `clock_gettime' function */
+#define HAVE_CLOCK_GETTIME 1
+
+/* Define to 1 if you have the `cputime' function. */
+/* #undef HAVE_CPUTIME */
+
+/* Define to 1 if you have the declaration of `fgetc', and to 0 if you don't.
+   */
+#define HAVE_DECL_FGETC 1
+
+/* Define to 1 if you have the declaration of `fscanf', and to 0 if you don't.
+   */
+#define HAVE_DECL_FSCANF 1
+
+/* Define to 1 if you have the declaration of `optarg', and to 0 if you don't.
+   */
+#define HAVE_DECL_OPTARG 1
+
+/* Define to 1 if you have the declaration of `sys_errlist', and to 0 if you
+   don't. */
+#define HAVE_DECL_SYS_ERRLIST 1
+
+/* Define to 1 if you have the declaration of `sys_nerr', and to 0 if you
+   don't. */
+#define HAVE_DECL_SYS_NERR 1
+
+/* Define to 1 if you have the declaration of `ungetc', and to 0 if you don't.
+   */
+#define HAVE_DECL_UNGETC 1
+
+/* Define to 1 if you have the declaration of `vfprintf', and to 0 if you
+   don't. */
+#define HAVE_DECL_VFPRINTF 1
+
+/* Define to 

CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch

2020-09-27 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Sep 27 21:19:36 UTC 2020

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/arm: config.h config.m4
gmp-mparam.h gmp.h srcs.mk
src/external/lgpl3/gmp/lib/libgmp/arch/armeb: config.h config.m4
gmp-mparam.h gmp.h srcs.mk

Log Message:
re-run native-gmp for gmp 6.2.0 and arm:  run with a v4 toolchain
instead of a v7 toolchain, so it works on all.

should fix latest build mess.

future: test the speed of this vs armv[567] specific on armv[567].


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/lgpl3/gmp/lib/libgmp/arch/arm/config.h
cvs rdiff -u -r1.4 -r1.5 src/external/lgpl3/gmp/lib/libgmp/arch/arm/config.m4 \
src/external/lgpl3/gmp/lib/libgmp/arch/arm/gmp-mparam.h \
src/external/lgpl3/gmp/lib/libgmp/arch/arm/gmp.h
cvs rdiff -u -r1.1 -r1.2 src/external/lgpl3/gmp/lib/libgmp/arch/arm/srcs.mk
cvs rdiff -u -r1.6 -r1.7 \
src/external/lgpl3/gmp/lib/libgmp/arch/armeb/config.h
cvs rdiff -u -r1.5 -r1.6 \
src/external/lgpl3/gmp/lib/libgmp/arch/armeb/config.m4 \
src/external/lgpl3/gmp/lib/libgmp/arch/armeb/gmp.h
cvs rdiff -u -r1.4 -r1.5 \
src/external/lgpl3/gmp/lib/libgmp/arch/armeb/gmp-mparam.h
cvs rdiff -u -r1.1 -r1.2 src/external/lgpl3/gmp/lib/libgmp/arch/armeb/srcs.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/lib/libgmp/arch/arm/config.h
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/arm/config.h:1.5 src/external/lgpl3/gmp/lib/libgmp/arch/arm/config.h:1.6
--- src/external/lgpl3/gmp/lib/libgmp/arch/arm/config.h:1.5	Sun Sep 27 00:31:51 2020
+++ src/external/lgpl3/gmp/lib/libgmp/arch/arm/config.h	Sun Sep 27 21:19:36 2020
@@ -37,7 +37,7 @@ see https://www.gnu.org/licenses/.
 
 /* The gmp-mparam.h file (a string) the tune program should suggest updating.
*/
-#define GMP_MPARAM_H_SUGGEST "./mpn/arm/v7a/cora5/gmp-mparam.h"
+#define GMP_MPARAM_H_SUGGEST "./mpn/arm/gmp-mparam.h"
 
 /* Define to 1 if you have the `alarm' function. */
 #define HAVE_ALARM 1
@@ -278,8 +278,8 @@ see https://www.gnu.org/licenses/.
 /* #undef HAVE_NATIVE_mpn_addlsh2_nc_ip2 */
 /* #undef HAVE_NATIVE_mpn_addlsh_nc_ip2 */
 /* #undef HAVE_NATIVE_mpn_addmul_1c */
-#define HAVE_NATIVE_mpn_addmul_2 1
-#define HAVE_NATIVE_mpn_addmul_3 1
+/* #undef HAVE_NATIVE_mpn_addmul_2 */
+/* #undef HAVE_NATIVE_mpn_addmul_3 */
 /* #undef HAVE_NATIVE_mpn_addmul_4 */
 /* #undef HAVE_NATIVE_mpn_addmul_5 */
 /* #undef HAVE_NATIVE_mpn_addmul_6 */
@@ -300,13 +300,13 @@ see https://www.gnu.org/licenses/.
 /* #undef HAVE_NATIVE_mpn_div_qr_2 */
 #define HAVE_NATIVE_mpn_divexact_1 1
 /* #undef HAVE_NATIVE_mpn_divexact_by3c */
-#define HAVE_NATIVE_mpn_divrem_1 1
+/* #undef HAVE_NATIVE_mpn_divrem_1 */
 /* #undef HAVE_NATIVE_mpn_divrem_1c */
 /* #undef HAVE_NATIVE_mpn_divrem_2 */
 /* #undef HAVE_NATIVE_mpn_gcd_1 */
-#define HAVE_NATIVE_mpn_gcd_11 1
-#define HAVE_NATIVE_mpn_gcd_22 1
-#define HAVE_NATIVE_mpn_hamdist 1
+/* #undef HAVE_NATIVE_mpn_gcd_11 */
+/* #undef HAVE_NATIVE_mpn_gcd_22 */
+/* #undef HAVE_NATIVE_mpn_hamdist */
 #define HAVE_NATIVE_mpn_invert_limb 1
 #define HAVE_NATIVE_mpn_ior_n 1
 #define HAVE_NATIVE_mpn_iorn_n 1
@@ -314,16 +314,16 @@ see https://www.gnu.org/licenses/.
 #define HAVE_NATIVE_mpn_lshiftc 1
 /* #undef HAVE_NATIVE_mpn_lshsub_n */
 /* #undef HAVE_NATIVE_mpn_mod_1 */
-#define HAVE_NATIVE_mpn_mod_1_1p 1
+/* #undef HAVE_NATIVE_mpn_mod_1_1p */
 /* #undef HAVE_NATIVE_mpn_mod_1c */
-#define HAVE_NATIVE_mpn_mod_1s_2p 1
+/* #undef HAVE_NATIVE_mpn_mod_1s_2p */
 /* #undef HAVE_NATIVE_mpn_mod_1s_4p */
 #define HAVE_NATIVE_mpn_mod_34lsub1 1
 /* #undef HAVE_NATIVE_mpn_modexact_1_odd */
 #define HAVE_NATIVE_mpn_modexact_1c_odd 1
 #define HAVE_NATIVE_mpn_mul_1 1
 /* #undef HAVE_NATIVE_mpn_mul_1c */
-#define HAVE_NATIVE_mpn_mul_2 1
+/* #undef HAVE_NATIVE_mpn_mul_2 */
 /* #undef HAVE_NATIVE_mpn_mul_3 */
 /* #undef HAVE_NATIVE_mpn_mul_4 */
 /* #undef HAVE_NATIVE_mpn_mul_5 */
@@ -332,8 +332,8 @@ see https://www.gnu.org/licenses/.
 /* #undef HAVE_NATIVE_mpn_mullo_basecase */
 #define HAVE_NATIVE_mpn_nand_n 1
 #define HAVE_NATIVE_mpn_nior_n 1
-#define HAVE_NATIVE_mpn_popcount 1
-#define HAVE_NATIVE_mpn_preinv_divrem_1 1
+/* #undef HAVE_NATIVE_mpn_popcount */
+/* #undef HAVE_NATIVE_mpn_preinv_divrem_1 */
 /* #undef HAVE_NATIVE_mpn_preinv_mod_1 */
 /* #undef HAVE_NATIVE_mpn_redc_1 */
 /* #undef HAVE_NATIVE_mpn_redc_2 */
@@ -349,7 +349,7 @@ see https://www.gnu.org/licenses/.
 /* #undef HAVE_NATIVE_mpn_rsh1sub_nc */
 #define HAVE_NATIVE_mpn_rshift 1
 /* #undef HAVE_NATIVE_mpn_sbpi1_bdiv_r */
-#define HAVE_NATIVE_mpn_sqr_basecase 1
+/* #undef HAVE_NATIVE_mpn_sqr_basecase */
 /* #undef HAVE_NATIVE_mpn_sqr_diagonal */
 /* #undef HAVE_NATIVE_mpn_sqr_diag_addlsh1 */
 #define HAVE_NATIVE_mpn_sub_n 1
@@ -587,7 +587,7 @@ see https://www.gnu.org/licenses/.
 #define TIME_WITH_SYS_TIME 1
 
 /* Maximum size the tune 

CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/riscv64

2019-04-15 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Mon Apr 15 14:02:23 UTC 2019

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/riscv64: Makefile.inc gmp.h

Log Message:
Fake mknative


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/riscv64/Makefile.inc \
src/external/lgpl3/gmp/lib/libgmp/arch/riscv64/gmp.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/lib/libgmp/arch/riscv64/Makefile.inc
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/riscv64/Makefile.inc:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/riscv64/Makefile.inc:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/riscv64/Makefile.inc:1.1	Fri Sep 19 17:23:57 2014
+++ src/external/lgpl3/gmp/lib/libgmp/arch/riscv64/Makefile.inc	Mon Apr 15 14:02:23 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.1 2014/09/19 17:23:57 matt Exp $
+#	$NetBSD: Makefile.inc,v 1.2 2019/04/15 14:02:23 maya Exp $
 
 SRCS+= \
 	random.c \
@@ -15,7 +15,6 @@ SRCS+= \
 	toom8h_mul.c \
 	zero.c \
 	mod_1_4.c \
-	gcdext.c \
 	add_err3_n.c \
 	binvert.c \
 	mu_div_q.c \
@@ -26,14 +25,12 @@ SRCS+= \
 	dcpi1_div_qr.c \
 	hgcd_reduce.c \
 	matrix22_mul1_inverse_vector.c \
-	tabselect.c \
 	toom6_sqr.c \
 	divrem_1.c \
 	hgcd_step.c \
 	sub_err3_n.c \
 	mod_1.c \
 	toom42_mulmid.c \
-	divexact.c \
 	jacobi.c \
 	powlo.c \
 	mul.c \
@@ -65,7 +62,6 @@ SRCS+= \
 	rshift.c \
 	div_q.c \
 	jacbase.c \
-	addcnd_n.c \
 	hgcd_matrix.c \
 	toom_eval_dgr3_pm1.c \
 	mullo_n.c \
@@ -77,7 +73,6 @@ SRCS+= \
 	add_1.c \
 	sqr_basecase.c \
 	toom_interpolate_5pts.c \
-	sbpi1_bdiv_q.c \
 	pre_mod_1.c \
 	hgcd.c \
 	bdiv_dbm1c.c \
@@ -97,11 +92,9 @@ SRCS+= \
 	sub_n.c \
 	toom_eval_pm2.c \
 	add_n.c \
-	subcnd_n.c \
 	hgcd2.c \
 	toom62_mul.c \
 	comb_tables.c \
-	sbpi1_bdiv_qr.c \
 	sub_err2_n.c \
 	scan1.c \
 	brootinv.c \
@@ -136,10 +129,8 @@ SRCS+= \
 	dive_1.c \
 	cmp.c \
 	toom_eval_pm1.c \
-	hgcd_appr.c \
 	scan0.c \
 	gcd_subdiv_step.c \
-	sbpi1_div_qr.c \
 	invert.c \
 	sub.c \
 	toom_eval_pm2rexp.c \
@@ -155,30 +146,187 @@ SRCS+= \
 	pow_1.c \
 	get_d.c \
 	toom52_mul.c \
-	sbpi1_div_q.c \
 	diveby3.c \
 	fib2_ui.c \
 	bdiv_qr.c \
 	hgcd_jacobi.c \
 	toom3_sqr.c \
-	gcd.c \
 	redc_n.c \
 	sub_err1_n.c \
 
 C_SRCS_LIST= \
-	xor_n.c			mpn/generic/logops_n.c \
-	sb_div_r_sec.c		mpn/generic/sb_div_sec.c \
-	nand_n.c		mpn/generic/logops_n.c \
-	nior_n.c		mpn/generic/logops_n.c \
+	random.c		mpn/generic/random.c \
+	toom_interpolate_7pts.c		mpn/generic/toom_interpolate_7pts.c \
+	sbpi1_divappr_q.c		mpn/generic/sbpi1_divappr_q.c \
+	random2.c		mpn/generic/random2.c \
+	mu_bdiv_q.c		mpn/generic/mu_bdiv_q.c \
+	mulmid_basecase.c		mpn/generic/mulmid_basecase.c \
+	jacobi_2.c		mpn/generic/jacobi_2.c \
+	toom32_mul.c		mpn/generic/toom32_mul.c \
+	toom44_mul.c		mpn/generic/toom44_mul.c \
+	toom8h_mul.c		mpn/generic/toom8h_mul.c \
+	toom2_sqr.c		mpn/generic/toom2_sqr.c \
+	zero.c		mpn/generic/zero.c \
+	mod_1_4.c		mpn/generic/mod_1_4.c \
+	gcdext.c		mpn/generic/gcdext.c \
 	hamdist.c		mpn/generic/popham.c \
-	popcount.c		mpn/generic/popham.c \
-	sbpi1_div_qr_sec.c	mpn/generic/sbpi1_div_sec.c \
-	and_n.c			mpn/generic/logops_n.c \
-	ior_n.c			mpn/generic/logops_n.c \
-	sb_div_qr_sec.c		mpn/generic/sb_div_sec.c \
+	sec_powm.c		mpn/generic/sec_powm.c \
+	add_err3_n.c		mpn/generic/add_err3_n.c \
+	binvert.c		mpn/generic/binvert.c \
+	mu_div_q.c		mpn/generic/mu_div_q.c \
+	and_n.c		mpn/generic/logops_n.c \
+	invertappr.c		mpn/generic/invertappr.c \
+	add_n_sub_n.c		mpn/generic/add_n_sub_n.c \
+	dump.c		mpn/generic/dump.c \
+	mu_divappr_q.c		mpn/generic/mu_divappr_q.c \
+	dcpi1_div_qr.c		mpn/generic/dcpi1_div_qr.c \
+	hgcd_reduce.c		mpn/generic/hgcd_reduce.c \
+	matrix22_mul1_inverse_vector.c		mpn/generic/matrix22_mul1_inverse_vector.c \
+	toom6_sqr.c		mpn/generic/toom6_sqr.c \
+	divrem_1.c		mpn/generic/divrem_1.c \
+	hgcd_step.c		mpn/generic/hgcd_step.c \
+	sub_err3_n.c		mpn/generic/sub_err3_n.c \
+	mod_1.c		mpn/generic/mod_1.c \
+	toom42_mulmid.c		mpn/generic/toom42_mulmid.c \
+	sec_div_qr.c		mpn/generic/sec_div.c \
+	andn_n.c		mpn/generic/logops_n.c \
+	divexact.c		mpn/generic/divexact.c \
+	jacobi.c		mpn/generic/jacobi.c \
+	powlo.c		mpn/generic/powlo.c \
+	mul.c		mpn/generic/mul.c \
+	set_str.c		mpn/generic/set_str.c \
+	toom42_mul.c		mpn/generic/toom42_mul.c \
+	toom_interpolate_6pts.c		mpn/generic/toom_interpolate_6pts.c \
+	toom54_mul.c		mpn/generic/toom54_mul.c \
+	dcpi1_divappr_q.c		mpn/generic/dcpi1_divappr_q.c \
+	toom_eval_dgr3_pm2.c		mpn/generic/toom_eval_dgr3_pm2.c \
+	mod_1_3.c		mpn/generic/mod_1_3.c \
+	xor_n.c		mpn/generic/logops_n.c \
+	nior_n.c		mpn/generic/logops_n.c \
+	toom_couple_handling.c		mpn/generic/toom_couple_handling.c \
+	add.c		mpn/generic/add.c \
+	div_qr_2.c		mpn/generic/div_qr_2.c \
+	toom_interpolate_12pts.c		mpn/generic/toom_interpolate_12pts.c \
+	perfsqr.c		mpn/generic/perfsqr.c \
+	

CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/aarch64

2018-07-14 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Jul 14 23:49:20 UTC 2018

Added Files:
src/external/lgpl3/gmp/lib/libgmp/arch/aarch64: Makefile.inc config.h
config.m4 gmp-mparam.h gmp.h

Log Message:
aarch64 files for gmp


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
src/external/lgpl3/gmp/lib/libgmp/arch/aarch64/Makefile.inc \
src/external/lgpl3/gmp/lib/libgmp/arch/aarch64/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/aarch64/config.m4 \
src/external/lgpl3/gmp/lib/libgmp/arch/aarch64/gmp-mparam.h \
src/external/lgpl3/gmp/lib/libgmp/arch/aarch64/gmp.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/external/lgpl3/gmp/lib/libgmp/arch/aarch64/Makefile.inc
diff -u /dev/null src/external/lgpl3/gmp/lib/libgmp/arch/aarch64/Makefile.inc:1.1
--- /dev/null	Sat Jul 14 19:49:20 2018
+++ src/external/lgpl3/gmp/lib/libgmp/arch/aarch64/Makefile.inc	Sat Jul 14 19:49:20 2018
@@ -0,0 +1,197 @@
+#	$NetBSD: Makefile.inc,v 1.1 2018/07/14 23:49:20 christos Exp $
+
+GMP_LIMB_BITS=64
+
+C_SRCS_LIST= \
+	add.c	mpn/generic/add.c \
+	add_1.c	mpn/generic/add_1.c \
+	add_err1_n.c	mpn/generic/add_err1_n.c \
+	add_err2_n.c	mpn/generic/add_err2_n.c \
+	add_err3_n.c	mpn/generic/add_err3_n.c \
+	add_n_sub_n.c	mpn/generic/add_n_sub_n.c \
+	bdiv_q.c	mpn/generic/bdiv_q.c \
+	bdiv_q_1.c	mpn/generic/bdiv_q_1.c \
+	bdiv_qr.c	mpn/generic/bdiv_qr.c \
+	binvert.c	mpn/generic/binvert.c \
+	broot.c	mpn/generic/broot.c \
+	brootinv.c	mpn/generic/brootinv.c \
+	bsqrt.c	mpn/generic/bsqrt.c \
+	bsqrtinv.c	mpn/generic/bsqrtinv.c \
+	cmp.c	mpn/generic/cmp.c \
+	cnd_swap.c	mpn/generic/cnd_swap.c \
+	comb_tables.c	mpn/generic/comb_tables.c \
+	dcpi1_bdiv_q.c	mpn/generic/dcpi1_bdiv_q.c \
+	dcpi1_bdiv_qr.c	mpn/generic/dcpi1_bdiv_qr.c \
+	dcpi1_div_q.c	mpn/generic/dcpi1_div_q.c \
+	dcpi1_div_qr.c	mpn/generic/dcpi1_div_qr.c \
+	dcpi1_divappr_q.c	mpn/generic/dcpi1_divappr_q.c \
+	div_q.c	mpn/generic/div_q.c \
+	div_qr_1.c	mpn/generic/div_qr_1.c \
+	div_qr_1n_pi1.c	mpn/generic/div_qr_1n_pi1.c \
+	div_qr_2.c	mpn/generic/div_qr_2.c \
+	div_qr_2n_pi1.c	mpn/generic/div_qr_2n_pi1.c \
+	div_qr_2u_pi1.c	mpn/generic/div_qr_2u_pi1.c \
+	dive_1.c	mpn/generic/dive_1.c \
+	diveby3.c	mpn/generic/diveby3.c \
+	divexact.c	mpn/generic/divexact.c \
+	divis.c	mpn/generic/divis.c \
+	divrem.c	mpn/generic/divrem.c \
+	divrem_1.c	mpn/generic/divrem_1.c \
+	divrem_2.c	mpn/generic/divrem_2.c \
+	dump.c	mpn/generic/dump.c \
+	fib2_ui.c	mpn/generic/fib2_ui.c \
+	gcd.c	mpn/generic/gcd.c \
+	gcd_subdiv_step.c	mpn/generic/gcd_subdiv_step.c \
+	gcdext.c	mpn/generic/gcdext.c \
+	gcdext_1.c	mpn/generic/gcdext_1.c \
+	gcdext_lehmer.c	mpn/generic/gcdext_lehmer.c \
+	get_d.c	mpn/generic/get_d.c \
+	get_str.c	mpn/generic/get_str.c \
+	hgcd.c	mpn/generic/hgcd.c \
+	hgcd2.c	mpn/generic/hgcd2.c \
+	hgcd2_jacobi.c	mpn/generic/hgcd2_jacobi.c \
+	hgcd_appr.c	mpn/generic/hgcd_appr.c \
+	hgcd_jacobi.c	mpn/generic/hgcd_jacobi.c \
+	hgcd_matrix.c	mpn/generic/hgcd_matrix.c \
+	hgcd_reduce.c	mpn/generic/hgcd_reduce.c \
+	hgcd_step.c	mpn/generic/hgcd_step.c \
+	invert.c	mpn/generic/invert.c \
+	invertappr.c	mpn/generic/invertappr.c \
+	jacbase.c	mpn/generic/jacbase.c \
+	jacobi.c	mpn/generic/jacobi.c \
+	jacobi_2.c	mpn/generic/jacobi_2.c \
+	lshiftc.c	mpn/generic/lshiftc.c \
+	matrix22_mul.c	mpn/generic/matrix22_mul.c \
+	matrix22_mul1_inverse_vector.c	mpn/generic/matrix22_mul1_inverse_vector.c \
+	mod_1.c	mpn/generic/mod_1.c \
+	mod_1_1.c	mpn/generic/mod_1_1.c \
+	mod_1_2.c	mpn/generic/mod_1_2.c \
+	mod_1_3.c	mpn/generic/mod_1_3.c \
+	mod_1_4.c	mpn/generic/mod_1_4.c \
+	mode1o.c	mpn/generic/mode1o.c \
+	mu_bdiv_q.c	mpn/generic/mu_bdiv_q.c \
+	mu_bdiv_qr.c	mpn/generic/mu_bdiv_qr.c \
+	mu_div_q.c	mpn/generic/mu_div_q.c \
+	mu_div_qr.c	mpn/generic/mu_div_qr.c \
+	mu_divappr_q.c	mpn/generic/mu_divappr_q.c \
+	mul.c	mpn/generic/mul.c \
+	mul_basecase.c	mpn/generic/mul_basecase.c \
+	mul_fft.c	mpn/generic/mul_fft.c \
+	mul_n.c	mpn/generic/mul_n.c \
+	mullo_basecase.c	mpn/generic/mullo_basecase.c \
+	mullo_n.c	mpn/generic/mullo_n.c \
+	mulmid.c	mpn/generic/mulmid.c \
+	mulmid_basecase.c	mpn/generic/mulmid_basecase.c \
+	mulmid_n.c	mpn/generic/mulmid_n.c \
+	mulmod_bnm1.c	mpn/generic/mulmod_bnm1.c \
+	neg.c	mpn/generic/neg.c \
+	nussbaumer_mul.c	mpn/generic/nussbaumer_mul.c \
+	perfpow.c	mpn/generic/perfpow.c \
+	perfsqr.c	mpn/generic/perfsqr.c \
+	pow_1.c	mpn/generic/pow_1.c \
+	powlo.c	mpn/generic/powlo.c \
+	powm.c	mpn/generic/powm.c \
+	pre_divrem_1.c	mpn/generic/pre_divrem_1.c \
+	pre_mod_1.c	mpn/generic/pre_mod_1.c \
+	random.c	mpn/generic/random.c \
+	random2.c	mpn/generic/random2.c \
+	redc_1.c	mpn/generic/redc_1.c \
+	redc_2.c	mpn/generic/redc_2.c \
+	redc_n.c	mpn/generic/redc_n.c \
+	remove.c	mpn/generic/remove.c \
+	rootrem.c	mpn/generic/rootrem.c \
+	sbpi1_bdiv_q.c	mpn/generic/sbpi1_bdiv_q.c \
+	sbpi1_bdiv_qr.c	mpn/generic/sbpi1_bdiv_qr.c \

CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64

2017-08-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Aug 17 02:17:00 UTC 2017

Removed Files:
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64: mp.h

Log Message:
remove file that died 4 years ago...


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r0 src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/mp.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/or1k

2014-09-03 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Wed Sep  3 19:11:24 UTC 2014

Added Files:
src/external/lgpl3/gmp/lib/libgmp/arch/or1k: Makefile.inc config.h
config.m4 gmp-mparam.h gmp.h

Log Message:
OR1K configury for NetBSD


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
src/external/lgpl3/gmp/lib/libgmp/arch/or1k/Makefile.inc \
src/external/lgpl3/gmp/lib/libgmp/arch/or1k/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/or1k/config.m4 \
src/external/lgpl3/gmp/lib/libgmp/arch/or1k/gmp-mparam.h \
src/external/lgpl3/gmp/lib/libgmp/arch/or1k/gmp.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/external/lgpl3/gmp/lib/libgmp/arch/or1k/Makefile.inc
diff -u /dev/null src/external/lgpl3/gmp/lib/libgmp/arch/or1k/Makefile.inc:1.1
--- /dev/null	Wed Sep  3 19:11:24 2014
+++ src/external/lgpl3/gmp/lib/libgmp/arch/or1k/Makefile.inc	Wed Sep  3 19:11:24 2014
@@ -0,0 +1,184 @@
+#	$NetBSD: Makefile.inc,v 1.1 2014/09/03 19:11:24 matt Exp $
+
+SRCS+= \
+	random.c \
+	toom_interpolate_7pts.c \
+	divrem_2.c \
+	sbpi1_divappr_q.c \
+	random2.c \
+	mu_bdiv_q.c \
+	mulmid_basecase.c \
+	jacobi_2.c \
+	toom32_mul.c \
+	toom2_sqr.c \
+	toom44_mul.c \
+	toom8h_mul.c \
+	zero.c \
+	mod_1_4.c \
+	gcdext.c \
+	add_err3_n.c \
+	binvert.c \
+	mu_div_q.c \
+	invertappr.c \
+	add_n_sub_n.c \
+	dump.c \
+	mu_divappr_q.c \
+	dcpi1_div_qr.c \
+	hgcd_reduce.c \
+	matrix22_mul1_inverse_vector.c \
+	tabselect.c \
+	toom6_sqr.c \
+	divrem_1.c \
+	hgcd_step.c \
+	sub_err3_n.c \
+	mod_1.c \
+	toom42_mulmid.c \
+	divexact.c \
+	jacobi.c \
+	powlo.c \
+	mul.c \
+	set_str.c \
+	toom42_mul.c \
+	toom_interpolate_6pts.c \
+	toom54_mul.c \
+	dcpi1_divappr_q.c \
+	copyd.c \
+	toom_eval_dgr3_pm2.c \
+	mod_1_3.c \
+	com.c \
+	copyi.c \
+	toom_couple_handling.c \
+	lshift.c \
+	add.c \
+	div_qr_2.c \
+	toom_interpolate_12pts.c \
+	perfsqr.c \
+	toom53_mul.c \
+	toom_eval_pm2exp.c \
+	mu_div_qr.c \
+	toom_interpolate_16pts.c \
+	mod_34lsub1.c \
+	bdiv_q.c \
+	toom22_mul.c \
+	bsqrtinv.c \
+	toom4_sqr.c \
+	rshift.c \
+	div_q.c \
+	jacbase.c \
+	addcnd_n.c \
+	hgcd_matrix.c \
+	toom_eval_dgr3_pm1.c \
+	mullo_n.c \
+	toom33_mul.c \
+	mod_1_2.c \
+	sub_1.c \
+	add_err2_n.c \
+	trialdiv.c \
+	add_1.c \
+	sqr_basecase.c \
+	toom_interpolate_5pts.c \
+	sbpi1_bdiv_q.c \
+	pre_mod_1.c \
+	hgcd.c \
+	bdiv_dbm1c.c \
+	sqrtrem.c \
+	bdiv_q_1.c \
+	gcdext_1.c \
+	toom63_mul.c \
+	div_qr_2u_pi1.c \
+	toom8_sqr.c \
+	mul_basecase.c \
+	addmul_1.c \
+	neg.c \
+	gcdext_lehmer.c \
+	divis.c \
+	dcpi1_div_q.c \
+	mul_1.c \
+	sub_n.c \
+	toom_eval_pm2.c \
+	add_n.c \
+	subcnd_n.c \
+	hgcd2.c \
+	toom62_mul.c \
+	comb_tables.c \
+	sbpi1_bdiv_qr.c \
+	sub_err2_n.c \
+	scan1.c \
+	brootinv.c \
+	pre_divrem_1.c \
+	perfpow.c \
+	get_str.c \
+	mulmod_bnm1.c \
+	mullo_basecase.c \
+	tdiv_qr.c \
+	div_qr_2n_pi1.c \
+	toom43_mul.c \
+	mod_1_1.c \
+	matrix22_mul.c \
+	powm_sec.c \
+	divrem.c \
+	bsqrt.c \
+	gcd_1.c \
+	dcpi1_bdiv_qr.c \
+	mul_n.c \
+	redc_2.c \
+	submul_1.c \
+	toom6h_mul.c \
+	sqrmod_bnm1.c \
+	mul_fft.c \
+	mulmid.c \
+	powm.c \
+	rootrem.c \
+	mode1o.c \
+	toom_interpolate_8pts.c \
+	remove.c \
+	lshiftc.c \
+	dive_1.c \
+	cmp.c \
+	toom_eval_pm1.c \
+	hgcd_appr.c \
+	scan0.c \
+	gcd_subdiv_step.c \
+	sbpi1_div_qr.c \
+	invert.c \
+	sub.c \
+	toom_eval_pm2rexp.c \
+	broot.c \
+	dcpi1_bdiv_q.c \
+	hgcd2_jacobi.c \
+	add_err1_n.c \
+	mulmid_n.c \
+	redc_1.c \
+	sqr.c \
+	nussbaumer_mul.c \
+	mu_bdiv_qr.c \
+	pow_1.c \
+	get_d.c \
+	toom52_mul.c \
+	sbpi1_div_q.c \
+	diveby3.c \
+	fib2_ui.c \
+	bdiv_qr.c \
+	hgcd_jacobi.c \
+	toom3_sqr.c \
+	gcd.c \
+	redc_n.c \
+	sub_err1_n.c \
+
+C_SRCS_LIST= \
+	xor_n.c			mpn/generic/logops_n.c \
+	sb_div_r_sec.c		mpn/generic/sb_div_sec.c \
+	nand_n.c		mpn/generic/logops_n.c \
+	nior_n.c		mpn/generic/logops_n.c \
+	hamdist.c		mpn/generic/popham.c \
+	popcount.c		mpn/generic/popham.c \
+	sbpi1_div_qr_sec.c	mpn/generic/sbpi1_div_sec.c \
+	and_n.c			mpn/generic/logops_n.c \
+	ior_n.c			mpn/generic/logops_n.c \
+	sb_div_qr_sec.c		mpn/generic/sb_div_sec.c \
+	xnor_n.c		mpn/generic/logops_n.c \
+	iorn_n.c		mpn/generic/logops_n.c \
+	sbpi1_div_r_sec.c	mpn/generic/sbpi1_div_sec.c \
+	andn_n.c		mpn/generic/logops_n.c \
+
+GMP_LIMB_BITS=32
Index: src/external/lgpl3/gmp/lib/libgmp/arch/or1k/config.h
diff -u /dev/null src/external/lgpl3/gmp/lib/libgmp/arch/or1k/config.h:1.1
--- /dev/null	Wed Sep  3 19:11:24 2014
+++ src/external/lgpl3/gmp/lib/libgmp/arch/or1k/config.h	Wed Sep  3 19:11:24 2014
@@ -0,0 +1,630 @@
+/* config.h.  Generated from config.in by configure.  */
+/* config.in.  Generated from configure.ac by autoheader.  */
+
+/*
+
+Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
+2007, 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
+
+This file is part of the GNU MP Library.
+
+The GNU MP Library is free software; you can redistribute it 

CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch

2014-05-13 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Tue May 13 18:46:48 UTC 2014

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb: Makefile.inc config.h
src/external/lgpl3/gmp/lib/libgmp/arch/mips64el: Makefile.inc config.h

Log Message:
on mips64* use generic C functions instead of assembly routines when building
n32 binaries. Should work around PR48696
ok mrg@


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/Makefile.inc
cvs rdiff -u -r1.4 -r1.5 \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/config.h
cvs rdiff -u -r1.5 -r1.6 \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64el/Makefile.inc
cvs rdiff -u -r1.4 -r1.5 \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64el/config.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/Makefile.inc
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/Makefile.inc:1.5 src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/Makefile.inc:1.6
--- src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/Makefile.inc:1.5	Wed Dec  4 00:49:18 2013
+++ src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/Makefile.inc	Tue May 13 18:46:48 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.5 2013/12/04 00:49:18 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.6 2014/05/13 18:46:48 macallan Exp $
 
 SRCS+= \
 	random.c \
@@ -174,6 +174,24 @@ C_SRCS_LIST= \
 	sbpi1_div_r_sec.c	mpn/generic/sbpi1_div_sec.c \
 	andn_n.c		mpn/generic/logops_n.c \
 
+.if (defined(CPUFLAGS)  !empty(CPUFLAGS:M-mabi=64))
+GMP_LIMB_BITS=64
+C_SRCS_LIST= \
+	xor_n.c			mpn/generic/logops_n.c \
+	sb_div_r_sec.c		mpn/generic/sb_div_sec.c \
+	nand_n.c		mpn/generic/logops_n.c \
+	nior_n.c		mpn/generic/logops_n.c \
+	hamdist.c		mpn/generic/popham.c \
+	popcount.c		mpn/generic/popham.c \
+	sbpi1_div_qr_sec.c	mpn/generic/sbpi1_div_sec.c \
+	and_n.c			mpn/generic/logops_n.c \
+	ior_n.c			mpn/generic/logops_n.c \
+	sb_div_qr_sec.c		mpn/generic/sb_div_sec.c \
+	xnor_n.c		mpn/generic/logops_n.c \
+	iorn_n.c		mpn/generic/logops_n.c \
+	sbpi1_div_r_sec.c	mpn/generic/sbpi1_div_sec.c \
+	andn_n.c		mpn/generic/logops_n.c \
+
 ASM_SRCS_LIST= \
 	sqr_diagonal.asm	mpn/mips64/sqr_diagonal.asm \
 	add_n.asm		mpn/mips64/add_n.asm \
@@ -185,10 +203,35 @@ ASM_SRCS_LIST= \
 	addmul_1.asm		mpn/mips64/addmul_1.asm \
 	sub_n.asm		mpn/mips64/sub_n.asm \
 
-.if (defined(CPUFLAGS)  !empty(CPUFLAGS:M-mabi=64))
-GMP_LIMB_BITS=64
 .else
 GMP_LIMB_BITS=32
+C_SRCS_LIST= \
+	xor_n.c			mpn/generic/logops_n.c \
+	sb_div_r_sec.c		mpn/generic/sb_div_sec.c \
+	nand_n.c		mpn/generic/logops_n.c \
+	nior_n.c		mpn/generic/logops_n.c \
+	hamdist.c		mpn/generic/popham.c \
+	popcount.c		mpn/generic/popham.c \
+	sbpi1_div_qr_sec.c	mpn/generic/sbpi1_div_sec.c \
+	and_n.c			mpn/generic/logops_n.c \
+	ior_n.c			mpn/generic/logops_n.c \
+	sb_div_qr_sec.c		mpn/generic/sb_div_sec.c \
+	xnor_n.c		mpn/generic/logops_n.c \
+	iorn_n.c		mpn/generic/logops_n.c \
+	sbpi1_div_r_sec.c	mpn/generic/sbpi1_div_sec.c \
+	andn_n.c		mpn/generic/logops_n.c \
+	addn_n.c		mpn/generic/add_n.c \
+	submul_1.c		mpn/generic/submul_1.c \
+	lshift.c		mpn/generic/lshift.c \
+	mul_1.c			mpn/generic/mul_1.c \
+	rshift.c		mpn/generic/rshift.c \
+	sub_n.c			mpn/generic/sub_n.c \
+	addmul_1.c		mpn/generic/addmul_1.c \
+
+ASM_SRCS_LIST= 
+
 .endif
 
 COPTS+=		-Wno-error
+
+COPTS+=		-Wno-error

Index: src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/config.h
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/config.h:1.4 src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/config.h:1.5
--- src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/config.h:1.4	Fri Nov 29 13:26:16 2013
+++ src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/config.h	Tue May 13 18:46:48 2014
@@ -221,9 +221,13 @@ along with the GNU MP Library.  If not, 
 
 /* Define to 1 each of the following for which a native (ie. CPU specific)
 implementation of the corresponding routine exists.  */
+#ifdef _LP64
 #define HAVE_NATIVE_mpn_add_n 1
+#endif
 /* #undef HAVE_NATIVE_mpn_add_n_sub_n */
+#ifdef _LP64
 #define HAVE_NATIVE_mpn_add_nc 1
+#endif
 /* #undef HAVE_NATIVE_mpn_addaddmul_1msb0 */
 /* #undef HAVE_NATIVE_mpn_addcnd_n */
 /* #undef HAVE_NATIVE_mpn_addlsh1_n */
@@ -272,7 +276,9 @@ along with the GNU MP Library.  If not, 
 /* #undef HAVE_NATIVE_mpn_invert_limb */
 /* #undef HAVE_NATIVE_mpn_ior_n */
 /* #undef HAVE_NATIVE_mpn_iorn_n */
+#ifdef _LP64
 #define HAVE_NATIVE_mpn_lshift 1
+#endif
 /* #undef HAVE_NATIVE_mpn_lshiftc */
 /* #undef HAVE_NATIVE_mpn_lshsub_n */
 /* #undef HAVE_NATIVE_mpn_mod_1 */
@@ -283,7 +289,9 @@ along with the GNU MP Library.  If not, 
 /* #undef HAVE_NATIVE_mpn_mod_34lsub1 */
 /* #undef HAVE_NATIVE_mpn_modexact_1_odd */
 /* #undef HAVE_NATIVE_mpn_modexact_1c_odd */
+#ifdef _LP64
 #define HAVE_NATIVE_mpn_mul_1 1
+#endif
 /* #undef HAVE_NATIVE_mpn_mul_1c */
 /* #undef 

CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64

2014-02-26 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Feb 26 15:35:05 UTC 2014

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64: Makefile.inc

Log Message:
powerpc64 support.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 \
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/Makefile.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/Makefile.inc
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/Makefile.inc:1.3 src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/Makefile.inc:1.4
--- src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/Makefile.inc:1.3	Tue Dec  3 19:49:18 2013
+++ src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/Makefile.inc	Wed Feb 26 10:35:05 2014
@@ -1,131 +1,134 @@
-#	$NetBSD: Makefile.inc,v 1.3 2013/12/04 00:49:18 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.4 2014/02/26 15:35:05 christos Exp $
 
 SRCS+= \
-	random.c \
-	divrem_2.c \
-	toom_interpolate_7pts.c \
-	sbpi1_divappr_q.c \
-	random2.c \
-	mu_bdiv_q.c \
-	toom32_mul.c \
-	toom44_mul.c \
-	toom8h_mul.c \
-	toom2_sqr.c \
-	zero.c \
-	mod_1_4.c \
-	gcdext.c \
-	binvert.c \
-	mu_div_q.c \
-	invertappr.c \
-	dump.c \
-	mu_divappr_q.c \
-	dcpi1_div_qr.c \
-	redc_1_sec.c \
-	toom6_sqr.c \
-	divrem_1.c \
-	mod_1.c \
-	divexact.c \
-	powlo.c \
-	mul.c \
-	set_str.c \
-	toom42_mul.c \
-	toom_interpolate_6pts.c \
-	dcpi1_divappr_q.c \
-	toom_eval_dgr3_pm2.c \
-	mod_1_3.c \
-	toom_couple_handling.c \
 	add.c \
-	toom_interpolate_12pts.c \
-	perfsqr.c \
-	toom53_mul.c \
-	toom_eval_pm2exp.c \
-	mu_div_qr.c \
-	toom_interpolate_16pts.c \
-	mod_34lsub1.c \
-	bdiv_q.c \
-	toom22_mul.c \
-	toom4_sqr.c \
-	div_q.c \
-	jacbase.c \
-	gcdext_subdiv_step.c \
-	mullo_n.c \
-	toom33_mul.c \
-	toom_eval_dgr3_pm1.c \
-	mod_1_2.c \
-	sub_1.c \
-	trialdiv.c \
 	add_1.c \
-	sqr_basecase.c \
-	toom_interpolate_5pts.c \
-	sbpi1_bdiv_q.c \
-	pre_mod_1.c \
-	hgcd.c \
 	bdiv_dbm1c.c \
-	sqrtrem.c \
+	bdiv_q.c \
 	bdiv_q_1.c \
+	bdiv_qr.c \
+	binvert.c \
+	cmp.c \
+	dcpi1_bdiv_q.c \
+	dcpi1_bdiv_qr.c \
+	dcpi1_div_q.c \
+	dcpi1_div_qr.c \
+	dcpi1_divappr_q.c \
+	div_q.c \
+	div_qr_2n_pi1.c \
+	dive_1.c \
+	diveby3.c \
+	divexact.c \
+	divis.c \
+	divrem.c \
+	divrem_1.c \
+	divrem_2.c \
+	dump.c \
+	fib2_ui.c \
+	gcd.c \
+	gcd_1.c \
+	gcd_subdiv_step.c \
+	gcdext.c \
 	gcdext_1.c \
-	toom63_mul.c \
-	mul_basecase.c \
-	toom8_sqr.c \
-	neg.c \
 	gcdext_lehmer.c \
-	divis.c \
-	dcpi1_div_q.c \
-	subcnd_n.c \
-	toom_eval_pm2.c \
-	hgcd2.c \
-	toom62_mul.c \
-	sbpi1_bdiv_qr.c \
-	scan1.c \
-	pre_divrem_1.c \
-	perfpow.c \
+	get_d.c \
 	get_str.c \
+	hgcd.c \
+	hgcd2.c \
+	hgcd_appr.c \
+	hgcd_matrix.c \
+	hgcd_reduce.c \
+	hgcd_step.c \
+	invert.c \
+	invertappr.c \
+	jacbase.c \
+	lshiftc.c \
+	matrix22_mul.c \
+	matrix22_mul1_inverse_vector.c \
+	mod_1.c \
+	mod_1_1.c \
+	mod_1_2.c \
+	mod_1_3.c \
+	mod_1_4.c \
+	mod_34lsub1.c \
+	mode1o.c \
+	mu_bdiv_q.c \
+	mu_bdiv_qr.c \
+	mu_div_q.c \
+	mu_div_qr.c \
+	mu_divappr_q.c \
+	mul.c \
+	mul_basecase.c \
+	mul_fft.c \
+	mul_n.c \
 	mullo_basecase.c \
+	mullo_n.c \
 	mulmod_bnm1.c \
-	tdiv_qr.c \
-	toom43_mul.c \
-	mod_1_1.c \
-	matrix22_mul.c \
+	neg.c \
+	nussbaumer_mul.c \
+	perfpow.c \
+	perfsqr.c \
+	pow_1.c \
+	powlo.c \
+	powm.c \
 	powm_sec.c \
-	divrem.c \
-	gcd_1.c \
-	dcpi1_bdiv_qr.c \
-	mul_n.c \
+	pre_divrem_1.c \
+	pre_mod_1.c \
+	random.c \
+	random2.c \
+	redc_1.c \
 	redc_2.c \
-	toom6h_mul.c \
-	mul_fft.c \
-	sqrmod_bnm1.c \
-	powm.c \
-	rootrem.c \
-	mode1o.c \
-	toom_interpolate_8pts.c \
+	redc_n.c \
 	remove.c \
-	lshiftc.c \
-	dive_1.c \
-	cmp.c \
-	toom_eval_pm1.c \
-	scan0.c \
-	gcd_subdiv_step.c \
+	rootrem.c \
+	sbpi1_bdiv_q.c \
+	sbpi1_bdiv_qr.c \
+	sbpi1_div_q.c \
 	sbpi1_div_qr.c \
-	invert.c \
-	sub.c \
-	toom_eval_pm2rexp.c \
-	dcpi1_bdiv_q.c \
-	redc_1.c \
+	sbpi1_divappr_q.c \
+	scan0.c \
+	scan1.c \
+	set_str.c \
 	sqr.c \
-	nussbaumer_mul.c \
-	mu_bdiv_qr.c \
-	pow_1.c \
-	gcd_lehmer.c \
-	get_d.c \
-	toom52_mul.c \
-	sbpi1_div_q.c \
-	diveby3.c \
-	fib2_ui.c \
-	bdiv_qr.c \
+	sqr_basecase.c \
+	sqrmod_bnm1.c \
+	sqrtrem.c \
+	sub.c \
+	sub_1.c \
+	subcnd_n.c \
+	tdiv_qr.c \
+	toom22_mul.c \
+	toom2_sqr.c \
+	toom32_mul.c \
+	toom33_mul.c \
 	toom3_sqr.c \
-	gcd.c \
-	redc_n.c \
+	toom42_mul.c \
+	toom43_mul.c \
+	toom44_mul.c \
+	toom4_sqr.c \
+	toom52_mul.c \
+	toom53_mul.c \
+	toom62_mul.c \
+	toom63_mul.c \
+	toom6_sqr.c \
+	toom6h_mul.c \
+	toom8_sqr.c \
+	toom8h_mul.c \
+	toom_couple_handling.c \
+	toom_eval_dgr3_pm1.c \
+	toom_eval_dgr3_pm2.c \
+	toom_eval_pm1.c \
+	toom_eval_pm2.c \
+	toom_eval_pm2exp.c \
+	toom_eval_pm2rexp.c \
+	toom_interpolate_12pts.c \
+	toom_interpolate_16pts.c \
+	toom_interpolate_5pts.c \
+	toom_interpolate_6pts.c \
+	toom_interpolate_7pts.c \
+	toom_interpolate_8pts.c \
+	trialdiv.c \
+	zero.c \
 
 C_SRCS_LIST= \
 	hamdist.c		mpn/generic/popham.c \
@@ -133,7 +136,7 

CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/earm

2014-01-15 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Jan 15 22:23:14 UTC 2014

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/earm: Makefile.inc

Log Message:
-march=armv6 is no longer needed here, the multiplication instructions
are now parsed correctly for all ARM variants in LLVM.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 \
src/external/lgpl3/gmp/lib/libgmp/arch/earm/Makefile.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/lib/libgmp/arch/earm/Makefile.inc
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/earm/Makefile.inc:1.6 src/external/lgpl3/gmp/lib/libgmp/arch/earm/Makefile.inc:1.7
--- src/external/lgpl3/gmp/lib/libgmp/arch/earm/Makefile.inc:1.6	Wed Dec 25 22:54:24 2013
+++ src/external/lgpl3/gmp/lib/libgmp/arch/earm/Makefile.inc	Wed Jan 15 22:23:14 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.6 2013/12/25 22:54:24 joerg Exp $
+#	$NetBSD: Makefile.inc,v 1.7 2014/01/15 22:23:14 joerg Exp $
 
 SRCS+= \
 	random.c \
@@ -193,9 +193,3 @@ GMP_LIMB_BITS=32
 
 M4FLAGS= -DPIC
 COPTS+= -fPIC
-
-AFLAGS.addmul_1.s=	-march=armv6
-AFLAGS.invert_limb.s=	-march=armv6
-AFLAGS.mode1o.s=	-march=armv6
-AFLAGS.mul_1.s=		-march=armv6
-AFLAGS.submul_1.s=	-march=armv6



CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/earm

2013-12-25 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Dec 25 22:06:11 UTC 2013

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/earm: Makefile.inc

Log Message:
Tag files using more advanced instructions than ARMv4 ISA with the
necessary support.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 \
src/external/lgpl3/gmp/lib/libgmp/arch/earm/Makefile.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/lib/libgmp/arch/earm/Makefile.inc
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/earm/Makefile.inc:1.4 src/external/lgpl3/gmp/lib/libgmp/arch/earm/Makefile.inc:1.5
--- src/external/lgpl3/gmp/lib/libgmp/arch/earm/Makefile.inc:1.4	Wed Dec  4 00:49:17 2013
+++ src/external/lgpl3/gmp/lib/libgmp/arch/earm/Makefile.inc	Wed Dec 25 22:06:11 2013
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.4 2013/12/04 00:49:17 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.5 2013/12/25 22:06:11 joerg Exp $
 
 SRCS+= \
 	random.c \
@@ -193,3 +193,9 @@ GMP_LIMB_BITS=32
 
 M4FLAGS= -DPIC
 COPTS+= -fPIC
+
+AFLAGS.addmul_1.s=	-march=armv5
+AFLAGS.invert_limb.s=	-march=armv5
+AFLAGS.mode1o.s=	-march=armv5
+AFLAGS.mul_1.s=		-march=armv5
+AFLAGS.submul_1.s=	-march=armv5



CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/earm

2013-12-25 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Dec 25 22:54:24 UTC 2013

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/earm: Makefile.inc

Log Message:
Should be ARMv6.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 \
src/external/lgpl3/gmp/lib/libgmp/arch/earm/Makefile.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/lib/libgmp/arch/earm/Makefile.inc
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/earm/Makefile.inc:1.5 src/external/lgpl3/gmp/lib/libgmp/arch/earm/Makefile.inc:1.6
--- src/external/lgpl3/gmp/lib/libgmp/arch/earm/Makefile.inc:1.5	Wed Dec 25 22:06:11 2013
+++ src/external/lgpl3/gmp/lib/libgmp/arch/earm/Makefile.inc	Wed Dec 25 22:54:24 2013
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.5 2013/12/25 22:06:11 joerg Exp $
+#	$NetBSD: Makefile.inc,v 1.6 2013/12/25 22:54:24 joerg Exp $
 
 SRCS+= \
 	random.c \
@@ -194,8 +194,8 @@ GMP_LIMB_BITS=32
 M4FLAGS= -DPIC
 COPTS+= -fPIC
 
-AFLAGS.addmul_1.s=	-march=armv5
-AFLAGS.invert_limb.s=	-march=armv5
-AFLAGS.mode1o.s=	-march=armv5
-AFLAGS.mul_1.s=		-march=armv5
-AFLAGS.submul_1.s=	-march=armv5
+AFLAGS.addmul_1.s=	-march=armv6
+AFLAGS.invert_limb.s=	-march=armv6
+AFLAGS.mode1o.s=	-march=armv6
+AFLAGS.mul_1.s=		-march=armv6
+AFLAGS.submul_1.s=	-march=armv6



CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb

2013-12-03 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Dec  3 08:49:09 UTC 2013

Removed Files:
src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb: a

Log Message:
remove accidently commited file


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r0 src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/a

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch

2013-11-29 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Nov 29 13:26:16 UTC 2013

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/armeb: config.h config.m4 gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/earm: config.h config.m4 gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/earmeb: config.h config.m4 gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/earmhf: config.h config.m4
src/external/lgpl3/gmp/lib/libgmp/arch/earmhfeb: config.h config.m4
src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb: config.h config.m4
src/external/lgpl3/gmp/lib/libgmp/arch/mips64el: config.h config.m4
gmp.h

Log Message:
clean up __GMP_CC, GMP_MPARAM_H_SUGGEST and CONFIG_TOP_SRCDIR.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 \
src/external/lgpl3/gmp/lib/libgmp/arch/armeb/config.h
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/armeb/config.m4 \
src/external/lgpl3/gmp/lib/libgmp/arch/armeb/gmp.h
cvs rdiff -u -r1.2 -r1.3 src/external/lgpl3/gmp/lib/libgmp/arch/earm/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/earm/config.m4 \
src/external/lgpl3/gmp/lib/libgmp/arch/earm/gmp.h
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/earmeb/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/earmeb/config.m4 \
src/external/lgpl3/gmp/lib/libgmp/arch/earmeb/gmp.h
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/earmhf/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/earmhf/config.m4
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/earmhfeb/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/earmhfeb/config.m4
cvs rdiff -u -r1.3 -r1.4 \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/config.m4
cvs rdiff -u -r1.3 -r1.4 \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64el/config.h \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64el/config.m4
cvs rdiff -u -r1.4 -r1.5 \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64el/gmp.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/lib/libgmp/arch/armeb/config.h
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/armeb/config.h:1.3 src/external/lgpl3/gmp/lib/libgmp/arch/armeb/config.h:1.4
--- src/external/lgpl3/gmp/lib/libgmp/arch/armeb/config.h:1.3	Fri Nov 29 08:54:48 2013
+++ src/external/lgpl3/gmp/lib/libgmp/arch/armeb/config.h	Fri Nov 29 13:26:16 2013
@@ -27,7 +27,7 @@ along with the GNU MP Library.  If not, 
 
 /* The gmp-mparam.h file (a string) the tune program should suggest updating.
*/
-#define GMP_MPARAM_H_SUGGEST /usr/src7/external/lgpl3/gmp/dist/mpn/arm/gmp-mparam.h
+#define GMP_MPARAM_H_SUGGEST ./mpn/arm/gmp-mparam.h
 
 /* Define to 1 if you have the `alarm' function. */
 #define HAVE_ALARM 1

Index: src/external/lgpl3/gmp/lib/libgmp/arch/armeb/config.m4
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/armeb/config.m4:1.2 src/external/lgpl3/gmp/lib/libgmp/arch/armeb/config.m4:1.3
--- src/external/lgpl3/gmp/lib/libgmp/arch/armeb/config.m4:1.2	Fri Nov 29 08:54:48 2013
+++ src/external/lgpl3/gmp/lib/libgmp/arch/armeb/config.m4	Fri Nov 29 13:26:16 2013
@@ -1,7 +1,6 @@
 dnl config.m4.  Generated automatically by configure.
 changequote(,)
 ifdef(__CONFIG_M4_INCLUDED__,,
-define(CONFIG_TOP_SRCDIR,`/usr/src7/external/lgpl3/gmp/dist')
 define(WANT_ASSERT,0)
 define(WANT_PROFILING,`no')
 define(M4WRAP_SPURIOUS,no)
Index: src/external/lgpl3/gmp/lib/libgmp/arch/armeb/gmp.h
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/armeb/gmp.h:1.2 src/external/lgpl3/gmp/lib/libgmp/arch/armeb/gmp.h:1.3
--- src/external/lgpl3/gmp/lib/libgmp/arch/armeb/gmp.h:1.2	Fri Nov 29 08:54:48 2013
+++ src/external/lgpl3/gmp/lib/libgmp/arch/armeb/gmp.h	Fri Nov 29 13:26:16 2013
@@ -2218,7 +2218,7 @@ enum
 };
 
 /* Define CC and CFLAGS which were used to build this version of GMP */
-#define __GMP_CC /var/obj/evbarm/usr/src6/tooldir.NetBSD-6.0_STABLE-amd64/bin/armeb--netbsdelf-gcc --sysroot=/var/obj/evbarm/usr/src6/destdir.evbarm -L/var/obj/evbarm/usr/src6/destdir.evbarm/lib -L/var/obj/evbarm/usr/src6/destdir.evbarm/usr/lib -B/var/obj/evbarm/usr/src6/destdir.evbarm/usr/lib/ -I/var/obj/evbarm/usr/src7/external/lgpl3/gmp/.native/gcc/include -std=gnu99
+#define __GMP_CC gcc -std=gnu99
 #define __GMP_CFLAGS -marm -O2 -pedantic -fomit-frame-pointer
 
 /* Major version number is the value of __GNU_MP__ too, above and in mp.h. */

Index: src/external/lgpl3/gmp/lib/libgmp/arch/earm/config.h
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/earm/config.h:1.2 src/external/lgpl3/gmp/lib/libgmp/arch/earm/config.h:1.3
--- src/external/lgpl3/gmp/lib/libgmp/arch/earm/config.h:1.2	Fri Nov 29 08:54:48 2013
+++ src/external/lgpl3/gmp/lib/libgmp/arch/earm/config.h	Fri Nov 29 13:26:16 2013
@@ -27,7 +27,7 @@ along with the GNU MP Library.  If not, 
 
 /* The gmp-mparam.h file (a 

CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/sh3el

2013-11-29 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Nov 29 13:48:15 UTC 2013

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/sh3el: gmp.h

Log Message:
fix definition of __GMP_CC.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/lgpl3/gmp/lib/libgmp/arch/sh3el/gmp.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/lib/libgmp/arch/sh3el/gmp.h
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/sh3el/gmp.h:1.3 src/external/lgpl3/gmp/lib/libgmp/arch/sh3el/gmp.h:1.4
--- src/external/lgpl3/gmp/lib/libgmp/arch/sh3el/gmp.h:1.3	Fri Nov 29 08:03:42 2013
+++ src/external/lgpl3/gmp/lib/libgmp/arch/sh3el/gmp.h	Fri Nov 29 13:48:15 2013
@@ -2218,7 +2218,7 @@ enum
 };
 
 /* Define CC and CFLAGS which were used to build this version of GMP */
-#define gcc -std=gnu99
+#define __GMP_CC gcc -std=gnu99
 #define __GMP_CFLAGS -O2 -pedantic
 
 /* Major version number is the value of __GNU_MP__ too, above and in mp.h. */



CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64

2011-10-29 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Oct 29 11:42:09 UTC 2011

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64: config.m4

Log Message:
make sure to use powerpc64/elf.m4, not powerpc32/elf.m4 here!


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/config.m4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/config.m4
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/config.m4:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/config.m4:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/config.m4:1.1	Sat Oct 29 09:16:54 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/powerpc64/config.m4	Sat Oct 29 11:42:09 2011
@@ -28,7 +28,7 @@ changequote(`,')
 ifdef(`__CONFIG_M4_INCLUDED__',,`
 include(CONFIG_TOP_SRCDIR`/mpn/asm-defs.m4')
 include_mpn(`powerpc32/powerpc-defs.m4')
-include_mpn(`powerpc32/elf.m4')
+include_mpn(`powerpc64/elf.m4')
 define_not_for_expansion(`HAVE_HOST_CPU_powerpc64')
 define_not_for_expansion(`HAVE_ABI_mode32')
 define_not_for_expansion(`HAVE_LIMB_BIG_ENDIAN')



CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch

2011-07-09 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul 10 02:41:50 UTC 2011

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/arm: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/armeb: Makefile.inc

Log Message:
make these look more like the sparc/powerpc ones.

XXX: a big chunk of these Makefile.inc's should promoted to the
XXX: main Makefile.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/arm/Makefile.inc
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/armeb/Makefile.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/lib/libgmp/arch/arm/Makefile.inc
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/arm/Makefile.inc:1.2 src/external/lgpl3/gmp/lib/libgmp/arch/arm/Makefile.inc:1.3
--- src/external/lgpl3/gmp/lib/libgmp/arch/arm/Makefile.inc:1.2	Sun Jul  3 06:43:16 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/arm/Makefile.inc	Sun Jul 10 02:41:50 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.2 2011/07/03 06:43:16 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.3 2011/07/10 02:41:50 mrg Exp $
 
 SRCS+= \
 	random.c \
@@ -170,9 +170,15 @@
 ${.OBJDIR}/config.m4: ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4
 	cp ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4 ${.TARGET}
 
+BUILD_S_INCS=	-I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn
+
+M4FLAGS= -DPIC
+COPTS+= -fPIC
 .for _build _src in ${ASM_SRCS_LIST}
 ${_build:R}.s: Makefile dummy ${.OBJDIR}/config.m4
-	${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} -I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn -DOPERATION_${.TARGET:R} ${DIST}/${_src}  ${.TARGET}
+	${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} ${BUILD_S_INCS} \
+		${M4FLAGS} ${M4FLAGS.${.TARGET:R}} \
+		-DOPERATION_${.TARGET:R} ${DIST}/${_src}  ${.TARGET}
 
 SRCS+=		${_build:R}.s
 CLEANFILES+=	${_build:R}.s

Index: src/external/lgpl3/gmp/lib/libgmp/arch/armeb/Makefile.inc
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/armeb/Makefile.inc:1.2 src/external/lgpl3/gmp/lib/libgmp/arch/armeb/Makefile.inc:1.3
--- src/external/lgpl3/gmp/lib/libgmp/arch/armeb/Makefile.inc:1.2	Sun Jul  3 06:43:16 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/armeb/Makefile.inc	Sun Jul 10 02:41:50 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.2 2011/07/03 06:43:16 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.3 2011/07/10 02:41:50 mrg Exp $
 
 SRCS+= \
 	random.c \
@@ -170,9 +170,15 @@
 ${.OBJDIR}/config.m4: ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4
 	cp ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4 ${.TARGET}
 
+BUILD_S_INCS=	-I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn
+
+M4FLAGS= -DPIC
+COPTS+= -fPIC
 .for _build _src in ${ASM_SRCS_LIST}
 ${_build:R}.s: Makefile dummy ${.OBJDIR}/config.m4
-	${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} -I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn -DOPERATION_${.TARGET:R} ${DIST}/${_src}  ${.TARGET}
+	${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} ${BUILD_S_INCS} \
+		${M4FLAGS} ${M4FLAGS.${.TARGET:R}} \
+		-DOPERATION_${.TARGET:R} ${DIST}/${_src}  ${.TARGET}
 
 SRCS+=		${_build:R}.s
 CLEANFILES+=	${_build:R}.s



CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/sparc

2011-07-08 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Jul  8 09:21:17 UTC 2011

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/sparc: Makefile.inc

Log Message:
XXX: like ppc, build sparc gmp files with -DPIC for now.

now /usr/bin/cc in a gcc 4.5.3 world works on a sparc.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/sparc/Makefile.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/lib/libgmp/arch/sparc/Makefile.inc
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/sparc/Makefile.inc:1.2 src/external/lgpl3/gmp/lib/libgmp/arch/sparc/Makefile.inc:1.3
--- src/external/lgpl3/gmp/lib/libgmp/arch/sparc/Makefile.inc:1.2	Sun Jul  3 06:43:16 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/sparc/Makefile.inc	Fri Jul  8 09:21:17 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.2 2011/07/03 06:43:16 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.3 2011/07/08 09:21:17 mrg Exp $
 
 SRCS+= \
 	random.c \
@@ -170,9 +170,14 @@
 ${.OBJDIR}/config.m4: ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4
 	cp ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4 ${.TARGET}
 
+BUILD_S_INCS=	-I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn
+
+M4FLAGS= -DPIC
 .for _build _src in ${ASM_SRCS_LIST}
 ${_build:R}.s: Makefile dummy ${.OBJDIR}/config.m4
-	${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} -I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn -DOPERATION_${.TARGET:R} ${DIST}/${_src}  ${.TARGET}
+	${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} ${BUILD_S_INCS} \
+		${M4FLAGS} ${M4FLAGS.${.TARGET:R}} \
+		-DOPERATION_${.TARGET:R} ${DIST}/${_src}  ${.TARGET}
 
 SRCS+=		${_build:R}.s
 CLEANFILES+=	${_build:R}.s



CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch

2011-07-07 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Jul  7 06:30:03 UTC 2011

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/alpha: config.m4
src/external/lgpl3/gmp/lib/libgmp/arch/hppa: config.m4
src/external/lgpl3/gmp/lib/libgmp/arch/i386: config.m4
src/external/lgpl3/gmp/lib/libgmp/arch/m68k: config.m4
src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb: config.m4
src/external/lgpl3/gmp/lib/libgmp/arch/mips64el: config.m4
src/external/lgpl3/gmp/lib/libgmp/arch/mipseb: config.m4
src/external/lgpl3/gmp/lib/libgmp/arch/mipsel: config.m4
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc: config.m4
src/external/lgpl3/gmp/lib/libgmp/arch/sh3eb: config.m4
src/external/lgpl3/gmp/lib/libgmp/arch/sh3el: config.m4
src/external/lgpl3/gmp/lib/libgmp/arch/sparc: config.m4
src/external/lgpl3/gmp/lib/libgmp/arch/sparc64: config.m4

Log Message:
remove CONFIG_TOP_SRCDIR definitions provided by our Makefile.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/alpha/config.m4
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/hppa/config.m4
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/i386/config.m4
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/m68k/config.m4
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/config.m4
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/mips64el/config.m4
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/mipseb/config.m4
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/mipsel/config.m4
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc/config.m4
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/sh3eb/config.m4
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/sh3el/config.m4
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/sparc/config.m4
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/config.m4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/lib/libgmp/arch/alpha/config.m4
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/alpha/config.m4:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/alpha/config.m4:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/alpha/config.m4:1.1	Thu Jul  7 02:06:32 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/alpha/config.m4	Thu Jul  7 06:30:02 2011
@@ -1,7 +1,6 @@
 dnl config.m4.  Generated automatically by configure.
 changequote(,)
 ifdef(__CONFIG_M4_INCLUDED__,,
-define(CONFIG_TOP_SRCDIR,`/usr/src3/external/lgpl3/gmp/dist')
 define(WANT_ASSERT,0)
 define(WANT_PROFILING,`no')
 define(M4WRAP_SPURIOUS,no)

Index: src/external/lgpl3/gmp/lib/libgmp/arch/hppa/config.m4
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/hppa/config.m4:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/hppa/config.m4:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/hppa/config.m4:1.1	Thu Jul  7 02:06:33 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/hppa/config.m4	Thu Jul  7 06:30:02 2011
@@ -1,7 +1,6 @@
 dnl config.m4.  Generated automatically by configure.
 changequote(,)
 ifdef(__CONFIG_M4_INCLUDED__,,
-define(CONFIG_TOP_SRCDIR,`/usr/src3/external/lgpl3/gmp/dist')
 define(WANT_ASSERT,0)
 define(WANT_PROFILING,`no')
 define(M4WRAP_SPURIOUS,no)

Index: src/external/lgpl3/gmp/lib/libgmp/arch/i386/config.m4
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/i386/config.m4:1.2 src/external/lgpl3/gmp/lib/libgmp/arch/i386/config.m4:1.3
--- src/external/lgpl3/gmp/lib/libgmp/arch/i386/config.m4:1.2	Fri Jul  1 01:49:42 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/i386/config.m4	Thu Jul  7 06:30:02 2011
@@ -1,7 +1,6 @@
 dnl config.m4.  Generated automatically by configure.
 changequote(,)
 ifdef(__CONFIG_M4_INCLUDED__,,
-dnl define(CONFIG_TOP_SRCDIR,`/usr/src/external/lgpl3/gmp/dist')
 define(WANT_ASSERT,0)
 define(WANT_PROFILING,`no')
 define(M4WRAP_SPURIOUS,no)

Index: src/external/lgpl3/gmp/lib/libgmp/arch/m68k/config.m4
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/m68k/config.m4:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/m68k/config.m4:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/m68k/config.m4:1.1	Sat Jul  2 13:43:05 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/m68k/config.m4	Thu Jul  7 06:30:02 2011
@@ -1,7 +1,6 @@
 dnl config.m4.  Generated automatically by configure.
 changequote(,)
 ifdef(__CONFIG_M4_INCLUDED__,,
-define(CONFIG_TOP_SRCDIR,`/usr/src3/external/lgpl3/gmp/dist')
 define(WANT_ASSERT,0)
 define(WANT_PROFILING,`no')
 define(M4WRAP_SPURIOUS,no)

Index: src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/config.m4
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/config.m4:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/config.m4:1.2
--- 

CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/powerpc

2011-07-07 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Jul  7 08:02:52 UTC 2011

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc: Makefile.inc

Log Message:
for now, compile all the powerpc asm files -DPIC.  fix this properly by
either compiling the dynamic version in a other dir separately, or call
gcc on the fly with the right arguments without generating .S file at all.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc/Makefile.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/lib/libgmp/arch/powerpc/Makefile.inc
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/powerpc/Makefile.inc:1.2 src/external/lgpl3/gmp/lib/libgmp/arch/powerpc/Makefile.inc:1.3
--- src/external/lgpl3/gmp/lib/libgmp/arch/powerpc/Makefile.inc:1.2	Sun Jul  3 06:43:16 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/powerpc/Makefile.inc	Thu Jul  7 08:02:52 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.2 2011/07/03 06:43:16 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.3 2011/07/07 08:02:52 mrg Exp $
 
 SRCS+= \
 	random.c \
@@ -175,11 +175,11 @@
 
 BUILD_S_INCS=	-I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn
 
-M4FLAGS.mode1s.o= -DPIC
+M4FLAGS= -DPIC
 .for _build _src in ${ASM_SRCS_LIST}
 ${_build:R}.s: Makefile dummy ${.OBJDIR}/config.m4
 	${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} ${BUILD_S_INCS} \
-		${M4FLAGS.${.TARGET:R}} \
+		${M4FLAGS} ${M4FLAGS.${.TARGET:R}} \
 		-DOPERATION_${.TARGET:R} ${DIST}/${_src}  ${.TARGET}
 
 SRCS+=		${_build:R}.s



CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/i386

2011-07-07 Thread Matthias Drochner
Module Name:src
Committed By:   drochner
Date:   Thu Jul  7 17:55:26 UTC 2011

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/i386: Makefile.inc

Log Message:
ignore error of rmdir, to let make clean succeed in an already
clean directory


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 \
src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc:1.4 src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc:1.5
--- src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc:1.4	Wed Jul  6 19:52:06 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc	Thu Jul  7 17:55:26 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.4 2011/07/06 19:52:06 drochner Exp $
+#	$NetBSD: Makefile.inc,v 1.5 2011/07/07 17:55:26 drochner Exp $
 
 SRCS+= \
 	random.c \
@@ -185,7 +185,7 @@
 CLEANFILES+=	config.m4
 clean: cleandummy
 cleandummy: .PHONY
-	rmdir dummy
+	-rmdir dummy
 
 .for _build _src in ${ASM_SRCS_LIST}
 ${_build:R}.s: Makefile dummy ${.OBJDIR}/config.m4



CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 06:43:17 UTC 2011

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/arm: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/armeb: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/i386: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/m68k: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/sparc: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/sparc64: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/vax: Makefile.inc
src/external/lgpl3/gmp/lib/libgmp/arch/x86_64: Makefile.inc

Log Message:
clean up the created .s files.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/arm/Makefile.inc
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/armeb/Makefile.inc
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/m68k/Makefile.inc
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc/Makefile.inc
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/sparc/Makefile.inc
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/Makefile.inc
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/vax/Makefile.inc
cvs rdiff -u -r1.2 -r1.3 \
src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/Makefile.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/lib/libgmp/arch/arm/Makefile.inc
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/arm/Makefile.inc:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/arm/Makefile.inc:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/arm/Makefile.inc:1.1	Fri Jul  1 01:51:02 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/arm/Makefile.inc	Sun Jul  3 06:43:16 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.1 2011/07/01 01:51:02 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.2 2011/07/03 06:43:16 mrg Exp $
 
 SRCS+= \
 	random.c \
@@ -174,7 +174,8 @@
 ${_build:R}.s: Makefile dummy ${.OBJDIR}/config.m4
 	${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} -I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn -DOPERATION_${.TARGET:R} ${DIST}/${_src}  ${.TARGET}
 
-SRCS+=	${_build:R}.s
+SRCS+=		${_build:R}.s
+CLEANFILES+=	${_build:R}.s
 
 .endfor
 

Index: src/external/lgpl3/gmp/lib/libgmp/arch/armeb/Makefile.inc
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/armeb/Makefile.inc:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/armeb/Makefile.inc:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/armeb/Makefile.inc:1.1	Fri Jul  1 01:51:02 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/armeb/Makefile.inc	Sun Jul  3 06:43:16 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.1 2011/07/01 01:51:02 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.2 2011/07/03 06:43:16 mrg Exp $
 
 SRCS+= \
 	random.c \
@@ -174,7 +174,8 @@
 ${_build:R}.s: Makefile dummy ${.OBJDIR}/config.m4
 	${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} -I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn -DOPERATION_${.TARGET:R} ${DIST}/${_src}  ${.TARGET}
 
-SRCS+=	${_build:R}.s
+SRCS+=		${_build:R}.s
+CLEANFILES+=	${_build:R}.s
 
 .endfor
 

Index: src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc:1.2 src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc:1.3
--- src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc:1.2	Fri Jul  1 01:49:18 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc	Sun Jul  3 06:43:16 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.2 2011/07/01 01:49:18 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.3 2011/07/03 06:43:16 mrg Exp $
 
 SRCS+= \
 	random.c \
@@ -186,7 +186,8 @@
 ${_build:R}.s: Makefile dummy ${.OBJDIR}/config.m4
 	${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} -I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn -DOPERATION_${.TARGET:R} ${DIST}/${_src}  ${.TARGET}
 
-SRCS+=	${_build:R}.s
+SRCS+=		${_build:R}.s
+CLEANFILES+=	${_build:R}.s
 
 .endfor
 

Index: src/external/lgpl3/gmp/lib/libgmp/arch/m68k/Makefile.inc
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/m68k/Makefile.inc:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/m68k/Makefile.inc:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/m68k/Makefile.inc:1.1	Sat Jul  2 13:43:05 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/m68k/Makefile.inc	Sun Jul  3 06:43:16 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.1 2011/07/02 13:43:05 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.2 2011/07/03 06:43:16 mrg Exp $
 
 SRCS+= \
 	random.c \
@@ -172,7 +172,8 @@
 ${_build:R}.s: Makefile dummy ${.OBJDIR}/config.m4
 	${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} -I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn -DOPERATION_${.TARGET:R} ${DIST}/${_src}  

CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/powerpc

2011-07-03 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 07:26:21 UTC 2011

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/powerpc: gmp.h

Log Message:
re-generate (add mpn_udiv_w_sdiv prototype.)


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/lgpl3/gmp/lib/libgmp/arch/powerpc/gmp.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/lib/libgmp/arch/powerpc/gmp.h
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/powerpc/gmp.h:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/powerpc/gmp.h:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/powerpc/gmp.h:1.1	Fri Jul  1 01:51:03 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/powerpc/gmp.h	Sun Jul  3 07:26:21 2011
@@ -1661,6 +1661,10 @@
 #define mpn_zero __MPN(zero)
 __GMP_DECLSPEC void mpn_zero __GMP_PROTO ((mp_ptr, mp_size_t));
 
+#define mpn_udiv_w_sdiv __MPN(udiv_w_sdiv)
+__GMP_DECLSPEC mp_limb_t mpn__udiv_w_sdiv __GMP_PROTO ((mp_limb_t *, mp_limb_t, mp_limb_t, mp_limb_t));
+
+
 / mpz inlines /
 
 /* The following are provided as inlines where possible, but always exist as



CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/vax

2011-07-02 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Jul  2 14:04:14 UTC 2011

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/vax: Makefile.inc config.m4

Log Message:
make this mostly appear to work by using the C versions for now.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/vax/Makefile.inc \
src/external/lgpl3/gmp/lib/libgmp/arch/vax/config.m4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/lib/libgmp/arch/vax/Makefile.inc
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/vax/Makefile.inc:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/vax/Makefile.inc:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/vax/Makefile.inc:1.1	Sat Jul  2 13:36:57 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/vax/Makefile.inc	Sat Jul  2 14:04:14 2011
@@ -1,145 +1,168 @@
-#	$NetBSD: Makefile.inc,v 1.1 2011/07/02 13:36:57 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.2 2011/07/02 14:04:14 mrg Exp $
+
+SRCS+= \
+	random.c \
+	divrem_2.c \
+	toom_interpolate_7pts.c \
+	sbpi1_divappr_q.c \
+	random2.c \
+	mu_bdiv_q.c \
+	toom32_mul.c \
+	toom44_mul.c \
+	toom8h_mul.c \
+	toom2_sqr.c \
+	zero.c \
+	mod_1_4.c \
+	gcdext.c \
+	binvert.c \
+	mu_div_q.c \
+	invertappr.c \
+	dump.c \
+	mu_divappr_q.c \
+	dcpi1_div_qr.c \
+	redc_1_sec.c \
+	toom6_sqr.c \
+	divrem_1.c \
+	mod_1.c \
+	divexact.c \
+	powlo.c \
+	mul.c \
+	set_str.c \
+	toom42_mul.c \
+	toom_interpolate_6pts.c \
+	dcpi1_divappr_q.c \
+	copyd.c \
+	toom_eval_dgr3_pm2.c \
+	mod_1_3.c \
+	com.c \
+	copyi.c \
+	toom_couple_handling.c \
+	add.c \
+	toom_interpolate_12pts.c \
+	perfsqr.c \
+	toom53_mul.c \
+	toom_eval_pm2exp.c \
+	mu_div_qr.c \
+	toom_interpolate_16pts.c \
+	mod_34lsub1.c \
+	bdiv_q.c \
+	toom22_mul.c \
+	toom4_sqr.c \
+	div_q.c \
+	jacbase.c \
+	gcdext_subdiv_step.c \
+	mullo_n.c \
+	toom33_mul.c \
+	toom_eval_dgr3_pm1.c \
+	mod_1_2.c \
+	sub_1.c \
+	trialdiv.c \
+	add_1.c \
+	sqr_basecase.c \
+	toom_interpolate_5pts.c \
+	sbpi1_bdiv_q.c \
+	pre_mod_1.c \
+	hgcd.c \
+	bdiv_dbm1c.c \
+	sqrtrem.c \
+	bdiv_q_1.c \
+	gcdext_1.c \
+	toom63_mul.c \
+	mul_basecase.c \
+	toom8_sqr.c \
+	neg.c \
+	udiv_w_sdiv.c \
+	gcdext_lehmer.c \
+	divis.c \
+	dcpi1_div_q.c \
+	subcnd_n.c \
+	toom_eval_pm2.c \
+	hgcd2.c \
+	toom62_mul.c \
+	sbpi1_bdiv_qr.c \
+	scan1.c \
+	pre_divrem_1.c \
+	perfpow.c \
+	get_str.c \
+	mullo_basecase.c \
+	mulmod_bnm1.c \
+	tdiv_qr.c \
+	toom43_mul.c \
+	mod_1_1.c \
+	matrix22_mul.c \
+	powm_sec.c \
+	divrem.c \
+	gcd_1.c \
+	dcpi1_bdiv_qr.c \
+	mul_n.c \
+	redc_2.c \
+	toom6h_mul.c \
+	mul_fft.c \
+	sqrmod_bnm1.c \
+	powm.c \
+	rootrem.c \
+	mode1o.c \
+	toom_interpolate_8pts.c \
+	remove.c \
+	lshiftc.c \
+	dive_1.c \
+	cmp.c \
+	toom_eval_pm1.c \
+	scan0.c \
+	gcd_subdiv_step.c \
+	sbpi1_div_qr.c \
+	invert.c \
+	sub.c \
+	toom_eval_pm2rexp.c \
+	dcpi1_bdiv_q.c \
+	redc_1.c \
+	sqr.c \
+	nussbaumer_mul.c \
+	mu_bdiv_qr.c \
+	pow_1.c \
+	gcd_lehmer.c \
+	get_d.c \
+	toom52_mul.c \
+	sbpi1_div_q.c \
+	diveby3.c \
+	fib2_ui.c \
+	bdiv_qr.c \
+	toom3_sqr.c \
+	gcd.c \
+	redc_n.c \
 
 C_SRCS_LIST= \
-	toom6h_mul.c		mpn/generic/toom6h_mul.c \
-	toom3_sqr.c		mpn/generic/toom3_sqr.c \
-	copyi.c			mpn/generic/copyi.c \
-	sqrtrem.c		mpn/generic/sqrtrem.c \
-	iorn_n.c		mpn/generic/logops_n.c \
-	bdiv_qr.c		mpn/generic/bdiv_qr.c \
-	matrix22_mul.c		mpn/generic/matrix22_mul.c \
-	powlo.c			mpn/generic/powlo.c \
-	tdiv_qr.c		mpn/generic/tdiv_qr.c \
-	gcd_1.c			mpn/generic/gcd_1.c \
-	sqrmod_bnm1.c		mpn/generic/sqrmod_bnm1.c \
-	zero.c			mpn/generic/zero.c \
-	cmp.c			mpn/generic/cmp.c \
-	toom_couple_handling.c	mpn/generic/toom_couple_handling.c \
-	toom32_mul.c		mpn/generic/toom32_mul.c \
-	dump.c			mpn/generic/dump.c \
-	toom62_mul.c		mpn/generic/toom62_mul.c \
-	dive_1.c		mpn/generic/dive_1.c \
-	toom44_mul.c		mpn/generic/toom44_mul.c \
-	nand_n.c		mpn/generic/logops_n.c \
-	hgcd.c			mpn/generic/hgcd.c \
-	ior_n.c			mpn/generic/logops_n.c \
-	get_d.c			mpn/generic/get_d.c \
-	bdiv_dbm1c.c		mpn/generic/bdiv_dbm1c.c \
-	nussbaumer_mul.c	mpn/generic/nussbaumer_mul.c \
-	pre_divrem_1.c		mpn/generic/pre_divrem_1.c \
-	andn_n.c		mpn/generic/logops_n.c \
-	dcpi1_div_q.c		mpn/generic/dcpi1_div_q.c \
-	sbpi1_div_qr.c		mpn/generic/sbpi1_div_qr.c \
-	dcpi1_bdiv_qr.c		mpn/generic/dcpi1_bdiv_qr.c \
-	bdiv_q_1.c		mpn/generic/bdiv_q_1.c \
-	gcdext_1.c		mpn/generic/gcdext_1.c \
-	copyd.c			mpn/generic/copyd.c \
-	toom42_mul.c		mpn/generic/toom42_mul.c \
-	xnor_n.c		mpn/generic/logops_n.c \
-	dcpi1_div_qr.c		mpn/generic/dcpi1_div_qr.c \
-	sqr_basecase.c		mpn/generic/sqr_basecase.c \
-	toom_interpolate_7pts.c	mpn/generic/toom_interpolate_7pts.c \
-	toom63_mul.c		mpn/generic/toom63_mul.c \
-	gcdext.c		mpn/generic/gcdext.c \
-	mu_divappr_q.c		mpn/generic/mu_divappr_q.c \
-	mul_n.c			mpn/generic/mul_n.c \
-	gcd_subdiv_step.c	mpn/generic/gcd_subdiv_step.c \
-	udiv_w_sdiv.c		mpn/generic/udiv_w_sdiv.c 

CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch

2011-06-30 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Jul  1 01:48:02 UTC 2011

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/sparc64: gmp-mparam.h gmp.h
src/external/lgpl3/gmp/lib/libgmp/arch/x86_64: gmp-mparam.h gmp.h

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


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/gmp-mparam.h \
src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/gmp.h
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp-mparam.h \
src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/gmp-mparam.h
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/gmp-mparam.h:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/gmp-mparam.h:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/gmp-mparam.h:1.1	Wed Jun 29 02:56:24 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/gmp-mparam.h	Fri Jul  1 01:48:02 2011
@@ -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 */
 
Index: src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/gmp.h
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/gmp.h:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/gmp.h:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/gmp.h:1.1	Wed Jun 29 02:56:24 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/gmp.h	Fri Jul  1 01:48:02 2011
@@ -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)

Index: src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp-mparam.h
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp-mparam.h:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp-mparam.h:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp-mparam.h:1.1	Thu Jun 23 12:09:30 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp-mparam.h	Fri Jul  1 01:48:02 2011
@@ -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 */
Index: src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp.h
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp.h:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp.h:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp.h:1.1	Tue Jun 21 04:23:56 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp.h	Fri Jul  1 01:48:02 2011
@@ -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)



CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch/i386

2011-06-30 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Jul  1 01:49:18 UTC 2011

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/i386: Makefile.inc config.h

Log Message:
use C versions of various sources for now.  there's an m4 problem that
fails to properly deal with defframe() macro being defined.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc \
src/external/lgpl3/gmp/lib/libgmp/arch/i386/config.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc:1.1	Wed Jun 29 08:06:47 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc	Fri Jul  1 01:49:18 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.1 2011/06/29 08:06:47 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.2 2011/07/01 01:49:18 mrg Exp $
 
 SRCS+= \
 	random.c \
@@ -134,25 +134,34 @@
 	andn_n.c		mpn/generic/logops_n.c \
 
 ASM_SRCS_LIST= \
-	add_n.asm		mpn/x86/aors_n.asm \
-	sqr_basecase.asm		mpn/x86/sqr_basecase.asm \
 	submul_1.asm		mpn/x86/aorsmul_1.asm \
-	umul.asm		mpn/x86/umul.asm \
-	mul_basecase.asm		mpn/x86/mul_basecase.asm \
-	lshift.asm		mpn/x86/lshift.asm \
-	mul_1.asm		mpn/x86/mul_1.asm \
-	divrem_1.asm		mpn/x86/divrem_1.asm \
-	copyd.asm		mpn/x86/copyd.asm \
 	bdiv_dbm1c.asm		mpn/x86/bdiv_dbm1c.asm \
-	udiv.asm		mpn/x86/udiv.asm \
-	dive_1.asm		mpn/x86/dive_1.asm \
-	copyi.asm		mpn/x86/copyi.asm \
-	rshift.asm		mpn/x86/rshift.asm \
-	mod_34lsub1.asm		mpn/x86/mod_34lsub1.asm \
-	invert_limb.asm		mpn/x86/invert_limb.asm \
 	addmul_1.asm		mpn/x86/aorsmul_1.asm \
 	divrem_2.asm		mpn/x86/divrem_2.asm \
-	sub_n.asm		mpn/x86/aors_n.asm \
+
+# XXX using C versions
+#	add_n.asm		mpn/x86/aors_n.asm \
+#	bdiv_q_1.asm		mpn/x86_64/bdiv_q_1.asm \
+#	copyd.asm		mpn/x86/copyd.asm \
+#	copyi.asm		mpn/x86/copyi.asm \
+#	dive_1.asm		mpn/x86/dive_1.asm \
+#	divrem_1.asm		mpn/x86/divrem_1.asm \
+#	invert_limb.asm		mpn/x86/invert_limb.asm \
+#	lshift.asm		mpn/x86/lshift.asm \
+#	rshift.asm		mpn/x86/rshift.asm \
+#	mod_34lsub1.asm		mpn/x86/mod_34lsub1.asm \
+#	umul.asm		mpn/x86/umul.asm \
+#	mul_1.asm		mpn/x86/mul_1.asm \
+#	sqr_basecase.asm	mpn/x86/sqr_basecase.asm \
+#	mul_basecase.asm	mpn/x86/mul_basecase.asm \
+#	sub_n.asm		mpn/x86/aors_n.asm \
+
+#	udiv.asm		mpn/x86/udiv.asm \
+
+SRCS+=	add_n.c bdiv_q_1.c copyd.c copyi.c dive_1.c lshift.c rshift.c mod_34lsub1.c
+SRCS+=	mul_1.c sqr_basecase.c mul_basecase.c sub_n.c divrem_1.c
+# XXX? put in C_SRCS_LIST?
+# divrem.c
 
 gen-trialdivtab: gen-trialdivtab.c
 	${HOST_CC} -o ${.OBJDIR}/gen-trialdivtab ${.ALLSRC} -lm
Index: src/external/lgpl3/gmp/lib/libgmp/arch/i386/config.h
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/i386/config.h:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/i386/config.h:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/i386/config.h:1.1	Wed Jun 29 08:06:47 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/i386/config.h	Fri Jul  1 01:49:18 2011
@@ -215,7 +215,8 @@
 implementation of the corresponding routine exists.  */
 #define HAVE_NATIVE_mpn_add_n 1
 /* #undef HAVE_NATIVE_mpn_add_n_sub_n */
-#define HAVE_NATIVE_mpn_add_nc 1
+/* XXXMRG */
+/* #define HAVE_NATIVE_mpn_add_nc 1 */
 /* #undef HAVE_NATIVE_mpn_addaddmul_1msb0 */
 /* #undef HAVE_NATIVE_mpn_addlsh1_n */
 /* #undef HAVE_NATIVE_mpn_addlsh2_n */
@@ -243,7 +244,8 @@
 #define HAVE_NATIVE_mpn_divrem_2 1
 /* #undef HAVE_NATIVE_mpn_gcd_1 */
 /* #undef HAVE_NATIVE_mpn_hamdist */
-#define HAVE_NATIVE_mpn_invert_limb 1
+/* XXXMRG */
+/* #define HAVE_NATIVE_mpn_invert_limb 1 */
 /* #undef HAVE_NATIVE_mpn_ior_n */
 /* #undef HAVE_NATIVE_mpn_iorn_n */
 #define HAVE_NATIVE_mpn_lshift 1
@@ -281,7 +283,7 @@
 #define HAVE_NATIVE_mpn_sqr_basecase 1
 /* #undef HAVE_NATIVE_mpn_sqr_diagonal */
 #define HAVE_NATIVE_mpn_sub_n 1
-#define HAVE_NATIVE_mpn_sub_nc 1
+/* #define HAVE_NATIVE_mpn_sub_nc 1 */
 /* #undef HAVE_NATIVE_mpn_sublsh1_n */
 /* #undef HAVE_NATIVE_mpn_sublsh2_n */
 /* #undef HAVE_NATIVE_mpn_sublsh_n */



CVS commit: src/external/lgpl3/gmp/lib/libgmp/arch

2011-06-30 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Jul  1 01:49:43 UTC 2011

Modified Files:
src/external/lgpl3/gmp/lib/libgmp/arch/i386: config.m4
src/external/lgpl3/gmp/lib/libgmp/arch/sparc64: config.m4

Log Message:
remove hard-coded CONFIG_TOP_SRCDIR macro definition


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/i386/config.m4
cvs rdiff -u -r1.1 -r1.2 \
src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/config.m4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/lib/libgmp/arch/i386/config.m4
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/i386/config.m4:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/i386/config.m4:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/i386/config.m4:1.1	Wed Jun 29 08:06:47 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/i386/config.m4	Fri Jul  1 01:49:42 2011
@@ -1,7 +1,7 @@
 dnl config.m4.  Generated automatically by configure.
 changequote(,)
 ifdef(__CONFIG_M4_INCLUDED__,,
-define(CONFIG_TOP_SRCDIR,`/usr/src/external/lgpl3/gmp/dist')
+dnl define(CONFIG_TOP_SRCDIR,`/usr/src/external/lgpl3/gmp/dist')
 define(WANT_ASSERT,0)
 define(WANT_PROFILING,`no')
 define(M4WRAP_SPURIOUS,no)

Index: src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/config.m4
diff -u src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/config.m4:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/config.m4:1.2
--- src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/config.m4:1.1	Wed Jun 29 02:56:24 2011
+++ src/external/lgpl3/gmp/lib/libgmp/arch/sparc64/config.m4	Fri Jul  1 01:49:43 2011
@@ -1,7 +1,7 @@
 dnl config.m4.  Generated automatically by configure.
 changequote(,)
 ifdef(__CONFIG_M4_INCLUDED__,,
-define(CONFIG_TOP_SRCDIR,`/usr/src/external/lgpl3/gmp/dist')
+dnl define(CONFIG_TOP_SRCDIR,`/usr/src/external/lgpl3/gmp/dist')
 define(WANT_ASSERT,0)
 define(WANT_PROFILING,`no')
 define(M4WRAP_SPURIOUS,no)