diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2016-05-24 23:03:17 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2016-05-24 23:03:17 -0700 |
commit | aa958b1ab60ae5522e5fbbef606fe3d86ac65cae (patch) | |
tree | f1502ca9b802f93d78c1cd9f85490ab1b6f78726 /macros | |
parent | 57a05813949015745e31a73918d905f651978d28 (diff) | |
download | nasm-aa958b1ab60ae5522e5fbbef606fe3d86ac65cae.tar.gz |
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 'macros')
-rw-r--r-- | macros/ifunc.mac | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/macros/ifunc.mac b/macros/ifunc.mac index fc0d313e..0fafe8d6 100644 --- a/macros/ifunc.mac +++ b/macros/ifunc.mac @@ -1,6 +1,6 @@ ;; -------------------------------------------------------------------------- ;; -;; Copyright 2012 The NASM Authors - All Rights Reserved +;; Copyright 2012-2016 The NASM Authors - All Rights Reserved ;; See the file AUTHORS included with the NASM distribution for ;; the specific copyright holders. ;; @@ -42,5 +42,7 @@ USE: ifunc %idefine ilog2(x) (__ilog2e__(x)) %idefine ilog2e(x) (__ilog2e__(x)) %idefine ilog2w(x) (__ilog2w__(x)) +%idefine ilog2fw(x) (__ilog2w__(x)) %idefine ilog2f(x) (__ilog2f__(x)) +%idefine ilog2cw(x) (__ilog2w__(x) * 0 + __ilog2c__(x)) %idefine ilog2c(x) (__ilog2c__(x)) |