[PATCH] Add __abssf2 and __absdf2 to libgcc

Richard Henderson rth@redhat.com
Tue Dec 3 23:51:00 GMT 2002


On Tue, Dec 03, 2002 at 10:29:24PM -0700, Roger Sayle wrote:
> This patch adds the functions __abssf2, __absdf2, __absxf2 and
> __abstf2 to the libgcc API, and provides generic implmentations
> in GCC's software floating point library.

Can you think of any reason why we shouldn't implement these
inline for all targets?  I mean, how hard is "reg &= 0x7fffffff"?

Add an entry to struct real_format that says which bit the 
sign bit is for the encoding and use store_bit_field to write
a zero.  Use -1 for "no sign bit in encoding", for c4x.  Not
that you should get that far, since c4x also implements abs?f
patterns.


r~



More information about the Gcc-patches mailing list