mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 04:50:07 +00:00
Add C99 FP_FAST_FMA{,F,L} macros to math.h
This commit is contained in:
parent
6ce0bb748d
commit
d20501241e
10
ChangeLog
10
ChangeLog
@ -1,3 +1,13 @@
|
||||
2010-10-19 Michael Meissner <meissner@linux.vnet.ibm.com>
|
||||
|
||||
* bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
|
||||
builtins, define the macros in the C99 standard.
|
||||
(FP_FAST_FMAF): Likewise.
|
||||
(FP_FAST_FMAL): Likewise.
|
||||
* sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
|
||||
multiply/add.
|
||||
(FP_FAST_FMAF): Likewise.
|
||||
|
||||
2010-10-15 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
[BZ #3268]
|
||||
|
@ -34,6 +34,20 @@ typedef double double_t; /* `double' expressions are evaluated as
|
||||
# define FP_ILOGB0 (-2147483647)
|
||||
# define FP_ILOGBNAN 2147483647
|
||||
|
||||
/* The GCC 4.6 compiler will define __FP_FAST_FMA{,F,L} if the fma{,f,l}
|
||||
builtins are supported. */
|
||||
#if __FP_FAST_FMA
|
||||
# define FP_FAST_FMA 1
|
||||
#endif
|
||||
|
||||
#if __FP_FAST_FMAF
|
||||
# define FP_FAST_FMAF 1
|
||||
#endif
|
||||
|
||||
#if __FP_FAST_FMAL
|
||||
# define FP_FAST_FMAL 1
|
||||
#endif
|
||||
|
||||
#endif /* ISO C99 */
|
||||
|
||||
#ifndef __NO_LONG_DOUBLE_MATH
|
||||
|
@ -61,4 +61,8 @@ typedef double double_t;
|
||||
# define FP_ILOGB0 (-2147483647)
|
||||
# define FP_ILOGBNAN (2147483647)
|
||||
|
||||
/* The powerpc has a combined multiply/add instruction. */
|
||||
# define FP_FAST_FMA 1
|
||||
# define FP_FAST_FMAF 1
|
||||
|
||||
#endif /* ISO C99 */
|
||||
|
Loading…
Reference in New Issue
Block a user