fast branchless sign function

this implementation of the sign function is fast, branchless and works with any glm type

reference
http://stackoverflow.com/questions/1903954/is-there-a-standard-sign-function-signum-sgn-in-c-c