aboutsummaryrefslogtreecommitdiffstats
path: root/src/zpow.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-05-06 13:48:43 +0200
committerMattias Andrée <maandree@kth.se>2016-05-06 13:48:43 +0200
commitb0e210a02b8576828ac64e8b97bd565fd28c8748 (patch)
tree02e74578d0543b40718ea9ae60a4b1295630a61d /src/zpow.c
parentzsqr is no longer slower than zmul, they are identical (diff)
downloadlibzahl-b0e210a02b8576828ac64e8b97bd565fd28c8748.tar.gz
libzahl-b0e210a02b8576828ac64e8b97bd565fd28c8748.tar.bz2
libzahl-b0e210a02b8576828ac64e8b97bd565fd28c8748.tar.xz
Make zmul and zsqr (calls low-level functions) inline
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/zpow.c')
-rw-r--r--src/zpow.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/zpow.c b/src/zpow.c
index af45eb9..29eea83 100644
--- a/src/zpow.c
+++ b/src/zpow.c
@@ -46,15 +46,15 @@ zpow(z_t a, z_t b, z_t c)
x = tc->chars[i];
for (j = BITS_PER_CHAR; j--; x >>= 1) {
if (x & 1)
- zmul_impl(a, a, tb);
- zsqr_impl(tb, tb);
+ zmul_ll(a, a, tb);
+ zsqr_ll(tb, tb);
}
}
x = tc->chars[i];
for (; x; x >>= 1) {
if (x & 1)
- zmul_impl(a, a, tb);
- zsqr_impl(tb, tb);
+ zmul_ll(a, a, tb);
+ zsqr_ll(tb, tb);
}
if (neg)