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]

Re: Kahan's Floating Point Test


Talking about this, I usually do a manual flush to memory in order to have
correct rounding when I need it, I use something like the following :

inline double force_to_mem (double x)
{
  asm("" : "=m"(x) : "m"(x));
  return x;
}

Unfortunately, this code doesn't work for C++ with GCC 3.0 on x86.
(PR c++/2115, still not analyzed...  hint, hint :)

And I have no other idea how to do this reliably for GCC 3...

-- 
Sylvain


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