| 1 | #define NO_MATH_REDIRECT |
| 2 | #include <sparc-ifunc.h> |
| 3 | #define dfmal __hide_dfmal |
| 4 | #define f32xfmaf64 __hide_f32xfmaf64 |
| 5 | #include <math.h> |
| 6 | #undef dfmal |
| 7 | #undef f32xfmaf64 |
| 8 | #include <libm-alias-double.h> |
| 9 | #include <math-narrow-alias.h> |
| 10 | |
| 11 | extern __typeof (fma) __fma_vis3 attribute_hidden; |
| 12 | extern __typeof (fma) __fma_generic attribute_hidden; |
| 13 | |
| 14 | sparc_libm_ifunc (__fma, |
| 15 | hwcap & HWCAP_SPARC_FMAF |
| 16 | ? __fma_vis3 |
| 17 | : __fma_generic); |
| 18 | libm_alias_double (__fma, fma) |
| 19 | libm_alias_double_narrow (__fma, fma) |