Fastest Inverse Square Root on iPhone

前端 未结 2 1619
广开言路
广开言路 2021-01-18 12:00

I\'m working on an iPhone app that involves certain physics calculations that are done thousands of times per second. I am working on optimizing the code to improve the fra

2条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-18 12:44

    https://code.google.com/p/math-neon/source/browse/trunk/math_sqrtf.c <- there's a neon implementation of invsqrt there, you should be able to copy the assembly bit as-is

提交回复
热议问题