powerpc64le: Add -mfloat128 to tst-strtod-nan-locale testcase
[glibc.git] / sysdeps / generic / libm-alias-double.h
blob23b5990e368ad5b5ce52c0fa3f239be78795f436
1 /* Define aliases for libm double 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_DOUBLE_H
20 #define _LIBM_ALIAS_DOUBLE_H
22 /* Define aliases for a double libm function that has internal name
23 FROM ## R and public names TO ## suffix ## R for each suffix of a
24 supported floating-point type with the same format as double. This
25 should only be used for functions where such public names exist for
26 _FloatN types, not for implementation-namespace exported names
27 (where there is one name per format, not per type) or for
28 obsolescent functions not provided for _FloatN types. */
29 #ifdef NO_LONG_DOUBLE
30 # define libm_alias_double_r(from, to, r) \
31 weak_alias (from ## r, to ## r) \
32 strong_alias (from ## r, from ## l ## r) \
33 weak_alias (from ## r, to ## l ## r)
34 #else
35 # define libm_alias_double_r(from, to, r) \
36 weak_alias (from ## r, to ## r)
37 #endif
39 /* Likewise, but without the R suffix. */
40 #define libm_alias_double(from, to) libm_alias_double_r (from, to, )
42 #endif