reduced number of operations; using fast_math compiler option
reduced a bit of operations