Use std::min and std::max
Complete the previous commit by also removing the inline min and max
functions defined in HeadSpin.h without breaking (3ds)Max compilation
Use std::swap
There is no benefit to the hsFopen macro
Safer type-punning
Use standard (f)abs functions
Remove some additional usless / unused junk
Move <algorithm> header out of HeadSpin.h
Some fixes for Clang
Merge pull request #441 from zrax/headspin_cleanup

HeadSpin.h cleanup