Introduction
Introduction Statistics Contact Development Disclaimer Help
ztrunc.3 - libzahl - big integer library
git clone git://git.suckless.org/libzahl
Log
Files
Refs
README
LICENSE
---
ztrunc.3 (579B)
---
1 .TH ZTRUNC 3 libzahl
2 .SH NAME
3 ztrunc - Truncate a big integer
4 .SH SYNOPSIS
5 .nf
6 #include <zahl.h>
7
8 void ztrunc(z_t \fIa\fP, z_t \fIb\fP, size_t \fIbits\fP);
9 .fi
10 .SH DESCRIPTION
11 .B ztrunc
12 makes a truncated copy of
13 .I b
14 and stores it in
15 .IR a .
16 Only the first
17 .I bits
18 from
19 .I b
20 and
21 .IR b 's
22 sign is copied to
23 .IR a .
24 .P
25 It is safe to call
26 .B zsplit
27 with non-unique parameters.
28 .SH RATIONALE
29 This was useful for improving the performance of
30 .BR zsplit (3).
31 .SH SEE ALSO
32 .BR zand (3),
33 .BR zor (3),
34 .BR zxor (3),
35 .BR znot (3),
36 .BR zlsh (3),
37 .BR zrsh (3),
38 .BR zsplit (3),
39 .BR zbits (3)
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.