initial commit
[glibc.git] / sysdeps / powerpc / powerpc64 / le / fpu / multiarch / float128-ifunc-macros.h
1 /* _Float128 aliasing macro support for ifunc generation on PPC.
2 Copyright (C) 2020-2022 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 <https://www.gnu.org/licenses/>. */
18
19 #ifndef _FLOAT128_IFUNC_MACROS_PPC64LE
20 #define _FLOAT128_IFUNC_MACROS_PPC64LE 1
21
22 /* Bring in the various alias-providing headers, and disable
23 _Float128 related macros. This prevents exporting any ABI
24 from _Float128 implementation objects. */
25 #include <libm-alias-float128.h>
26 #include <libm-alias-finite.h>
27 #include <math-narrow-alias.h>
28
29 #undef libm_alias_float128_r
30 #undef libm_alias_finite
31 #undef libm_alias_exclusive_ldouble
32 #undef libm_alias_float128_other_r_ldbl
33 #undef libm_alias_float128_narrow
34 #undef declare_mgen_finite_alias
35 #undef declare_mgen_alias
36 #undef declare_mgen_alias_r
37 #undef declare_mgen_alias_narrow
38
39 #define libm_alias_finite(from, to)
40 #define libm_alias_float128_r(from, to, r)
41 #define libm_alias_exclusive_ldouble(from, to)
42 #define libm_alias_float128_other_r_ldbl(from, to, r)
43 #define libm_alias_float128_narrow(from, to)
44 #define declare_mgen_finite_alias(from, to)
45 #define declare_mgen_alias(from, to)
46 #define declare_mgen_alias_r(from, to)
47 #define declare_mgen_alias_narrow(from, to)
48
49 /* Likewise, disable hidden symbol support. This is not needed
50 for the implementation objects as the redirects already give
51 us this support. This also means any non-_Float128 headers
52 which provide hidden_def's should be included prior to this
53 header (e.g fenv.h). */
54 #undef libm_hidden_def
55 #define libm_hidden_def(func)
56 #undef libm_hidden_proto
57 #define libm_hidden_proto(f)
58
59 #include <float128-ifunc-redirect-macros.h>
60
61 #endif /* _FLOAT128_IFUNC_MACROS_PPC64LE */