请高手指点指点
用FPU能把时间压缩多少?
开放运算用到浮点运算,使用FPU应该运算速度更快。
15. union{
16. int intPart;
17. float floatPart;
18. } convertor;
19. union{
20. int intPart;
21. float floatPart;
22. } convertor2;
23. convertor.floatPart = x;
24. convertor2.floatPart = x;
25. convertor.intPart = 0x1FBCF800 + (convertor.intPart >> 1);
26. convertor2.intPart = 0x5f3759df - (convertor2.intPart >> 1);
27. return 0.5f*(convertor.floatPart + (x * convertor2.floatPart));
28. }
————————————————
版权声明:本文为CSDN博主「jieniyimiao」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:http://blog.csdn.net/u013467442/article/details/41147487
这个是求开方函数吗?
点进链接去看一下,我也不知道开方是什么意思