PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Another fixed point question, ;)

On pocket pc hardware, if I have 4 16.16 numbers a b c d

If I want to do this:

(a*b)+(c*d)


Is it faster to leave the intermediate result in 32.32 and do a 64bit add or shift each result of the multiply and do a 32bit add? (creating temps on the way)
Depends on how stupid the compiler is feeling today. :mrgreen: In assembler I think the former would be faster - a 64-bit add is only 2 cycles and you can have it for free with the 64-bit multiply if you choose the right (smlal) instructions.
Hi refactor :oops: refractor,

Some time in the in the future (talking at least a few months here) would you be interested in doing some contract work for me to optimise some time critical code into assembler for my physics engine?

This engine has taken me longer than I thought due to numerical precision errors that either cause drifting, or things falling through each other etc (pulling hair out time) but its in a much better state now.

I say some time in the future as Id rather write some solid game code around it first to see if I need to add remove features before optimisation, but well im testing the waters so to speak.
Some time in the in the future (talking at least a few months here) would you be interested in doing some contract work for me to optimise some time critical code into assembler for my physics engine?
Sure, so long as you get my name right next time :P We can discuss it by PM/mail.

And yes, get it solid before it gets optimised. "Premature optimization is the root of all evil" and all that. :)
:oops: :oops: :oops: :oops: funny thing is i have a pet hate about that, refractor, sorry * 1000

i'll pm you about things in the future nice to know you could be available