diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-09-18 22:08:04 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-09-18 22:08:04 -0700 |
commit | 8084f105a251b025176b293a5232295fcd39f1d3 (patch) | |
tree | 03910ff368dd866e37b202b0fc72403f91d2e849 /doc | |
parent | f48bc6fb485de852c128c5756c77acd0611c2b87 (diff) | |
download | nasm-8084f105a251b025176b293a5232295fcd39f1d3.tar.gz nasm-8084f105a251b025176b293a5232295fcd39f1d3.tar.bz2 nasm-8084f105a251b025176b293a5232295fcd39f1d3.zip |
Document Infinity and NaN
Add __Infinity__, __QNaN__, and __SNaN__ to the documentation.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/nasmdoc.src | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/nasmdoc.src b/doc/nasmdoc.src index 96faefb..c79cd39 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} |