Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/lgpl3/gmp/lib/libgmp updates for GMP 5.1.3, and new...
details: https://anonhg.NetBSD.org/src/rev/11ef4db39ff5
branches: trunk
changeset: 791723:11ef4db39ff5
user: mrg <mrg%NetBSD.org@localhost>
date: Fri Nov 29 08:03:41 2013 +0000
description:
updates for GMP 5.1.3, and new build files for most platforms.
diffstat:
external/lgpl3/gmp/lib/libgmp/Makefile | 27 +-
external/lgpl3/gmp/lib/libgmp/arch/alpha/Makefile.inc | 48 +-
external/lgpl3/gmp/lib/libgmp/arch/alpha/config.h | 73 +-
external/lgpl3/gmp/lib/libgmp/arch/alpha/config.m4 | 2 +-
external/lgpl3/gmp/lib/libgmp/arch/alpha/gmp.h | 789 ++++++-------
external/lgpl3/gmp/lib/libgmp/arch/alpha/mp.h | 164 ---
external/lgpl3/gmp/lib/libgmp/arch/arm/Makefile.inc | 90 +-
external/lgpl3/gmp/lib/libgmp/arch/arm/config.h | 113 +-
external/lgpl3/gmp/lib/libgmp/arch/arm/config.m4 | 1 +
external/lgpl3/gmp/lib/libgmp/arch/arm/gmp-mparam.h | 150 +-
external/lgpl3/gmp/lib/libgmp/arch/arm/gmp.h | 785 ++++++-------
external/lgpl3/gmp/lib/libgmp/arch/arm/mp.h | 164 ---
external/lgpl3/gmp/lib/libgmp/arch/armeb/Makefile.inc | 90 +-
external/lgpl3/gmp/lib/libgmp/arch/coldfire/Makefile.inc | 64 +-
external/lgpl3/gmp/lib/libgmp/arch/coldfire/config.h | 69 +-
external/lgpl3/gmp/lib/libgmp/arch/coldfire/gmp.h | 788 ++++++-------
external/lgpl3/gmp/lib/libgmp/arch/coldfire/mp.h | 164 ---
external/lgpl3/gmp/lib/libgmp/arch/earm/Makefile.inc | 90 +-
external/lgpl3/gmp/lib/libgmp/arch/earmeb/Makefile.inc | 90 +-
external/lgpl3/gmp/lib/libgmp/arch/earmhf/Makefile.inc | 90 +-
external/lgpl3/gmp/lib/libgmp/arch/earmhf/config.h | 115 +-
external/lgpl3/gmp/lib/libgmp/arch/earmhf/config.m4 | 3 +-
external/lgpl3/gmp/lib/libgmp/arch/earmhf/gmp-mparam.h | 150 +-
external/lgpl3/gmp/lib/libgmp/arch/earmhf/gmp.h | 791 ++++++-------
external/lgpl3/gmp/lib/libgmp/arch/earmhf/mp.h | 164 ---
external/lgpl3/gmp/lib/libgmp/arch/earmhfeb/Makefile.inc | 90 +-
external/lgpl3/gmp/lib/libgmp/arch/earmhfeb/config.h | 115 +-
external/lgpl3/gmp/lib/libgmp/arch/earmhfeb/config.m4 | 2 +
external/lgpl3/gmp/lib/libgmp/arch/earmhfeb/gmp-mparam.h | 150 +-
external/lgpl3/gmp/lib/libgmp/arch/earmhfeb/gmp.h | 788 ++++++-------
external/lgpl3/gmp/lib/libgmp/arch/earmhfeb/mp.h | 164 ---
external/lgpl3/gmp/lib/libgmp/arch/hppa/Makefile.inc | 48 +-
external/lgpl3/gmp/lib/libgmp/arch/hppa/config.h | 69 +-
external/lgpl3/gmp/lib/libgmp/arch/hppa/gmp.h | 789 ++++++-------
external/lgpl3/gmp/lib/libgmp/arch/hppa/mp.h | 164 ---
external/lgpl3/gmp/lib/libgmp/arch/i386/Makefile.inc | 80 +-
external/lgpl3/gmp/lib/libgmp/arch/i386/config.h | 87 +-
external/lgpl3/gmp/lib/libgmp/arch/i386/gmp.h | 789 ++++++-------
external/lgpl3/gmp/lib/libgmp/arch/i386/mp.h | 164 ---
external/lgpl3/gmp/lib/libgmp/arch/ia64/config.m4 | 1 -
external/lgpl3/gmp/lib/libgmp/arch/m68000/Makefile.inc | 50 +-
external/lgpl3/gmp/lib/libgmp/arch/m68000/config.h | 69 +-
external/lgpl3/gmp/lib/libgmp/arch/m68000/config.m4 | 2 +-
external/lgpl3/gmp/lib/libgmp/arch/m68000/gmp.h | 791 ++++++-------
external/lgpl3/gmp/lib/libgmp/arch/m68000/mp.h | 164 ---
external/lgpl3/gmp/lib/libgmp/arch/m68k/Makefile.inc | 50 +-
external/lgpl3/gmp/lib/libgmp/arch/m68k/config.h | 69 +-
external/lgpl3/gmp/lib/libgmp/arch/m68k/gmp.h | 791 ++++++-------
external/lgpl3/gmp/lib/libgmp/arch/m68k/mp.h | 164 ---
external/lgpl3/gmp/lib/libgmp/arch/mips64eb/Makefile.inc | 56 +-
external/lgpl3/gmp/lib/libgmp/arch/mips64eb/config.h | 75 +-
external/lgpl3/gmp/lib/libgmp/arch/mips64eb/config.m4 | 1 +
external/lgpl3/gmp/lib/libgmp/arch/mips64eb/gmp-mparam.h | 5 -
external/lgpl3/gmp/lib/libgmp/arch/mips64eb/gmp.h | 797 ++++++--------
external/lgpl3/gmp/lib/libgmp/arch/mips64eb/mp.h | 164 ---
external/lgpl3/gmp/lib/libgmp/arch/mipseb/Makefile.inc | 54 +-
external/lgpl3/gmp/lib/libgmp/arch/mipseb/config.h | 69 +-
external/lgpl3/gmp/lib/libgmp/arch/mipseb/gmp.h | 789 ++++++-------
external/lgpl3/gmp/lib/libgmp/arch/mipseb/mp.h | 164 ---
external/lgpl3/gmp/lib/libgmp/arch/mipsel/Makefile.inc | 48 +-
external/lgpl3/gmp/lib/libgmp/arch/mipsel/config.h | 75 +-
external/lgpl3/gmp/lib/libgmp/arch/mipsel/gmp.h | 789 ++++++-------
external/lgpl3/gmp/lib/libgmp/arch/mipsel/mp.h | 164 ---
external/lgpl3/gmp/lib/libgmp/arch/powerpc/Makefile.inc | 51 +-
external/lgpl3/gmp/lib/libgmp/arch/powerpc/config.h | 75 +-
external/lgpl3/gmp/lib/libgmp/arch/powerpc/config.m4 | 5 +-
external/lgpl3/gmp/lib/libgmp/arch/powerpc/gmp-mparam.h | 70 +-
external/lgpl3/gmp/lib/libgmp/arch/powerpc/gmp.h | 789 ++++++-------
external/lgpl3/gmp/lib/libgmp/arch/powerpc/mp.h | 164 ---
external/lgpl3/gmp/lib/libgmp/arch/sh3eb/Makefile.inc | 76 +-
external/lgpl3/gmp/lib/libgmp/arch/sh3eb/config.h | 75 +-
external/lgpl3/gmp/lib/libgmp/arch/sh3eb/config.m4 | 15 +-
external/lgpl3/gmp/lib/libgmp/arch/sh3eb/gmp.h | 789 ++++++-------
external/lgpl3/gmp/lib/libgmp/arch/sh3eb/mp.h | 164 ---
external/lgpl3/gmp/lib/libgmp/arch/sh3el/Makefile.inc | 76 +-
external/lgpl3/gmp/lib/libgmp/arch/sh3el/config.h | 69 +-
external/lgpl3/gmp/lib/libgmp/arch/sh3el/config.m4 | 2 +-
external/lgpl3/gmp/lib/libgmp/arch/sh3el/gmp.h | 791 ++++++-------
external/lgpl3/gmp/lib/libgmp/arch/sh3el/mp.h | 164 ---
external/lgpl3/gmp/lib/libgmp/arch/sparc/Makefile.inc | 48 +-
external/lgpl3/gmp/lib/libgmp/arch/sparc/config.h | 69 +-
external/lgpl3/gmp/lib/libgmp/arch/sparc/gmp.h | 783 ++++++-------
external/lgpl3/gmp/lib/libgmp/arch/sparc/mp.h | 164 ---
external/lgpl3/gmp/lib/libgmp/arch/sparc64/Makefile.inc | 86 +-
external/lgpl3/gmp/lib/libgmp/arch/sparc64/config.h | 87 +-
external/lgpl3/gmp/lib/libgmp/arch/sparc64/gmp-mparam.h | 12 +-
external/lgpl3/gmp/lib/libgmp/arch/sparc64/gmp.h | 793 ++++++-------
external/lgpl3/gmp/lib/libgmp/arch/sparc64/mp.h | 164 ---
external/lgpl3/gmp/lib/libgmp/arch/vax/Makefile.inc | 102 +-
external/lgpl3/gmp/lib/libgmp/arch/vax/config.h | 83 +-
external/lgpl3/gmp/lib/libgmp/arch/vax/config.m4 | 14 +
external/lgpl3/gmp/lib/libgmp/arch/vax/gmp.h | 789 ++++++-------
external/lgpl3/gmp/lib/libgmp/arch/vax/mp.h | 164 ---
external/lgpl3/gmp/lib/libgmp/arch/x86_64/Makefile.inc | 72 +-
external/lgpl3/gmp/lib/libgmp/arch/x86_64/config.h | 81 +-
external/lgpl3/gmp/lib/libgmp/arch/x86_64/config.m4 | 1 +
external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp-mparam.h | 118 +-
external/lgpl3/gmp/lib/libgmp/arch/x86_64/gmp.h | 795 ++++++-------
external/lgpl3/gmp/lib/libgmp/arch/x86_64/mp.h | 164 ---
99 files changed, 9686 insertions(+), 12252 deletions(-)
diffs (truncated from 44422 to 300 lines):
diff -r 27789d1cf063 -r 11ef4db39ff5 external/lgpl3/gmp/lib/libgmp/Makefile
--- a/external/lgpl3/gmp/lib/libgmp/Makefile Fri Nov 29 08:02:28 2013 +0000
+++ b/external/lgpl3/gmp/lib/libgmp/Makefile Fri Nov 29 08:03:41 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2013/08/19 22:25:32 matt Exp $
+# $NetBSD: Makefile,v 1.18 2013/11/29 08:03:41 mrg Exp $
.include <bsd.init.mk>
@@ -122,7 +122,7 @@
SRCS+= \
assert.c compat.c errno.c extract-dbl.c invalid.c memory.c \
mp_bpl.c mp_clz_tab.c mp_dv_tab.c mp_minv_tab.c mp_get_fns.c \
- mp_set_fns.c rand.c randclr.c randdef.c randiset.c randlc2s.c \
+ mp_set_fns.c randclr.c randdef.c randiset.c randlc2s.c \
randlc2x.c randmt.c randmts.c rands.c randsd.c randsdui.c \
randbui.c randmui.c version.c nextprime.c
@@ -151,11 +151,13 @@
WITHOUT_MAN= yes
-DPSRCS= fac_ui.h fib_table.h fib_table.c mp_bases.h mp_bases.c perfsqr.h
+DPSRCS= fac_table.h fib_table.h fib_table.c jacobitab.h mp_bases.h mp_bases.c perfsqr.h
-fac_ui.h: gen-fac_ui.c
- ${HOST_CC} -o ${.OBJDIR}/gen-fac_ui ${.ALLSRC}
- ${.OBJDIR}/gen-fac_ui ${GMP_LIMB_BITS} 0 > ${.OBJDIR}/fac_ui.h
+gen-fac: gen-fac.c
+ ${HOST_CC} -o ${.OBJDIR}/gen-fac ${.ALLSRC}
+
+fac_table.h: gen-fac
+ ${.OBJDIR}/gen-fac ${GMP_LIMB_BITS} 0 > ${.OBJDIR}/fac_table.h
gen-fib: gen-fib.c
${HOST_CC} -o ${.OBJDIR}/gen-fib ${.ALLSRC}
@@ -175,11 +177,17 @@
mp_bases.c: gen-bases
${.OBJDIR}/gen-bases table ${GMP_LIMB_BITS} 0 > ${.OBJDIR}/mp_bases.c
+gen-jacobitab: gen-jacobitab.c
+ ${HOST_CC} -o ${.OBJDIR}/gen-jacobitab ${.ALLSRC} -lm
+
+jacobitab.h: gen-jacobitab
+ ${.OBJDIR}/gen-jacobitab > ${.OBJDIR}/jacobitab.h
+
perfsqr.h: gen-psqr.c
${HOST_CC} -o ${.OBJDIR}/gen-psqr ${.ALLSRC}
${.OBJDIR}/gen-psqr ${GMP_LIMB_BITS} 0 > ${.OBJDIR}/perfsqr.h
-CLEANFILES+= ${DPSRCS} gen-fac_ui gen-fib gen-bases gen-psqr gen-trialdivtab
+CLEANFILES+= ${DPSRCS} gen-fac gen-fib gen-bases gen-jacobitab gen-psqr gen-trialdivtab
.include "${.CURDIR}/arch/${GMP_MACHINE_ARCH}/Makefile.inc"
@@ -195,10 +203,10 @@
cleandummy: .PHONY
-rmdir dummy
-BUILD_S_INCS= -I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn
+BUILD_S_INCS= -I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn -I${.OBJDIR}
.for _build _src in ${ASM_SRCS_LIST}
-${_build:R}.s: Makefile dummy ${.OBJDIR}/config.m4
+${_build:R}.s: Makefile dummy ${.OBJDIR}/config.m4 ${DIST}/${_src}
${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} ${BUILD_S_INCS} \
${M4FLAGS} ${M4FLAGS.${.TARGET:R}} \
-DOPERATION_${.TARGET:R} ${DIST}/${_src} > ${.TARGET}
@@ -220,6 +228,7 @@
.include <bsd.lib.mk>
.PATH: ${DIST} \
+ ${DIST}/rand \
${DIST}/mpn/generic \
${.CURDIR}/arch/${GMP_MACHINE_ARCH} \
${DIST}/mpf \
diff -r 27789d1cf063 -r 11ef4db39ff5 external/lgpl3/gmp/lib/libgmp/arch/alpha/Makefile.inc
--- a/external/lgpl3/gmp/lib/libgmp/arch/alpha/Makefile.inc Fri Nov 29 08:02:28 2013 +0000
+++ b/external/lgpl3/gmp/lib/libgmp/arch/alpha/Makefile.inc Fri Nov 29 08:03:41 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.2 2012/11/26 18:57:34 drochner Exp $
+# $NetBSD: Makefile.inc,v 1.3 2013/11/29 08:03:41 mrg Exp $
SRCS+= \
random.c \
@@ -6,6 +6,8 @@
sbpi1_divappr_q.c \
random2.c \
mu_bdiv_q.c \
+ mulmid_basecase.c \
+ jacobi_2.c \
toom32_mul.c \
toom44_mul.c \
toom8h_mul.c \
@@ -13,44 +15,57 @@
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 \
- mu_divappr_q.c \
- redc_1_sec.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 \
toom_eval_dgr3_pm2.c \
mod_1_3.c \
toom_couple_handling.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 \
- mu_div_qr.c \
bdiv_q.c \
toom22_mul.c \
+ bsqrtinv.c \
toom4_sqr.c \
div_q.c \
jacbase.c \
- gcdext_subdiv_step.c \
+ addcnd_n.c \
+ hgcd_matrix.c \
mullo_n.c \
toom33_mul.c \
toom_eval_dgr3_pm1.c \
mod_1_2.c \
sub_1.c \
+ add_err2_n.c \
trialdiv.c \
add_1.c \
sqr_basecase.c \
@@ -62,6 +77,7 @@
bdiv_q_1.c \
gcdext_1.c \
toom63_mul.c \
+ div_qr_2u_pi1.c \
mul_basecase.c \
toom8_sqr.c \
neg.c \
@@ -72,26 +88,32 @@
toom_eval_pm2.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 \
- mulmod_bnm1.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 \
toom6h_mul.c \
+ sqrmod_bnm1.c \
mul_fft.c \
- sqrmod_bnm1.c \
+ mulmid.c \
powm.c \
rootrem.c \
toom_interpolate_8pts.c \
@@ -100,39 +122,49 @@
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 \
- gcd_lehmer.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 \
ASM_SRCS_LIST= \
diff -r 27789d1cf063 -r 11ef4db39ff5 external/lgpl3/gmp/lib/libgmp/arch/alpha/config.h
--- a/external/lgpl3/gmp/lib/libgmp/arch/alpha/config.h Fri Nov 29 08:02:28 2013 +0000
+++ b/external/lgpl3/gmp/lib/libgmp/arch/alpha/config.h Fri Nov 29 08:03:41 2013 +0000
@@ -1,10 +1,10 @@
/* config.h. Generated from config.in by configure. */
-/* config.in. Generated from configure.in by autoheader. */
+/* config.in. Generated from configure.ac by autoheader. */
/*
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
-2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+2007, 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -62,7 +62,7 @@
/* Define to 1 if you have the `clock' function. */
#define HAVE_CLOCK 1
-/* Define to 1 if you have the `clock_gettime' function. */
+/* Define to 1 if you have the `clock_gettime' function */
#define HAVE_CLOCK_GETTIME 1
/* Define to 1 if you have the `cputime' function. */
@@ -162,6 +162,14 @@
/* #undef HAVE_HOST_CPU_pentiumpro */
/* #undef HAVE_HOST_CPU_pentium2 */
/* #undef HAVE_HOST_CPU_pentium3 */
+/* #undef HAVE_HOST_CPU_s390_z900 */
+/* #undef HAVE_HOST_CPU_s390_z990 */
+/* #undef HAVE_HOST_CPU_s390_z9 */
+/* #undef HAVE_HOST_CPU_s390_z10 */
+/* #undef HAVE_HOST_CPU_s390_z196 */
+
+/* Define to 1 iff we have a s390 with 64-bit registers. */
+/* #undef HAVE_HOST_CPU_s390_zarch */
/* Define to 1 if the system has the type `intmax_t'. */
#define HAVE_INTMAX_T 1
@@ -215,11 +223,27 @@
implementation of the corresponding routine exists. */
#define HAVE_NATIVE_mpn_add_n 1
/* #undef HAVE_NATIVE_mpn_add_n_sub_n */
-/* #undef HAVE_NATIVE_mpn_add_nc */
+#define HAVE_NATIVE_mpn_add_nc 1
/* #undef HAVE_NATIVE_mpn_addaddmul_1msb0 */
+/* #undef HAVE_NATIVE_mpn_addcnd_n */
#define HAVE_NATIVE_mpn_addlsh1_n 1
/* #undef HAVE_NATIVE_mpn_addlsh2_n */
Home |
Main Index |
Thread Index |
Old Index