摘要:
算法级别的难,举个例子,Quake 3中求反平方根的算法,没人解释基本看不懂: float InvSqrt (float x){ float xhalf = 0.5f*x; int i = *(int*)&x; i = 0x5f3759df - (i>>1); x = *(float*)&i; x 阅读全文
posted @ 2021-06-25 11:18
不及格的程序员-八神
阅读(366)
评论(0)
推荐(0)
不及格的程序员-八神 |
|