This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Make ieee754 fma tolerate architectures without exceptionsupport.
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Chris Metcalf <cmetcalf at tilera dot com>
- Cc: <libc-alpha at sourceware dot org>, Bruno Haible <bruno at clisp dot org>
- Date: Mon, 5 Nov 2012 18:16:21 +0000
- Subject: Re: [PATCH] Make ieee754 fma tolerate architectures without exceptionsupport.
- References: <201211052144.qA5LiJ1w031882@s2q-1d.internal.tilera.com>
On Mon, 5 Nov 2012, Chris Metcalf wrote:
> +/* For IEEE754 architectures without exception support, tolerate imprecision
> + in __fma but allow using this implementation instead of the generic one.
It really shouldn't be hard to adapt Bruno Haible's gnulib fma / fmaf /
fmal to replace the generic versions with something accurate if slow (bug
13304) - but this does require approval to use the code under LGPLv2.1+
(the glibc license).
(I don't know if the gnulib version passes all the tests I've added to
glibc lately for various fma bugs I've fixed - there's still one left to
fix, bug 14793 - but any problems those tests show ought to be easy to
fix.)
--
Joseph S. Myers
joseph@codesourcery.com