Add libm_alias_*_other_r macros.
[glibc.git] / sysdeps / generic / libm-alias-float128.h
blob8a7ebf32aca565c792de5124e35a8256725f2091
1 /* Define aliases for libm _Float128 functions.
2 Copyright (C) 2017 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
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.
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.
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/>. */
19 #ifndef _LIBM_ALIAS_FLOAT128_H
20 #define _LIBM_ALIAS_FLOAT128_H
22 /* Define _FloatN / _FloatNx aliases (other than that for _Float128)
23 for a _Float128 libm function that has internal name FROM ## f128
24 ## R and public names TO ## suffix ## R for each suffix of a
25 supported _FloatN / _FloatNx floating-point type with the same
26 format as _Float128. */
27 #define libm_alias_float128_other_r(from, to, r)
29 /* Likewise, but without the R suffix. */
30 #define libm_alias_float128_other(from, to) \
31 libm_alias_float128_other_r (from, to, )
33 /* Define aliases for a _Float128 libm function that has internal name
34 FROM ## f128 ## R and public names TO ## suffix ## R for each
35 suffix of a supported floating-point type with the same format as
36 _Float128. This should only be used for functions where such
37 public names exist for _FloatN types, not for
38 implementation-namespace exported names (where there is one name
39 per format, not per type) or for obsolescent functions not provided
40 for _FloatN types. */
41 #define libm_alias_float128_r(from, to, r) \
42 weak_alias (from ## f128 ## r, to ## f128 ## r) \
43 libm_alias_float128_other_r (from, to, r)
45 /* Likewise, but without the R suffix. */
46 #define libm_alias_float128(from, to) libm_alias_float128_r (from, to, )
48 #endif