My reading of the documentation tells me that Accelerate / vfp.h exists on iOS and that the trigger functions are there. However, I have not tried to use it, so I will continue, believing that I am mistaken.
Fast trigger implementations are not very smart. There was a mathematical thing called the Taylor extension, which says something like:
sin(theta+epsilon) = sin(theta) + x*epsilon + small corrections
Thus, this means that you can create a lookup table that for theta key values records sin (theta) and x. Then you execute the above equation, which is really fast (look at the acceleration of Fused Add and Multiply).
user23743
source share