Re: [Freetel-codec2] Encoding decoding time TIVA

2016-06-20 Thread David Rowe
Hello Maxime, Good work on you optimisation! I would be interested to see if similar changes produce the same performance gains on the STM32F4 platform. Would anyone like to try those changes, run some benchmarks, and post the results? When I performed optimisation work in the past, I wrote

Re: [Freetel-codec2] Encoding decoding time TIVA

2016-06-20 Thread Maxime Guyon
I'm agree with glen english for the float parts, use only double where it's necessary... Also Bruce, it seem that many CPU which can handle double operation can also handle simultaneous single float operation which will not reduce the speed... Saving cycle is important on embedded platform and

Re: [Freetel-codec2] Encoding decoding time TIVA

2016-06-20 Thread Bruce Perens
Many, perhaps most, CPUs have a float type that is slower than double, because their internal hardware is double-only and they convert float to double and back to float on every operation. Don't change the main source to float types. Use macros, typedefs, or compiler switches. Also, David will

Re: [Freetel-codec2] Encoding decoding time TIVA

2016-06-20 Thread Maxime Guyon
Hello, Good news, after some work it seem I've got a working solution. @Steve, note that the CMSIS do not provide function for *atan2()* and *floor()...* First I've tested to do only single precision operation (do not allow double operation because M4 cannot handle double precision operation on