This is the mail archive of the
mailing list for the GCC project.
FLT_ROUNDS not always 1?
- From: Stan Shebs <shebs at apple dot com>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 25 Feb 2002 20:39:45 -0800
- Subject: FLT_ROUNDS not always 1?
The C99 standard specifies that the value of FLT_ROUNDS in float.h
has an implementation-defined value that should reflect the result
of fesetround(). However, all the float-*.h in gcc/config set
FLT_ROUNDS to 1 unconditionally, irrespective of whether the target
is a system that defines fesetround.
Is it really the case that for all GCC targets, fesetround() is
a no-op that always returns 1? Or is it just that systems that
implement fesetround need to have their own config/float-foo.h that
defines FLT_ROUNDS in a non-constant way, and no one has done this