Origin of Quake3's Fast InvSqrt()
geo writes "Beyond3D.com's Ryszard Sommefeldt dons his seersucker hunting jacket and meerschaum pipe to take on his secret identity as graphics code sleuth extraordinaire. In today's thrilling installment, the origins of one of the more famous snippets of graphics code in recent years is under the microscope — Quake3's Fast InvSqrt(), which has been known to cause strong geeks to go wobbly in the knees while contemplating its simple beauty and power." From the article: ""
"English motherfucker, do you speak it?" Anyone care to explain what that function does?
Only the State obtains its revenue by coercion. - Murray Rothbard
I have a truly marvelous proof of who wrote this code which this comment box is too narrow to contain.
intellectual property law is philosophically incoherent. it is your moral duty to ignore it or sabotage it
" Fast InvSqrt(), which has been known to cause strong geeks to go wobbly in the knees "
I was a little worried when Slashdot posted the Britney Spears beaver pictures, but they now have their credibility back as the home of "News for Nerds".
Oh You POS
Anyone who has ever played a computer game should pay up.
Hmmmm
Lost at C:>. Found at C.
Naah, just kidding. They both deserve a spot in the Clever Hacks Hall of Fame
Suddenly I'm very scared that Ballmer will want to InvSqrt me some pictures of his kids.
Nope. It's when it goes in instead of out.
...the work of John Romero. Apparently he was going to call it the MakeYouMyBitch() function. ;P
-"...bad old ideas look confusingly fresh when they are packaged as technology" - Jaron Lanier (Digital Maoism on Edge.o
Ohhhhhh, now I get it... [Looks furtively around to see if anyone knows he doesn't get it]
float InvSqrt(float x) { float xhalf = 0.5f*x; int i = *(int*) i = 0x5f3759df - (i >> 1); x = *(float*) x = x*(1.5f - xhalf*x*x); return x; } Asking John whether it was him or Michael returned a "not quite". But it's supposed to return a float!
I will forever be a student.
--
Evan
"$30 for the One True Ring. $10 each additional ring!" -- JRR "Bob" Tolkien
I wish there was an option to mod some of these posts "+1 Whoa".
(I'm (sorry))
You don't (happen to (program (lisp))) do you?
Yeah, the computing industry is full of people who resent smart programmers who don't program by the book. That's fine. Every programmer eventually finds their own level and there's no shortage of startup businesses who need web page designers.
Doesn't it make you feel good to know that our freedoms are protected by politicans, lawyers and journalists.