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: Processor-specific code


On 2005-04-15 18:56:23 +0100, Paul Brook wrote:
> On Friday 15 April 2005 18:43, Vincent Lefevre wrote:
> > It is not possible to change the rounding precision with <fenv.h>.
> 
> That's because it's an x86/m68k specific implementation detail and
> the compiler should be setting it for you.

Setting the rounding direction is also processor-specific, but
this is standardized.

> gcc doesn't do this because noone cares enough to implement it.

The user could also want to change the rounding precision dynamically.

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA


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