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