ColdFire soft-float optimizations
Jim Wilson
wilson@specifixinc.com
Mon Jun 7 05:30:00 GMT 2004
Peter Barada wrote:
> As an example, for the absolute value of a SPFP value, the sign bit can
> be cleared via an integer instruction instead of having to call out to
> the FP library. This would be valid for all normal SPFP values and
> infinity.
This is valid for all numbers, and many targets, including the m68k
port, already do this by default. The IEEE FP standard explicitly says
that abs can be implemented as a non-arithmetic operation, and hence
there is no need to worry about NaNs here. This is in the appendix.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com
More information about the Gcc
mailing list