aboutsummaryrefslogtreecommitdiffstats
path: root/zahl.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-03-15 11:40:46 +0100
committerMattias Andrée <maandree@kth.se>2016-03-15 11:40:46 +0100
commitf3b969b6991f154a1fde1ea6b4488320ed0b486f (patch)
treed17fd525c8bcfed5dd218501214330262efb52c0 /zahl.h
parentOptimisations (diff)
downloadlibzahl-f3b969b6991f154a1fde1ea6b4488320ed0b486f.tar.gz
libzahl-f3b969b6991f154a1fde1ea6b4488320ed0b486f.tar.bz2
libzahl-f3b969b6991f154a1fde1ea6b4488320ed0b486f.tar.xz
Optimise zsetup, zgcd, zmul, and zsqr and add -flto
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'zahl.h')
-rw-r--r--zahl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/zahl.h b/zahl.h
index e700dc7..cd41b7b 100644
--- a/zahl.h
+++ b/zahl.h
@@ -119,6 +119,9 @@ void zmodpowu(z_t, z_t, unsigned long long int, z_t);
/* These are used internally and may be removed in a future version. */
void zadd_unsigned(z_t, z_t, z_t); /* a := |b| + |c| */
void zsub_unsigned(z_t, z_t, z_t); /* a := |b| - |c| */
+void zadd_unsigned_assign(z_t, z_t); /* a := |a| + |b| */
+void zsub_nonnegative_assign(z_t, z_t); /* a := a - b, assuming a ≥ b ≥ 0 */
+void zsub_positive_assign(z_t, z_t); /* a := a - b, assuming a > b > 0 */
/* Bitwise operations. */