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

后端 未结 3 1019
伪装坚强ぢ
伪装坚强ぢ 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

    What are the possible values of x and y? If they are within reasonable bounds, building some lookup tables could help.

提交回复
热议问题