aboutsummaryrefslogtreecommitdiffstats
path: root/doc/nasmdoc.src
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2016-05-24 23:03:17 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2016-05-24 23:03:17 -0700
commitaa958b1ab60ae5522e5fbbef606fe3d86ac65cae (patch)
treef1502ca9b802f93d78c1cd9f85490ab1b6f78726 /doc/nasmdoc.src
parent57a05813949015745e31a73918d905f651978d28 (diff)
downloadnasm-aa958b1ab60ae5522e5fbbef606fe3d86ac65cae.tar.gz
nasm-aa958b1ab60ae5522e5fbbef606fe3d86ac65cae.tar.xz
nasm-aa958b1ab60ae5522e5fbbef606fe3d86ac65cae.zip
ifunc.mac: the ilog2 warning may want to be both ceil and floor
There is no reason why the warning-generating ilog2 has to be only the floor variant. However, I am pretty sure we can simply implement the ilog2cw() as a macro only; we can always fix that if that turns out to be incorrect. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'doc/nasmdoc.src')
-rw-r--r--doc/nasmdoc.src14
1 files changed, 8 insertions, 6 deletions
diff --git a/doc/nasmdoc.src b/doc/nasmdoc.src
index fb7a9444..12cc429b 100644
--- a/doc/nasmdoc.src
+++ b/doc/nasmdoc.src
@@ -4333,21 +4333,23 @@ The macros provided are:
These functions calculate the integer logarithm base 2 of their
argument, considered as an unsigned integer. The only differences
-between the functions is their behavior if the argument provided is
-not a power of two.
+between the functions is their respective behavior if the argument
+provided is not a power of two.
-The function \i\c{ilog2e()} (alias \i\c{ilog2()}) generate an error if
+The function \i\c{ilog2e()} (alias \i\c{ilog2()}) generates an error if
the argument is not a power of two.
-The function \i\c{ilog2w()} generate a warning if the argument is not
-a power of two.
-
The function \i\c{ilog2f()} rounds the argument down to the nearest
power of two; if the argument is zero it returns zero.
The function \i\c{ilog2c()} rounds the argument up to the nearest
power of two.
+The functions \i\c{ilog2fw()} (alias \i\c{ilog2w()}) and
+\i\c{ilog2cw()} generate a warning if the argument is not a power of
+two, but otherwise behaves like \c{ilog2f()} and \c{ilog2c()},
+respectively.
+
\C{directive} \i{Assembler Directives}