commit 890c23fff2ffa01b50c017798aa677c404ea9098
Author:     Mattias Andrée <[email protected]>
AuthorDate: Sun May 1 10:03:00 2016 +0200
Commit:     Mattias Andrée <[email protected]>
CommitDate: Sun May 1 10:03:00 2016 +0200

    refsheet: correct definition of zbits
    
    Signed-off-by: Mattias Andrée <[email protected]>

diff --git a/doc/refsheet.tex b/doc/refsheet.tex
index 0174f99..861c01d 100644
--- a/doc/refsheet.tex
+++ b/doc/refsheet.tex
@@ -101,7 +101,7 @@ Unless specified otherwise, returns are {\tt void} and all 
parameters are of typ
 \entry{zlsh(a, b, c)}      {$a \gets b \cdot 2^c$}        {{\tt c} is a 
\size{}}
 \entry{zrsh(a, b, c)}      {$a \gets b / 2^c$}            {ditto, rounded 
towards zero}
 \entry{ztrunc(a, b, c)}    {$a \gets b \mod 2^c$}         {ditto, $a$ shares 
signum with $b$}
-\entry{zbits(a)}           {Get index of highest set bit} {returns \size{}, 1 
if $a = 0$}
+\entry{zbits(a)}           {Get number of used bits}      {returns \size{}, 1 
if $a = 0$}
 \entry{zlsb(a)}            {Get index of lowest set bit}  {returns \size{}, 
{\tt SIZE\_MAX} if $a = 0$}
 \entry{zbtest(a, b)}       {Is bit $b$ in $a$ set?}       {{\tt b} is a 
\size{}, returns {\tt int}}
 \entry{zbset(a, b, c, 1)}  {$a \gets b$, set bit $c$}     {{\tt c} is a 
\size{}}

Reply via email to