Hummus and Magnets personal blog

Understanding the math behind 0x5f3759df and the fast inverse square root (2012)

This post is about the magic constant 0x5f3759df and an extremely neat hack, fast inverse square root, which is where the constant comes from.
Points
222
HN comments
44
Submissions
2
Cited by
4 commenters

Math & AlgorithmsSoftware Engineering2017

On Hacker News

SubmittedTitle on HNPointsComments
Aug 16, 2017Understanding the math behind 0x5f3759df and the fast inverse square root (2012) by ColinWright22219
Oct 28, 20140x5f3759df and the fast inverse square root (2012) by carljoseph12525

Cited in comments

Linked from 4 Hacker News comments by 4 different people, from Dec 2015 to Aug 2025.

Most recent:

Search every comment that links here →

More from Hummus and Magnets

All 3 posts →

Related posts from the same era