libzahl

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

zlsb.3 (432B)


      1 .TH ZLSB 3 libzahl
      2 .SH NAME
      3 zlsb - Get the least set bit.
      4 .SH SYNOPSIS
      5 .nf
      6 #include <zahl.h>
      7 
      8 size_t zlsb(z_t \fIa\fP);
      9 .fi
     10 .SH DESCRIPTION
     11 .B zlsb
     12 gets the index of the bit of
     13 lowest value that is set in
     14 .IR a .
     15 If
     16 .I a
     17 is zero,
     18 .B SIZE_MAX
     19 is returned.
     20 .SH RETURN VALUE
     21 The index of the least set bit in
     22 .IR a ,
     23 or
     24 .B SIZE_MAX
     25 if
     26 .I a
     27 is zero.
     28 .SH SEE ALSO
     29 .BR zbits (3),
     30 .BR zbtest (3),
     31 .BR zbset (3),
     32 .BR znot (3),
     33 .BR zrsh (3)