diff options
| author | Mattias Andrée <maandree@kth.se> | 2016-03-03 10:33:29 +0100 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2016-03-03 10:35:22 +0100 |
| commit | c0bc7b6e2d090554c9d940bc3614e089a688503a (patch) | |
| tree | a1b85a760ec1e18bdd0ceac15b802bdf6409e625 /zahl.h | |
| parent | znot man page: notes on representation and tendness toward zero (diff) | |
| download | libzahl-c0bc7b6e2d090554c9d940bc3614e089a688503a.tar.gz libzahl-c0bc7b6e2d090554c9d940bc3614e089a688503a.tar.bz2 libzahl-c0bc7b6e2d090554c9d940bc3614e089a688503a.tar.xz | |
Add zabs, zadd, zdiv, zmod, zmodmul, zmodpow, zneg, zpow, zsub, and the newly introduced zmodsqr
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
| -rw-r--r-- | zahl.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -73,6 +73,7 @@ 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 */ void zsqr(z_t, z_t); /* a := b² */ +void zmodsqr(z_t, z_t, z_t); /* a := b² % c */ 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 */ @@ -80,8 +81,7 @@ void zmodpow(z_t, z_t, z_t, z_t); /* a := (b ↑ c) % d */ /* 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. */ -void zsub_unsigned(z_t, z_t, z_t); /* a := |b| - |c|, b and c must not be the same reference. */ -void zsub_positive(z_t, z_t, z_t); /* a := |b| - |c|, assumes b ≥ c and that, and b is not c. */ +void zsub_unsigned(z_t, z_t, z_t); /* a := |b| - |c| */ /* Bitwise operations. */ |
