aboutsummaryrefslogtreecommitdiffstats
path: root/man/zneg.3
blob: 21f24c981e101f1e39ad1d7c07001d54448cb3cc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
.TH ZNEG 3 libzahl
.SH NAME
zneg - Calculate the negation of a big integer
.SH SYNOPSIS
.nf
#include <zahl.h>

void zneg(z_t \fIa\fP, z_t \fIb\fP);
.fi
.SH DESCRIPTION
.B zneg
calculates the negation of
.I b
and stores the result in
.IR a .
That is,
.I a
gets
.RI - b .
.P
It is safe to call
.B zneg
with non-unique parameters.
.SH SEE ALSO
.BR zset (3),
.BR zstr (3),
.BR zadd (3),
.BR zsub (3),
.BR zmul (3),
.BR zdiv (3),
.BR zmod (3),
.BR zabs (3),
.BR zpow (3)