This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: FLT_ROUNDS not always 1?
- From: Richard Henderson <rth at redhat dot com>
- To: Stan Shebs <shebs at apple dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 25 Feb 2002 21:25:58 -0800
- Subject: Re: FLT_ROUNDS not always 1?
- References: <3C7B1192.878A41DE@apple.com>
On Mon, Feb 25, 2002 at 08:39:45PM -0800, Stan Shebs wrote:
> Is it really the case that for all GCC targets, fesetround() is
> a no-op that always returns 1?
No, it is not.
> 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 correctly yet?
Correct.
Actually, it would be trivial to add one that uses fegetround,
which will work everywhere that actually has fesetround.
Frankly I think it's silly that FLT_ROUNDS exists at all,
since it must represent the execution time state of rounding.
r~