lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
Re: luajit bitops without normalizing
From
: Egor Skriptunoff <egor.skriptunoff@
...
>
Date
: Sat, 17 Mar 2012 19:58:41 +0000 (GMT)
> If there are better solutions, I'd be glad to hear them.
function rawBitScanR(num)
-- num can be negative
return math.floor(math.log(num % 2^32) / math.log(2)) + 1
end
References
:
luajit bitops without normalizing
,
C Bielert
Prev by Date:
luajit bitops without normalizing
Next by Date:
Re: My wish list
Previous by thread:
luajit bitops without normalizing
Next by thread:
OXS Lion and Xcode with Lua
Index(es):
Date
Thread