ginclude/float.h has: /* Addition rounds to 0: zero, 1: nearest, 2: +inf, 3: -inf, -1: unknown. */ /* ??? This is supposed to change with calls to fesetround in <fenv.h>. */ #undef FLT_ROUNDS #define FLT_ROUNDS 1
GCC should have a builtin which returns the correct value for FLT_ROUNDS at any time, and use it in this header. -- Summary: FLT_ROUNDS is wrong Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: FIXME Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: geoffk at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30569