aboutsummaryrefslogtreecommitdiffstats
path: root/man/zlsb.3
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-03-01 10:55:20 +0100
committerMattias Andrée <maandree@kth.se>2016-03-01 10:55:20 +0100
commit32b87c5979a0e70994e4db65415ec0a2349c5618 (patch)
treea366f6c46762f349ce8b96439a35ac944021055b /man/zlsb.3
parentAdd a number of man pages (diff)
downloadlibzahl-32b87c5979a0e70994e4db65415ec0a2349c5618.tar.gz
libzahl-32b87c5979a0e70994e4db65415ec0a2349c5618.tar.bz2
libzahl-32b87c5979a0e70994e4db65415ec0a2349c5618.tar.xz
Add more man pages
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'man/zlsb.3')
-rw-r--r--man/zlsb.332
1 files changed, 32 insertions, 0 deletions
diff --git a/man/zlsb.3 b/man/zlsb.3
new file mode 100644
index 0000000..57586ef
--- /dev/null
+++ b/man/zlsb.3
@@ -0,0 +1,32 @@
+.TH ZLSB 3 libzahl
+.SH NAME
+zlsb - Get the least set bit.
+.SH SYNOPSIS
+.nf
+#include <zahl.h>
+
+size_t zlsb(z_t \fIa\fP);
+.fi
+.SH DESCRIPTION
+.B zlsb
+gets the index of the bit of
+lowest value that is set in
+.IR a .
+If
+.I a
+is zero,
+.B SIZE_MAX
+is returned.
+.SH RETURN VALUE
+The index of the least set bit in
+.IR a ,
+or
+.B SIZE_MAX
+if
+.I a
+is zero.
+.SH SEE ALSO
+.BR zbits (3),
+.BR zbtest (3),
+.BR znot (3),
+.BR zrsh (3)