On 2005-06-13 10:22:34 -0400, Andrew Pinski wrote: > On Jun 13, 2005, at 10:21 AM, Christian Bodenstedt wrote: > >last weekend I got some strange results from a C-program doing some > >comparisons on double-values. I know, usually it's no good idea to > >compare two doubles with "==". But when they are calculated from the > >same values with the same operations, both doubles should have the > >same value, shouldn't they?
Not necessarily. > Did you read the non-bug section in <http://gcc.gnu.org/bugs.html>? > > This is known as GCC PR 323 which is not a bug: > <http://gcc.gnu.org/PR323>. It is a bug. -- Vincent Lefèvre <[EMAIL PROTECTED]> - 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