]> git.ipfire.org Git - thirdparty/glibc.git/blob - sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
Update copyright dates with scripts/update-copyrights.
[thirdparty/glibc.git] / sysdeps / powerpc / powerpc64 / fpu / multiarch / s_isinf.c
1 /* Multiple versions of isinf.
2 Copyright (C) 2013-2018 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 <http://www.gnu.org/licenses/>. */
18
19 #define __isinf __redirect___isinf
20
21 /* The following definitions, although not related to the 'double'
22 version of 'isinf', are required to guarantee macro expansions
23 (e.g.: from __isinff to __redirect_isinff) in include/math.h, thus
24 compensating for the unintended macro expansions in
25 math/bits/mathcalls-helper-functions.h. */
26 #define __isinff __redirect___isinff
27 #define __isinfl __redirect___isinfl
28 #define __isinff128 __redirect___isinff128
29
30 #include <math.h>
31 #include <math_ldbl_opt.h>
32 #include <shlib-compat.h>
33 #include "init-arch.h"
34
35 extern __typeof (__isinf) __isinf_ppc64 attribute_hidden;
36 extern __typeof (__isinf) __isinf_power7 attribute_hidden;
37 extern __typeof (__isinf) __isinf_power8 attribute_hidden;
38 #undef __isinf
39 #undef __isinff
40 #undef __isinfl
41 #undef __isinff128
42
43 libc_ifunc_redirected (__redirect___isinf, __isinf,
44 (hwcap2 & PPC_FEATURE2_ARCH_2_07)
45 ? __isinf_power8
46 : (hwcap & PPC_FEATURE_ARCH_2_06)
47 ? __isinf_power7
48 : __isinf_ppc64);
49
50 weak_alias (__isinf, isinf)
51
52 #ifdef NO_LONG_DOUBLE
53 strong_alias (__isinf, __isinfl)
54 weak_alias (__isinf, isinfl)
55 #endif
56
57 #if !IS_IN (libm)
58 # if LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)
59 compat_symbol (libc, __isinf, __isinfl, GLIBC_2_0);
60 compat_symbol (libc, isinf, isinfl, GLIBC_2_0);
61 # endif
62 #endif