aboutsummaryrefslogtreecommitdiffstats
path: root/man0/libsimple.h.0
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2018-11-16 19:05:17 +0100
committerMattias Andrée <maandree@kth.se>2018-11-16 19:05:17 +0100
commit2a167c84d3a2b875cc67a169b5f0e1333b0b77f5 (patch)
tree9989fa84311b180f8637c4acdc11e4ff10d44a93 /man0/libsimple.h.0
parentmemalloc/arrayalloc: add L1-cache optimisation (diff)
downloadlibsimple-2a167c84d3a2b875cc67a169b5f0e1333b0b77f5.tar.gz
libsimple-2a167c84d3a2b875cc67a169b5f0e1333b0b77f5.tar.bz2
libsimple-2a167c84d3a2b875cc67a169b5f0e1333b0b77f5.tar.xz
Add TWOS_COMPLEMENT, ONES_COMPLEMENT, and SIGN_MAGNITUDE
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--man0/libsimple.h.015
1 files changed, 14 insertions, 1 deletions
diff --git a/man0/libsimple.h.0 b/man0/libsimple.h.0
index b912400..47ca55b 100644
--- a/man0/libsimple.h.0
+++ b/man0/libsimple.h.0
@@ -1,4 +1,4 @@
-.TH LIBSIMPLE.H 0 2018-11-07 libsimple
+.TH LIBSIMPLE.H 0 2018-11-16 libsimple
.SH NAME
libsimple.h \- main header for libsimple
.SH SYNOPSIS
@@ -81,6 +81,19 @@ unless the system defines
.PP
The header
.I <libsimple.h>
+also defines, without a value,
+.B TWOS_COMPLEMENT
+if two's complement is used to represent signed integers,
+.B ONES_COMPLEMENT
+if ones' complement is used to represent signed integers, or
+.B SIGN_MAGNITUDE
+if sign\-magnitude is used to represent signed integers. Since
+no other representation is permitted in C, the header
+.I <libsimple.h>
+will define exactly one of these macros.
+.PP
+The header
+.I <libsimple.h>
defines a number of functions, macros, and variables.
The following macros are defined only without namespacing: