From 8084f105a251b025176b293a5232295fcd39f1d3 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Tue, 18 Sep 2007 22:08:04 -0700 Subject: Document Infinity and NaN Add __Infinity__, __QNaN__, and __SNaN__ to the documentation. --- doc/nasmdoc.src | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'doc') 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} -- cgit v1.2.3