Fast 1/X division (reciprocal)

后端 未结 6 1280
忘掉有多难
忘掉有多难 2020-12-29 22:46

Is there some way to improve reciprocal (division 1 over X) with respect to speed, if the precision is not crucial?

So, I need to calculate 1/X. Is there so

6条回答
  •  攒了一身酷
    2020-12-29 23:11

    The fastest way that I know of is to use SIMD operations. http://msdn.microsoft.com/en-us/library/796k1tty(v=vs.90).aspx

提交回复
热议问题