VM: munmap used by VM for itself is no longer used
[minix.git] / external / lgpl3 / gmp / lib / libgmp / arch / x86_64 / Makefile.inc
blobff7298e709ed29f7793fa0db3ad732aceab1db98
1 #       $NetBSD: Makefile.inc,v 1.3 2011/07/03 06:43:17 mrg Exp $
3 SRCS+= \
4         random.c \
5         toom_interpolate_7pts.c \
6         sbpi1_divappr_q.c \
7         random2.c \
8         mu_bdiv_q.c \
9         toom32_mul.c \
10         toom44_mul.c \
11         toom8h_mul.c \
12         toom2_sqr.c \
13         zero.c \
14         gcdext.c \
15         binvert.c \
16         mu_div_q.c \
17         invertappr.c \
18         dump.c \
19         dcpi1_div_qr.c \
20         mu_divappr_q.c \
21         redc_1_sec.c \
22         toom6_sqr.c \
23         mod_1.c \
24         divexact.c \
25         powlo.c \
26         mul.c \
27         set_str.c \
28         toom42_mul.c \
29         toom_interpolate_6pts.c \
30         dcpi1_divappr_q.c \
31         toom_eval_dgr3_pm2.c \
32         mod_1_3.c \
33         toom_couple_handling.c \
34         add.c \
35         toom_interpolate_12pts.c \
36         perfsqr.c \
37         toom53_mul.c \
38         toom_eval_pm2exp.c \
39         toom_interpolate_16pts.c \
40         mu_div_qr.c \
41         bdiv_q.c \
42         toom22_mul.c \
43         toom4_sqr.c \
44         div_q.c \
45         jacbase.c \
46         gcdext_subdiv_step.c \
47         mullo_n.c \
48         toom33_mul.c \
49         toom_eval_dgr3_pm1.c \
50         mod_1_2.c \
51         sub_1.c \
52         trialdiv.c \
53         add_1.c \
54         toom_interpolate_5pts.c \
55         sbpi1_bdiv_q.c \
56         pre_mod_1.c \
57         hgcd.c \
58         sqrtrem.c \
59         gcdext_1.c \
60         toom63_mul.c \
61         toom8_sqr.c \
62         neg.c \
63         gcdext_lehmer.c \
64         divis.c \
65         dcpi1_div_q.c \
66         subcnd_n.c \
67         toom_eval_pm2.c \
68         hgcd2.c \
69         toom62_mul.c \
70         sbpi1_bdiv_qr.c \
71         scan1.c \
72         perfpow.c \
73         get_str.c \
74         mullo_basecase.c \
75         mulmod_bnm1.c \
76         tdiv_qr.c \
77         toom43_mul.c \
78         mod_1_1.c \
79         matrix22_mul.c \
80         powm_sec.c \
81         divrem.c \
82         mul_n.c \
83         dcpi1_bdiv_qr.c \
84         redc_2.c \
85         toom6h_mul.c \
86         mul_fft.c \
87         sqrmod_bnm1.c \
88         powm.c \
89         rootrem.c \
90         toom_interpolate_8pts.c \
91         remove.c \
92         cmp.c \
93         toom_eval_pm1.c \
94         scan0.c \
95         gcd_subdiv_step.c \
96         sbpi1_div_qr.c \
97         invert.c \
98         sub.c \
99         toom_eval_pm2rexp.c \
100         dcpi1_bdiv_q.c \
101         sqr.c \
102         nussbaumer_mul.c \
103         pow_1.c \
104         gcd_lehmer.c \
105         mu_bdiv_qr.c \
106         get_d.c \
107         toom52_mul.c \
108         sbpi1_div_q.c \
109         diveby3.c \
110         fib2_ui.c \
111         bdiv_qr.c \
112         toom3_sqr.c \
113         gcd.c \
114         redc_n.c \
116 ASM_SRCS_LIST= \
117         nand_n.asm              mpn/x86_64/logops_n.asm \
118         rsh1sub_n.asm           mpn/x86_64/rsh1aors_n.asm \
119         add_n.asm               mpn/x86_64/aors_n.asm \
120         rsh1add_n.asm           mpn/x86_64/rsh1aors_n.asm \
121         sqr_basecase.asm        mpn/x86_64/sqr_basecase.asm \
122         rsblsh2_n.asm           mpn/x86_64/aorrlsh2_n.asm \
123         sublsh1_n.asm           mpn/x86_64/sublsh1_n.asm \
124         bdiv_q_1.asm            mpn/x86_64/bdiv_q_1.asm \
125         addaddmul_1msb0.asm     mpn/x86_64/addaddmul_1msb0.asm \
126         xor_n.asm               mpn/x86_64/logops_n.asm \
127         rsblsh_n.asm            mpn/x86_64/aorrlsh_n.asm \
128         addmul_2.asm            mpn/x86_64/addmul_2.asm \
129         submul_1.asm            mpn/x86_64/aorsmul_1.asm \
130         nior_n.asm              mpn/x86_64/logops_n.asm \
131         mul_basecase.asm        mpn/x86_64/mul_basecase.asm \
132         lshift.asm              mpn/x86_64/lshift.asm \
133         and_n.asm               mpn/x86_64/logops_n.asm \
134         hamdist.asm             mpn/x86_64/popham.asm \
135         mul_1.asm               mpn/x86_64/mul_1.asm \
136         addlsh2_n.asm           mpn/x86_64/aorrlsh2_n.asm \
137         divrem_1.asm            mpn/x86_64/divrem_1.asm \
138         copyd.asm               mpn/x86_64/copyd.asm \
139         bdiv_dbm1c.asm          mpn/x86_64/bdiv_dbm1c.asm \
140         rsblsh1_n.asm           mpn/x86_64/aorrlsh1_n.asm \
141         dive_1.asm              mpn/x86_64/dive_1.asm \
142         andn_n.asm              mpn/x86_64/logops_n.asm \
143         com.asm                 mpn/x86_64/com.asm \
144         copyi.asm               mpn/x86_64/copyi.asm \
145         rshift.asm              mpn/x86_64/rshift.asm \
146         addlsh_n.asm            mpn/x86_64/aorrlsh_n.asm \
147         iorn_n.asm              mpn/x86_64/logops_n.asm \
148         ior_n.asm               mpn/x86_64/logops_n.asm \
149         mod_34lsub1.asm         mpn/x86_64/mod_34lsub1.asm \
150         popcount.asm            mpn/x86_64/popham.asm \
151         xnor_n.asm              mpn/x86_64/logops_n.asm \
152         lshiftc.asm             mpn/x86_64/lshiftc.asm \
153         mode1o.asm              mpn/x86_64/mode1o.asm \
154         addlsh1_n.asm           mpn/x86_64/aorrlsh1_n.asm \
155         mul_2.asm               mpn/x86_64/mul_2.asm \
156         invert_limb.asm         mpn/x86_64/invert_limb.asm \
157         addmul_1.asm            mpn/x86_64/aorsmul_1.asm \
158         divrem_2.asm            mpn/x86_64/divrem_2.asm \
159         sub_n.asm               mpn/x86_64/aors_n.asm \
161 # XXX using C versions
162 #       redc_1.asm              mpn/x86_64/redc_1.asm
163 #       gcd_1.asm               mpn/x86_64/gcd_1.asm
164 #       mod_1_4.asm             mpn/x86_64/mod_1_4.asm
165 SRCS+=  redc_1.c gcd_1.c mod_1_4.c
167 gen-trialdivtab: gen-trialdivtab.c
168         ${HOST_CC} -o ${.OBJDIR}/gen-trialdivtab ${.ALLSRC} -lm
170 # XXX
171 GMP_LIMB_BITS=64
173 trialdiv.c: trialdivtab.h
174 trialdivtab.h: gen-trialdivtab
175         ${.OBJDIR}/gen-trialdivtab $(GMP_LIMB_BITS) 8000 > ${.OBJDIR}/trialdivtab.h
177 CLEANFILES+=    trialdivtab.h
179 # XXX stuff looks for "../config.m4"
180 dummy:
181         mkdir dummy
182 ${.OBJDIR}/config.m4: ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4
183         cp ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4 ${.TARGET}
185 .for _build _src in ${ASM_SRCS_LIST}
186 ${_build:R}.s: Makefile dummy ${.OBJDIR}/config.m4
187         ${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} -I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn -DOPERATION_${.TARGET:R} ${DIST}/${_src} > ${.TARGET}
189 SRCS+=          ${_build:R}.s
190 CLEANFILES+=    ${_build:R}.s
192 .endfor