This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Darwin long doubles and controlled rounding
- From: Geoffrey Keating <geoffk at apple dot com>
- To: Roberto Bagnara <bagnara at cs dot unipr dot it>
- Cc: gcc at gcc dot gnu dot org
- Date: 03 Apr 2006 18:35:30 -0700
- Subject: Re: Darwin long doubles and controlled rounding
- References: <4409D59A.7000604@cs.unipr.it>
Roberto Bagnara <bagnara@cs.unipr.it> writes:
> Hi there,
>
> I have read the files darwin-ldouble* in GCC 4.1.0.
> What I would like do know is whether I can expect
> long doubles on Darwin to comply with ISO C99 7.6
> (Floating-point environment).
They can be made compliant with that section, but it requires
cooperation from the project providing fenv.h.
> I am particularly interested in the possibility
> of setting the rounding mode with fesetround().
> Is this supported?
This implementation only supports one rounding mode, FE_TONEAREST, so
it's not useful to call fesetround().