libzahl

big integer library
git clone git://git.suckless.org/libzahl
Log | Files | Refs | README | LICENSE

zneg.3 (466B)


      1 .TH ZNEG 3 libzahl
      2 .SH NAME
      3 zneg - Calculate the negation of a big integer
      4 .SH SYNOPSIS
      5 .nf
      6 #include <zahl.h>
      7 
      8 void zneg(z_t \fIa\fP, z_t \fIb\fP);
      9 .fi
     10 .SH DESCRIPTION
     11 .B zneg
     12 calculates the negation of
     13 .I b
     14 and stores the result in
     15 .IR a .
     16 That is,
     17 .I a
     18 gets
     19 .RI - b .
     20 .P
     21 It is safe to call
     22 .B zneg
     23 with non-unique parameters.
     24 .SH SEE ALSO
     25 .BR zset (3),
     26 .BR zstr (3),
     27 .BR zadd (3),
     28 .BR zsub (3),
     29 .BR zmul (3),
     30 .BR zdiv (3),
     31 .BR zmod (3),
     32 .BR zabs (3),
     33 .BR zpow (3)