nasm/macros
H. Peter Anvin 290b4cb3a4 eval: add general support for "integer functions" and add ilog2*()
Add general support in the function parser for "integer functions"
(actually implemented as special unary operators, then wrapped in
macros) and implement a family of integer logarithms.  The only
difference is the behavior on a non-power-of-two argument:

	ilog2[e]	-- throw an error
	ilog2w		-- throw a warning
	ilog2f		-- round down to power of 2
	ilog2c		-- round up to power of 2

This is useful for back-converting from masks to bit values.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-05-31 10:25:37 -07:00
..
altreg.mac Add copyright headers to standard macro packages 2009-06-28 17:18:13 -07:00
fp.mac New %use package "fp" 2010-05-07 13:42:09 -07:00
ifunc.mac eval: add general support for "integer functions" and add ilog2*() 2012-05-31 10:25:37 -07:00
smartalign.mac Rename SEGALIGN to SECTALIGN 2010-04-21 18:09:54 +04:00