#7899 - Lupin - Fri Jun 27, 2003 8:05 pm
How could I interpolate between two Integers? I have an "time"-Value wich goes from 0-7 and 2 values wich I want to interpolate between, this has to be done fast, the basic formular for doing this in normal math would be new=src+((dest-source)*t), but now I need to do this really fast by using asm and only integer based calculations.
I think this is possible by using some and/or/shift operators, but I'm not that good at bit fiddling, so maybe someone of you has done something like this before.
I need this to create an fast lookup table for integer division wich covers the whole range of an 16bit value (maybe even an 32bit one), by using an very small lookup table
I think this is possible by using some and/or/shift operators, but I'm not that good at bit fiddling, so maybe someone of you has done something like this before.
I need this to create an fast lookup table for integer division wich covers the whole range of an 16bit value (maybe even an 32bit one), by using an very small lookup table