News for hackers. Stuff that matters.
Re:Fast Inverse Square Root by grecy on Monday November 02, 2020 @11:40PM (#24976347)
I've always wondered too if it would be possible to log all the values it's actually calculating the inverse square root for, and just save them in a lookup table. Or even just the most common x% of them if you could reliably know for which numbers its most commonly running the calculation on.
Re:Fast Inverse Square Root by jleahy on Tuesday November 03, 2020 @04:35AM (#24977992)
Even if you pretend it’s a few values (which it’s not, there are a lot of floats), this would be dramatically slower due to the cache miss involved.