Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] frounding math trouble with GCC 4.0.1

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] frounding math trouble with GCC 4.0.1


Chronological Thread 
  • From: "Laurent Rineau (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] frounding math trouble with GCC 4.0.1
  • Date: Fri, 29 May 2009 13:39:22 +0200
  • Organization: GeometryFactory

Le Thursday 28 May 2009 12:17:37, Ben Supnik a écrit :
> when I had rounding math off (the default on OS X)

By default, the compiler optimizer assumes that the code it is compiling does
not bother about the norm IEEE754. With most pieces of code, that is true.
For
the few pieces of code that need a precise conformance to IEEE754, -frounding-
math must be used.

Since g++-4.4, CGAL could probably use:
#pragma optimize "-frounding-math"
in its code, or use the C99 FENV_ACCESS:
#pragma STDC FENV_ACCESS ON
instead of using that command line option. That way, users would not have
problem if they forgot that option.

--
Laurent Rineau, PhD
Engineer at GeometryFactory
http://www.geometryfactory.com/




Archive powered by MHonArc 2.6.16.

Top of Page