This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add C99 FP_FAST_FMA{,F,L} macros to math.h


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]