This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

abs() / fabs() shortcut by clearing sign bit

I am optimizing my code and where I need the absolute value of a float I want to just clear the sign bit, instead of using fabs(). Is this a safe method? I can't see any problems.
Comments please.
Andy