diff options
| author | Mattias Andrée <maandree@kth.se> | 2016-03-02 22:12:17 +0100 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2016-03-02 22:12:17 +0100 |
| commit | d133f10c9a98c10f60df827e134f45f56e6ad0a0 (patch) | |
| tree | 15de17bdffeaf9043e6687389ec5219f0871e594 | |
| parent | zahl.h: fix working mishapp for zptest (diff) | |
| download | libzahl-d133f10c9a98c10f60df827e134f45f56e6ad0a0.tar.gz libzahl-d133f10c9a98c10f60df827e134f45f56e6ad0a0.tar.bz2 libzahl-d133f10c9a98c10f60df827e134f45f56e6ad0a0.tar.xz | |
znot man page: notes on representation and tendness toward zero
Signed-off-by: Mattias Andrée <maandree@kth.se>
| -rw-r--r-- | man/znot.3 | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -18,6 +18,24 @@ It is safe to call .B znot with .IR "(a==b)" . +.SH NOTES +Be aware, the following code will halt for any input +.P +.nf +#include <zahl.h> + +void +silly(z_t a) +{ + while (!zzero(a)) + znot(a, a); +} +.fi +.P +Also note that +.B z_t +uses neither two's complement, ones' complement, nor +sign-and-magnitude. .SH SEE ALSO .BR zand (3), .BR zor (3), |
