[PATCH] Add C99 FP_FAST_FMA{,F,L} macros to math.h
Jakub Jelinek
jakub@redhat.com
Mon Oct 18 15:50:00 GMT 2010
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).
Jakub
More information about the Libc-alpha
mailing list