summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-08-24 09:55:27 -0700
committerH. Peter Anvin <hpa@zytor.com>2010-08-24 09:55:27 -0700
commit2d3dce2fd7f0f8547f71a88aaecf0c12565162b1 (patch)
treec3040d17c2ae5e362e6decbbe22d4b9b7810da9c
parent83baad7d9aa4e8eb6d774189e55d49a11a209c8a (diff)
downloadnasm-2d3dce2fd7f0f8547f71a88aaecf0c12565162b1.tar.gz
doc: document the %use fp macro packagenasm-2.09
Documentation for %use fp was missing... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--doc/changes.src4
-rw-r--r--doc/nasmdoc.src22
2 files changed, 26 insertions, 0 deletions
diff --git a/doc/changes.src b/doc/changes.src
index f0ca3145..0cb5f275 100644
--- a/doc/changes.src
+++ b/doc/changes.src
@@ -7,6 +7,7 @@
The NASM 2 series support x86-64, and is the production version of NASM
since 2007.
+
\S{cl-2.09} Version 2.09
\b Fixed assignment the magnitude of \c{%rep} counter. It is limited
@@ -68,6 +69,9 @@ since 2007.
can now contain non-identifier characters if surrounded by quotes.
See \k{getenv}.
+\b Add a new standard macro package \c{%use fp} for floating-point
+ convenience macros. See \k{pkg_fp}.
+
\S{cl-2.08.02} Version 2.08.02
diff --git a/doc/nasmdoc.src b/doc/nasmdoc.src
index 4dc02aa9..ddee94bf 100644
--- a/doc/nasmdoc.src
+++ b/doc/nasmdoc.src
@@ -1687,6 +1687,9 @@ respectively. These are normally used as macros:
\c
\c dq +1.5, -Inf, NaN ; Double-precision constants
+The \c{%use fp} standard macro package contains a set of convenience
+macros. See \k{pkg_fp}.
+
\S{bcdconst} \I{floating-point, packed BCD constants}Packed BCD Constants
x87-style packed BCD constants can be used in the same contexts as
@@ -4254,6 +4257,25 @@ alignment mode. A number of other macros beginning with \c{__ALIGN_}
are used internally by this macro package.
+\H{pkg_fp} \i\c\{fp}: Floating-point macros
+
+This packages contains the following floating-point convenience macros:
+
+\c %define Inf __Infinity__
+\c %define NaN __QNaN__
+\c %define QNaN __QNaN__
+\c %define SNaN __SNaN__
+\c
+\c %define float8(x) __float8__(x)
+\c %define float16(x) __float16__(x)
+\c %define float32(x) __float32__(x)
+\c %define float64(x) __float64__(x)
+\c %define float80m(x) __float80m__(x)
+\c %define float80e(x) __float80e__(x)
+\c %define float128l(x) __float128l__(x)
+\c %define float128h(x) __float128h__(x)
+
+
\C{directive} \i{Assembler Directives}
NASM, though it attempts to avoid the bureaucracy of assemblers like