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: negation of float on H8300


>Not if it's a signalling NaN.  If the chip only supports QNaNs, then
>you might be able to get away with it.

>Flipping the sign bit is correct even for a signalling NaN.  See item 2 in
>the Appendix of IEEE Std 754-1985 (Binary Floating-Point Arithmetic).
>See also item 2 in the Appendix of IEEE Std 854-1987 (Radix-Independent
>Floating-Point Arithmetic).

>Jim

I'll try to write out a patch for this soon.

Regards
Sanjiv


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