We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
I can't see any problems either. According to the standard, everything's quite simple: http://www.psc.edu/general/software/packages/ieee/ieee.html Still Keil's implementation of fabs is not that simple. I can't see a reason for that. - Mike