This is the mail archive of the gcc-patches@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] |
No, because -0.0 >= 0.0For this testcase with -ffast-math, can't we just do copysign (1.0, __x) ?double sgn (double __x) { return __x >= 0.0 ? 1.0 : -1.0; }
Even with -ffast-math? IIRC, there [are | should be] no signed zeros with fast math.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |