]>
Commit | Line | Data |
---|---|---|
ae1a4cd9 | 1 | /* Multiple versions of finite. |
04277e02 | 2 | Copyright (C) 2013-2019 Free Software Foundation, Inc. |
ae1a4cd9 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 SL |
19 | #define __finite __redirect___finite |
20 | #define __finitef __redirect___finitef | |
21 | #define __finitel __redirect___finitel | |
ae1a4cd9 AZ |
22 | #include <math.h> |
23 | #include <math_ldbl_opt.h> | |
24 | #include <shlib-compat.h> | |
25 | #include "init-arch.h" | |
26 | ||
27 | extern __typeof (__finite) __finite_ppc32 attribute_hidden; | |
28 | extern __typeof (__finite) __finite_power7 attribute_hidden; | |
00980d84 SL |
29 | #undef __finite |
30 | #undef __finitef | |
31 | #undef __finitel | |
32 | ||
33 | libc_ifunc_redirected (__redirect___finite, __finite, | |
34 | (hwcap & PPC_FEATURE_ARCH_2_06) | |
35 | ? __finite_power7 | |
36 | : __finite_ppc32); | |
ae1a4cd9 AZ |
37 | |
38 | weak_alias (__finite, finite) | |
39 | ||
40 | #ifdef NO_LONG_DOUBLE | |
41 | strong_alias (__finite, __finitel) | |
42 | weak_alias (__finite, finitel) | |
43 | #endif | |
44 | ||
a109996e | 45 | #if IS_IN (libm) |
ae1a4cd9 AZ |
46 | # if LONG_DOUBLE_COMPAT (libm, GLIBC_2_0) |
47 | compat_symbol (libm, finite, finitel, GLIBC_2_0); | |
48 | # endif | |
49 | # if LONG_DOUBLE_COMPAT (libm, GLIBC_2_1) | |
50 | compat_symbol (libm, __finite, __finitel, GLIBC_2_1); | |
51 | # endif | |
52 | #else | |
53 | # if LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) | |
54 | compat_symbol (libc, __finite, __finitel, GLIBC_2_0); | |
55 | compat_symbol (libc, finite, finitel, GLIBC_2_0); | |
56 | # endif | |
57 | #endif |