logoalt Hacker News

bee_ridertoday at 1:07 AM2 repliesview on HN

Quake 2 was the one with the clever approximate inverse square root code, right? I wonder (especially since there’s an instruction nowadays to draw inspiration from), can you implement it “in hardware,” so to speak?


Replies

shaknatoday at 8:59 AM

In x86 that would be the SIMD rsqrtps [0]. So absolutely possible to do at the hardware level.

[0] https://www.felixcloutier.com/x86/rsqrtps

BoredPositrontoday at 2:03 AM

No that was Q3 Arena.