From 32b87c5979a0e70994e4db65415ec0a2349c5618 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 1 Mar 2016 10:55:20 +0100 Subject: Add more man pages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- man/zbits.3 | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 man/zbits.3 (limited to 'man/zbits.3') diff --git a/man/zbits.3 b/man/zbits.3 new file mode 100644 index 0000000..3dea6d9 --- /dev/null +++ b/man/zbits.3 @@ -0,0 +1,30 @@ +.TH ZBITS 3 libzahl +.SH NAME +zbits - Count used bits in a big integer +.SH SYNOPSIS +.nf +#include + +size_t zbits(z_t \fIa\fP); +.fi +.SH DESCRIPTION +.B zbits +calculates the bit-size of +.IR a . +If +.I a +is zero the bit-size is 1. +.SH RETURN VALUE +.B zbits +returns the number of bits requires +to represent +.I a +\(em 1 plus the floored binary logarithm of the +absolute value of +.I a +\(em or 1 if +.I a +is zero. +.SH SEE ALSO +.BR zlsb (3), +.BR zzero (3) -- cgit v1.2.3-70-g09d2