This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/3268] fma for all targets without hardware fma instructions is incorrect.
- From: "jakub at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 5 Feb 2007 20:50:06 -0000
- Subject: [Bug math/3268] fma for all targets without hardware fma instructions is incorrect.
- References: <20060926212234.3268.sjmunroe@us.ibm.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From jakub at redhat dot com 2007-02-05 20:50 -------
Why do you need a soft-fp fmaf other than generic
float fmaf (float x, float y, float z)
{
return ((double) x * y) + z;
}
?
As DFmode has more than twice as wide mantissa as SFmode and bigger exponent
range as well, (double) x * (double) y will be IMHO always precise, so no
rounding will ever happen there.
Similarly for fma and IEEE quad long double.
Only fmal needs soft-fp or gmp implementation, on all architectures that don't
have it in hardware, and fma for IEEE extended long double or IBM 2x double long
double.
--
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.