Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
speed of arm_sin_f32 function
Jump...
Cancel
Locked
Locked
Replies
2 replies
Subscribers
119 subscribers
Views
8913 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
How was your experience today?
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
Thomas Pritzen
over 12 years ago
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
Parents
Peter Harris
over 12 years ago
Note: This was originally posted on 26th April 2013 at
http://forums.arm.com
The usual approach to making sin and cos faster is to exploit the knowledge of your algorithm to have a "maximal error" version rather than a fully accurate fp32 value - i.e. if you only need 18 bits of precision you can early out.
Cancel
Vote up
0
Vote down
Cancel
Reply
Peter Harris
over 12 years ago
Note: This was originally posted on 26th April 2013 at
http://forums.arm.com
The usual approach to making sin and cos faster is to exploit the knowledge of your algorithm to have a "maximal error" version rather than a fully accurate fp32 value - i.e. if you only need 18 bits of precision you can early out.
Cancel
Vote up
0
Vote down
Cancel
Children
No data