summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-09-18 22:08:04 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-09-18 22:08:04 -0700
commit8084f105a251b025176b293a5232295fcd39f1d3 (patch)
tree03910ff368dd866e37b202b0fc72403f91d2e849
parentf48bc6fb485de852c128c5756c77acd0611c2b87 (diff)
downloadnasm-8084f105a251b025176b293a5232295fcd39f1d3.tar.gz
Document Infinity and NaN
Add __Infinity__, __QNaN__, and __SNaN__ to the documentation.
-rw-r--r--doc/nasmdoc.src10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/nasmdoc.src b/doc/nasmdoc.src
index 96faefbe..c79cd39b 100644
--- a/doc/nasmdoc.src
+++ b/doc/nasmdoc.src
@@ -151,6 +151,7 @@ convention
\IR{ms-dos} MS-DOS
\IR{ms-dos device drivers} MS-DOS device drivers
\IR{multipush} \c{multipush} macro
+\IR{nan} NaN
\IR{nasm version} NASM version
\IR{netbsd} NetBSD
\IR{omf} OMF
@@ -1424,6 +1425,15 @@ do floating arithmetic it would have to include its own complete set
of floating-point routines, which would significantly increase the
size of the assembler for very little benefit.
+The special tokens \i\c{__Infinity__}, \i\c{__QNaN__} (or
+\i\c{__NaN__}) and \i\c{__SNaN__} can be used to generate
+\I{infinity}infinities, quiet \i{NaN}s, and signalling NaNs,
+respectively. These are normally used as macros:
+
+\c %define Inf __Infinity__
+\c %define NaN __QNaN__
+\c
+\c dq +1.5, -Inf, NaN ; Double-precision constants
\H{expr} \i{Expressions}