5 ms·
... until it gets to i = 0x5f3759df - ( i >> 1 );
by PennRobotics 4y ago
... until it gets to
i = 0x5f3759df - ( i >> 1 );
- sophacles 4y ago... 4. What the fuck? ... And returns the approximate inverse square root.
- Terr_ 4y agoTBF, that is actually a situation where the big pattern-matching trained system would probably easily find and regurgitate the correct answer, just from prior exposure to a very distinctive bit of code.
- PaulDavisThe1st 4y agowhat would its answer be based upon? Seeing that "very distinctive bit of code" doesn't provide the "TLDR" style answer ...
- Terr_ 4y ago> what would its answer be based upon? I'm assuming that if you throw enough training-data at it, it will have seen the same "equation" (or at least the constant) right after an explanatory code-comment.
- squeaky-clean 4y agoIf you Google "0x5f3759df" and the first result is the Fast Inverse Square Root wikipedia article. Other similar situations would probably confused it, but 0x5f3759df is pretty famous at this point.
- intelVISA 4y ago// what the fuck?