summaryrefslogtreecommitdiff
path: root/mpn/generic/toom53_mul.c
diff options
context:
space:
mode:
authorTorbjorn Granlund <tege@gmplib.org>2009-10-04 00:01:37 +0200
committerTorbjorn Granlund <tege@gmplib.org>2009-10-04 00:01:37 +0200
commit01987bbc451b599875598ca436185f70b41003e2 (patch)
treebdf58f302086cd66f4c60d70c520f3ed5310bb51 /mpn/generic/toom53_mul.c
parent07e0942fae2b3c5b42863a4b9bda3dcd8cfda696 (diff)
downloadgmp-01987bbc451b599875598ca436185f70b41003e2.tar.gz
Rename mpn_addsub_n to mpn_add_n_sub_n.
Diffstat (limited to 'mpn/generic/toom53_mul.c')
-rw-r--r--mpn/generic/toom53_mul.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/mpn/generic/toom53_mul.c b/mpn/generic/toom53_mul.c
index 68a1f2708..358761ff2 100644
--- a/mpn/generic/toom53_mul.c
+++ b/mpn/generic/toom53_mul.c
@@ -101,15 +101,15 @@ mpn_toom53_mul (mp_ptr pp,
gp[n] = mpn_add_n (gp, a0, a2, n);
gp[n] += mpn_add (gp, gp, n, a4, s);
hp[n] = mpn_add_n (hp, a1, a3, n);
-#if HAVE_NATIVE_mpn_addsub_n
+#if HAVE_NATIVE_mpn_add_n_sub_n
if (mpn_cmp (gp, hp, n + 1) < 0)
{
- mpn_addsub_n (as1, asm1, hp, gp, n + 1);
+ mpn_add_n_sub_n (as1, asm1, hp, gp, n + 1);
vm1_neg = 1;
}
else
{
- mpn_addsub_n (as1, asm1, gp, hp, n + 1);
+ mpn_add_n_sub_n (as1, asm1, gp, hp, n + 1);
vm1_neg = 0;
}
#else
@@ -166,15 +166,15 @@ mpn_toom53_mul (mp_ptr pp,
cy += mpn_add_n (hp, ash, hp, n); /* 8a1 + 2a3 */
hp[n] = cy;
#endif
-#if HAVE_NATIVE_mpn_addsub_n
+#if HAVE_NATIVE_mpn_add_n_sub_n
if (mpn_cmp (gp, hp, n + 1) < 0)
{
- mpn_addsub_n (ash, asmh, hp, gp, n + 1);
+ mpn_add_n_sub_n (ash, asmh, hp, gp, n + 1);
vmh_neg = 1;
}
else
{
- mpn_addsub_n (ash, asmh, gp, hp, n + 1);
+ mpn_add_n_sub_n (ash, asmh, gp, hp, n + 1);
vmh_neg = 0;
}
#else
@@ -193,16 +193,16 @@ mpn_toom53_mul (mp_ptr pp,
/* Compute bs1 and bsm1. */
bs1[n] = mpn_add (bs1, b0, n, b2, t); /* b0 + b2 */
-#if HAVE_NATIVE_mpn_addsub_n
+#if HAVE_NATIVE_mpn_add_n_sub_n
if (bs1[n] == 0 && mpn_cmp (bs1, b1, n) < 0)
{
- bs1[n] = mpn_addsub_n (bs1, bsm1, b1, bs1, n) >> 1;
+ bs1[n] = mpn_add_n_sub_n (bs1, bsm1, b1, bs1, n) >> 1;
bsm1[n] = 0;
vm1_neg ^= 1;
}
else
{
- cy = mpn_addsub_n (bs1, bsm1, bs1, b1, n);
+ cy = mpn_add_n_sub_n (bs1, bsm1, bs1, b1, n);
bsm1[n] = bs1[n] - (cy & 1);
bs1[n] += (cy >> 1);
}
@@ -241,14 +241,14 @@ mpn_toom53_mul (mp_ptr pp,
cy = mpn_lshift (gp, b0, n, 2); /* 4b0 */
gp[n] = cy + mpn_add (gp, gp, n, b2, t); /* 4b0 + b2 */
#endif
-#if HAVE_NATIVE_mpn_addsub_n
+#if HAVE_NATIVE_mpn_add_n_sub_n
if (mpn_cmp (gp, hp, n + 1) < 0)
{
- mpn_addsub_n (bsh, bsmh, hp, gp, n + 1);
+ mpn_add_n_sub_n (bsh, bsmh, hp, gp, n + 1);
vmh_neg^= 1;
}
else
- mpn_addsub_n (bsh, bsmh, gp, hp, n + 1);
+ mpn_add_n_sub_n (bsh, bsmh, gp, hp, n + 1);
#else
mpn_add_n (bsh, gp, hp, n + 1); /* 4b0 + 2b1 + b2 */
if (mpn_cmp (gp, hp, n + 1) < 0)