aboutsummaryrefslogtreecommitdiffstats
path: root/zahl.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-03-03 10:45:50 +0100
committerMattias Andrée <maandree@kth.se>2016-03-03 10:45:50 +0100
commit0d98678c1b2c3db9c6bd1860e9740c1928470c87 (patch)
tree645df99291f72910602750cf313bf76c3dffb08a /zahl.h
parentAdd zabs, zadd, zdiv, zmod, zmodmul, zmodpow, zneg, zpow, zsub, and the newly introduced zmodsqr (diff)
downloadlibzahl-0d98678c1b2c3db9c6bd1860e9740c1928470c87.tar.gz
libzahl-0d98678c1b2c3db9c6bd1860e9740c1928470c87.tar.bz2
libzahl-0d98678c1b2c3db9c6bd1860e9740c1928470c87.tar.xz
Add new functions: zpowu and zmodpowu
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--zahl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/zahl.h b/zahl.h
index 3c9813c..4f2a2c8 100644
--- a/zahl.h
+++ b/zahl.h
@@ -78,6 +78,8 @@ void zneg(z_t, z_t); /* a := -b */
void zabs(z_t, z_t); /* a := |b| */
void zpow(z_t, z_t, z_t); /* a := b ↑ c */
void zmodpow(z_t, z_t, z_t, z_t); /* a := (b ↑ c) % d */
+void zpowu(z_t, z_t, unsigned long long int);
+void zmodpowu(z_t, z_t, z_t, unsigned long long int);
/* These are used internally and may be removed in a future version. */
void zadd_unsigned(z_t, z_t, z_t); /* a := |b| + |c|, b and c must not be the same reference. */