Vectorized Trig functions in C?

前端 未结 2 1538
长情又很酷
长情又很酷 2021-02-15 21:40

I\'m looking to calculate highly parallelized trig functions (in block of like 1024), and I\'d like to take advantage of at least some of the parallelism that modern architectur

2条回答
  •  广开言路
    2021-02-15 22:20

    Since you are looking to calculate harmonics here, I have some code that addressed a similar problem. It is vectorized already and faster than anything else I have found. As a side benefit, you get the cosine for free.

提交回复
热议问题