by MirekCz » Feb 27, 2002 @ 8:16am
digby:yeah, right, but if you take a look at it, they use 28.4 fixedpoint numbers... this might be good and fine for a little demo, but without at least 24:8fixedpoint numbers your accurancy is doomed (personally I try to migrate to 16:16 with everything that can be migrated, my line function using 24:8 often looked shitty, after transfering it to 16:16 it's rock stable and I don't get overflow. It wasn't easy to modify it thru)
My main problem atm are divides. While you can quite simple increase the mul precision by using two mul instructions per fixedpoint multiply, how can I help myself with divs? And 2 divs isn't really a solution here because of speed issues.
I have seen some asm code here before for a faster divide, would it be possible to give a lil explanation on it? with C source if possible? Maybe this way I could write a better divide function.
Thanks for your time.
With best regards,
Mirek Czerwinski