From 890c23fff2ffa01b50c017798aa677c404ea9098 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 1 May 2016 10:03:00 +0200 Subject: refsheet: correct definition of zbits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- doc/refsheet.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/refsheet.tex') 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{}} -- cgit v1.2.3-70-g09d2