aboutsummaryrefslogtreecommitdiffstats
path: root/zahl.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-05-06 19:00:44 +0200
committerMattias Andrée <maandree@kth.se>2016-05-06 19:00:44 +0200
commit4e659044778dfd05a5f5d2b41611e7737a0eb825 (patch)
treedc0cb41116b3ff8024bb2c48e26b43bc8c3a4a14 /zahl.h
parentMake zmul and zsqr (calls low-level functions) inline (diff)
downloadlibzahl-4e659044778dfd05a5f5d2b41611e7737a0eb825.tar.gz
libzahl-4e659044778dfd05a5f5d2b41611e7737a0eb825.tar.bz2
libzahl-4e659044778dfd05a5f5d2b41611e7737a0eb825.tar.xz
Make zdiv and zmod (calls zdivmod) inline
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'zahl.h')
-rw-r--r--zahl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/zahl.h b/zahl.h
index 5cb9b1a..e2a77c7 100644
--- a/zahl.h
+++ b/zahl.h
@@ -93,9 +93,9 @@ void zadd(z_t, z_t, z_t); /* a := b + c */
void zsub(z_t, z_t, z_t); /* a := b - c */
ZAHL_INLINE void zmul(z_t, z_t, z_t); /* a := b * c */
void zmodmul(z_t, z_t, z_t, z_t); /* a := (b * c) % d */
-void zdiv(z_t, z_t, z_t); /* a := b / c */
+ZAHL_INLINE void zdiv(z_t, z_t, z_t); /* a := b / c */
void zdivmod(z_t, z_t, z_t, z_t); /* a := c / d, b = c % d */
-void zmod(z_t, z_t, z_t); /* a := b % c */
+ZAHL_INLINE void zmod(z_t, z_t, z_t); /* a := b % c */
ZAHL_INLINE void zsqr(z_t, z_t); /* a := b² */
void zmodsqr(z_t, z_t, z_t); /* a := b² % c */
void zpow(z_t, z_t, z_t); /* a := b ↑ c */