I just did some benchmarks on my early implementation of something I don't wanna mention*, with both fixed-point and floating-point arithmetic, and floats win hands down, and I didn't really expect that I must say.
I always heard that it was faster to use fixed-point arithmetic on the GP2X rather than floating-point due to the lack of a FPU, but after all it's not that simple to perform fixed-point operations, and we got a pretty optimized software handling of floats.
So here's what I'm wondering, isn't float-point arithmetic faster than fixed-point arithmetic on the GP2X in spite of the lack of a FPU, or can fixed-point arithmetic be faster that floating-point no matter what and I should implement better fixed-point functions?
*so that the discussion doesn't drift away from the fixed vs. float performance debate
I always heard that it was faster to use fixed-point arithmetic on the GP2X rather than floating-point due to the lack of a FPU, but after all it's not that simple to perform fixed-point operations, and we got a pretty optimized software handling of floats.
So here's what I'm wondering, isn't float-point arithmetic faster than fixed-point arithmetic on the GP2X in spite of the lack of a FPU, or can fixed-point arithmetic be faster that floating-point no matter what and I should implement better fixed-point functions?
*so that the discussion doesn't drift away from the fixed vs. float performance debate