]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/sparc/sparc-ifunc.h
Prefer https to http for gnu.org and fsf.org URLs
[thirdparty/glibc.git] / sysdeps / sparc / sparc-ifunc.h
CommitLineData
006f1daa 1/* This file is part of the GNU C Library.
04277e02 2 Copyright (C) 2012-2019 Free Software Foundation, Inc.
006f1daa
DM
3
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see
5a82c748 16 <https://www.gnu.org/licenses/>. */
006f1daa
DM
17
18#include <sysdep.h>
19
dbdfcf3b 20#define INIT_ARCH()
006f1daa 21
dbdfcf3b 22#define sparc_libc_ifunc_redirected(redirected_name, name, expr) \
88684de7 23 __ifunc (redirected_name, name, expr(hwcap), int hwcap, INIT_ARCH)
006f1daa 24
dbdfcf3b 25#define sparc_libm_ifunc(name, expr) \
2d9193f2 26 __ifunc (name, name, expr, int hwcap, libm_ifunc_init)
006f1daa 27
dbdfcf3b 28#define sparc_libc_ifunc(name, expr) sparc_libm_ifunc (name, expr)
3a0d900a 29
dbdfcf3b 30#define sparc_libm_ifunc_redirected(redirected_name, name, expr) \
1cbd7bfe
AZ
31 __ifunc (redirected_name, name, expr, int hwcap, libm_ifunc_init)
32
88684de7
AZ
33/* It essentially does libc_hidden_builtin_def (name) and redirect
34 the internal redirected symbol to ifunc implementation. */
dbdfcf3b
AZ
35#if defined SHARED
36# define sparc_ifunc_redirected_hidden_def(redirect_name, name) \
88684de7 37 __hidden_ver1 (name, __GI_##name, redirect_name) \
53f5c659
JM
38 __attribute__ ((visibility ("hidden"))) \
39 __attribute_copy__ (name);
dbdfcf3b
AZ
40#else
41# define sparc_ifunc_redirected_hidden_def(redirect_name, name)
42#endif