This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Add C99 FP_FAST_FMA{,F,L} macros to math.h
On Mon, Oct 18, 2010 at 05:42:24PM +0200, Jakub Jelinek wrote:
> On Fri, Oct 15, 2010 at 04:36:51PM -0400, Michael Meissner wrote:
> > * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
> > multiply/add.
> > (FP_FAST_FMAF): Ditto.
>
> s390{,x} should do the same and likewise ia64 (in that case even
> #define FP_FAST_FMAL 1
> ). For other targets that have their own bits/mathdef.h, the bits/mathdef.h
> hunks should be duplicated there too -
> sysdeps/{i386,x86_64,sparc,sh/sh4}/bits/mathdef.h
> (at least for i386 and x86_64, that is, sh probably don't
> currently have an instruction for fma, for sparc I think SPARCVI/SPARCVII
> have it, but whether Linux supports those chips or not is unclear to me,
> DaveM might know).
Yep, though I suspect it may be better for port maintainers to do this, then
me. I can clone the #ifdef's in the generic mathdef.h if desired, but I'm not
really setup to test them.
--
Michael Meissner, IBM
5 Technology Place Drive, M/S 2757, Westford, MA 01886-3141, USA
meissner@linux.vnet.ibm.com