Home
last modified time | relevance | path

Searched refs:mpn_sub_n (Results 1 – 25 of 182) sorted by relevance

12345678

/netbsd/external/lgpl3/gmp/dist/mpn/generic/
H A Dtoom_interpolate_6pts.c111 mpn_sub_n (w2, w1, w2, 2 * n + 1); in mpn_toom_interpolate_6pts()
115 w1[2*n] -= mpn_sub_n (w1, w1, w5, 2*n); in mpn_toom_interpolate_6pts()
122 mpn_sub_n (w1, w1, w2, 2 * n + 1); in mpn_toom_interpolate_6pts()
141 mpn_sub_n (w4, w3, w4, 2 * n + 1); in mpn_toom_interpolate_6pts()
147 mpn_sub_n (w2, w2, w4, 2 * n + 1); in mpn_toom_interpolate_6pts()
151 mpn_sub_n (w3, w3, w4, 2 * n + 1); in mpn_toom_interpolate_6pts()
152 w3[2 * n] -= mpn_sub_n (w3, w3, w5, 2 * n); in mpn_toom_interpolate_6pts()
155 mpn_sub_n (w1, w1, w3, 2 * n + 1); in mpn_toom_interpolate_6pts()
191 cy+= mpn_sub_n(w2, w2, w4, w0n); in mpn_toom_interpolate_6pts()
196 cy = mpn_sub_n (pp + n, pp + n, w2, n); in mpn_toom_interpolate_6pts()
[all …]
H A Dtoom_interpolate_5pts.c65 ASSERT_NOCARRY (mpn_sub_n (v2, v2, vm1, kk1)); in mpn_toom_interpolate_5pts()
95 ASSERT_NOCARRY (mpn_sub_n (vm1, v1, vm1, kk1)); in mpn_toom_interpolate_5pts()
106 vinf[0] -= mpn_sub_n (v1, v1, c, twok); in mpn_toom_interpolate_5pts()
117 ASSERT_NOCARRY (mpn_sub_n (v2, v2, v1, kk1)); in mpn_toom_interpolate_5pts()
127 ASSERT_NOCARRY (mpn_sub_n (v1, v1, vm1, kk1)); in mpn_toom_interpolate_5pts()
143 cy += mpn_sub_n (v2, v2, vm1, twor); in mpn_toom_interpolate_5pts()
176 cy = mpn_sub_n (v1, v1, vinf, twor); /* vinf is at most twor long. */ in mpn_toom_interpolate_5pts()
184 cy = mpn_sub_n (c1, c1, v2, k); in mpn_toom_interpolate_5pts()
H A Dtoom_interpolate_7pts.c163 mpn_sub_n (w1, w4, w1, m); ASSERT (!(w1[0] & 1)); in mpn_toom_interpolate_7pts()
168 mpn_sub_n (w4, w4, w1, m); ASSERT (!(w4[0] & 3)); in mpn_toom_interpolate_7pts()
188 mpn_sub_n (w3, w2, w3, m); ASSERT (!(w3[0] & 1)); in mpn_toom_interpolate_7pts()
193 mpn_sub_n (w2, w2, w3, m); in mpn_toom_interpolate_7pts()
201 mpn_sub_n (w4, w4, w2, m); in mpn_toom_interpolate_7pts()
204 mpn_sub_n (w2, w2, w4, m); in mpn_toom_interpolate_7pts()
206 mpn_sub_n (w1, w5, w1, m); in mpn_toom_interpolate_7pts()
208 mpn_sub_n (w5, w5, tp, m); in mpn_toom_interpolate_7pts()
210 mpn_sub_n (w3, w3, w5, m); in mpn_toom_interpolate_7pts()
221 mpn_sub_n (w5, w5, w1, m); in mpn_toom_interpolate_7pts()
H A Dtoom22_mul.c124 mpn_sub_n (asm1, a1, a0, n); in mpn_toom22_mul()
129 mpn_sub_n (asm1, a0, a1, n); in mpn_toom22_mul()
136 mpn_sub_n (asm1, a1, a0, s); in mpn_toom22_mul()
142 asm1[s] = a0[s] - mpn_sub_n (asm1, a0, a1, s); in mpn_toom22_mul()
151 mpn_sub_n (bsm1, b1, b0, n); in mpn_toom22_mul()
156 mpn_sub_n (bsm1, b0, b1, n); in mpn_toom22_mul()
163 mpn_sub_n (bsm1, b1, b0, t); in mpn_toom22_mul()
199 cy -= mpn_sub_n (pp + n, pp + n, vm1, 2 * n); in mpn_toom22_mul()
H A Dtoom_interpolate_8pts.c84 return __cy + mpn_sub_n (dst,dst,ws,n); in DO_mpn_sublsh_n()
150 r7[3*n] -= mpn_sub_n (r7+n, r7+n, pp, 2 * n); in mpn_toom_interpolate_8pts()
151 cy = mpn_sub_n (r7, r7, r1, spt); in mpn_toom_interpolate_8pts()
154 ASSERT_NOCARRY(mpn_sub_n (r3, r3, r5, 3 * n + 1)); in mpn_toom_interpolate_8pts()
157 ASSERT_NOCARRY(mpn_sub_n (r5, r5, r7, 3 * n + 1)); in mpn_toom_interpolate_8pts()
159 ASSERT_NOCARRY(mpn_sub_n (r3, r3, r5, 3 * n + 1)); in mpn_toom_interpolate_8pts()
185 cy-= mpn_sub_n (pp + n, pp + n, r5, n); in mpn_toom_interpolate_8pts()
196 cy-= mpn_sub_n (pp + 3*n, pp + 3*n, r5 + 2*n, n+1); /* Hr7-Hr5+Lr5-Lr3 */ in mpn_toom_interpolate_8pts()
202 ASSERT_NOCARRY(mpn_sub_n(pp + 4*n, r5 + n, r3 + n, 2*n +1)); /* Mr5-Mr3,Hr5-Hr3 */ in mpn_toom_interpolate_8pts()
H A Ddcpi1_div_qr.c59 cy = mpn_sub_n (np + lo, np + lo, tp, n); in mpn_dcpi1_div_qr_n()
61 cy += mpn_sub_n (np + n, np + n, dp, lo); in mpn_dcpi1_div_qr_n()
76 cy = mpn_sub_n (np, np, tp, n); in mpn_dcpi1_div_qr_n()
78 cy += mpn_sub_n (np + lo, np + lo, dp, hi); in mpn_dcpi1_div_qr_n()
131 ASSERT_NOCARRY (mpn_sub_n (np - dn + 1, np - dn + 1, dp - dn, dn)); in mpn_dcpi1_div_qr()
195 cy = mpn_sub_n (np - dn, np - dn, tp, dn); in mpn_dcpi1_div_qr()
197 cy += mpn_sub_n (np - dn + qn, np - dn + qn, dp - dn, dn - qn); in mpn_dcpi1_div_qr()
234 cy = mpn_sub_n (np - dn, np - dn, tp, dn); in mpn_dcpi1_div_qr()
236 cy += mpn_sub_n (np - dn + qn, np - dn + qn, dp - dn, dn - qn); in mpn_dcpi1_div_qr()
H A Dtoom_interpolate_12pts.c80 return __cy + mpn_sub_n(dst,dst,ws,n); in DO_mpn_sublsh_n()
215 cy = mpn_sub_n (r3, r3, r0, spt); in mpn_toom_interpolate_12pts()
234 mpn_sub_n (r4, r4, r1, n3p1); /* can be negative */ in mpn_toom_interpolate_12pts()
249 r3[n3] -= mpn_sub_n (r3+n, r3+n, pp, 2 * n); in mpn_toom_interpolate_12pts()
254 mpn_sub_n (r4, r4, r5, n3p1); /* can be negative */ in mpn_toom_interpolate_12pts()
285 ASSERT_NOCARRY(mpn_sub_n (r2, r2, r1, n3p1)); in mpn_toom_interpolate_12pts()
291 ASSERT_NOCARRY(mpn_sub_n (r3, r3, r2, n3p1)); in mpn_toom_interpolate_12pts()
297 mpn_sub_n (r4, r2, r4, n3p1); in mpn_toom_interpolate_12pts()
300 ASSERT_NOCARRY(mpn_sub_n (r2, r2, r4, n3p1)); in mpn_toom_interpolate_12pts()
311 ASSERT_NOCARRY(mpn_sub_n (r3, r3, r1, n3p1)); in mpn_toom_interpolate_12pts()
[all …]
H A Dmu_bdiv_qr.c126 c0 = mpn_sub_n (tp + tn, tp, rp, wn); in mpn_mu_bdiv_qr_old()
137 cy += mpn_sub_n (rp, rp + in, tp + in, dn - in); in mpn_mu_bdiv_qr_old()
161 c0 = mpn_sub_n (tp + tn, tp, rp, wn); in mpn_mu_bdiv_qr_old()
168 cy += mpn_sub_n (rp, rp + qn, tp + qn, dn - qn); in mpn_mu_bdiv_qr_old()
206 c0 = mpn_sub_n (tp + tn, tp, np, wn); in mpn_mu_bdiv_qr_old()
214 cy = mpn_sub_n (rp, np + in, tp + in, dn); in mpn_mu_bdiv_qr_old()
226 c0 = mpn_sub_n (tp + tn, tp, rp, wn); in mpn_mu_bdiv_qr_old()
231 cy += mpn_sub_n (rp, rp + qn, tp + qn, dn - qn); in mpn_mu_bdiv_qr_old()
H A Dtoom32_mul.c126 ASSERT_NOCARRY (mpn_sub_n (am1, a1, ap1, n)); in mpn_toom32_mul()
132 hi = ap1_hi - mpn_sub_n (am1, ap1, a1, n); in mpn_toom32_mul()
157 ASSERT_NOCARRY (mpn_sub_n (bm1, b1, b0, n)); in mpn_toom32_mul()
162 ASSERT_NOCARRY (mpn_sub_n (bm1, b0, b1, n)); in mpn_toom32_mul()
173 ASSERT_NOCARRY (mpn_sub_n (bm1, b1, b0, t)); in mpn_toom32_mul()
214 mpn_sub_n (v1, v1, vm1, 2*n+1); in mpn_toom32_mul()
268 cy = mpn_sub_n (v1, v1, vm1, n); in mpn_toom32_mul()
302 cy = mpn_sub_n (pp + n, pp + n, pp+3*n, n); in mpn_toom32_mul()
H A Dtoom2_sqr.c92 mpn_sub_n (asm1, a1, a0, n); in mpn_toom2_sqr()
96 mpn_sub_n (asm1, a0, a1, n); in mpn_toom2_sqr()
103 mpn_sub_n (asm1, a1, a0, s); in mpn_toom2_sqr()
108 asm1[s] = a0[s] - mpn_sub_n (asm1, a0, a1, s); in mpn_toom2_sqr()
135 cy -= mpn_sub_n (pp + n, pp + n, vm1, 2 * n); in mpn_toom2_sqr()
H A Dtoom_interpolate_16pts.c76 return __cy + mpn_sub_n(dst,dst,ws,n); in DO_mpn_sublsh_n()
304 cy = mpn_sub_n (r4, r4, r0, spt); in mpn_toom_interpolate_16pts()
375 r4[n3] -= mpn_sub_n (r4+n, r4+n, pp, 2 * n); in mpn_toom_interpolate_16pts()
434 ASSERT_NOCARRY(mpn_sub_n (r3, r3, r1, n3p1)); in mpn_toom_interpolate_16pts()
441 ASSERT_NOCARRY(mpn_sub_n (r4, r4, r1, n3p1)); in mpn_toom_interpolate_16pts()
442 ASSERT_NOCARRY(mpn_sub_n (r4, r4, r3, n3p1)); in mpn_toom_interpolate_16pts()
443 ASSERT_NOCARRY(mpn_sub_n (r4, r4, r2, n3p1)); in mpn_toom_interpolate_16pts()
452 ASSERT_NOCARRY(mpn_sub_n (r2, r2, r6, n3p1)); in mpn_toom_interpolate_16pts()
458 mpn_sub_n (r5, r3, r5, n3p1); in mpn_toom_interpolate_16pts()
461 ASSERT_NOCARRY(mpn_sub_n (r3, r3, r5, n3p1)); in mpn_toom_interpolate_16pts()
[all …]
H A Dtoom52_mul.c137 mpn_sub_n (bsm1, b1, b0, n); in mpn_toom52_mul()
142 mpn_sub_n (bsm1, b0, b1, n); in mpn_toom52_mul()
151 mpn_sub_n (bsm1, b1, b0, t); in mpn_toom52_mul()
175 mpn_sub_n (bsm2, b1, bsm1, n); in mpn_toom52_mul()
180 mpn_sub_n (bsm2, bsm1, b1, n); in mpn_toom52_mul()
187 mpn_sub_n (bsm2, b1, bsm1, t); in mpn_toom52_mul()
H A Dmatrix22_mul.c55 mpn_sub_n (rp, ap, bp, n); in abs_sub_n()
60 mpn_sub_n (rp, bp, ap, n); in abs_sub_n()
160 s0[rn] = r1[rn] - mpn_sub_n (s0, r1, r0, rn); in mpn_matrix22_mul_strassen()
224 t0[mn] -= mpn_sub_n (t0, t0, m0, mn); in mpn_matrix22_mul_strassen()
234 ASSERT_NOCARRY (mpn_sub_n (r1, r2, r1, rn)); in mpn_matrix22_mul_strassen()
263 ASSERT_NOCARRY (mpn_sub_n (r3, u1, r3, mn)); in mpn_matrix22_mul_strassen()
273 ASSERT_NOCARRY (mpn_sub_n (r2, u1, r2, mn)); in mpn_matrix22_mul_strassen()
H A Dmu_div_qr.c138 cy = mpn_sub_n (rp, np, scratch, nn - (2 * qn + 1)); in mpn_mu_div_qr()
259 mpn_sub_n (rp, np, dp, dn); in mpn_preinv_mu_div_qr()
297 cy = mpn_sub_n (tp, tp, rp + dn - wn, wn); in mpn_preinv_mu_div_qr()
311 cy = mpn_sub_n (tp, np, tp, in); /* get next 'in' limbs from N */ in mpn_preinv_mu_div_qr()
317 cy = mpn_sub_n (rp, np, tp, in); /* get next 'in' limbs from N */ in mpn_preinv_mu_div_qr()
331 cy = mpn_sub_n (rp, rp, dp, dn); in mpn_preinv_mu_div_qr()
339 cy = mpn_sub_n (rp, rp, dp, dn); in mpn_preinv_mu_div_qr()
H A Ddcpi1_divappr_q.c59 cy = mpn_sub_n (np + lo, np + lo, tp, n); in mpn_dcpi1_divappr_q_n()
61 cy += mpn_sub_n (np + n, np + n, dp, lo); in mpn_dcpi1_divappr_q_n()
125 ASSERT_NOCARRY (mpn_sub_n (np - dn + 1, np - dn + 1, dp - dn, dn)); in mpn_dcpi1_divappr_q()
188 cy = mpn_sub_n (np - dn, np - dn, tp, dn); in mpn_dcpi1_divappr_q()
190 cy += mpn_sub_n (np - dn + qn, np - dn + qn, dp - dn, dn - qn); in mpn_dcpi1_divappr_q()
227 mpn_sub_n (np - dn, np - dn, dp - dn, dn); in mpn_dcpi1_divappr_q()
H A Dmu_divappr_q.c187 mpn_sub_n (rp, np, dp, dn); in mpn_preinv_mu_divappr_q()
227 cy = mpn_sub_n (tp, tp, rp + dn - wn, wn); in mpn_preinv_mu_divappr_q()
241 cy = mpn_sub_n (tp, np, tp, in); /* get next 'in' limbs from N */ in mpn_preinv_mu_divappr_q()
247 cy = mpn_sub_n (rp, np, tp, in); /* get next 'in' limbs from N */ in mpn_preinv_mu_divappr_q()
261 cy = mpn_sub_n (rp, rp, dp, dn); in mpn_preinv_mu_divappr_q()
269 cy = mpn_sub_n (rp, rp, dp, dn); in mpn_preinv_mu_divappr_q()
H A Dmu_bdiv_q.c128 c0 = mpn_sub_n (tp + tn, tp, rp, wn); in mpn_mu_bdiv_q_old()
137 cy += mpn_sub_n (rp, rp + in, tp + in, dn - in); in mpn_mu_bdiv_q_old()
164 c0 = mpn_sub_n (tp + tn, tp, rp, wn); in mpn_mu_bdiv_q_old()
172 cy += mpn_sub_n (rp, rp + in, tp + in, dn - in); in mpn_mu_bdiv_q_old()
218 mpn_sub_n (tp, np + in, tp + in, qn - in); in mpn_mu_bdiv_q_old()
H A Dfib2m.c58 ASSERT_NOCARRY (mpn_sub_n (rp, ap, bp, n)); in abs_sub_n()
63 ASSERT_NOCARRY (mpn_sub_n (rp, bp, ap, n)); in abs_sub_n()
216 c -= mpn_sub_n (fp, tp, fp, 2 * mn); in mpn_fib2m()
233 rp[2 * mn] = f1p[2 * mn] + 1 - mpn_sub_n (rp, f1p, fp, 2 * mn); in mpn_fib2m()
H A Dtoom33_mul.c150 mpn_sub_n (asm1, a1, gp, n); in mpn_toom33_mul()
156 cy -= mpn_sub_n (asm1, gp, a1, n); in mpn_toom33_mul()
180 cy -= mpn_sub_n (as2, as2, a0, n); in mpn_toom33_mul()
206 mpn_sub_n (bsm1, b1, gp, n); in mpn_toom33_mul()
212 cy -= mpn_sub_n (bsm1, gp, b1, n); in mpn_toom33_mul()
236 cy -= mpn_sub_n (bs2, bs2, b0, n); in mpn_toom33_mul()
H A Dtoom62_mul.c164 mpn_sub_n (bsm1, b1, b0, n); in mpn_toom62_mul()
169 mpn_sub_n (bsm1, b0, b1, n); in mpn_toom62_mul()
179 mpn_sub_n (bsm1, b1, b0, t); in mpn_toom62_mul()
205 ASSERT_NOCARRY (mpn_sub_n (bsm2, b1, bsm1, t)); in mpn_toom62_mul()
219 ASSERT_NOCARRY (mpn_sub_n (bsm2, b1, bsm1, n)); in mpn_toom62_mul()
224 ASSERT_NOCARRY (mpn_sub_n (bsm2, bsm1, b1, n)); in mpn_toom62_mul()
H A Dadd_n_sub_n.c82 scyn = mpn_sub_n (r2p + off, s1p + off, s2p + off, this_n); in mpn_add_n_sub_n()
99 scyn = mpn_sub_n (r2p + off, s1p + off, s2p + off, this_n); in mpn_add_n_sub_n()
129 scyn = mpn_sub_n (r2p + off, s1p + off, s2p + off, this_n); in mpn_add_n_sub_n()
159 TIME (t,(mpn_add_n(r1p,s1p,s2p,n),mpn_sub_n(r1p,s1p,s2p,n))); in main()
H A Dstrongfibo.c58 ASSERT_NOCARRY (mpn_sub_n (rp, ap, bp, n)); in abs_sub_n()
63 ASSERT_NOCARRY (mpn_sub_n (rp, bp, ap, n)); in abs_sub_n()
147 cy -= mpn_sub_n (lp, scratch, lp, mn); /* L[n] = +/-(2F[n-1]-(-F[n])) */ in mpn_lucm()
164 cy -= mpn_sub_n (lp, lp, mp, mn); in mpn_lucm()
/netbsd/external/gpl3/gcc/dist/libquadmath/printf/
H A Dmul_n.c169 mpn_sub_n (prodp, up + hsize, up, hsize);
174 mpn_sub_n (prodp, up, up + hsize, hsize);
179 mpn_sub_n (prodp + hsize, vp + hsize, vp, hsize);
184 mpn_sub_n (prodp + hsize, vp, vp + hsize, hsize);
198 cy -= mpn_sub_n (prodp + hsize, prodp + hsize, tspace, size);
/netbsd/external/gpl3/gcc.old/dist/libquadmath/printf/
H A Dmul_n.c169 mpn_sub_n (prodp, up + hsize, up, hsize);
174 mpn_sub_n (prodp, up, up + hsize, hsize);
179 mpn_sub_n (prodp + hsize, vp + hsize, vp, hsize);
184 mpn_sub_n (prodp + hsize, vp, vp + hsize, hsize);
198 cy -= mpn_sub_n (prodp + hsize, prodp + hsize, tspace, size);
/netbsd/external/lgpl3/gmp/dist/tests/mpn/
H A Dt-fib2m.c124 if (mpn_sub_n (fk, mp, fk, mn) || mpn_cmp (fkm, fk, mn) != 0) in test_fib2_fib2m()
138 if (mpn_sub_n (fks1, mp, fks1, mn) || mpn_cmp (fks1m, fks1, mn) != 0) in test_fib2_fib2m()
239 mpn_sub_n (fks1a, mp, fks1a, mn); in test_fib2m_2exp()
240 if (mpn_sub_n (fka, fka, fks1a, mn)) in test_fib2m_2exp()
285 if (mpn_sub_n (fkb, mp, fkb, mn) || mpn_cmp (fks1a, fkb, mn) != 0) in test_fib2m_2exp()
298 if (mpn_sub_n (fks1b, mp, fks1b, mn) || mpn_cmp (fka, fks1b, mn) != 0) in test_fib2m_2exp()

12345678