public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug math/3268] New: fma for soft-fp is not correct.
@ 2006-09-26 21:22 sjmunroe at us dot ibm dot com
  2006-09-26 21:23 ` [Bug math/3268] " sjmunroe at us dot ibm dot com
                   ` (28 more replies)
  0 siblings, 29 replies; 30+ messages in thread
From: sjmunroe at us dot ibm dot com @ 2006-09-26 21:22 UTC (permalink / raw)
  To: glibc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1053 bytes --]

The current ./math/s_fma[fl].c implementation simply implements:

double
__fma (double x, double y, double z)
{
  return (x * y) + z;
}

Which does mot meet the requirement of 754r

"fused multiply-add: The operation fma(x,y,z) computes (x ×y )+z as if with
unbounded range and precision, rounding only once to the destination format; see
subclause 5.1."

This implies (for example) that for double that the 106 bit result of the
multiply be passed unrounded to the add (53 bit) and then final result found to
53 bits.

-- 
           Summary: fma for soft-fp is not correct.
           Product: glibc
           Version: 2.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: math
        AssignedTo: aj at suse dot de
        ReportedBy: sjmunroe at us dot ibm dot com
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=3268

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

end of thread, other threads:[~2010-06-29 11:50 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-26 21:22 [Bug math/3268] New: fma for soft-fp is not correct sjmunroe at us dot ibm dot com
2006-09-26 21:23 ` [Bug math/3268] " sjmunroe at us dot ibm dot com
2006-09-26 21:24 ` sjmunroe at us dot ibm dot com
2006-09-26 21:27 ` sjmunroe at us dot ibm dot com
2006-09-26 21:27 ` sjmunroe at us dot ibm dot com
2006-09-26 21:39 ` sjmunroe at us dot ibm dot com
2006-10-04 18:27 ` [Bug math/3268] fma for all targets without hardware fma instructions is incorrect sjmunroe at us dot ibm dot com
2006-10-05 19:35 ` sjmunroe at us dot ibm dot com
2006-10-05 19:36 ` sjmunroe at us dot ibm dot com
2006-10-05 19:47 ` sjmunroe at us dot ibm dot com
2007-01-22 23:54 ` sjmunroe at us dot ibm dot com
2007-01-23  0:01 ` sjmunroe at us dot ibm dot com
2007-01-23  0:03 ` sjmunroe at us dot ibm dot com
2007-01-23  0:07 ` sjmunroe at us dot ibm dot com
2007-01-23  0:14 ` sjmunroe at us dot ibm dot com
2007-02-05 20:50 ` jakub at redhat dot com
2007-02-06 16:30 ` sjmunroe at us dot ibm dot com
2007-02-06 16:31 ` sjmunroe at us dot ibm dot com
2007-02-06 16:33 ` sjmunroe at us dot ibm dot com
2007-02-18 13:51 ` aj at suse dot de
2007-02-26 22:08 ` sjmunroe at us dot ibm dot com
2007-04-03 17:58 ` sjmunroe at us dot ibm dot com
2007-04-03 17:59 ` joseph at codesourcery dot com
2007-04-03 18:00 ` sjmunroe at us dot ibm dot com
2007-04-03 19:06 ` sjmunroe at us dot ibm dot com
2007-04-03 19:39 ` sjmunroe at us dot ibm dot com
2007-10-22 14:44 ` vincent+libc at vinc17 dot org
2010-02-02 21:56 ` nbowler at draconx dot ca
2010-02-02 21:57 ` nbowler at draconx dot ca
2010-06-29 11:50 ` zimmerma+gcc at loria dot fr

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).