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: fabs(-0.0) and soft-float


On Thu, Oct 03, 2002 at 05:00:19AM +0200, Gabriel Dos Reis wrote:
> How about unsetting the sign-bit?  I would expect fabs() clearing the
> signbit of a QNaN. 

Indeed.

We could probably come up with some way to point at the sign bit
for implementing ABS and NEG for a particular target.  In the 
meantime, the suggested change works for at least the normal
numbers.


r~


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