From c0bc7b6e2d090554c9d940bc3614e089a688503a Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 3 Mar 2016 10:33:29 +0100 Subject: Add zabs, zadd, zdiv, zmod, zmodmul, zmodpow, zneg, zpow, zsub, and the newly introduced zmodsqr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- zahl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'zahl.h') diff --git a/zahl.h b/zahl.h index f1db3ef..3c9813c 100644 --- a/zahl.h +++ b/zahl.h @@ -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. */ -- cgit v1.2.3-70-g09d2