The weblog of Terry Burton, Leicester, UK
float InvSqrt (float x) { float xhalf = 0.5f*x; int i = *(int*)&x; i = 0x5f3759df - (i>>1); x = *(float*)&i; x = x*(1.5f - xhalf*x*x); return x;
Good to see you blogging again Terry. I mentioned you (probably unfairly) in a recent blog entry :http://www.voidspace.org.uk/python/weblog/arch_d7_2006_11_25.shtml#e562
Post a Comment
1 comments:
Good to see you blogging again Terry. I mentioned you (probably unfairly) in a recent blog entry :
http://www.voidspace.org.uk/python/weblog/arch_d7_2006_11_25.shtml#e562
Post a Comment