#46603 - grumpycat - Mon Jun 27, 2005 10:37 pm
The Logarithmic Number System is an alternative representation of real numbers (alternative to floating point representation).
In LNS arithmetic multiplication and division become addition and subtraction. Squares and square roots become left and right shifts. Addition and subtraction are slightly complicated and require look-up tables.
In my "Thrust" game there were a lot of multiply, divide and square-root ops, but back then I hadn't discovered LNS.
I wonder if anyone here has played with LNS algorithms and, if so, what are your thoughts on its applicability to GBA games?
As an aside, I have been using fixed point numbers for going on 20 years now - they're perfectly fine, but I am intrigued by essentially "free" divides and square roots provided by LNS.
Grumpy.
In LNS arithmetic multiplication and division become addition and subtraction. Squares and square roots become left and right shifts. Addition and subtraction are slightly complicated and require look-up tables.
In my "Thrust" game there were a lot of multiply, divide and square-root ops, but back then I hadn't discovered LNS.
I wonder if anyone here has played with LNS algorithms and, if so, what are your thoughts on its applicability to GBA games?
As an aside, I have been using fixed point numbers for going on 20 years now - they're perfectly fine, but I am intrigued by essentially "free" divides and square roots provided by LNS.
Grumpy.