4 ms·
Nice. I'd love to see how this changes when you have SIMD and multiple cosines to compute in parallel. Also when you have to compute sine and cosine simultaneou
by xipix 3y ago
Nice. I'd love to see how this changes when you have SIMD and multiple cosines to compute in parallel. Also when you have to compute sine and cosine simultaneously which is often the case, and then you may be more interested in polar error than cartesian error.
- p0nce 3y agoYou can do this with: https://github.com/RJVB/sse_mathfun https://github.com/RJVB/sse_mathfun Those functions do not have the same safety as libc, but even for scalar sin/cos it can be faster.