This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

speed of arm_sin_f32 function

Note: This was originally posted on 26th April 2013 at http://forums.arm.com

Hello,

I tried to increase the speed of the sin/cos calculation (float) for a Clark/Park  tansformation by using the arm_sin_f32 functions of the CMSIS Lib.
My µC is a Cortex M4 with FPU.
I've compared the execution speeds of following functions:

standard from math.h:
sinf(float x)

CMSIS DSP LIB from arm_math.h
arm_sin_f32(float32_t x)

The standard sinf() function is 20% faster then the "fast" arm_sin_f32() function.

Has anyone experience by using arm_sin_f32(), or increasing speed of float sin/cos calculation?

Thanks in Advance