Fast implementation of trigonometric functions for c++

后端 未结 9 1850
孤城傲影
孤城傲影 2020-12-07 19:24

Short version: I\'d like to know whether there are implementations of the standard trigonometric functions that are faster than the ones included in math.h.

9条回答
  •  孤城傲影
    2020-12-07 19:43

    Quake 3's source has some code for precomputed sine/cos aimed at speed over precision, its not sse based that thus quite portable(both on architecture and intrinsic api). You might also find this summary of sse and sse2 based functions very interesting: http://gruntthepeon.free.fr/ssemath/

提交回复
热议问题