1 /* Multiple versions of fma. 2 Copyright (C) 2010-2022 Free Software Foundation, Inc. 3 This file is part of the GNU C Library. 4 5 The GNU C Library is free software; you can redistribute it and/or 6 modify it under the terms of the GNU Lesser General Public 7 License as published by the Free Software Foundation; either 8 version 2.1 of the License, or (at your option) any later version. 9 10 The GNU C Library is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 Lesser General Public License for more details. 14 15 You should have received a copy of the GNU Lesser General Public 16 License along with the GNU C Library; if not, see 17 <https://www.gnu.org/licenses/>. */ 18 19 #define NO_MATH_REDIRECT 20 #include <config.h> 21 22 #define dfmal __hide_dfmal 23 #define f32xfmaf64 __hide_f32xfmaf64 24 #include <math.h> 25 #undef dfmal 26 #undef f32xfmaf64 27 #include <init-arch.h> 28 #include <libm-alias-double.h> 29 #include <math-narrow-alias.h> 30 31 extern double __fma_ia32 (double x, double y, double z) attribute_hidden; 32 extern double __fma_fma (double x, double y, double z) attribute_hidden; 33 34 libm_ifunc (__fma, 35 CPU_FEATURE_USABLE (FMA) ? __fma_fma : __fma_ia32); 36 libm_alias_double (__fma, fma) 37 libm_alias_double_narrow (__fma, fma) 38 39 #define __fma __fma_ia32 40 41 #include <sysdeps/ieee754/ldbl-96/s_fma.c> 42