]> git.ipfire.org Git - thirdparty/glibc.git/blob - sysdeps/ieee754/ldbl-128ibm-compat/math-narrow-alias-float128.h
Update copyright dates with scripts/update-copyrights
[thirdparty/glibc.git] / sysdeps / ieee754 / ldbl-128ibm-compat / math-narrow-alias-float128.h
1 /* Helper macros for functions returning a narrower type. F128-specific.
2 Copyright (C) 2018-2021 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 <http://www.gnu.org/licenses/>. */
18
19 #if __HAVE_FLOAT64X_LONG_DOUBLE
20 # define libm_alias_float32_float128(func) \
21 libm_alias_float32_float128_main (func)
22 # define libm_alias_float64_float128(func) \
23 libm_alias_float64_float128_main (func)
24 #else
25 # define libm_alias_float32_float128(func) \
26 libm_alias_float32_float128_main (func) \
27 weak_alias (__f32 ## func ## f128, f32 ## func ## f64x) \
28 weak_alias (__f32 ## func ## f128, __ ## f32 ## func ## ieee128)
29 # define libm_alias_float64_float128(func) \
30 libm_alias_float64_float128_main (func) \
31 weak_alias (__f64 ## func ## f128, f64 ## func ## f64x) \
32 weak_alias (__f64 ## func ## f128, f32x ## func ## f64x) \
33 weak_alias (__f64 ## func ## f128, __ ## f64 ## func ## ieee128)
34 #endif