commit d133f10c9a98c10f60df827e134f45f56e6ad0a0
Author: Mattias Andrée <maandree_AT_kth.se>
AuthorDate: Wed Mar 2 22:12:17 2016 +0100
Commit: Mattias Andrée <maandree_AT_kth.se>
CommitDate: Wed Mar 2 22:12:17 2016 +0100
znot man page: notes on representation and tendness toward zero
Signed-off-by: Mattias Andrée <maandree_AT_kth.se>
diff --git a/man/znot.3 b/man/znot.3
index f33bc28..99d7b40 100644
--- a/man/znot.3
+++ b/man/znot.3
_AT_@ -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),
Received on Wed Mar 02 2016 - 22:12:21 CET
This archive was generated by hypermail 2.3.0
: Wed Mar 02 2016 - 22:24:14 CET