This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc 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]

[Bug math/18647] powf(-0x1.000002p0, 0x1p30) returns 0 instead of +inf


https://sourceware.org/bugzilla/show_bug.cgi?id=18647

--- Comment #1 from dhekir at gmail dot com ---
Some extra information:

- powf(x,y) returns 0 instead of +inf for approximately all of these values:
  -0x1.000002p0 <= x <= -0x1.00000ep0
         0x1p27  < y <  +inf

- Although it only happens with powf() and in a very narrow range, one reason
why it is especially troublesome is that, for x < -1 and a large even y, the
result should be in the interval [1,+inf], and so the zero introduces a
discontinuity. And introducing zeros where none are expected could lead to some
(unlikely) division by zero errors...

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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