On 2010-03-18 14:43:39 +0100, Vincent Lefevre wrote: > This violates the ISO C99 standard for -0.0. > > According to N1256, F.9.4.4: > > pow(±0, y) returns +0 for y > 0 and not an odd integer. > > So, pow(-0.0, 0.5) should return +0. But sqrt(-0.0) should return -0 > according to the IEEE 754 standard (and F.9.4.5 from ISO C99).
I've reported the problem: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43419 -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <http://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)