[PATCH][BZ #3268] Add fma single/double implementations to soft-fp

Steven Munroe munroesj@us.ibm.com
Thu Oct 12 16:40:00 GMT 2006


The soft-fp implementation of IBM extended long double exposed a general
lack to correct fma implemetations for platforms that don't implement
fma in hardware (soft-fp plus hard-fp that doesn't implement fma).

This patch provides a basic soft-fp implementation for single and double
fma.  I assume that __fmadf4/__fmasf4 are acceptable names for these
functions. These implementation needs to be in libc.so to access the
soft-float exeception and rounding modes. Then the s_fma.c/s_fmaf.c (in
libm.so) need to be overridden for nofpu to call __fmadf4/__fmasf4 directly.

This patch also updates libm-test.inc to actually test for the full
percision of fma.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ppc-fma-20061005.txt
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20061012/e6852fa6/attachment.txt>


More information about the Libc-alpha mailing list