diff options
| author | Mattias Andrée <maandree@kth.se> | 2016-05-01 10:03:00 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2016-05-01 10:03:00 +0200 |
| commit | 890c23fff2ffa01b50c017798aa677c404ea9098 (patch) | |
| tree | 8a7b61c0c93efae7ef8b8ac05b623f62c3a83fa6 | |
| parent | refsheet: there is no good way to symbolise rounding toward zero, so do not use rounding symbols at all (diff) | |
| download | libzahl-890c23fff2ffa01b50c017798aa677c404ea9098.tar.gz libzahl-890c23fff2ffa01b50c017798aa677c404ea9098.tar.bz2 libzahl-890c23fff2ffa01b50c017798aa677c404ea9098.tar.xz | |
refsheet: correct definition of zbits
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
| -rw-r--r-- | doc/refsheet.tex | 2 |
1 files changed, 1 insertions, 1 deletions
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{}} |
