This is the mail archive of the gcc@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]

Re: Darwin long doubles and controlled rounding


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().


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]