]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
Update copyright dates with scripts/update-copyrights.
[thirdparty/glibc.git] / sysdeps / powerpc / powerpc64 / fpu / multiarch / s_finite.c
CommitLineData
1481d706 1/* Multiple versions of finite.
688903eb 2 Copyright (C) 2013-2018 Free Software Foundation, Inc.
1481d706
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 __finite __redirect___finite
e010deb2
GG
20
21/* The following definitions, although not related to the 'double'
22 version of 'finite', are required to guarantee macro expansions
23 (e.g.: from __finitef to __redirect_finitef) in include/math.h, thus
24 compensating for the unintended macro expansions in
25 math/bits/mathcalls-helper-functions.h. */
00980d84
SL
26#define __finitef __redirect___finitef
27#define __finitel __redirect___finitel
e010deb2
GG
28#define __finitef128 __redirect___finitef128
29
1481d706
AZ
30#include <math.h>
31#include <math_ldbl_opt.h>
32#include <shlib-compat.h>
33#include "init-arch.h"
34
35extern __typeof (__finite) __finite_ppc64 attribute_hidden;
36extern __typeof (__finite) __finite_power7 attribute_hidden;
cac626d6 37extern __typeof (__finite) __finite_power8 attribute_hidden;
00980d84
SL
38#undef __finite
39#undef __finitef
40#undef __finitel
e010deb2 41#undef __finitef128
00980d84
SL
42
43libc_ifunc_redirected (__redirect___finite, __finite,
44 (hwcap2 & PPC_FEATURE2_ARCH_2_07)
45 ? __finite_power8
46 : (hwcap & PPC_FEATURE_ARCH_2_06)
47 ? __finite_power7
48 : __finite_ppc64);
1481d706
AZ
49
50weak_alias (__finite, finite)
51
52#ifdef NO_LONG_DOUBLE
53strong_alias (__finite, __finitel)
54weak_alias (__finite, finitel)
55#endif
56
a109996e 57#if IS_IN (libm)
1481d706
AZ
58# if LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)
59compat_symbol (libm, finite, finitel, GLIBC_2_0);
60# endif
61# if LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)
62compat_symbol (libm, __finite, __finitel, GLIBC_2_1);
63# endif
64#else
65# if LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)
66compat_symbol (libc, __finite, __finitel, GLIBC_2_0);
67compat_symbol (libc, finite, finitel, GLIBC_2_0);
68# endif
69#endif