This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ColdFire soft-float optimizations


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]