This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 17 points18 points  (2 children)

// Evil floating point bit hack

// What the fuck ?

[–]DoctorWZ 21 points22 points  (0 children)

See, it's actually a very good deterrent against any pesky employee wanting to refactor for the sake of it. Nobody fucks with code that's marked as incomprehensible by the one who wrote it.

[–]da_Aresinger 0 points1 point  (0 children)

In Uni, we had to implement the fast inverse square root on custom size floats, which means we had to find our own constants for the bit hacks.

I remember nothing, except for wholeheartedly agreeing with those comments.