Fast implementation/approximation of pow() function in C/C++

后端 未结 3 1005
伪装坚强ぢ
伪装坚强ぢ 2021-01-11 22:37

I m looking for a faster implementation or good a approximation of functions provided by cmath.

I need to speed up the following functions

3条回答
  •  天命终不由人
    2021-01-11 23:27

    I recommend the routines in the book "Math Toolkit for Real-Time Programming" by Jack W. Crenshaw.

    You might also want to post some of your code to show how you are calling these functions, as there may be some other higher level optimisation possibilities that are not apparent from the description given so far.

提交回复
热议问题