]>
Commit | Line | Data |
---|---|---|
8fdad123 | 1 | /* Multiple versions of isinf. |
04277e02 | 2 | Copyright (C) 2013-2019 Free Software Foundation, Inc. |
8fdad123 AZ |
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 | ||
00980d84 | 19 | #define __isinf __redirect___isinf |
e010deb2 GG |
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. */ | |
00980d84 SL |
26 | #define __isinff __redirect___isinff |
27 | #define __isinfl __redirect___isinfl | |
e010deb2 GG |
28 | #define __isinff128 __redirect___isinff128 |
29 | ||
8fdad123 AZ |
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; | |
4393fc11 | 37 | extern __typeof (__isinf) __isinf_power8 attribute_hidden; |
00980d84 SL |
38 | #undef __isinf |
39 | #undef __isinff | |
40 | #undef __isinfl | |
e010deb2 | 41 | #undef __isinff128 |
00980d84 SL |
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); | |
8fdad123 AZ |
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 | ||
a109996e | 57 | #if !IS_IN (libm) |
8fdad123 AZ |
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 |