diff options
| author | Mattias Andrée <maandree@kth.se> | 2016-05-06 13:48:43 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2016-05-06 13:48:43 +0200 |
| commit | b0e210a02b8576828ac64e8b97bd565fd28c8748 (patch) | |
| tree | 02e74578d0543b40718ea9ae60a4b1295630a61d /src/zpowu.c | |
| parent | zsqr is no longer slower than zmul, they are identical (diff) | |
| download | libzahl-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/zpowu.c')
| -rw-r--r-- | src/zpowu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/zpowu.c b/src/zpowu.c index 447147d..35247c3 100644 --- a/src/zpowu.c +++ b/src/zpowu.c @@ -24,11 +24,11 @@ zpowu(z_t a, z_t b, unsigned long long int c) zsetu(a, 1); if (c & 1) - zmul_impl(a, a, tb); + zmul_ll(a, a, tb); while (c >>= 1) { - zsqr_impl(tb, tb); + zsqr_ll(tb, tb); if (c & 1) - zmul_impl(a, a, tb); + zmul_ll(a, a, tb); } if (neg) |
