public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug math/16800] New: __ieee754_logf incorrect for 0 in round-downward mode
@ 2014-04-02 14:15 jsm28 at gcc dot gnu.org
  2014-04-02 17:42 ` [Bug math/16800] " jsm28 at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2014-04-02 14:15 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 16800
           Summary: __ieee754_logf incorrect for 0 in round-downward mode
           Product: glibc
           Version: 2.19
            Status: NEW
          Severity: normal
          Priority: P2
         Component: math
          Assignee: unassigned at sourceware dot org
          Reporter: jsm28 at gcc dot gnu.org

sysdeps/ieee754/flt-32/e_logf.c does

            if (__builtin_expect((ix&0x7fffffff)==0, 0))
                return -two25/(x-x);            /* log(+-0)=-inf */

which actually returns +Inf in round-downward mode.  (Because of the wrappers,
this is only actually visible when -lieee is used - not covered by the
testsuite - and indirectly for other functions such as catan / catanh that can
call __ieee754_logf directly in this case.)

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-06-12 19:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-02 14:15 [Bug math/16800] New: __ieee754_logf incorrect for 0 in round-downward mode jsm28 at gcc dot gnu.org
2014-04-02 17:42 ` [Bug math/16800] " jsm28 at gcc dot gnu.org
2014-04-02 17:42 ` cvs-commit at gcc dot gnu.org
2014-06-12 19:49 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).