Update copyright dates with scripts/update-copyrights
[glibc.git] / sysdeps / i386 / i686 / multiarch / s_fma.c
blob1b9ecb46c4400689aaadb5cddbd891ccc5d9ab94
1 /* Multiple versions of fma.
2 Copyright (C) 2010-2023 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
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.
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.
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/>. */
19 #define NO_MATH_REDIRECT
20 #include <config.h>
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>
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;
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)
39 #define __fma __fma_ia32
41 #include <sysdeps/ieee754/ldbl-96/s_fma.c>