Bitwise Optimized Javascript Math Functions