Add generic ilog2 functions
commit084b13227e7f5597666391b9cc7dcc9cb91a2657
authorH. Peter Anvin <hpa@linux.intel.com>
Wed, 21 Apr 2010 23:43:20 +0000 (21 16:43 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 21 Apr 2010 23:43:20 +0000 (21 16:43 -0700)
tree5c1fb372a20bf8354780fc898f6b4887d768bdea
parent34543131ca11f7881329e869c695c06184309afe
Add generic ilog2 functions

Add ilog2_{32,64}() and alignlog2_{32,64}() ... the latter is intended
for alignment statements and return -1 for non-power-of-2 other than 0
(which returns 0).

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Makefile.in
Mkfiles/msvc.mak
Mkfiles/netware.mak
Mkfiles/openwcom.mak
Mkfiles/owlinux.mak
ilog2.c [new file with mode: 0644]
nasmlib.h