This is the mail archive of the
mailing list for the GCC project.
Re: fabs(-0.0) and soft-float
Aldy Hernandez <firstname.lastname@example.org> writes:
| > 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.
| As in a patch to make it do:?
| if (x > 0)
| x = x;
| x = -x;
Yes, RTH and I agree it does a good job for the time being.