Re:Magical Square Root Implementation In Quake III by Carmack
by snotrockets on Friday February 21, 2014 @01:45PM
(#7278580)
Why is this weird? It's the textbook method for doing hashes.
Re:Magical Square Root Implementation In Quake III by Carmack
by matwood on Friday February 21, 2014 @05:15PM
(#7279822)
It is textbook, but the poster asked for seemingly random numbers in code. Based on all the places the invsqrt method has popped up, it also was a textbook method for doing it quickly.
For example:
public static int hashCode(double a[])
{
if (a == null) return 0;