2013-12-06 12:04:52 +01:00
|
|
|
# $NetBSD: Makefile.inc,v 1.5 2013/11/29 08:03:43 mrg Exp $
|
2012-06-25 11:15:27 +02:00
|
|
|
|
|
|
|
SRCS+= \
|
|
|
|
random.c \
|
|
|
|
toom_interpolate_7pts.c \
|
2013-12-06 12:04:52 +01:00
|
|
|
divrem_2.c \
|
2012-06-25 11:15:27 +02:00
|
|
|
sbpi1_divappr_q.c \
|
|
|
|
random2.c \
|
|
|
|
mu_bdiv_q.c \
|
2013-12-06 12:04:52 +01:00
|
|
|
mulmid_basecase.c \
|
|
|
|
jacobi_2.c \
|
2012-06-25 11:15:27 +02:00
|
|
|
toom32_mul.c \
|
|
|
|
toom44_mul.c \
|
|
|
|
toom8h_mul.c \
|
|
|
|
toom2_sqr.c \
|
|
|
|
zero.c \
|
|
|
|
mod_1_4.c \
|
|
|
|
gcdext.c \
|
2013-12-06 12:04:52 +01:00
|
|
|
add_err3_n.c \
|
2012-06-25 11:15:27 +02:00
|
|
|
binvert.c \
|
|
|
|
mu_div_q.c \
|
|
|
|
invertappr.c \
|
2013-12-06 12:04:52 +01:00
|
|
|
add_n_sub_n.c \
|
2012-06-25 11:15:27 +02:00
|
|
|
dump.c \
|
|
|
|
mu_divappr_q.c \
|
|
|
|
dcpi1_div_qr.c \
|
2013-12-06 12:04:52 +01:00
|
|
|
hgcd_reduce.c \
|
|
|
|
matrix22_mul1_inverse_vector.c \
|
|
|
|
tabselect.c \
|
2012-06-25 11:15:27 +02:00
|
|
|
toom6_sqr.c \
|
|
|
|
divrem_1.c \
|
2013-12-06 12:04:52 +01:00
|
|
|
hgcd_step.c \
|
|
|
|
sub_err3_n.c \
|
2012-06-25 11:15:27 +02:00
|
|
|
mod_1.c \
|
2013-12-06 12:04:52 +01:00
|
|
|
toom42_mulmid.c \
|
2012-06-25 11:15:27 +02:00
|
|
|
divexact.c \
|
2013-12-06 12:04:52 +01:00
|
|
|
jacobi.c \
|
2012-06-25 11:15:27 +02:00
|
|
|
powlo.c \
|
|
|
|
mul.c \
|
|
|
|
set_str.c \
|
|
|
|
toom42_mul.c \
|
|
|
|
toom_interpolate_6pts.c \
|
2013-12-06 12:04:52 +01:00
|
|
|
toom54_mul.c \
|
2012-06-25 11:15:27 +02:00
|
|
|
dcpi1_divappr_q.c \
|
|
|
|
copyd.c \
|
|
|
|
toom_eval_dgr3_pm2.c \
|
|
|
|
mod_1_3.c \
|
|
|
|
com.c \
|
|
|
|
copyi.c \
|
|
|
|
toom_couple_handling.c \
|
|
|
|
add.c \
|
2013-12-06 12:04:52 +01:00
|
|
|
div_qr_2.c \
|
2012-06-25 11:15:27 +02:00
|
|
|
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 \
|
2013-12-06 12:04:52 +01:00
|
|
|
bsqrtinv.c \
|
2012-06-25 11:15:27 +02:00
|
|
|
toom4_sqr.c \
|
|
|
|
div_q.c \
|
|
|
|
jacbase.c \
|
2013-12-06 12:04:52 +01:00
|
|
|
addcnd_n.c \
|
|
|
|
hgcd_matrix.c \
|
2012-06-25 11:15:27 +02:00
|
|
|
mullo_n.c \
|
|
|
|
toom33_mul.c \
|
|
|
|
toom_eval_dgr3_pm1.c \
|
|
|
|
mod_1_2.c \
|
|
|
|
sub_1.c \
|
2013-12-06 12:04:52 +01:00
|
|
|
add_err2_n.c \
|
2012-06-25 11:15:27 +02:00
|
|
|
trialdiv.c \
|
|
|
|
add_1.c \
|
|
|
|
sqr_basecase.c \
|
|
|
|
toom_interpolate_5pts.c \
|
|
|
|
sbpi1_bdiv_q.c \
|
|
|
|
pre_mod_1.c \
|
|
|
|
hgcd.c \
|
|
|
|
bdiv_dbm1c.c \
|
|
|
|
sqrtrem.c \
|
|
|
|
bdiv_q_1.c \
|
|
|
|
gcdext_1.c \
|
|
|
|
toom63_mul.c \
|
2013-12-06 12:04:52 +01:00
|
|
|
div_qr_2u_pi1.c \
|
2012-06-25 11:15:27 +02:00
|
|
|
mul_basecase.c \
|
|
|
|
toom8_sqr.c \
|
|
|
|
neg.c \
|
|
|
|
udiv_w_sdiv.c \
|
|
|
|
gcdext_lehmer.c \
|
|
|
|
divis.c \
|
|
|
|
dcpi1_div_q.c \
|
|
|
|
toom_eval_pm2.c \
|
2013-12-06 12:04:52 +01:00
|
|
|
subcnd_n.c \
|
2012-06-25 11:15:27 +02:00
|
|
|
hgcd2.c \
|
|
|
|
toom62_mul.c \
|
2013-12-06 12:04:52 +01:00
|
|
|
comb_tables.c \
|
2012-06-25 11:15:27 +02:00
|
|
|
sbpi1_bdiv_qr.c \
|
2013-12-06 12:04:52 +01:00
|
|
|
sub_err2_n.c \
|
2012-06-25 11:15:27 +02:00
|
|
|
scan1.c \
|
2013-12-06 12:04:52 +01:00
|
|
|
brootinv.c \
|
2012-06-25 11:15:27 +02:00
|
|
|
pre_divrem_1.c \
|
|
|
|
perfpow.c \
|
|
|
|
get_str.c \
|
|
|
|
mulmod_bnm1.c \
|
2013-12-06 12:04:52 +01:00
|
|
|
mullo_basecase.c \
|
2012-06-25 11:15:27 +02:00
|
|
|
tdiv_qr.c \
|
2013-12-06 12:04:52 +01:00
|
|
|
div_qr_2n_pi1.c \
|
2012-06-25 11:15:27 +02:00
|
|
|
toom43_mul.c \
|
|
|
|
mod_1_1.c \
|
|
|
|
matrix22_mul.c \
|
|
|
|
powm_sec.c \
|
|
|
|
divrem.c \
|
2013-12-06 12:04:52 +01:00
|
|
|
bsqrt.c \
|
2012-06-25 11:15:27 +02:00
|
|
|
gcd_1.c \
|
|
|
|
dcpi1_bdiv_qr.c \
|
|
|
|
mul_n.c \
|
|
|
|
redc_2.c \
|
|
|
|
toom6h_mul.c \
|
|
|
|
sqrmod_bnm1.c \
|
2013-12-06 12:04:52 +01:00
|
|
|
mul_fft.c \
|
|
|
|
mulmid.c \
|
2012-06-25 11:15:27 +02:00
|
|
|
powm.c \
|
|
|
|
rootrem.c \
|
|
|
|
mode1o.c \
|
|
|
|
toom_interpolate_8pts.c \
|
|
|
|
remove.c \
|
|
|
|
lshiftc.c \
|
|
|
|
dive_1.c \
|
|
|
|
cmp.c \
|
|
|
|
toom_eval_pm1.c \
|
2013-12-06 12:04:52 +01:00
|
|
|
hgcd_appr.c \
|
2012-06-25 11:15:27 +02:00
|
|
|
scan0.c \
|
|
|
|
gcd_subdiv_step.c \
|
|
|
|
sbpi1_div_qr.c \
|
|
|
|
invert.c \
|
|
|
|
sub.c \
|
|
|
|
toom_eval_pm2rexp.c \
|
2013-12-06 12:04:52 +01:00
|
|
|
broot.c \
|
2012-06-25 11:15:27 +02:00
|
|
|
dcpi1_bdiv_q.c \
|
2013-12-06 12:04:52 +01:00
|
|
|
hgcd2_jacobi.c \
|
|
|
|
add_err1_n.c \
|
|
|
|
mulmid_n.c \
|
2012-06-25 11:15:27 +02:00
|
|
|
redc_1.c \
|
|
|
|
sqr.c \
|
|
|
|
nussbaumer_mul.c \
|
|
|
|
mu_bdiv_qr.c \
|
|
|
|
pow_1.c \
|
|
|
|
get_d.c \
|
|
|
|
toom52_mul.c \
|
|
|
|
sbpi1_div_q.c \
|
|
|
|
diveby3.c \
|
|
|
|
fib2_ui.c \
|
|
|
|
bdiv_qr.c \
|
2013-12-06 12:04:52 +01:00
|
|
|
hgcd_jacobi.c \
|
2012-06-25 11:15:27 +02:00
|
|
|
toom3_sqr.c \
|
|
|
|
gcd.c \
|
|
|
|
redc_n.c \
|
2013-12-06 12:04:52 +01:00
|
|
|
sub_err1_n.c \
|
2012-06-25 11:15:27 +02:00
|
|
|
|
|
|
|
C_SRCS_LIST= \
|
2013-12-06 12:04:52 +01:00
|
|
|
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 \
|
2012-06-25 11:15:27 +02:00
|
|
|
|
|
|
|
ASM_SRCS_LIST= \
|
2013-12-06 12:04:52 +01:00
|
|
|
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 \
|
2012-06-25 11:15:27 +02:00
|
|
|
|
|
|
|
# XXX can't build these asm sources yet
|
2013-12-06 12:04:52 +01:00
|
|
|
#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 \
|
2012-06-25 11:15:27 +02:00
|
|
|
|
|
|
|
gen-trialdivtab: gen-trialdivtab.c
|
|
|
|
${HOST_CC} -o ${.OBJDIR}/gen-trialdivtab ${.ALLSRC} -lm
|
|
|
|
|
|
|
|
GMP_LIMB_BITS=32
|
|
|
|
|
|
|
|
DPSRCS+=trialdivtab.h
|
|
|
|
trialdivtab.h: gen-trialdivtab
|
|
|
|
${.OBJDIR}/gen-trialdivtab $(GMP_LIMB_BITS) 8000 > ${.OBJDIR}/trialdivtab.h
|
|
|
|
|
|
|
|
CLEANFILES+= trialdivtab.h
|