mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-27 13:10:29 +00:00
202c9deb15
It's better to use __builtin_fma if it works. Use it for gcc 4.6 and higher. Move the x86-64 dla.h to the correct place.
18 lines
405 B
C
18 lines
405 B
C
#include <features.h>
|
|
|
|
#ifdef __FMA4__
|
|
# if __GNUC_PREREQ (4, 6)
|
|
# define DLA_FMS(x,y,z) \
|
|
__builtin_fma (x, y, -(z))
|
|
# else
|
|
# define DLA_FMS(x,y,z) \
|
|
({ double __z; \
|
|
asm ("vfmsubsd %3, %2, %1, %0" \
|
|
: "=x" (__z) \
|
|
: "x" ((double) (x)), "xm" ((double) (y)) , "x" ((double) (z))); \
|
|
__z; })
|
|
# endif
|
|
#endif
|
|
|
|
#include "sysdeps/ieee754/dbl-64/dla.h"
|