updates for GMP 5.1.3, and new build files for most platforms.
This commit is contained in:
parent
41ff5b3ae1
commit
65705a8482
|
@ -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 @@ SCANF_SRCS = \
|
|||
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 @@ CPPFLAGS+= -I. -I${DIST} -I${.CURDIR}/arch/${GMP_MACHINE_ARCH} -D__GMP_WITHIN_GM
|
|||
|
||||
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.h: gen-bases
|
|||
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 @@ clean: cleandummy
|
|||
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 @@ CLEANFILES+= mpn_${_build}
|
|||
.include <bsd.lib.mk>
|
||||
|
||||
.PATH: ${DIST} \
|
||||
${DIST}/rand \
|
||||
${DIST}/mpn/generic \
|
||||
${.CURDIR}/arch/${GMP_MACHINE_ARCH} \
|
||||
${DIST}/mpf \
|
||||
|
|
|
@ -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 @@ SRCS+= \
|
|||
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 @@ SRCS+= \
|
|||
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 \
|
||||
dcpi1_div_qr.c \
|
||||
mu_divappr_q.c \
|
||||
redc_1_sec.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 \
|
||||
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 \
|
||||
toom_interpolate_16pts.c \
|
||||
mu_div_qr.c \
|
||||
toom_interpolate_16pts.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 @@ SRCS+= \
|
|||
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 @@ SRCS+= \
|
|||
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 \
|
||||
mullo_basecase.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 \
|
||||
toom6h_mul.c \
|
||||
mul_fft.c \
|
||||
sqrmod_bnm1.c \
|
||||
mul_fft.c \
|
||||
mulmid.c \
|
||||
powm.c \
|
||||
rootrem.c \
|
||||
toom_interpolate_8pts.c \
|
||||
|
@ -100,39 +122,49 @@ 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 \
|
||||
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= \
|
||||
|
|
|
@ -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 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* 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 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #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 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
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 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_3 */
|
||||
|
@ -228,6 +252,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_addmul_6 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_7 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_8 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_2s */
|
||||
/* #undef HAVE_NATIVE_mpn_and_n */
|
||||
/* #undef HAVE_NATIVE_mpn_andn_n */
|
||||
#define HAVE_NATIVE_mpn_bdiv_dbm1c 1
|
||||
|
@ -236,6 +261,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define HAVE_NATIVE_mpn_com 1
|
||||
#define HAVE_NATIVE_mpn_copyd 1
|
||||
#define HAVE_NATIVE_mpn_copyi 1
|
||||
/* #undef HAVE_NATIVE_mpn_div_qr_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_divexact_1 */
|
||||
/* #undef HAVE_NATIVE_mpn_divexact_by3c */
|
||||
/* #undef HAVE_NATIVE_mpn_divrem_1 */
|
||||
|
@ -262,6 +288,8 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_mul_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_3 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_4 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_5 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_6 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_basecase */
|
||||
/* #undef HAVE_NATIVE_mpn_nand_n */
|
||||
/* #undef HAVE_NATIVE_mpn_nior_n */
|
||||
|
@ -273,6 +301,9 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_rsblsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1add_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1add_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1sub_n */
|
||||
|
@ -280,12 +311,24 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define HAVE_NATIVE_mpn_rshift 1
|
||||
/* #undef HAVE_NATIVE_mpn_sqr_basecase */
|
||||
#define HAVE_NATIVE_mpn_sqr_diagonal 1
|
||||
/* #undef HAVE_NATIVE_mpn_sqr_diag_addlsh1 */
|
||||
#define HAVE_NATIVE_mpn_sub_n 1
|
||||
/* #undef HAVE_NATIVE_mpn_sub_nc */
|
||||
#define HAVE_NATIVE_mpn_sub_nc 1
|
||||
/* #undef HAVE_NATIVE_mpn_subcnd_n */
|
||||
#define HAVE_NATIVE_mpn_sublsh1_n 1
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_submul_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_tabselect */
|
||||
/* #undef HAVE_NATIVE_mpn_udiv_qrnnd */
|
||||
/* #undef HAVE_NATIVE_mpn_udiv_qrnnd_r */
|
||||
#define HAVE_NATIVE_mpn_umul_ppmm 1
|
||||
|
@ -450,6 +493,9 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* Define to 1 if you have the `vsnprintf' function and it works properly. */
|
||||
#define HAVE_VSNPRINTF 1
|
||||
|
||||
/* Define to 1 for Windos/64 */
|
||||
/* #undef HOST_DOS64 */
|
||||
|
||||
/* Assembler local label prefix */
|
||||
#define LSYM_PREFIX "$"
|
||||
|
||||
|
@ -461,13 +507,13 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define PACKAGE "gmp"
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org"
|
||||
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html"
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#define PACKAGE_NAME "GNU MP"
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#define PACKAGE_STRING "GNU MP 5.0.2"
|
||||
#define PACKAGE_STRING "GNU MP 5.1.3"
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#define PACKAGE_TARNAME "gmp"
|
||||
|
@ -476,10 +522,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define PACKAGE_URL "http://www.gnu.org/software/gmp/"
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#define PACKAGE_VERSION "5.0.2"
|
||||
|
||||
/* Define to 1 if the C compiler supports function prototypes. */
|
||||
#define PROTOTYPES 1
|
||||
#define PACKAGE_VERSION "5.1.3"
|
||||
|
||||
/* Define as the return type of signal handlers (`int' or `void'). */
|
||||
#define RETSIGTYPE void
|
||||
|
@ -512,7 +555,10 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define TUNE_SQR_TOOM2_MAX SQR_TOOM2_MAX_GENERIC
|
||||
|
||||
/* Version number of package */
|
||||
#define VERSION "5.0.2"
|
||||
#define VERSION "5.1.3"
|
||||
|
||||
/* Defined to 1 as per --enable-assembly */
|
||||
#define WANT_ASSEMBLY 1
|
||||
|
||||
/* Define to 1 to enable ASSERT checking, per --enable-assert */
|
||||
/* #undef WANT_ASSERT */
|
||||
|
@ -559,9 +605,6 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
`char[]'. */
|
||||
#define YYTEXT_POINTER 1
|
||||
|
||||
/* Define like PROTOTYPES; this can be used by system headers. */
|
||||
#define __PROTOTYPES 1
|
||||
|
||||
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
||||
calls it, or to nothing if 'inline' is not supported under any name. */
|
||||
#ifndef __cplusplus
|
||||
|
|
|
@ -10,7 +10,7 @@ define(<LABEL_SUFFIX>, <:>)
|
|||
define(<GLOBL>, <.globl>)
|
||||
define(<GLOBL_ATTR>, <>)
|
||||
define(<GSYM_PREFIX>, <>)
|
||||
define(<RODATA>, < .section .sdata,"aws",@progbits>)
|
||||
define(<RODATA>, < .section .rodata>)
|
||||
define(<TYPE>, <.type $1,@$2>)
|
||||
define(<SIZE>, <.size $1,$2>)
|
||||
define(<LSYM_PREFIX>, <$>)
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,164 +0,0 @@
|
|||
/* mp-h.in -- Definitions for the GNU multiple precision library -*-mode:c-*-
|
||||
BSD mp compatible functions.
|
||||
|
||||
Copyright 1991, 1993, 1994, 1995, 1996, 2000, 2001, 2002, 2004 Free Software
|
||||
Foundation, Inc.
|
||||
|
||||
This file is part of the GNU MP Library.
|
||||
|
||||
The GNU MP Library is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or (at your
|
||||
option) any later version.
|
||||
|
||||
The GNU MP Library is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||
License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
|
||||
|
||||
#ifndef __MP_H__
|
||||
|
||||
|
||||
/* The following (everything under ifndef __GNU_MP__) must be identical in
|
||||
gmp.h and mp.h to allow both to be included in an application or during
|
||||
the library build. Use the t-gmp-mp-h.pl script to check. */
|
||||
#ifndef __GNU_MP__
|
||||
#define __GNU_MP__ 5
|
||||
|
||||
#define __need_size_t /* tell gcc stddef.h we only want size_t */
|
||||
#if defined (__cplusplus)
|
||||
#include <cstddef> /* for size_t */
|
||||
#else
|
||||
#include <stddef.h> /* for size_t */
|
||||
#endif
|
||||
#undef __need_size_t
|
||||
|
||||
/* The following instantiated by configure, for internal use only */
|
||||
#if ! defined (__GMP_WITHIN_CONFIGURE)
|
||||
/* #undef _LONG_LONG_LIMB */
|
||||
#define __GMP_LIBGMP_DLL 0
|
||||
#endif
|
||||
|
||||
#if defined (__STDC__) \
|
||||
|| defined (__cplusplus) \
|
||||
|| defined (_AIX) \
|
||||
|| defined (__DECC) \
|
||||
|| (defined (__mips) && defined (_SYSTYPE_SVR4)) \
|
||||
|| defined (_MSC_VER) \
|
||||
|| defined (_WIN32)
|
||||
#define __GMP_HAVE_CONST 1
|
||||
#define __GMP_HAVE_PROTOTYPES 1
|
||||
#define __GMP_HAVE_TOKEN_PASTE 1
|
||||
#else
|
||||
#define __GMP_HAVE_CONST 0
|
||||
#define __GMP_HAVE_PROTOTYPES 0
|
||||
#define __GMP_HAVE_TOKEN_PASTE 0
|
||||
#endif
|
||||
|
||||
|
||||
#if __GMP_HAVE_CONST
|
||||
#define __gmp_const const
|
||||
#define __gmp_signed signed
|
||||
#else
|
||||
#define __gmp_const
|
||||
#define __gmp_signed
|
||||
#endif
|
||||
|
||||
#if defined (__GNUC__)
|
||||
#define __GMP_DECLSPEC_EXPORT __declspec(__dllexport__)
|
||||
#define __GMP_DECLSPEC_IMPORT __declspec(__dllimport__)
|
||||
#endif
|
||||
#if defined (_MSC_VER) || defined (__BORLANDC__)
|
||||
#define __GMP_DECLSPEC_EXPORT __declspec(dllexport)
|
||||
#define __GMP_DECLSPEC_IMPORT __declspec(dllimport)
|
||||
#endif
|
||||
#ifdef __WATCOMC__
|
||||
#define __GMP_DECLSPEC_EXPORT __export
|
||||
#define __GMP_DECLSPEC_IMPORT __import
|
||||
#endif
|
||||
#ifdef __IBMC__
|
||||
#define __GMP_DECLSPEC_EXPORT _Export
|
||||
#define __GMP_DECLSPEC_IMPORT _Import
|
||||
#endif
|
||||
|
||||
#if __GMP_LIBGMP_DLL
|
||||
#if __GMP_WITHIN_GMP
|
||||
#define __GMP_DECLSPEC __GMP_DECLSPEC_EXPORT
|
||||
#else
|
||||
#define __GMP_DECLSPEC __GMP_DECLSPEC_IMPORT
|
||||
#endif
|
||||
#else
|
||||
#define __GMP_DECLSPEC
|
||||
#endif
|
||||
|
||||
#ifdef __GMP_SHORT_LIMB
|
||||
typedef unsigned int mp_limb_t;
|
||||
typedef int mp_limb_signed_t;
|
||||
#else
|
||||
#ifdef _LONG_LONG_LIMB
|
||||
typedef unsigned long long int mp_limb_t;
|
||||
typedef long long int mp_limb_signed_t;
|
||||
#else
|
||||
typedef unsigned long int mp_limb_t;
|
||||
typedef long int mp_limb_signed_t;
|
||||
#endif
|
||||
#endif
|
||||
typedef unsigned long int mp_bitcnt_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int _mp_alloc; /* Number of *limbs* allocated and pointed
|
||||
to by the _mp_d field. */
|
||||
int _mp_size; /* abs(_mp_size) is the number of limbs the
|
||||
last field points to. If _mp_size is
|
||||
negative this is a negative number. */
|
||||
mp_limb_t *_mp_d; /* Pointer to the limbs. */
|
||||
} __mpz_struct;
|
||||
|
||||
#endif /* __GNU_MP__ */
|
||||
|
||||
/* User-visible types. */
|
||||
typedef __mpz_struct MINT;
|
||||
|
||||
|
||||
#if __GMP_HAVE_PROTOTYPES
|
||||
#define __GMP_PROTO(x) x
|
||||
#else
|
||||
#define __GMP_PROTO(x) ()
|
||||
#endif
|
||||
|
||||
#if defined (__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define mp_set_memory_functions __gmp_set_memory_functions
|
||||
__GMP_DECLSPEC void mp_set_memory_functions __GMP_PROTO ((void *(*) (size_t),
|
||||
void *(*) (void *, size_t, size_t),
|
||||
void (*) (void *, size_t)));
|
||||
__GMP_DECLSPEC MINT *itom __GMP_PROTO ((signed short int));
|
||||
__GMP_DECLSPEC MINT *xtom __GMP_PROTO ((const char *));
|
||||
__GMP_DECLSPEC void move __GMP_PROTO ((const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void madd __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void msub __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void mult __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void mdiv __GMP_PROTO ((const MINT *, const MINT *, MINT *, MINT *));
|
||||
__GMP_DECLSPEC void sdiv __GMP_PROTO ((const MINT *, signed short int, MINT *, signed short int *));
|
||||
__GMP_DECLSPEC void msqrt __GMP_PROTO ((const MINT *, MINT *, MINT *));
|
||||
__GMP_DECLSPEC void pow __GMP_PROTO ((const MINT *, const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void rpow __GMP_PROTO ((const MINT *, signed short int, MINT *));
|
||||
__GMP_DECLSPEC void gcd __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC int mcmp __GMP_PROTO ((const MINT *, const MINT *));
|
||||
__GMP_DECLSPEC void min __GMP_PROTO ((MINT *));
|
||||
__GMP_DECLSPEC void mout __GMP_PROTO ((const MINT *));
|
||||
__GMP_DECLSPEC char *mtox __GMP_PROTO ((const MINT *));
|
||||
__GMP_DECLSPEC void mfree __GMP_PROTO ((MINT *));
|
||||
|
||||
#if defined (__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#define __MP_H__
|
||||
#endif /* __MP_H__ */
|
|
@ -1,12 +1,14 @@
|
|||
# $NetBSD: Makefile.inc,v 1.4 2012/11/26 18:57:34 drochner Exp $
|
||||
# $NetBSD: Makefile.inc,v 1.5 2013/11/29 08:03:41 mrg Exp $
|
||||
|
||||
SRCS+= \
|
||||
random.c \
|
||||
divrem_2.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 \
|
||||
toom44_mul.c \
|
||||
toom8h_mul.c \
|
||||
|
@ -14,48 +16,56 @@ SRCS+= \
|
|||
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 \
|
||||
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 \
|
||||
toom54_mul.c \
|
||||
toom_interpolate_6pts.c \
|
||||
dcpi1_divappr_q.c \
|
||||
toom_eval_dgr3_pm2.c \
|
||||
mod_1_3.c \
|
||||
com.c \
|
||||
lshift.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 \
|
||||
mod_34lsub1.c \
|
||||
bdiv_q.c \
|
||||
toom22_mul.c \
|
||||
rshift.c \
|
||||
bsqrtinv.c \
|
||||
toom4_sqr.c \
|
||||
div_q.c \
|
||||
jacbase.c \
|
||||
gcdext_subdiv_step.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 \
|
||||
|
@ -63,95 +73,121 @@ SRCS+= \
|
|||
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 \
|
||||
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 \
|
||||
comb_tables.c \
|
||||
sbpi1_bdiv_qr.c \
|
||||
sub_err2_n.c \
|
||||
scan1.c \
|
||||
brootinv.c \
|
||||
pre_divrem_1.c \
|
||||
perfpow.c \
|
||||
get_str.c \
|
||||
mullo_basecase.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 \
|
||||
toom6h_mul.c \
|
||||
mul_fft.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 \
|
||||
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 \
|
||||
nand_n.c mpn/generic/logops_n.c \
|
||||
nior_n.c mpn/generic/logops_n.c \
|
||||
sb_div_r_sec.c mpn/generic/sb_div_sec.c \
|
||||
hamdist.c mpn/generic/popham.c \
|
||||
popcount.c mpn/generic/popham.c \
|
||||
and_n.c mpn/generic/logops_n.c \
|
||||
ior_n.c mpn/generic/logops_n.c \
|
||||
xnor_n.c mpn/generic/logops_n.c \
|
||||
iorn_n.c mpn/generic/logops_n.c \
|
||||
andn_n.c mpn/generic/logops_n.c \
|
||||
sbpi1_div_qr_sec.c mpn/generic/sbpi1_div_sec.c \
|
||||
sb_div_qr_sec.c mpn/generic/sb_div_sec.c \
|
||||
sbpi1_div_r_sec.c mpn/generic/sbpi1_div_sec.c \
|
||||
|
||||
ASM_SRCS_LIST= \
|
||||
add_n.asm mpn/arm/add_n.asm \
|
||||
submul_1.asm mpn/arm/submul_1.asm \
|
||||
nand_n.asm mpn/arm/logops_n.asm \
|
||||
rsh1sub_n.asm mpn/arm/rsh1aors_n.asm \
|
||||
add_n.asm mpn/arm/aors_n.asm \
|
||||
rsh1add_n.asm mpn/arm/rsh1aors_n.asm \
|
||||
sublsh1_n.asm mpn/arm/aorslsh1_n.asm \
|
||||
addcnd_n.asm mpn/arm/aorscnd_n.asm \
|
||||
xor_n.asm mpn/arm/logops_n.asm \
|
||||
submul_1.asm mpn/arm/aorsmul_1.asm \
|
||||
nior_n.asm mpn/arm/logops_n.asm \
|
||||
lshift.asm mpn/arm/lshift.asm \
|
||||
and_n.asm mpn/arm/logops_n.asm \
|
||||
mul_1.asm mpn/arm/mul_1.asm \
|
||||
copyd.asm mpn/arm/copyd.asm \
|
||||
bdiv_dbm1c.asm mpn/arm/bdiv_dbm1c.asm \
|
||||
udiv.asm mpn/arm/udiv.asm \
|
||||
andn_n.asm mpn/arm/logops_n.asm \
|
||||
com.asm mpn/arm/com.asm \
|
||||
copyi.asm mpn/arm/copyi.asm \
|
||||
subcnd_n.asm mpn/arm/aorscnd_n.asm \
|
||||
rshift.asm mpn/arm/rshift.asm \
|
||||
iorn_n.asm mpn/arm/logops_n.asm \
|
||||
ior_n.asm mpn/arm/logops_n.asm \
|
||||
mod_34lsub1.asm mpn/arm/mod_34lsub1.asm \
|
||||
xnor_n.asm mpn/arm/logops_n.asm \
|
||||
lshiftc.asm mpn/arm/lshiftc.asm \
|
||||
mode1o.asm mpn/arm/mode1o.asm \
|
||||
addlsh1_n.asm mpn/arm/aorslsh1_n.asm \
|
||||
invert_limb.asm mpn/arm/invert_limb.asm \
|
||||
addmul_1.asm mpn/arm/addmul_1.asm \
|
||||
sub_n.asm mpn/arm/sub_n.asm \
|
||||
addmul_1.asm mpn/arm/aorsmul_1.asm \
|
||||
sub_n.asm mpn/arm/aors_n.asm \
|
||||
|
||||
gen-trialdivtab: gen-trialdivtab.c
|
||||
${HOST_CC} -o ${.OBJDIR}/gen-trialdivtab ${.ALLSRC} -lm
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
@ -57,12 +57,12 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
|
||||
/* Define to 1 if tests/libtests has calling conventions checking for the CPU
|
||||
*/
|
||||
/* #undef HAVE_CALLING_CONVENTIONS */
|
||||
#define HAVE_CALLING_CONVENTIONS 1
|
||||
|
||||
/* 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 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #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 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
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_addlsh1_n */
|
||||
#define HAVE_NATIVE_mpn_addcnd_n 1
|
||||
#define HAVE_NATIVE_mpn_addlsh1_n 1
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_3 */
|
||||
|
@ -228,14 +252,16 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_addmul_6 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_7 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_8 */
|
||||
/* #undef HAVE_NATIVE_mpn_and_n */
|
||||
/* #undef HAVE_NATIVE_mpn_andn_n */
|
||||
/* #undef HAVE_NATIVE_mpn_bdiv_dbm1c */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_2s */
|
||||
#define HAVE_NATIVE_mpn_and_n 1
|
||||
#define HAVE_NATIVE_mpn_andn_n 1
|
||||
#define HAVE_NATIVE_mpn_bdiv_dbm1c 1
|
||||
/* #undef HAVE_NATIVE_mpn_bdiv_q_1 */
|
||||
/* #undef HAVE_NATIVE_mpn_pi1_bdiv_q_1 */
|
||||
/* #undef HAVE_NATIVE_mpn_com */
|
||||
#define HAVE_NATIVE_mpn_com 1
|
||||
#define HAVE_NATIVE_mpn_copyd 1
|
||||
#define HAVE_NATIVE_mpn_copyi 1
|
||||
/* #undef HAVE_NATIVE_mpn_div_qr_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_divexact_1 */
|
||||
/* #undef HAVE_NATIVE_mpn_divexact_by3c */
|
||||
/* #undef HAVE_NATIVE_mpn_divrem_1 */
|
||||
|
@ -244,27 +270,29 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_gcd_1 */
|
||||
/* #undef HAVE_NATIVE_mpn_hamdist */
|
||||
#define HAVE_NATIVE_mpn_invert_limb 1
|
||||
/* #undef HAVE_NATIVE_mpn_ior_n */
|
||||
/* #undef HAVE_NATIVE_mpn_iorn_n */
|
||||
/* #undef HAVE_NATIVE_mpn_lshift */
|
||||
/* #undef HAVE_NATIVE_mpn_lshiftc */
|
||||
#define HAVE_NATIVE_mpn_ior_n 1
|
||||
#define HAVE_NATIVE_mpn_iorn_n 1
|
||||
#define HAVE_NATIVE_mpn_lshift 1
|
||||
#define HAVE_NATIVE_mpn_lshiftc 1
|
||||
/* #undef HAVE_NATIVE_mpn_lshsub_n */
|
||||
/* #undef HAVE_NATIVE_mpn_mod_1 */
|
||||
/* #undef HAVE_NATIVE_mpn_mod_1_1p */
|
||||
/* #undef HAVE_NATIVE_mpn_mod_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_mod_1s_2p */
|
||||
/* #undef HAVE_NATIVE_mpn_mod_1s_4p */
|
||||
/* #undef HAVE_NATIVE_mpn_mod_34lsub1 */
|
||||
#define HAVE_NATIVE_mpn_mod_34lsub1 1
|
||||
/* #undef HAVE_NATIVE_mpn_modexact_1_odd */
|
||||
/* #undef HAVE_NATIVE_mpn_modexact_1c_odd */
|
||||
#define HAVE_NATIVE_mpn_modexact_1c_odd 1
|
||||
#define HAVE_NATIVE_mpn_mul_1 1
|
||||
/* #undef HAVE_NATIVE_mpn_mul_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_3 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_4 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_5 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_6 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_basecase */
|
||||
/* #undef HAVE_NATIVE_mpn_nand_n */
|
||||
/* #undef HAVE_NATIVE_mpn_nior_n */
|
||||
#define HAVE_NATIVE_mpn_nand_n 1
|
||||
#define HAVE_NATIVE_mpn_nior_n 1
|
||||
/* #undef HAVE_NATIVE_mpn_popcount */
|
||||
/* #undef HAVE_NATIVE_mpn_preinv_divrem_1 */
|
||||
/* #undef HAVE_NATIVE_mpn_preinv_mod_1 */
|
||||
|
@ -273,25 +301,40 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_rsblsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1add_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh_nc */
|
||||
#define HAVE_NATIVE_mpn_rsh1add_n 1
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1add_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1sub_n */
|
||||
#define HAVE_NATIVE_mpn_rsh1sub_n 1
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1sub_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rshift */
|
||||
#define HAVE_NATIVE_mpn_rshift 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
|
||||
/* #undef HAVE_NATIVE_mpn_sub_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_n */
|
||||
#define HAVE_NATIVE_mpn_sub_nc 1
|
||||
#define HAVE_NATIVE_mpn_subcnd_n 1
|
||||
#define HAVE_NATIVE_mpn_sublsh1_n 1
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_submul_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_tabselect */
|
||||
#define HAVE_NATIVE_mpn_udiv_qrnnd 1
|
||||
/* #undef HAVE_NATIVE_mpn_udiv_qrnnd_r */
|
||||
/* #undef HAVE_NATIVE_mpn_umul_ppmm */
|
||||
/* #undef HAVE_NATIVE_mpn_umul_ppmm_r */
|
||||
/* #undef HAVE_NATIVE_mpn_xor_n */
|
||||
/* #undef HAVE_NATIVE_mpn_xnor_n */
|
||||
#define HAVE_NATIVE_mpn_xor_n 1
|
||||
#define HAVE_NATIVE_mpn_xnor_n 1
|
||||
|
||||
/* Define to 1 if you have the `nl_langinfo' function. */
|
||||
#define HAVE_NL_LANGINFO 1
|
||||
|
@ -450,6 +493,9 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* Define to 1 if you have the `vsnprintf' function and it works properly. */
|
||||
#define HAVE_VSNPRINTF 1
|
||||
|
||||
/* Define to 1 for Windos/64 */
|
||||
/* #undef HOST_DOS64 */
|
||||
|
||||
/* Assembler local label prefix */
|
||||
#define LSYM_PREFIX ".L"
|
||||
|
||||
|
@ -461,13 +507,13 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define PACKAGE "gmp"
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org"
|
||||
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html"
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#define PACKAGE_NAME "GNU MP"
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#define PACKAGE_STRING "GNU MP 5.0.2"
|
||||
#define PACKAGE_STRING "GNU MP 5.1.3"
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#define PACKAGE_TARNAME "gmp"
|
||||
|
@ -476,10 +522,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define PACKAGE_URL "http://www.gnu.org/software/gmp/"
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#define PACKAGE_VERSION "5.0.2"
|
||||
|
||||
/* Define to 1 if the C compiler supports function prototypes. */
|
||||
#define PROTOTYPES 1
|
||||
#define PACKAGE_VERSION "5.1.3"
|
||||
|
||||
/* Define as the return type of signal handlers (`int' or `void'). */
|
||||
#define RETSIGTYPE void
|
||||
|
@ -512,7 +555,10 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define TUNE_SQR_TOOM2_MAX SQR_TOOM2_MAX_GENERIC
|
||||
|
||||
/* Version number of package */
|
||||
#define VERSION "5.0.2"
|
||||
#define VERSION "5.1.3"
|
||||
|
||||
/* Defined to 1 as per --enable-assembly */
|
||||
#define WANT_ASSEMBLY 1
|
||||
|
||||
/* Define to 1 to enable ASSERT checking, per --enable-assert */
|
||||
/* #undef WANT_ASSERT */
|
||||
|
@ -559,9 +605,6 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
`char[]'. */
|
||||
#define YYTEXT_POINTER 1
|
||||
|
||||
/* Define like PROTOTYPES; this can be used by system headers. */
|
||||
#define __PROTOTYPES 1
|
||||
|
||||
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
||||
calls it, or to nothing if 'inline' is not supported under any name. */
|
||||
#ifndef __cplusplus
|
||||
|
|
|
@ -17,6 +17,7 @@ define(<LSYM_PREFIX>, <.L>)
|
|||
define(<W32>, <.long>)
|
||||
define(<ALIGN_LOGARITHMIC>,<yes>)
|
||||
define(<SQR_TOOM2_THRESHOLD>,<78>)
|
||||
define(<BMOD_1_TO_MOD_1_THRESHOLD>,<41>)
|
||||
define(<SIZEOF_UNSIGNED>,<4>)
|
||||
define(<GMP_LIMB_BITS>,32)
|
||||
define(<GMP_NAIL_BITS>,0)
|
||||
|
|
|
@ -21,122 +21,96 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
|
|||
#define GMP_LIMB_BITS 32
|
||||
#define BYTES_PER_MP_LIMB 4
|
||||
|
||||
/* 593MHz ARM (gcc50.fsffrance.org) */
|
||||
/* 1193MHz ARM (gcc55.fsffrance.org) */
|
||||
|
||||
#define DIVREM_1_NORM_THRESHOLD 0 /* preinv always */
|
||||
#define DIVREM_1_UNNORM_THRESHOLD 0 /* always */
|
||||
#define MOD_1_NORM_THRESHOLD 0 /* always */
|
||||
#define MOD_1_UNNORM_THRESHOLD 0 /* always */
|
||||
#define MOD_1N_TO_MOD_1_1_THRESHOLD 17
|
||||
#define MOD_1U_TO_MOD_1_1_THRESHOLD 9
|
||||
#define MOD_1_1_TO_MOD_1_2_THRESHOLD MP_SIZE_T_MAX
|
||||
#define MOD_1N_TO_MOD_1_1_THRESHOLD 56
|
||||
#define MOD_1U_TO_MOD_1_1_THRESHOLD 11
|
||||
#define MOD_1_1_TO_MOD_1_2_THRESHOLD 0 /* never mpn_mod_1_1p */
|
||||
#define MOD_1_2_TO_MOD_1_4_THRESHOLD MP_SIZE_T_MAX
|
||||
#define PREINV_MOD_1_TO_MOD_1_THRESHOLD 27
|
||||
#define PREINV_MOD_1_TO_MOD_1_THRESHOLD 71
|
||||
#define USE_PREINV_DIVREM_1 1 /* preinv always */
|
||||
#define DIVREM_2_THRESHOLD 0 /* preinv always */
|
||||
#define DIVEXACT_1_THRESHOLD 0 /* always */
|
||||
#define BMOD_1_TO_MOD_1_THRESHOLD 44
|
||||
#define BMOD_1_TO_MOD_1_THRESHOLD 41
|
||||
|
||||
#define MUL_TOOM22_THRESHOLD 34
|
||||
#define MUL_TOOM33_THRESHOLD 121
|
||||
#define MUL_TOOM44_THRESHOLD 191
|
||||
#define MUL_TOOM6H_THRESHOLD 366
|
||||
#define MUL_TOOM8H_THRESHOLD 547
|
||||
#define MUL_TOOM22_THRESHOLD 36
|
||||
#define MUL_TOOM33_THRESHOLD 125
|
||||
#define MUL_TOOM44_THRESHOLD 193
|
||||
#define MUL_TOOM6H_THRESHOLD 303
|
||||
#define MUL_TOOM8H_THRESHOLD 418
|
||||
|
||||
#define MUL_TOOM32_TO_TOOM43_THRESHOLD 129
|
||||
#define MUL_TOOM32_TO_TOOM53_THRESHOLD 191
|
||||
#define MUL_TOOM42_TO_TOOM53_THRESHOLD 117
|
||||
#define MUL_TOOM42_TO_TOOM63_THRESHOLD 137
|
||||
#define MUL_TOOM32_TO_TOOM43_THRESHOLD 125
|
||||
#define MUL_TOOM32_TO_TOOM53_THRESHOLD 176
|
||||
#define MUL_TOOM42_TO_TOOM53_THRESHOLD 114
|
||||
#define MUL_TOOM42_TO_TOOM63_THRESHOLD 129
|
||||
|
||||
#define SQR_BASECASE_THRESHOLD 13
|
||||
#define SQR_BASECASE_THRESHOLD 12
|
||||
#define SQR_TOOM2_THRESHOLD 78
|
||||
#define SQR_TOOM3_THRESHOLD 141
|
||||
#define SQR_TOOM3_THRESHOLD 137
|
||||
#define SQR_TOOM4_THRESHOLD 212
|
||||
#define SQR_TOOM6_THRESHOLD 330
|
||||
#define SQR_TOOM6_THRESHOLD 306
|
||||
#define SQR_TOOM8_THRESHOLD 422
|
||||
|
||||
#define MULMOD_BNM1_THRESHOLD 21
|
||||
#define SQRMOD_BNM1_THRESHOLD 25
|
||||
#define MULMOD_BNM1_THRESHOLD 20
|
||||
#define SQRMOD_BNM1_THRESHOLD 26
|
||||
|
||||
#define MUL_FFT_MODF_THRESHOLD 404 /* k = 5 */
|
||||
#define MUL_FFT_MODF_THRESHOLD 436 /* k = 5 */
|
||||
#define MUL_FFT_TABLE3 \
|
||||
{ { 404, 5}, { 21, 6}, { 11, 5}, { 25, 6}, \
|
||||
{ 13, 5}, { 27, 6}, { 28, 7}, { 15, 6}, \
|
||||
{ { 436, 5}, { 27, 6}, { 28, 7}, { 15, 6}, \
|
||||
{ 32, 7}, { 17, 6}, { 35, 7}, { 19, 6}, \
|
||||
{ 39, 7}, { 21, 6}, { 43, 7}, { 29, 8}, \
|
||||
{ 15, 7}, { 35, 8}, { 19, 7}, { 41, 8}, \
|
||||
{ 23, 7}, { 49, 8}, { 27, 7}, { 55, 9}, \
|
||||
{ 15, 8}, { 31, 7}, { 63, 8}, { 43, 9}, \
|
||||
{ 23, 8}, { 55, 9}, { 31, 8}, { 71, 9}, \
|
||||
{ 39, 8}, { 83, 9}, { 47, 8}, { 99, 9}, \
|
||||
{ 55,10}, { 31, 9}, { 63, 8}, { 127, 9}, \
|
||||
{ 79,10}, { 47, 9}, { 103,11}, { 31,10}, \
|
||||
{ 63, 9}, { 135,10}, { 95, 9}, { 191,10}, \
|
||||
{ 111,11}, { 63,10}, { 127, 9}, { 255,10}, \
|
||||
{ 143, 9}, { 287,10}, { 159, 9}, { 319,11}, \
|
||||
{ 95,10}, { 191, 9}, { 383,10}, { 207,12}, \
|
||||
{ 63,11}, { 127,10}, { 287,11}, { 159,10}, \
|
||||
{ 351,11}, { 191,10}, { 415,11}, { 223,12}, \
|
||||
{ 127,11}, { 255,10}, { 511,11}, { 319,10}, \
|
||||
{ 639,11}, { 351,12}, { 191,11}, { 415,13}, \
|
||||
{ 8192,14}, { 16384,15}, { 32768,16} }
|
||||
#define MUL_FFT_TABLE3_SIZE 79
|
||||
{ 39, 7}, { 29, 8}, { 15, 7}, { 35, 8}, \
|
||||
{ 19, 7}, { 41, 8}, { 23, 7}, { 49, 8}, \
|
||||
{ 27, 9}, { 15, 8}, { 31, 7}, { 63, 8}, \
|
||||
{ 256, 9}, { 512,10}, { 1024,11}, { 2048,12}, \
|
||||
{ 4096,13}, { 8192,14}, { 16384,15}, { 32768,16} }
|
||||
#define MUL_FFT_TABLE3_SIZE 28
|
||||
#define MUL_FFT_THRESHOLD 5760
|
||||
|
||||
#define SQR_FFT_MODF_THRESHOLD 400 /* k = 5 */
|
||||
#define SQR_FFT_MODF_THRESHOLD 404 /* k = 5 */
|
||||
#define SQR_FFT_TABLE3 \
|
||||
{ { 400, 5}, { 25, 6}, { 13, 5}, { 27, 6}, \
|
||||
{ 25, 7}, { 13, 6}, { 28, 7}, { 15, 6}, \
|
||||
{ 32, 7}, { 19, 6}, { 39, 7}, { 29, 8}, \
|
||||
{ 15, 7}, { 35, 8}, { 19, 7}, { 41, 8}, \
|
||||
{ 23, 7}, { 47, 8}, { 27, 7}, { 55, 9}, \
|
||||
{ 15, 8}, { 39, 9}, { 23, 8}, { 55,10}, \
|
||||
{ 15, 9}, { 31, 8}, { 67, 9}, { 39, 8}, \
|
||||
{ 79, 9}, { 47, 8}, { 95, 9}, { 55,10}, \
|
||||
{ 31, 9}, { 79,10}, { 47, 9}, { 103,11}, \
|
||||
{ 31,10}, { 63, 9}, { 135,10}, { 79, 9}, \
|
||||
{ 159, 8}, { 319,10}, { 95, 9}, { 191,10}, \
|
||||
{ 111,11}, { 63,10}, { 127, 9}, { 271,10}, \
|
||||
{ 143, 9}, { 303,10}, { 159,11}, { 95,10}, \
|
||||
{ 191, 9}, { 383,10}, { 207,12}, { 63,11}, \
|
||||
{ 127,10}, { 303,11}, { 159,10}, { 367,11}, \
|
||||
{ 191,10}, { 415,11}, { 223,10}, { 447,12}, \
|
||||
{ 127,11}, { 255,10}, { 511,11}, { 287,10}, \
|
||||
{ 607,11}, { 319,10}, { 639,11}, { 351,12}, \
|
||||
{ 191,11}, { 447,13}, { 8192,14}, { 16384,15}, \
|
||||
{ 32768,16} }
|
||||
#define SQR_FFT_TABLE3_SIZE 77
|
||||
#define SQR_FFT_THRESHOLD 3136
|
||||
{ { 404, 5}, { 13, 4}, { 27, 5}, { 27, 6}, \
|
||||
{ 28, 7}, { 15, 6}, { 32, 7}, { 17, 6}, \
|
||||
{ 35, 7}, { 29, 8}, { 15, 7}, { 35, 8}, \
|
||||
{ 19, 7}, { 41, 8}, { 23, 7}, { 47, 8}, \
|
||||
{ 27, 9}, { 15, 8}, { 39, 9}, { 512,10}, \
|
||||
{ 1024,11}, { 2048,12}, { 4096,13}, { 8192,14}, \
|
||||
{ 16384,15}, { 32768,16} }
|
||||
#define SQR_FFT_TABLE3_SIZE 26
|
||||
#define SQR_FFT_THRESHOLD 3776
|
||||
|
||||
#define MULLO_BASECASE_THRESHOLD 0 /* always */
|
||||
#define MULLO_DC_THRESHOLD 120
|
||||
#define MULLO_MUL_N_THRESHOLD 11317
|
||||
#define MULLO_DC_THRESHOLD 137
|
||||
#define MULLO_MUL_N_THRESHOLD 11479
|
||||
|
||||
#define DC_DIV_QR_THRESHOLD 134
|
||||
#define DC_DIVAPPR_Q_THRESHOLD 442
|
||||
#define DC_BDIV_QR_THRESHOLD 127
|
||||
#define DC_BDIV_Q_THRESHOLD 296
|
||||
#define DC_DIV_QR_THRESHOLD 150
|
||||
#define DC_DIVAPPR_Q_THRESHOLD 494
|
||||
#define DC_BDIV_QR_THRESHOLD 148
|
||||
#define DC_BDIV_Q_THRESHOLD 345
|
||||
|
||||
#define INV_MULMOD_BNM1_THRESHOLD 66
|
||||
#define INV_NEWTON_THRESHOLD 458
|
||||
#define INV_APPR_THRESHOLD 454
|
||||
#define INV_MULMOD_BNM1_THRESHOLD 70
|
||||
#define INV_NEWTON_THRESHOLD 474
|
||||
#define INV_APPR_THRESHOLD 478
|
||||
|
||||
#define BINV_NEWTON_THRESHOLD 494
|
||||
#define REDC_1_TO_REDC_N_THRESHOLD 116
|
||||
#define BINV_NEWTON_THRESHOLD 542
|
||||
#define REDC_1_TO_REDC_N_THRESHOLD 117
|
||||
|
||||
#define MU_DIV_QR_THRESHOLD 2914
|
||||
#define MU_DIVAPPR_Q_THRESHOLD 3091
|
||||
#define MUPI_DIV_QR_THRESHOLD 221
|
||||
#define MU_BDIV_QR_THRESHOLD 2259
|
||||
#define MU_BDIV_Q_THRESHOLD 2747
|
||||
#define MU_DIV_QR_THRESHOLD 2089
|
||||
#define MU_DIVAPPR_Q_THRESHOLD 2172
|
||||
#define MUPI_DIV_QR_THRESHOLD 225
|
||||
#define MU_BDIV_QR_THRESHOLD 1528
|
||||
#define MU_BDIV_Q_THRESHOLD 2089
|
||||
|
||||
#define MATRIX22_STRASSEN_THRESHOLD 17
|
||||
#define HGCD_THRESHOLD 109
|
||||
#define GCD_DC_THRESHOLD 697
|
||||
#define GCDEXT_DC_THRESHOLD 535
|
||||
#define MATRIX22_STRASSEN_THRESHOLD 16
|
||||
#define HGCD_THRESHOLD 197
|
||||
#define GCD_DC_THRESHOLD 902
|
||||
#define GCDEXT_DC_THRESHOLD 650
|
||||
#define JACOBI_BASE_METHOD 2
|
||||
|
||||
#define GET_STR_DC_THRESHOLD 14
|
||||
#define GET_STR_PRECOMPUTE_THRESHOLD 29
|
||||
#define SET_STR_DC_THRESHOLD 321
|
||||
#define SET_STR_PRECOMPUTE_THRESHOLD 1037
|
||||
#define GET_STR_DC_THRESHOLD 20
|
||||
#define GET_STR_PRECOMPUTE_THRESHOLD 39
|
||||
#define SET_STR_DC_THRESHOLD 1045
|
||||
#define SET_STR_PRECOMPUTE_THRESHOLD 2147
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,164 +0,0 @@
|
|||
/* mp-h.in -- Definitions for the GNU multiple precision library -*-mode:c-*-
|
||||
BSD mp compatible functions.
|
||||
|
||||
Copyright 1991, 1993, 1994, 1995, 1996, 2000, 2001, 2002, 2004 Free Software
|
||||
Foundation, Inc.
|
||||
|
||||
This file is part of the GNU MP Library.
|
||||
|
||||
The GNU MP Library is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or (at your
|
||||
option) any later version.
|
||||
|
||||
The GNU MP Library is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||
License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
|
||||
|
||||
#ifndef __MP_H__
|
||||
|
||||
|
||||
/* The following (everything under ifndef __GNU_MP__) must be identical in
|
||||
gmp.h and mp.h to allow both to be included in an application or during
|
||||
the library build. Use the t-gmp-mp-h.pl script to check. */
|
||||
#ifndef __GNU_MP__
|
||||
#define __GNU_MP__ 5
|
||||
|
||||
#define __need_size_t /* tell gcc stddef.h we only want size_t */
|
||||
#if defined (__cplusplus)
|
||||
#include <cstddef> /* for size_t */
|
||||
#else
|
||||
#include <stddef.h> /* for size_t */
|
||||
#endif
|
||||
#undef __need_size_t
|
||||
|
||||
/* The following instantiated by configure, for internal use only */
|
||||
#if ! defined (__GMP_WITHIN_CONFIGURE)
|
||||
/* #undef _LONG_LONG_LIMB */
|
||||
#define __GMP_LIBGMP_DLL 0
|
||||
#endif
|
||||
|
||||
#if defined (__STDC__) \
|
||||
|| defined (__cplusplus) \
|
||||
|| defined (_AIX) \
|
||||
|| defined (__DECC) \
|
||||
|| (defined (__mips) && defined (_SYSTYPE_SVR4)) \
|
||||
|| defined (_MSC_VER) \
|
||||
|| defined (_WIN32)
|
||||
#define __GMP_HAVE_CONST 1
|
||||
#define __GMP_HAVE_PROTOTYPES 1
|
||||
#define __GMP_HAVE_TOKEN_PASTE 1
|
||||
#else
|
||||
#define __GMP_HAVE_CONST 0
|
||||
#define __GMP_HAVE_PROTOTYPES 0
|
||||
#define __GMP_HAVE_TOKEN_PASTE 0
|
||||
#endif
|
||||
|
||||
|
||||
#if __GMP_HAVE_CONST
|
||||
#define __gmp_const const
|
||||
#define __gmp_signed signed
|
||||
#else
|
||||
#define __gmp_const
|
||||
#define __gmp_signed
|
||||
#endif
|
||||
|
||||
#if defined (__GNUC__)
|
||||
#define __GMP_DECLSPEC_EXPORT __declspec(__dllexport__)
|
||||
#define __GMP_DECLSPEC_IMPORT __declspec(__dllimport__)
|
||||
#endif
|
||||
#if defined (_MSC_VER) || defined (__BORLANDC__)
|
||||
#define __GMP_DECLSPEC_EXPORT __declspec(dllexport)
|
||||
#define __GMP_DECLSPEC_IMPORT __declspec(dllimport)
|
||||
#endif
|
||||
#ifdef __WATCOMC__
|
||||
#define __GMP_DECLSPEC_EXPORT __export
|
||||
#define __GMP_DECLSPEC_IMPORT __import
|
||||
#endif
|
||||
#ifdef __IBMC__
|
||||
#define __GMP_DECLSPEC_EXPORT _Export
|
||||
#define __GMP_DECLSPEC_IMPORT _Import
|
||||
#endif
|
||||
|
||||
#if __GMP_LIBGMP_DLL
|
||||
#if __GMP_WITHIN_GMP
|
||||
#define __GMP_DECLSPEC __GMP_DECLSPEC_EXPORT
|
||||
#else
|
||||
#define __GMP_DECLSPEC __GMP_DECLSPEC_IMPORT
|
||||
#endif
|
||||
#else
|
||||
#define __GMP_DECLSPEC
|
||||
#endif
|
||||
|
||||
#ifdef __GMP_SHORT_LIMB
|
||||
typedef unsigned int mp_limb_t;
|
||||
typedef int mp_limb_signed_t;
|
||||
#else
|
||||
#ifdef _LONG_LONG_LIMB
|
||||
typedef unsigned long long int mp_limb_t;
|
||||
typedef long long int mp_limb_signed_t;
|
||||
#else
|
||||
typedef unsigned long int mp_limb_t;
|
||||
typedef long int mp_limb_signed_t;
|
||||
#endif
|
||||
#endif
|
||||
typedef unsigned long int mp_bitcnt_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int _mp_alloc; /* Number of *limbs* allocated and pointed
|
||||
to by the _mp_d field. */
|
||||
int _mp_size; /* abs(_mp_size) is the number of limbs the
|
||||
last field points to. If _mp_size is
|
||||
negative this is a negative number. */
|
||||
mp_limb_t *_mp_d; /* Pointer to the limbs. */
|
||||
} __mpz_struct;
|
||||
|
||||
#endif /* __GNU_MP__ */
|
||||
|
||||
/* User-visible types. */
|
||||
typedef __mpz_struct MINT;
|
||||
|
||||
|
||||
#if __GMP_HAVE_PROTOTYPES
|
||||
#define __GMP_PROTO(x) x
|
||||
#else
|
||||
#define __GMP_PROTO(x) ()
|
||||
#endif
|
||||
|
||||
#if defined (__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define mp_set_memory_functions __gmp_set_memory_functions
|
||||
__GMP_DECLSPEC void mp_set_memory_functions __GMP_PROTO ((void *(*) (size_t),
|
||||
void *(*) (void *, size_t, size_t),
|
||||
void (*) (void *, size_t)));
|
||||
__GMP_DECLSPEC MINT *itom __GMP_PROTO ((signed short int));
|
||||
__GMP_DECLSPEC MINT *xtom __GMP_PROTO ((const char *));
|
||||
__GMP_DECLSPEC void move __GMP_PROTO ((const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void madd __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void msub __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void mult __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void mdiv __GMP_PROTO ((const MINT *, const MINT *, MINT *, MINT *));
|
||||
__GMP_DECLSPEC void sdiv __GMP_PROTO ((const MINT *, signed short int, MINT *, signed short int *));
|
||||
__GMP_DECLSPEC void msqrt __GMP_PROTO ((const MINT *, MINT *, MINT *));
|
||||
__GMP_DECLSPEC void pow __GMP_PROTO ((const MINT *, const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void rpow __GMP_PROTO ((const MINT *, signed short int, MINT *));
|
||||
__GMP_DECLSPEC void gcd __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC int mcmp __GMP_PROTO ((const MINT *, const MINT *));
|
||||
__GMP_DECLSPEC void min __GMP_PROTO ((MINT *));
|
||||
__GMP_DECLSPEC void mout __GMP_PROTO ((const MINT *));
|
||||
__GMP_DECLSPEC char *mtox __GMP_PROTO ((const MINT *));
|
||||
__GMP_DECLSPEC void mfree __GMP_PROTO ((MINT *));
|
||||
|
||||
#if defined (__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#define __MP_H__
|
||||
#endif /* __MP_H__ */
|
|
@ -1,12 +1,14 @@
|
|||
# $NetBSD: Makefile.inc,v 1.4 2012/11/26 18:57:34 drochner Exp $
|
||||
# $NetBSD: Makefile.inc,v 1.5 2013/11/29 08:03:41 mrg Exp $
|
||||
|
||||
SRCS+= \
|
||||
random.c \
|
||||
divrem_2.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 \
|
||||
toom44_mul.c \
|
||||
toom8h_mul.c \
|
||||
|
@ -14,48 +16,56 @@ SRCS+= \
|
|||
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 \
|
||||
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 \
|
||||
toom54_mul.c \
|
||||
toom_interpolate_6pts.c \
|
||||
dcpi1_divappr_q.c \
|
||||
toom_eval_dgr3_pm2.c \
|
||||
mod_1_3.c \
|
||||
com.c \
|
||||
lshift.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 \
|
||||
mod_34lsub1.c \
|
||||
bdiv_q.c \
|
||||
toom22_mul.c \
|
||||
rshift.c \
|
||||
bsqrtinv.c \
|
||||
toom4_sqr.c \
|
||||
div_q.c \
|
||||
jacbase.c \
|
||||
gcdext_subdiv_step.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 \
|
||||
|
@ -63,95 +73,121 @@ SRCS+= \
|
|||
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 \
|
||||
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 \
|
||||
comb_tables.c \
|
||||
sbpi1_bdiv_qr.c \
|
||||
sub_err2_n.c \
|
||||
scan1.c \
|
||||
brootinv.c \
|
||||
pre_divrem_1.c \
|
||||
perfpow.c \
|
||||
get_str.c \
|
||||
mullo_basecase.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 \
|
||||
toom6h_mul.c \
|
||||
mul_fft.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 \
|
||||
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 \
|
||||
nand_n.c mpn/generic/logops_n.c \
|
||||
nior_n.c mpn/generic/logops_n.c \
|
||||
sb_div_r_sec.c mpn/generic/sb_div_sec.c \
|
||||
hamdist.c mpn/generic/popham.c \
|
||||
popcount.c mpn/generic/popham.c \
|
||||
and_n.c mpn/generic/logops_n.c \
|
||||
ior_n.c mpn/generic/logops_n.c \
|
||||
xnor_n.c mpn/generic/logops_n.c \
|
||||
iorn_n.c mpn/generic/logops_n.c \
|
||||
andn_n.c mpn/generic/logops_n.c \
|
||||
sbpi1_div_qr_sec.c mpn/generic/sbpi1_div_sec.c \
|
||||
sb_div_qr_sec.c mpn/generic/sb_div_sec.c \
|
||||
sbpi1_div_r_sec.c mpn/generic/sbpi1_div_sec.c \
|
||||
|
||||
ASM_SRCS_LIST= \
|
||||
add_n.asm mpn/arm/add_n.asm \
|
||||
submul_1.asm mpn/arm/submul_1.asm \
|
||||
nand_n.asm mpn/arm/logops_n.asm \
|
||||
rsh1sub_n.asm mpn/arm/rsh1aors_n.asm \
|
||||
add_n.asm mpn/arm/aors_n.asm \
|
||||
rsh1add_n.asm mpn/arm/rsh1aors_n.asm \
|
||||
sublsh1_n.asm mpn/arm/aorslsh1_n.asm \
|
||||
addcnd_n.asm mpn/arm/aorscnd_n.asm \
|
||||
xor_n.asm mpn/arm/logops_n.asm \
|
||||
submul_1.asm mpn/arm/aorsmul_1.asm \
|
||||
nior_n.asm mpn/arm/logops_n.asm \
|
||||
lshift.asm mpn/arm/lshift.asm \
|
||||
and_n.asm mpn/arm/logops_n.asm \
|
||||
mul_1.asm mpn/arm/mul_1.asm \
|
||||
copyd.asm mpn/arm/copyd.asm \
|
||||
bdiv_dbm1c.asm mpn/arm/bdiv_dbm1c.asm \
|
||||
udiv.asm mpn/arm/udiv.asm \
|
||||
andn_n.asm mpn/arm/logops_n.asm \
|
||||
com.asm mpn/arm/com.asm \
|
||||
copyi.asm mpn/arm/copyi.asm \
|
||||
subcnd_n.asm mpn/arm/aorscnd_n.asm \
|
||||
rshift.asm mpn/arm/rshift.asm \
|
||||
iorn_n.asm mpn/arm/logops_n.asm \
|
||||
ior_n.asm mpn/arm/logops_n.asm \
|
||||
mod_34lsub1.asm mpn/arm/mod_34lsub1.asm \
|
||||
xnor_n.asm mpn/arm/logops_n.asm \
|
||||
lshiftc.asm mpn/arm/lshiftc.asm \
|
||||
mode1o.asm mpn/arm/mode1o.asm \
|
||||
addlsh1_n.asm mpn/arm/aorslsh1_n.asm \
|
||||
invert_limb.asm mpn/arm/invert_limb.asm \
|
||||
addmul_1.asm mpn/arm/addmul_1.asm \
|
||||
sub_n.asm mpn/arm/sub_n.asm \
|
||||
addmul_1.asm mpn/arm/aorsmul_1.asm \
|
||||
sub_n.asm mpn/arm/aors_n.asm \
|
||||
|
||||
gen-trialdivtab: gen-trialdivtab.c
|
||||
${HOST_CC} -o ${.OBJDIR}/gen-trialdivtab ${.ALLSRC} -lm
|
||||
|
|
|
@ -1,44 +1,56 @@
|
|||
# $NetBSD: Makefile.inc,v 1.1 2013/07/19 22:14:23 matt Exp $
|
||||
# $NetBSD: Makefile.inc,v 1.2 2013/11/29 08:03:41 mrg Exp $
|
||||
|
||||
SRCS+= \
|
||||
random.c \
|
||||
divrem_2.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 \
|
||||
toom2_sqr.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 \
|
||||
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 \
|
||||
copyd.c \
|
||||
toom_eval_dgr3_pm2.c \
|
||||
mod_1_3.c \
|
||||
com.c \
|
||||
copyi.c \
|
||||
lshift.c \
|
||||
toom_couple_handling.c \
|
||||
lshift.c \
|
||||
add.c \
|
||||
div_qr_2.c \
|
||||
toom_interpolate_12pts.c \
|
||||
perfsqr.c \
|
||||
toom53_mul.c \
|
||||
|
@ -48,16 +60,19 @@ SRCS+= \
|
|||
mod_34lsub1.c \
|
||||
bdiv_q.c \
|
||||
toom22_mul.c \
|
||||
rshift.c \
|
||||
bsqrtinv.c \
|
||||
toom4_sqr.c \
|
||||
rshift.c \
|
||||
div_q.c \
|
||||
jacbase.c \
|
||||
gcdext_subdiv_step.c \
|
||||
addcnd_n.c \
|
||||
hgcd_matrix.c \
|
||||
toom_eval_dgr3_pm1.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 \
|
||||
|
@ -70,8 +85,9 @@ SRCS+= \
|
|||
bdiv_q_1.c \
|
||||
gcdext_1.c \
|
||||
toom63_mul.c \
|
||||
mul_basecase.c \
|
||||
div_qr_2u_pi1.c \
|
||||
toom8_sqr.c \
|
||||
mul_basecase.c \
|
||||
addmul_1.c \
|
||||
neg.c \
|
||||
gcdext_lehmer.c \
|
||||
|
@ -79,24 +95,29 @@ SRCS+= \
|
|||
dcpi1_div_q.c \
|
||||
mul_1.c \
|
||||
sub_n.c \
|
||||
subcnd_n.c \
|
||||
add_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 \
|
||||
|
@ -105,6 +126,7 @@ SRCS+= \
|
|||
toom6h_mul.c \
|
||||
sqrmod_bnm1.c \
|
||||
mul_fft.c \
|
||||
mulmid.c \
|
||||
powm.c \
|
||||
rootrem.c \
|
||||
mode1o.c \
|
||||
|
@ -114,43 +136,51 @@ 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 \
|
||||
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 \
|
||||
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 \
|
||||
and_n.c mpn/generic/logops_n.c \
|
||||
ior_n.c mpn/generic/logops_n.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= \
|
||||
|
||||
gen-trialdivtab: gen-trialdivtab.c
|
||||
${HOST_CC} -o ${.OBJDIR}/gen-trialdivtab ${.ALLSRC} -lm
|
||||
|
||||
|
|
|
@ -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 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* 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 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #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
|
||||
|
@ -217,9 +225,25 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_add_n_sub_n */
|
||||
/* #undef HAVE_NATIVE_mpn_add_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addaddmul_1msb0 */
|
||||
/* #undef HAVE_NATIVE_mpn_addcnd_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_3 */
|
||||
|
@ -228,6 +252,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_addmul_6 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_7 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_8 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_2s */
|
||||
/* #undef HAVE_NATIVE_mpn_and_n */
|
||||
/* #undef HAVE_NATIVE_mpn_andn_n */
|
||||
/* #undef HAVE_NATIVE_mpn_bdiv_dbm1c */
|
||||
|
@ -236,6 +261,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_com */
|
||||
/* #undef HAVE_NATIVE_mpn_copyd */
|
||||
/* #undef HAVE_NATIVE_mpn_copyi */
|
||||
/* #undef HAVE_NATIVE_mpn_div_qr_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_divexact_1 */
|
||||
/* #undef HAVE_NATIVE_mpn_divexact_by3c */
|
||||
/* #undef HAVE_NATIVE_mpn_divrem_1 */
|
||||
|
@ -262,6 +288,8 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_mul_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_3 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_4 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_5 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_6 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_basecase */
|
||||
/* #undef HAVE_NATIVE_mpn_nand_n */
|
||||
/* #undef HAVE_NATIVE_mpn_nior_n */
|
||||
|
@ -273,6 +301,9 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_rsblsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1add_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1add_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1sub_n */
|
||||
|
@ -280,12 +311,24 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_rshift */
|
||||
/* #undef HAVE_NATIVE_mpn_sqr_basecase */
|
||||
/* #undef HAVE_NATIVE_mpn_sqr_diagonal */
|
||||
/* #undef HAVE_NATIVE_mpn_sqr_diag_addlsh1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sub_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sub_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_subcnd_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_submul_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_tabselect */
|
||||
/* #undef HAVE_NATIVE_mpn_udiv_qrnnd */
|
||||
/* #undef HAVE_NATIVE_mpn_udiv_qrnnd_r */
|
||||
/* #undef HAVE_NATIVE_mpn_umul_ppmm */
|
||||
|
@ -450,6 +493,9 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* Define to 1 if you have the `vsnprintf' function and it works properly. */
|
||||
#define HAVE_VSNPRINTF 1
|
||||
|
||||
/* Define to 1 for Windos/64 */
|
||||
/* #undef HOST_DOS64 */
|
||||
|
||||
/* Assembler local label prefix */
|
||||
/* #undef LSYM_PREFIX */
|
||||
|
||||
|
@ -461,13 +507,13 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define PACKAGE "gmp"
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org"
|
||||
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html"
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#define PACKAGE_NAME "GNU MP"
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#define PACKAGE_STRING "GNU MP 5.0.2"
|
||||
#define PACKAGE_STRING "GNU MP 5.1.3"
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#define PACKAGE_TARNAME "gmp"
|
||||
|
@ -476,10 +522,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define PACKAGE_URL "http://www.gnu.org/software/gmp/"
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#define PACKAGE_VERSION "5.0.2"
|
||||
|
||||
/* Define to 1 if the C compiler supports function prototypes. */
|
||||
#define PROTOTYPES 1
|
||||
#define PACKAGE_VERSION "5.1.3"
|
||||
|
||||
/* Define as the return type of signal handlers (`int' or `void'). */
|
||||
#define RETSIGTYPE void
|
||||
|
@ -512,7 +555,10 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define TUNE_SQR_TOOM2_MAX SQR_TOOM2_MAX_GENERIC
|
||||
|
||||
/* Version number of package */
|
||||
#define VERSION "5.0.2"
|
||||
#define VERSION "5.1.3"
|
||||
|
||||
/* Defined to 1 as per --enable-assembly */
|
||||
#define WANT_ASSEMBLY 1
|
||||
|
||||
/* Define to 1 to enable ASSERT checking, per --enable-assert */
|
||||
/* #undef WANT_ASSERT */
|
||||
|
@ -559,9 +605,6 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
`char[]'. */
|
||||
#define YYTEXT_POINTER 1
|
||||
|
||||
/* Define like PROTOTYPES; this can be used by system headers. */
|
||||
#define __PROTOTYPES 1
|
||||
|
||||
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
||||
calls it, or to nothing if 'inline' is not supported under any name. */
|
||||
#ifndef __cplusplus
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,164 +0,0 @@
|
|||
/* mp-h.in -- Definitions for the GNU multiple precision library -*-mode:c-*-
|
||||
BSD mp compatible functions.
|
||||
|
||||
Copyright 1991, 1993, 1994, 1995, 1996, 2000, 2001, 2002, 2004 Free Software
|
||||
Foundation, Inc.
|
||||
|
||||
This file is part of the GNU MP Library.
|
||||
|
||||
The GNU MP Library is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or (at your
|
||||
option) any later version.
|
||||
|
||||
The GNU MP Library is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||
License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
|
||||
|
||||
#ifndef __MP_H__
|
||||
|
||||
|
||||
/* The following (everything under ifndef __GNU_MP__) must be identical in
|
||||
gmp.h and mp.h to allow both to be included in an application or during
|
||||
the library build. Use the t-gmp-mp-h.pl script to check. */
|
||||
#ifndef __GNU_MP__
|
||||
#define __GNU_MP__ 5
|
||||
|
||||
#define __need_size_t /* tell gcc stddef.h we only want size_t */
|
||||
#if defined (__cplusplus)
|
||||
#include <cstddef> /* for size_t */
|
||||
#else
|
||||
#include <stddef.h> /* for size_t */
|
||||
#endif
|
||||
#undef __need_size_t
|
||||
|
||||
/* The following instantiated by configure, for internal use only */
|
||||
#if ! defined (__GMP_WITHIN_CONFIGURE)
|
||||
/* #undef _LONG_LONG_LIMB */
|
||||
#define __GMP_LIBGMP_DLL 0
|
||||
#endif
|
||||
|
||||
#if defined (__STDC__) \
|
||||
|| defined (__cplusplus) \
|
||||
|| defined (_AIX) \
|
||||
|| defined (__DECC) \
|
||||
|| (defined (__mips) && defined (_SYSTYPE_SVR4)) \
|
||||
|| defined (_MSC_VER) \
|
||||
|| defined (_WIN32)
|
||||
#define __GMP_HAVE_CONST 1
|
||||
#define __GMP_HAVE_PROTOTYPES 1
|
||||
#define __GMP_HAVE_TOKEN_PASTE 1
|
||||
#else
|
||||
#define __GMP_HAVE_CONST 0
|
||||
#define __GMP_HAVE_PROTOTYPES 0
|
||||
#define __GMP_HAVE_TOKEN_PASTE 0
|
||||
#endif
|
||||
|
||||
|
||||
#if __GMP_HAVE_CONST
|
||||
#define __gmp_const const
|
||||
#define __gmp_signed signed
|
||||
#else
|
||||
#define __gmp_const
|
||||
#define __gmp_signed
|
||||
#endif
|
||||
|
||||
#if defined (__GNUC__)
|
||||
#define __GMP_DECLSPEC_EXPORT __declspec(__dllexport__)
|
||||
#define __GMP_DECLSPEC_IMPORT __declspec(__dllimport__)
|
||||
#endif
|
||||
#if defined (_MSC_VER) || defined (__BORLANDC__)
|
||||
#define __GMP_DECLSPEC_EXPORT __declspec(dllexport)
|
||||
#define __GMP_DECLSPEC_IMPORT __declspec(dllimport)
|
||||
#endif
|
||||
#ifdef __WATCOMC__
|
||||
#define __GMP_DECLSPEC_EXPORT __export
|
||||
#define __GMP_DECLSPEC_IMPORT __import
|
||||
#endif
|
||||
#ifdef __IBMC__
|
||||
#define __GMP_DECLSPEC_EXPORT _Export
|
||||
#define __GMP_DECLSPEC_IMPORT _Import
|
||||
#endif
|
||||
|
||||
#if __GMP_LIBGMP_DLL
|
||||
#if __GMP_WITHIN_GMP
|
||||
#define __GMP_DECLSPEC __GMP_DECLSPEC_EXPORT
|
||||
#else
|
||||
#define __GMP_DECLSPEC __GMP_DECLSPEC_IMPORT
|
||||
#endif
|
||||
#else
|
||||
#define __GMP_DECLSPEC
|
||||
#endif
|
||||
|
||||
#ifdef __GMP_SHORT_LIMB
|
||||
typedef unsigned int mp_limb_t;
|
||||
typedef int mp_limb_signed_t;
|
||||
#else
|
||||
#ifdef _LONG_LONG_LIMB
|
||||
typedef unsigned long long int mp_limb_t;
|
||||
typedef long long int mp_limb_signed_t;
|
||||
#else
|
||||
typedef unsigned long int mp_limb_t;
|
||||
typedef long int mp_limb_signed_t;
|
||||
#endif
|
||||
#endif
|
||||
typedef unsigned long int mp_bitcnt_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int _mp_alloc; /* Number of *limbs* allocated and pointed
|
||||
to by the _mp_d field. */
|
||||
int _mp_size; /* abs(_mp_size) is the number of limbs the
|
||||
last field points to. If _mp_size is
|
||||
negative this is a negative number. */
|
||||
mp_limb_t *_mp_d; /* Pointer to the limbs. */
|
||||
} __mpz_struct;
|
||||
|
||||
#endif /* __GNU_MP__ */
|
||||
|
||||
/* User-visible types. */
|
||||
typedef __mpz_struct MINT;
|
||||
|
||||
|
||||
#if __GMP_HAVE_PROTOTYPES
|
||||
#define __GMP_PROTO(x) x
|
||||
#else
|
||||
#define __GMP_PROTO(x) ()
|
||||
#endif
|
||||
|
||||
#if defined (__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define mp_set_memory_functions __gmp_set_memory_functions
|
||||
__GMP_DECLSPEC void mp_set_memory_functions __GMP_PROTO ((void *(*) (size_t),
|
||||
void *(*) (void *, size_t, size_t),
|
||||
void (*) (void *, size_t)));
|
||||
__GMP_DECLSPEC MINT *itom __GMP_PROTO ((signed short int));
|
||||
__GMP_DECLSPEC MINT *xtom __GMP_PROTO ((const char *));
|
||||
__GMP_DECLSPEC void move __GMP_PROTO ((const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void madd __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void msub __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void mult __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void mdiv __GMP_PROTO ((const MINT *, const MINT *, MINT *, MINT *));
|
||||
__GMP_DECLSPEC void sdiv __GMP_PROTO ((const MINT *, signed short int, MINT *, signed short int *));
|
||||
__GMP_DECLSPEC void msqrt __GMP_PROTO ((const MINT *, MINT *, MINT *));
|
||||
__GMP_DECLSPEC void pow __GMP_PROTO ((const MINT *, const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void rpow __GMP_PROTO ((const MINT *, signed short int, MINT *));
|
||||
__GMP_DECLSPEC void gcd __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC int mcmp __GMP_PROTO ((const MINT *, const MINT *));
|
||||
__GMP_DECLSPEC void min __GMP_PROTO ((MINT *));
|
||||
__GMP_DECLSPEC void mout __GMP_PROTO ((const MINT *));
|
||||
__GMP_DECLSPEC char *mtox __GMP_PROTO ((const MINT *));
|
||||
__GMP_DECLSPEC void mfree __GMP_PROTO ((MINT *));
|
||||
|
||||
#if defined (__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#define __MP_H__
|
||||
#endif /* __MP_H__ */
|
|
@ -1,12 +1,14 @@
|
|||
# $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 \
|
||||
divrem_2.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 \
|
||||
toom44_mul.c \
|
||||
toom8h_mul.c \
|
||||
|
@ -14,48 +16,56 @@ SRCS+= \
|
|||
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 \
|
||||
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 \
|
||||
toom54_mul.c \
|
||||
toom_interpolate_6pts.c \
|
||||
dcpi1_divappr_q.c \
|
||||
toom_eval_dgr3_pm2.c \
|
||||
mod_1_3.c \
|
||||
com.c \
|
||||
lshift.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 \
|
||||
mod_34lsub1.c \
|
||||
bdiv_q.c \
|
||||
toom22_mul.c \
|
||||
rshift.c \
|
||||
bsqrtinv.c \
|
||||
toom4_sqr.c \
|
||||
div_q.c \
|
||||
jacbase.c \
|
||||
gcdext_subdiv_step.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 \
|
||||
|
@ -63,95 +73,121 @@ SRCS+= \
|
|||
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 \
|
||||
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 \
|
||||
comb_tables.c \
|
||||
sbpi1_bdiv_qr.c \
|
||||
sub_err2_n.c \
|
||||
scan1.c \
|
||||
brootinv.c \
|
||||
pre_divrem_1.c \
|
||||
perfpow.c \
|
||||
get_str.c \
|
||||
mullo_basecase.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 \
|
||||
toom6h_mul.c \
|
||||
mul_fft.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 \
|
||||
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 \
|
||||
nand_n.c mpn/generic/logops_n.c \
|
||||
nior_n.c mpn/generic/logops_n.c \
|
||||
sb_div_r_sec.c mpn/generic/sb_div_sec.c \
|
||||
hamdist.c mpn/generic/popham.c \
|
||||
popcount.c mpn/generic/popham.c \
|
||||
and_n.c mpn/generic/logops_n.c \
|
||||
ior_n.c mpn/generic/logops_n.c \
|
||||
xnor_n.c mpn/generic/logops_n.c \
|
||||
iorn_n.c mpn/generic/logops_n.c \
|
||||
andn_n.c mpn/generic/logops_n.c \
|
||||
sbpi1_div_qr_sec.c mpn/generic/sbpi1_div_sec.c \
|
||||
sb_div_qr_sec.c mpn/generic/sb_div_sec.c \
|
||||
sbpi1_div_r_sec.c mpn/generic/sbpi1_div_sec.c \
|
||||
|
||||
ASM_SRCS_LIST= \
|
||||
add_n.asm mpn/arm/add_n.asm \
|
||||
submul_1.asm mpn/arm/submul_1.asm \
|
||||
nand_n.asm mpn/arm/logops_n.asm \
|
||||
rsh1sub_n.asm mpn/arm/rsh1aors_n.asm \
|
||||
add_n.asm mpn/arm/aors_n.asm \
|
||||
rsh1add_n.asm mpn/arm/rsh1aors_n.asm \
|
||||
sublsh1_n.asm mpn/arm/aorslsh1_n.asm \
|
||||
addcnd_n.asm mpn/arm/aorscnd_n.asm \
|
||||
xor_n.asm mpn/arm/logops_n.asm \
|
||||
submul_1.asm mpn/arm/aorsmul_1.asm \
|
||||
nior_n.asm mpn/arm/logops_n.asm \
|
||||
lshift.asm mpn/arm/lshift.asm \
|
||||
and_n.asm mpn/arm/logops_n.asm \
|
||||
mul_1.asm mpn/arm/mul_1.asm \
|
||||
copyd.asm mpn/arm/copyd.asm \
|
||||
bdiv_dbm1c.asm mpn/arm/bdiv_dbm1c.asm \
|
||||
udiv.asm mpn/arm/udiv.asm \
|
||||
andn_n.asm mpn/arm/logops_n.asm \
|
||||
com.asm mpn/arm/com.asm \
|
||||
copyi.asm mpn/arm/copyi.asm \
|
||||
subcnd_n.asm mpn/arm/aorscnd_n.asm \
|
||||
rshift.asm mpn/arm/rshift.asm \
|
||||
iorn_n.asm mpn/arm/logops_n.asm \
|
||||
ior_n.asm mpn/arm/logops_n.asm \
|
||||
mod_34lsub1.asm mpn/arm/mod_34lsub1.asm \
|
||||
xnor_n.asm mpn/arm/logops_n.asm \
|
||||
lshiftc.asm mpn/arm/lshiftc.asm \
|
||||
mode1o.asm mpn/arm/mode1o.asm \
|
||||
addlsh1_n.asm mpn/arm/aorslsh1_n.asm \
|
||||
invert_limb.asm mpn/arm/invert_limb.asm \
|
||||
addmul_1.asm mpn/arm/addmul_1.asm \
|
||||
sub_n.asm mpn/arm/sub_n.asm \
|
||||
addmul_1.asm mpn/arm/aorsmul_1.asm \
|
||||
sub_n.asm mpn/arm/aors_n.asm \
|
||||
|
||||
gen-trialdivtab: gen-trialdivtab.c
|
||||
${HOST_CC} -o ${.OBJDIR}/gen-trialdivtab ${.ALLSRC} -lm
|
||||
|
|
|
@ -1,12 +1,14 @@
|
|||
# $NetBSD: Makefile.inc,v 1.1 2013/05/08 05:40:15 skrll Exp $
|
||||
# $NetBSD: Makefile.inc,v 1.2 2013/11/29 08:03:41 mrg Exp $
|
||||
|
||||
SRCS+= \
|
||||
random.c \
|
||||
divrem_2.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 \
|
||||
toom44_mul.c \
|
||||
toom8h_mul.c \
|
||||
|
@ -14,48 +16,56 @@ SRCS+= \
|
|||
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 \
|
||||
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 \
|
||||
toom54_mul.c \
|
||||
toom_interpolate_6pts.c \
|
||||
dcpi1_divappr_q.c \
|
||||
toom_eval_dgr3_pm2.c \
|
||||
mod_1_3.c \
|
||||
com.c \
|
||||
lshift.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 \
|
||||
mod_34lsub1.c \
|
||||
bdiv_q.c \
|
||||
toom22_mul.c \
|
||||
rshift.c \
|
||||
bsqrtinv.c \
|
||||
toom4_sqr.c \
|
||||
div_q.c \
|
||||
jacbase.c \
|
||||
gcdext_subdiv_step.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 \
|
||||
|
@ -63,95 +73,121 @@ SRCS+= \
|
|||
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 \
|
||||
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 \
|
||||
comb_tables.c \
|
||||
sbpi1_bdiv_qr.c \
|
||||
sub_err2_n.c \
|
||||
scan1.c \
|
||||
brootinv.c \
|
||||
pre_divrem_1.c \
|
||||
perfpow.c \
|
||||
get_str.c \
|
||||
mullo_basecase.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 \
|
||||
toom6h_mul.c \
|
||||
mul_fft.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 \
|
||||
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 \
|
||||
nand_n.c mpn/generic/logops_n.c \
|
||||
nior_n.c mpn/generic/logops_n.c \
|
||||
sb_div_r_sec.c mpn/generic/sb_div_sec.c \
|
||||
hamdist.c mpn/generic/popham.c \
|
||||
popcount.c mpn/generic/popham.c \
|
||||
and_n.c mpn/generic/logops_n.c \
|
||||
ior_n.c mpn/generic/logops_n.c \
|
||||
xnor_n.c mpn/generic/logops_n.c \
|
||||
iorn_n.c mpn/generic/logops_n.c \
|
||||
andn_n.c mpn/generic/logops_n.c \
|
||||
sbpi1_div_qr_sec.c mpn/generic/sbpi1_div_sec.c \
|
||||
sb_div_qr_sec.c mpn/generic/sb_div_sec.c \
|
||||
sbpi1_div_r_sec.c mpn/generic/sbpi1_div_sec.c \
|
||||
|
||||
ASM_SRCS_LIST= \
|
||||
add_n.asm mpn/arm/add_n.asm \
|
||||
submul_1.asm mpn/arm/submul_1.asm \
|
||||
nand_n.asm mpn/arm/logops_n.asm \
|
||||
rsh1sub_n.asm mpn/arm/rsh1aors_n.asm \
|
||||
add_n.asm mpn/arm/aors_n.asm \
|
||||
rsh1add_n.asm mpn/arm/rsh1aors_n.asm \
|
||||
sublsh1_n.asm mpn/arm/aorslsh1_n.asm \
|
||||
addcnd_n.asm mpn/arm/aorscnd_n.asm \
|
||||
xor_n.asm mpn/arm/logops_n.asm \
|
||||
submul_1.asm mpn/arm/aorsmul_1.asm \
|
||||
nior_n.asm mpn/arm/logops_n.asm \
|
||||
lshift.asm mpn/arm/lshift.asm \
|
||||
and_n.asm mpn/arm/logops_n.asm \
|
||||
mul_1.asm mpn/arm/mul_1.asm \
|
||||
copyd.asm mpn/arm/copyd.asm \
|
||||
bdiv_dbm1c.asm mpn/arm/bdiv_dbm1c.asm \
|
||||
udiv.asm mpn/arm/udiv.asm \
|
||||
andn_n.asm mpn/arm/logops_n.asm \
|
||||
com.asm mpn/arm/com.asm \
|
||||
copyi.asm mpn/arm/copyi.asm \
|
||||
subcnd_n.asm mpn/arm/aorscnd_n.asm \
|
||||
rshift.asm mpn/arm/rshift.asm \
|
||||
iorn_n.asm mpn/arm/logops_n.asm \
|
||||
ior_n.asm mpn/arm/logops_n.asm \
|
||||
mod_34lsub1.asm mpn/arm/mod_34lsub1.asm \
|
||||
xnor_n.asm mpn/arm/logops_n.asm \
|
||||
lshiftc.asm mpn/arm/lshiftc.asm \
|
||||
mode1o.asm mpn/arm/mode1o.asm \
|
||||
addlsh1_n.asm mpn/arm/aorslsh1_n.asm \
|
||||
invert_limb.asm mpn/arm/invert_limb.asm \
|
||||
addmul_1.asm mpn/arm/addmul_1.asm \
|
||||
sub_n.asm mpn/arm/sub_n.asm \
|
||||
addmul_1.asm mpn/arm/aorsmul_1.asm \
|
||||
sub_n.asm mpn/arm/aors_n.asm \
|
||||
|
||||
gen-trialdivtab: gen-trialdivtab.c
|
||||
${HOST_CC} -o ${.OBJDIR}/gen-trialdivtab ${.ALLSRC} -lm
|
||||
|
|
|
@ -1,12 +1,14 @@
|
|||
# $NetBSD: Makefile.inc,v 1.1 2013/02/05 02:51:14 matt Exp $
|
||||
# $NetBSD: Makefile.inc,v 1.2 2013/11/29 08:03:42 mrg Exp $
|
||||
|
||||
SRCS+= \
|
||||
random.c \
|
||||
divrem_2.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 \
|
||||
toom44_mul.c \
|
||||
toom8h_mul.c \
|
||||
|
@ -14,48 +16,56 @@ SRCS+= \
|
|||
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 \
|
||||
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 \
|
||||
toom54_mul.c \
|
||||
toom_interpolate_6pts.c \
|
||||
dcpi1_divappr_q.c \
|
||||
toom_eval_dgr3_pm2.c \
|
||||
mod_1_3.c \
|
||||
com.c \
|
||||
lshift.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 \
|
||||
mod_34lsub1.c \
|
||||
bdiv_q.c \
|
||||
toom22_mul.c \
|
||||
rshift.c \
|
||||
bsqrtinv.c \
|
||||
toom4_sqr.c \
|
||||
div_q.c \
|
||||
jacbase.c \
|
||||
gcdext_subdiv_step.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 \
|
||||
|
@ -63,95 +73,121 @@ SRCS+= \
|
|||
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 \
|
||||
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 \
|
||||
comb_tables.c \
|
||||
sbpi1_bdiv_qr.c \
|
||||
sub_err2_n.c \
|
||||
scan1.c \
|
||||
brootinv.c \
|
||||
pre_divrem_1.c \
|
||||
perfpow.c \
|
||||
get_str.c \
|
||||
mullo_basecase.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 \
|
||||
toom6h_mul.c \
|
||||
mul_fft.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 \
|
||||
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 \
|
||||
nand_n.c mpn/generic/logops_n.c \
|
||||
nior_n.c mpn/generic/logops_n.c \
|
||||
sb_div_r_sec.c mpn/generic/sb_div_sec.c \
|
||||
hamdist.c mpn/generic/popham.c \
|
||||
popcount.c mpn/generic/popham.c \
|
||||
and_n.c mpn/generic/logops_n.c \
|
||||
ior_n.c mpn/generic/logops_n.c \
|
||||
xnor_n.c mpn/generic/logops_n.c \
|
||||
iorn_n.c mpn/generic/logops_n.c \
|
||||
andn_n.c mpn/generic/logops_n.c \
|
||||
sbpi1_div_qr_sec.c mpn/generic/sbpi1_div_sec.c \
|
||||
sb_div_qr_sec.c mpn/generic/sb_div_sec.c \
|
||||
sbpi1_div_r_sec.c mpn/generic/sbpi1_div_sec.c \
|
||||
|
||||
ASM_SRCS_LIST= \
|
||||
add_n.asm mpn/arm/add_n.asm \
|
||||
submul_1.asm mpn/arm/submul_1.asm \
|
||||
nand_n.asm mpn/arm/logops_n.asm \
|
||||
rsh1sub_n.asm mpn/arm/rsh1aors_n.asm \
|
||||
add_n.asm mpn/arm/aors_n.asm \
|
||||
rsh1add_n.asm mpn/arm/rsh1aors_n.asm \
|
||||
sublsh1_n.asm mpn/arm/aorslsh1_n.asm \
|
||||
addcnd_n.asm mpn/arm/aorscnd_n.asm \
|
||||
xor_n.asm mpn/arm/logops_n.asm \
|
||||
submul_1.asm mpn/arm/aorsmul_1.asm \
|
||||
nior_n.asm mpn/arm/logops_n.asm \
|
||||
lshift.asm mpn/arm/lshift.asm \
|
||||
and_n.asm mpn/arm/logops_n.asm \
|
||||
mul_1.asm mpn/arm/mul_1.asm \
|
||||
copyd.asm mpn/arm/copyd.asm \
|
||||
bdiv_dbm1c.asm mpn/arm/bdiv_dbm1c.asm \
|
||||
udiv.asm mpn/arm/udiv.asm \
|
||||
andn_n.asm mpn/arm/logops_n.asm \
|
||||
com.asm mpn/arm/com.asm \
|
||||
copyi.asm mpn/arm/copyi.asm \
|
||||
subcnd_n.asm mpn/arm/aorscnd_n.asm \
|
||||
rshift.asm mpn/arm/rshift.asm \
|
||||
iorn_n.asm mpn/arm/logops_n.asm \
|
||||
ior_n.asm mpn/arm/logops_n.asm \
|
||||
mod_34lsub1.asm mpn/arm/mod_34lsub1.asm \
|
||||
xnor_n.asm mpn/arm/logops_n.asm \
|
||||
lshiftc.asm mpn/arm/lshiftc.asm \
|
||||
mode1o.asm mpn/arm/mode1o.asm \
|
||||
addlsh1_n.asm mpn/arm/aorslsh1_n.asm \
|
||||
invert_limb.asm mpn/arm/invert_limb.asm \
|
||||
addmul_1.asm mpn/arm/addmul_1.asm \
|
||||
sub_n.asm mpn/arm/sub_n.asm \
|
||||
addmul_1.asm mpn/arm/aorsmul_1.asm \
|
||||
sub_n.asm mpn/arm/aors_n.asm \
|
||||
|
||||
gen-trialdivtab: gen-trialdivtab.c
|
||||
${HOST_CC} -o ${.OBJDIR}/gen-trialdivtab ${.ALLSRC} -lm
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
@ -27,7 +27,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
|
||||
/* The gmp-mparam.h file (a string) the tune program should suggest updating.
|
||||
*/
|
||||
#define GMP_MPARAM_H_SUGGEST "./mpn/arm/gmp-mparam.h"
|
||||
#define GMP_MPARAM_H_SUGGEST "/usr/src7/external/lgpl3/gmp/dist/mpn/arm/gmp-mparam.h"
|
||||
|
||||
/* Define to 1 if you have the `alarm' function. */
|
||||
#define HAVE_ALARM 1
|
||||
|
@ -57,12 +57,12 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
|
||||
/* Define to 1 if tests/libtests has calling conventions checking for the CPU
|
||||
*/
|
||||
/* #undef HAVE_CALLING_CONVENTIONS */
|
||||
#define HAVE_CALLING_CONVENTIONS 1
|
||||
|
||||
/* 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 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #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 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
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_addlsh1_n */
|
||||
#define HAVE_NATIVE_mpn_addcnd_n 1
|
||||
#define HAVE_NATIVE_mpn_addlsh1_n 1
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_3 */
|
||||
|
@ -228,14 +252,16 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_addmul_6 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_7 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_8 */
|
||||
/* #undef HAVE_NATIVE_mpn_and_n */
|
||||
/* #undef HAVE_NATIVE_mpn_andn_n */
|
||||
/* #undef HAVE_NATIVE_mpn_bdiv_dbm1c */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_2s */
|
||||
#define HAVE_NATIVE_mpn_and_n 1
|
||||
#define HAVE_NATIVE_mpn_andn_n 1
|
||||
#define HAVE_NATIVE_mpn_bdiv_dbm1c 1
|
||||
/* #undef HAVE_NATIVE_mpn_bdiv_q_1 */
|
||||
/* #undef HAVE_NATIVE_mpn_pi1_bdiv_q_1 */
|
||||
/* #undef HAVE_NATIVE_mpn_com */
|
||||
#define HAVE_NATIVE_mpn_com 1
|
||||
#define HAVE_NATIVE_mpn_copyd 1
|
||||
#define HAVE_NATIVE_mpn_copyi 1
|
||||
/* #undef HAVE_NATIVE_mpn_div_qr_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_divexact_1 */
|
||||
/* #undef HAVE_NATIVE_mpn_divexact_by3c */
|
||||
/* #undef HAVE_NATIVE_mpn_divrem_1 */
|
||||
|
@ -244,27 +270,29 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_gcd_1 */
|
||||
/* #undef HAVE_NATIVE_mpn_hamdist */
|
||||
#define HAVE_NATIVE_mpn_invert_limb 1
|
||||
/* #undef HAVE_NATIVE_mpn_ior_n */
|
||||
/* #undef HAVE_NATIVE_mpn_iorn_n */
|
||||
/* #undef HAVE_NATIVE_mpn_lshift */
|
||||
/* #undef HAVE_NATIVE_mpn_lshiftc */
|
||||
#define HAVE_NATIVE_mpn_ior_n 1
|
||||
#define HAVE_NATIVE_mpn_iorn_n 1
|
||||
#define HAVE_NATIVE_mpn_lshift 1
|
||||
#define HAVE_NATIVE_mpn_lshiftc 1
|
||||
/* #undef HAVE_NATIVE_mpn_lshsub_n */
|
||||
/* #undef HAVE_NATIVE_mpn_mod_1 */
|
||||
/* #undef HAVE_NATIVE_mpn_mod_1_1p */
|
||||
/* #undef HAVE_NATIVE_mpn_mod_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_mod_1s_2p */
|
||||
/* #undef HAVE_NATIVE_mpn_mod_1s_4p */
|
||||
/* #undef HAVE_NATIVE_mpn_mod_34lsub1 */
|
||||
#define HAVE_NATIVE_mpn_mod_34lsub1 1
|
||||
/* #undef HAVE_NATIVE_mpn_modexact_1_odd */
|
||||
/* #undef HAVE_NATIVE_mpn_modexact_1c_odd */
|
||||
#define HAVE_NATIVE_mpn_modexact_1c_odd 1
|
||||
#define HAVE_NATIVE_mpn_mul_1 1
|
||||
/* #undef HAVE_NATIVE_mpn_mul_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_3 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_4 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_5 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_6 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_basecase */
|
||||
/* #undef HAVE_NATIVE_mpn_nand_n */
|
||||
/* #undef HAVE_NATIVE_mpn_nior_n */
|
||||
#define HAVE_NATIVE_mpn_nand_n 1
|
||||
#define HAVE_NATIVE_mpn_nior_n 1
|
||||
/* #undef HAVE_NATIVE_mpn_popcount */
|
||||
/* #undef HAVE_NATIVE_mpn_preinv_divrem_1 */
|
||||
/* #undef HAVE_NATIVE_mpn_preinv_mod_1 */
|
||||
|
@ -273,25 +301,40 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_rsblsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1add_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh_nc */
|
||||
#define HAVE_NATIVE_mpn_rsh1add_n 1
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1add_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1sub_n */
|
||||
#define HAVE_NATIVE_mpn_rsh1sub_n 1
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1sub_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rshift */
|
||||
#define HAVE_NATIVE_mpn_rshift 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
|
||||
/* #undef HAVE_NATIVE_mpn_sub_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_n */
|
||||
#define HAVE_NATIVE_mpn_sub_nc 1
|
||||
#define HAVE_NATIVE_mpn_subcnd_n 1
|
||||
#define HAVE_NATIVE_mpn_sublsh1_n 1
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_submul_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_tabselect */
|
||||
#define HAVE_NATIVE_mpn_udiv_qrnnd 1
|
||||
/* #undef HAVE_NATIVE_mpn_udiv_qrnnd_r */
|
||||
/* #undef HAVE_NATIVE_mpn_umul_ppmm */
|
||||
/* #undef HAVE_NATIVE_mpn_umul_ppmm_r */
|
||||
/* #undef HAVE_NATIVE_mpn_xor_n */
|
||||
/* #undef HAVE_NATIVE_mpn_xnor_n */
|
||||
#define HAVE_NATIVE_mpn_xor_n 1
|
||||
#define HAVE_NATIVE_mpn_xnor_n 1
|
||||
|
||||
/* Define to 1 if you have the `nl_langinfo' function. */
|
||||
#define HAVE_NL_LANGINFO 1
|
||||
|
@ -450,6 +493,9 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* Define to 1 if you have the `vsnprintf' function and it works properly. */
|
||||
#define HAVE_VSNPRINTF 1
|
||||
|
||||
/* Define to 1 for Windos/64 */
|
||||
/* #undef HOST_DOS64 */
|
||||
|
||||
/* Assembler local label prefix */
|
||||
#define LSYM_PREFIX ".L"
|
||||
|
||||
|
@ -461,13 +507,13 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define PACKAGE "gmp"
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org"
|
||||
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html"
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#define PACKAGE_NAME "GNU MP"
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#define PACKAGE_STRING "GNU MP 5.0.2"
|
||||
#define PACKAGE_STRING "GNU MP 5.1.3"
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#define PACKAGE_TARNAME "gmp"
|
||||
|
@ -476,10 +522,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define PACKAGE_URL "http://www.gnu.org/software/gmp/"
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#define PACKAGE_VERSION "5.0.2"
|
||||
|
||||
/* Define to 1 if the C compiler supports function prototypes. */
|
||||
#define PROTOTYPES 1
|
||||
#define PACKAGE_VERSION "5.1.3"
|
||||
|
||||
/* Define as the return type of signal handlers (`int' or `void'). */
|
||||
#define RETSIGTYPE void
|
||||
|
@ -512,7 +555,10 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define TUNE_SQR_TOOM2_MAX SQR_TOOM2_MAX_GENERIC
|
||||
|
||||
/* Version number of package */
|
||||
#define VERSION "5.0.2"
|
||||
#define VERSION "5.1.3"
|
||||
|
||||
/* Defined to 1 as per --enable-assembly */
|
||||
#define WANT_ASSEMBLY 1
|
||||
|
||||
/* Define to 1 to enable ASSERT checking, per --enable-assert */
|
||||
/* #undef WANT_ASSERT */
|
||||
|
@ -559,9 +605,6 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
`char[]'. */
|
||||
#define YYTEXT_POINTER 1
|
||||
|
||||
/* Define like PROTOTYPES; this can be used by system headers. */
|
||||
#define __PROTOTYPES 1
|
||||
|
||||
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
||||
calls it, or to nothing if 'inline' is not supported under any name. */
|
||||
#ifndef __cplusplus
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
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>)
|
||||
|
@ -17,6 +18,7 @@ define(<LSYM_PREFIX>, <.L>)
|
|||
define(<W32>, <.long>)
|
||||
define(<ALIGN_LOGARITHMIC>,<yes>)
|
||||
define(<SQR_TOOM2_THRESHOLD>,<78>)
|
||||
define(<BMOD_1_TO_MOD_1_THRESHOLD>,<41>)
|
||||
define(<SIZEOF_UNSIGNED>,<4>)
|
||||
define(<GMP_LIMB_BITS>,32)
|
||||
define(<GMP_NAIL_BITS>,0)
|
||||
|
@ -26,7 +28,6 @@ changequote(`,')
|
|||
ifdef(`__CONFIG_M4_INCLUDED__',,`
|
||||
include(CONFIG_TOP_SRCDIR`/mpn/asm-defs.m4')
|
||||
include_mpn(`arm/arm-defs.m4')
|
||||
define_not_for_expansion(`ARM_THUMB_MODE')
|
||||
define_not_for_expansion(`HAVE_HOST_CPU_arm')
|
||||
define_not_for_expansion(`HAVE_ABI_standard')
|
||||
define_not_for_expansion(`HAVE_LIMB_LITTLE_ENDIAN')
|
||||
|
|
|
@ -21,122 +21,96 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
|
|||
#define GMP_LIMB_BITS 32
|
||||
#define BYTES_PER_MP_LIMB 4
|
||||
|
||||
/* 593MHz ARM (gcc50.fsffrance.org) */
|
||||
/* 1193MHz ARM (gcc55.fsffrance.org) */
|
||||
|
||||
#define DIVREM_1_NORM_THRESHOLD 0 /* preinv always */
|
||||
#define DIVREM_1_UNNORM_THRESHOLD 0 /* always */
|
||||
#define MOD_1_NORM_THRESHOLD 0 /* always */
|
||||
#define MOD_1_UNNORM_THRESHOLD 0 /* always */
|
||||
#define MOD_1N_TO_MOD_1_1_THRESHOLD 17
|
||||
#define MOD_1U_TO_MOD_1_1_THRESHOLD 9
|
||||
#define MOD_1_1_TO_MOD_1_2_THRESHOLD MP_SIZE_T_MAX
|
||||
#define MOD_1N_TO_MOD_1_1_THRESHOLD 56
|
||||
#define MOD_1U_TO_MOD_1_1_THRESHOLD 11
|
||||
#define MOD_1_1_TO_MOD_1_2_THRESHOLD 0 /* never mpn_mod_1_1p */
|
||||
#define MOD_1_2_TO_MOD_1_4_THRESHOLD MP_SIZE_T_MAX
|
||||
#define PREINV_MOD_1_TO_MOD_1_THRESHOLD 27
|
||||
#define PREINV_MOD_1_TO_MOD_1_THRESHOLD 71
|
||||
#define USE_PREINV_DIVREM_1 1 /* preinv always */
|
||||
#define DIVREM_2_THRESHOLD 0 /* preinv always */
|
||||
#define DIVEXACT_1_THRESHOLD 0 /* always */
|
||||
#define BMOD_1_TO_MOD_1_THRESHOLD 44
|
||||
#define BMOD_1_TO_MOD_1_THRESHOLD 41
|
||||
|
||||
#define MUL_TOOM22_THRESHOLD 34
|
||||
#define MUL_TOOM33_THRESHOLD 121
|
||||
#define MUL_TOOM44_THRESHOLD 191
|
||||
#define MUL_TOOM6H_THRESHOLD 366
|
||||
#define MUL_TOOM8H_THRESHOLD 547
|
||||
#define MUL_TOOM22_THRESHOLD 36
|
||||
#define MUL_TOOM33_THRESHOLD 125
|
||||
#define MUL_TOOM44_THRESHOLD 193
|
||||
#define MUL_TOOM6H_THRESHOLD 303
|
||||
#define MUL_TOOM8H_THRESHOLD 418
|
||||
|
||||
#define MUL_TOOM32_TO_TOOM43_THRESHOLD 129
|
||||
#define MUL_TOOM32_TO_TOOM53_THRESHOLD 191
|
||||
#define MUL_TOOM42_TO_TOOM53_THRESHOLD 117
|
||||
#define MUL_TOOM42_TO_TOOM63_THRESHOLD 137
|
||||
#define MUL_TOOM32_TO_TOOM43_THRESHOLD 125
|
||||
#define MUL_TOOM32_TO_TOOM53_THRESHOLD 176
|
||||
#define MUL_TOOM42_TO_TOOM53_THRESHOLD 114
|
||||
#define MUL_TOOM42_TO_TOOM63_THRESHOLD 129
|
||||
|
||||
#define SQR_BASECASE_THRESHOLD 13
|
||||
#define SQR_BASECASE_THRESHOLD 12
|
||||
#define SQR_TOOM2_THRESHOLD 78
|
||||
#define SQR_TOOM3_THRESHOLD 141
|
||||
#define SQR_TOOM3_THRESHOLD 137
|
||||
#define SQR_TOOM4_THRESHOLD 212
|
||||
#define SQR_TOOM6_THRESHOLD 330
|
||||
#define SQR_TOOM6_THRESHOLD 306
|
||||
#define SQR_TOOM8_THRESHOLD 422
|
||||
|
||||
#define MULMOD_BNM1_THRESHOLD 21
|
||||
#define SQRMOD_BNM1_THRESHOLD 25
|
||||
#define MULMOD_BNM1_THRESHOLD 20
|
||||
#define SQRMOD_BNM1_THRESHOLD 26
|
||||
|
||||
#define MUL_FFT_MODF_THRESHOLD 404 /* k = 5 */
|
||||
#define MUL_FFT_MODF_THRESHOLD 436 /* k = 5 */
|
||||
#define MUL_FFT_TABLE3 \
|
||||
{ { 404, 5}, { 21, 6}, { 11, 5}, { 25, 6}, \
|
||||
{ 13, 5}, { 27, 6}, { 28, 7}, { 15, 6}, \
|
||||
{ { 436, 5}, { 27, 6}, { 28, 7}, { 15, 6}, \
|
||||
{ 32, 7}, { 17, 6}, { 35, 7}, { 19, 6}, \
|
||||
{ 39, 7}, { 21, 6}, { 43, 7}, { 29, 8}, \
|
||||
{ 15, 7}, { 35, 8}, { 19, 7}, { 41, 8}, \
|
||||
{ 23, 7}, { 49, 8}, { 27, 7}, { 55, 9}, \
|
||||
{ 15, 8}, { 31, 7}, { 63, 8}, { 43, 9}, \
|
||||
{ 23, 8}, { 55, 9}, { 31, 8}, { 71, 9}, \
|
||||
{ 39, 8}, { 83, 9}, { 47, 8}, { 99, 9}, \
|
||||
{ 55,10}, { 31, 9}, { 63, 8}, { 127, 9}, \
|
||||
{ 79,10}, { 47, 9}, { 103,11}, { 31,10}, \
|
||||
{ 63, 9}, { 135,10}, { 95, 9}, { 191,10}, \
|
||||
{ 111,11}, { 63,10}, { 127, 9}, { 255,10}, \
|
||||
{ 143, 9}, { 287,10}, { 159, 9}, { 319,11}, \
|
||||
{ 95,10}, { 191, 9}, { 383,10}, { 207,12}, \
|
||||
{ 63,11}, { 127,10}, { 287,11}, { 159,10}, \
|
||||
{ 351,11}, { 191,10}, { 415,11}, { 223,12}, \
|
||||
{ 127,11}, { 255,10}, { 511,11}, { 319,10}, \
|
||||
{ 639,11}, { 351,12}, { 191,11}, { 415,13}, \
|
||||
{ 8192,14}, { 16384,15}, { 32768,16} }
|
||||
#define MUL_FFT_TABLE3_SIZE 79
|
||||
{ 39, 7}, { 29, 8}, { 15, 7}, { 35, 8}, \
|
||||
{ 19, 7}, { 41, 8}, { 23, 7}, { 49, 8}, \
|
||||
{ 27, 9}, { 15, 8}, { 31, 7}, { 63, 8}, \
|
||||
{ 256, 9}, { 512,10}, { 1024,11}, { 2048,12}, \
|
||||
{ 4096,13}, { 8192,14}, { 16384,15}, { 32768,16} }
|
||||
#define MUL_FFT_TABLE3_SIZE 28
|
||||
#define MUL_FFT_THRESHOLD 5760
|
||||
|
||||
#define SQR_FFT_MODF_THRESHOLD 400 /* k = 5 */
|
||||
#define SQR_FFT_MODF_THRESHOLD 404 /* k = 5 */
|
||||
#define SQR_FFT_TABLE3 \
|
||||
{ { 400, 5}, { 25, 6}, { 13, 5}, { 27, 6}, \
|
||||
{ 25, 7}, { 13, 6}, { 28, 7}, { 15, 6}, \
|
||||
{ 32, 7}, { 19, 6}, { 39, 7}, { 29, 8}, \
|
||||
{ 15, 7}, { 35, 8}, { 19, 7}, { 41, 8}, \
|
||||
{ 23, 7}, { 47, 8}, { 27, 7}, { 55, 9}, \
|
||||
{ 15, 8}, { 39, 9}, { 23, 8}, { 55,10}, \
|
||||
{ 15, 9}, { 31, 8}, { 67, 9}, { 39, 8}, \
|
||||
{ 79, 9}, { 47, 8}, { 95, 9}, { 55,10}, \
|
||||
{ 31, 9}, { 79,10}, { 47, 9}, { 103,11}, \
|
||||
{ 31,10}, { 63, 9}, { 135,10}, { 79, 9}, \
|
||||
{ 159, 8}, { 319,10}, { 95, 9}, { 191,10}, \
|
||||
{ 111,11}, { 63,10}, { 127, 9}, { 271,10}, \
|
||||
{ 143, 9}, { 303,10}, { 159,11}, { 95,10}, \
|
||||
{ 191, 9}, { 383,10}, { 207,12}, { 63,11}, \
|
||||
{ 127,10}, { 303,11}, { 159,10}, { 367,11}, \
|
||||
{ 191,10}, { 415,11}, { 223,10}, { 447,12}, \
|
||||
{ 127,11}, { 255,10}, { 511,11}, { 287,10}, \
|
||||
{ 607,11}, { 319,10}, { 639,11}, { 351,12}, \
|
||||
{ 191,11}, { 447,13}, { 8192,14}, { 16384,15}, \
|
||||
{ 32768,16} }
|
||||
#define SQR_FFT_TABLE3_SIZE 77
|
||||
#define SQR_FFT_THRESHOLD 3136
|
||||
{ { 404, 5}, { 13, 4}, { 27, 5}, { 27, 6}, \
|
||||
{ 28, 7}, { 15, 6}, { 32, 7}, { 17, 6}, \
|
||||
{ 35, 7}, { 29, 8}, { 15, 7}, { 35, 8}, \
|
||||
{ 19, 7}, { 41, 8}, { 23, 7}, { 47, 8}, \
|
||||
{ 27, 9}, { 15, 8}, { 39, 9}, { 512,10}, \
|
||||
{ 1024,11}, { 2048,12}, { 4096,13}, { 8192,14}, \
|
||||
{ 16384,15}, { 32768,16} }
|
||||
#define SQR_FFT_TABLE3_SIZE 26
|
||||
#define SQR_FFT_THRESHOLD 3776
|
||||
|
||||
#define MULLO_BASECASE_THRESHOLD 0 /* always */
|
||||
#define MULLO_DC_THRESHOLD 120
|
||||
#define MULLO_MUL_N_THRESHOLD 11317
|
||||
#define MULLO_DC_THRESHOLD 137
|
||||
#define MULLO_MUL_N_THRESHOLD 11479
|
||||
|
||||
#define DC_DIV_QR_THRESHOLD 134
|
||||
#define DC_DIVAPPR_Q_THRESHOLD 442
|
||||
#define DC_BDIV_QR_THRESHOLD 127
|
||||
#define DC_BDIV_Q_THRESHOLD 296
|
||||
#define DC_DIV_QR_THRESHOLD 150
|
||||
#define DC_DIVAPPR_Q_THRESHOLD 494
|
||||
#define DC_BDIV_QR_THRESHOLD 148
|
||||
#define DC_BDIV_Q_THRESHOLD 345
|
||||
|
||||
#define INV_MULMOD_BNM1_THRESHOLD 66
|
||||
#define INV_NEWTON_THRESHOLD 458
|
||||
#define INV_APPR_THRESHOLD 454
|
||||
#define INV_MULMOD_BNM1_THRESHOLD 70
|
||||
#define INV_NEWTON_THRESHOLD 474
|
||||
#define INV_APPR_THRESHOLD 478
|
||||
|
||||
#define BINV_NEWTON_THRESHOLD 494
|
||||
#define REDC_1_TO_REDC_N_THRESHOLD 116
|
||||
#define BINV_NEWTON_THRESHOLD 542
|
||||
#define REDC_1_TO_REDC_N_THRESHOLD 117
|
||||
|
||||
#define MU_DIV_QR_THRESHOLD 2914
|
||||
#define MU_DIVAPPR_Q_THRESHOLD 3091
|
||||
#define MUPI_DIV_QR_THRESHOLD 221
|
||||
#define MU_BDIV_QR_THRESHOLD 2259
|
||||
#define MU_BDIV_Q_THRESHOLD 2747
|
||||
#define MU_DIV_QR_THRESHOLD 2089
|
||||
#define MU_DIVAPPR_Q_THRESHOLD 2172
|
||||
#define MUPI_DIV_QR_THRESHOLD 225
|
||||
#define MU_BDIV_QR_THRESHOLD 1528
|
||||
#define MU_BDIV_Q_THRESHOLD 2089
|
||||
|
||||
#define MATRIX22_STRASSEN_THRESHOLD 17
|
||||
#define HGCD_THRESHOLD 109
|
||||
#define GCD_DC_THRESHOLD 697
|
||||
#define GCDEXT_DC_THRESHOLD 535
|
||||
#define MATRIX22_STRASSEN_THRESHOLD 16
|
||||
#define HGCD_THRESHOLD 197
|
||||
#define GCD_DC_THRESHOLD 902
|
||||
#define GCDEXT_DC_THRESHOLD 650
|
||||
#define JACOBI_BASE_METHOD 2
|
||||
|
||||
#define GET_STR_DC_THRESHOLD 14
|
||||
#define GET_STR_PRECOMPUTE_THRESHOLD 29
|
||||
#define SET_STR_DC_THRESHOLD 321
|
||||
#define SET_STR_PRECOMPUTE_THRESHOLD 1037
|
||||
#define GET_STR_DC_THRESHOLD 20
|
||||
#define GET_STR_PRECOMPUTE_THRESHOLD 39
|
||||
#define SET_STR_DC_THRESHOLD 1045
|
||||
#define SET_STR_PRECOMPUTE_THRESHOLD 2147
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,164 +0,0 @@
|
|||
/* mp-h.in -- Definitions for the GNU multiple precision library -*-mode:c-*-
|
||||
BSD mp compatible functions.
|
||||
|
||||
Copyright 1991, 1993, 1994, 1995, 1996, 2000, 2001, 2002, 2004 Free Software
|
||||
Foundation, Inc.
|
||||
|
||||
This file is part of the GNU MP Library.
|
||||
|
||||
The GNU MP Library is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or (at your
|
||||
option) any later version.
|
||||
|
||||
The GNU MP Library is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||
License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
|
||||
|
||||
#ifndef __MP_H__
|
||||
|
||||
|
||||
/* The following (everything under ifndef __GNU_MP__) must be identical in
|
||||
gmp.h and mp.h to allow both to be included in an application or during
|
||||
the library build. Use the t-gmp-mp-h.pl script to check. */
|
||||
#ifndef __GNU_MP__
|
||||
#define __GNU_MP__ 5
|
||||
|
||||
#define __need_size_t /* tell gcc stddef.h we only want size_t */
|
||||
#if defined (__cplusplus)
|
||||
#include <cstddef> /* for size_t */
|
||||
#else
|
||||
#include <stddef.h> /* for size_t */
|
||||
#endif
|
||||
#undef __need_size_t
|
||||
|
||||
/* The following instantiated by configure, for internal use only */
|
||||
#if ! defined (__GMP_WITHIN_CONFIGURE)
|
||||
/* #undef _LONG_LONG_LIMB */
|
||||
#define __GMP_LIBGMP_DLL 0
|
||||
#endif
|
||||
|
||||
#if defined (__STDC__) \
|
||||
|| defined (__cplusplus) \
|
||||
|| defined (_AIX) \
|
||||
|| defined (__DECC) \
|
||||
|| (defined (__mips) && defined (_SYSTYPE_SVR4)) \
|
||||
|| defined (_MSC_VER) \
|
||||
|| defined (_WIN32)
|
||||
#define __GMP_HAVE_CONST 1
|
||||
#define __GMP_HAVE_PROTOTYPES 1
|
||||
#define __GMP_HAVE_TOKEN_PASTE 1
|
||||
#else
|
||||
#define __GMP_HAVE_CONST 0
|
||||
#define __GMP_HAVE_PROTOTYPES 0
|
||||
#define __GMP_HAVE_TOKEN_PASTE 0
|
||||
#endif
|
||||
|
||||
|
||||
#if __GMP_HAVE_CONST
|
||||
#define __gmp_const const
|
||||
#define __gmp_signed signed
|
||||
#else
|
||||
#define __gmp_const
|
||||
#define __gmp_signed
|
||||
#endif
|
||||
|
||||
#if defined (__GNUC__)
|
||||
#define __GMP_DECLSPEC_EXPORT __declspec(__dllexport__)
|
||||
#define __GMP_DECLSPEC_IMPORT __declspec(__dllimport__)
|
||||
#endif
|
||||
#if defined (_MSC_VER) || defined (__BORLANDC__)
|
||||
#define __GMP_DECLSPEC_EXPORT __declspec(dllexport)
|
||||
#define __GMP_DECLSPEC_IMPORT __declspec(dllimport)
|
||||
#endif
|
||||
#ifdef __WATCOMC__
|
||||
#define __GMP_DECLSPEC_EXPORT __export
|
||||
#define __GMP_DECLSPEC_IMPORT __import
|
||||
#endif
|
||||
#ifdef __IBMC__
|
||||
#define __GMP_DECLSPEC_EXPORT _Export
|
||||
#define __GMP_DECLSPEC_IMPORT _Import
|
||||
#endif
|
||||
|
||||
#if __GMP_LIBGMP_DLL
|
||||
#if __GMP_WITHIN_GMP
|
||||
#define __GMP_DECLSPEC __GMP_DECLSPEC_EXPORT
|
||||
#else
|
||||
#define __GMP_DECLSPEC __GMP_DECLSPEC_IMPORT
|
||||
#endif
|
||||
#else
|
||||
#define __GMP_DECLSPEC
|
||||
#endif
|
||||
|
||||
#ifdef __GMP_SHORT_LIMB
|
||||
typedef unsigned int mp_limb_t;
|
||||
typedef int mp_limb_signed_t;
|
||||
#else
|
||||
#ifdef _LONG_LONG_LIMB
|
||||
typedef unsigned long long int mp_limb_t;
|
||||
typedef long long int mp_limb_signed_t;
|
||||
#else
|
||||
typedef unsigned long int mp_limb_t;
|
||||
typedef long int mp_limb_signed_t;
|
||||
#endif
|
||||
#endif
|
||||
typedef unsigned long int mp_bitcnt_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int _mp_alloc; /* Number of *limbs* allocated and pointed
|
||||
to by the _mp_d field. */
|
||||
int _mp_size; /* abs(_mp_size) is the number of limbs the
|
||||
last field points to. If _mp_size is
|
||||
negative this is a negative number. */
|
||||
mp_limb_t *_mp_d; /* Pointer to the limbs. */
|
||||
} __mpz_struct;
|
||||
|
||||
#endif /* __GNU_MP__ */
|
||||
|
||||
/* User-visible types. */
|
||||
typedef __mpz_struct MINT;
|
||||
|
||||
|
||||
#if __GMP_HAVE_PROTOTYPES
|
||||
#define __GMP_PROTO(x) x
|
||||
#else
|
||||
#define __GMP_PROTO(x) ()
|
||||
#endif
|
||||
|
||||
#if defined (__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define mp_set_memory_functions __gmp_set_memory_functions
|
||||
__GMP_DECLSPEC void mp_set_memory_functions __GMP_PROTO ((void *(*) (size_t),
|
||||
void *(*) (void *, size_t, size_t),
|
||||
void (*) (void *, size_t)));
|
||||
__GMP_DECLSPEC MINT *itom __GMP_PROTO ((signed short int));
|
||||
__GMP_DECLSPEC MINT *xtom __GMP_PROTO ((const char *));
|
||||
__GMP_DECLSPEC void move __GMP_PROTO ((const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void madd __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void msub __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void mult __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void mdiv __GMP_PROTO ((const MINT *, const MINT *, MINT *, MINT *));
|
||||
__GMP_DECLSPEC void sdiv __GMP_PROTO ((const MINT *, signed short int, MINT *, signed short int *));
|
||||
__GMP_DECLSPEC void msqrt __GMP_PROTO ((const MINT *, MINT *, MINT *));
|
||||
__GMP_DECLSPEC void pow __GMP_PROTO ((const MINT *, const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void rpow __GMP_PROTO ((const MINT *, signed short int, MINT *));
|
||||
__GMP_DECLSPEC void gcd __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC int mcmp __GMP_PROTO ((const MINT *, const MINT *));
|
||||
__GMP_DECLSPEC void min __GMP_PROTO ((MINT *));
|
||||
__GMP_DECLSPEC void mout __GMP_PROTO ((const MINT *));
|
||||
__GMP_DECLSPEC char *mtox __GMP_PROTO ((const MINT *));
|
||||
__GMP_DECLSPEC void mfree __GMP_PROTO ((MINT *));
|
||||
|
||||
#if defined (__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#define __MP_H__
|
||||
#endif /* __MP_H__ */
|
|
@ -1,12 +1,14 @@
|
|||
# $NetBSD: Makefile.inc,v 1.1 2013/05/08 05:42:17 skrll Exp $
|
||||
# $NetBSD: Makefile.inc,v 1.2 2013/11/29 08:03:42 mrg Exp $
|
||||
|
||||
SRCS+= \
|
||||
random.c \
|
||||
divrem_2.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 \
|
||||
toom44_mul.c \
|
||||
toom8h_mul.c \
|
||||
|
@ -14,48 +16,56 @@ SRCS+= \
|
|||
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 \
|
||||
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 \
|
||||
toom54_mul.c \
|
||||
toom_interpolate_6pts.c \
|
||||
dcpi1_divappr_q.c \
|
||||
toom_eval_dgr3_pm2.c \
|
||||
mod_1_3.c \
|
||||
com.c \
|
||||
lshift.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 \
|
||||
mod_34lsub1.c \
|
||||
bdiv_q.c \
|
||||
toom22_mul.c \
|
||||
rshift.c \
|
||||
bsqrtinv.c \
|
||||
toom4_sqr.c \
|
||||
div_q.c \
|
||||
jacbase.c \
|
||||
gcdext_subdiv_step.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 \
|
||||
|
@ -63,95 +73,121 @@ SRCS+= \
|
|||
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 \
|
||||
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 \
|
||||
comb_tables.c \
|
||||
sbpi1_bdiv_qr.c \
|
||||
sub_err2_n.c \
|
||||
scan1.c \
|
||||
brootinv.c \
|
||||
pre_divrem_1.c \
|
||||
perfpow.c \
|
||||
get_str.c \
|
||||
mullo_basecase.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 \
|
||||
toom6h_mul.c \
|
||||
mul_fft.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 \
|
||||
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 \
|
||||
nand_n.c mpn/generic/logops_n.c \
|
||||
nior_n.c mpn/generic/logops_n.c \
|
||||
sb_div_r_sec.c mpn/generic/sb_div_sec.c \
|
||||
hamdist.c mpn/generic/popham.c \
|
||||
popcount.c mpn/generic/popham.c \
|
||||
and_n.c mpn/generic/logops_n.c \
|
||||
ior_n.c mpn/generic/logops_n.c \
|
||||
xnor_n.c mpn/generic/logops_n.c \
|
||||
iorn_n.c mpn/generic/logops_n.c \
|
||||
andn_n.c mpn/generic/logops_n.c \
|
||||
sbpi1_div_qr_sec.c mpn/generic/sbpi1_div_sec.c \
|
||||
sb_div_qr_sec.c mpn/generic/sb_div_sec.c \
|
||||
sbpi1_div_r_sec.c mpn/generic/sbpi1_div_sec.c \
|
||||
|
||||
ASM_SRCS_LIST= \
|
||||
add_n.asm mpn/arm/add_n.asm \
|
||||
submul_1.asm mpn/arm/submul_1.asm \
|
||||
nand_n.asm mpn/arm/logops_n.asm \
|
||||
rsh1sub_n.asm mpn/arm/rsh1aors_n.asm \
|
||||
add_n.asm mpn/arm/aors_n.asm \
|
||||
rsh1add_n.asm mpn/arm/rsh1aors_n.asm \
|
||||
sublsh1_n.asm mpn/arm/aorslsh1_n.asm \
|
||||
addcnd_n.asm mpn/arm/aorscnd_n.asm \
|
||||
xor_n.asm mpn/arm/logops_n.asm \
|
||||
submul_1.asm mpn/arm/aorsmul_1.asm \
|
||||
nior_n.asm mpn/arm/logops_n.asm \
|
||||
lshift.asm mpn/arm/lshift.asm \
|
||||
and_n.asm mpn/arm/logops_n.asm \
|
||||
mul_1.asm mpn/arm/mul_1.asm \
|
||||
copyd.asm mpn/arm/copyd.asm \
|
||||
bdiv_dbm1c.asm mpn/arm/bdiv_dbm1c.asm \
|
||||
udiv.asm mpn/arm/udiv.asm \
|
||||
andn_n.asm mpn/arm/logops_n.asm \
|
||||
com.asm mpn/arm/com.asm \
|
||||
copyi.asm mpn/arm/copyi.asm \
|
||||
subcnd_n.asm mpn/arm/aorscnd_n.asm \
|
||||
rshift.asm mpn/arm/rshift.asm \
|
||||
iorn_n.asm mpn/arm/logops_n.asm \
|
||||
ior_n.asm mpn/arm/logops_n.asm \
|
||||
mod_34lsub1.asm mpn/arm/mod_34lsub1.asm \
|
||||
xnor_n.asm mpn/arm/logops_n.asm \
|
||||
lshiftc.asm mpn/arm/lshiftc.asm \
|
||||
mode1o.asm mpn/arm/mode1o.asm \
|
||||
addlsh1_n.asm mpn/arm/aorslsh1_n.asm \
|
||||
invert_limb.asm mpn/arm/invert_limb.asm \
|
||||
addmul_1.asm mpn/arm/addmul_1.asm \
|
||||
sub_n.asm mpn/arm/sub_n.asm \
|
||||
addmul_1.asm mpn/arm/aorsmul_1.asm \
|
||||
sub_n.asm mpn/arm/aors_n.asm \
|
||||
|
||||
gen-trialdivtab: gen-trialdivtab.c
|
||||
${HOST_CC} -o ${.OBJDIR}/gen-trialdivtab ${.ALLSRC} -lm
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
@ -27,7 +27,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
|
||||
/* The gmp-mparam.h file (a string) the tune program should suggest updating.
|
||||
*/
|
||||
#define GMP_MPARAM_H_SUGGEST "./mpn/arm/gmp-mparam.h"
|
||||
#define GMP_MPARAM_H_SUGGEST "/usr/src7/external/lgpl3/gmp/dist/mpn/arm/gmp-mparam.h"
|
||||
|
||||
/* Define to 1 if you have the `alarm' function. */
|
||||
#define HAVE_ALARM 1
|
||||
|
@ -57,12 +57,12 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
|
||||
/* Define to 1 if tests/libtests has calling conventions checking for the CPU
|
||||
*/
|
||||
/* #undef HAVE_CALLING_CONVENTIONS */
|
||||
#define HAVE_CALLING_CONVENTIONS 1
|
||||
|
||||
/* 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 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #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 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
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_addlsh1_n */
|
||||
#define HAVE_NATIVE_mpn_addcnd_n 1
|
||||
#define HAVE_NATIVE_mpn_addlsh1_n 1
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_3 */
|
||||
|
@ -228,14 +252,16 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_addmul_6 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_7 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_8 */
|
||||
/* #undef HAVE_NATIVE_mpn_and_n */
|
||||
/* #undef HAVE_NATIVE_mpn_andn_n */
|
||||
/* #undef HAVE_NATIVE_mpn_bdiv_dbm1c */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_2s */
|
||||
#define HAVE_NATIVE_mpn_and_n 1
|
||||
#define HAVE_NATIVE_mpn_andn_n 1
|
||||
#define HAVE_NATIVE_mpn_bdiv_dbm1c 1
|
||||
/* #undef HAVE_NATIVE_mpn_bdiv_q_1 */
|
||||
/* #undef HAVE_NATIVE_mpn_pi1_bdiv_q_1 */
|
||||
/* #undef HAVE_NATIVE_mpn_com */
|
||||
#define HAVE_NATIVE_mpn_com 1
|
||||
#define HAVE_NATIVE_mpn_copyd 1
|
||||
#define HAVE_NATIVE_mpn_copyi 1
|
||||
/* #undef HAVE_NATIVE_mpn_div_qr_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_divexact_1 */
|
||||
/* #undef HAVE_NATIVE_mpn_divexact_by3c */
|
||||
/* #undef HAVE_NATIVE_mpn_divrem_1 */
|
||||
|
@ -244,27 +270,29 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_gcd_1 */
|
||||
/* #undef HAVE_NATIVE_mpn_hamdist */
|
||||
#define HAVE_NATIVE_mpn_invert_limb 1
|
||||
/* #undef HAVE_NATIVE_mpn_ior_n */
|
||||
/* #undef HAVE_NATIVE_mpn_iorn_n */
|
||||
/* #undef HAVE_NATIVE_mpn_lshift */
|
||||
/* #undef HAVE_NATIVE_mpn_lshiftc */
|
||||
#define HAVE_NATIVE_mpn_ior_n 1
|
||||
#define HAVE_NATIVE_mpn_iorn_n 1
|
||||
#define HAVE_NATIVE_mpn_lshift 1
|
||||
#define HAVE_NATIVE_mpn_lshiftc 1
|
||||
/* #undef HAVE_NATIVE_mpn_lshsub_n */
|
||||
/* #undef HAVE_NATIVE_mpn_mod_1 */
|
||||
/* #undef HAVE_NATIVE_mpn_mod_1_1p */
|
||||
/* #undef HAVE_NATIVE_mpn_mod_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_mod_1s_2p */
|
||||
/* #undef HAVE_NATIVE_mpn_mod_1s_4p */
|
||||
/* #undef HAVE_NATIVE_mpn_mod_34lsub1 */
|
||||
#define HAVE_NATIVE_mpn_mod_34lsub1 1
|
||||
/* #undef HAVE_NATIVE_mpn_modexact_1_odd */
|
||||
/* #undef HAVE_NATIVE_mpn_modexact_1c_odd */
|
||||
#define HAVE_NATIVE_mpn_modexact_1c_odd 1
|
||||
#define HAVE_NATIVE_mpn_mul_1 1
|
||||
/* #undef HAVE_NATIVE_mpn_mul_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_3 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_4 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_5 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_6 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_basecase */
|
||||
/* #undef HAVE_NATIVE_mpn_nand_n */
|
||||
/* #undef HAVE_NATIVE_mpn_nior_n */
|
||||
#define HAVE_NATIVE_mpn_nand_n 1
|
||||
#define HAVE_NATIVE_mpn_nior_n 1
|
||||
/* #undef HAVE_NATIVE_mpn_popcount */
|
||||
/* #undef HAVE_NATIVE_mpn_preinv_divrem_1 */
|
||||
/* #undef HAVE_NATIVE_mpn_preinv_mod_1 */
|
||||
|
@ -273,25 +301,40 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_rsblsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1add_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh_nc */
|
||||
#define HAVE_NATIVE_mpn_rsh1add_n 1
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1add_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1sub_n */
|
||||
#define HAVE_NATIVE_mpn_rsh1sub_n 1
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1sub_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rshift */
|
||||
#define HAVE_NATIVE_mpn_rshift 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
|
||||
/* #undef HAVE_NATIVE_mpn_sub_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_n */
|
||||
#define HAVE_NATIVE_mpn_sub_nc 1
|
||||
#define HAVE_NATIVE_mpn_subcnd_n 1
|
||||
#define HAVE_NATIVE_mpn_sublsh1_n 1
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_submul_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_tabselect */
|
||||
#define HAVE_NATIVE_mpn_udiv_qrnnd 1
|
||||
/* #undef HAVE_NATIVE_mpn_udiv_qrnnd_r */
|
||||
/* #undef HAVE_NATIVE_mpn_umul_ppmm */
|
||||
/* #undef HAVE_NATIVE_mpn_umul_ppmm_r */
|
||||
/* #undef HAVE_NATIVE_mpn_xor_n */
|
||||
/* #undef HAVE_NATIVE_mpn_xnor_n */
|
||||
#define HAVE_NATIVE_mpn_xor_n 1
|
||||
#define HAVE_NATIVE_mpn_xnor_n 1
|
||||
|
||||
/* Define to 1 if you have the `nl_langinfo' function. */
|
||||
#define HAVE_NL_LANGINFO 1
|
||||
|
@ -450,6 +493,9 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* Define to 1 if you have the `vsnprintf' function and it works properly. */
|
||||
#define HAVE_VSNPRINTF 1
|
||||
|
||||
/* Define to 1 for Windos/64 */
|
||||
/* #undef HOST_DOS64 */
|
||||
|
||||
/* Assembler local label prefix */
|
||||
#define LSYM_PREFIX ".L"
|
||||
|
||||
|
@ -461,13 +507,13 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define PACKAGE "gmp"
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org"
|
||||
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html"
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#define PACKAGE_NAME "GNU MP"
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#define PACKAGE_STRING "GNU MP 5.0.2"
|
||||
#define PACKAGE_STRING "GNU MP 5.1.3"
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#define PACKAGE_TARNAME "gmp"
|
||||
|
@ -476,10 +522,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define PACKAGE_URL "http://www.gnu.org/software/gmp/"
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#define PACKAGE_VERSION "5.0.2"
|
||||
|
||||
/* Define to 1 if the C compiler supports function prototypes. */
|
||||
#define PROTOTYPES 1
|
||||
#define PACKAGE_VERSION "5.1.3"
|
||||
|
||||
/* Define as the return type of signal handlers (`int' or `void'). */
|
||||
#define RETSIGTYPE void
|
||||
|
@ -512,7 +555,10 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define TUNE_SQR_TOOM2_MAX SQR_TOOM2_MAX_GENERIC
|
||||
|
||||
/* Version number of package */
|
||||
#define VERSION "5.0.2"
|
||||
#define VERSION "5.1.3"
|
||||
|
||||
/* Defined to 1 as per --enable-assembly */
|
||||
#define WANT_ASSEMBLY 1
|
||||
|
||||
/* Define to 1 to enable ASSERT checking, per --enable-assert */
|
||||
/* #undef WANT_ASSERT */
|
||||
|
@ -559,9 +605,6 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
`char[]'. */
|
||||
#define YYTEXT_POINTER 1
|
||||
|
||||
/* Define like PROTOTYPES; this can be used by system headers. */
|
||||
#define __PROTOTYPES 1
|
||||
|
||||
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
||||
calls it, or to nothing if 'inline' is not supported under any name. */
|
||||
#ifndef __cplusplus
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
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>)
|
||||
|
@ -17,6 +18,7 @@ define(<LSYM_PREFIX>, <.L>)
|
|||
define(<W32>, <.long>)
|
||||
define(<ALIGN_LOGARITHMIC>,<yes>)
|
||||
define(<SQR_TOOM2_THRESHOLD>,<78>)
|
||||
define(<BMOD_1_TO_MOD_1_THRESHOLD>,<41>)
|
||||
define(<SIZEOF_UNSIGNED>,<4>)
|
||||
define(<GMP_LIMB_BITS>,32)
|
||||
define(<GMP_NAIL_BITS>,0)
|
||||
|
|
|
@ -21,122 +21,96 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
|
|||
#define GMP_LIMB_BITS 32
|
||||
#define BYTES_PER_MP_LIMB 4
|
||||
|
||||
/* 593MHz ARM (gcc50.fsffrance.org) */
|
||||
/* 1193MHz ARM (gcc55.fsffrance.org) */
|
||||
|
||||
#define DIVREM_1_NORM_THRESHOLD 0 /* preinv always */
|
||||
#define DIVREM_1_UNNORM_THRESHOLD 0 /* always */
|
||||
#define MOD_1_NORM_THRESHOLD 0 /* always */
|
||||
#define MOD_1_UNNORM_THRESHOLD 0 /* always */
|
||||
#define MOD_1N_TO_MOD_1_1_THRESHOLD 17
|
||||
#define MOD_1U_TO_MOD_1_1_THRESHOLD 9
|
||||
#define MOD_1_1_TO_MOD_1_2_THRESHOLD MP_SIZE_T_MAX
|
||||
#define MOD_1N_TO_MOD_1_1_THRESHOLD 56
|
||||
#define MOD_1U_TO_MOD_1_1_THRESHOLD 11
|
||||
#define MOD_1_1_TO_MOD_1_2_THRESHOLD 0 /* never mpn_mod_1_1p */
|
||||
#define MOD_1_2_TO_MOD_1_4_THRESHOLD MP_SIZE_T_MAX
|
||||
#define PREINV_MOD_1_TO_MOD_1_THRESHOLD 27
|
||||
#define PREINV_MOD_1_TO_MOD_1_THRESHOLD 71
|
||||
#define USE_PREINV_DIVREM_1 1 /* preinv always */
|
||||
#define DIVREM_2_THRESHOLD 0 /* preinv always */
|
||||
#define DIVEXACT_1_THRESHOLD 0 /* always */
|
||||
#define BMOD_1_TO_MOD_1_THRESHOLD 44
|
||||
#define BMOD_1_TO_MOD_1_THRESHOLD 41
|
||||
|
||||
#define MUL_TOOM22_THRESHOLD 34
|
||||
#define MUL_TOOM33_THRESHOLD 121
|
||||
#define MUL_TOOM44_THRESHOLD 191
|
||||
#define MUL_TOOM6H_THRESHOLD 366
|
||||
#define MUL_TOOM8H_THRESHOLD 547
|
||||
#define MUL_TOOM22_THRESHOLD 36
|
||||
#define MUL_TOOM33_THRESHOLD 125
|
||||
#define MUL_TOOM44_THRESHOLD 193
|
||||
#define MUL_TOOM6H_THRESHOLD 303
|
||||
#define MUL_TOOM8H_THRESHOLD 418
|
||||
|
||||
#define MUL_TOOM32_TO_TOOM43_THRESHOLD 129
|
||||
#define MUL_TOOM32_TO_TOOM53_THRESHOLD 191
|
||||
#define MUL_TOOM42_TO_TOOM53_THRESHOLD 117
|
||||
#define MUL_TOOM42_TO_TOOM63_THRESHOLD 137
|
||||
#define MUL_TOOM32_TO_TOOM43_THRESHOLD 125
|
||||
#define MUL_TOOM32_TO_TOOM53_THRESHOLD 176
|
||||
#define MUL_TOOM42_TO_TOOM53_THRESHOLD 114
|
||||
#define MUL_TOOM42_TO_TOOM63_THRESHOLD 129
|
||||
|
||||
#define SQR_BASECASE_THRESHOLD 13
|
||||
#define SQR_BASECASE_THRESHOLD 12
|
||||
#define SQR_TOOM2_THRESHOLD 78
|
||||
#define SQR_TOOM3_THRESHOLD 141
|
||||
#define SQR_TOOM3_THRESHOLD 137
|
||||
#define SQR_TOOM4_THRESHOLD 212
|
||||
#define SQR_TOOM6_THRESHOLD 330
|
||||
#define SQR_TOOM6_THRESHOLD 306
|
||||
#define SQR_TOOM8_THRESHOLD 422
|
||||
|
||||
#define MULMOD_BNM1_THRESHOLD 21
|
||||
#define SQRMOD_BNM1_THRESHOLD 25
|
||||
#define MULMOD_BNM1_THRESHOLD 20
|
||||
#define SQRMOD_BNM1_THRESHOLD 26
|
||||
|
||||
#define MUL_FFT_MODF_THRESHOLD 404 /* k = 5 */
|
||||
#define MUL_FFT_MODF_THRESHOLD 436 /* k = 5 */
|
||||
#define MUL_FFT_TABLE3 \
|
||||
{ { 404, 5}, { 21, 6}, { 11, 5}, { 25, 6}, \
|
||||
{ 13, 5}, { 27, 6}, { 28, 7}, { 15, 6}, \
|
||||
{ { 436, 5}, { 27, 6}, { 28, 7}, { 15, 6}, \
|
||||
{ 32, 7}, { 17, 6}, { 35, 7}, { 19, 6}, \
|
||||
{ 39, 7}, { 21, 6}, { 43, 7}, { 29, 8}, \
|
||||
{ 15, 7}, { 35, 8}, { 19, 7}, { 41, 8}, \
|
||||
{ 23, 7}, { 49, 8}, { 27, 7}, { 55, 9}, \
|
||||
{ 15, 8}, { 31, 7}, { 63, 8}, { 43, 9}, \
|
||||
{ 23, 8}, { 55, 9}, { 31, 8}, { 71, 9}, \
|
||||
{ 39, 8}, { 83, 9}, { 47, 8}, { 99, 9}, \
|
||||
{ 55,10}, { 31, 9}, { 63, 8}, { 127, 9}, \
|
||||
{ 79,10}, { 47, 9}, { 103,11}, { 31,10}, \
|
||||
{ 63, 9}, { 135,10}, { 95, 9}, { 191,10}, \
|
||||
{ 111,11}, { 63,10}, { 127, 9}, { 255,10}, \
|
||||
{ 143, 9}, { 287,10}, { 159, 9}, { 319,11}, \
|
||||
{ 95,10}, { 191, 9}, { 383,10}, { 207,12}, \
|
||||
{ 63,11}, { 127,10}, { 287,11}, { 159,10}, \
|
||||
{ 351,11}, { 191,10}, { 415,11}, { 223,12}, \
|
||||
{ 127,11}, { 255,10}, { 511,11}, { 319,10}, \
|
||||
{ 639,11}, { 351,12}, { 191,11}, { 415,13}, \
|
||||
{ 8192,14}, { 16384,15}, { 32768,16} }
|
||||
#define MUL_FFT_TABLE3_SIZE 79
|
||||
{ 39, 7}, { 29, 8}, { 15, 7}, { 35, 8}, \
|
||||
{ 19, 7}, { 41, 8}, { 23, 7}, { 49, 8}, \
|
||||
{ 27, 9}, { 15, 8}, { 31, 7}, { 63, 8}, \
|
||||
{ 256, 9}, { 512,10}, { 1024,11}, { 2048,12}, \
|
||||
{ 4096,13}, { 8192,14}, { 16384,15}, { 32768,16} }
|
||||
#define MUL_FFT_TABLE3_SIZE 28
|
||||
#define MUL_FFT_THRESHOLD 5760
|
||||
|
||||
#define SQR_FFT_MODF_THRESHOLD 400 /* k = 5 */
|
||||
#define SQR_FFT_MODF_THRESHOLD 404 /* k = 5 */
|
||||
#define SQR_FFT_TABLE3 \
|
||||
{ { 400, 5}, { 25, 6}, { 13, 5}, { 27, 6}, \
|
||||
{ 25, 7}, { 13, 6}, { 28, 7}, { 15, 6}, \
|
||||
{ 32, 7}, { 19, 6}, { 39, 7}, { 29, 8}, \
|
||||
{ 15, 7}, { 35, 8}, { 19, 7}, { 41, 8}, \
|
||||
{ 23, 7}, { 47, 8}, { 27, 7}, { 55, 9}, \
|
||||
{ 15, 8}, { 39, 9}, { 23, 8}, { 55,10}, \
|
||||
{ 15, 9}, { 31, 8}, { 67, 9}, { 39, 8}, \
|
||||
{ 79, 9}, { 47, 8}, { 95, 9}, { 55,10}, \
|
||||
{ 31, 9}, { 79,10}, { 47, 9}, { 103,11}, \
|
||||
{ 31,10}, { 63, 9}, { 135,10}, { 79, 9}, \
|
||||
{ 159, 8}, { 319,10}, { 95, 9}, { 191,10}, \
|
||||
{ 111,11}, { 63,10}, { 127, 9}, { 271,10}, \
|
||||
{ 143, 9}, { 303,10}, { 159,11}, { 95,10}, \
|
||||
{ 191, 9}, { 383,10}, { 207,12}, { 63,11}, \
|
||||
{ 127,10}, { 303,11}, { 159,10}, { 367,11}, \
|
||||
{ 191,10}, { 415,11}, { 223,10}, { 447,12}, \
|
||||
{ 127,11}, { 255,10}, { 511,11}, { 287,10}, \
|
||||
{ 607,11}, { 319,10}, { 639,11}, { 351,12}, \
|
||||
{ 191,11}, { 447,13}, { 8192,14}, { 16384,15}, \
|
||||
{ 32768,16} }
|
||||
#define SQR_FFT_TABLE3_SIZE 77
|
||||
#define SQR_FFT_THRESHOLD 3136
|
||||
{ { 404, 5}, { 13, 4}, { 27, 5}, { 27, 6}, \
|
||||
{ 28, 7}, { 15, 6}, { 32, 7}, { 17, 6}, \
|
||||
{ 35, 7}, { 29, 8}, { 15, 7}, { 35, 8}, \
|
||||
{ 19, 7}, { 41, 8}, { 23, 7}, { 47, 8}, \
|
||||
{ 27, 9}, { 15, 8}, { 39, 9}, { 512,10}, \
|
||||
{ 1024,11}, { 2048,12}, { 4096,13}, { 8192,14}, \
|
||||
{ 16384,15}, { 32768,16} }
|
||||
#define SQR_FFT_TABLE3_SIZE 26
|
||||
#define SQR_FFT_THRESHOLD 3776
|
||||
|
||||
#define MULLO_BASECASE_THRESHOLD 0 /* always */
|
||||
#define MULLO_DC_THRESHOLD 120
|
||||
#define MULLO_MUL_N_THRESHOLD 11317
|
||||
#define MULLO_DC_THRESHOLD 137
|
||||
#define MULLO_MUL_N_THRESHOLD 11479
|
||||
|
||||
#define DC_DIV_QR_THRESHOLD 134
|
||||
#define DC_DIVAPPR_Q_THRESHOLD 442
|
||||
#define DC_BDIV_QR_THRESHOLD 127
|
||||
#define DC_BDIV_Q_THRESHOLD 296
|
||||
#define DC_DIV_QR_THRESHOLD 150
|
||||
#define DC_DIVAPPR_Q_THRESHOLD 494
|
||||
#define DC_BDIV_QR_THRESHOLD 148
|
||||
#define DC_BDIV_Q_THRESHOLD 345
|
||||
|
||||
#define INV_MULMOD_BNM1_THRESHOLD 66
|
||||
#define INV_NEWTON_THRESHOLD 458
|
||||
#define INV_APPR_THRESHOLD 454
|
||||
#define INV_MULMOD_BNM1_THRESHOLD 70
|
||||
#define INV_NEWTON_THRESHOLD 474
|
||||
#define INV_APPR_THRESHOLD 478
|
||||
|
||||
#define BINV_NEWTON_THRESHOLD 494
|
||||
#define REDC_1_TO_REDC_N_THRESHOLD 116
|
||||
#define BINV_NEWTON_THRESHOLD 542
|
||||
#define REDC_1_TO_REDC_N_THRESHOLD 117
|
||||
|
||||
#define MU_DIV_QR_THRESHOLD 2914
|
||||
#define MU_DIVAPPR_Q_THRESHOLD 3091
|
||||
#define MUPI_DIV_QR_THRESHOLD 221
|
||||
#define MU_BDIV_QR_THRESHOLD 2259
|
||||
#define MU_BDIV_Q_THRESHOLD 2747
|
||||
#define MU_DIV_QR_THRESHOLD 2089
|
||||
#define MU_DIVAPPR_Q_THRESHOLD 2172
|
||||
#define MUPI_DIV_QR_THRESHOLD 225
|
||||
#define MU_BDIV_QR_THRESHOLD 1528
|
||||
#define MU_BDIV_Q_THRESHOLD 2089
|
||||
|
||||
#define MATRIX22_STRASSEN_THRESHOLD 17
|
||||
#define HGCD_THRESHOLD 109
|
||||
#define GCD_DC_THRESHOLD 697
|
||||
#define GCDEXT_DC_THRESHOLD 535
|
||||
#define MATRIX22_STRASSEN_THRESHOLD 16
|
||||
#define HGCD_THRESHOLD 197
|
||||
#define GCD_DC_THRESHOLD 902
|
||||
#define GCDEXT_DC_THRESHOLD 650
|
||||
#define JACOBI_BASE_METHOD 2
|
||||
|
||||
#define GET_STR_DC_THRESHOLD 14
|
||||
#define GET_STR_PRECOMPUTE_THRESHOLD 29
|
||||
#define SET_STR_DC_THRESHOLD 321
|
||||
#define SET_STR_PRECOMPUTE_THRESHOLD 1037
|
||||
#define GET_STR_DC_THRESHOLD 20
|
||||
#define GET_STR_PRECOMPUTE_THRESHOLD 39
|
||||
#define SET_STR_DC_THRESHOLD 1045
|
||||
#define SET_STR_PRECOMPUTE_THRESHOLD 2147
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,164 +0,0 @@
|
|||
/* mp-h.in -- Definitions for the GNU multiple precision library -*-mode:c-*-
|
||||
BSD mp compatible functions.
|
||||
|
||||
Copyright 1991, 1993, 1994, 1995, 1996, 2000, 2001, 2002, 2004 Free Software
|
||||
Foundation, Inc.
|
||||
|
||||
This file is part of the GNU MP Library.
|
||||
|
||||
The GNU MP Library is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or (at your
|
||||
option) any later version.
|
||||
|
||||
The GNU MP Library is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||
License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
|
||||
|
||||
#ifndef __MP_H__
|
||||
|
||||
|
||||
/* The following (everything under ifndef __GNU_MP__) must be identical in
|
||||
gmp.h and mp.h to allow both to be included in an application or during
|
||||
the library build. Use the t-gmp-mp-h.pl script to check. */
|
||||
#ifndef __GNU_MP__
|
||||
#define __GNU_MP__ 5
|
||||
|
||||
#define __need_size_t /* tell gcc stddef.h we only want size_t */
|
||||
#if defined (__cplusplus)
|
||||
#include <cstddef> /* for size_t */
|
||||
#else
|
||||
#include <stddef.h> /* for size_t */
|
||||
#endif
|
||||
#undef __need_size_t
|
||||
|
||||
/* The following instantiated by configure, for internal use only */
|
||||
#if ! defined (__GMP_WITHIN_CONFIGURE)
|
||||
/* #undef _LONG_LONG_LIMB */
|
||||
#define __GMP_LIBGMP_DLL 0
|
||||
#endif
|
||||
|
||||
#if defined (__STDC__) \
|
||||
|| defined (__cplusplus) \
|
||||
|| defined (_AIX) \
|
||||
|| defined (__DECC) \
|
||||
|| (defined (__mips) && defined (_SYSTYPE_SVR4)) \
|
||||
|| defined (_MSC_VER) \
|
||||
|| defined (_WIN32)
|
||||
#define __GMP_HAVE_CONST 1
|
||||
#define __GMP_HAVE_PROTOTYPES 1
|
||||
#define __GMP_HAVE_TOKEN_PASTE 1
|
||||
#else
|
||||
#define __GMP_HAVE_CONST 0
|
||||
#define __GMP_HAVE_PROTOTYPES 0
|
||||
#define __GMP_HAVE_TOKEN_PASTE 0
|
||||
#endif
|
||||
|
||||
|
||||
#if __GMP_HAVE_CONST
|
||||
#define __gmp_const const
|
||||
#define __gmp_signed signed
|
||||
#else
|
||||
#define __gmp_const
|
||||
#define __gmp_signed
|
||||
#endif
|
||||
|
||||
#if defined (__GNUC__)
|
||||
#define __GMP_DECLSPEC_EXPORT __declspec(__dllexport__)
|
||||
#define __GMP_DECLSPEC_IMPORT __declspec(__dllimport__)
|
||||
#endif
|
||||
#if defined (_MSC_VER) || defined (__BORLANDC__)
|
||||
#define __GMP_DECLSPEC_EXPORT __declspec(dllexport)
|
||||
#define __GMP_DECLSPEC_IMPORT __declspec(dllimport)
|
||||
#endif
|
||||
#ifdef __WATCOMC__
|
||||
#define __GMP_DECLSPEC_EXPORT __export
|
||||
#define __GMP_DECLSPEC_IMPORT __import
|
||||
#endif
|
||||
#ifdef __IBMC__
|
||||
#define __GMP_DECLSPEC_EXPORT _Export
|
||||
#define __GMP_DECLSPEC_IMPORT _Import
|
||||
#endif
|
||||
|
||||
#if __GMP_LIBGMP_DLL
|
||||
#if __GMP_WITHIN_GMP
|
||||
#define __GMP_DECLSPEC __GMP_DECLSPEC_EXPORT
|
||||
#else
|
||||
#define __GMP_DECLSPEC __GMP_DECLSPEC_IMPORT
|
||||
#endif
|
||||
#else
|
||||
#define __GMP_DECLSPEC
|
||||
#endif
|
||||
|
||||
#ifdef __GMP_SHORT_LIMB
|
||||
typedef unsigned int mp_limb_t;
|
||||
typedef int mp_limb_signed_t;
|
||||
#else
|
||||
#ifdef _LONG_LONG_LIMB
|
||||
typedef unsigned long long int mp_limb_t;
|
||||
typedef long long int mp_limb_signed_t;
|
||||
#else
|
||||
typedef unsigned long int mp_limb_t;
|
||||
typedef long int mp_limb_signed_t;
|
||||
#endif
|
||||
#endif
|
||||
typedef unsigned long int mp_bitcnt_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int _mp_alloc; /* Number of *limbs* allocated and pointed
|
||||
to by the _mp_d field. */
|
||||
int _mp_size; /* abs(_mp_size) is the number of limbs the
|
||||
last field points to. If _mp_size is
|
||||
negative this is a negative number. */
|
||||
mp_limb_t *_mp_d; /* Pointer to the limbs. */
|
||||
} __mpz_struct;
|
||||
|
||||
#endif /* __GNU_MP__ */
|
||||
|
||||
/* User-visible types. */
|
||||
typedef __mpz_struct MINT;
|
||||
|
||||
|
||||
#if __GMP_HAVE_PROTOTYPES
|
||||
#define __GMP_PROTO(x) x
|
||||
#else
|
||||
#define __GMP_PROTO(x) ()
|
||||
#endif
|
||||
|
||||
#if defined (__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define mp_set_memory_functions __gmp_set_memory_functions
|
||||
__GMP_DECLSPEC void mp_set_memory_functions __GMP_PROTO ((void *(*) (size_t),
|
||||
void *(*) (void *, size_t, size_t),
|
||||
void (*) (void *, size_t)));
|
||||
__GMP_DECLSPEC MINT *itom __GMP_PROTO ((signed short int));
|
||||
__GMP_DECLSPEC MINT *xtom __GMP_PROTO ((const char *));
|
||||
__GMP_DECLSPEC void move __GMP_PROTO ((const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void madd __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void msub __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void mult __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void mdiv __GMP_PROTO ((const MINT *, const MINT *, MINT *, MINT *));
|
||||
__GMP_DECLSPEC void sdiv __GMP_PROTO ((const MINT *, signed short int, MINT *, signed short int *));
|
||||
__GMP_DECLSPEC void msqrt __GMP_PROTO ((const MINT *, MINT *, MINT *));
|
||||
__GMP_DECLSPEC void pow __GMP_PROTO ((const MINT *, const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void rpow __GMP_PROTO ((const MINT *, signed short int, MINT *));
|
||||
__GMP_DECLSPEC void gcd __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC int mcmp __GMP_PROTO ((const MINT *, const MINT *));
|
||||
__GMP_DECLSPEC void min __GMP_PROTO ((MINT *));
|
||||
__GMP_DECLSPEC void mout __GMP_PROTO ((const MINT *));
|
||||
__GMP_DECLSPEC char *mtox __GMP_PROTO ((const MINT *));
|
||||
__GMP_DECLSPEC void mfree __GMP_PROTO ((MINT *));
|
||||
|
||||
#if defined (__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#define __MP_H__
|
||||
#endif /* __MP_H__ */
|
|
@ -1,12 +1,14 @@
|
|||
# $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:42 mrg Exp $
|
||||
|
||||
SRCS+= \
|
||||
random.c \
|
||||
divrem_2.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 \
|
||||
toom44_mul.c \
|
||||
toom8h_mul.c \
|
||||
|
@ -14,22 +16,31 @@ SRCS+= \
|
|||
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 \
|
||||
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 \
|
||||
copyd.c \
|
||||
toom_eval_dgr3_pm2.c \
|
||||
|
@ -38,6 +49,7 @@ SRCS+= \
|
|||
copyi.c \
|
||||
toom_couple_handling.c \
|
||||
add.c \
|
||||
div_qr_2.c \
|
||||
toom_interpolate_12pts.c \
|
||||
perfsqr.c \
|
||||
toom53_mul.c \
|
||||
|
@ -47,15 +59,18 @@ SRCS+= \
|
|||
mod_34lsub1.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 \
|
||||
|
@ -68,36 +83,43 @@ SRCS+= \
|
|||
bdiv_q_1.c \
|
||||
gcdext_1.c \
|
||||
toom63_mul.c \
|
||||
div_qr_2u_pi1.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 \
|
||||
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 \
|
||||
mullo_basecase.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 \
|
||||
toom6h_mul.c \
|
||||
mul_fft.c \
|
||||
sqrmod_bnm1.c \
|
||||
mul_fft.c \
|
||||
mulmid.c \
|
||||
powm.c \
|
||||
rootrem.c \
|
||||
mode1o.c \
|
||||
|
@ -107,39 +129,49 @@ 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 \
|
||||
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= \
|
||||
|
|
|
@ -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 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* 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 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #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
|
||||
|
@ -217,9 +225,25 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_add_n_sub_n */
|
||||
/* #undef HAVE_NATIVE_mpn_add_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addaddmul_1msb0 */
|
||||
/* #undef HAVE_NATIVE_mpn_addcnd_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_3 */
|
||||
|
@ -228,6 +252,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_addmul_6 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_7 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_8 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_2s */
|
||||
/* #undef HAVE_NATIVE_mpn_and_n */
|
||||
/* #undef HAVE_NATIVE_mpn_andn_n */
|
||||
/* #undef HAVE_NATIVE_mpn_bdiv_dbm1c */
|
||||
|
@ -236,6 +261,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_com */
|
||||
/* #undef HAVE_NATIVE_mpn_copyd */
|
||||
/* #undef HAVE_NATIVE_mpn_copyi */
|
||||
/* #undef HAVE_NATIVE_mpn_div_qr_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_divexact_1 */
|
||||
/* #undef HAVE_NATIVE_mpn_divexact_by3c */
|
||||
/* #undef HAVE_NATIVE_mpn_divrem_1 */
|
||||
|
@ -262,6 +288,8 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_mul_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_3 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_4 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_5 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_6 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_basecase */
|
||||
/* #undef HAVE_NATIVE_mpn_nand_n */
|
||||
/* #undef HAVE_NATIVE_mpn_nior_n */
|
||||
|
@ -273,6 +301,9 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_rsblsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1add_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1add_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1sub_n */
|
||||
|
@ -280,12 +311,24 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define HAVE_NATIVE_mpn_rshift 1
|
||||
/* #undef HAVE_NATIVE_mpn_sqr_basecase */
|
||||
#define HAVE_NATIVE_mpn_sqr_diagonal 1
|
||||
/* #undef HAVE_NATIVE_mpn_sqr_diag_addlsh1 */
|
||||
#define HAVE_NATIVE_mpn_sub_n 1
|
||||
/* #undef HAVE_NATIVE_mpn_sub_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_subcnd_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_submul_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_tabselect */
|
||||
#define HAVE_NATIVE_mpn_udiv_qrnnd 1
|
||||
/* #undef HAVE_NATIVE_mpn_udiv_qrnnd_r */
|
||||
#define HAVE_NATIVE_mpn_umul_ppmm 1
|
||||
|
@ -450,6 +493,9 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* Define to 1 if you have the `vsnprintf' function and it works properly. */
|
||||
#define HAVE_VSNPRINTF 1
|
||||
|
||||
/* Define to 1 for Windos/64 */
|
||||
/* #undef HOST_DOS64 */
|
||||
|
||||
/* Assembler local label prefix */
|
||||
#define LSYM_PREFIX ".L"
|
||||
|
||||
|
@ -461,13 +507,13 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define PACKAGE "gmp"
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org"
|
||||
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html"
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#define PACKAGE_NAME "GNU MP"
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#define PACKAGE_STRING "GNU MP 5.0.2"
|
||||
#define PACKAGE_STRING "GNU MP 5.1.3"
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#define PACKAGE_TARNAME "gmp"
|
||||
|
@ -476,10 +522,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define PACKAGE_URL "http://www.gnu.org/software/gmp/"
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#define PACKAGE_VERSION "5.0.2"
|
||||
|
||||
/* Define to 1 if the C compiler supports function prototypes. */
|
||||
#define PROTOTYPES 1
|
||||
#define PACKAGE_VERSION "5.1.3"
|
||||
|
||||
/* Define as the return type of signal handlers (`int' or `void'). */
|
||||
#define RETSIGTYPE void
|
||||
|
@ -512,7 +555,10 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define TUNE_SQR_TOOM2_MAX SQR_TOOM2_MAX_GENERIC
|
||||
|
||||
/* Version number of package */
|
||||
#define VERSION "5.0.2"
|
||||
#define VERSION "5.1.3"
|
||||
|
||||
/* Defined to 1 as per --enable-assembly */
|
||||
#define WANT_ASSEMBLY 1
|
||||
|
||||
/* Define to 1 to enable ASSERT checking, per --enable-assert */
|
||||
/* #undef WANT_ASSERT */
|
||||
|
@ -559,9 +605,6 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
`char[]'. */
|
||||
#define YYTEXT_POINTER 1
|
||||
|
||||
/* Define like PROTOTYPES; this can be used by system headers. */
|
||||
#define __PROTOTYPES 1
|
||||
|
||||
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
||||
calls it, or to nothing if 'inline' is not supported under any name. */
|
||||
#ifndef __cplusplus
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,164 +0,0 @@
|
|||
/* mp-h.in -- Definitions for the GNU multiple precision library -*-mode:c-*-
|
||||
BSD mp compatible functions.
|
||||
|
||||
Copyright 1991, 1993, 1994, 1995, 1996, 2000, 2001, 2002, 2004 Free Software
|
||||
Foundation, Inc.
|
||||
|
||||
This file is part of the GNU MP Library.
|
||||
|
||||
The GNU MP Library is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or (at your
|
||||
option) any later version.
|
||||
|
||||
The GNU MP Library is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||
License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
|
||||
|
||||
#ifndef __MP_H__
|
||||
|
||||
|
||||
/* The following (everything under ifndef __GNU_MP__) must be identical in
|
||||
gmp.h and mp.h to allow both to be included in an application or during
|
||||
the library build. Use the t-gmp-mp-h.pl script to check. */
|
||||
#ifndef __GNU_MP__
|
||||
#define __GNU_MP__ 5
|
||||
|
||||
#define __need_size_t /* tell gcc stddef.h we only want size_t */
|
||||
#if defined (__cplusplus)
|
||||
#include <cstddef> /* for size_t */
|
||||
#else
|
||||
#include <stddef.h> /* for size_t */
|
||||
#endif
|
||||
#undef __need_size_t
|
||||
|
||||
/* The following instantiated by configure, for internal use only */
|
||||
#if ! defined (__GMP_WITHIN_CONFIGURE)
|
||||
/* #undef _LONG_LONG_LIMB */
|
||||
#define __GMP_LIBGMP_DLL 0
|
||||
#endif
|
||||
|
||||
#if defined (__STDC__) \
|
||||
|| defined (__cplusplus) \
|
||||
|| defined (_AIX) \
|
||||
|| defined (__DECC) \
|
||||
|| (defined (__mips) && defined (_SYSTYPE_SVR4)) \
|
||||
|| defined (_MSC_VER) \
|
||||
|| defined (_WIN32)
|
||||
#define __GMP_HAVE_CONST 1
|
||||
#define __GMP_HAVE_PROTOTYPES 1
|
||||
#define __GMP_HAVE_TOKEN_PASTE 1
|
||||
#else
|
||||
#define __GMP_HAVE_CONST 0
|
||||
#define __GMP_HAVE_PROTOTYPES 0
|
||||
#define __GMP_HAVE_TOKEN_PASTE 0
|
||||
#endif
|
||||
|
||||
|
||||
#if __GMP_HAVE_CONST
|
||||
#define __gmp_const const
|
||||
#define __gmp_signed signed
|
||||
#else
|
||||
#define __gmp_const
|
||||
#define __gmp_signed
|
||||
#endif
|
||||
|
||||
#if defined (__GNUC__)
|
||||
#define __GMP_DECLSPEC_EXPORT __declspec(__dllexport__)
|
||||
#define __GMP_DECLSPEC_IMPORT __declspec(__dllimport__)
|
||||
#endif
|
||||
#if defined (_MSC_VER) || defined (__BORLANDC__)
|
||||
#define __GMP_DECLSPEC_EXPORT __declspec(dllexport)
|
||||
#define __GMP_DECLSPEC_IMPORT __declspec(dllimport)
|
||||
#endif
|
||||
#ifdef __WATCOMC__
|
||||
#define __GMP_DECLSPEC_EXPORT __export
|
||||
#define __GMP_DECLSPEC_IMPORT __import
|
||||
#endif
|
||||
#ifdef __IBMC__
|
||||
#define __GMP_DECLSPEC_EXPORT _Export
|
||||
#define __GMP_DECLSPEC_IMPORT _Import
|
||||
#endif
|
||||
|
||||
#if __GMP_LIBGMP_DLL
|
||||
#if __GMP_WITHIN_GMP
|
||||
#define __GMP_DECLSPEC __GMP_DECLSPEC_EXPORT
|
||||
#else
|
||||
#define __GMP_DECLSPEC __GMP_DECLSPEC_IMPORT
|
||||
#endif
|
||||
#else
|
||||
#define __GMP_DECLSPEC
|
||||
#endif
|
||||
|
||||
#ifdef __GMP_SHORT_LIMB
|
||||
typedef unsigned int mp_limb_t;
|
||||
typedef int mp_limb_signed_t;
|
||||
#else
|
||||
#ifdef _LONG_LONG_LIMB
|
||||
typedef unsigned long long int mp_limb_t;
|
||||
typedef long long int mp_limb_signed_t;
|
||||
#else
|
||||
typedef unsigned long int mp_limb_t;
|
||||
typedef long int mp_limb_signed_t;
|
||||
#endif
|
||||
#endif
|
||||
typedef unsigned long int mp_bitcnt_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int _mp_alloc; /* Number of *limbs* allocated and pointed
|
||||
to by the _mp_d field. */
|
||||
int _mp_size; /* abs(_mp_size) is the number of limbs the
|
||||
last field points to. If _mp_size is
|
||||
negative this is a negative number. */
|
||||
mp_limb_t *_mp_d; /* Pointer to the limbs. */
|
||||
} __mpz_struct;
|
||||
|
||||
#endif /* __GNU_MP__ */
|
||||
|
||||
/* User-visible types. */
|
||||
typedef __mpz_struct MINT;
|
||||
|
||||
|
||||
#if __GMP_HAVE_PROTOTYPES
|
||||
#define __GMP_PROTO(x) x
|
||||
#else
|
||||
#define __GMP_PROTO(x) ()
|
||||
#endif
|
||||
|
||||
#if defined (__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define mp_set_memory_functions __gmp_set_memory_functions
|
||||
__GMP_DECLSPEC void mp_set_memory_functions __GMP_PROTO ((void *(*) (size_t),
|
||||
void *(*) (void *, size_t, size_t),
|
||||
void (*) (void *, size_t)));
|
||||
__GMP_DECLSPEC MINT *itom __GMP_PROTO ((signed short int));
|
||||
__GMP_DECLSPEC MINT *xtom __GMP_PROTO ((const char *));
|
||||
__GMP_DECLSPEC void move __GMP_PROTO ((const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void madd __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void msub __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void mult __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void mdiv __GMP_PROTO ((const MINT *, const MINT *, MINT *, MINT *));
|
||||
__GMP_DECLSPEC void sdiv __GMP_PROTO ((const MINT *, signed short int, MINT *, signed short int *));
|
||||
__GMP_DECLSPEC void msqrt __GMP_PROTO ((const MINT *, MINT *, MINT *));
|
||||
__GMP_DECLSPEC void pow __GMP_PROTO ((const MINT *, const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void rpow __GMP_PROTO ((const MINT *, signed short int, MINT *));
|
||||
__GMP_DECLSPEC void gcd __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC int mcmp __GMP_PROTO ((const MINT *, const MINT *));
|
||||
__GMP_DECLSPEC void min __GMP_PROTO ((MINT *));
|
||||
__GMP_DECLSPEC void mout __GMP_PROTO ((const MINT *));
|
||||
__GMP_DECLSPEC char *mtox __GMP_PROTO ((const MINT *));
|
||||
__GMP_DECLSPEC void mfree __GMP_PROTO ((MINT *));
|
||||
|
||||
#if defined (__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#define __MP_H__
|
||||
#endif /* __MP_H__ */
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.inc,v 1.6 2012/11/26 18:57:35 drochner Exp $
|
||||
# $NetBSD: Makefile.inc,v 1.7 2013/11/29 08:03:42 mrg Exp $
|
||||
|
||||
SRCS+= \
|
||||
random.c \
|
||||
|
@ -6,6 +6,8 @@ SRCS+= \
|
|||
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,20 +15,28 @@ SRCS+= \
|
|||
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 \
|
||||
dcpi1_div_qr.c \
|
||||
mu_divappr_q.c \
|
||||
redc_1_sec.c \
|
||||
dcpi1_div_qr.c \
|
||||
hgcd_reduce.c \
|
||||
matrix22_mul1_inverse_vector.c \
|
||||
toom6_sqr.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 \
|
||||
toom54_mul.c \
|
||||
toom_interpolate_6pts.c \
|
||||
dcpi1_divappr_q.c \
|
||||
toom_eval_dgr3_pm2.c \
|
||||
|
@ -34,23 +44,27 @@ SRCS+= \
|
|||
com.c \
|
||||
toom_couple_handling.c \
|
||||
add.c \
|
||||
div_qr_2.c \
|
||||
toom_interpolate_12pts.c \
|
||||
perfsqr.c \
|
||||
toom53_mul.c \
|
||||
toom_eval_pm2exp.c \
|
||||
toom_interpolate_16pts.c \
|
||||
mu_div_qr.c \
|
||||
toom_interpolate_16pts.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 \
|
||||
toom_interpolate_5pts.c \
|
||||
|
@ -60,7 +74,7 @@ SRCS+= \
|
|||
sqrtrem.c \
|
||||
gcdext_1.c \
|
||||
toom63_mul.c \
|
||||
bdiv_q_1.c \
|
||||
div_qr_2u_pi1.c \
|
||||
toom8_sqr.c \
|
||||
neg.c \
|
||||
gcdext_lehmer.c \
|
||||
|
@ -70,26 +84,32 @@ SRCS+= \
|
|||
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 \
|
||||
mullo_basecase.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 \
|
||||
toom6h_mul.c \
|
||||
mul_fft.c \
|
||||
sqrmod_bnm1.c \
|
||||
mul_fft.c \
|
||||
mulmid.c \
|
||||
powm.c \
|
||||
rootrem.c \
|
||||
mode1o.c \
|
||||
|
@ -98,46 +118,78 @@ SRCS+= \
|
|||
lshiftc.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 \
|
||||
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 \
|
||||
and_n.c mpn/generic/logops_n.c \
|
||||
ior_n.c mpn/generic/logops_n.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= \
|
||||
add_n.asm mpn/x86/aors_n.asm \
|
||||
sqr_basecase.asm mpn/x86/sqr_basecase.asm \
|
||||
bdiv_q_1.asm mpn/x86/bdiv_q_1.asm \
|
||||
submul_1.asm mpn/x86/aorsmul_1.asm \
|
||||
umul.asm mpn/x86/umul.asm \
|
||||
mul_basecase.asm mpn/x86/mul_basecase.asm \
|
||||
tabselect.asm mpn/x86/tabselect.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 \
|
||||
addmul_1.asm mpn/x86/aorsmul_1.asm \
|
||||
divrem_2.asm mpn/x86/divrem_2.asm \
|
||||
sub_n.asm mpn/x86/aors_n.asm \
|
||||
|
||||
#ASM_SRCS_LIST= \
|
||||
# submul_1.asm mpn/x86/aorsmul_1.asm \
|
||||
# bdiv_dbm1c.asm mpn/x86/bdiv_dbm1c.asm \
|
||||
# addmul_1.asm mpn/x86/aorsmul_1.asm \
|
||||
# divrem_2.asm mpn/x86/divrem_2.asm \
|
||||
|
||||
# XXX using C versions
|
||||
# add_n.asm mpn/x86/aors_n.asm \
|
||||
|
@ -158,8 +210,8 @@ ASM_SRCS_LIST= \
|
|||
|
||||
# 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
|
||||
#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
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
@ -27,7 +27,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
|
||||
/* The gmp-mparam.h file (a string) the tune program should suggest updating.
|
||||
*/
|
||||
#define GMP_MPARAM_H_SUGGEST "/usr/src/external/lgpl3/gmp/dist/mpn/x86/i486/gmp-mparam.h"
|
||||
#define GMP_MPARAM_H_SUGGEST "./mpn/x86/i486/gmp-mparam.h"
|
||||
|
||||
/* Define to 1 if you have the `alarm' function. */
|
||||
#define HAVE_ALARM 1
|
||||
|
@ -62,7 +62,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* 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 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #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,12 +223,27 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
implementation of the corresponding routine exists. */
|
||||
#define HAVE_NATIVE_mpn_add_n 1
|
||||
/* #undef HAVE_NATIVE_mpn_add_n_sub_n */
|
||||
/* XXXMRG */
|
||||
/* #define HAVE_NATIVE_mpn_add_nc 1 */
|
||||
#define HAVE_NATIVE_mpn_add_nc 1
|
||||
/* #undef HAVE_NATIVE_mpn_addaddmul_1msb0 */
|
||||
/* #undef HAVE_NATIVE_mpn_addcnd_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_3 */
|
||||
|
@ -229,14 +252,16 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_addmul_6 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_7 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_8 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_2s */
|
||||
/* #undef HAVE_NATIVE_mpn_and_n */
|
||||
/* #undef HAVE_NATIVE_mpn_andn_n */
|
||||
#define HAVE_NATIVE_mpn_bdiv_dbm1c 1
|
||||
/* #undef HAVE_NATIVE_mpn_bdiv_q_1 */
|
||||
/* #undef HAVE_NATIVE_mpn_pi1_bdiv_q_1 */
|
||||
#define HAVE_NATIVE_mpn_bdiv_q_1 1
|
||||
#define HAVE_NATIVE_mpn_pi1_bdiv_q_1 1
|
||||
/* #undef HAVE_NATIVE_mpn_com */
|
||||
#define HAVE_NATIVE_mpn_copyd 1
|
||||
#define HAVE_NATIVE_mpn_copyi 1
|
||||
/* #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
|
||||
|
@ -244,8 +269,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define HAVE_NATIVE_mpn_divrem_2 1
|
||||
/* #undef HAVE_NATIVE_mpn_gcd_1 */
|
||||
/* #undef HAVE_NATIVE_mpn_hamdist */
|
||||
/* XXXMRG */
|
||||
/* #define HAVE_NATIVE_mpn_invert_limb 1 */
|
||||
/* #undef HAVE_NATIVE_mpn_invert_limb */
|
||||
/* #undef HAVE_NATIVE_mpn_ior_n */
|
||||
/* #undef HAVE_NATIVE_mpn_iorn_n */
|
||||
#define HAVE_NATIVE_mpn_lshift 1
|
||||
|
@ -264,6 +288,8 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_mul_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_3 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_4 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_5 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_6 */
|
||||
#define HAVE_NATIVE_mpn_mul_basecase 1
|
||||
/* #undef HAVE_NATIVE_mpn_nand_n */
|
||||
/* #undef HAVE_NATIVE_mpn_nior_n */
|
||||
|
@ -275,6 +301,9 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_rsblsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1add_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1add_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1sub_n */
|
||||
|
@ -282,12 +311,24 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define HAVE_NATIVE_mpn_rshift 1
|
||||
#define HAVE_NATIVE_mpn_sqr_basecase 1
|
||||
/* #undef HAVE_NATIVE_mpn_sqr_diagonal */
|
||||
/* #undef HAVE_NATIVE_mpn_sqr_diag_addlsh1 */
|
||||
#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_subcnd_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_submul_1c */
|
||||
#define HAVE_NATIVE_mpn_tabselect 1
|
||||
#define HAVE_NATIVE_mpn_udiv_qrnnd 1
|
||||
/* #undef HAVE_NATIVE_mpn_udiv_qrnnd_r */
|
||||
#define HAVE_NATIVE_mpn_umul_ppmm 1
|
||||
|
@ -318,7 +359,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_PSTAT_GETPROCESSOR */
|
||||
|
||||
/* Define to 1 if the system has the type `ptrdiff_t'. */
|
||||
#define HAVE_PTRDIFF_T 1
|
||||
/* #undef HAVE_PTRDIFF_T */
|
||||
|
||||
/* Define to 1 if the system has the type `quad_t'. */
|
||||
#define HAVE_QUAD_T 1
|
||||
|
@ -452,6 +493,9 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* Define to 1 if you have the `vsnprintf' function and it works properly. */
|
||||
#define HAVE_VSNPRINTF 1
|
||||
|
||||
/* Define to 1 for Windos/64 */
|
||||
/* #undef HOST_DOS64 */
|
||||
|
||||
/* Assembler local label prefix */
|
||||
#define LSYM_PREFIX ".L"
|
||||
|
||||
|
@ -463,13 +507,13 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define PACKAGE "gmp"
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org"
|
||||
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html"
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#define PACKAGE_NAME "GNU MP"
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#define PACKAGE_STRING "GNU MP 5.0.2"
|
||||
#define PACKAGE_STRING "GNU MP 5.1.3"
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#define PACKAGE_TARNAME "gmp"
|
||||
|
@ -478,10 +522,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define PACKAGE_URL "http://www.gnu.org/software/gmp/"
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#define PACKAGE_VERSION "5.0.2"
|
||||
|
||||
/* Define to 1 if the C compiler supports function prototypes. */
|
||||
#define PROTOTYPES 1
|
||||
#define PACKAGE_VERSION "5.1.3"
|
||||
|
||||
/* Define as the return type of signal handlers (`int' or `void'). */
|
||||
#define RETSIGTYPE void
|
||||
|
@ -505,7 +546,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef SSCANF_WRITABLE_INPUT */
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#define STDC_HEADERS 1
|
||||
/* #undef STDC_HEADERS */
|
||||
|
||||
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
|
||||
#define TIME_WITH_SYS_TIME 1
|
||||
|
@ -514,7 +555,10 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef TUNE_SQR_TOOM2_MAX */
|
||||
|
||||
/* Version number of package */
|
||||
#define VERSION "5.0.2"
|
||||
#define VERSION "5.1.3"
|
||||
|
||||
/* Defined to 1 as per --enable-assembly */
|
||||
#define WANT_ASSEMBLY 1
|
||||
|
||||
/* Define to 1 to enable ASSERT checking, per --enable-assert */
|
||||
/* #undef WANT_ASSERT */
|
||||
|
@ -561,9 +605,6 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
`char[]'. */
|
||||
#define YYTEXT_POINTER 1
|
||||
|
||||
/* Define like PROTOTYPES; this can be used by system headers. */
|
||||
#define __PROTOTYPES 1
|
||||
|
||||
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
||||
calls it, or to nothing if 'inline' is not supported under any name. */
|
||||
#ifndef __cplusplus
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,164 +0,0 @@
|
|||
/* mp-h.in -- Definitions for the GNU multiple precision library -*-mode:c-*-
|
||||
BSD mp compatible functions.
|
||||
|
||||
Copyright 1991, 1993, 1994, 1995, 1996, 2000, 2001, 2002, 2004 Free Software
|
||||
Foundation, Inc.
|
||||
|
||||
This file is part of the GNU MP Library.
|
||||
|
||||
The GNU MP Library is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or (at your
|
||||
option) any later version.
|
||||
|
||||
The GNU MP Library is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||
License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
|
||||
|
||||
#ifndef __MP_H__
|
||||
|
||||
|
||||
/* The following (everything under ifndef __GNU_MP__) must be identical in
|
||||
gmp.h and mp.h to allow both to be included in an application or during
|
||||
the library build. Use the t-gmp-mp-h.pl script to check. */
|
||||
#ifndef __GNU_MP__
|
||||
#define __GNU_MP__ 5
|
||||
|
||||
#define __need_size_t /* tell gcc stddef.h we only want size_t */
|
||||
#if defined (__cplusplus)
|
||||
#include <cstddef> /* for size_t */
|
||||
#else
|
||||
#include <stddef.h> /* for size_t */
|
||||
#endif
|
||||
#undef __need_size_t
|
||||
|
||||
/* The following instantiated by configure, for internal use only */
|
||||
#if ! defined (__GMP_WITHIN_CONFIGURE)
|
||||
/* #undef _LONG_LONG_LIMB */
|
||||
#define __GMP_LIBGMP_DLL 0
|
||||
#endif
|
||||
|
||||
#if defined (__STDC__) \
|
||||
|| defined (__cplusplus) \
|
||||
|| defined (_AIX) \
|
||||
|| defined (__DECC) \
|
||||
|| (defined (__mips) && defined (_SYSTYPE_SVR4)) \
|
||||
|| defined (_MSC_VER) \
|
||||
|| defined (_WIN32)
|
||||
#define __GMP_HAVE_CONST 1
|
||||
#define __GMP_HAVE_PROTOTYPES 1
|
||||
#define __GMP_HAVE_TOKEN_PASTE 1
|
||||
#else
|
||||
#define __GMP_HAVE_CONST 0
|
||||
#define __GMP_HAVE_PROTOTYPES 0
|
||||
#define __GMP_HAVE_TOKEN_PASTE 0
|
||||
#endif
|
||||
|
||||
|
||||
#if __GMP_HAVE_CONST
|
||||
#define __gmp_const const
|
||||
#define __gmp_signed signed
|
||||
#else
|
||||
#define __gmp_const
|
||||
#define __gmp_signed
|
||||
#endif
|
||||
|
||||
#if defined (__GNUC__)
|
||||
#define __GMP_DECLSPEC_EXPORT __declspec(__dllexport__)
|
||||
#define __GMP_DECLSPEC_IMPORT __declspec(__dllimport__)
|
||||
#endif
|
||||
#if defined (_MSC_VER) || defined (__BORLANDC__)
|
||||
#define __GMP_DECLSPEC_EXPORT __declspec(dllexport)
|
||||
#define __GMP_DECLSPEC_IMPORT __declspec(dllimport)
|
||||
#endif
|
||||
#ifdef __WATCOMC__
|
||||
#define __GMP_DECLSPEC_EXPORT __export
|
||||
#define __GMP_DECLSPEC_IMPORT __import
|
||||
#endif
|
||||
#ifdef __IBMC__
|
||||
#define __GMP_DECLSPEC_EXPORT _Export
|
||||
#define __GMP_DECLSPEC_IMPORT _Import
|
||||
#endif
|
||||
|
||||
#if __GMP_LIBGMP_DLL
|
||||
#if __GMP_WITHIN_GMP
|
||||
#define __GMP_DECLSPEC __GMP_DECLSPEC_EXPORT
|
||||
#else
|
||||
#define __GMP_DECLSPEC __GMP_DECLSPEC_IMPORT
|
||||
#endif
|
||||
#else
|
||||
#define __GMP_DECLSPEC
|
||||
#endif
|
||||
|
||||
#ifdef __GMP_SHORT_LIMB
|
||||
typedef unsigned int mp_limb_t;
|
||||
typedef int mp_limb_signed_t;
|
||||
#else
|
||||
#ifdef _LONG_LONG_LIMB
|
||||
typedef unsigned long long int mp_limb_t;
|
||||
typedef long long int mp_limb_signed_t;
|
||||
#else
|
||||
typedef unsigned long int mp_limb_t;
|
||||
typedef long int mp_limb_signed_t;
|
||||
#endif
|
||||
#endif
|
||||
typedef unsigned long int mp_bitcnt_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int _mp_alloc; /* Number of *limbs* allocated and pointed
|
||||
to by the _mp_d field. */
|
||||
int _mp_size; /* abs(_mp_size) is the number of limbs the
|
||||
last field points to. If _mp_size is
|
||||
negative this is a negative number. */
|
||||
mp_limb_t *_mp_d; /* Pointer to the limbs. */
|
||||
} __mpz_struct;
|
||||
|
||||
#endif /* __GNU_MP__ */
|
||||
|
||||
/* User-visible types. */
|
||||
typedef __mpz_struct MINT;
|
||||
|
||||
|
||||
#if __GMP_HAVE_PROTOTYPES
|
||||
#define __GMP_PROTO(x) x
|
||||
#else
|
||||
#define __GMP_PROTO(x) ()
|
||||
#endif
|
||||
|
||||
#if defined (__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define mp_set_memory_functions __gmp_set_memory_functions
|
||||
__GMP_DECLSPEC void mp_set_memory_functions __GMP_PROTO ((void *(*) (size_t),
|
||||
void *(*) (void *, size_t, size_t),
|
||||
void (*) (void *, size_t)));
|
||||
__GMP_DECLSPEC MINT *itom __GMP_PROTO ((signed short int));
|
||||
__GMP_DECLSPEC MINT *xtom __GMP_PROTO ((const char *));
|
||||
__GMP_DECLSPEC void move __GMP_PROTO ((const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void madd __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void msub __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void mult __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void mdiv __GMP_PROTO ((const MINT *, const MINT *, MINT *, MINT *));
|
||||
__GMP_DECLSPEC void sdiv __GMP_PROTO ((const MINT *, signed short int, MINT *, signed short int *));
|
||||
__GMP_DECLSPEC void msqrt __GMP_PROTO ((const MINT *, MINT *, MINT *));
|
||||
__GMP_DECLSPEC void pow __GMP_PROTO ((const MINT *, const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void rpow __GMP_PROTO ((const MINT *, signed short int, MINT *));
|
||||
__GMP_DECLSPEC void gcd __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC int mcmp __GMP_PROTO ((const MINT *, const MINT *));
|
||||
__GMP_DECLSPEC void min __GMP_PROTO ((MINT *));
|
||||
__GMP_DECLSPEC void mout __GMP_PROTO ((const MINT *));
|
||||
__GMP_DECLSPEC char *mtox __GMP_PROTO ((const MINT *));
|
||||
__GMP_DECLSPEC void mfree __GMP_PROTO ((MINT *));
|
||||
|
||||
#if defined (__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#define __MP_H__
|
||||
#endif /* __MP_H__ */
|
|
@ -1,7 +1,6 @@
|
|||
dnl config.m4. Generated automatically by configure.
|
||||
changequote(<,>)
|
||||
ifdef(<__CONFIG_M4_INCLUDED__>,,<
|
||||
define(<CONFIG_TOP_SRCDIR>,<`../.'>)
|
||||
define(<WANT_ASSERT>,0)
|
||||
define(<WANT_PROFILING>,<`no'>)
|
||||
define(<M4WRAP_SPURIOUS>,<no>)
|
||||
|
|
|
@ -1,12 +1,14 @@
|
|||
# $NetBSD: Makefile.inc,v 1.2 2012/11/26 18:57:35 drochner Exp $
|
||||
# $NetBSD: Makefile.inc,v 1.3 2013/11/29 08:03:42 mrg Exp $
|
||||
|
||||
SRCS+= \
|
||||
random.c \
|
||||
divrem_2.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 \
|
||||
toom44_mul.c \
|
||||
toom8h_mul.c \
|
||||
|
@ -14,22 +16,31 @@ SRCS+= \
|
|||
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 \
|
||||
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 \
|
||||
copyd.c \
|
||||
toom_eval_dgr3_pm2.c \
|
||||
|
@ -38,6 +49,7 @@ SRCS+= \
|
|||
copyi.c \
|
||||
toom_couple_handling.c \
|
||||
add.c \
|
||||
div_qr_2.c \
|
||||
toom_interpolate_12pts.c \
|
||||
perfsqr.c \
|
||||
toom53_mul.c \
|
||||
|
@ -47,15 +59,18 @@ SRCS+= \
|
|||
mod_34lsub1.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 \
|
||||
toom_eval_dgr3_pm1.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 \
|
||||
|
@ -68,6 +83,7 @@ SRCS+= \
|
|||
bdiv_q_1.c \
|
||||
gcdext_1.c \
|
||||
toom63_mul.c \
|
||||
div_qr_2u_pi1.c \
|
||||
mul_basecase.c \
|
||||
toom8_sqr.c \
|
||||
addmul_1.c \
|
||||
|
@ -76,31 +92,37 @@ SRCS+= \
|
|||
divis.c \
|
||||
dcpi1_div_q.c \
|
||||
mul_1.c \
|
||||
subcnd_n.c \
|
||||
toom_eval_pm2.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 \
|
||||
mullo_basecase.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 \
|
||||
mul_fft.c \
|
||||
sqrmod_bnm1.c \
|
||||
mul_fft.c \
|
||||
mulmid.c \
|
||||
powm.c \
|
||||
rootrem.c \
|
||||
mode1o.c \
|
||||
|
@ -110,39 +132,49 @@ 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 \
|
||||
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= \
|
||||
|
|
|
@ -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 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* 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 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #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
|
||||
|
@ -217,9 +225,25 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_add_n_sub_n */
|
||||
/* #undef HAVE_NATIVE_mpn_add_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addaddmul_1msb0 */
|
||||
/* #undef HAVE_NATIVE_mpn_addcnd_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_3 */
|
||||
|
@ -228,6 +252,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_addmul_6 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_7 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_8 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_2s */
|
||||
/* #undef HAVE_NATIVE_mpn_and_n */
|
||||
/* #undef HAVE_NATIVE_mpn_andn_n */
|
||||
/* #undef HAVE_NATIVE_mpn_bdiv_dbm1c */
|
||||
|
@ -236,6 +261,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_com */
|
||||
/* #undef HAVE_NATIVE_mpn_copyd */
|
||||
/* #undef HAVE_NATIVE_mpn_copyi */
|
||||
/* #undef HAVE_NATIVE_mpn_div_qr_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_divexact_1 */
|
||||
/* #undef HAVE_NATIVE_mpn_divexact_by3c */
|
||||
/* #undef HAVE_NATIVE_mpn_divrem_1 */
|
||||
|
@ -262,6 +288,8 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_mul_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_3 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_4 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_5 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_6 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_basecase */
|
||||
/* #undef HAVE_NATIVE_mpn_nand_n */
|
||||
/* #undef HAVE_NATIVE_mpn_nior_n */
|
||||
|
@ -273,6 +301,9 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_rsblsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1add_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1add_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1sub_n */
|
||||
|
@ -280,12 +311,24 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define HAVE_NATIVE_mpn_rshift 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
|
||||
/* #undef HAVE_NATIVE_mpn_sub_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_subcnd_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_submul_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_tabselect */
|
||||
/* #undef HAVE_NATIVE_mpn_udiv_qrnnd */
|
||||
/* #undef HAVE_NATIVE_mpn_udiv_qrnnd_r */
|
||||
/* #undef HAVE_NATIVE_mpn_umul_ppmm */
|
||||
|
@ -450,6 +493,9 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* Define to 1 if you have the `vsnprintf' function and it works properly. */
|
||||
#define HAVE_VSNPRINTF 1
|
||||
|
||||
/* Define to 1 for Windos/64 */
|
||||
/* #undef HOST_DOS64 */
|
||||
|
||||
/* Assembler local label prefix */
|
||||
#define LSYM_PREFIX ".L"
|
||||
|
||||
|
@ -461,13 +507,13 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define PACKAGE "gmp"
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org"
|
||||
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html"
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#define PACKAGE_NAME "GNU MP"
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#define PACKAGE_STRING "GNU MP 5.0.2"
|
||||
#define PACKAGE_STRING "GNU MP 5.1.3"
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#define PACKAGE_TARNAME "gmp"
|
||||
|
@ -476,10 +522,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define PACKAGE_URL "http://www.gnu.org/software/gmp/"
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#define PACKAGE_VERSION "5.0.2"
|
||||
|
||||
/* Define to 1 if the C compiler supports function prototypes. */
|
||||
#define PROTOTYPES 1
|
||||
#define PACKAGE_VERSION "5.1.3"
|
||||
|
||||
/* Define as the return type of signal handlers (`int' or `void'). */
|
||||
#define RETSIGTYPE void
|
||||
|
@ -512,7 +555,10 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define TUNE_SQR_TOOM2_MAX SQR_TOOM2_MAX_GENERIC
|
||||
|
||||
/* Version number of package */
|
||||
#define VERSION "5.0.2"
|
||||
#define VERSION "5.1.3"
|
||||
|
||||
/* Defined to 1 as per --enable-assembly */
|
||||
#define WANT_ASSEMBLY 1
|
||||
|
||||
/* Define to 1 to enable ASSERT checking, per --enable-assert */
|
||||
/* #undef WANT_ASSERT */
|
||||
|
@ -559,9 +605,6 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
`char[]'. */
|
||||
#define YYTEXT_POINTER 1
|
||||
|
||||
/* Define like PROTOTYPES; this can be used by system headers. */
|
||||
#define __PROTOTYPES 1
|
||||
|
||||
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
||||
calls it, or to nothing if 'inline' is not supported under any name. */
|
||||
#ifndef __cplusplus
|
||||
|
|
|
@ -30,7 +30,7 @@ changequote(`,')
|
|||
ifdef(`__CONFIG_M4_INCLUDED__',,`
|
||||
include(CONFIG_TOP_SRCDIR`/mpn/asm-defs.m4')
|
||||
include_mpn(`m68k/m68k-defs.m4')
|
||||
define_not_for_expansion(`HAVE_HOST_CPU_m68k')
|
||||
define_not_for_expansion(`HAVE_HOST_CPU_m68010')
|
||||
define_not_for_expansion(`HAVE_ABI_standard')
|
||||
define_not_for_expansion(`HAVE_LIMB_BIG_ENDIAN')
|
||||
define_not_for_expansion(`HAVE_DOUBLE_IEEE_BIG_ENDIAN')
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,164 +0,0 @@
|
|||
/* mp-h.in -- Definitions for the GNU multiple precision library -*-mode:c-*-
|
||||
BSD mp compatible functions.
|
||||
|
||||
Copyright 1991, 1993, 1994, 1995, 1996, 2000, 2001, 2002, 2004 Free Software
|
||||
Foundation, Inc.
|
||||
|
||||
This file is part of the GNU MP Library.
|
||||
|
||||
The GNU MP Library is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or (at your
|
||||
option) any later version.
|
||||
|
||||
The GNU MP Library is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||
License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
|
||||
|
||||
#ifndef __MP_H__
|
||||
|
||||
|
||||
/* The following (everything under ifndef __GNU_MP__) must be identical in
|
||||
gmp.h and mp.h to allow both to be included in an application or during
|
||||
the library build. Use the t-gmp-mp-h.pl script to check. */
|
||||
#ifndef __GNU_MP__
|
||||
#define __GNU_MP__ 5
|
||||
|
||||
#define __need_size_t /* tell gcc stddef.h we only want size_t */
|
||||
#if defined (__cplusplus)
|
||||
#include <cstddef> /* for size_t */
|
||||
#else
|
||||
#include <stddef.h> /* for size_t */
|
||||
#endif
|
||||
#undef __need_size_t
|
||||
|
||||
/* The following instantiated by configure, for internal use only */
|
||||
#if ! defined (__GMP_WITHIN_CONFIGURE)
|
||||
/* #undef _LONG_LONG_LIMB */
|
||||
#define __GMP_LIBGMP_DLL 0
|
||||
#endif
|
||||
|
||||
#if defined (__STDC__) \
|
||||
|| defined (__cplusplus) \
|
||||
|| defined (_AIX) \
|
||||
|| defined (__DECC) \
|
||||
|| (defined (__mips) && defined (_SYSTYPE_SVR4)) \
|
||||
|| defined (_MSC_VER) \
|
||||
|| defined (_WIN32)
|
||||
#define __GMP_HAVE_CONST 1
|
||||
#define __GMP_HAVE_PROTOTYPES 1
|
||||
#define __GMP_HAVE_TOKEN_PASTE 1
|
||||
#else
|
||||
#define __GMP_HAVE_CONST 0
|
||||
#define __GMP_HAVE_PROTOTYPES 0
|
||||
#define __GMP_HAVE_TOKEN_PASTE 0
|
||||
#endif
|
||||
|
||||
|
||||
#if __GMP_HAVE_CONST
|
||||
#define __gmp_const const
|
||||
#define __gmp_signed signed
|
||||
#else
|
||||
#define __gmp_const
|
||||
#define __gmp_signed
|
||||
#endif
|
||||
|
||||
#if defined (__GNUC__)
|
||||
#define __GMP_DECLSPEC_EXPORT __declspec(__dllexport__)
|
||||
#define __GMP_DECLSPEC_IMPORT __declspec(__dllimport__)
|
||||
#endif
|
||||
#if defined (_MSC_VER) || defined (__BORLANDC__)
|
||||
#define __GMP_DECLSPEC_EXPORT __declspec(dllexport)
|
||||
#define __GMP_DECLSPEC_IMPORT __declspec(dllimport)
|
||||
#endif
|
||||
#ifdef __WATCOMC__
|
||||
#define __GMP_DECLSPEC_EXPORT __export
|
||||
#define __GMP_DECLSPEC_IMPORT __import
|
||||
#endif
|
||||
#ifdef __IBMC__
|
||||
#define __GMP_DECLSPEC_EXPORT _Export
|
||||
#define __GMP_DECLSPEC_IMPORT _Import
|
||||
#endif
|
||||
|
||||
#if __GMP_LIBGMP_DLL
|
||||
#if __GMP_WITHIN_GMP
|
||||
#define __GMP_DECLSPEC __GMP_DECLSPEC_EXPORT
|
||||
#else
|
||||
#define __GMP_DECLSPEC __GMP_DECLSPEC_IMPORT
|
||||
#endif
|
||||
#else
|
||||
#define __GMP_DECLSPEC
|
||||
#endif
|
||||
|
||||
#ifdef __GMP_SHORT_LIMB
|
||||
typedef unsigned int mp_limb_t;
|
||||
typedef int mp_limb_signed_t;
|
||||
#else
|
||||
#ifdef _LONG_LONG_LIMB
|
||||
typedef unsigned long long int mp_limb_t;
|
||||
typedef long long int mp_limb_signed_t;
|
||||
#else
|
||||
typedef unsigned long int mp_limb_t;
|
||||
typedef long int mp_limb_signed_t;
|
||||
#endif
|
||||
#endif
|
||||
typedef unsigned long int mp_bitcnt_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int _mp_alloc; /* Number of *limbs* allocated and pointed
|
||||
to by the _mp_d field. */
|
||||
int _mp_size; /* abs(_mp_size) is the number of limbs the
|
||||
last field points to. If _mp_size is
|
||||
negative this is a negative number. */
|
||||
mp_limb_t *_mp_d; /* Pointer to the limbs. */
|
||||
} __mpz_struct;
|
||||
|
||||
#endif /* __GNU_MP__ */
|
||||
|
||||
/* User-visible types. */
|
||||
typedef __mpz_struct MINT;
|
||||
|
||||
|
||||
#if __GMP_HAVE_PROTOTYPES
|
||||
#define __GMP_PROTO(x) x
|
||||
#else
|
||||
#define __GMP_PROTO(x) ()
|
||||
#endif
|
||||
|
||||
#if defined (__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define mp_set_memory_functions __gmp_set_memory_functions
|
||||
__GMP_DECLSPEC void mp_set_memory_functions __GMP_PROTO ((void *(*) (size_t),
|
||||
void *(*) (void *, size_t, size_t),
|
||||
void (*) (void *, size_t)));
|
||||
__GMP_DECLSPEC MINT *itom __GMP_PROTO ((signed short int));
|
||||
__GMP_DECLSPEC MINT *xtom __GMP_PROTO ((const char *));
|
||||
__GMP_DECLSPEC void move __GMP_PROTO ((const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void madd __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void msub __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void mult __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void mdiv __GMP_PROTO ((const MINT *, const MINT *, MINT *, MINT *));
|
||||
__GMP_DECLSPEC void sdiv __GMP_PROTO ((const MINT *, signed short int, MINT *, signed short int *));
|
||||
__GMP_DECLSPEC void msqrt __GMP_PROTO ((const MINT *, MINT *, MINT *));
|
||||
__GMP_DECLSPEC void pow __GMP_PROTO ((const MINT *, const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void rpow __GMP_PROTO ((const MINT *, signed short int, MINT *));
|
||||
__GMP_DECLSPEC void gcd __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC int mcmp __GMP_PROTO ((const MINT *, const MINT *));
|
||||
__GMP_DECLSPEC void min __GMP_PROTO ((MINT *));
|
||||
__GMP_DECLSPEC void mout __GMP_PROTO ((const MINT *));
|
||||
__GMP_DECLSPEC char *mtox __GMP_PROTO ((const MINT *));
|
||||
__GMP_DECLSPEC void mfree __GMP_PROTO ((MINT *));
|
||||
|
||||
#if defined (__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#define __MP_H__
|
||||
#endif /* __MP_H__ */
|
|
@ -1,12 +1,14 @@
|
|||
# $NetBSD: Makefile.inc,v 1.3 2012/11/26 18:57:35 drochner Exp $
|
||||
# $NetBSD: Makefile.inc,v 1.4 2013/11/29 08:03:42 mrg Exp $
|
||||
|
||||
SRCS+= \
|
||||
random.c \
|
||||
divrem_2.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 \
|
||||
toom44_mul.c \
|
||||
toom8h_mul.c \
|
||||
|
@ -14,22 +16,31 @@ SRCS+= \
|
|||
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 \
|
||||
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 \
|
||||
copyd.c \
|
||||
toom_eval_dgr3_pm2.c \
|
||||
|
@ -38,6 +49,7 @@ SRCS+= \
|
|||
copyi.c \
|
||||
toom_couple_handling.c \
|
||||
add.c \
|
||||
div_qr_2.c \
|
||||
toom_interpolate_12pts.c \
|
||||
perfsqr.c \
|
||||
toom53_mul.c \
|
||||
|
@ -47,15 +59,18 @@ SRCS+= \
|
|||
mod_34lsub1.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 \
|
||||
toom_eval_dgr3_pm1.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 \
|
||||
|
@ -68,6 +83,7 @@ SRCS+= \
|
|||
bdiv_q_1.c \
|
||||
gcdext_1.c \
|
||||
toom63_mul.c \
|
||||
div_qr_2u_pi1.c \
|
||||
mul_basecase.c \
|
||||
toom8_sqr.c \
|
||||
addmul_1.c \
|
||||
|
@ -76,31 +92,37 @@ SRCS+= \
|
|||
divis.c \
|
||||
dcpi1_div_q.c \
|
||||
mul_1.c \
|
||||
subcnd_n.c \
|
||||
toom_eval_pm2.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 \
|
||||
mullo_basecase.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 \
|
||||
mul_fft.c \
|
||||
sqrmod_bnm1.c \
|
||||
mul_fft.c \
|
||||
mulmid.c \
|
||||
powm.c \
|
||||
rootrem.c \
|
||||
mode1o.c \
|
||||
|
@ -110,39 +132,49 @@ 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 \
|
||||
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= \
|
||||
|
|
|
@ -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 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* 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 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #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
|
||||
|
@ -217,9 +225,25 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_add_n_sub_n */
|
||||
/* #undef HAVE_NATIVE_mpn_add_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addaddmul_1msb0 */
|
||||
/* #undef HAVE_NATIVE_mpn_addcnd_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_3 */
|
||||
|
@ -228,6 +252,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_addmul_6 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_7 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_8 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_2s */
|
||||
/* #undef HAVE_NATIVE_mpn_and_n */
|
||||
/* #undef HAVE_NATIVE_mpn_andn_n */
|
||||
/* #undef HAVE_NATIVE_mpn_bdiv_dbm1c */
|
||||
|
@ -236,6 +261,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_com */
|
||||
/* #undef HAVE_NATIVE_mpn_copyd */
|
||||
/* #undef HAVE_NATIVE_mpn_copyi */
|
||||
/* #undef HAVE_NATIVE_mpn_div_qr_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_divexact_1 */
|
||||
/* #undef HAVE_NATIVE_mpn_divexact_by3c */
|
||||
/* #undef HAVE_NATIVE_mpn_divrem_1 */
|
||||
|
@ -262,6 +288,8 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_mul_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_3 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_4 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_5 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_6 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_basecase */
|
||||
/* #undef HAVE_NATIVE_mpn_nand_n */
|
||||
/* #undef HAVE_NATIVE_mpn_nior_n */
|
||||
|
@ -273,6 +301,9 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_rsblsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1add_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1add_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1sub_n */
|
||||
|
@ -280,12 +311,24 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define HAVE_NATIVE_mpn_rshift 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
|
||||
/* #undef HAVE_NATIVE_mpn_sub_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_subcnd_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_submul_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_tabselect */
|
||||
/* #undef HAVE_NATIVE_mpn_udiv_qrnnd */
|
||||
/* #undef HAVE_NATIVE_mpn_udiv_qrnnd_r */
|
||||
/* #undef HAVE_NATIVE_mpn_umul_ppmm */
|
||||
|
@ -450,6 +493,9 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* Define to 1 if you have the `vsnprintf' function and it works properly. */
|
||||
#define HAVE_VSNPRINTF 1
|
||||
|
||||
/* Define to 1 for Windos/64 */
|
||||
/* #undef HOST_DOS64 */
|
||||
|
||||
/* Assembler local label prefix */
|
||||
#define LSYM_PREFIX ".L"
|
||||
|
||||
|
@ -461,13 +507,13 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define PACKAGE "gmp"
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org"
|
||||
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html"
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#define PACKAGE_NAME "GNU MP"
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#define PACKAGE_STRING "GNU MP 5.0.2"
|
||||
#define PACKAGE_STRING "GNU MP 5.1.3"
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#define PACKAGE_TARNAME "gmp"
|
||||
|
@ -476,10 +522,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define PACKAGE_URL "http://www.gnu.org/software/gmp/"
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#define PACKAGE_VERSION "5.0.2"
|
||||
|
||||
/* Define to 1 if the C compiler supports function prototypes. */
|
||||
#define PROTOTYPES 1
|
||||
#define PACKAGE_VERSION "5.1.3"
|
||||
|
||||
/* Define as the return type of signal handlers (`int' or `void'). */
|
||||
#define RETSIGTYPE void
|
||||
|
@ -512,7 +555,10 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define TUNE_SQR_TOOM2_MAX SQR_TOOM2_MAX_GENERIC
|
||||
|
||||
/* Version number of package */
|
||||
#define VERSION "5.0.2"
|
||||
#define VERSION "5.1.3"
|
||||
|
||||
/* Defined to 1 as per --enable-assembly */
|
||||
#define WANT_ASSEMBLY 1
|
||||
|
||||
/* Define to 1 to enable ASSERT checking, per --enable-assert */
|
||||
/* #undef WANT_ASSERT */
|
||||
|
@ -559,9 +605,6 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
`char[]'. */
|
||||
#define YYTEXT_POINTER 1
|
||||
|
||||
/* Define like PROTOTYPES; this can be used by system headers. */
|
||||
#define __PROTOTYPES 1
|
||||
|
||||
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
||||
calls it, or to nothing if 'inline' is not supported under any name. */
|
||||
#ifndef __cplusplus
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,164 +0,0 @@
|
|||
/* mp-h.in -- Definitions for the GNU multiple precision library -*-mode:c-*-
|
||||
BSD mp compatible functions.
|
||||
|
||||
Copyright 1991, 1993, 1994, 1995, 1996, 2000, 2001, 2002, 2004 Free Software
|
||||
Foundation, Inc.
|
||||
|
||||
This file is part of the GNU MP Library.
|
||||
|
||||
The GNU MP Library is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or (at your
|
||||
option) any later version.
|
||||
|
||||
The GNU MP Library is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||
License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
|
||||
|
||||
#ifndef __MP_H__
|
||||
|
||||
|
||||
/* The following (everything under ifndef __GNU_MP__) must be identical in
|
||||
gmp.h and mp.h to allow both to be included in an application or during
|
||||
the library build. Use the t-gmp-mp-h.pl script to check. */
|
||||
#ifndef __GNU_MP__
|
||||
#define __GNU_MP__ 5
|
||||
|
||||
#define __need_size_t /* tell gcc stddef.h we only want size_t */
|
||||
#if defined (__cplusplus)
|
||||
#include <cstddef> /* for size_t */
|
||||
#else
|
||||
#include <stddef.h> /* for size_t */
|
||||
#endif
|
||||
#undef __need_size_t
|
||||
|
||||
/* The following instantiated by configure, for internal use only */
|
||||
#if ! defined (__GMP_WITHIN_CONFIGURE)
|
||||
/* #undef _LONG_LONG_LIMB */
|
||||
#define __GMP_LIBGMP_DLL 0
|
||||
#endif
|
||||
|
||||
#if defined (__STDC__) \
|
||||
|| defined (__cplusplus) \
|
||||
|| defined (_AIX) \
|
||||
|| defined (__DECC) \
|
||||
|| (defined (__mips) && defined (_SYSTYPE_SVR4)) \
|
||||
|| defined (_MSC_VER) \
|
||||
|| defined (_WIN32)
|
||||
#define __GMP_HAVE_CONST 1
|
||||
#define __GMP_HAVE_PROTOTYPES 1
|
||||
#define __GMP_HAVE_TOKEN_PASTE 1
|
||||
#else
|
||||
#define __GMP_HAVE_CONST 0
|
||||
#define __GMP_HAVE_PROTOTYPES 0
|
||||
#define __GMP_HAVE_TOKEN_PASTE 0
|
||||
#endif
|
||||
|
||||
|
||||
#if __GMP_HAVE_CONST
|
||||
#define __gmp_const const
|
||||
#define __gmp_signed signed
|
||||
#else
|
||||
#define __gmp_const
|
||||
#define __gmp_signed
|
||||
#endif
|
||||
|
||||
#if defined (__GNUC__)
|
||||
#define __GMP_DECLSPEC_EXPORT __declspec(__dllexport__)
|
||||
#define __GMP_DECLSPEC_IMPORT __declspec(__dllimport__)
|
||||
#endif
|
||||
#if defined (_MSC_VER) || defined (__BORLANDC__)
|
||||
#define __GMP_DECLSPEC_EXPORT __declspec(dllexport)
|
||||
#define __GMP_DECLSPEC_IMPORT __declspec(dllimport)
|
||||
#endif
|
||||
#ifdef __WATCOMC__
|
||||
#define __GMP_DECLSPEC_EXPORT __export
|
||||
#define __GMP_DECLSPEC_IMPORT __import
|
||||
#endif
|
||||
#ifdef __IBMC__
|
||||
#define __GMP_DECLSPEC_EXPORT _Export
|
||||
#define __GMP_DECLSPEC_IMPORT _Import
|
||||
#endif
|
||||
|
||||
#if __GMP_LIBGMP_DLL
|
||||
#if __GMP_WITHIN_GMP
|
||||
#define __GMP_DECLSPEC __GMP_DECLSPEC_EXPORT
|
||||
#else
|
||||
#define __GMP_DECLSPEC __GMP_DECLSPEC_IMPORT
|
||||
#endif
|
||||
#else
|
||||
#define __GMP_DECLSPEC
|
||||
#endif
|
||||
|
||||
#ifdef __GMP_SHORT_LIMB
|
||||
typedef unsigned int mp_limb_t;
|
||||
typedef int mp_limb_signed_t;
|
||||
#else
|
||||
#ifdef _LONG_LONG_LIMB
|
||||
typedef unsigned long long int mp_limb_t;
|
||||
typedef long long int mp_limb_signed_t;
|
||||
#else
|
||||
typedef unsigned long int mp_limb_t;
|
||||
typedef long int mp_limb_signed_t;
|
||||
#endif
|
||||
#endif
|
||||
typedef unsigned long int mp_bitcnt_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int _mp_alloc; /* Number of *limbs* allocated and pointed
|
||||
to by the _mp_d field. */
|
||||
int _mp_size; /* abs(_mp_size) is the number of limbs the
|
||||
last field points to. If _mp_size is
|
||||
negative this is a negative number. */
|
||||
mp_limb_t *_mp_d; /* Pointer to the limbs. */
|
||||
} __mpz_struct;
|
||||
|
||||
#endif /* __GNU_MP__ */
|
||||
|
||||
/* User-visible types. */
|
||||
typedef __mpz_struct MINT;
|
||||
|
||||
|
||||
#if __GMP_HAVE_PROTOTYPES
|
||||
#define __GMP_PROTO(x) x
|
||||
#else
|
||||
#define __GMP_PROTO(x) ()
|
||||
#endif
|
||||
|
||||
#if defined (__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define mp_set_memory_functions __gmp_set_memory_functions
|
||||
__GMP_DECLSPEC void mp_set_memory_functions __GMP_PROTO ((void *(*) (size_t),
|
||||
void *(*) (void *, size_t, size_t),
|
||||
void (*) (void *, size_t)));
|
||||
__GMP_DECLSPEC MINT *itom __GMP_PROTO ((signed short int));
|
||||
__GMP_DECLSPEC MINT *xtom __GMP_PROTO ((const char *));
|
||||
__GMP_DECLSPEC void move __GMP_PROTO ((const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void madd __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void msub __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void mult __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void mdiv __GMP_PROTO ((const MINT *, const MINT *, MINT *, MINT *));
|
||||
__GMP_DECLSPEC void sdiv __GMP_PROTO ((const MINT *, signed short int, MINT *, signed short int *));
|
||||
__GMP_DECLSPEC void msqrt __GMP_PROTO ((const MINT *, MINT *, MINT *));
|
||||
__GMP_DECLSPEC void pow __GMP_PROTO ((const MINT *, const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void rpow __GMP_PROTO ((const MINT *, signed short int, MINT *));
|
||||
__GMP_DECLSPEC void gcd __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC int mcmp __GMP_PROTO ((const MINT *, const MINT *));
|
||||
__GMP_DECLSPEC void min __GMP_PROTO ((MINT *));
|
||||
__GMP_DECLSPEC void mout __GMP_PROTO ((const MINT *));
|
||||
__GMP_DECLSPEC char *mtox __GMP_PROTO ((const MINT *));
|
||||
__GMP_DECLSPEC void mfree __GMP_PROTO ((MINT *));
|
||||
|
||||
#if defined (__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#define __MP_H__
|
||||
#endif /* __MP_H__ */
|
|
@ -1,12 +1,14 @@
|
|||
# $NetBSD: Makefile.inc,v 1.3 2012/11/26 18:57:35 drochner Exp $
|
||||
# $NetBSD: Makefile.inc,v 1.4 2013/11/29 08:03:42 mrg Exp $
|
||||
|
||||
SRCS+= \
|
||||
random.c \
|
||||
divrem_2.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 \
|
||||
toom44_mul.c \
|
||||
toom8h_mul.c \
|
||||
|
@ -14,22 +16,31 @@ SRCS+= \
|
|||
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 \
|
||||
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 \
|
||||
copyd.c \
|
||||
toom_eval_dgr3_pm2.c \
|
||||
|
@ -38,6 +49,7 @@ SRCS+= \
|
|||
copyi.c \
|
||||
toom_couple_handling.c \
|
||||
add.c \
|
||||
div_qr_2.c \
|
||||
toom_interpolate_12pts.c \
|
||||
perfsqr.c \
|
||||
toom53_mul.c \
|
||||
|
@ -47,15 +59,18 @@ SRCS+= \
|
|||
mod_34lsub1.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 \
|
||||
|
@ -68,36 +83,43 @@ SRCS+= \
|
|||
bdiv_q_1.c \
|
||||
gcdext_1.c \
|
||||
toom63_mul.c \
|
||||
div_qr_2u_pi1.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 \
|
||||
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 \
|
||||
mullo_basecase.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 \
|
||||
toom6h_mul.c \
|
||||
mul_fft.c \
|
||||
sqrmod_bnm1.c \
|
||||
mul_fft.c \
|
||||
mulmid.c \
|
||||
powm.c \
|
||||
rootrem.c \
|
||||
mode1o.c \
|
||||
|
@ -107,43 +129,53 @@ 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 \
|
||||
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 \
|
||||
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 \
|
||||
and_n.c mpn/generic/logops_n.c \
|
||||
ior_n.c mpn/generic/logops_n.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 \
|
||||
sqr_diagonal.asm mpn/mips64/sqr_diagonal.asm \
|
||||
add_n.asm mpn/mips64/add_n.asm \
|
||||
submul_1.asm mpn/mips64/submul_1.asm \
|
||||
umul.asm mpn/mips64/umul.asm \
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
@ -27,7 +27,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
|
||||
/* The gmp-mparam.h file (a string) the tune program should suggest updating.
|
||||
*/
|
||||
#define GMP_MPARAM_H_SUGGEST "./mpn/mips64/gmp-mparam.h"
|
||||
#define GMP_MPARAM_H_SUGGEST "/usr/src7/external/lgpl3/gmp/dist/mpn/mips64/gmp-mparam.h"
|
||||
|
||||
/* Define to 1 if you have the `alarm' function. */
|
||||
#define HAVE_ALARM 1
|
||||
|
@ -62,7 +62,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* 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 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #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 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
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 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_3 */
|
||||
|
@ -228,6 +252,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_addmul_6 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_7 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_8 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_2s */
|
||||
/* #undef HAVE_NATIVE_mpn_and_n */
|
||||
/* #undef HAVE_NATIVE_mpn_andn_n */
|
||||
/* #undef HAVE_NATIVE_mpn_bdiv_dbm1c */
|
||||
|
@ -236,6 +261,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_com */
|
||||
/* #undef HAVE_NATIVE_mpn_copyd */
|
||||
/* #undef HAVE_NATIVE_mpn_copyi */
|
||||
/* #undef HAVE_NATIVE_mpn_div_qr_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_divexact_1 */
|
||||
/* #undef HAVE_NATIVE_mpn_divexact_by3c */
|
||||
/* #undef HAVE_NATIVE_mpn_divrem_1 */
|
||||
|
@ -262,6 +288,8 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_mul_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_3 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_4 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_5 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_6 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_basecase */
|
||||
/* #undef HAVE_NATIVE_mpn_nand_n */
|
||||
/* #undef HAVE_NATIVE_mpn_nior_n */
|
||||
|
@ -273,6 +301,9 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_rsblsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1add_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1add_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1sub_n */
|
||||
|
@ -280,12 +311,24 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define HAVE_NATIVE_mpn_rshift 1
|
||||
/* #undef HAVE_NATIVE_mpn_sqr_basecase */
|
||||
#define HAVE_NATIVE_mpn_sqr_diagonal 1
|
||||
/* #undef HAVE_NATIVE_mpn_sqr_diag_addlsh1 */
|
||||
#define HAVE_NATIVE_mpn_sub_n 1
|
||||
/* #undef HAVE_NATIVE_mpn_sub_nc */
|
||||
#define HAVE_NATIVE_mpn_sub_nc 1
|
||||
/* #undef HAVE_NATIVE_mpn_subcnd_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_submul_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_tabselect */
|
||||
/* #undef HAVE_NATIVE_mpn_udiv_qrnnd */
|
||||
/* #undef HAVE_NATIVE_mpn_udiv_qrnnd_r */
|
||||
#define HAVE_NATIVE_mpn_umul_ppmm 1
|
||||
|
@ -450,6 +493,9 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* Define to 1 if you have the `vsnprintf' function and it works properly. */
|
||||
#define HAVE_VSNPRINTF 1
|
||||
|
||||
/* Define to 1 for Windos/64 */
|
||||
/* #undef HOST_DOS64 */
|
||||
|
||||
/* Assembler local label prefix */
|
||||
#define LSYM_PREFIX ".L"
|
||||
|
||||
|
@ -461,13 +507,13 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define PACKAGE "gmp"
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org"
|
||||
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html"
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#define PACKAGE_NAME "GNU MP"
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#define PACKAGE_STRING "GNU MP 5.0.2"
|
||||
#define PACKAGE_STRING "GNU MP 5.1.3"
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#define PACKAGE_TARNAME "gmp"
|
||||
|
@ -476,10 +522,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define PACKAGE_URL "http://www.gnu.org/software/gmp/"
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#define PACKAGE_VERSION "5.0.2"
|
||||
|
||||
/* Define to 1 if the C compiler supports function prototypes. */
|
||||
#define PROTOTYPES 1
|
||||
#define PACKAGE_VERSION "5.1.3"
|
||||
|
||||
/* Define as the return type of signal handlers (`int' or `void'). */
|
||||
#define RETSIGTYPE void
|
||||
|
@ -512,7 +555,10 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define TUNE_SQR_TOOM2_MAX SQR_TOOM2_MAX_GENERIC
|
||||
|
||||
/* Version number of package */
|
||||
#define VERSION "5.0.2"
|
||||
#define VERSION "5.1.3"
|
||||
|
||||
/* Defined to 1 as per --enable-assembly */
|
||||
#define WANT_ASSEMBLY 1
|
||||
|
||||
/* Define to 1 to enable ASSERT checking, per --enable-assert */
|
||||
/* #undef WANT_ASSERT */
|
||||
|
@ -559,9 +605,6 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
`char[]'. */
|
||||
#define YYTEXT_POINTER 1
|
||||
|
||||
/* Define like PROTOTYPES; this can be used by system headers. */
|
||||
#define __PROTOTYPES 1
|
||||
|
||||
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
||||
calls it, or to nothing if 'inline' is not supported under any name. */
|
||||
#ifndef __cplusplus
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
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>)
|
||||
|
|
|
@ -19,13 +19,8 @@ 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 _ABI64
|
||||
#define GMP_LIMB_BITS 64
|
||||
#define BYTES_PER_MP_LIMB 8
|
||||
#else
|
||||
#define GMP_LIMB_BITS 32
|
||||
#define BYTES_PER_MP_LIMB 4
|
||||
#endif
|
||||
|
||||
|
||||
/* Generated by tuneup.c, 2004-02-10, gcc 3.2 & MIPSpro C 7.2.1 (R1x000) */
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,164 +0,0 @@
|
|||
/* mp-h.in -- Definitions for the GNU multiple precision library -*-mode:c-*-
|
||||
BSD mp compatible functions.
|
||||
|
||||
Copyright 1991, 1993, 1994, 1995, 1996, 2000, 2001, 2002, 2004 Free Software
|
||||
Foundation, Inc.
|
||||
|
||||
This file is part of the GNU MP Library.
|
||||
|
||||
The GNU MP Library is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or (at your
|
||||
option) any later version.
|
||||
|
||||
The GNU MP Library is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||
License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
|
||||
|
||||
#ifndef __MP_H__
|
||||
|
||||
|
||||
/* The following (everything under ifndef __GNU_MP__) must be identical in
|
||||
gmp.h and mp.h to allow both to be included in an application or during
|
||||
the library build. Use the t-gmp-mp-h.pl script to check. */
|
||||
#ifndef __GNU_MP__
|
||||
#define __GNU_MP__ 5
|
||||
|
||||
#define __need_size_t /* tell gcc stddef.h we only want size_t */
|
||||
#if defined (__cplusplus)
|
||||
#include <cstddef> /* for size_t */
|
||||
#else
|
||||
#include <stddef.h> /* for size_t */
|
||||
#endif
|
||||
#undef __need_size_t
|
||||
|
||||
/* The following instantiated by configure, for internal use only */
|
||||
#if ! defined (__GMP_WITHIN_CONFIGURE)
|
||||
#define _LONG_LONG_LIMB 1
|
||||
#define __GMP_LIBGMP_DLL 0
|
||||
#endif
|
||||
|
||||
#if defined (__STDC__) \
|
||||
|| defined (__cplusplus) \
|
||||
|| defined (_AIX) \
|
||||
|| defined (__DECC) \
|
||||
|| (defined (__mips) && defined (_SYSTYPE_SVR4)) \
|
||||
|| defined (_MSC_VER) \
|
||||
|| defined (_WIN32)
|
||||
#define __GMP_HAVE_CONST 1
|
||||
#define __GMP_HAVE_PROTOTYPES 1
|
||||
#define __GMP_HAVE_TOKEN_PASTE 1
|
||||
#else
|
||||
#define __GMP_HAVE_CONST 0
|
||||
#define __GMP_HAVE_PROTOTYPES 0
|
||||
#define __GMP_HAVE_TOKEN_PASTE 0
|
||||
#endif
|
||||
|
||||
|
||||
#if __GMP_HAVE_CONST
|
||||
#define __gmp_const const
|
||||
#define __gmp_signed signed
|
||||
#else
|
||||
#define __gmp_const
|
||||
#define __gmp_signed
|
||||
#endif
|
||||
|
||||
#if defined (__GNUC__)
|
||||
#define __GMP_DECLSPEC_EXPORT __declspec(__dllexport__)
|
||||
#define __GMP_DECLSPEC_IMPORT __declspec(__dllimport__)
|
||||
#endif
|
||||
#if defined (_MSC_VER) || defined (__BORLANDC__)
|
||||
#define __GMP_DECLSPEC_EXPORT __declspec(dllexport)
|
||||
#define __GMP_DECLSPEC_IMPORT __declspec(dllimport)
|
||||
#endif
|
||||
#ifdef __WATCOMC__
|
||||
#define __GMP_DECLSPEC_EXPORT __export
|
||||
#define __GMP_DECLSPEC_IMPORT __import
|
||||
#endif
|
||||
#ifdef __IBMC__
|
||||
#define __GMP_DECLSPEC_EXPORT _Export
|
||||
#define __GMP_DECLSPEC_IMPORT _Import
|
||||
#endif
|
||||
|
||||
#if __GMP_LIBGMP_DLL
|
||||
#if __GMP_WITHIN_GMP
|
||||
#define __GMP_DECLSPEC __GMP_DECLSPEC_EXPORT
|
||||
#else
|
||||
#define __GMP_DECLSPEC __GMP_DECLSPEC_IMPORT
|
||||
#endif
|
||||
#else
|
||||
#define __GMP_DECLSPEC
|
||||
#endif
|
||||
|
||||
#ifdef __GMP_SHORT_LIMB
|
||||
typedef unsigned int mp_limb_t;
|
||||
typedef int mp_limb_signed_t;
|
||||
#else
|
||||
#ifdef _LONG_LONG_LIMB
|
||||
typedef unsigned long long int mp_limb_t;
|
||||
typedef long long int mp_limb_signed_t;
|
||||
#else
|
||||
typedef unsigned long int mp_limb_t;
|
||||
typedef long int mp_limb_signed_t;
|
||||
#endif
|
||||
#endif
|
||||
typedef unsigned long int mp_bitcnt_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int _mp_alloc; /* Number of *limbs* allocated and pointed
|
||||
to by the _mp_d field. */
|
||||
int _mp_size; /* abs(_mp_size) is the number of limbs the
|
||||
last field points to. If _mp_size is
|
||||
negative this is a negative number. */
|
||||
mp_limb_t *_mp_d; /* Pointer to the limbs. */
|
||||
} __mpz_struct;
|
||||
|
||||
#endif /* __GNU_MP__ */
|
||||
|
||||
/* User-visible types. */
|
||||
typedef __mpz_struct MINT;
|
||||
|
||||
|
||||
#if __GMP_HAVE_PROTOTYPES
|
||||
#define __GMP_PROTO(x) x
|
||||
#else
|
||||
#define __GMP_PROTO(x) ()
|
||||
#endif
|
||||
|
||||
#if defined (__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define mp_set_memory_functions __gmp_set_memory_functions
|
||||
__GMP_DECLSPEC void mp_set_memory_functions __GMP_PROTO ((void *(*) (size_t),
|
||||
void *(*) (void *, size_t, size_t),
|
||||
void (*) (void *, size_t)));
|
||||
__GMP_DECLSPEC MINT *itom __GMP_PROTO ((signed short int));
|
||||
__GMP_DECLSPEC MINT *xtom __GMP_PROTO ((const char *));
|
||||
__GMP_DECLSPEC void move __GMP_PROTO ((const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void madd __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void msub __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void mult __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void mdiv __GMP_PROTO ((const MINT *, const MINT *, MINT *, MINT *));
|
||||
__GMP_DECLSPEC void sdiv __GMP_PROTO ((const MINT *, signed short int, MINT *, signed short int *));
|
||||
__GMP_DECLSPEC void msqrt __GMP_PROTO ((const MINT *, MINT *, MINT *));
|
||||
__GMP_DECLSPEC void pow __GMP_PROTO ((const MINT *, const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void rpow __GMP_PROTO ((const MINT *, signed short int, MINT *));
|
||||
__GMP_DECLSPEC void gcd __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC int mcmp __GMP_PROTO ((const MINT *, const MINT *));
|
||||
__GMP_DECLSPEC void min __GMP_PROTO ((MINT *));
|
||||
__GMP_DECLSPEC void mout __GMP_PROTO ((const MINT *));
|
||||
__GMP_DECLSPEC char *mtox __GMP_PROTO ((const MINT *));
|
||||
__GMP_DECLSPEC void mfree __GMP_PROTO ((MINT *));
|
||||
|
||||
#if defined (__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#define __MP_H__
|
||||
#endif /* __MP_H__ */
|
|
@ -1,12 +1,14 @@
|
|||
# $NetBSD: Makefile.inc,v 1.2 2012/11/26 18:57:35 drochner Exp $
|
||||
# $NetBSD: Makefile.inc,v 1.3 2013/11/29 08:03:42 mrg Exp $
|
||||
|
||||
SRCS+= \
|
||||
random.c \
|
||||
divrem_2.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 \
|
||||
toom44_mul.c \
|
||||
toom8h_mul.c \
|
||||
|
@ -14,22 +16,31 @@ SRCS+= \
|
|||
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 \
|
||||
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 \
|
||||
copyd.c \
|
||||
toom_eval_dgr3_pm2.c \
|
||||
|
@ -38,6 +49,7 @@ SRCS+= \
|
|||
copyi.c \
|
||||
toom_couple_handling.c \
|
||||
add.c \
|
||||
div_qr_2.c \
|
||||
toom_interpolate_12pts.c \
|
||||
perfsqr.c \
|
||||
toom53_mul.c \
|
||||
|
@ -47,15 +59,18 @@ SRCS+= \
|
|||
mod_34lsub1.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 \
|
||||
|
@ -68,36 +83,43 @@ SRCS+= \
|
|||
bdiv_q_1.c \
|
||||
gcdext_1.c \
|
||||
toom63_mul.c \
|
||||
div_qr_2u_pi1.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 \
|
||||
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 \
|
||||
mullo_basecase.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 \
|
||||
toom6h_mul.c \
|
||||
mul_fft.c \
|
||||
sqrmod_bnm1.c \
|
||||
mul_fft.c \
|
||||
mulmid.c \
|
||||
powm.c \
|
||||
rootrem.c \
|
||||
mode1o.c \
|
||||
|
@ -107,39 +129,49 @@ 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 \
|
||||
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 \
|
||||
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 \
|
||||
and_n.c mpn/generic/logops_n.c \
|
||||
ior_n.c mpn/generic/logops_n.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= \
|
||||
|
|
|
@ -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 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* 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 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #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
|
||||
|
@ -217,9 +225,25 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_add_n_sub_n */
|
||||
/* #undef HAVE_NATIVE_mpn_add_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addaddmul_1msb0 */
|
||||
/* #undef HAVE_NATIVE_mpn_addcnd_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_3 */
|
||||
|
@ -228,6 +252,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_addmul_6 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_7 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_8 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_2s */
|
||||
/* #undef HAVE_NATIVE_mpn_and_n */
|
||||
/* #undef HAVE_NATIVE_mpn_andn_n */
|
||||
/* #undef HAVE_NATIVE_mpn_bdiv_dbm1c */
|
||||
|
@ -236,6 +261,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_com */
|
||||
/* #undef HAVE_NATIVE_mpn_copyd */
|
||||
/* #undef HAVE_NATIVE_mpn_copyi */
|
||||
/* #undef HAVE_NATIVE_mpn_div_qr_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_divexact_1 */
|
||||
/* #undef HAVE_NATIVE_mpn_divexact_by3c */
|
||||
/* #undef HAVE_NATIVE_mpn_divrem_1 */
|
||||
|
@ -262,6 +288,8 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_mul_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_3 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_4 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_5 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_6 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_basecase */
|
||||
/* #undef HAVE_NATIVE_mpn_nand_n */
|
||||
/* #undef HAVE_NATIVE_mpn_nior_n */
|
||||
|
@ -273,6 +301,9 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_rsblsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1add_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1add_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1sub_n */
|
||||
|
@ -280,12 +311,24 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define HAVE_NATIVE_mpn_rshift 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
|
||||
/* #undef HAVE_NATIVE_mpn_sub_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_subcnd_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_submul_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_tabselect */
|
||||
/* #undef HAVE_NATIVE_mpn_udiv_qrnnd */
|
||||
/* #undef HAVE_NATIVE_mpn_udiv_qrnnd_r */
|
||||
#define HAVE_NATIVE_mpn_umul_ppmm 1
|
||||
|
@ -450,6 +493,9 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* Define to 1 if you have the `vsnprintf' function and it works properly. */
|
||||
#define HAVE_VSNPRINTF 1
|
||||
|
||||
/* Define to 1 for Windos/64 */
|
||||
/* #undef HOST_DOS64 */
|
||||
|
||||
/* Assembler local label prefix */
|
||||
#define LSYM_PREFIX ".L"
|
||||
|
||||
|
@ -461,13 +507,13 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define PACKAGE "gmp"
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org"
|
||||
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html"
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#define PACKAGE_NAME "GNU MP"
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#define PACKAGE_STRING "GNU MP 5.0.2"
|
||||
#define PACKAGE_STRING "GNU MP 5.1.3"
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#define PACKAGE_TARNAME "gmp"
|
||||
|
@ -476,10 +522,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define PACKAGE_URL "http://www.gnu.org/software/gmp/"
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#define PACKAGE_VERSION "5.0.2"
|
||||
|
||||
/* Define to 1 if the C compiler supports function prototypes. */
|
||||
#define PROTOTYPES 1
|
||||
#define PACKAGE_VERSION "5.1.3"
|
||||
|
||||
/* Define as the return type of signal handlers (`int' or `void'). */
|
||||
#define RETSIGTYPE void
|
||||
|
@ -512,7 +555,10 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define TUNE_SQR_TOOM2_MAX SQR_TOOM2_MAX_GENERIC
|
||||
|
||||
/* Version number of package */
|
||||
#define VERSION "5.0.2"
|
||||
#define VERSION "5.1.3"
|
||||
|
||||
/* Defined to 1 as per --enable-assembly */
|
||||
#define WANT_ASSEMBLY 1
|
||||
|
||||
/* Define to 1 to enable ASSERT checking, per --enable-assert */
|
||||
/* #undef WANT_ASSERT */
|
||||
|
@ -559,9 +605,6 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
`char[]'. */
|
||||
#define YYTEXT_POINTER 1
|
||||
|
||||
/* Define like PROTOTYPES; this can be used by system headers. */
|
||||
#define __PROTOTYPES 1
|
||||
|
||||
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
||||
calls it, or to nothing if 'inline' is not supported under any name. */
|
||||
#ifndef __cplusplus
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,164 +0,0 @@
|
|||
/* mp-h.in -- Definitions for the GNU multiple precision library -*-mode:c-*-
|
||||
BSD mp compatible functions.
|
||||
|
||||
Copyright 1991, 1993, 1994, 1995, 1996, 2000, 2001, 2002, 2004 Free Software
|
||||
Foundation, Inc.
|
||||
|
||||
This file is part of the GNU MP Library.
|
||||
|
||||
The GNU MP Library is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or (at your
|
||||
option) any later version.
|
||||
|
||||
The GNU MP Library is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||
License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
|
||||
|
||||
#ifndef __MP_H__
|
||||
|
||||
|
||||
/* The following (everything under ifndef __GNU_MP__) must be identical in
|
||||
gmp.h and mp.h to allow both to be included in an application or during
|
||||
the library build. Use the t-gmp-mp-h.pl script to check. */
|
||||
#ifndef __GNU_MP__
|
||||
#define __GNU_MP__ 5
|
||||
|
||||
#define __need_size_t /* tell gcc stddef.h we only want size_t */
|
||||
#if defined (__cplusplus)
|
||||
#include <cstddef> /* for size_t */
|
||||
#else
|
||||
#include <stddef.h> /* for size_t */
|
||||
#endif
|
||||
#undef __need_size_t
|
||||
|
||||
/* The following instantiated by configure, for internal use only */
|
||||
#if ! defined (__GMP_WITHIN_CONFIGURE)
|
||||
/* #undef _LONG_LONG_LIMB */
|
||||
#define __GMP_LIBGMP_DLL 0
|
||||
#endif
|
||||
|
||||
#if defined (__STDC__) \
|
||||
|| defined (__cplusplus) \
|
||||
|| defined (_AIX) \
|
||||
|| defined (__DECC) \
|
||||
|| (defined (__mips) && defined (_SYSTYPE_SVR4)) \
|
||||
|| defined (_MSC_VER) \
|
||||
|| defined (_WIN32)
|
||||
#define __GMP_HAVE_CONST 1
|
||||
#define __GMP_HAVE_PROTOTYPES 1
|
||||
#define __GMP_HAVE_TOKEN_PASTE 1
|
||||
#else
|
||||
#define __GMP_HAVE_CONST 0
|
||||
#define __GMP_HAVE_PROTOTYPES 0
|
||||
#define __GMP_HAVE_TOKEN_PASTE 0
|
||||
#endif
|
||||
|
||||
|
||||
#if __GMP_HAVE_CONST
|
||||
#define __gmp_const const
|
||||
#define __gmp_signed signed
|
||||
#else
|
||||
#define __gmp_const
|
||||
#define __gmp_signed
|
||||
#endif
|
||||
|
||||
#if defined (__GNUC__)
|
||||
#define __GMP_DECLSPEC_EXPORT __declspec(__dllexport__)
|
||||
#define __GMP_DECLSPEC_IMPORT __declspec(__dllimport__)
|
||||
#endif
|
||||
#if defined (_MSC_VER) || defined (__BORLANDC__)
|
||||
#define __GMP_DECLSPEC_EXPORT __declspec(dllexport)
|
||||
#define __GMP_DECLSPEC_IMPORT __declspec(dllimport)
|
||||
#endif
|
||||
#ifdef __WATCOMC__
|
||||
#define __GMP_DECLSPEC_EXPORT __export
|
||||
#define __GMP_DECLSPEC_IMPORT __import
|
||||
#endif
|
||||
#ifdef __IBMC__
|
||||
#define __GMP_DECLSPEC_EXPORT _Export
|
||||
#define __GMP_DECLSPEC_IMPORT _Import
|
||||
#endif
|
||||
|
||||
#if __GMP_LIBGMP_DLL
|
||||
#if __GMP_WITHIN_GMP
|
||||
#define __GMP_DECLSPEC __GMP_DECLSPEC_EXPORT
|
||||
#else
|
||||
#define __GMP_DECLSPEC __GMP_DECLSPEC_IMPORT
|
||||
#endif
|
||||
#else
|
||||
#define __GMP_DECLSPEC
|
||||
#endif
|
||||
|
||||
#ifdef __GMP_SHORT_LIMB
|
||||
typedef unsigned int mp_limb_t;
|
||||
typedef int mp_limb_signed_t;
|
||||
#else
|
||||
#ifdef _LONG_LONG_LIMB
|
||||
typedef unsigned long long int mp_limb_t;
|
||||
typedef long long int mp_limb_signed_t;
|
||||
#else
|
||||
typedef unsigned long int mp_limb_t;
|
||||
typedef long int mp_limb_signed_t;
|
||||
#endif
|
||||
#endif
|
||||
typedef unsigned long int mp_bitcnt_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int _mp_alloc; /* Number of *limbs* allocated and pointed
|
||||
to by the _mp_d field. */
|
||||
int _mp_size; /* abs(_mp_size) is the number of limbs the
|
||||
last field points to. If _mp_size is
|
||||
negative this is a negative number. */
|
||||
mp_limb_t *_mp_d; /* Pointer to the limbs. */
|
||||
} __mpz_struct;
|
||||
|
||||
#endif /* __GNU_MP__ */
|
||||
|
||||
/* User-visible types. */
|
||||
typedef __mpz_struct MINT;
|
||||
|
||||
|
||||
#if __GMP_HAVE_PROTOTYPES
|
||||
#define __GMP_PROTO(x) x
|
||||
#else
|
||||
#define __GMP_PROTO(x) ()
|
||||
#endif
|
||||
|
||||
#if defined (__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define mp_set_memory_functions __gmp_set_memory_functions
|
||||
__GMP_DECLSPEC void mp_set_memory_functions __GMP_PROTO ((void *(*) (size_t),
|
||||
void *(*) (void *, size_t, size_t),
|
||||
void (*) (void *, size_t)));
|
||||
__GMP_DECLSPEC MINT *itom __GMP_PROTO ((signed short int));
|
||||
__GMP_DECLSPEC MINT *xtom __GMP_PROTO ((const char *));
|
||||
__GMP_DECLSPEC void move __GMP_PROTO ((const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void madd __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void msub __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void mult __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void mdiv __GMP_PROTO ((const MINT *, const MINT *, MINT *, MINT *));
|
||||
__GMP_DECLSPEC void sdiv __GMP_PROTO ((const MINT *, signed short int, MINT *, signed short int *));
|
||||
__GMP_DECLSPEC void msqrt __GMP_PROTO ((const MINT *, MINT *, MINT *));
|
||||
__GMP_DECLSPEC void pow __GMP_PROTO ((const MINT *, const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void rpow __GMP_PROTO ((const MINT *, signed short int, MINT *));
|
||||
__GMP_DECLSPEC void gcd __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC int mcmp __GMP_PROTO ((const MINT *, const MINT *));
|
||||
__GMP_DECLSPEC void min __GMP_PROTO ((MINT *));
|
||||
__GMP_DECLSPEC void mout __GMP_PROTO ((const MINT *));
|
||||
__GMP_DECLSPEC char *mtox __GMP_PROTO ((const MINT *));
|
||||
__GMP_DECLSPEC void mfree __GMP_PROTO ((MINT *));
|
||||
|
||||
#if defined (__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#define __MP_H__
|
||||
#endif /* __MP_H__ */
|
|
@ -1,12 +1,14 @@
|
|||
# $NetBSD: Makefile.inc,v 1.2 2012/11/26 18:57:35 drochner Exp $
|
||||
# $NetBSD: Makefile.inc,v 1.3 2013/11/29 08:03:42 mrg Exp $
|
||||
|
||||
SRCS+= \
|
||||
random.c \
|
||||
divrem_2.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 \
|
||||
toom44_mul.c \
|
||||
toom8h_mul.c \
|
||||
|
@ -14,22 +16,31 @@ SRCS+= \
|
|||
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 \
|
||||
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 \
|
||||
copyd.c \
|
||||
toom_eval_dgr3_pm2.c \
|
||||
|
@ -38,6 +49,7 @@ SRCS+= \
|
|||
copyi.c \
|
||||
toom_couple_handling.c \
|
||||
add.c \
|
||||
div_qr_2.c \
|
||||
toom_interpolate_12pts.c \
|
||||
perfsqr.c \
|
||||
toom53_mul.c \
|
||||
|
@ -47,15 +59,18 @@ SRCS+= \
|
|||
mod_34lsub1.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 \
|
||||
|
@ -68,36 +83,43 @@ SRCS+= \
|
|||
bdiv_q_1.c \
|
||||
gcdext_1.c \
|
||||
toom63_mul.c \
|
||||
div_qr_2u_pi1.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 \
|
||||
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 \
|
||||
mullo_basecase.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 \
|
||||
toom6h_mul.c \
|
||||
mul_fft.c \
|
||||
sqrmod_bnm1.c \
|
||||
mul_fft.c \
|
||||
mulmid.c \
|
||||
powm.c \
|
||||
rootrem.c \
|
||||
mode1o.c \
|
||||
|
@ -107,39 +129,49 @@ 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 \
|
||||
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= \
|
||||
|
|
|
@ -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 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* 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 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #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
|
||||
|
@ -217,9 +225,25 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_add_n_sub_n */
|
||||
/* #undef HAVE_NATIVE_mpn_add_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addaddmul_1msb0 */
|
||||
/* #undef HAVE_NATIVE_mpn_addcnd_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_3 */
|
||||
|
@ -228,6 +252,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_addmul_6 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_7 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_8 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_2s */
|
||||
/* #undef HAVE_NATIVE_mpn_and_n */
|
||||
/* #undef HAVE_NATIVE_mpn_andn_n */
|
||||
/* #undef HAVE_NATIVE_mpn_bdiv_dbm1c */
|
||||
|
@ -236,6 +261,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_com */
|
||||
/* #undef HAVE_NATIVE_mpn_copyd */
|
||||
/* #undef HAVE_NATIVE_mpn_copyi */
|
||||
/* #undef HAVE_NATIVE_mpn_div_qr_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_divexact_1 */
|
||||
/* #undef HAVE_NATIVE_mpn_divexact_by3c */
|
||||
/* #undef HAVE_NATIVE_mpn_divrem_1 */
|
||||
|
@ -262,6 +288,8 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_mul_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_3 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_4 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_5 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_6 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_basecase */
|
||||
/* #undef HAVE_NATIVE_mpn_nand_n */
|
||||
/* #undef HAVE_NATIVE_mpn_nior_n */
|
||||
|
@ -273,6 +301,9 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_rsblsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1add_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1add_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1sub_n */
|
||||
|
@ -280,12 +311,24 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define HAVE_NATIVE_mpn_rshift 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
|
||||
/* #undef HAVE_NATIVE_mpn_sub_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_subcnd_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_submul_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_tabselect */
|
||||
/* #undef HAVE_NATIVE_mpn_udiv_qrnnd */
|
||||
/* #undef HAVE_NATIVE_mpn_udiv_qrnnd_r */
|
||||
#define HAVE_NATIVE_mpn_umul_ppmm 1
|
||||
|
@ -343,7 +386,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_SSTREAM */
|
||||
|
||||
/* Define to 1 if the system has the type `stack_t'. */
|
||||
/* #undef HAVE_STACK_T */
|
||||
#define HAVE_STACK_T 1
|
||||
|
||||
/* Define to 1 if <stdarg.h> exists and works */
|
||||
#define HAVE_STDARG 1
|
||||
|
@ -403,7 +446,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define HAVE_SYS_MMAN_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/param.h> header file. */
|
||||
/* #undef HAVE_SYS_PARAM_H */
|
||||
#define HAVE_SYS_PARAM_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/processor.h> header file. */
|
||||
/* #undef HAVE_SYS_PROCESSOR_H */
|
||||
|
@ -418,7 +461,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define HAVE_SYS_STAT_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/sysctl.h> header file. */
|
||||
/* #undef HAVE_SYS_SYSCTL_H */
|
||||
#define HAVE_SYS_SYSCTL_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/sysinfo.h> header file. */
|
||||
/* #undef HAVE_SYS_SYSINFO_H */
|
||||
|
@ -450,6 +493,9 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* Define to 1 if you have the `vsnprintf' function and it works properly. */
|
||||
#define HAVE_VSNPRINTF 1
|
||||
|
||||
/* Define to 1 for Windos/64 */
|
||||
/* #undef HOST_DOS64 */
|
||||
|
||||
/* Assembler local label prefix */
|
||||
#define LSYM_PREFIX ".L"
|
||||
|
||||
|
@ -461,13 +507,13 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define PACKAGE "gmp"
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org"
|
||||
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html"
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#define PACKAGE_NAME "GNU MP"
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#define PACKAGE_STRING "GNU MP 5.0.2"
|
||||
#define PACKAGE_STRING "GNU MP 5.1.3"
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#define PACKAGE_TARNAME "gmp"
|
||||
|
@ -476,10 +522,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define PACKAGE_URL "http://www.gnu.org/software/gmp/"
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#define PACKAGE_VERSION "5.0.2"
|
||||
|
||||
/* Define to 1 if the C compiler supports function prototypes. */
|
||||
#define PROTOTYPES 1
|
||||
#define PACKAGE_VERSION "5.1.3"
|
||||
|
||||
/* Define as the return type of signal handlers (`int' or `void'). */
|
||||
#define RETSIGTYPE void
|
||||
|
@ -512,7 +555,10 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define TUNE_SQR_TOOM2_MAX SQR_TOOM2_MAX_GENERIC
|
||||
|
||||
/* Version number of package */
|
||||
#define VERSION "5.0.2"
|
||||
#define VERSION "5.1.3"
|
||||
|
||||
/* Defined to 1 as per --enable-assembly */
|
||||
#define WANT_ASSEMBLY 1
|
||||
|
||||
/* Define to 1 to enable ASSERT checking, per --enable-assert */
|
||||
/* #undef WANT_ASSERT */
|
||||
|
@ -559,9 +605,6 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
`char[]'. */
|
||||
#define YYTEXT_POINTER 1
|
||||
|
||||
/* Define like PROTOTYPES; this can be used by system headers. */
|
||||
#define __PROTOTYPES 1
|
||||
|
||||
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
||||
calls it, or to nothing if 'inline' is not supported under any name. */
|
||||
#ifndef __cplusplus
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,164 +0,0 @@
|
|||
/* mp-h.in -- Definitions for the GNU multiple precision library -*-mode:c-*-
|
||||
BSD mp compatible functions.
|
||||
|
||||
Copyright 1991, 1993, 1994, 1995, 1996, 2000, 2001, 2002, 2004 Free Software
|
||||
Foundation, Inc.
|
||||
|
||||
This file is part of the GNU MP Library.
|
||||
|
||||
The GNU MP Library is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or (at your
|
||||
option) any later version.
|
||||
|
||||
The GNU MP Library is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||
License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
|
||||
|
||||
#ifndef __MP_H__
|
||||
|
||||
|
||||
/* The following (everything under ifndef __GNU_MP__) must be identical in
|
||||
gmp.h and mp.h to allow both to be included in an application or during
|
||||
the library build. Use the t-gmp-mp-h.pl script to check. */
|
||||
#ifndef __GNU_MP__
|
||||
#define __GNU_MP__ 5
|
||||
|
||||
#define __need_size_t /* tell gcc stddef.h we only want size_t */
|
||||
#if defined (__cplusplus)
|
||||
#include <cstddef> /* for size_t */
|
||||
#else
|
||||
#include <stddef.h> /* for size_t */
|
||||
#endif
|
||||
#undef __need_size_t
|
||||
|
||||
/* The following instantiated by configure, for internal use only */
|
||||
#if ! defined (__GMP_WITHIN_CONFIGURE)
|
||||
/* #undef _LONG_LONG_LIMB */
|
||||
#define __GMP_LIBGMP_DLL 0
|
||||
#endif
|
||||
|
||||
#if defined (__STDC__) \
|
||||
|| defined (__cplusplus) \
|
||||
|| defined (_AIX) \
|
||||
|| defined (__DECC) \
|
||||
|| (defined (__mips) && defined (_SYSTYPE_SVR4)) \
|
||||
|| defined (_MSC_VER) \
|
||||
|| defined (_WIN32)
|
||||
#define __GMP_HAVE_CONST 1
|
||||
#define __GMP_HAVE_PROTOTYPES 1
|
||||
#define __GMP_HAVE_TOKEN_PASTE 1
|
||||
#else
|
||||
#define __GMP_HAVE_CONST 0
|
||||
#define __GMP_HAVE_PROTOTYPES 0
|
||||
#define __GMP_HAVE_TOKEN_PASTE 0
|
||||
#endif
|
||||
|
||||
|
||||
#if __GMP_HAVE_CONST
|
||||
#define __gmp_const const
|
||||
#define __gmp_signed signed
|
||||
#else
|
||||
#define __gmp_const
|
||||
#define __gmp_signed
|
||||
#endif
|
||||
|
||||
#if defined (__GNUC__)
|
||||
#define __GMP_DECLSPEC_EXPORT __declspec(__dllexport__)
|
||||
#define __GMP_DECLSPEC_IMPORT __declspec(__dllimport__)
|
||||
#endif
|
||||
#if defined (_MSC_VER) || defined (__BORLANDC__)
|
||||
#define __GMP_DECLSPEC_EXPORT __declspec(dllexport)
|
||||
#define __GMP_DECLSPEC_IMPORT __declspec(dllimport)
|
||||
#endif
|
||||
#ifdef __WATCOMC__
|
||||
#define __GMP_DECLSPEC_EXPORT __export
|
||||
#define __GMP_DECLSPEC_IMPORT __import
|
||||
#endif
|
||||
#ifdef __IBMC__
|
||||
#define __GMP_DECLSPEC_EXPORT _Export
|
||||
#define __GMP_DECLSPEC_IMPORT _Import
|
||||
#endif
|
||||
|
||||
#if __GMP_LIBGMP_DLL
|
||||
#if __GMP_WITHIN_GMP
|
||||
#define __GMP_DECLSPEC __GMP_DECLSPEC_EXPORT
|
||||
#else
|
||||
#define __GMP_DECLSPEC __GMP_DECLSPEC_IMPORT
|
||||
#endif
|
||||
#else
|
||||
#define __GMP_DECLSPEC
|
||||
#endif
|
||||
|
||||
#ifdef __GMP_SHORT_LIMB
|
||||
typedef unsigned int mp_limb_t;
|
||||
typedef int mp_limb_signed_t;
|
||||
#else
|
||||
#ifdef _LONG_LONG_LIMB
|
||||
typedef unsigned long long int mp_limb_t;
|
||||
typedef long long int mp_limb_signed_t;
|
||||
#else
|
||||
typedef unsigned long int mp_limb_t;
|
||||
typedef long int mp_limb_signed_t;
|
||||
#endif
|
||||
#endif
|
||||
typedef unsigned long int mp_bitcnt_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int _mp_alloc; /* Number of *limbs* allocated and pointed
|
||||
to by the _mp_d field. */
|
||||
int _mp_size; /* abs(_mp_size) is the number of limbs the
|
||||
last field points to. If _mp_size is
|
||||
negative this is a negative number. */
|
||||
mp_limb_t *_mp_d; /* Pointer to the limbs. */
|
||||
} __mpz_struct;
|
||||
|
||||
#endif /* __GNU_MP__ */
|
||||
|
||||
/* User-visible types. */
|
||||
typedef __mpz_struct MINT;
|
||||
|
||||
|
||||
#if __GMP_HAVE_PROTOTYPES
|
||||
#define __GMP_PROTO(x) x
|
||||
#else
|
||||
#define __GMP_PROTO(x) ()
|
||||
#endif
|
||||
|
||||
#if defined (__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define mp_set_memory_functions __gmp_set_memory_functions
|
||||
__GMP_DECLSPEC void mp_set_memory_functions __GMP_PROTO ((void *(*) (size_t),
|
||||
void *(*) (void *, size_t, size_t),
|
||||
void (*) (void *, size_t)));
|
||||
__GMP_DECLSPEC MINT *itom __GMP_PROTO ((signed short int));
|
||||
__GMP_DECLSPEC MINT *xtom __GMP_PROTO ((const char *));
|
||||
__GMP_DECLSPEC void move __GMP_PROTO ((const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void madd __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void msub __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void mult __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void mdiv __GMP_PROTO ((const MINT *, const MINT *, MINT *, MINT *));
|
||||
__GMP_DECLSPEC void sdiv __GMP_PROTO ((const MINT *, signed short int, MINT *, signed short int *));
|
||||
__GMP_DECLSPEC void msqrt __GMP_PROTO ((const MINT *, MINT *, MINT *));
|
||||
__GMP_DECLSPEC void pow __GMP_PROTO ((const MINT *, const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void rpow __GMP_PROTO ((const MINT *, signed short int, MINT *));
|
||||
__GMP_DECLSPEC void gcd __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC int mcmp __GMP_PROTO ((const MINT *, const MINT *));
|
||||
__GMP_DECLSPEC void min __GMP_PROTO ((MINT *));
|
||||
__GMP_DECLSPEC void mout __GMP_PROTO ((const MINT *));
|
||||
__GMP_DECLSPEC char *mtox __GMP_PROTO ((const MINT *));
|
||||
__GMP_DECLSPEC void mfree __GMP_PROTO ((MINT *));
|
||||
|
||||
#if defined (__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#define __MP_H__
|
||||
#endif /* __MP_H__ */
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.inc,v 1.4 2012/11/26 18:57:35 drochner Exp $
|
||||
# $NetBSD: Makefile.inc,v 1.5 2013/11/29 08:03:42 mrg Exp $
|
||||
|
||||
SRCS+= \
|
||||
random.c \
|
||||
|
@ -6,6 +6,8 @@ SRCS+= \
|
|||
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,22 +15,30 @@ SRCS+= \
|
|||
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 \
|
||||
dcpi1_div_qr.c \
|
||||
mu_divappr_q.c \
|
||||
redc_1_sec.c \
|
||||
dcpi1_div_qr.c \
|
||||
hgcd_reduce.c \
|
||||
matrix22_mul1_inverse_vector.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 \
|
||||
|
@ -37,23 +47,27 @@ SRCS+= \
|
|||
copyi.c \
|
||||
toom_couple_handling.c \
|
||||
add.c \
|
||||
div_qr_2.c \
|
||||
toom_interpolate_12pts.c \
|
||||
perfsqr.c \
|
||||
toom53_mul.c \
|
||||
toom_eval_pm2exp.c \
|
||||
toom_interpolate_16pts.c \
|
||||
mu_div_qr.c \
|
||||
toom_interpolate_16pts.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 \
|
||||
|
@ -65,6 +79,7 @@ SRCS+= \
|
|||
bdiv_q_1.c \
|
||||
gcdext_1.c \
|
||||
toom63_mul.c \
|
||||
div_qr_2u_pi1.c \
|
||||
mul_basecase.c \
|
||||
toom8_sqr.c \
|
||||
neg.c \
|
||||
|
@ -75,66 +90,81 @@ SRCS+= \
|
|||
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 \
|
||||
mullo_basecase.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 \
|
||||
toom6h_mul.c \
|
||||
mul_fft.c \
|
||||
sqrmod_bnm1.c \
|
||||
mul_fft.c \
|
||||
mulmid.c \
|
||||
powm.c \
|
||||
rootrem.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 \
|
||||
gcd_lehmer.c \
|
||||
get_d.c \
|
||||
toom52_mul.c \
|
||||
sbpi1_div_q.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= \
|
||||
|
@ -143,14 +173,17 @@ ASM_SRCS_LIST= \
|
|||
sublsh1_n.asm mpn/powerpc32/sublsh1_n.asm \
|
||||
submul_1.asm mpn/powerpc32/submul_1.asm \
|
||||
umul.asm mpn/powerpc32/umul.asm \
|
||||
tabselect.asm mpn/powerpc32/tabselect.asm \
|
||||
lshift.asm mpn/powerpc32/lshift.asm \
|
||||
mul_1.asm mpn/powerpc32/mul_1.asm \
|
||||
bdiv_dbm1c.asm mpn/powerpc32/bdiv_dbm1c.asm \
|
||||
rshift.asm mpn/powerpc32/rshift.asm \
|
||||
mod_34lsub1.asm mpn/powerpc32/mod_34lsub1.asm \
|
||||
lshiftc.asm mpn/powerpc32/lshiftc.asm \
|
||||
mode1o.asm mpn/powerpc32/mode1o.asm \
|
||||
addlsh1_n.asm mpn/powerpc32/addlsh1_n.asm \
|
||||
diveby3.asm mpn/powerpc32/diveby3.asm \
|
||||
invert_limb.asm mpn/powerpc32/invert_limb.asm \
|
||||
addmul_1.asm mpn/powerpc32/addmul_1.asm \
|
||||
divrem_2.asm mpn/powerpc32/divrem_2.asm \
|
||||
sub_n.asm mpn/powerpc32/aors_n.asm \
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
@ -27,7 +27,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
|
||||
/* The gmp-mparam.h file (a string) the tune program should suggest updating.
|
||||
*/
|
||||
#define GMP_MPARAM_H_SUGGEST "/u1/netbsd-HEAD/src/external/lgpl3/gmp/dist/mpn/powerpc32/gmp-mparam.h"
|
||||
#define GMP_MPARAM_H_SUGGEST "./mpn/powerpc32/gmp-mparam.h"
|
||||
|
||||
/* Define to 1 if you have the `alarm' function. */
|
||||
#define HAVE_ALARM 1
|
||||
|
@ -62,7 +62,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* 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 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #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
|
||||
|
@ -217,9 +225,25 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_add_n_sub_n */
|
||||
#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 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_3 */
|
||||
|
@ -228,6 +252,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_addmul_6 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_7 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_8 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_2s */
|
||||
/* #undef HAVE_NATIVE_mpn_and_n */
|
||||
/* #undef HAVE_NATIVE_mpn_andn_n */
|
||||
#define HAVE_NATIVE_mpn_bdiv_dbm1c 1
|
||||
|
@ -236,6 +261,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_com */
|
||||
/* #undef HAVE_NATIVE_mpn_copyd */
|
||||
/* #undef HAVE_NATIVE_mpn_copyi */
|
||||
/* #undef HAVE_NATIVE_mpn_div_qr_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_divexact_1 */
|
||||
#define HAVE_NATIVE_mpn_divexact_by3c 1
|
||||
/* #undef HAVE_NATIVE_mpn_divrem_1 */
|
||||
|
@ -243,11 +269,11 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define HAVE_NATIVE_mpn_divrem_2 1
|
||||
/* #undef HAVE_NATIVE_mpn_gcd_1 */
|
||||
/* #undef HAVE_NATIVE_mpn_hamdist */
|
||||
/* #undef HAVE_NATIVE_mpn_invert_limb */
|
||||
#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
|
||||
/* #undef HAVE_NATIVE_mpn_lshiftc */
|
||||
#define HAVE_NATIVE_mpn_lshiftc 1
|
||||
/* #undef HAVE_NATIVE_mpn_lshsub_n */
|
||||
/* #undef HAVE_NATIVE_mpn_mod_1 */
|
||||
/* #undef HAVE_NATIVE_mpn_mod_1_1p */
|
||||
|
@ -262,6 +288,8 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_mul_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_3 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_4 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_5 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_6 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_basecase */
|
||||
/* #undef HAVE_NATIVE_mpn_nand_n */
|
||||
/* #undef HAVE_NATIVE_mpn_nior_n */
|
||||
|
@ -273,6 +301,9 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_rsblsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1add_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1add_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1sub_n */
|
||||
|
@ -280,12 +311,24 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define HAVE_NATIVE_mpn_rshift 1
|
||||
/* #undef HAVE_NATIVE_mpn_sqr_basecase */
|
||||
#define HAVE_NATIVE_mpn_sqr_diagonal 1
|
||||
/* #undef HAVE_NATIVE_mpn_sqr_diag_addlsh1 */
|
||||
#define HAVE_NATIVE_mpn_sub_n 1
|
||||
#define HAVE_NATIVE_mpn_sub_nc 1
|
||||
/* #undef HAVE_NATIVE_mpn_subcnd_n */
|
||||
#define HAVE_NATIVE_mpn_sublsh1_n 1
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_submul_1c */
|
||||
#define HAVE_NATIVE_mpn_tabselect 1
|
||||
/* #undef HAVE_NATIVE_mpn_udiv_qrnnd */
|
||||
/* #undef HAVE_NATIVE_mpn_udiv_qrnnd_r */
|
||||
#define HAVE_NATIVE_mpn_umul_ppmm 1
|
||||
|
@ -450,6 +493,9 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* Define to 1 if you have the `vsnprintf' function and it works properly. */
|
||||
#define HAVE_VSNPRINTF 1
|
||||
|
||||
/* Define to 1 for Windos/64 */
|
||||
/* #undef HOST_DOS64 */
|
||||
|
||||
/* Assembler local label prefix */
|
||||
#define LSYM_PREFIX ".L"
|
||||
|
||||
|
@ -461,13 +507,13 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define PACKAGE "gmp"
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org"
|
||||
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html"
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#define PACKAGE_NAME "GNU MP"
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#define PACKAGE_STRING "GNU MP 5.0.2"
|
||||
#define PACKAGE_STRING "GNU MP 5.1.3"
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#define PACKAGE_TARNAME "gmp"
|
||||
|
@ -476,10 +522,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define PACKAGE_URL "http://www.gnu.org/software/gmp/"
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#define PACKAGE_VERSION "5.0.2"
|
||||
|
||||
/* Define to 1 if the C compiler supports function prototypes. */
|
||||
#define PROTOTYPES 1
|
||||
#define PACKAGE_VERSION "5.1.3"
|
||||
|
||||
/* Define as the return type of signal handlers (`int' or `void'). */
|
||||
#define RETSIGTYPE void
|
||||
|
@ -512,7 +555,10 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define TUNE_SQR_TOOM2_MAX SQR_TOOM2_MAX_GENERIC
|
||||
|
||||
/* Version number of package */
|
||||
#define VERSION "5.0.2"
|
||||
#define VERSION "5.1.3"
|
||||
|
||||
/* Defined to 1 as per --enable-assembly */
|
||||
#define WANT_ASSEMBLY 1
|
||||
|
||||
/* Define to 1 to enable ASSERT checking, per --enable-assert */
|
||||
/* #undef WANT_ASSERT */
|
||||
|
@ -559,9 +605,6 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
`char[]'. */
|
||||
#define YYTEXT_POINTER 1
|
||||
|
||||
/* Define like PROTOTYPES; this can be used by system headers. */
|
||||
#define __PROTOTYPES 1
|
||||
|
||||
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
||||
calls it, or to nothing if 'inline' is not supported under any name. */
|
||||
#ifndef __cplusplus
|
||||
|
|
|
@ -10,7 +10,7 @@ define(<LABEL_SUFFIX>, <:>)
|
|||
define(<GLOBL>, <.globl>)
|
||||
define(<GLOBL_ATTR>, <>)
|
||||
define(<GSYM_PREFIX>, <>)
|
||||
define(<RODATA>, < .section .sdata,"aw",@progbits>)
|
||||
define(<RODATA>, < .section .rodata>)
|
||||
define(<TYPE>, <.type $1,@$2>)
|
||||
define(<SIZE>, <.size $1,$2>)
|
||||
define(<LSYM_PREFIX>, <.L>)
|
||||
|
@ -18,7 +18,8 @@ define(<W32>, <.long>)
|
|||
define(<ALIGN_LOGARITHMIC>,<yes>)
|
||||
define(<PIC_ALWAYS>,<no>)
|
||||
define(<WANT_R_REGISTERS>,<no>)
|
||||
define(<SQR_TOOM2_THRESHOLD>,<24>)
|
||||
define(<SQR_TOOM2_THRESHOLD>,<26>)
|
||||
define(<BMOD_1_TO_MOD_1_THRESHOLD>,<66>)
|
||||
define(<SIZEOF_UNSIGNED>,<4>)
|
||||
define(<GMP_LIMB_BITS>,32)
|
||||
define(<GMP_NAIL_BITS>,0)
|
||||
|
|
|
@ -34,16 +34,18 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
|
|||
|
||||
#define DIVREM_1_NORM_THRESHOLD 0 /* always */
|
||||
#define DIVREM_1_UNNORM_THRESHOLD 0 /* always */
|
||||
#define MOD_1_1P_METHOD 1
|
||||
#define MOD_1_NORM_THRESHOLD 0 /* always */
|
||||
#define MOD_1_UNNORM_THRESHOLD 0 /* always */
|
||||
#define MOD_1N_TO_MOD_1_1_THRESHOLD 5
|
||||
#define MOD_1U_TO_MOD_1_1_THRESHOLD 8
|
||||
#define MOD_1_1_TO_MOD_1_2_THRESHOLD 16
|
||||
#define MOD_1_2_TO_MOD_1_4_THRESHOLD 65
|
||||
#define PREINV_MOD_1_TO_MOD_1_THRESHOLD 17
|
||||
#define MOD_1N_TO_MOD_1_1_THRESHOLD 8
|
||||
#define MOD_1U_TO_MOD_1_1_THRESHOLD 6
|
||||
#define MOD_1_1_TO_MOD_1_2_THRESHOLD 8
|
||||
#define MOD_1_2_TO_MOD_1_4_THRESHOLD 49
|
||||
#define PREINV_MOD_1_TO_MOD_1_THRESHOLD 18
|
||||
#define USE_PREINV_DIVREM_1 1
|
||||
#define DIV_QR_2_PI2_THRESHOLD MP_SIZE_T_MAX /* never */
|
||||
#define DIVEXACT_1_THRESHOLD 0 /* always */
|
||||
#define BMOD_1_TO_MOD_1_THRESHOLD 98
|
||||
#define BMOD_1_TO_MOD_1_THRESHOLD 66
|
||||
|
||||
#define MUL_TOOM22_THRESHOLD 14
|
||||
#define MUL_TOOM33_THRESHOLD 73
|
||||
|
@ -52,17 +54,20 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
|
|||
#define MUL_TOOM8H_THRESHOLD 236
|
||||
|
||||
#define MUL_TOOM32_TO_TOOM43_THRESHOLD 73
|
||||
#define MUL_TOOM32_TO_TOOM53_THRESHOLD 71
|
||||
#define MUL_TOOM32_TO_TOOM53_THRESHOLD 72
|
||||
#define MUL_TOOM42_TO_TOOM53_THRESHOLD 73
|
||||
#define MUL_TOOM42_TO_TOOM63_THRESHOLD 72
|
||||
#define MUL_TOOM43_TO_TOOM54_THRESHOLD 82
|
||||
|
||||
#define SQR_BASECASE_THRESHOLD 0 /* always */
|
||||
#define SQR_TOOM2_THRESHOLD 24
|
||||
#define SQR_BASECASE_THRESHOLD 4
|
||||
#define SQR_TOOM2_THRESHOLD 26
|
||||
#define SQR_TOOM3_THRESHOLD 77
|
||||
#define SQR_TOOM4_THRESHOLD 130
|
||||
#define SQR_TOOM4_THRESHOLD 136
|
||||
#define SQR_TOOM6_THRESHOLD 189
|
||||
#define SQR_TOOM8_THRESHOLD 284
|
||||
|
||||
#define MULMID_TOOM42_THRESHOLD 32
|
||||
|
||||
#define MULMOD_BNM1_THRESHOLD 9
|
||||
#define SQRMOD_BNM1_THRESHOLD 14
|
||||
|
||||
|
@ -111,9 +116,9 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
|
|||
{ 1535,12}, { 3071,13}, { 1919,12}, { 3839,15}, \
|
||||
{ 32768,16} }
|
||||
#define MUL_FFT_TABLE3_SIZE 165
|
||||
#define MUL_FFT_THRESHOLD 3712
|
||||
#define MUL_FFT_THRESHOLD 3392
|
||||
|
||||
#define SQR_FFT_MODF_THRESHOLD 248 /* k = 5 */
|
||||
#define SQR_FFT_MODF_THRESHOLD 236 /* k = 5 */
|
||||
#define SQR_FFT_TABLE3 \
|
||||
{ { 248, 5}, { 17, 6}, { 9, 5}, { 19, 6}, \
|
||||
{ 17, 7}, { 9, 6}, { 20, 7}, { 11, 6}, \
|
||||
|
@ -155,37 +160,44 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
|
|||
{ 767,13}, { 1535,12}, { 3199,13}, { 1919,15}, \
|
||||
{ 32768,16} }
|
||||
#define SQR_FFT_TABLE3_SIZE 153
|
||||
#define SQR_FFT_THRESHOLD 2688
|
||||
#define SQR_FFT_THRESHOLD 2368
|
||||
|
||||
#define MULLO_BASECASE_THRESHOLD 0 /* always */
|
||||
#define MULLO_DC_THRESHOLD 45
|
||||
#define MULLO_MUL_N_THRESHOLD 6633
|
||||
|
||||
#define DC_DIV_QR_THRESHOLD 43
|
||||
#define DC_DIVAPPR_Q_THRESHOLD 154
|
||||
#define DC_BDIV_QR_THRESHOLD 55
|
||||
#define DC_DIVAPPR_Q_THRESHOLD 153
|
||||
#define DC_BDIV_QR_THRESHOLD 54
|
||||
#define DC_BDIV_Q_THRESHOLD 124
|
||||
|
||||
#define INV_MULMOD_BNM1_THRESHOLD 108
|
||||
#define INV_MULMOD_BNM1_THRESHOLD 42
|
||||
#define INV_NEWTON_THRESHOLD 179
|
||||
#define INV_APPR_THRESHOLD 166
|
||||
#define INV_APPR_THRESHOLD 157
|
||||
|
||||
#define BINV_NEWTON_THRESHOLD 232
|
||||
#define BINV_NEWTON_THRESHOLD 204
|
||||
#define REDC_1_TO_REDC_N_THRESHOLD 54
|
||||
|
||||
#define MU_DIV_QR_THRESHOLD 1057
|
||||
#define MU_DIVAPPR_Q_THRESHOLD 1142
|
||||
#define MUPI_DIV_QR_THRESHOLD 83
|
||||
#define MU_BDIV_QR_THRESHOLD 872
|
||||
#define MU_BDIV_Q_THRESHOLD 1142
|
||||
#define MU_DIV_QR_THRESHOLD 998
|
||||
#define MU_DIVAPPR_Q_THRESHOLD 1037
|
||||
#define MUPI_DIV_QR_THRESHOLD 84
|
||||
#define MU_BDIV_QR_THRESHOLD 748
|
||||
#define MU_BDIV_Q_THRESHOLD 942
|
||||
|
||||
#define MATRIX22_STRASSEN_THRESHOLD 15
|
||||
#define HGCD_THRESHOLD 122
|
||||
#define POWM_SEC_TABLE 4,23,164,616,1812
|
||||
|
||||
#define MATRIX22_STRASSEN_THRESHOLD 11
|
||||
#define HGCD_THRESHOLD 118
|
||||
#define HGCD_APPR_THRESHOLD 167
|
||||
#define HGCD_REDUCE_THRESHOLD 1679
|
||||
#define GCD_DC_THRESHOLD 339
|
||||
#define GCDEXT_DC_THRESHOLD 278
|
||||
#define JACOBI_BASE_METHOD 1
|
||||
#define GCDEXT_DC_THRESHOLD 273
|
||||
#define JACOBI_BASE_METHOD 4
|
||||
|
||||
#define GET_STR_DC_THRESHOLD 17
|
||||
#define GET_STR_PRECOMPUTE_THRESHOLD 38
|
||||
#define GET_STR_DC_THRESHOLD 12
|
||||
#define GET_STR_PRECOMPUTE_THRESHOLD 27
|
||||
#define SET_STR_DC_THRESHOLD 781
|
||||
#define SET_STR_PRECOMPUTE_THRESHOLD 1505
|
||||
|
||||
#define FAC_DSC_THRESHOLD 141
|
||||
#define FAC_ODD_THRESHOLD 34
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,164 +0,0 @@
|
|||
/* mp-h.in -- Definitions for the GNU multiple precision library -*-mode:c-*-
|
||||
BSD mp compatible functions.
|
||||
|
||||
Copyright 1991, 1993, 1994, 1995, 1996, 2000, 2001, 2002, 2004 Free Software
|
||||
Foundation, Inc.
|
||||
|
||||
This file is part of the GNU MP Library.
|
||||
|
||||
The GNU MP Library is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or (at your
|
||||
option) any later version.
|
||||
|
||||
The GNU MP Library is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||
License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
|
||||
|
||||
#ifndef __MP_H__
|
||||
|
||||
|
||||
/* The following (everything under ifndef __GNU_MP__) must be identical in
|
||||
gmp.h and mp.h to allow both to be included in an application or during
|
||||
the library build. Use the t-gmp-mp-h.pl script to check. */
|
||||
#ifndef __GNU_MP__
|
||||
#define __GNU_MP__ 5
|
||||
|
||||
#define __need_size_t /* tell gcc stddef.h we only want size_t */
|
||||
#if defined (__cplusplus)
|
||||
#include <cstddef> /* for size_t */
|
||||
#else
|
||||
#include <stddef.h> /* for size_t */
|
||||
#endif
|
||||
#undef __need_size_t
|
||||
|
||||
/* The following instantiated by configure, for internal use only */
|
||||
#if ! defined (__GMP_WITHIN_CONFIGURE)
|
||||
/* #undef _LONG_LONG_LIMB */
|
||||
#define __GMP_LIBGMP_DLL 0
|
||||
#endif
|
||||
|
||||
#if defined (__STDC__) \
|
||||
|| defined (__cplusplus) \
|
||||
|| defined (_AIX) \
|
||||
|| defined (__DECC) \
|
||||
|| (defined (__mips) && defined (_SYSTYPE_SVR4)) \
|
||||
|| defined (_MSC_VER) \
|
||||
|| defined (_WIN32)
|
||||
#define __GMP_HAVE_CONST 1
|
||||
#define __GMP_HAVE_PROTOTYPES 1
|
||||
#define __GMP_HAVE_TOKEN_PASTE 1
|
||||
#else
|
||||
#define __GMP_HAVE_CONST 0
|
||||
#define __GMP_HAVE_PROTOTYPES 0
|
||||
#define __GMP_HAVE_TOKEN_PASTE 0
|
||||
#endif
|
||||
|
||||
|
||||
#if __GMP_HAVE_CONST
|
||||
#define __gmp_const const
|
||||
#define __gmp_signed signed
|
||||
#else
|
||||
#define __gmp_const
|
||||
#define __gmp_signed
|
||||
#endif
|
||||
|
||||
#if defined (__GNUC__)
|
||||
#define __GMP_DECLSPEC_EXPORT __declspec(__dllexport__)
|
||||
#define __GMP_DECLSPEC_IMPORT __declspec(__dllimport__)
|
||||
#endif
|
||||
#if defined (_MSC_VER) || defined (__BORLANDC__)
|
||||
#define __GMP_DECLSPEC_EXPORT __declspec(dllexport)
|
||||
#define __GMP_DECLSPEC_IMPORT __declspec(dllimport)
|
||||
#endif
|
||||
#ifdef __WATCOMC__
|
||||
#define __GMP_DECLSPEC_EXPORT __export
|
||||
#define __GMP_DECLSPEC_IMPORT __import
|
||||
#endif
|
||||
#ifdef __IBMC__
|
||||
#define __GMP_DECLSPEC_EXPORT _Export
|
||||
#define __GMP_DECLSPEC_IMPORT _Import
|
||||
#endif
|
||||
|
||||
#if __GMP_LIBGMP_DLL
|
||||
#if __GMP_WITHIN_GMP
|
||||
#define __GMP_DECLSPEC __GMP_DECLSPEC_EXPORT
|
||||
#else
|
||||
#define __GMP_DECLSPEC __GMP_DECLSPEC_IMPORT
|
||||
#endif
|
||||
#else
|
||||
#define __GMP_DECLSPEC
|
||||
#endif
|
||||
|
||||
#ifdef __GMP_SHORT_LIMB
|
||||
typedef unsigned int mp_limb_t;
|
||||
typedef int mp_limb_signed_t;
|
||||
#else
|
||||
#ifdef _LONG_LONG_LIMB
|
||||
typedef unsigned long long int mp_limb_t;
|
||||
typedef long long int mp_limb_signed_t;
|
||||
#else
|
||||
typedef unsigned long int mp_limb_t;
|
||||
typedef long int mp_limb_signed_t;
|
||||
#endif
|
||||
#endif
|
||||
typedef unsigned long int mp_bitcnt_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int _mp_alloc; /* Number of *limbs* allocated and pointed
|
||||
to by the _mp_d field. */
|
||||
int _mp_size; /* abs(_mp_size) is the number of limbs the
|
||||
last field points to. If _mp_size is
|
||||
negative this is a negative number. */
|
||||
mp_limb_t *_mp_d; /* Pointer to the limbs. */
|
||||
} __mpz_struct;
|
||||
|
||||
#endif /* __GNU_MP__ */
|
||||
|
||||
/* User-visible types. */
|
||||
typedef __mpz_struct MINT;
|
||||
|
||||
|
||||
#if __GMP_HAVE_PROTOTYPES
|
||||
#define __GMP_PROTO(x) x
|
||||
#else
|
||||
#define __GMP_PROTO(x) ()
|
||||
#endif
|
||||
|
||||
#if defined (__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define mp_set_memory_functions __gmp_set_memory_functions
|
||||
__GMP_DECLSPEC void mp_set_memory_functions __GMP_PROTO ((void *(*) (size_t),
|
||||
void *(*) (void *, size_t, size_t),
|
||||
void (*) (void *, size_t)));
|
||||
__GMP_DECLSPEC MINT *itom __GMP_PROTO ((signed short int));
|
||||
__GMP_DECLSPEC MINT *xtom __GMP_PROTO ((const char *));
|
||||
__GMP_DECLSPEC void move __GMP_PROTO ((const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void madd __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void msub __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void mult __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void mdiv __GMP_PROTO ((const MINT *, const MINT *, MINT *, MINT *));
|
||||
__GMP_DECLSPEC void sdiv __GMP_PROTO ((const MINT *, signed short int, MINT *, signed short int *));
|
||||
__GMP_DECLSPEC void msqrt __GMP_PROTO ((const MINT *, MINT *, MINT *));
|
||||
__GMP_DECLSPEC void pow __GMP_PROTO ((const MINT *, const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void rpow __GMP_PROTO ((const MINT *, signed short int, MINT *));
|
||||
__GMP_DECLSPEC void gcd __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC int mcmp __GMP_PROTO ((const MINT *, const MINT *));
|
||||
__GMP_DECLSPEC void min __GMP_PROTO ((MINT *));
|
||||
__GMP_DECLSPEC void mout __GMP_PROTO ((const MINT *));
|
||||
__GMP_DECLSPEC char *mtox __GMP_PROTO ((const MINT *));
|
||||
__GMP_DECLSPEC void mfree __GMP_PROTO ((MINT *));
|
||||
|
||||
#if defined (__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#define __MP_H__
|
||||
#endif /* __MP_H__ */
|
|
@ -1,35 +1,46 @@
|
|||
# $NetBSD: Makefile.inc,v 1.2 2012/11/26 18:57:36 drochner Exp $
|
||||
# $NetBSD: Makefile.inc,v 1.3 2013/11/29 08:03:42 mrg Exp $
|
||||
|
||||
SRCS+= \
|
||||
random.c \
|
||||
divrem_2.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 \
|
||||
toom2_sqr.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 \
|
||||
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 \
|
||||
copyd.c \
|
||||
toom_eval_dgr3_pm2.c \
|
||||
|
@ -39,6 +50,7 @@ SRCS+= \
|
|||
lshift.c \
|
||||
toom_couple_handling.c \
|
||||
add.c \
|
||||
div_qr_2.c \
|
||||
toom_interpolate_12pts.c \
|
||||
perfsqr.c \
|
||||
toom53_mul.c \
|
||||
|
@ -48,16 +60,19 @@ SRCS+= \
|
|||
mod_34lsub1.c \
|
||||
bdiv_q.c \
|
||||
toom22_mul.c \
|
||||
rshift.c \
|
||||
bsqrtinv.c \
|
||||
toom4_sqr.c \
|
||||
rshift.c \
|
||||
div_q.c \
|
||||
jacbase.c \
|
||||
gcdext_subdiv_step.c \
|
||||
addcnd_n.c \
|
||||
hgcd_matrix.c \
|
||||
toom_eval_dgr3_pm1.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 \
|
||||
|
@ -70,6 +85,7 @@ SRCS+= \
|
|||
bdiv_q_1.c \
|
||||
gcdext_1.c \
|
||||
toom63_mul.c \
|
||||
div_qr_2u_pi1.c \
|
||||
mul_basecase.c \
|
||||
toom8_sqr.c \
|
||||
addmul_1.c \
|
||||
|
@ -78,25 +94,28 @@ SRCS+= \
|
|||
divis.c \
|
||||
dcpi1_div_q.c \
|
||||
mul_1.c \
|
||||
sub_n.c \
|
||||
subcnd_n.c \
|
||||
add_n.c \
|
||||
toom_eval_pm2.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 \
|
||||
|
@ -105,6 +124,7 @@ SRCS+= \
|
|||
toom6h_mul.c \
|
||||
sqrmod_bnm1.c \
|
||||
mul_fft.c \
|
||||
mulmid.c \
|
||||
powm.c \
|
||||
rootrem.c \
|
||||
mode1o.c \
|
||||
|
@ -114,40 +134,54 @@ 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 \
|
||||
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 \
|
||||
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 \
|
||||
and_n.c mpn/generic/logops_n.c \
|
||||
ior_n.c mpn/generic/logops_n.c \
|
||||
xnor_n.c mpn/generic/logops_n.c \
|
||||
iorn_n.c mpn/generic/logops_n.c \
|
||||
andn_n.c mpn/generic/logops_n.c \
|
||||
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= \
|
||||
add_n.asm mpn/sh/add_n.asm \
|
||||
sub_n.asm mpn/sh/sub_n.asm \
|
||||
|
||||
gen-trialdivtab: gen-trialdivtab.c
|
||||
${HOST_CC} -o ${.OBJDIR}/gen-trialdivtab ${.ALLSRC} -lm
|
||||
|
|
|
@ -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 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* 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 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #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
|
||||
|
@ -213,13 +221,29 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
|
||||
/* Define to 1 each of the following for which a native (ie. CPU specific)
|
||||
implementation of the corresponding routine exists. */
|
||||
/* #undef HAVE_NATIVE_mpn_add_n */
|
||||
#define HAVE_NATIVE_mpn_add_n 1
|
||||
/* #undef HAVE_NATIVE_mpn_add_n_sub_n */
|
||||
/* #undef HAVE_NATIVE_mpn_add_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addaddmul_1msb0 */
|
||||
/* #undef HAVE_NATIVE_mpn_addcnd_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_3 */
|
||||
|
@ -228,6 +252,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_addmul_6 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_7 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_8 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_2s */
|
||||
/* #undef HAVE_NATIVE_mpn_and_n */
|
||||
/* #undef HAVE_NATIVE_mpn_andn_n */
|
||||
/* #undef HAVE_NATIVE_mpn_bdiv_dbm1c */
|
||||
|
@ -236,6 +261,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_com */
|
||||
/* #undef HAVE_NATIVE_mpn_copyd */
|
||||
/* #undef HAVE_NATIVE_mpn_copyi */
|
||||
/* #undef HAVE_NATIVE_mpn_div_qr_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_divexact_1 */
|
||||
/* #undef HAVE_NATIVE_mpn_divexact_by3c */
|
||||
/* #undef HAVE_NATIVE_mpn_divrem_1 */
|
||||
|
@ -262,6 +288,8 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_mul_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_3 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_4 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_5 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_6 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_basecase */
|
||||
/* #undef HAVE_NATIVE_mpn_nand_n */
|
||||
/* #undef HAVE_NATIVE_mpn_nior_n */
|
||||
|
@ -273,6 +301,9 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_rsblsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1add_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1add_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1sub_n */
|
||||
|
@ -280,12 +311,24 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_rshift */
|
||||
/* #undef HAVE_NATIVE_mpn_sqr_basecase */
|
||||
/* #undef HAVE_NATIVE_mpn_sqr_diagonal */
|
||||
/* #undef HAVE_NATIVE_mpn_sub_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sqr_diag_addlsh1 */
|
||||
#define HAVE_NATIVE_mpn_sub_n 1
|
||||
/* #undef HAVE_NATIVE_mpn_sub_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_subcnd_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_submul_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_tabselect */
|
||||
/* #undef HAVE_NATIVE_mpn_udiv_qrnnd */
|
||||
/* #undef HAVE_NATIVE_mpn_udiv_qrnnd_r */
|
||||
/* #undef HAVE_NATIVE_mpn_umul_ppmm */
|
||||
|
@ -450,8 +493,11 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* Define to 1 if you have the `vsnprintf' function and it works properly. */
|
||||
#define HAVE_VSNPRINTF 1
|
||||
|
||||
/* Define to 1 for Windos/64 */
|
||||
/* #undef HOST_DOS64 */
|
||||
|
||||
/* Assembler local label prefix */
|
||||
/* #undef LSYM_PREFIX */
|
||||
#define LSYM_PREFIX ".L"
|
||||
|
||||
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
||||
*/
|
||||
|
@ -461,13 +507,13 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define PACKAGE "gmp"
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org"
|
||||
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html"
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#define PACKAGE_NAME "GNU MP"
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#define PACKAGE_STRING "GNU MP 5.0.2"
|
||||
#define PACKAGE_STRING "GNU MP 5.1.3"
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#define PACKAGE_TARNAME "gmp"
|
||||
|
@ -476,10 +522,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define PACKAGE_URL "http://www.gnu.org/software/gmp/"
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#define PACKAGE_VERSION "5.0.2"
|
||||
|
||||
/* Define to 1 if the C compiler supports function prototypes. */
|
||||
#define PROTOTYPES 1
|
||||
#define PACKAGE_VERSION "5.1.3"
|
||||
|
||||
/* Define as the return type of signal handlers (`int' or `void'). */
|
||||
#define RETSIGTYPE void
|
||||
|
@ -512,7 +555,10 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define TUNE_SQR_TOOM2_MAX SQR_TOOM2_MAX_GENERIC
|
||||
|
||||
/* Version number of package */
|
||||
#define VERSION "5.0.2"
|
||||
#define VERSION "5.1.3"
|
||||
|
||||
/* Defined to 1 as per --enable-assembly */
|
||||
#define WANT_ASSEMBLY 1
|
||||
|
||||
/* Define to 1 to enable ASSERT checking, per --enable-assert */
|
||||
/* #undef WANT_ASSERT */
|
||||
|
@ -559,9 +605,6 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
`char[]'. */
|
||||
#define YYTEXT_POINTER 1
|
||||
|
||||
/* Define like PROTOTYPES; this can be used by system headers. */
|
||||
#define __PROTOTYPES 1
|
||||
|
||||
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
||||
calls it, or to nothing if 'inline' is not supported under any name. */
|
||||
#ifndef __cplusplus
|
||||
|
|
|
@ -3,6 +3,19 @@ changequote(<,>)
|
|||
ifdef(<__CONFIG_M4_INCLUDED__>,,<
|
||||
define(<WANT_ASSERT>,0)
|
||||
define(<WANT_PROFILING>,<`no'>)
|
||||
define(<M4WRAP_SPURIOUS>,<no>)
|
||||
define(<TEXT>, <.text>)
|
||||
define(<DATA>, <.data>)
|
||||
define(<LABEL_SUFFIX>, <:>)
|
||||
define(<GLOBL>, <.globl>)
|
||||
define(<GLOBL_ATTR>, <>)
|
||||
define(<GSYM_PREFIX>, <>)
|
||||
define(<RODATA>, < .section .rodata>)
|
||||
define(<TYPE>, <.type $1,@$2>)
|
||||
define(<SIZE>, <.size $1,$2>)
|
||||
define(<LSYM_PREFIX>, <.L>)
|
||||
define(<W32>, <.long>)
|
||||
define(<ALIGN_LOGARITHMIC>,<yes>)
|
||||
define(<SIZEOF_UNSIGNED>,<4>)
|
||||
define(<GMP_LIMB_BITS>,32)
|
||||
define(<GMP_NAIL_BITS>,0)
|
||||
|
@ -11,7 +24,7 @@ define(<GMP_NUMB_BITS>,eval(GMP_LIMB_BITS-GMP_NAIL_BITS))
|
|||
changequote(`,')
|
||||
ifdef(`__CONFIG_M4_INCLUDED__',,`
|
||||
include(CONFIG_TOP_SRCDIR`/mpn/asm-defs.m4')
|
||||
define_not_for_expansion(`HAVE_HOST_CPU_sh3eb')
|
||||
define_not_for_expansion(`HAVE_HOST_CPU_sh')
|
||||
define_not_for_expansion(`HAVE_ABI_standard')
|
||||
define_not_for_expansion(`HAVE_LIMB_BIG_ENDIAN')
|
||||
define_not_for_expansion(`HAVE_DOUBLE_IEEE_BIG_ENDIAN')
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,164 +0,0 @@
|
|||
/* mp-h.in -- Definitions for the GNU multiple precision library -*-mode:c-*-
|
||||
BSD mp compatible functions.
|
||||
|
||||
Copyright 1991, 1993, 1994, 1995, 1996, 2000, 2001, 2002, 2004 Free Software
|
||||
Foundation, Inc.
|
||||
|
||||
This file is part of the GNU MP Library.
|
||||
|
||||
The GNU MP Library is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or (at your
|
||||
option) any later version.
|
||||
|
||||
The GNU MP Library is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||
License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
|
||||
|
||||
#ifndef __MP_H__
|
||||
|
||||
|
||||
/* The following (everything under ifndef __GNU_MP__) must be identical in
|
||||
gmp.h and mp.h to allow both to be included in an application or during
|
||||
the library build. Use the t-gmp-mp-h.pl script to check. */
|
||||
#ifndef __GNU_MP__
|
||||
#define __GNU_MP__ 5
|
||||
|
||||
#define __need_size_t /* tell gcc stddef.h we only want size_t */
|
||||
#if defined (__cplusplus)
|
||||
#include <cstddef> /* for size_t */
|
||||
#else
|
||||
#include <stddef.h> /* for size_t */
|
||||
#endif
|
||||
#undef __need_size_t
|
||||
|
||||
/* The following instantiated by configure, for internal use only */
|
||||
#if ! defined (__GMP_WITHIN_CONFIGURE)
|
||||
/* #undef _LONG_LONG_LIMB */
|
||||
#define __GMP_LIBGMP_DLL 0
|
||||
#endif
|
||||
|
||||
#if defined (__STDC__) \
|
||||
|| defined (__cplusplus) \
|
||||
|| defined (_AIX) \
|
||||
|| defined (__DECC) \
|
||||
|| (defined (__mips) && defined (_SYSTYPE_SVR4)) \
|
||||
|| defined (_MSC_VER) \
|
||||
|| defined (_WIN32)
|
||||
#define __GMP_HAVE_CONST 1
|
||||
#define __GMP_HAVE_PROTOTYPES 1
|
||||
#define __GMP_HAVE_TOKEN_PASTE 1
|
||||
#else
|
||||
#define __GMP_HAVE_CONST 0
|
||||
#define __GMP_HAVE_PROTOTYPES 0
|
||||
#define __GMP_HAVE_TOKEN_PASTE 0
|
||||
#endif
|
||||
|
||||
|
||||
#if __GMP_HAVE_CONST
|
||||
#define __gmp_const const
|
||||
#define __gmp_signed signed
|
||||
#else
|
||||
#define __gmp_const
|
||||
#define __gmp_signed
|
||||
#endif
|
||||
|
||||
#if defined (__GNUC__)
|
||||
#define __GMP_DECLSPEC_EXPORT __declspec(__dllexport__)
|
||||
#define __GMP_DECLSPEC_IMPORT __declspec(__dllimport__)
|
||||
#endif
|
||||
#if defined (_MSC_VER) || defined (__BORLANDC__)
|
||||
#define __GMP_DECLSPEC_EXPORT __declspec(dllexport)
|
||||
#define __GMP_DECLSPEC_IMPORT __declspec(dllimport)
|
||||
#endif
|
||||
#ifdef __WATCOMC__
|
||||
#define __GMP_DECLSPEC_EXPORT __export
|
||||
#define __GMP_DECLSPEC_IMPORT __import
|
||||
#endif
|
||||
#ifdef __IBMC__
|
||||
#define __GMP_DECLSPEC_EXPORT _Export
|
||||
#define __GMP_DECLSPEC_IMPORT _Import
|
||||
#endif
|
||||
|
||||
#if __GMP_LIBGMP_DLL
|
||||
#if __GMP_WITHIN_GMP
|
||||
#define __GMP_DECLSPEC __GMP_DECLSPEC_EXPORT
|
||||
#else
|
||||
#define __GMP_DECLSPEC __GMP_DECLSPEC_IMPORT
|
||||
#endif
|
||||
#else
|
||||
#define __GMP_DECLSPEC
|
||||
#endif
|
||||
|
||||
#ifdef __GMP_SHORT_LIMB
|
||||
typedef unsigned int mp_limb_t;
|
||||
typedef int mp_limb_signed_t;
|
||||
#else
|
||||
#ifdef _LONG_LONG_LIMB
|
||||
typedef unsigned long long int mp_limb_t;
|
||||
typedef long long int mp_limb_signed_t;
|
||||
#else
|
||||
typedef unsigned long int mp_limb_t;
|
||||
typedef long int mp_limb_signed_t;
|
||||
#endif
|
||||
#endif
|
||||
typedef unsigned long int mp_bitcnt_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int _mp_alloc; /* Number of *limbs* allocated and pointed
|
||||
to by the _mp_d field. */
|
||||
int _mp_size; /* abs(_mp_size) is the number of limbs the
|
||||
last field points to. If _mp_size is
|
||||
negative this is a negative number. */
|
||||
mp_limb_t *_mp_d; /* Pointer to the limbs. */
|
||||
} __mpz_struct;
|
||||
|
||||
#endif /* __GNU_MP__ */
|
||||
|
||||
/* User-visible types. */
|
||||
typedef __mpz_struct MINT;
|
||||
|
||||
|
||||
#if __GMP_HAVE_PROTOTYPES
|
||||
#define __GMP_PROTO(x) x
|
||||
#else
|
||||
#define __GMP_PROTO(x) ()
|
||||
#endif
|
||||
|
||||
#if defined (__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define mp_set_memory_functions __gmp_set_memory_functions
|
||||
__GMP_DECLSPEC void mp_set_memory_functions __GMP_PROTO ((void *(*) (size_t),
|
||||
void *(*) (void *, size_t, size_t),
|
||||
void (*) (void *, size_t)));
|
||||
__GMP_DECLSPEC MINT *itom __GMP_PROTO ((signed short int));
|
||||
__GMP_DECLSPEC MINT *xtom __GMP_PROTO ((const char *));
|
||||
__GMP_DECLSPEC void move __GMP_PROTO ((const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void madd __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void msub __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void mult __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void mdiv __GMP_PROTO ((const MINT *, const MINT *, MINT *, MINT *));
|
||||
__GMP_DECLSPEC void sdiv __GMP_PROTO ((const MINT *, signed short int, MINT *, signed short int *));
|
||||
__GMP_DECLSPEC void msqrt __GMP_PROTO ((const MINT *, MINT *, MINT *));
|
||||
__GMP_DECLSPEC void pow __GMP_PROTO ((const MINT *, const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void rpow __GMP_PROTO ((const MINT *, signed short int, MINT *));
|
||||
__GMP_DECLSPEC void gcd __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC int mcmp __GMP_PROTO ((const MINT *, const MINT *));
|
||||
__GMP_DECLSPEC void min __GMP_PROTO ((MINT *));
|
||||
__GMP_DECLSPEC void mout __GMP_PROTO ((const MINT *));
|
||||
__GMP_DECLSPEC char *mtox __GMP_PROTO ((const MINT *));
|
||||
__GMP_DECLSPEC void mfree __GMP_PROTO ((MINT *));
|
||||
|
||||
#if defined (__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#define __MP_H__
|
||||
#endif /* __MP_H__ */
|
|
@ -1,44 +1,56 @@
|
|||
# $NetBSD: Makefile.inc,v 1.2 2012/11/26 18:57:36 drochner Exp $
|
||||
# $NetBSD: Makefile.inc,v 1.3 2013/11/29 08:03:42 mrg Exp $
|
||||
|
||||
SRCS+= \
|
||||
random.c \
|
||||
divrem_2.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 \
|
||||
toom2_sqr.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 \
|
||||
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 \
|
||||
copyd.c \
|
||||
toom_eval_dgr3_pm2.c \
|
||||
mod_1_3.c \
|
||||
com.c \
|
||||
copyi.c \
|
||||
lshift.c \
|
||||
toom_couple_handling.c \
|
||||
lshift.c \
|
||||
add.c \
|
||||
div_qr_2.c \
|
||||
toom_interpolate_12pts.c \
|
||||
perfsqr.c \
|
||||
toom53_mul.c \
|
||||
|
@ -48,16 +60,19 @@ SRCS+= \
|
|||
mod_34lsub1.c \
|
||||
bdiv_q.c \
|
||||
toom22_mul.c \
|
||||
rshift.c \
|
||||
bsqrtinv.c \
|
||||
toom4_sqr.c \
|
||||
rshift.c \
|
||||
div_q.c \
|
||||
jacbase.c \
|
||||
gcdext_subdiv_step.c \
|
||||
addcnd_n.c \
|
||||
hgcd_matrix.c \
|
||||
toom_eval_dgr3_pm1.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 \
|
||||
|
@ -70,8 +85,9 @@ SRCS+= \
|
|||
bdiv_q_1.c \
|
||||
gcdext_1.c \
|
||||
toom63_mul.c \
|
||||
mul_basecase.c \
|
||||
div_qr_2u_pi1.c \
|
||||
toom8_sqr.c \
|
||||
mul_basecase.c \
|
||||
addmul_1.c \
|
||||
neg.c \
|
||||
gcdext_lehmer.c \
|
||||
|
@ -79,24 +95,29 @@ SRCS+= \
|
|||
dcpi1_div_q.c \
|
||||
mul_1.c \
|
||||
sub_n.c \
|
||||
subcnd_n.c \
|
||||
add_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 \
|
||||
|
@ -105,6 +126,7 @@ SRCS+= \
|
|||
toom6h_mul.c \
|
||||
sqrmod_bnm1.c \
|
||||
mul_fft.c \
|
||||
mulmid.c \
|
||||
powm.c \
|
||||
rootrem.c \
|
||||
mode1o.c \
|
||||
|
@ -114,40 +136,50 @@ 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 \
|
||||
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 \
|
||||
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 \
|
||||
and_n.c mpn/generic/logops_n.c \
|
||||
ior_n.c mpn/generic/logops_n.c \
|
||||
xnor_n.c mpn/generic/logops_n.c \
|
||||
iorn_n.c mpn/generic/logops_n.c \
|
||||
andn_n.c mpn/generic/logops_n.c \
|
||||
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 \
|
||||
|
||||
gen-trialdivtab: gen-trialdivtab.c
|
||||
${HOST_CC} -o ${.OBJDIR}/gen-trialdivtab ${.ALLSRC} -lm
|
||||
|
|
|
@ -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 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* 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 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #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
|
||||
|
@ -217,9 +225,25 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_add_n_sub_n */
|
||||
/* #undef HAVE_NATIVE_mpn_add_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addaddmul_1msb0 */
|
||||
/* #undef HAVE_NATIVE_mpn_addcnd_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_3 */
|
||||
|
@ -228,6 +252,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_addmul_6 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_7 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_8 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_2s */
|
||||
/* #undef HAVE_NATIVE_mpn_and_n */
|
||||
/* #undef HAVE_NATIVE_mpn_andn_n */
|
||||
/* #undef HAVE_NATIVE_mpn_bdiv_dbm1c */
|
||||
|
@ -236,6 +261,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_com */
|
||||
/* #undef HAVE_NATIVE_mpn_copyd */
|
||||
/* #undef HAVE_NATIVE_mpn_copyi */
|
||||
/* #undef HAVE_NATIVE_mpn_div_qr_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_divexact_1 */
|
||||
/* #undef HAVE_NATIVE_mpn_divexact_by3c */
|
||||
/* #undef HAVE_NATIVE_mpn_divrem_1 */
|
||||
|
@ -262,6 +288,8 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_mul_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_3 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_4 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_5 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_6 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_basecase */
|
||||
/* #undef HAVE_NATIVE_mpn_nand_n */
|
||||
/* #undef HAVE_NATIVE_mpn_nior_n */
|
||||
|
@ -273,6 +301,9 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_rsblsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1add_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1add_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1sub_n */
|
||||
|
@ -280,12 +311,24 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_rshift */
|
||||
/* #undef HAVE_NATIVE_mpn_sqr_basecase */
|
||||
/* #undef HAVE_NATIVE_mpn_sqr_diagonal */
|
||||
/* #undef HAVE_NATIVE_mpn_sqr_diag_addlsh1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sub_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sub_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_subcnd_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_submul_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_tabselect */
|
||||
/* #undef HAVE_NATIVE_mpn_udiv_qrnnd */
|
||||
/* #undef HAVE_NATIVE_mpn_udiv_qrnnd_r */
|
||||
/* #undef HAVE_NATIVE_mpn_umul_ppmm */
|
||||
|
@ -450,6 +493,9 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* Define to 1 if you have the `vsnprintf' function and it works properly. */
|
||||
#define HAVE_VSNPRINTF 1
|
||||
|
||||
/* Define to 1 for Windos/64 */
|
||||
/* #undef HOST_DOS64 */
|
||||
|
||||
/* Assembler local label prefix */
|
||||
/* #undef LSYM_PREFIX */
|
||||
|
||||
|
@ -461,13 +507,13 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define PACKAGE "gmp"
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org"
|
||||
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html"
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#define PACKAGE_NAME "GNU MP"
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#define PACKAGE_STRING "GNU MP 5.0.2"
|
||||
#define PACKAGE_STRING "GNU MP 5.1.3"
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#define PACKAGE_TARNAME "gmp"
|
||||
|
@ -476,10 +522,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define PACKAGE_URL "http://www.gnu.org/software/gmp/"
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#define PACKAGE_VERSION "5.0.2"
|
||||
|
||||
/* Define to 1 if the C compiler supports function prototypes. */
|
||||
#define PROTOTYPES 1
|
||||
#define PACKAGE_VERSION "5.1.3"
|
||||
|
||||
/* Define as the return type of signal handlers (`int' or `void'). */
|
||||
#define RETSIGTYPE void
|
||||
|
@ -512,7 +555,10 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define TUNE_SQR_TOOM2_MAX SQR_TOOM2_MAX_GENERIC
|
||||
|
||||
/* Version number of package */
|
||||
#define VERSION "5.0.2"
|
||||
#define VERSION "5.1.3"
|
||||
|
||||
/* Defined to 1 as per --enable-assembly */
|
||||
#define WANT_ASSEMBLY 1
|
||||
|
||||
/* Define to 1 to enable ASSERT checking, per --enable-assert */
|
||||
/* #undef WANT_ASSERT */
|
||||
|
@ -559,9 +605,6 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
`char[]'. */
|
||||
#define YYTEXT_POINTER 1
|
||||
|
||||
/* Define like PROTOTYPES; this can be used by system headers. */
|
||||
#define __PROTOTYPES 1
|
||||
|
||||
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
||||
calls it, or to nothing if 'inline' is not supported under any name. */
|
||||
#ifndef __cplusplus
|
||||
|
|
|
@ -11,7 +11,7 @@ define(<GMP_NUMB_BITS>,eval(GMP_LIMB_BITS-GMP_NAIL_BITS))
|
|||
changequote(`,')
|
||||
ifdef(`__CONFIG_M4_INCLUDED__',,`
|
||||
include(CONFIG_TOP_SRCDIR`/mpn/asm-defs.m4')
|
||||
define_not_for_expansion(`HAVE_HOST_CPU_sh3')
|
||||
define_not_for_expansion(`HAVE_HOST_CPU_shle')
|
||||
define_not_for_expansion(`HAVE_ABI_standard')
|
||||
define_not_for_expansion(`HAVE_LIMB_LITTLE_ENDIAN')
|
||||
define_not_for_expansion(`HAVE_DOUBLE_IEEE_LITTLE_ENDIAN')
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,164 +0,0 @@
|
|||
/* mp-h.in -- Definitions for the GNU multiple precision library -*-mode:c-*-
|
||||
BSD mp compatible functions.
|
||||
|
||||
Copyright 1991, 1993, 1994, 1995, 1996, 2000, 2001, 2002, 2004 Free Software
|
||||
Foundation, Inc.
|
||||
|
||||
This file is part of the GNU MP Library.
|
||||
|
||||
The GNU MP Library is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or (at your
|
||||
option) any later version.
|
||||
|
||||
The GNU MP Library is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||
License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
|
||||
|
||||
#ifndef __MP_H__
|
||||
|
||||
|
||||
/* The following (everything under ifndef __GNU_MP__) must be identical in
|
||||
gmp.h and mp.h to allow both to be included in an application or during
|
||||
the library build. Use the t-gmp-mp-h.pl script to check. */
|
||||
#ifndef __GNU_MP__
|
||||
#define __GNU_MP__ 5
|
||||
|
||||
#define __need_size_t /* tell gcc stddef.h we only want size_t */
|
||||
#if defined (__cplusplus)
|
||||
#include <cstddef> /* for size_t */
|
||||
#else
|
||||
#include <stddef.h> /* for size_t */
|
||||
#endif
|
||||
#undef __need_size_t
|
||||
|
||||
/* The following instantiated by configure, for internal use only */
|
||||
#if ! defined (__GMP_WITHIN_CONFIGURE)
|
||||
/* #undef _LONG_LONG_LIMB */
|
||||
#define __GMP_LIBGMP_DLL 0
|
||||
#endif
|
||||
|
||||
#if defined (__STDC__) \
|
||||
|| defined (__cplusplus) \
|
||||
|| defined (_AIX) \
|
||||
|| defined (__DECC) \
|
||||
|| (defined (__mips) && defined (_SYSTYPE_SVR4)) \
|
||||
|| defined (_MSC_VER) \
|
||||
|| defined (_WIN32)
|
||||
#define __GMP_HAVE_CONST 1
|
||||
#define __GMP_HAVE_PROTOTYPES 1
|
||||
#define __GMP_HAVE_TOKEN_PASTE 1
|
||||
#else
|
||||
#define __GMP_HAVE_CONST 0
|
||||
#define __GMP_HAVE_PROTOTYPES 0
|
||||
#define __GMP_HAVE_TOKEN_PASTE 0
|
||||
#endif
|
||||
|
||||
|
||||
#if __GMP_HAVE_CONST
|
||||
#define __gmp_const const
|
||||
#define __gmp_signed signed
|
||||
#else
|
||||
#define __gmp_const
|
||||
#define __gmp_signed
|
||||
#endif
|
||||
|
||||
#if defined (__GNUC__)
|
||||
#define __GMP_DECLSPEC_EXPORT __declspec(__dllexport__)
|
||||
#define __GMP_DECLSPEC_IMPORT __declspec(__dllimport__)
|
||||
#endif
|
||||
#if defined (_MSC_VER) || defined (__BORLANDC__)
|
||||
#define __GMP_DECLSPEC_EXPORT __declspec(dllexport)
|
||||
#define __GMP_DECLSPEC_IMPORT __declspec(dllimport)
|
||||
#endif
|
||||
#ifdef __WATCOMC__
|
||||
#define __GMP_DECLSPEC_EXPORT __export
|
||||
#define __GMP_DECLSPEC_IMPORT __import
|
||||
#endif
|
||||
#ifdef __IBMC__
|
||||
#define __GMP_DECLSPEC_EXPORT _Export
|
||||
#define __GMP_DECLSPEC_IMPORT _Import
|
||||
#endif
|
||||
|
||||
#if __GMP_LIBGMP_DLL
|
||||
#if __GMP_WITHIN_GMP
|
||||
#define __GMP_DECLSPEC __GMP_DECLSPEC_EXPORT
|
||||
#else
|
||||
#define __GMP_DECLSPEC __GMP_DECLSPEC_IMPORT
|
||||
#endif
|
||||
#else
|
||||
#define __GMP_DECLSPEC
|
||||
#endif
|
||||
|
||||
#ifdef __GMP_SHORT_LIMB
|
||||
typedef unsigned int mp_limb_t;
|
||||
typedef int mp_limb_signed_t;
|
||||
#else
|
||||
#ifdef _LONG_LONG_LIMB
|
||||
typedef unsigned long long int mp_limb_t;
|
||||
typedef long long int mp_limb_signed_t;
|
||||
#else
|
||||
typedef unsigned long int mp_limb_t;
|
||||
typedef long int mp_limb_signed_t;
|
||||
#endif
|
||||
#endif
|
||||
typedef unsigned long int mp_bitcnt_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int _mp_alloc; /* Number of *limbs* allocated and pointed
|
||||
to by the _mp_d field. */
|
||||
int _mp_size; /* abs(_mp_size) is the number of limbs the
|
||||
last field points to. If _mp_size is
|
||||
negative this is a negative number. */
|
||||
mp_limb_t *_mp_d; /* Pointer to the limbs. */
|
||||
} __mpz_struct;
|
||||
|
||||
#endif /* __GNU_MP__ */
|
||||
|
||||
/* User-visible types. */
|
||||
typedef __mpz_struct MINT;
|
||||
|
||||
|
||||
#if __GMP_HAVE_PROTOTYPES
|
||||
#define __GMP_PROTO(x) x
|
||||
#else
|
||||
#define __GMP_PROTO(x) ()
|
||||
#endif
|
||||
|
||||
#if defined (__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define mp_set_memory_functions __gmp_set_memory_functions
|
||||
__GMP_DECLSPEC void mp_set_memory_functions __GMP_PROTO ((void *(*) (size_t),
|
||||
void *(*) (void *, size_t, size_t),
|
||||
void (*) (void *, size_t)));
|
||||
__GMP_DECLSPEC MINT *itom __GMP_PROTO ((signed short int));
|
||||
__GMP_DECLSPEC MINT *xtom __GMP_PROTO ((const char *));
|
||||
__GMP_DECLSPEC void move __GMP_PROTO ((const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void madd __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void msub __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void mult __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void mdiv __GMP_PROTO ((const MINT *, const MINT *, MINT *, MINT *));
|
||||
__GMP_DECLSPEC void sdiv __GMP_PROTO ((const MINT *, signed short int, MINT *, signed short int *));
|
||||
__GMP_DECLSPEC void msqrt __GMP_PROTO ((const MINT *, MINT *, MINT *));
|
||||
__GMP_DECLSPEC void pow __GMP_PROTO ((const MINT *, const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void rpow __GMP_PROTO ((const MINT *, signed short int, MINT *));
|
||||
__GMP_DECLSPEC void gcd __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC int mcmp __GMP_PROTO ((const MINT *, const MINT *));
|
||||
__GMP_DECLSPEC void min __GMP_PROTO ((MINT *));
|
||||
__GMP_DECLSPEC void mout __GMP_PROTO ((const MINT *));
|
||||
__GMP_DECLSPEC char *mtox __GMP_PROTO ((const MINT *));
|
||||
__GMP_DECLSPEC void mfree __GMP_PROTO ((MINT *));
|
||||
|
||||
#if defined (__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#define __MP_H__
|
||||
#endif /* __MP_H__ */
|
|
@ -1,12 +1,14 @@
|
|||
# $NetBSD: Makefile.inc,v 1.4 2012/11/26 18:57:36 drochner Exp $
|
||||
# $NetBSD: Makefile.inc,v 1.5 2013/11/29 08:03:42 mrg Exp $
|
||||
|
||||
SRCS+= \
|
||||
random.c \
|
||||
divrem_2.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 \
|
||||
toom44_mul.c \
|
||||
toom8h_mul.c \
|
||||
|
@ -14,22 +16,31 @@ SRCS+= \
|
|||
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 \
|
||||
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 \
|
||||
copyd.c \
|
||||
toom_eval_dgr3_pm2.c \
|
||||
|
@ -38,6 +49,7 @@ SRCS+= \
|
|||
copyi.c \
|
||||
toom_couple_handling.c \
|
||||
add.c \
|
||||
div_qr_2.c \
|
||||
toom_interpolate_12pts.c \
|
||||
perfsqr.c \
|
||||
toom53_mul.c \
|
||||
|
@ -47,15 +59,18 @@ SRCS+= \
|
|||
mod_34lsub1.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 \
|
||||
|
@ -68,36 +83,43 @@ SRCS+= \
|
|||
bdiv_q_1.c \
|
||||
gcdext_1.c \
|
||||
toom63_mul.c \
|
||||
div_qr_2u_pi1.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 \
|
||||
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 \
|
||||
mullo_basecase.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 \
|
||||
toom6h_mul.c \
|
||||
mul_fft.c \
|
||||
sqrmod_bnm1.c \
|
||||
mul_fft.c \
|
||||
mulmid.c \
|
||||
powm.c \
|
||||
rootrem.c \
|
||||
mode1o.c \
|
||||
|
@ -107,39 +129,49 @@ 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 \
|
||||
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= \
|
||||
|
|
|
@ -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 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* 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 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #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
|
||||
|
@ -217,9 +225,25 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_add_n_sub_n */
|
||||
/* #undef HAVE_NATIVE_mpn_add_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addaddmul_1msb0 */
|
||||
/* #undef HAVE_NATIVE_mpn_addcnd_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_3 */
|
||||
|
@ -228,6 +252,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_addmul_6 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_7 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_8 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_2s */
|
||||
/* #undef HAVE_NATIVE_mpn_and_n */
|
||||
/* #undef HAVE_NATIVE_mpn_andn_n */
|
||||
/* #undef HAVE_NATIVE_mpn_bdiv_dbm1c */
|
||||
|
@ -236,6 +261,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_com */
|
||||
/* #undef HAVE_NATIVE_mpn_copyd */
|
||||
/* #undef HAVE_NATIVE_mpn_copyi */
|
||||
/* #undef HAVE_NATIVE_mpn_div_qr_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_divexact_1 */
|
||||
/* #undef HAVE_NATIVE_mpn_divexact_by3c */
|
||||
/* #undef HAVE_NATIVE_mpn_divrem_1 */
|
||||
|
@ -262,6 +288,8 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_mul_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_3 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_4 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_5 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_6 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_basecase */
|
||||
/* #undef HAVE_NATIVE_mpn_nand_n */
|
||||
/* #undef HAVE_NATIVE_mpn_nior_n */
|
||||
|
@ -273,6 +301,9 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_rsblsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1add_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1add_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1sub_n */
|
||||
|
@ -280,12 +311,24 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define HAVE_NATIVE_mpn_rshift 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
|
||||
/* #undef HAVE_NATIVE_mpn_sub_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_subcnd_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_submul_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_tabselect */
|
||||
#define HAVE_NATIVE_mpn_udiv_qrnnd 1
|
||||
/* #undef HAVE_NATIVE_mpn_udiv_qrnnd_r */
|
||||
#define HAVE_NATIVE_mpn_umul_ppmm 1
|
||||
|
@ -450,6 +493,9 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* Define to 1 if you have the `vsnprintf' function and it works properly. */
|
||||
#define HAVE_VSNPRINTF 1
|
||||
|
||||
/* Define to 1 for Windos/64 */
|
||||
/* #undef HOST_DOS64 */
|
||||
|
||||
/* Assembler local label prefix */
|
||||
#define LSYM_PREFIX ".L"
|
||||
|
||||
|
@ -461,13 +507,13 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define PACKAGE "gmp"
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org"
|
||||
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html"
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#define PACKAGE_NAME "GNU MP"
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#define PACKAGE_STRING "GNU MP 5.0.2"
|
||||
#define PACKAGE_STRING "GNU MP 5.1.3"
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#define PACKAGE_TARNAME "gmp"
|
||||
|
@ -476,10 +522,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define PACKAGE_URL "http://www.gnu.org/software/gmp/"
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#define PACKAGE_VERSION "5.0.2"
|
||||
|
||||
/* Define to 1 if the C compiler supports function prototypes. */
|
||||
#define PROTOTYPES 1
|
||||
#define PACKAGE_VERSION "5.1.3"
|
||||
|
||||
/* Define as the return type of signal handlers (`int' or `void'). */
|
||||
#define RETSIGTYPE void
|
||||
|
@ -512,7 +555,10 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define TUNE_SQR_TOOM2_MAX SQR_TOOM2_MAX_GENERIC
|
||||
|
||||
/* Version number of package */
|
||||
#define VERSION "5.0.2"
|
||||
#define VERSION "5.1.3"
|
||||
|
||||
/* Defined to 1 as per --enable-assembly */
|
||||
#define WANT_ASSEMBLY 1
|
||||
|
||||
/* Define to 1 to enable ASSERT checking, per --enable-assert */
|
||||
/* #undef WANT_ASSERT */
|
||||
|
@ -559,9 +605,6 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
`char[]'. */
|
||||
#define YYTEXT_POINTER 1
|
||||
|
||||
/* Define like PROTOTYPES; this can be used by system headers. */
|
||||
#define __PROTOTYPES 1
|
||||
|
||||
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
||||
calls it, or to nothing if 'inline' is not supported under any name. */
|
||||
#ifndef __cplusplus
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,164 +0,0 @@
|
|||
/* mp-h.in -- Definitions for the GNU multiple precision library -*-mode:c-*-
|
||||
BSD mp compatible functions.
|
||||
|
||||
Copyright 1991, 1993, 1994, 1995, 1996, 2000, 2001, 2002, 2004 Free Software
|
||||
Foundation, Inc.
|
||||
|
||||
This file is part of the GNU MP Library.
|
||||
|
||||
The GNU MP Library is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or (at your
|
||||
option) any later version.
|
||||
|
||||
The GNU MP Library is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||
License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
|
||||
|
||||
#ifndef __MP_H__
|
||||
|
||||
|
||||
/* The following (everything under ifndef __GNU_MP__) must be identical in
|
||||
gmp.h and mp.h to allow both to be included in an application or during
|
||||
the library build. Use the t-gmp-mp-h.pl script to check. */
|
||||
#ifndef __GNU_MP__
|
||||
#define __GNU_MP__ 5
|
||||
|
||||
#define __need_size_t /* tell gcc stddef.h we only want size_t */
|
||||
#if defined (__cplusplus)
|
||||
#include <cstddef> /* for size_t */
|
||||
#else
|
||||
#include <stddef.h> /* for size_t */
|
||||
#endif
|
||||
#undef __need_size_t
|
||||
|
||||
/* The following instantiated by configure, for internal use only */
|
||||
#if ! defined (__GMP_WITHIN_CONFIGURE)
|
||||
/* #undef _LONG_LONG_LIMB */
|
||||
#define __GMP_LIBGMP_DLL 0
|
||||
#endif
|
||||
|
||||
#if defined (__STDC__) \
|
||||
|| defined (__cplusplus) \
|
||||
|| defined (_AIX) \
|
||||
|| defined (__DECC) \
|
||||
|| (defined (__mips) && defined (_SYSTYPE_SVR4)) \
|
||||
|| defined (_MSC_VER) \
|
||||
|| defined (_WIN32)
|
||||
#define __GMP_HAVE_CONST 1
|
||||
#define __GMP_HAVE_PROTOTYPES 1
|
||||
#define __GMP_HAVE_TOKEN_PASTE 1
|
||||
#else
|
||||
#define __GMP_HAVE_CONST 0
|
||||
#define __GMP_HAVE_PROTOTYPES 0
|
||||
#define __GMP_HAVE_TOKEN_PASTE 0
|
||||
#endif
|
||||
|
||||
|
||||
#if __GMP_HAVE_CONST
|
||||
#define __gmp_const const
|
||||
#define __gmp_signed signed
|
||||
#else
|
||||
#define __gmp_const
|
||||
#define __gmp_signed
|
||||
#endif
|
||||
|
||||
#if defined (__GNUC__)
|
||||
#define __GMP_DECLSPEC_EXPORT __declspec(__dllexport__)
|
||||
#define __GMP_DECLSPEC_IMPORT __declspec(__dllimport__)
|
||||
#endif
|
||||
#if defined (_MSC_VER) || defined (__BORLANDC__)
|
||||
#define __GMP_DECLSPEC_EXPORT __declspec(dllexport)
|
||||
#define __GMP_DECLSPEC_IMPORT __declspec(dllimport)
|
||||
#endif
|
||||
#ifdef __WATCOMC__
|
||||
#define __GMP_DECLSPEC_EXPORT __export
|
||||
#define __GMP_DECLSPEC_IMPORT __import
|
||||
#endif
|
||||
#ifdef __IBMC__
|
||||
#define __GMP_DECLSPEC_EXPORT _Export
|
||||
#define __GMP_DECLSPEC_IMPORT _Import
|
||||
#endif
|
||||
|
||||
#if __GMP_LIBGMP_DLL
|
||||
#if __GMP_WITHIN_GMP
|
||||
#define __GMP_DECLSPEC __GMP_DECLSPEC_EXPORT
|
||||
#else
|
||||
#define __GMP_DECLSPEC __GMP_DECLSPEC_IMPORT
|
||||
#endif
|
||||
#else
|
||||
#define __GMP_DECLSPEC
|
||||
#endif
|
||||
|
||||
#ifdef __GMP_SHORT_LIMB
|
||||
typedef unsigned int mp_limb_t;
|
||||
typedef int mp_limb_signed_t;
|
||||
#else
|
||||
#ifdef _LONG_LONG_LIMB
|
||||
typedef unsigned long long int mp_limb_t;
|
||||
typedef long long int mp_limb_signed_t;
|
||||
#else
|
||||
typedef unsigned long int mp_limb_t;
|
||||
typedef long int mp_limb_signed_t;
|
||||
#endif
|
||||
#endif
|
||||
typedef unsigned long int mp_bitcnt_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int _mp_alloc; /* Number of *limbs* allocated and pointed
|
||||
to by the _mp_d field. */
|
||||
int _mp_size; /* abs(_mp_size) is the number of limbs the
|
||||
last field points to. If _mp_size is
|
||||
negative this is a negative number. */
|
||||
mp_limb_t *_mp_d; /* Pointer to the limbs. */
|
||||
} __mpz_struct;
|
||||
|
||||
#endif /* __GNU_MP__ */
|
||||
|
||||
/* User-visible types. */
|
||||
typedef __mpz_struct MINT;
|
||||
|
||||
|
||||
#if __GMP_HAVE_PROTOTYPES
|
||||
#define __GMP_PROTO(x) x
|
||||
#else
|
||||
#define __GMP_PROTO(x) ()
|
||||
#endif
|
||||
|
||||
#if defined (__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define mp_set_memory_functions __gmp_set_memory_functions
|
||||
__GMP_DECLSPEC void mp_set_memory_functions __GMP_PROTO ((void *(*) (size_t),
|
||||
void *(*) (void *, size_t, size_t),
|
||||
void (*) (void *, size_t)));
|
||||
__GMP_DECLSPEC MINT *itom __GMP_PROTO ((signed short int));
|
||||
__GMP_DECLSPEC MINT *xtom __GMP_PROTO ((const char *));
|
||||
__GMP_DECLSPEC void move __GMP_PROTO ((const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void madd __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void msub __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void mult __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void mdiv __GMP_PROTO ((const MINT *, const MINT *, MINT *, MINT *));
|
||||
__GMP_DECLSPEC void sdiv __GMP_PROTO ((const MINT *, signed short int, MINT *, signed short int *));
|
||||
__GMP_DECLSPEC void msqrt __GMP_PROTO ((const MINT *, MINT *, MINT *));
|
||||
__GMP_DECLSPEC void pow __GMP_PROTO ((const MINT *, const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void rpow __GMP_PROTO ((const MINT *, signed short int, MINT *));
|
||||
__GMP_DECLSPEC void gcd __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC int mcmp __GMP_PROTO ((const MINT *, const MINT *));
|
||||
__GMP_DECLSPEC void min __GMP_PROTO ((MINT *));
|
||||
__GMP_DECLSPEC void mout __GMP_PROTO ((const MINT *));
|
||||
__GMP_DECLSPEC char *mtox __GMP_PROTO ((const MINT *));
|
||||
__GMP_DECLSPEC void mfree __GMP_PROTO ((MINT *));
|
||||
|
||||
#if defined (__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#define __MP_H__
|
||||
#endif /* __MP_H__ */
|
|
@ -1,41 +1,54 @@
|
|||
# $NetBSD: Makefile.inc,v 1.3 2012/11/26 18:57:36 drochner Exp $
|
||||
# $NetBSD: Makefile.inc,v 1.4 2013/11/29 08:03:43 mrg Exp $
|
||||
|
||||
SRCS+= \
|
||||
random.c \
|
||||
divrem_2.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 \
|
||||
toom2_sqr.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 \
|
||||
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 \
|
||||
com.c \
|
||||
toom_couple_handling.c \
|
||||
lshift.c \
|
||||
add.c \
|
||||
div_qr_2.c \
|
||||
toom_interpolate_12pts.c \
|
||||
perfsqr.c \
|
||||
toom53_mul.c \
|
||||
|
@ -45,15 +58,19 @@ SRCS+= \
|
|||
mod_34lsub1.c \
|
||||
bdiv_q.c \
|
||||
toom22_mul.c \
|
||||
bsqrtinv.c \
|
||||
toom4_sqr.c \
|
||||
rshift.c \
|
||||
div_q.c \
|
||||
jacbase.c \
|
||||
gcdext_subdiv_step.c \
|
||||
addcnd_n.c \
|
||||
hgcd_matrix.c \
|
||||
toom_eval_dgr3_pm1.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 \
|
||||
|
@ -66,36 +83,47 @@ SRCS+= \
|
|||
bdiv_q_1.c \
|
||||
gcdext_1.c \
|
||||
toom63_mul.c \
|
||||
div_qr_2u_pi1.c \
|
||||
mul_basecase.c \
|
||||
toom8_sqr.c \
|
||||
addmul_1.c \
|
||||
neg.c \
|
||||
gcdext_lehmer.c \
|
||||
divis.c \
|
||||
dcpi1_div_q.c \
|
||||
subcnd_n.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 \
|
||||
mullo_basecase.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 \
|
||||
gcd_1.c \
|
||||
bsqrt.c \
|
||||
dcpi1_bdiv_qr.c \
|
||||
mul_n.c \
|
||||
redc_2.c \
|
||||
submul_1.c \
|
||||
toom6h_mul.c \
|
||||
mul_fft.c \
|
||||
sqrmod_bnm1.c \
|
||||
mul_fft.c \
|
||||
mulmid.c \
|
||||
powm.c \
|
||||
rootrem.c \
|
||||
mode1o.c \
|
||||
|
@ -105,55 +133,55 @@ 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 \
|
||||
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 \
|
||||
|
||||
# XXX hand generated
|
||||
C_SRCS_LIST= \
|
||||
popcount.c mpn/generic/popham.c \
|
||||
hamdist.c mpn/generic/popham.c \
|
||||
and_n.c mpn/generic/logops_n.c \
|
||||
andn_n.c mpn/generic/logops_n.c \
|
||||
nand_n.c mpn/generic/logops_n.c \
|
||||
ior_n.c mpn/generic/logops_n.c \
|
||||
iorn_n.c mpn/generic/logops_n.c \
|
||||
nior_n.c mpn/generic/logops_n.c \
|
||||
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/sparc64/sqr_diagonal.asm \
|
||||
add_n.asm mpn/sparc64/add_n.asm \
|
||||
addmul_2.asm mpn/sparc64/addmul_2.asm \
|
||||
submul_1.asm mpn/sparc64/submul_1.asm \
|
||||
lshift.asm mpn/sparc64/lshift.asm \
|
||||
mul_1.asm mpn/sparc64/mul_1.asm \
|
||||
copyd.asm mpn/sparc64/copyd.asm \
|
||||
copyi.asm mpn/sparc64/copyi.asm \
|
||||
rshift.asm mpn/sparc64/rshift.asm \
|
||||
addmul_1.asm mpn/sparc64/addmul_1.asm \
|
||||
sub_n.asm mpn/sparc64/sub_n.asm \
|
||||
gcd_1.asm mpn/sparc64/gcd_1.asm \
|
||||
|
||||
gen-trialdivtab: gen-trialdivtab.c
|
||||
${HOST_CC} -o ${.OBJDIR}/gen-trialdivtab ${.ALLSRC} -lm
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
@ -27,7 +27,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
|
||||
/* The gmp-mparam.h file (a string) the tune program should suggest updating.
|
||||
*/
|
||||
#define GMP_MPARAM_H_SUGGEST "/usr/src/external/lgpl3/gmp/dist/mpn/sparc64/gmp-mparam.h"
|
||||
#define GMP_MPARAM_H_SUGGEST "./mpn/sparc64/gmp-mparam.h"
|
||||
|
||||
/* Define to 1 if you have the `alarm' function. */
|
||||
#define HAVE_ALARM 1
|
||||
|
@ -62,7 +62,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* 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 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #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
|
||||
|
@ -213,21 +221,38 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
|
||||
/* Define to 1 each of the following for which a native (ie. CPU specific)
|
||||
implementation of the corresponding routine exists. */
|
||||
#define HAVE_NATIVE_mpn_add_n 1
|
||||
/* #undef HAVE_NATIVE_mpn_add_n */
|
||||
/* #undef HAVE_NATIVE_mpn_add_n_sub_n */
|
||||
/* #undef HAVE_NATIVE_mpn_add_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addaddmul_1msb0 */
|
||||
/* #undef HAVE_NATIVE_mpn_addcnd_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc_ip2 */
|
||||
/* #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
|
||||
/* #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 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_7 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_8 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_2s */
|
||||
/* #undef HAVE_NATIVE_mpn_and_n */
|
||||
/* #undef HAVE_NATIVE_mpn_andn_n */
|
||||
/* #undef HAVE_NATIVE_mpn_bdiv_dbm1c */
|
||||
|
@ -236,17 +261,18 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_com */
|
||||
#define HAVE_NATIVE_mpn_copyd 1
|
||||
#define HAVE_NATIVE_mpn_copyi 1
|
||||
/* #undef HAVE_NATIVE_mpn_div_qr_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_divexact_1 */
|
||||
/* #undef HAVE_NATIVE_mpn_divexact_by3c */
|
||||
/* #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_1 1
|
||||
/* #undef HAVE_NATIVE_mpn_hamdist */
|
||||
/* #undef HAVE_NATIVE_mpn_invert_limb */
|
||||
/* #undef HAVE_NATIVE_mpn_ior_n */
|
||||
/* #undef HAVE_NATIVE_mpn_iorn_n */
|
||||
#define HAVE_NATIVE_mpn_lshift 1
|
||||
/* #undef HAVE_NATIVE_mpn_lshift */
|
||||
/* #undef HAVE_NATIVE_mpn_lshiftc */
|
||||
/* #undef HAVE_NATIVE_mpn_lshsub_n */
|
||||
/* #undef HAVE_NATIVE_mpn_mod_1 */
|
||||
|
@ -257,11 +283,13 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_mod_34lsub1 */
|
||||
/* #undef HAVE_NATIVE_mpn_modexact_1_odd */
|
||||
/* #undef HAVE_NATIVE_mpn_modexact_1c_odd */
|
||||
#define HAVE_NATIVE_mpn_mul_1 1
|
||||
/* #undef HAVE_NATIVE_mpn_mul_1 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_3 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_4 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_5 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_6 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_basecase */
|
||||
/* #undef HAVE_NATIVE_mpn_nand_n */
|
||||
/* #undef HAVE_NATIVE_mpn_nior_n */
|
||||
|
@ -273,19 +301,34 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_rsblsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1add_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1add_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1sub_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1sub_nc */
|
||||
#define HAVE_NATIVE_mpn_rshift 1
|
||||
/* #undef HAVE_NATIVE_mpn_rshift */
|
||||
/* #undef HAVE_NATIVE_mpn_sqr_basecase */
|
||||
#define HAVE_NATIVE_mpn_sqr_diagonal 1
|
||||
#define HAVE_NATIVE_mpn_sub_n 1
|
||||
/* #undef HAVE_NATIVE_mpn_sqr_diagonal */
|
||||
/* #undef HAVE_NATIVE_mpn_sqr_diag_addlsh1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sub_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sub_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_subcnd_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_submul_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_tabselect */
|
||||
/* #undef HAVE_NATIVE_mpn_udiv_qrnnd */
|
||||
/* #undef HAVE_NATIVE_mpn_udiv_qrnnd_r */
|
||||
/* #undef HAVE_NATIVE_mpn_umul_ppmm */
|
||||
|
@ -450,6 +493,9 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* Define to 1 if you have the `vsnprintf' function and it works properly. */
|
||||
#define HAVE_VSNPRINTF 1
|
||||
|
||||
/* Define to 1 for Windos/64 */
|
||||
/* #undef HOST_DOS64 */
|
||||
|
||||
/* Assembler local label prefix */
|
||||
#define LSYM_PREFIX ".L"
|
||||
|
||||
|
@ -461,13 +507,13 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define PACKAGE "gmp"
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org"
|
||||
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html"
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#define PACKAGE_NAME "GNU MP"
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#define PACKAGE_STRING "GNU MP 5.0.2"
|
||||
#define PACKAGE_STRING "GNU MP 5.1.3"
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#define PACKAGE_TARNAME "gmp"
|
||||
|
@ -476,10 +522,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define PACKAGE_URL "http://www.gnu.org/software/gmp/"
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#define PACKAGE_VERSION "5.0.2"
|
||||
|
||||
/* Define to 1 if the C compiler supports function prototypes. */
|
||||
#define PROTOTYPES 1
|
||||
#define PACKAGE_VERSION "5.1.3"
|
||||
|
||||
/* Define as the return type of signal handlers (`int' or `void'). */
|
||||
#define RETSIGTYPE void
|
||||
|
@ -512,7 +555,10 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define TUNE_SQR_TOOM2_MAX SQR_TOOM2_MAX_GENERIC
|
||||
|
||||
/* Version number of package */
|
||||
#define VERSION "5.0.2"
|
||||
#define VERSION "5.1.3"
|
||||
|
||||
/* Defined to 1 as per --enable-assembly */
|
||||
#define WANT_ASSEMBLY 1
|
||||
|
||||
/* Define to 1 to enable ASSERT checking, per --enable-assert */
|
||||
/* #undef WANT_ASSERT */
|
||||
|
@ -559,9 +605,6 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
`char[]'. */
|
||||
#define YYTEXT_POINTER 1
|
||||
|
||||
/* Define like PROTOTYPES; this can be used by system headers. */
|
||||
#define __PROTOTYPES 1
|
||||
|
||||
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
||||
calls it, or to nothing if 'inline' is not supported under any name. */
|
||||
#ifndef __cplusplus
|
||||
|
|
|
@ -18,13 +18,8 @@ License for more details.
|
|||
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 */
|
||||
|
||||
|
@ -33,12 +28,11 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
|
|||
#define MOD_1_NORM_THRESHOLD 3
|
||||
#define MOD_1_UNNORM_THRESHOLD 3
|
||||
#define MOD_1N_TO_MOD_1_1_THRESHOLD MP_SIZE_T_MAX /* never */
|
||||
#define MOD_1U_TO_MOD_1_1_THRESHOLD MP_SIZE_T_MAX
|
||||
#define MOD_1_1_TO_MOD_1_2_THRESHOLD MP_SIZE_T_MAX
|
||||
#define MOD_1_2_TO_MOD_1_4_THRESHOLD MP_SIZE_T_MAX
|
||||
#define MOD_1U_TO_MOD_1_1_THRESHOLD 22
|
||||
#define MOD_1_1_TO_MOD_1_2_THRESHOLD 0 /* never mpn_mod_1_1p */
|
||||
#define MOD_1_2_TO_MOD_1_4_THRESHOLD 27
|
||||
#define PREINV_MOD_1_TO_MOD_1_THRESHOLD MP_SIZE_T_MAX /* never */
|
||||
#define USE_PREINV_DIVREM_1 1
|
||||
#define DIVREM_2_THRESHOLD 7
|
||||
#define DIVEXACT_1_THRESHOLD 0 /* always */
|
||||
#define BMOD_1_TO_MOD_1_THRESHOLD MP_SIZE_T_MAX /* never */
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,164 +0,0 @@
|
|||
/* mp-h.in -- Definitions for the GNU multiple precision library -*-mode:c-*-
|
||||
BSD mp compatible functions.
|
||||
|
||||
Copyright 1991, 1993, 1994, 1995, 1996, 2000, 2001, 2002, 2004 Free Software
|
||||
Foundation, Inc.
|
||||
|
||||
This file is part of the GNU MP Library.
|
||||
|
||||
The GNU MP Library is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or (at your
|
||||
option) any later version.
|
||||
|
||||
The GNU MP Library is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||
License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
|
||||
|
||||
#ifndef __MP_H__
|
||||
|
||||
|
||||
/* The following (everything under ifndef __GNU_MP__) must be identical in
|
||||
gmp.h and mp.h to allow both to be included in an application or during
|
||||
the library build. Use the t-gmp-mp-h.pl script to check. */
|
||||
#ifndef __GNU_MP__
|
||||
#define __GNU_MP__ 5
|
||||
|
||||
#define __need_size_t /* tell gcc stddef.h we only want size_t */
|
||||
#if defined (__cplusplus)
|
||||
#include <cstddef> /* for size_t */
|
||||
#else
|
||||
#include <stddef.h> /* for size_t */
|
||||
#endif
|
||||
#undef __need_size_t
|
||||
|
||||
/* The following instantiated by configure, for internal use only */
|
||||
#if ! defined (__GMP_WITHIN_CONFIGURE)
|
||||
/* #undef _LONG_LONG_LIMB */
|
||||
#define __GMP_LIBGMP_DLL 0
|
||||
#endif
|
||||
|
||||
#if defined (__STDC__) \
|
||||
|| defined (__cplusplus) \
|
||||
|| defined (_AIX) \
|
||||
|| defined (__DECC) \
|
||||
|| (defined (__mips) && defined (_SYSTYPE_SVR4)) \
|
||||
|| defined (_MSC_VER) \
|
||||
|| defined (_WIN32)
|
||||
#define __GMP_HAVE_CONST 1
|
||||
#define __GMP_HAVE_PROTOTYPES 1
|
||||
#define __GMP_HAVE_TOKEN_PASTE 1
|
||||
#else
|
||||
#define __GMP_HAVE_CONST 0
|
||||
#define __GMP_HAVE_PROTOTYPES 0
|
||||
#define __GMP_HAVE_TOKEN_PASTE 0
|
||||
#endif
|
||||
|
||||
|
||||
#if __GMP_HAVE_CONST
|
||||
#define __gmp_const const
|
||||
#define __gmp_signed signed
|
||||
#else
|
||||
#define __gmp_const
|
||||
#define __gmp_signed
|
||||
#endif
|
||||
|
||||
#if defined (__GNUC__)
|
||||
#define __GMP_DECLSPEC_EXPORT __declspec(__dllexport__)
|
||||
#define __GMP_DECLSPEC_IMPORT __declspec(__dllimport__)
|
||||
#endif
|
||||
#if defined (_MSC_VER) || defined (__BORLANDC__)
|
||||
#define __GMP_DECLSPEC_EXPORT __declspec(dllexport)
|
||||
#define __GMP_DECLSPEC_IMPORT __declspec(dllimport)
|
||||
#endif
|
||||
#ifdef __WATCOMC__
|
||||
#define __GMP_DECLSPEC_EXPORT __export
|
||||
#define __GMP_DECLSPEC_IMPORT __import
|
||||
#endif
|
||||
#ifdef __IBMC__
|
||||
#define __GMP_DECLSPEC_EXPORT _Export
|
||||
#define __GMP_DECLSPEC_IMPORT _Import
|
||||
#endif
|
||||
|
||||
#if __GMP_LIBGMP_DLL
|
||||
#if __GMP_WITHIN_GMP
|
||||
#define __GMP_DECLSPEC __GMP_DECLSPEC_EXPORT
|
||||
#else
|
||||
#define __GMP_DECLSPEC __GMP_DECLSPEC_IMPORT
|
||||
#endif
|
||||
#else
|
||||
#define __GMP_DECLSPEC
|
||||
#endif
|
||||
|
||||
#ifdef __GMP_SHORT_LIMB
|
||||
typedef unsigned int mp_limb_t;
|
||||
typedef int mp_limb_signed_t;
|
||||
#else
|
||||
#ifdef _LONG_LONG_LIMB
|
||||
typedef unsigned long long int mp_limb_t;
|
||||
typedef long long int mp_limb_signed_t;
|
||||
#else
|
||||
typedef unsigned long int mp_limb_t;
|
||||
typedef long int mp_limb_signed_t;
|
||||
#endif
|
||||
#endif
|
||||
typedef unsigned long int mp_bitcnt_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int _mp_alloc; /* Number of *limbs* allocated and pointed
|
||||
to by the _mp_d field. */
|
||||
int _mp_size; /* abs(_mp_size) is the number of limbs the
|
||||
last field points to. If _mp_size is
|
||||
negative this is a negative number. */
|
||||
mp_limb_t *_mp_d; /* Pointer to the limbs. */
|
||||
} __mpz_struct;
|
||||
|
||||
#endif /* __GNU_MP__ */
|
||||
|
||||
/* User-visible types. */
|
||||
typedef __mpz_struct MINT;
|
||||
|
||||
|
||||
#if __GMP_HAVE_PROTOTYPES
|
||||
#define __GMP_PROTO(x) x
|
||||
#else
|
||||
#define __GMP_PROTO(x) ()
|
||||
#endif
|
||||
|
||||
#if defined (__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define mp_set_memory_functions __gmp_set_memory_functions
|
||||
__GMP_DECLSPEC void mp_set_memory_functions __GMP_PROTO ((void *(*) (size_t),
|
||||
void *(*) (void *, size_t, size_t),
|
||||
void (*) (void *, size_t)));
|
||||
__GMP_DECLSPEC MINT *itom __GMP_PROTO ((signed short int));
|
||||
__GMP_DECLSPEC MINT *xtom __GMP_PROTO ((const char *));
|
||||
__GMP_DECLSPEC void move __GMP_PROTO ((const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void madd __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void msub __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void mult __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void mdiv __GMP_PROTO ((const MINT *, const MINT *, MINT *, MINT *));
|
||||
__GMP_DECLSPEC void sdiv __GMP_PROTO ((const MINT *, signed short int, MINT *, signed short int *));
|
||||
__GMP_DECLSPEC void msqrt __GMP_PROTO ((const MINT *, MINT *, MINT *));
|
||||
__GMP_DECLSPEC void pow __GMP_PROTO ((const MINT *, const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void rpow __GMP_PROTO ((const MINT *, signed short int, MINT *));
|
||||
__GMP_DECLSPEC void gcd __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC int mcmp __GMP_PROTO ((const MINT *, const MINT *));
|
||||
__GMP_DECLSPEC void min __GMP_PROTO ((MINT *));
|
||||
__GMP_DECLSPEC void mout __GMP_PROTO ((const MINT *));
|
||||
__GMP_DECLSPEC char *mtox __GMP_PROTO ((const MINT *));
|
||||
__GMP_DECLSPEC void mfree __GMP_PROTO ((MINT *));
|
||||
|
||||
#if defined (__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#define __MP_H__
|
||||
#endif /* __MP_H__ */
|
|
@ -1,12 +1,14 @@
|
|||
# $NetBSD: Makefile.inc,v 1.4 2012/11/26 18:57:36 drochner Exp $
|
||||
# $NetBSD: Makefile.inc,v 1.5 2013/11/29 08:03:43 mrg Exp $
|
||||
|
||||
SRCS+= \
|
||||
random.c \
|
||||
divrem_2.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 \
|
||||
toom44_mul.c \
|
||||
toom8h_mul.c \
|
||||
|
@ -14,22 +16,31 @@ SRCS+= \
|
|||
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 \
|
||||
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 \
|
||||
copyd.c \
|
||||
toom_eval_dgr3_pm2.c \
|
||||
|
@ -38,6 +49,7 @@ SRCS+= \
|
|||
copyi.c \
|
||||
toom_couple_handling.c \
|
||||
add.c \
|
||||
div_qr_2.c \
|
||||
toom_interpolate_12pts.c \
|
||||
perfsqr.c \
|
||||
toom53_mul.c \
|
||||
|
@ -47,15 +59,18 @@ SRCS+= \
|
|||
mod_34lsub1.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 \
|
||||
|
@ -68,6 +83,7 @@ SRCS+= \
|
|||
bdiv_q_1.c \
|
||||
gcdext_1.c \
|
||||
toom63_mul.c \
|
||||
div_qr_2u_pi1.c \
|
||||
mul_basecase.c \
|
||||
toom8_sqr.c \
|
||||
neg.c \
|
||||
|
@ -75,30 +91,36 @@ SRCS+= \
|
|||
gcdext_lehmer.c \
|
||||
divis.c \
|
||||
dcpi1_div_q.c \
|
||||
subcnd_n.c \
|
||||
toom_eval_pm2.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 \
|
||||
mullo_basecase.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 \
|
||||
toom6h_mul.c \
|
||||
mul_fft.c \
|
||||
sqrmod_bnm1.c \
|
||||
mul_fft.c \
|
||||
mulmid.c \
|
||||
powm.c \
|
||||
rootrem.c \
|
||||
mode1o.c \
|
||||
|
@ -108,61 +130,71 @@ 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 \
|
||||
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 \
|
||||
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 \
|
||||
and_n.c mpn/generic/logops_n.c \
|
||||
ior_n.c mpn/generic/logops_n.c \
|
||||
xnor_n.c mpn/generic/logops_n.c \
|
||||
iorn_n.c mpn/generic/logops_n.c \
|
||||
andn_n.c mpn/generic/logops_n.c \
|
||||
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= \
|
||||
submul_1.s mpn/vax/submul_1.s \
|
||||
addmul_1.s mpn/vax/addmul_1.s \
|
||||
lshift.s mpn/vax/lshift.s \
|
||||
mul_1.s mpn/vax/mul_1.s \
|
||||
sub_n.s mpn/vax/sub_n.s \
|
||||
add_n.s mpn/vax/add_n.s \
|
||||
rshift.s mpn/vax/rshift.s \
|
||||
add_n.asm mpn/vax/add_n.asm \
|
||||
submul_1.asm mpn/vax/submul_1.asm \
|
||||
lshift.asm mpn/vax/lshift.asm \
|
||||
mul_1.asm mpn/vax/mul_1.asm \
|
||||
rshift.asm mpn/vax/rshift.asm \
|
||||
addmul_1.asm mpn/vax/addmul_1.asm \
|
||||
sub_n.asm mpn/vax/sub_n.asm \
|
||||
|
||||
# XXX can't build these asm sources yet
|
||||
ASM_SRCS_LIST=
|
||||
|
||||
C_SRCS_LIST+= \
|
||||
add_n.c mpn/generic/add_n.c \
|
||||
addmul_1.c mpn/generic/addmul_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 \
|
||||
submul_1.c mpn/generic/submul_1.c \
|
||||
#ASM_SRCS_LIST=
|
||||
#
|
||||
#C_SRCS_LIST+= \
|
||||
# add_n.c mpn/generic/add_n.c \
|
||||
# addmul_1.c mpn/generic/addmul_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 \
|
||||
# submul_1.c mpn/generic/submul_1.c \
|
||||
|
||||
gen-trialdivtab: gen-trialdivtab.c
|
||||
${HOST_CC} -o ${.OBJDIR}/gen-trialdivtab ${.ALLSRC} -lm
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
@ -27,7 +27,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
|
||||
/* The gmp-mparam.h file (a string) the tune program should suggest updating.
|
||||
*/
|
||||
#define GMP_MPARAM_H_SUGGEST "/u1/netbsd-HEAD/src/external/lgpl3/gmp/dist/mpn/vax/gmp-mparam.h"
|
||||
#define GMP_MPARAM_H_SUGGEST "./mpn/vax/gmp-mparam.h"
|
||||
|
||||
/* Define to 1 if you have the `alarm' function. */
|
||||
#define HAVE_ALARM 1
|
||||
|
@ -62,7 +62,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* 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 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #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
|
||||
|
@ -213,13 +221,29 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
|
||||
/* Define to 1 each of the following for which a native (ie. CPU specific)
|
||||
implementation of the corresponding routine exists. */
|
||||
/* #undef HAVE_NATIVE_mpn_add_n */
|
||||
#define HAVE_NATIVE_mpn_add_n 1
|
||||
/* #undef HAVE_NATIVE_mpn_add_n_sub_n */
|
||||
/* #undef HAVE_NATIVE_mpn_add_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addaddmul_1msb0 */
|
||||
/* #undef HAVE_NATIVE_mpn_addcnd_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_3 */
|
||||
|
@ -228,6 +252,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_addmul_6 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_7 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_8 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_2s */
|
||||
/* #undef HAVE_NATIVE_mpn_and_n */
|
||||
/* #undef HAVE_NATIVE_mpn_andn_n */
|
||||
/* #undef HAVE_NATIVE_mpn_bdiv_dbm1c */
|
||||
|
@ -236,6 +261,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_com */
|
||||
/* #undef HAVE_NATIVE_mpn_copyd */
|
||||
/* #undef HAVE_NATIVE_mpn_copyi */
|
||||
/* #undef HAVE_NATIVE_mpn_div_qr_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_divexact_1 */
|
||||
/* #undef HAVE_NATIVE_mpn_divexact_by3c */
|
||||
/* #undef HAVE_NATIVE_mpn_divrem_1 */
|
||||
|
@ -246,7 +272,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_invert_limb */
|
||||
/* #undef HAVE_NATIVE_mpn_ior_n */
|
||||
/* #undef HAVE_NATIVE_mpn_iorn_n */
|
||||
/* #undef HAVE_NATIVE_mpn_lshift */
|
||||
#define HAVE_NATIVE_mpn_lshift 1
|
||||
/* #undef HAVE_NATIVE_mpn_lshiftc */
|
||||
/* #undef HAVE_NATIVE_mpn_lshsub_n */
|
||||
/* #undef HAVE_NATIVE_mpn_mod_1 */
|
||||
|
@ -257,11 +283,13 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_mod_34lsub1 */
|
||||
/* #undef HAVE_NATIVE_mpn_modexact_1_odd */
|
||||
/* #undef HAVE_NATIVE_mpn_modexact_1c_odd */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_1 */
|
||||
#define HAVE_NATIVE_mpn_mul_1 1
|
||||
/* #undef HAVE_NATIVE_mpn_mul_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_2 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_3 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_4 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_5 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_6 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_basecase */
|
||||
/* #undef HAVE_NATIVE_mpn_nand_n */
|
||||
/* #undef HAVE_NATIVE_mpn_nior_n */
|
||||
|
@ -273,19 +301,34 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_rsblsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1add_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1add_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1sub_n */
|
||||
/* #undef HAVE_NATIVE_mpn_rsh1sub_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rshift */
|
||||
#define HAVE_NATIVE_mpn_rshift 1
|
||||
/* #undef HAVE_NATIVE_mpn_sqr_basecase */
|
||||
/* #undef HAVE_NATIVE_mpn_sqr_diagonal */
|
||||
/* #undef HAVE_NATIVE_mpn_sub_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sqr_diag_addlsh1 */
|
||||
#define HAVE_NATIVE_mpn_sub_n 1
|
||||
/* #undef HAVE_NATIVE_mpn_sub_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_subcnd_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_submul_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_tabselect */
|
||||
/* #undef HAVE_NATIVE_mpn_udiv_qrnnd */
|
||||
/* #undef HAVE_NATIVE_mpn_udiv_qrnnd_r */
|
||||
/* #undef HAVE_NATIVE_mpn_umul_ppmm */
|
||||
|
@ -450,8 +493,11 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* Define to 1 if you have the `vsnprintf' function and it works properly. */
|
||||
#define HAVE_VSNPRINTF 1
|
||||
|
||||
/* Define to 1 for Windos/64 */
|
||||
/* #undef HOST_DOS64 */
|
||||
|
||||
/* Assembler local label prefix */
|
||||
/* #undef LSYM_PREFIX */
|
||||
#define LSYM_PREFIX ".L"
|
||||
|
||||
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
||||
*/
|
||||
|
@ -461,13 +507,13 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define PACKAGE "gmp"
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org"
|
||||
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html"
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#define PACKAGE_NAME "GNU MP"
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#define PACKAGE_STRING "GNU MP 5.0.2"
|
||||
#define PACKAGE_STRING "GNU MP 5.1.3"
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#define PACKAGE_TARNAME "gmp"
|
||||
|
@ -476,10 +522,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define PACKAGE_URL "http://www.gnu.org/software/gmp/"
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#define PACKAGE_VERSION "5.0.2"
|
||||
|
||||
/* Define to 1 if the C compiler supports function prototypes. */
|
||||
#define PROTOTYPES 1
|
||||
#define PACKAGE_VERSION "5.1.3"
|
||||
|
||||
/* Define as the return type of signal handlers (`int' or `void'). */
|
||||
#define RETSIGTYPE void
|
||||
|
@ -512,7 +555,10 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define TUNE_SQR_TOOM2_MAX SQR_TOOM2_MAX_GENERIC
|
||||
|
||||
/* Version number of package */
|
||||
#define VERSION "5.0.2"
|
||||
#define VERSION "5.1.3"
|
||||
|
||||
/* Defined to 1 as per --enable-assembly */
|
||||
#define WANT_ASSEMBLY 1
|
||||
|
||||
/* Define to 1 to enable ASSERT checking, per --enable-assert */
|
||||
/* #undef WANT_ASSERT */
|
||||
|
@ -559,9 +605,6 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
`char[]'. */
|
||||
#define YYTEXT_POINTER 1
|
||||
|
||||
/* Define like PROTOTYPES; this can be used by system headers. */
|
||||
#define __PROTOTYPES 1
|
||||
|
||||
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
||||
calls it, or to nothing if 'inline' is not supported under any name. */
|
||||
#ifndef __cplusplus
|
||||
|
|
|
@ -3,6 +3,19 @@ changequote(<,>)
|
|||
ifdef(<__CONFIG_M4_INCLUDED__>,,<
|
||||
define(<WANT_ASSERT>,0)
|
||||
define(<WANT_PROFILING>,<`no'>)
|
||||
define(<M4WRAP_SPURIOUS>,<no>)
|
||||
define(<TEXT>, <.text>)
|
||||
define(<DATA>, <.data>)
|
||||
define(<LABEL_SUFFIX>, <:>)
|
||||
define(<GLOBL>, <.globl>)
|
||||
define(<GLOBL_ATTR>, <>)
|
||||
define(<GSYM_PREFIX>, <>)
|
||||
define(<RODATA>, < .section .rodata>)
|
||||
define(<TYPE>, <.type $1,@$2>)
|
||||
define(<SIZE>, <.size $1,$2>)
|
||||
define(<LSYM_PREFIX>, <.L>)
|
||||
define(<W32>, <.long>)
|
||||
define(<ALIGN_LOGARITHMIC>,<yes>)
|
||||
define(<SQR_TOOM2_THRESHOLD>,<42>)
|
||||
define(<SIZEOF_UNSIGNED>,<4>)
|
||||
define(<GMP_LIMB_BITS>,32)
|
||||
|
@ -12,6 +25,7 @@ define(<GMP_NUMB_BITS>,eval(GMP_LIMB_BITS-GMP_NAIL_BITS))
|
|||
changequote(`,')
|
||||
ifdef(`__CONFIG_M4_INCLUDED__',,`
|
||||
include(CONFIG_TOP_SRCDIR`/mpn/asm-defs.m4')
|
||||
include_mpn(`vax/elf.m4')
|
||||
define_not_for_expansion(`HAVE_HOST_CPU_vax')
|
||||
define_not_for_expansion(`HAVE_ABI_standard')
|
||||
define_not_for_expansion(`HAVE_LIMB_LITTLE_ENDIAN')
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,164 +0,0 @@
|
|||
/* mp-h.in -- Definitions for the GNU multiple precision library -*-mode:c-*-
|
||||
BSD mp compatible functions.
|
||||
|
||||
Copyright 1991, 1993, 1994, 1995, 1996, 2000, 2001, 2002, 2004 Free Software
|
||||
Foundation, Inc.
|
||||
|
||||
This file is part of the GNU MP Library.
|
||||
|
||||
The GNU MP Library is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or (at your
|
||||
option) any later version.
|
||||
|
||||
The GNU MP Library is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||
License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
|
||||
|
||||
#ifndef __MP_H__
|
||||
|
||||
|
||||
/* The following (everything under ifndef __GNU_MP__) must be identical in
|
||||
gmp.h and mp.h to allow both to be included in an application or during
|
||||
the library build. Use the t-gmp-mp-h.pl script to check. */
|
||||
#ifndef __GNU_MP__
|
||||
#define __GNU_MP__ 5
|
||||
|
||||
#define __need_size_t /* tell gcc stddef.h we only want size_t */
|
||||
#if defined (__cplusplus)
|
||||
#include <cstddef> /* for size_t */
|
||||
#else
|
||||
#include <stddef.h> /* for size_t */
|
||||
#endif
|
||||
#undef __need_size_t
|
||||
|
||||
/* The following instantiated by configure, for internal use only */
|
||||
#if ! defined (__GMP_WITHIN_CONFIGURE)
|
||||
/* #undef _LONG_LONG_LIMB */
|
||||
#define __GMP_LIBGMP_DLL 0
|
||||
#endif
|
||||
|
||||
#if defined (__STDC__) \
|
||||
|| defined (__cplusplus) \
|
||||
|| defined (_AIX) \
|
||||
|| defined (__DECC) \
|
||||
|| (defined (__mips) && defined (_SYSTYPE_SVR4)) \
|
||||
|| defined (_MSC_VER) \
|
||||
|| defined (_WIN32)
|
||||
#define __GMP_HAVE_CONST 1
|
||||
#define __GMP_HAVE_PROTOTYPES 1
|
||||
#define __GMP_HAVE_TOKEN_PASTE 1
|
||||
#else
|
||||
#define __GMP_HAVE_CONST 0
|
||||
#define __GMP_HAVE_PROTOTYPES 0
|
||||
#define __GMP_HAVE_TOKEN_PASTE 0
|
||||
#endif
|
||||
|
||||
|
||||
#if __GMP_HAVE_CONST
|
||||
#define __gmp_const const
|
||||
#define __gmp_signed signed
|
||||
#else
|
||||
#define __gmp_const
|
||||
#define __gmp_signed
|
||||
#endif
|
||||
|
||||
#if defined (__GNUC__)
|
||||
#define __GMP_DECLSPEC_EXPORT __declspec(__dllexport__)
|
||||
#define __GMP_DECLSPEC_IMPORT __declspec(__dllimport__)
|
||||
#endif
|
||||
#if defined (_MSC_VER) || defined (__BORLANDC__)
|
||||
#define __GMP_DECLSPEC_EXPORT __declspec(dllexport)
|
||||
#define __GMP_DECLSPEC_IMPORT __declspec(dllimport)
|
||||
#endif
|
||||
#ifdef __WATCOMC__
|
||||
#define __GMP_DECLSPEC_EXPORT __export
|
||||
#define __GMP_DECLSPEC_IMPORT __import
|
||||
#endif
|
||||
#ifdef __IBMC__
|
||||
#define __GMP_DECLSPEC_EXPORT _Export
|
||||
#define __GMP_DECLSPEC_IMPORT _Import
|
||||
#endif
|
||||
|
||||
#if __GMP_LIBGMP_DLL
|
||||
#if __GMP_WITHIN_GMP
|
||||
#define __GMP_DECLSPEC __GMP_DECLSPEC_EXPORT
|
||||
#else
|
||||
#define __GMP_DECLSPEC __GMP_DECLSPEC_IMPORT
|
||||
#endif
|
||||
#else
|
||||
#define __GMP_DECLSPEC
|
||||
#endif
|
||||
|
||||
#ifdef __GMP_SHORT_LIMB
|
||||
typedef unsigned int mp_limb_t;
|
||||
typedef int mp_limb_signed_t;
|
||||
#else
|
||||
#ifdef _LONG_LONG_LIMB
|
||||
typedef unsigned long long int mp_limb_t;
|
||||
typedef long long int mp_limb_signed_t;
|
||||
#else
|
||||
typedef unsigned long int mp_limb_t;
|
||||
typedef long int mp_limb_signed_t;
|
||||
#endif
|
||||
#endif
|
||||
typedef unsigned long int mp_bitcnt_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int _mp_alloc; /* Number of *limbs* allocated and pointed
|
||||
to by the _mp_d field. */
|
||||
int _mp_size; /* abs(_mp_size) is the number of limbs the
|
||||
last field points to. If _mp_size is
|
||||
negative this is a negative number. */
|
||||
mp_limb_t *_mp_d; /* Pointer to the limbs. */
|
||||
} __mpz_struct;
|
||||
|
||||
#endif /* __GNU_MP__ */
|
||||
|
||||
/* User-visible types. */
|
||||
typedef __mpz_struct MINT;
|
||||
|
||||
|
||||
#if __GMP_HAVE_PROTOTYPES
|
||||
#define __GMP_PROTO(x) x
|
||||
#else
|
||||
#define __GMP_PROTO(x) ()
|
||||
#endif
|
||||
|
||||
#if defined (__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define mp_set_memory_functions __gmp_set_memory_functions
|
||||
__GMP_DECLSPEC void mp_set_memory_functions __GMP_PROTO ((void *(*) (size_t),
|
||||
void *(*) (void *, size_t, size_t),
|
||||
void (*) (void *, size_t)));
|
||||
__GMP_DECLSPEC MINT *itom __GMP_PROTO ((signed short int));
|
||||
__GMP_DECLSPEC MINT *xtom __GMP_PROTO ((const char *));
|
||||
__GMP_DECLSPEC void move __GMP_PROTO ((const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void madd __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void msub __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void mult __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void mdiv __GMP_PROTO ((const MINT *, const MINT *, MINT *, MINT *));
|
||||
__GMP_DECLSPEC void sdiv __GMP_PROTO ((const MINT *, signed short int, MINT *, signed short int *));
|
||||
__GMP_DECLSPEC void msqrt __GMP_PROTO ((const MINT *, MINT *, MINT *));
|
||||
__GMP_DECLSPEC void pow __GMP_PROTO ((const MINT *, const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void rpow __GMP_PROTO ((const MINT *, signed short int, MINT *));
|
||||
__GMP_DECLSPEC void gcd __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC int mcmp __GMP_PROTO ((const MINT *, const MINT *));
|
||||
__GMP_DECLSPEC void min __GMP_PROTO ((MINT *));
|
||||
__GMP_DECLSPEC void mout __GMP_PROTO ((const MINT *));
|
||||
__GMP_DECLSPEC char *mtox __GMP_PROTO ((const MINT *));
|
||||
__GMP_DECLSPEC void mfree __GMP_PROTO ((MINT *));
|
||||
|
||||
#if defined (__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#define __MP_H__
|
||||
#endif /* __MP_H__ */
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.inc,v 1.4 2012/11/26 18:57:36 drochner Exp $
|
||||
# $NetBSD: Makefile.inc,v 1.5 2013/11/29 08:03:43 mrg Exp $
|
||||
|
||||
SRCS+= \
|
||||
random.c \
|
||||
|
@ -6,6 +6,7 @@ SRCS+= \
|
|||
sbpi1_divappr_q.c \
|
||||
random2.c \
|
||||
mu_bdiv_q.c \
|
||||
jacobi_2.c \
|
||||
toom32_mul.c \
|
||||
toom44_mul.c \
|
||||
toom8h_mul.c \
|
||||
|
@ -15,17 +16,23 @@ SRCS+= \
|
|||
binvert.c \
|
||||
mu_div_q.c \
|
||||
invertappr.c \
|
||||
add_n_sub_n.c \
|
||||
dump.c \
|
||||
hgcd_reduce.c \
|
||||
dcpi1_div_qr.c \
|
||||
mu_divappr_q.c \
|
||||
redc_1_sec.c \
|
||||
matrix22_mul1_inverse_vector.c \
|
||||
toom6_sqr.c \
|
||||
hgcd_step.c \
|
||||
mod_1.c \
|
||||
toom42_mulmid.c \
|
||||
divexact.c \
|
||||
jacobi.c \
|
||||
powlo.c \
|
||||
mul.c \
|
||||
set_str.c \
|
||||
toom42_mul.c \
|
||||
toom54_mul.c \
|
||||
toom_interpolate_6pts.c \
|
||||
dcpi1_divappr_q.c \
|
||||
toom_eval_dgr3_pm2.c \
|
||||
|
@ -33,6 +40,7 @@ SRCS+= \
|
|||
toom_couple_handling.c \
|
||||
add.c \
|
||||
toom_interpolate_12pts.c \
|
||||
div_qr_2.c \
|
||||
perfsqr.c \
|
||||
toom53_mul.c \
|
||||
toom_eval_pm2exp.c \
|
||||
|
@ -40,14 +48,14 @@ SRCS+= \
|
|||
mu_div_qr.c \
|
||||
bdiv_q.c \
|
||||
toom22_mul.c \
|
||||
bsqrtinv.c \
|
||||
toom4_sqr.c \
|
||||
div_q.c \
|
||||
jacbase.c \
|
||||
gcdext_subdiv_step.c \
|
||||
hgcd_matrix.c \
|
||||
mullo_n.c \
|
||||
toom33_mul.c \
|
||||
toom_eval_dgr3_pm1.c \
|
||||
mod_1_2.c \
|
||||
sub_1.c \
|
||||
trialdiv.c \
|
||||
add_1.c \
|
||||
|
@ -63,106 +71,136 @@ SRCS+= \
|
|||
gcdext_lehmer.c \
|
||||
divis.c \
|
||||
dcpi1_div_q.c \
|
||||
subcnd_n.c \
|
||||
toom_eval_pm2.c \
|
||||
hgcd2.c \
|
||||
toom62_mul.c \
|
||||
comb_tables.c \
|
||||
sbpi1_bdiv_qr.c \
|
||||
scan1.c \
|
||||
brootinv.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 \
|
||||
mul_n.c \
|
||||
bsqrt.c \
|
||||
dcpi1_bdiv_qr.c \
|
||||
mul_n.c \
|
||||
redc_2.c \
|
||||
toom6h_mul.c \
|
||||
mul_fft.c \
|
||||
sqrmod_bnm1.c \
|
||||
mulmid.c \
|
||||
powm.c \
|
||||
rootrem.c \
|
||||
toom_interpolate_8pts.c \
|
||||
remove.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 \
|
||||
mulmid_n.c \
|
||||
sqr.c \
|
||||
nussbaumer_mul.c \
|
||||
pow_1.c \
|
||||
gcd_lehmer.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 \
|
||||
|
||||
C_SRCS_LIST= \
|
||||
sb_div_r_sec.c mpn/generic/sb_div_sec.c \
|
||||
sbpi1_div_qr_sec.c mpn/generic/sbpi1_div_sec.c \
|
||||
sb_div_qr_sec.c mpn/generic/sb_div_sec.c \
|
||||
sbpi1_div_r_sec.c mpn/generic/sbpi1_div_sec.c \
|
||||
|
||||
ASM_SRCS_LIST= \
|
||||
nand_n.asm mpn/x86_64/logops_n.asm \
|
||||
sub_err1_n.asm mpn/x86_64/aors_err1_n.asm \
|
||||
add_err2_n.asm mpn/x86_64/aors_err2_n.asm \
|
||||
rsh1sub_n.asm mpn/x86_64/rsh1aors_n.asm \
|
||||
mod_1_2.asm mpn/x86_64/mod_1_2.asm \
|
||||
add_n.asm mpn/x86_64/aors_n.asm \
|
||||
rsh1add_n.asm mpn/x86_64/rsh1aors_n.asm \
|
||||
sqr_basecase.asm mpn/x86_64/sqr_basecase.asm \
|
||||
sqr_basecase.asm mpn/x86_64/sqr_basecase.asm \
|
||||
rsblsh2_n.asm mpn/x86_64/aorrlsh2_n.asm \
|
||||
sublsh1_n.asm mpn/x86_64/sublsh1_n.asm \
|
||||
bdiv_q_1.asm mpn/x86_64/bdiv_q_1.asm \
|
||||
addaddmul_1msb0.asm mpn/x86_64/addaddmul_1msb0.asm \
|
||||
addcnd_n.asm mpn/x86_64/aorscnd_n.asm \
|
||||
addaddmul_1msb0.asm mpn/x86_64/addaddmul_1msb0.asm \
|
||||
xor_n.asm mpn/x86_64/logops_n.asm \
|
||||
rsblsh_n.asm mpn/x86_64/aorrlsh_n.asm \
|
||||
sub_err3_n.asm mpn/x86_64/aors_err3_n.asm \
|
||||
rsblsh_n.asm mpn/x86_64/k8/aorrlsh_n.asm \
|
||||
addmul_2.asm mpn/x86_64/addmul_2.asm \
|
||||
submul_1.asm mpn/x86_64/aorsmul_1.asm \
|
||||
nior_n.asm mpn/x86_64/logops_n.asm \
|
||||
mul_basecase.asm mpn/x86_64/mul_basecase.asm \
|
||||
mul_basecase.asm mpn/x86_64/mul_basecase.asm \
|
||||
tabselect.asm mpn/x86_64/tabselect.asm \
|
||||
lshift.asm mpn/x86_64/lshift.asm \
|
||||
add_err1_n.asm mpn/x86_64/aors_err1_n.asm \
|
||||
and_n.asm mpn/x86_64/logops_n.asm \
|
||||
hamdist.asm mpn/x86_64/popham.asm \
|
||||
div_qr_2u_pi1.asm mpn/x86_64/div_qr_2u_pi1.asm \
|
||||
mulmid_basecase.asm mpn/x86_64/mulmid_basecase.asm \
|
||||
mul_1.asm mpn/x86_64/mul_1.asm \
|
||||
addlsh2_n.asm mpn/x86_64/aorrlsh2_n.asm \
|
||||
divrem_1.asm mpn/x86_64/divrem_1.asm \
|
||||
copyd.asm mpn/x86_64/copyd.asm \
|
||||
bdiv_dbm1c.asm mpn/x86_64/bdiv_dbm1c.asm \
|
||||
div_qr_2n_pi1.asm mpn/x86_64/div_qr_2n_pi1.asm \
|
||||
rsblsh1_n.asm mpn/x86_64/aorrlsh1_n.asm \
|
||||
dive_1.asm mpn/x86_64/dive_1.asm \
|
||||
andn_n.asm mpn/x86_64/logops_n.asm \
|
||||
com.asm mpn/x86_64/com.asm \
|
||||
com.asm mpn/x86_64/com.asm \
|
||||
copyi.asm mpn/x86_64/copyi.asm \
|
||||
sub_err2_n.asm mpn/x86_64/aors_err2_n.asm \
|
||||
add_err3_n.asm mpn/x86_64/aors_err3_n.asm \
|
||||
mod_1_1.asm mpn/x86_64/mod_1_1.asm \
|
||||
subcnd_n.asm mpn/x86_64/aorscnd_n.asm \
|
||||
rshift.asm mpn/x86_64/rshift.asm \
|
||||
addlsh_n.asm mpn/x86_64/aorrlsh_n.asm \
|
||||
addlsh_n.asm mpn/x86_64/k8/aorrlsh_n.asm \
|
||||
iorn_n.asm mpn/x86_64/logops_n.asm \
|
||||
ior_n.asm mpn/x86_64/logops_n.asm \
|
||||
mod_34lsub1.asm mpn/x86_64/mod_34lsub1.asm \
|
||||
popcount.asm mpn/x86_64/popham.asm \
|
||||
invert_limb_table.asm mpn/x86_64/invert_limb_table.asm \
|
||||
xnor_n.asm mpn/x86_64/logops_n.asm \
|
||||
redc_1.asm mpn/x86_64/redc_1.asm \
|
||||
lshiftc.asm mpn/x86_64/lshiftc.asm \
|
||||
mode1o.asm mpn/x86_64/mode1o.asm \
|
||||
mullo_basecase.asm mpn/x86_64/mullo_basecase.asm \
|
||||
addlsh1_n.asm mpn/x86_64/aorrlsh1_n.asm \
|
||||
mul_2.asm mpn/x86_64/mul_2.asm \
|
||||
invert_limb.asm mpn/x86_64/invert_limb.asm \
|
||||
addmul_1.asm mpn/x86_64/aorsmul_1.asm \
|
||||
divrem_2.asm mpn/x86_64/divrem_2.asm \
|
||||
mod_1_4.asm mpn/x86_64/mod_1_4.asm \
|
||||
sub_n.asm mpn/x86_64/aors_n.asm \
|
||||
gcd_1.asm mpn/x86_64/gcd_1.asm \
|
||||
|
||||
# XXX using C versions
|
||||
# redc_1.asm mpn/x86_64/redc_1.asm
|
||||
# gcd_1.asm mpn/x86_64/gcd_1.asm
|
||||
# mod_1_4.asm mpn/x86_64/mod_1_4.asm
|
||||
SRCS+= redc_1.c gcd_1.c mod_1_4.c
|
||||
#SRCS+= redc_1.c gcd_1.c mod_1_4.c
|
||||
|
||||
gen-trialdivtab: gen-trialdivtab.c
|
||||
${HOST_CC} -o ${.OBJDIR}/gen-trialdivtab ${.ALLSRC} -lm
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
@ -27,7 +27,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
|
||||
/* The gmp-mparam.h file (a string) the tune program should suggest updating.
|
||||
*/
|
||||
#define GMP_MPARAM_H_SUGGEST "./mpn/x86_64/gmp-mparam.h"
|
||||
#define GMP_MPARAM_H_SUGGEST "./mpn/x86_64/k8/gmp-mparam.h"
|
||||
|
||||
/* Define to 1 if you have the `alarm' function. */
|
||||
#define HAVE_ALARM 1
|
||||
|
@ -62,7 +62,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* 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 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #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
|
||||
|
@ -217,9 +225,25 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_add_n_sub_n */
|
||||
#define HAVE_NATIVE_mpn_add_nc 1
|
||||
#define HAVE_NATIVE_mpn_addaddmul_1msb0 1
|
||||
#define HAVE_NATIVE_mpn_addcnd_n 1
|
||||
#define HAVE_NATIVE_mpn_addlsh1_n 1
|
||||
#define HAVE_NATIVE_mpn_addlsh2_n 1
|
||||
#define HAVE_NATIVE_mpn_addlsh_n 1
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh2_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh_n_ip2 */
|
||||
/* #undef HAVE_NATIVE_mpn_addlsh1_nc_ip2 */
|
||||
/* #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
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_3 */
|
||||
|
@ -228,6 +252,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_NATIVE_mpn_addmul_6 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_7 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_8 */
|
||||
/* #undef HAVE_NATIVE_mpn_addmul_2s */
|
||||
#define HAVE_NATIVE_mpn_and_n 1
|
||||
#define HAVE_NATIVE_mpn_andn_n 1
|
||||
#define HAVE_NATIVE_mpn_bdiv_dbm1c 1
|
||||
|
@ -236,6 +261,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define HAVE_NATIVE_mpn_com 1
|
||||
#define HAVE_NATIVE_mpn_copyd 1
|
||||
#define HAVE_NATIVE_mpn_copyi 1
|
||||
/* #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
|
||||
|
@ -250,9 +276,9 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define HAVE_NATIVE_mpn_lshiftc 1
|
||||
/* #undef HAVE_NATIVE_mpn_lshsub_n */
|
||||
/* #undef HAVE_NATIVE_mpn_mod_1 */
|
||||
/* #undef HAVE_NATIVE_mpn_mod_1_1p */
|
||||
#define HAVE_NATIVE_mpn_mod_1_1p 1
|
||||
/* #undef HAVE_NATIVE_mpn_mod_1c */
|
||||
/* #undef HAVE_NATIVE_mpn_mod_1s_2p */
|
||||
#define HAVE_NATIVE_mpn_mod_1s_2p 1
|
||||
#define HAVE_NATIVE_mpn_mod_1s_4p 1
|
||||
#define HAVE_NATIVE_mpn_mod_34lsub1 1
|
||||
#define HAVE_NATIVE_mpn_modexact_1_odd 1
|
||||
|
@ -262,6 +288,8 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define HAVE_NATIVE_mpn_mul_2 1
|
||||
/* #undef HAVE_NATIVE_mpn_mul_3 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_4 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_5 */
|
||||
/* #undef HAVE_NATIVE_mpn_mul_6 */
|
||||
#define HAVE_NATIVE_mpn_mul_basecase 1
|
||||
#define HAVE_NATIVE_mpn_nand_n 1
|
||||
#define HAVE_NATIVE_mpn_nior_n 1
|
||||
|
@ -273,6 +301,9 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define HAVE_NATIVE_mpn_rsblsh1_n 1
|
||||
#define HAVE_NATIVE_mpn_rsblsh2_n 1
|
||||
#define HAVE_NATIVE_mpn_rsblsh_n 1
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_rsblsh_nc */
|
||||
#define HAVE_NATIVE_mpn_rsh1add_n 1
|
||||
#define HAVE_NATIVE_mpn_rsh1add_nc 1
|
||||
#define HAVE_NATIVE_mpn_rsh1sub_n 1
|
||||
|
@ -280,12 +311,24 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define HAVE_NATIVE_mpn_rshift 1
|
||||
#define HAVE_NATIVE_mpn_sqr_basecase 1
|
||||
/* #undef HAVE_NATIVE_mpn_sqr_diagonal */
|
||||
/* #undef HAVE_NATIVE_mpn_sqr_diag_addlsh1 */
|
||||
#define HAVE_NATIVE_mpn_sub_n 1
|
||||
#define HAVE_NATIVE_mpn_sub_nc 1
|
||||
#define HAVE_NATIVE_mpn_subcnd_n 1
|
||||
#define HAVE_NATIVE_mpn_sublsh1_n 1
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_n */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_nc */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_n_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh1_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh2_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_sublsh_nc_ip1 */
|
||||
/* #undef HAVE_NATIVE_mpn_submul_1c */
|
||||
#define HAVE_NATIVE_mpn_tabselect 1
|
||||
/* #undef HAVE_NATIVE_mpn_udiv_qrnnd */
|
||||
/* #undef HAVE_NATIVE_mpn_udiv_qrnnd_r */
|
||||
/* #undef HAVE_NATIVE_mpn_umul_ppmm */
|
||||
|
@ -316,7 +359,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef HAVE_PSTAT_GETPROCESSOR */
|
||||
|
||||
/* Define to 1 if the system has the type `ptrdiff_t'. */
|
||||
#define HAVE_PTRDIFF_T 1
|
||||
/* #undef HAVE_PTRDIFF_T */
|
||||
|
||||
/* Define to 1 if the system has the type `quad_t'. */
|
||||
#define HAVE_QUAD_T 1
|
||||
|
@ -450,6 +493,9 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* Define to 1 if you have the `vsnprintf' function and it works properly. */
|
||||
#define HAVE_VSNPRINTF 1
|
||||
|
||||
/* Define to 1 for Windos/64 */
|
||||
/* #undef HOST_DOS64 */
|
||||
|
||||
/* Assembler local label prefix */
|
||||
#define LSYM_PREFIX ".L"
|
||||
|
||||
|
@ -461,13 +507,13 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define PACKAGE "gmp"
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org"
|
||||
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html"
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#define PACKAGE_NAME "GNU MP"
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#define PACKAGE_STRING "GNU MP 5.0.2"
|
||||
#define PACKAGE_STRING "GNU MP 5.1.3"
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#define PACKAGE_TARNAME "gmp"
|
||||
|
@ -476,10 +522,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
#define PACKAGE_URL "http://www.gnu.org/software/gmp/"
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#define PACKAGE_VERSION "5.0.2"
|
||||
|
||||
/* Define to 1 if the C compiler supports function prototypes. */
|
||||
#define PROTOTYPES 1
|
||||
#define PACKAGE_VERSION "5.1.3"
|
||||
|
||||
/* Define as the return type of signal handlers (`int' or `void'). */
|
||||
#define RETSIGTYPE void
|
||||
|
@ -503,16 +546,19 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
/* #undef SSCANF_WRITABLE_INPUT */
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#define STDC_HEADERS 1
|
||||
/* #undef STDC_HEADERS */
|
||||
|
||||
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
|
||||
#define TIME_WITH_SYS_TIME 1
|
||||
|
||||
/* Maximum size the tune program can test for SQR_TOOM2_THRESHOLD */
|
||||
#define TUNE_SQR_TOOM2_MAX 80
|
||||
/* #undef TUNE_SQR_TOOM2_MAX */
|
||||
|
||||
/* Version number of package */
|
||||
#define VERSION "5.0.2"
|
||||
#define VERSION "5.1.3"
|
||||
|
||||
/* Defined to 1 as per --enable-assembly */
|
||||
#define WANT_ASSEMBLY 1
|
||||
|
||||
/* Define to 1 to enable ASSERT checking, per --enable-assert */
|
||||
/* #undef WANT_ASSERT */
|
||||
|
@ -559,9 +605,6 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
|
|||
`char[]'. */
|
||||
#define YYTEXT_POINTER 1
|
||||
|
||||
/* Define like PROTOTYPES; this can be used by system headers. */
|
||||
#define __PROTOTYPES 1
|
||||
|
||||
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
||||
calls it, or to nothing if 'inline' is not supported under any name. */
|
||||
#ifndef __cplusplus
|
||||
|
|
|
@ -18,6 +18,7 @@ define(<W32>, <.long>)
|
|||
define(<ALIGN_LOGARITHMIC>,<no>)
|
||||
define(<ALIGN_FILL_0x90>,<yes>)
|
||||
define(<SQR_TOOM2_THRESHOLD>,<34>)
|
||||
define(<BMOD_1_TO_MOD_1_THRESHOLD>,<17>)
|
||||
define(<SIZEOF_UNSIGNED>,<4>)
|
||||
define(<GMP_LIMB_BITS>,64)
|
||||
define(<GMP_NAIL_BITS>,0)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* AMD K8 gmp-mparam.h -- Compiler/machine parameter header file.
|
||||
|
||||
Copyright 1991, 1993, 1994, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
|
||||
2008, 2009, 2010 Free Software Foundation, Inc.
|
||||
2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of the GNU MP Library.
|
||||
|
||||
|
@ -18,48 +18,51 @@ License for more details.
|
|||
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
|
||||
|
||||
// #undef mpn_sublsh_n
|
||||
// #define mpn_sublsh_n(rp,up,vp,n,c) \
|
||||
// (((rp) == (up)) ? mpn_submul_1 (rp, vp, n, CNST_LIMB(1) << (c)) \
|
||||
// : MPN(mpn_sublsh_n)(rp,up,vp,n,c))
|
||||
|
||||
#define MOD_1_NORM_THRESHOLD 0 /* always */
|
||||
#define MOD_1_UNNORM_THRESHOLD 0 /* always */
|
||||
#define MOD_1N_TO_MOD_1_1_THRESHOLD 8
|
||||
#define MOD_1U_TO_MOD_1_1_THRESHOLD 6
|
||||
#define MOD_1_1_TO_MOD_1_2_THRESHOLD 0
|
||||
#define MOD_1_2_TO_MOD_1_4_THRESHOLD 11
|
||||
#define PREINV_MOD_1_TO_MOD_1_THRESHOLD 14
|
||||
#define MOD_1N_TO_MOD_1_1_THRESHOLD 4
|
||||
#define MOD_1U_TO_MOD_1_1_THRESHOLD 2
|
||||
#define MOD_1_1_TO_MOD_1_2_THRESHOLD 13
|
||||
#define MOD_1_2_TO_MOD_1_4_THRESHOLD 35
|
||||
#define PREINV_MOD_1_TO_MOD_1_THRESHOLD 7
|
||||
#define USE_PREINV_DIVREM_1 1 /* native */
|
||||
#define DIV_QR_2_PI2_THRESHOLD MP_SIZE_T_MAX /* never */
|
||||
#define DIVEXACT_1_THRESHOLD 0 /* always (native) */
|
||||
#define BMOD_1_TO_MOD_1_THRESHOLD 19
|
||||
#define BMOD_1_TO_MOD_1_THRESHOLD 17
|
||||
|
||||
#define MUL_TOOM22_THRESHOLD 28
|
||||
#define MUL_TOOM22_THRESHOLD 27
|
||||
#define MUL_TOOM33_THRESHOLD 81
|
||||
#define MUL_TOOM44_THRESHOLD 120
|
||||
#define MUL_TOOM6H_THRESHOLD 466
|
||||
#define MUL_TOOM8H_THRESHOLD 478
|
||||
#define MUL_TOOM44_THRESHOLD 242
|
||||
#define MUL_TOOM6H_THRESHOLD 369
|
||||
#define MUL_TOOM8H_THRESHOLD 482
|
||||
|
||||
#define MUL_TOOM32_TO_TOOM43_THRESHOLD 97
|
||||
#define MUL_TOOM32_TO_TOOM53_THRESHOLD 160
|
||||
#define MUL_TOOM42_TO_TOOM53_THRESHOLD 160
|
||||
#define MUL_TOOM42_TO_TOOM63_THRESHOLD 211
|
||||
#define MUL_TOOM32_TO_TOOM53_THRESHOLD 153
|
||||
#define MUL_TOOM42_TO_TOOM53_THRESHOLD 113
|
||||
#define MUL_TOOM42_TO_TOOM63_THRESHOLD 187
|
||||
#define MUL_TOOM43_TO_TOOM54_THRESHOLD 166
|
||||
|
||||
#define SQR_BASECASE_THRESHOLD 0 /* always (native) */
|
||||
#define SQR_TOOM2_THRESHOLD 34
|
||||
#define SQR_TOOM3_THRESHOLD 117
|
||||
#define SQR_TOOM4_THRESHOLD 512
|
||||
#define SQR_TOOM6_THRESHOLD 686
|
||||
#define SQR_TOOM8_THRESHOLD 686
|
||||
#define SQR_TOOM3_THRESHOLD 115
|
||||
#define SQR_TOOM4_THRESHOLD 527
|
||||
#define SQR_TOOM6_THRESHOLD 587
|
||||
#define SQR_TOOM8_THRESHOLD 0 /* always */
|
||||
|
||||
#define MULMOD_BNM1_THRESHOLD 17
|
||||
#define SQRMOD_BNM1_THRESHOLD 17
|
||||
#define MULMID_TOOM42_THRESHOLD 36
|
||||
|
||||
#define MUL_FFT_MODF_THRESHOLD 570 /* k = 5 */
|
||||
#define MULMOD_BNM1_THRESHOLD 18
|
||||
#define SQRMOD_BNM1_THRESHOLD 19
|
||||
|
||||
#define MUL_FFT_MODF_THRESHOLD 642 /* k = 5 */
|
||||
#define MUL_FFT_TABLE3 \
|
||||
{ { 570, 5}, { 21, 6}, { 11, 5}, { 23, 6}, \
|
||||
{ 25, 7}, { 13, 6}, { 27, 7}, { 15, 6}, \
|
||||
|
@ -109,9 +112,9 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
|
|||
{ 524288,20}, {1048576,21}, {2097152,22}, {4194304,23}, \
|
||||
{8388608,24} }
|
||||
#define MUL_FFT_TABLE3_SIZE 185
|
||||
#define MUL_FFT_THRESHOLD 7552
|
||||
#define MUL_FFT_THRESHOLD 11520
|
||||
|
||||
#define SQR_FFT_MODF_THRESHOLD 460 /* k = 5 */
|
||||
#define SQR_FFT_MODF_THRESHOLD 565 /* k = 5 */
|
||||
#define SQR_FFT_TABLE3 \
|
||||
{ { 460, 5}, { 21, 6}, { 11, 5}, { 23, 6}, \
|
||||
{ 12, 5}, { 25, 6}, { 27, 7}, { 14, 6}, \
|
||||
|
@ -165,38 +168,45 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
|
|||
{ 131072,18}, { 262144,19}, { 524288,20}, {1048576,21}, \
|
||||
{2097152,22}, {4194304,23}, {8388608,24} }
|
||||
#define SQR_FFT_TABLE3_SIZE 203
|
||||
#define SQR_FFT_THRESHOLD 5248
|
||||
#define SQR_FFT_THRESHOLD 5568
|
||||
|
||||
#define MULLO_BASECASE_THRESHOLD 9
|
||||
#define MULLO_DC_THRESHOLD 29
|
||||
#define MULLO_MUL_N_THRESHOLD 14709
|
||||
#define MULLO_BASECASE_THRESHOLD 0 /* always */
|
||||
#define MULLO_DC_THRESHOLD 63
|
||||
#define MULLO_MUL_N_THRESHOLD 22239
|
||||
|
||||
#define DC_DIV_QR_THRESHOLD 56
|
||||
#define DC_DIVAPPR_Q_THRESHOLD 270
|
||||
#define DC_BDIV_QR_THRESHOLD 52
|
||||
#define DC_BDIV_Q_THRESHOLD 152
|
||||
#define DC_DIV_QR_THRESHOLD 40
|
||||
#define DC_DIVAPPR_Q_THRESHOLD 252
|
||||
#define DC_BDIV_QR_THRESHOLD 38
|
||||
#define DC_BDIV_Q_THRESHOLD 168
|
||||
|
||||
#define INV_MULMOD_BNM1_THRESHOLD 174
|
||||
#define INV_NEWTON_THRESHOLD 252
|
||||
#define INV_APPR_THRESHOLD 250
|
||||
#define INV_MULMOD_BNM1_THRESHOLD 67
|
||||
#define INV_NEWTON_THRESHOLD 246
|
||||
#define INV_APPR_THRESHOLD 236
|
||||
|
||||
#define BINV_NEWTON_THRESHOLD 345
|
||||
#define REDC_1_TO_REDC_2_THRESHOLD 50
|
||||
#define REDC_2_TO_REDC_N_THRESHOLD 79
|
||||
#define BINV_NEWTON_THRESHOLD 252
|
||||
#define REDC_1_TO_REDC_2_THRESHOLD 11
|
||||
#define REDC_2_TO_REDC_N_THRESHOLD 84
|
||||
|
||||
#define MU_DIV_QR_THRESHOLD 1787
|
||||
#define MU_DIVAPPR_Q_THRESHOLD 1787
|
||||
#define MUPI_DIV_QR_THRESHOLD 106
|
||||
#define MU_BDIV_QR_THRESHOLD 1620
|
||||
#define MU_DIV_QR_THRESHOLD 1932
|
||||
#define MU_DIVAPPR_Q_THRESHOLD 1895
|
||||
#define MUPI_DIV_QR_THRESHOLD 99
|
||||
#define MU_BDIV_QR_THRESHOLD 1528
|
||||
#define MU_BDIV_Q_THRESHOLD 1787
|
||||
|
||||
#define MATRIX22_STRASSEN_THRESHOLD 17
|
||||
#define HGCD_THRESHOLD 139
|
||||
#define GCD_DC_THRESHOLD 501
|
||||
#define GCDEXT_DC_THRESHOLD 474
|
||||
#define JACOBI_BASE_METHOD 1
|
||||
#define POWM_SEC_TABLE 3,35,322,1926
|
||||
|
||||
#define GET_STR_DC_THRESHOLD 17
|
||||
#define GET_STR_PRECOMPUTE_THRESHOLD 23
|
||||
#define MATRIX22_STRASSEN_THRESHOLD 21
|
||||
#define HGCD_THRESHOLD 140
|
||||
#define HGCD_APPR_THRESHOLD 190
|
||||
#define HGCD_REDUCE_THRESHOLD 4120
|
||||
#define GCD_DC_THRESHOLD 606
|
||||
#define GCDEXT_DC_THRESHOLD 492
|
||||
#define JACOBI_BASE_METHOD 4
|
||||
|
||||
#define GET_STR_DC_THRESHOLD 18
|
||||
#define GET_STR_PRECOMPUTE_THRESHOLD 32
|
||||
#define SET_STR_DC_THRESHOLD 266
|
||||
#define SET_STR_PRECOMPUTE_THRESHOLD 1648
|
||||
#define SET_STR_PRECOMPUTE_THRESHOLD 2105
|
||||
|
||||
#define FAC_DSC_THRESHOLD 1474
|
||||
#define FAC_ODD_THRESHOLD 24
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,164 +0,0 @@
|
|||
/* mp-h.in -- Definitions for the GNU multiple precision library -*-mode:c-*-
|
||||
BSD mp compatible functions.
|
||||
|
||||
Copyright 1991, 1993, 1994, 1995, 1996, 2000, 2001, 2002, 2004 Free Software
|
||||
Foundation, Inc.
|
||||
|
||||
This file is part of the GNU MP Library.
|
||||
|
||||
The GNU MP Library is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or (at your
|
||||
option) any later version.
|
||||
|
||||
The GNU MP Library is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||
License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
|
||||
|
||||
#ifndef __MP_H__
|
||||
|
||||
|
||||
/* The following (everything under ifndef __GNU_MP__) must be identical in
|
||||
gmp.h and mp.h to allow both to be included in an application or during
|
||||
the library build. Use the t-gmp-mp-h.pl script to check. */
|
||||
#ifndef __GNU_MP__
|
||||
#define __GNU_MP__ 5
|
||||
|
||||
#define __need_size_t /* tell gcc stddef.h we only want size_t */
|
||||
#if defined (__cplusplus)
|
||||
#include <cstddef> /* for size_t */
|
||||
#else
|
||||
#include <stddef.h> /* for size_t */
|
||||
#endif
|
||||
#undef __need_size_t
|
||||
|
||||
/* The following instantiated by configure, for internal use only */
|
||||
#if ! defined (__GMP_WITHIN_CONFIGURE)
|
||||
/* #undef _LONG_LONG_LIMB */
|
||||
#define __GMP_LIBGMP_DLL 0
|
||||
#endif
|
||||
|
||||
#if defined (__STDC__) \
|
||||
|| defined (__cplusplus) \
|
||||
|| defined (_AIX) \
|
||||
|| defined (__DECC) \
|
||||
|| (defined (__mips) && defined (_SYSTYPE_SVR4)) \
|
||||
|| defined (_MSC_VER) \
|
||||
|| defined (_WIN32)
|
||||
#define __GMP_HAVE_CONST 1
|
||||
#define __GMP_HAVE_PROTOTYPES 1
|
||||
#define __GMP_HAVE_TOKEN_PASTE 1
|
||||
#else
|
||||
#define __GMP_HAVE_CONST 0
|
||||
#define __GMP_HAVE_PROTOTYPES 0
|
||||
#define __GMP_HAVE_TOKEN_PASTE 0
|
||||
#endif
|
||||
|
||||
|
||||
#if __GMP_HAVE_CONST
|
||||
#define __gmp_const const
|
||||
#define __gmp_signed signed
|
||||
#else
|
||||
#define __gmp_const
|
||||
#define __gmp_signed
|
||||
#endif
|
||||
|
||||
#if defined (__GNUC__)
|
||||
#define __GMP_DECLSPEC_EXPORT __declspec(__dllexport__)
|
||||
#define __GMP_DECLSPEC_IMPORT __declspec(__dllimport__)
|
||||
#endif
|
||||
#if defined (_MSC_VER) || defined (__BORLANDC__)
|
||||
#define __GMP_DECLSPEC_EXPORT __declspec(dllexport)
|
||||
#define __GMP_DECLSPEC_IMPORT __declspec(dllimport)
|
||||
#endif
|
||||
#ifdef __WATCOMC__
|
||||
#define __GMP_DECLSPEC_EXPORT __export
|
||||
#define __GMP_DECLSPEC_IMPORT __import
|
||||
#endif
|
||||
#ifdef __IBMC__
|
||||
#define __GMP_DECLSPEC_EXPORT _Export
|
||||
#define __GMP_DECLSPEC_IMPORT _Import
|
||||
#endif
|
||||
|
||||
#if __GMP_LIBGMP_DLL
|
||||
#if __GMP_WITHIN_GMP
|
||||
#define __GMP_DECLSPEC __GMP_DECLSPEC_EXPORT
|
||||
#else
|
||||
#define __GMP_DECLSPEC __GMP_DECLSPEC_IMPORT
|
||||
#endif
|
||||
#else
|
||||
#define __GMP_DECLSPEC
|
||||
#endif
|
||||
|
||||
#ifdef __GMP_SHORT_LIMB
|
||||
typedef unsigned int mp_limb_t;
|
||||
typedef int mp_limb_signed_t;
|
||||
#else
|
||||
#ifdef _LONG_LONG_LIMB
|
||||
typedef unsigned long long int mp_limb_t;
|
||||
typedef long long int mp_limb_signed_t;
|
||||
#else
|
||||
typedef unsigned long int mp_limb_t;
|
||||
typedef long int mp_limb_signed_t;
|
||||
#endif
|
||||
#endif
|
||||
typedef unsigned long int mp_bitcnt_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int _mp_alloc; /* Number of *limbs* allocated and pointed
|
||||
to by the _mp_d field. */
|
||||
int _mp_size; /* abs(_mp_size) is the number of limbs the
|
||||
last field points to. If _mp_size is
|
||||
negative this is a negative number. */
|
||||
mp_limb_t *_mp_d; /* Pointer to the limbs. */
|
||||
} __mpz_struct;
|
||||
|
||||
#endif /* __GNU_MP__ */
|
||||
|
||||
/* User-visible types. */
|
||||
typedef __mpz_struct MINT;
|
||||
|
||||
|
||||
#if __GMP_HAVE_PROTOTYPES
|
||||
#define __GMP_PROTO(x) x
|
||||
#else
|
||||
#define __GMP_PROTO(x) ()
|
||||
#endif
|
||||
|
||||
#if defined (__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define mp_set_memory_functions __gmp_set_memory_functions
|
||||
__GMP_DECLSPEC void mp_set_memory_functions __GMP_PROTO ((void *(*) (size_t),
|
||||
void *(*) (void *, size_t, size_t),
|
||||
void (*) (void *, size_t)));
|
||||
__GMP_DECLSPEC MINT *itom __GMP_PROTO ((signed short int));
|
||||
__GMP_DECLSPEC MINT *xtom __GMP_PROTO ((const char *));
|
||||
__GMP_DECLSPEC void move __GMP_PROTO ((const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void madd __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void msub __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void mult __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void mdiv __GMP_PROTO ((const MINT *, const MINT *, MINT *, MINT *));
|
||||
__GMP_DECLSPEC void sdiv __GMP_PROTO ((const MINT *, signed short int, MINT *, signed short int *));
|
||||
__GMP_DECLSPEC void msqrt __GMP_PROTO ((const MINT *, MINT *, MINT *));
|
||||
__GMP_DECLSPEC void pow __GMP_PROTO ((const MINT *, const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC void rpow __GMP_PROTO ((const MINT *, signed short int, MINT *));
|
||||
__GMP_DECLSPEC void gcd __GMP_PROTO ((const MINT *, const MINT *, MINT *));
|
||||
__GMP_DECLSPEC int mcmp __GMP_PROTO ((const MINT *, const MINT *));
|
||||
__GMP_DECLSPEC void min __GMP_PROTO ((MINT *));
|
||||
__GMP_DECLSPEC void mout __GMP_PROTO ((const MINT *));
|
||||
__GMP_DECLSPEC char *mtox __GMP_PROTO ((const MINT *));
|
||||
__GMP_DECLSPEC void mfree __GMP_PROTO ((MINT *));
|
||||
|
||||
#if defined (__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#define __MP_H__
|
||||
#endif /* __MP_H__ */
|
Loading…
Reference in New Issue