1*88e42b0fSchristos /* This file is automatically generated.  DO NOT EDIT! */
2*88e42b0fSchristos /* Generated from: NetBSD: mknative-gdb,v 1.14 2020/09/24 14:53:17 christos Exp  */
3*88e42b0fSchristos /* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp  */
4*88e42b0fSchristos 
5*88e42b0fSchristos /* DO NOT EDIT! GENERATED AUTOMATICALLY! */
6*88e42b0fSchristos /* A GNU-like <math.h>.
7*88e42b0fSchristos 
8*88e42b0fSchristos    Copyright (C) 2002-2003, 2007-2020 Free Software Foundation, Inc.
9*88e42b0fSchristos 
10*88e42b0fSchristos    This program is free software: you can redistribute it and/or modify
11*88e42b0fSchristos    it under the terms of the GNU General Public License as published by
12*88e42b0fSchristos    the Free Software Foundation; either version 3 of the License, or
13*88e42b0fSchristos    (at your option) any later version.
14*88e42b0fSchristos 
15*88e42b0fSchristos    This program is distributed in the hope that it will be useful,
16*88e42b0fSchristos    but WITHOUT ANY WARRANTY; without even the implied warranty of
17*88e42b0fSchristos    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*88e42b0fSchristos    GNU General Public License for more details.
19*88e42b0fSchristos 
20*88e42b0fSchristos    You should have received a copy of the GNU General Public License
21*88e42b0fSchristos    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
22*88e42b0fSchristos 
23*88e42b0fSchristos #ifndef _GL_MATH_H
24*88e42b0fSchristos 
25*88e42b0fSchristos #if __GNUC__ >= 3
26*88e42b0fSchristos #pragma GCC system_header
27*88e42b0fSchristos #endif
28*88e42b0fSchristos 
29*88e42b0fSchristos 
30*88e42b0fSchristos /* The include_next requires a split double-inclusion guard.  */
31*88e42b0fSchristos #include_next <math.h>
32*88e42b0fSchristos 
33*88e42b0fSchristos #ifndef _GL_MATH_H
34*88e42b0fSchristos #define _GL_MATH_H
35*88e42b0fSchristos 
36*88e42b0fSchristos /* On OpenVMS, NAN, INFINITY, and HUGEVAL macros are defined in <fp.h>.  */
37*88e42b0fSchristos #if defined __VMS && ! defined NAN
38*88e42b0fSchristos # include <fp.h>
39*88e42b0fSchristos #endif
40*88e42b0fSchristos 
41*88e42b0fSchristos #ifndef _GL_INLINE_HEADER_BEGIN
42*88e42b0fSchristos  #error "Please include config.h first."
43*88e42b0fSchristos #endif
44*88e42b0fSchristos _GL_INLINE_HEADER_BEGIN
45*88e42b0fSchristos #ifndef _GL_MATH_INLINE
46*88e42b0fSchristos # define _GL_MATH_INLINE _GL_INLINE
47*88e42b0fSchristos #endif
48*88e42b0fSchristos 
49*88e42b0fSchristos /* The definitions of _GL_FUNCDECL_RPL etc. are copied here.  */
50*88e42b0fSchristos /* C++ compatible function declaration macros.
51*88e42b0fSchristos    Copyright (C) 2010-2020 Free Software Foundation, Inc.
52*88e42b0fSchristos 
53*88e42b0fSchristos    This program is free software: you can redistribute it and/or modify it
54*88e42b0fSchristos    under the terms of the GNU General Public License as published
55*88e42b0fSchristos    by the Free Software Foundation; either version 3 of the License, or
56*88e42b0fSchristos    (at your option) any later version.
57*88e42b0fSchristos 
58*88e42b0fSchristos    This program is distributed in the hope that it will be useful,
59*88e42b0fSchristos    but WITHOUT ANY WARRANTY; without even the implied warranty of
60*88e42b0fSchristos    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
61*88e42b0fSchristos    General Public License for more details.
62*88e42b0fSchristos 
63*88e42b0fSchristos    You should have received a copy of the GNU General Public License
64*88e42b0fSchristos    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
65*88e42b0fSchristos 
66*88e42b0fSchristos #ifndef _GL_CXXDEFS_H
67*88e42b0fSchristos #define _GL_CXXDEFS_H
68*88e42b0fSchristos 
69*88e42b0fSchristos /* Begin/end the GNULIB_NAMESPACE namespace.  */
70*88e42b0fSchristos #if defined __cplusplus && defined GNULIB_NAMESPACE
71*88e42b0fSchristos # define _GL_BEGIN_NAMESPACE namespace GNULIB_NAMESPACE {
72*88e42b0fSchristos # define _GL_END_NAMESPACE }
73*88e42b0fSchristos #else
74*88e42b0fSchristos # define _GL_BEGIN_NAMESPACE
75*88e42b0fSchristos # define _GL_END_NAMESPACE
76*88e42b0fSchristos #endif
77*88e42b0fSchristos 
78*88e42b0fSchristos /* The three most frequent use cases of these macros are:
79*88e42b0fSchristos 
80*88e42b0fSchristos    * For providing a substitute for a function that is missing on some
81*88e42b0fSchristos      platforms, but is declared and works fine on the platforms on which
82*88e42b0fSchristos      it exists:
83*88e42b0fSchristos 
84*88e42b0fSchristos        #if @GNULIB_FOO@
85*88e42b0fSchristos        # if !@HAVE_FOO@
86*88e42b0fSchristos        _GL_FUNCDECL_SYS (foo, ...);
87*88e42b0fSchristos        # endif
88*88e42b0fSchristos        _GL_CXXALIAS_SYS (foo, ...);
89*88e42b0fSchristos        _GL_CXXALIASWARN (foo);
90*88e42b0fSchristos        #elif defined GNULIB_POSIXCHECK
91*88e42b0fSchristos        ...
92*88e42b0fSchristos        #endif
93*88e42b0fSchristos 
94*88e42b0fSchristos    * For providing a replacement for a function that exists on all platforms,
95*88e42b0fSchristos      but is broken/insufficient and needs to be replaced on some platforms:
96*88e42b0fSchristos 
97*88e42b0fSchristos        #if @GNULIB_FOO@
98*88e42b0fSchristos        # if @REPLACE_FOO@
99*88e42b0fSchristos        #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
100*88e42b0fSchristos        #   undef foo
101*88e42b0fSchristos        #   define foo rpl_foo
102*88e42b0fSchristos        #  endif
103*88e42b0fSchristos        _GL_FUNCDECL_RPL (foo, ...);
104*88e42b0fSchristos        _GL_CXXALIAS_RPL (foo, ...);
105*88e42b0fSchristos        # else
106*88e42b0fSchristos        _GL_CXXALIAS_SYS (foo, ...);
107*88e42b0fSchristos        # endif
108*88e42b0fSchristos        _GL_CXXALIASWARN (foo);
109*88e42b0fSchristos        #elif defined GNULIB_POSIXCHECK
110*88e42b0fSchristos        ...
111*88e42b0fSchristos        #endif
112*88e42b0fSchristos 
113*88e42b0fSchristos    * For providing a replacement for a function that exists on some platforms
114*88e42b0fSchristos      but is broken/insufficient and needs to be replaced on some of them and
115*88e42b0fSchristos      is additionally either missing or undeclared on some other platforms:
116*88e42b0fSchristos 
117*88e42b0fSchristos        #if @GNULIB_FOO@
118*88e42b0fSchristos        # if @REPLACE_FOO@
119*88e42b0fSchristos        #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
120*88e42b0fSchristos        #   undef foo
121*88e42b0fSchristos        #   define foo rpl_foo
122*88e42b0fSchristos        #  endif
123*88e42b0fSchristos        _GL_FUNCDECL_RPL (foo, ...);
124*88e42b0fSchristos        _GL_CXXALIAS_RPL (foo, ...);
125*88e42b0fSchristos        # else
126*88e42b0fSchristos        #  if !@HAVE_FOO@   or   if !@HAVE_DECL_FOO@
127*88e42b0fSchristos        _GL_FUNCDECL_SYS (foo, ...);
128*88e42b0fSchristos        #  endif
129*88e42b0fSchristos        _GL_CXXALIAS_SYS (foo, ...);
130*88e42b0fSchristos        # endif
131*88e42b0fSchristos        _GL_CXXALIASWARN (foo);
132*88e42b0fSchristos        #elif defined GNULIB_POSIXCHECK
133*88e42b0fSchristos        ...
134*88e42b0fSchristos        #endif
135*88e42b0fSchristos */
136*88e42b0fSchristos 
137*88e42b0fSchristos /* _GL_EXTERN_C declaration;
138*88e42b0fSchristos    performs the declaration with C linkage.  */
139*88e42b0fSchristos #if defined __cplusplus
140*88e42b0fSchristos # define _GL_EXTERN_C extern "C"
141*88e42b0fSchristos #else
142*88e42b0fSchristos # define _GL_EXTERN_C extern
143*88e42b0fSchristos #endif
144*88e42b0fSchristos 
145*88e42b0fSchristos /* _GL_FUNCDECL_RPL (func, rettype, parameters_and_attributes);
146*88e42b0fSchristos    declares a replacement function, named rpl_func, with the given prototype,
147*88e42b0fSchristos    consisting of return type, parameters, and attributes.
148*88e42b0fSchristos    Example:
149*88e42b0fSchristos      _GL_FUNCDECL_RPL (open, int, (const char *filename, int flags, ...)
150*88e42b0fSchristos                                   _GL_ARG_NONNULL ((1)));
151*88e42b0fSchristos  */
152*88e42b0fSchristos #define _GL_FUNCDECL_RPL(func,rettype,parameters_and_attributes) \
153*88e42b0fSchristos   _GL_FUNCDECL_RPL_1 (rpl_##func, rettype, parameters_and_attributes)
154*88e42b0fSchristos #define _GL_FUNCDECL_RPL_1(rpl_func,rettype,parameters_and_attributes) \
155*88e42b0fSchristos   _GL_EXTERN_C rettype rpl_func parameters_and_attributes
156*88e42b0fSchristos 
157*88e42b0fSchristos /* _GL_FUNCDECL_SYS (func, rettype, parameters_and_attributes);
158*88e42b0fSchristos    declares the system function, named func, with the given prototype,
159*88e42b0fSchristos    consisting of return type, parameters, and attributes.
160*88e42b0fSchristos    Example:
161*88e42b0fSchristos      _GL_FUNCDECL_SYS (open, int, (const char *filename, int flags, ...)
162*88e42b0fSchristos                                   _GL_ARG_NONNULL ((1)));
163*88e42b0fSchristos  */
164*88e42b0fSchristos #define _GL_FUNCDECL_SYS(func,rettype,parameters_and_attributes) \
165*88e42b0fSchristos   _GL_EXTERN_C rettype func parameters_and_attributes
166*88e42b0fSchristos 
167*88e42b0fSchristos /* _GL_CXXALIAS_RPL (func, rettype, parameters);
168*88e42b0fSchristos    declares a C++ alias called GNULIB_NAMESPACE::func
169*88e42b0fSchristos    that redirects to rpl_func, if GNULIB_NAMESPACE is defined.
170*88e42b0fSchristos    Example:
171*88e42b0fSchristos      _GL_CXXALIAS_RPL (open, int, (const char *filename, int flags, ...));
172*88e42b0fSchristos 
173*88e42b0fSchristos    Wrapping rpl_func in an object with an inline conversion operator
174*88e42b0fSchristos    avoids a reference to rpl_func unless GNULIB_NAMESPACE::func is
175*88e42b0fSchristos    actually used in the program.  */
176*88e42b0fSchristos #define _GL_CXXALIAS_RPL(func,rettype,parameters) \
177*88e42b0fSchristos   _GL_CXXALIAS_RPL_1 (func, rpl_##func, rettype, parameters)
178*88e42b0fSchristos #if defined __cplusplus && defined GNULIB_NAMESPACE
179*88e42b0fSchristos # define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \
180*88e42b0fSchristos     namespace GNULIB_NAMESPACE                                \
181*88e42b0fSchristos     {                                                         \
182*88e42b0fSchristos       static const struct _gl_ ## func ## _wrapper            \
183*88e42b0fSchristos       {                                                       \
184*88e42b0fSchristos         typedef rettype (*type) parameters;                   \
185*88e42b0fSchristos                                                               \
186*88e42b0fSchristos         inline operator type () const                         \
187*88e42b0fSchristos         {                                                     \
188*88e42b0fSchristos           return ::rpl_func;                                  \
189*88e42b0fSchristos         }                                                     \
190*88e42b0fSchristos       } func = {};                                            \
191*88e42b0fSchristos     }                                                         \
192*88e42b0fSchristos     _GL_EXTERN_C int _gl_cxxalias_dummy
193*88e42b0fSchristos #else
194*88e42b0fSchristos # define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \
195*88e42b0fSchristos     _GL_EXTERN_C int _gl_cxxalias_dummy
196*88e42b0fSchristos #endif
197*88e42b0fSchristos 
198*88e42b0fSchristos /* _GL_CXXALIAS_RPL_CAST_1 (func, rpl_func, rettype, parameters);
199*88e42b0fSchristos    is like  _GL_CXXALIAS_RPL_1 (func, rpl_func, rettype, parameters);
200*88e42b0fSchristos    except that the C function rpl_func may have a slightly different
201*88e42b0fSchristos    declaration.  A cast is used to silence the "invalid conversion" error
202*88e42b0fSchristos    that would otherwise occur.  */
203*88e42b0fSchristos #if defined __cplusplus && defined GNULIB_NAMESPACE
204*88e42b0fSchristos # define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \
205*88e42b0fSchristos     namespace GNULIB_NAMESPACE                                     \
206*88e42b0fSchristos     {                                                              \
207*88e42b0fSchristos       static const struct _gl_ ## func ## _wrapper                 \
208*88e42b0fSchristos       {                                                            \
209*88e42b0fSchristos         typedef rettype (*type) parameters;                        \
210*88e42b0fSchristos                                                                    \
211*88e42b0fSchristos         inline operator type () const                              \
212*88e42b0fSchristos         {                                                          \
213*88e42b0fSchristos           return reinterpret_cast<type>(::rpl_func);               \
214*88e42b0fSchristos         }                                                          \
215*88e42b0fSchristos       } func = {};                                                 \
216*88e42b0fSchristos     }                                                              \
217*88e42b0fSchristos     _GL_EXTERN_C int _gl_cxxalias_dummy
218*88e42b0fSchristos #else
219*88e42b0fSchristos # define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \
220*88e42b0fSchristos     _GL_EXTERN_C int _gl_cxxalias_dummy
221*88e42b0fSchristos #endif
222*88e42b0fSchristos 
223*88e42b0fSchristos /* _GL_CXXALIAS_SYS (func, rettype, parameters);
224*88e42b0fSchristos    declares a C++ alias called GNULIB_NAMESPACE::func
225*88e42b0fSchristos    that redirects to the system provided function func, if GNULIB_NAMESPACE
226*88e42b0fSchristos    is defined.
227*88e42b0fSchristos    Example:
228*88e42b0fSchristos      _GL_CXXALIAS_SYS (open, int, (const char *filename, int flags, ...));
229*88e42b0fSchristos 
230*88e42b0fSchristos    Wrapping func in an object with an inline conversion operator
231*88e42b0fSchristos    avoids a reference to func unless GNULIB_NAMESPACE::func is
232*88e42b0fSchristos    actually used in the program.  */
233*88e42b0fSchristos #if defined __cplusplus && defined GNULIB_NAMESPACE
234*88e42b0fSchristos # define _GL_CXXALIAS_SYS(func,rettype,parameters)            \
235*88e42b0fSchristos     namespace GNULIB_NAMESPACE                                \
236*88e42b0fSchristos     {                                                         \
237*88e42b0fSchristos       static const struct _gl_ ## func ## _wrapper            \
238*88e42b0fSchristos       {                                                       \
239*88e42b0fSchristos         typedef rettype (*type) parameters;                   \
240*88e42b0fSchristos                                                               \
241*88e42b0fSchristos         inline operator type () const                         \
242*88e42b0fSchristos         {                                                     \
243*88e42b0fSchristos           return ::func;                                      \
244*88e42b0fSchristos         }                                                     \
245*88e42b0fSchristos       } func = {};                                            \
246*88e42b0fSchristos     }                                                         \
247*88e42b0fSchristos     _GL_EXTERN_C int _gl_cxxalias_dummy
248*88e42b0fSchristos #else
249*88e42b0fSchristos # define _GL_CXXALIAS_SYS(func,rettype,parameters) \
250*88e42b0fSchristos     _GL_EXTERN_C int _gl_cxxalias_dummy
251*88e42b0fSchristos #endif
252*88e42b0fSchristos 
253*88e42b0fSchristos /* _GL_CXXALIAS_SYS_CAST (func, rettype, parameters);
254*88e42b0fSchristos    is like  _GL_CXXALIAS_SYS (func, rettype, parameters);
255*88e42b0fSchristos    except that the C function func may have a slightly different declaration.
256*88e42b0fSchristos    A cast is used to silence the "invalid conversion" error that would
257*88e42b0fSchristos    otherwise occur.  */
258*88e42b0fSchristos #if defined __cplusplus && defined GNULIB_NAMESPACE
259*88e42b0fSchristos # define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \
260*88e42b0fSchristos     namespace GNULIB_NAMESPACE                          \
261*88e42b0fSchristos     {                                                   \
262*88e42b0fSchristos       static const struct _gl_ ## func ## _wrapper      \
263*88e42b0fSchristos       {                                                 \
264*88e42b0fSchristos         typedef rettype (*type) parameters;             \
265*88e42b0fSchristos                                                         \
266*88e42b0fSchristos         inline operator type () const                   \
267*88e42b0fSchristos         {                                               \
268*88e42b0fSchristos           return reinterpret_cast<type>(::func);        \
269*88e42b0fSchristos         }                                               \
270*88e42b0fSchristos       } func = {};                                      \
271*88e42b0fSchristos     }                                                   \
272*88e42b0fSchristos     _GL_EXTERN_C int _gl_cxxalias_dummy
273*88e42b0fSchristos #else
274*88e42b0fSchristos # define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \
275*88e42b0fSchristos     _GL_EXTERN_C int _gl_cxxalias_dummy
276*88e42b0fSchristos #endif
277*88e42b0fSchristos 
278*88e42b0fSchristos /* _GL_CXXALIAS_SYS_CAST2 (func, rettype, parameters, rettype2, parameters2);
279*88e42b0fSchristos    is like  _GL_CXXALIAS_SYS (func, rettype, parameters);
280*88e42b0fSchristos    except that the C function is picked among a set of overloaded functions,
281*88e42b0fSchristos    namely the one with rettype2 and parameters2.  Two consecutive casts
282*88e42b0fSchristos    are used to silence the "cannot find a match" and "invalid conversion"
283*88e42b0fSchristos    errors that would otherwise occur.  */
284*88e42b0fSchristos #if defined __cplusplus && defined GNULIB_NAMESPACE
285*88e42b0fSchristos   /* The outer cast must be a reinterpret_cast.
286*88e42b0fSchristos      The inner cast: When the function is defined as a set of overloaded
287*88e42b0fSchristos      functions, it works as a static_cast<>, choosing the designated variant.
288*88e42b0fSchristos      When the function is defined as a single variant, it works as a
289*88e42b0fSchristos      reinterpret_cast<>. The parenthesized cast syntax works both ways.  */
290*88e42b0fSchristos # define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \
291*88e42b0fSchristos     namespace GNULIB_NAMESPACE                                                \
292*88e42b0fSchristos     {                                                                         \
293*88e42b0fSchristos       static const struct _gl_ ## func ## _wrapper                            \
294*88e42b0fSchristos       {                                                                       \
295*88e42b0fSchristos         typedef rettype (*type) parameters;                                   \
296*88e42b0fSchristos                                                                               \
297*88e42b0fSchristos         inline operator type () const                                         \
298*88e42b0fSchristos         {                                                                     \
299*88e42b0fSchristos           return reinterpret_cast<type>((rettype2 (*) parameters2)(::func));  \
300*88e42b0fSchristos         }                                                                     \
301*88e42b0fSchristos       } func = {};                                                            \
302*88e42b0fSchristos     }                                                                         \
303*88e42b0fSchristos     _GL_EXTERN_C int _gl_cxxalias_dummy
304*88e42b0fSchristos #else
305*88e42b0fSchristos # define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \
306*88e42b0fSchristos     _GL_EXTERN_C int _gl_cxxalias_dummy
307*88e42b0fSchristos #endif
308*88e42b0fSchristos 
309*88e42b0fSchristos /* _GL_CXXALIASWARN (func);
310*88e42b0fSchristos    causes a warning to be emitted when ::func is used but not when
311*88e42b0fSchristos    GNULIB_NAMESPACE::func is used.  func must be defined without overloaded
312*88e42b0fSchristos    variants.  */
313*88e42b0fSchristos #if defined __cplusplus && defined GNULIB_NAMESPACE
314*88e42b0fSchristos # define _GL_CXXALIASWARN(func) \
315*88e42b0fSchristos    _GL_CXXALIASWARN_1 (func, GNULIB_NAMESPACE)
316*88e42b0fSchristos # define _GL_CXXALIASWARN_1(func,namespace) \
317*88e42b0fSchristos    _GL_CXXALIASWARN_2 (func, namespace)
318*88e42b0fSchristos /* To work around GCC bug <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43881>,
319*88e42b0fSchristos    we enable the warning only when not optimizing.  */
320*88e42b0fSchristos # if !__OPTIMIZE__
321*88e42b0fSchristos #  define _GL_CXXALIASWARN_2(func,namespace) \
322*88e42b0fSchristos     _GL_WARN_ON_USE (func, \
323*88e42b0fSchristos                      "The symbol ::" #func " refers to the system function. " \
324*88e42b0fSchristos                      "Use " #namespace "::" #func " instead.")
325*88e42b0fSchristos # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
326*88e42b0fSchristos #  define _GL_CXXALIASWARN_2(func,namespace) \
327*88e42b0fSchristos      extern __typeof__ (func) func
328*88e42b0fSchristos # else
329*88e42b0fSchristos #  define _GL_CXXALIASWARN_2(func,namespace) \
330*88e42b0fSchristos      _GL_EXTERN_C int _gl_cxxalias_dummy
331*88e42b0fSchristos # endif
332*88e42b0fSchristos #else
333*88e42b0fSchristos # define _GL_CXXALIASWARN(func) \
334*88e42b0fSchristos     _GL_EXTERN_C int _gl_cxxalias_dummy
335*88e42b0fSchristos #endif
336*88e42b0fSchristos 
337*88e42b0fSchristos /* _GL_CXXALIASWARN1 (func, rettype, parameters_and_attributes);
338*88e42b0fSchristos    causes a warning to be emitted when the given overloaded variant of ::func
339*88e42b0fSchristos    is used but not when GNULIB_NAMESPACE::func is used.  */
340*88e42b0fSchristos #if defined __cplusplus && defined GNULIB_NAMESPACE
341*88e42b0fSchristos # define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \
342*88e42b0fSchristos    _GL_CXXALIASWARN1_1 (func, rettype, parameters_and_attributes, \
343*88e42b0fSchristos                         GNULIB_NAMESPACE)
344*88e42b0fSchristos # define _GL_CXXALIASWARN1_1(func,rettype,parameters_and_attributes,namespace) \
345*88e42b0fSchristos    _GL_CXXALIASWARN1_2 (func, rettype, parameters_and_attributes, namespace)
346*88e42b0fSchristos /* To work around GCC bug <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43881>,
347*88e42b0fSchristos    we enable the warning only when not optimizing.  */
348*88e42b0fSchristos # if !__OPTIMIZE__
349*88e42b0fSchristos #  define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
350*88e42b0fSchristos     _GL_WARN_ON_USE_CXX (func, rettype, parameters_and_attributes, \
351*88e42b0fSchristos                          "The symbol ::" #func " refers to the system function. " \
352*88e42b0fSchristos                          "Use " #namespace "::" #func " instead.")
353*88e42b0fSchristos # else
354*88e42b0fSchristos #  define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
355*88e42b0fSchristos      _GL_EXTERN_C int _gl_cxxalias_dummy
356*88e42b0fSchristos # endif
357*88e42b0fSchristos #else
358*88e42b0fSchristos # define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \
359*88e42b0fSchristos     _GL_EXTERN_C int _gl_cxxalias_dummy
360*88e42b0fSchristos #endif
361*88e42b0fSchristos 
362*88e42b0fSchristos #endif /* _GL_CXXDEFS_H */
363*88e42b0fSchristos 
364*88e42b0fSchristos /* The definition of _GL_ARG_NONNULL is copied here.  */
365*88e42b0fSchristos /* A C macro for declaring that specific arguments must not be NULL.
366*88e42b0fSchristos    Copyright (C) 2009-2020 Free Software Foundation, Inc.
367*88e42b0fSchristos 
368*88e42b0fSchristos    This program is free software: you can redistribute it and/or modify it
369*88e42b0fSchristos    under the terms of the GNU General Public License as published
370*88e42b0fSchristos    by the Free Software Foundation; either version 3 of the License, or
371*88e42b0fSchristos    (at your option) any later version.
372*88e42b0fSchristos 
373*88e42b0fSchristos    This program is distributed in the hope that it will be useful,
374*88e42b0fSchristos    but WITHOUT ANY WARRANTY; without even the implied warranty of
375*88e42b0fSchristos    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
376*88e42b0fSchristos    General Public License for more details.
377*88e42b0fSchristos 
378*88e42b0fSchristos    You should have received a copy of the GNU General Public License
379*88e42b0fSchristos    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
380*88e42b0fSchristos 
381*88e42b0fSchristos /* _GL_ARG_NONNULL((n,...,m)) tells the compiler and static analyzer tools
382*88e42b0fSchristos    that the values passed as arguments n, ..., m must be non-NULL pointers.
383*88e42b0fSchristos    n = 1 stands for the first argument, n = 2 for the second argument etc.  */
384*88e42b0fSchristos #ifndef _GL_ARG_NONNULL
385*88e42b0fSchristos # if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || __GNUC__ > 3
386*88e42b0fSchristos #  define _GL_ARG_NONNULL(params) __attribute__ ((__nonnull__ params))
387*88e42b0fSchristos # else
388*88e42b0fSchristos #  define _GL_ARG_NONNULL(params)
389*88e42b0fSchristos # endif
390*88e42b0fSchristos #endif
391*88e42b0fSchristos 
392*88e42b0fSchristos /* The definition of _GL_WARN_ON_USE is copied here.  */
393*88e42b0fSchristos /* A C macro for emitting warnings if a function is used.
394*88e42b0fSchristos    Copyright (C) 2010-2020 Free Software Foundation, Inc.
395*88e42b0fSchristos 
396*88e42b0fSchristos    This program is free software: you can redistribute it and/or modify it
397*88e42b0fSchristos    under the terms of the GNU General Public License as published
398*88e42b0fSchristos    by the Free Software Foundation; either version 3 of the License, or
399*88e42b0fSchristos    (at your option) any later version.
400*88e42b0fSchristos 
401*88e42b0fSchristos    This program is distributed in the hope that it will be useful,
402*88e42b0fSchristos    but WITHOUT ANY WARRANTY; without even the implied warranty of
403*88e42b0fSchristos    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
404*88e42b0fSchristos    General Public License for more details.
405*88e42b0fSchristos 
406*88e42b0fSchristos    You should have received a copy of the GNU General Public License
407*88e42b0fSchristos    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
408*88e42b0fSchristos 
409*88e42b0fSchristos /* _GL_WARN_ON_USE (function, "literal string") issues a declaration
410*88e42b0fSchristos    for FUNCTION which will then trigger a compiler warning containing
411*88e42b0fSchristos    the text of "literal string" anywhere that function is called, if
412*88e42b0fSchristos    supported by the compiler.  If the compiler does not support this
413*88e42b0fSchristos    feature, the macro expands to an unused extern declaration.
414*88e42b0fSchristos 
415*88e42b0fSchristos    _GL_WARN_ON_USE_ATTRIBUTE ("literal string") expands to the
416*88e42b0fSchristos    attribute used in _GL_WARN_ON_USE.  If the compiler does not support
417*88e42b0fSchristos    this feature, it expands to empty.
418*88e42b0fSchristos 
419*88e42b0fSchristos    These macros are useful for marking a function as a potential
420*88e42b0fSchristos    portability trap, with the intent that "literal string" include
421*88e42b0fSchristos    instructions on the replacement function that should be used
422*88e42b0fSchristos    instead.
423*88e42b0fSchristos    _GL_WARN_ON_USE is for functions with 'extern' linkage.
424*88e42b0fSchristos    _GL_WARN_ON_USE_ATTRIBUTE is for functions with 'static' or 'inline'
425*88e42b0fSchristos    linkage.
426*88e42b0fSchristos 
427*88e42b0fSchristos    However, one of the reasons that a function is a portability trap is
428*88e42b0fSchristos    if it has the wrong signature.  Declaring FUNCTION with a different
429*88e42b0fSchristos    signature in C is a compilation error, so this macro must use the
430*88e42b0fSchristos    same type as any existing declaration so that programs that avoid
431*88e42b0fSchristos    the problematic FUNCTION do not fail to compile merely because they
432*88e42b0fSchristos    included a header that poisoned the function.  But this implies that
433*88e42b0fSchristos    _GL_WARN_ON_USE is only safe to use if FUNCTION is known to already
434*88e42b0fSchristos    have a declaration.  Use of this macro implies that there must not
435*88e42b0fSchristos    be any other macro hiding the declaration of FUNCTION; but
436*88e42b0fSchristos    undefining FUNCTION first is part of the poisoning process anyway
437*88e42b0fSchristos    (although for symbols that are provided only via a macro, the result
438*88e42b0fSchristos    is a compilation error rather than a warning containing
439*88e42b0fSchristos    "literal string").  Also note that in C++, it is only safe to use if
440*88e42b0fSchristos    FUNCTION has no overloads.
441*88e42b0fSchristos 
442*88e42b0fSchristos    For an example, it is possible to poison 'getline' by:
443*88e42b0fSchristos    - adding a call to gl_WARN_ON_USE_PREPARE([[#include <stdio.h>]],
444*88e42b0fSchristos      [getline]) in configure.ac, which potentially defines
445*88e42b0fSchristos      HAVE_RAW_DECL_GETLINE
446*88e42b0fSchristos    - adding this code to a header that wraps the system <stdio.h>:
447*88e42b0fSchristos      #undef getline
448*88e42b0fSchristos      #if HAVE_RAW_DECL_GETLINE
449*88e42b0fSchristos      _GL_WARN_ON_USE (getline, "getline is required by POSIX 2008, but"
450*88e42b0fSchristos        "not universally present; use the gnulib module getline");
451*88e42b0fSchristos      #endif
452*88e42b0fSchristos 
453*88e42b0fSchristos    It is not possible to directly poison global variables.  But it is
454*88e42b0fSchristos    possible to write a wrapper accessor function, and poison that
455*88e42b0fSchristos    (less common usage, like &environ, will cause a compilation error
456*88e42b0fSchristos    rather than issue the nice warning, but the end result of informing
457*88e42b0fSchristos    the developer about their portability problem is still achieved):
458*88e42b0fSchristos      #if HAVE_RAW_DECL_ENVIRON
459*88e42b0fSchristos      static char ***
460*88e42b0fSchristos      rpl_environ (void) { return &environ; }
461*88e42b0fSchristos      _GL_WARN_ON_USE (rpl_environ, "environ is not always properly declared");
462*88e42b0fSchristos      # undef environ
463*88e42b0fSchristos      # define environ (*rpl_environ ())
464*88e42b0fSchristos      #endif
465*88e42b0fSchristos    or better (avoiding contradictory use of 'static' and 'extern'):
466*88e42b0fSchristos      #if HAVE_RAW_DECL_ENVIRON
467*88e42b0fSchristos      static char ***
468*88e42b0fSchristos      _GL_WARN_ON_USE_ATTRIBUTE ("environ is not always properly declared")
469*88e42b0fSchristos      rpl_environ (void) { return &environ; }
470*88e42b0fSchristos      # undef environ
471*88e42b0fSchristos      # define environ (*rpl_environ ())
472*88e42b0fSchristos      #endif
473*88e42b0fSchristos    */
474*88e42b0fSchristos #ifndef _GL_WARN_ON_USE
475*88e42b0fSchristos 
476*88e42b0fSchristos # if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__)
477*88e42b0fSchristos /* A compiler attribute is available in gcc versions 4.3.0 and later.  */
478*88e42b0fSchristos #  define _GL_WARN_ON_USE(function, message) \
479*88e42b0fSchristos extern __typeof__ (function) function __attribute__ ((__warning__ (message)))
480*88e42b0fSchristos #  define _GL_WARN_ON_USE_ATTRIBUTE(message) \
481*88e42b0fSchristos   __attribute__ ((__warning__ (message)))
482*88e42b0fSchristos # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
483*88e42b0fSchristos /* Verify the existence of the function.  */
484*88e42b0fSchristos #  define _GL_WARN_ON_USE(function, message) \
485*88e42b0fSchristos extern __typeof__ (function) function
486*88e42b0fSchristos #  define _GL_WARN_ON_USE_ATTRIBUTE(message)
487*88e42b0fSchristos # else /* Unsupported.  */
488*88e42b0fSchristos #  define _GL_WARN_ON_USE(function, message) \
489*88e42b0fSchristos _GL_WARN_EXTERN_C int _gl_warn_on_use
490*88e42b0fSchristos #  define _GL_WARN_ON_USE_ATTRIBUTE(message)
491*88e42b0fSchristos # endif
492*88e42b0fSchristos #endif
493*88e42b0fSchristos 
494*88e42b0fSchristos /* _GL_WARN_ON_USE_CXX (function, rettype, parameters_and_attributes, "string")
495*88e42b0fSchristos    is like _GL_WARN_ON_USE (function, "string"), except that in C++ mode the
496*88e42b0fSchristos    function is declared with the given prototype, consisting of return type,
497*88e42b0fSchristos    parameters, and attributes.
498*88e42b0fSchristos    This variant is useful for overloaded functions in C++. _GL_WARN_ON_USE does
499*88e42b0fSchristos    not work in this case.  */
500*88e42b0fSchristos #ifndef _GL_WARN_ON_USE_CXX
501*88e42b0fSchristos # if !defined __cplusplus
502*88e42b0fSchristos #  define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \
503*88e42b0fSchristos      _GL_WARN_ON_USE (function, msg)
504*88e42b0fSchristos # else
505*88e42b0fSchristos #  if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__)
506*88e42b0fSchristos #   define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \
507*88e42b0fSchristos extern rettype function parameters_and_attributes \
508*88e42b0fSchristos      __attribute__ ((__warning__ (msg)))
509*88e42b0fSchristos #  elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
510*88e42b0fSchristos /* Verify the existence of the function.  */
511*88e42b0fSchristos #   define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \
512*88e42b0fSchristos extern rettype function parameters_and_attributes
513*88e42b0fSchristos #  else /* Unsupported.  */
514*88e42b0fSchristos #   define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \
515*88e42b0fSchristos _GL_WARN_EXTERN_C int _gl_warn_on_use
516*88e42b0fSchristos #  endif
517*88e42b0fSchristos # endif
518*88e42b0fSchristos #endif
519*88e42b0fSchristos 
520*88e42b0fSchristos /* _GL_WARN_EXTERN_C declaration;
521*88e42b0fSchristos    performs the declaration with C linkage.  */
522*88e42b0fSchristos #ifndef _GL_WARN_EXTERN_C
523*88e42b0fSchristos # if defined __cplusplus
524*88e42b0fSchristos #  define _GL_WARN_EXTERN_C extern "C"
525*88e42b0fSchristos # else
526*88e42b0fSchristos #  define _GL_WARN_EXTERN_C extern
527*88e42b0fSchristos # endif
528*88e42b0fSchristos #endif
529*88e42b0fSchristos 
530*88e42b0fSchristos #ifdef __cplusplus
531*88e42b0fSchristos /* Helper macros to define type-generic function FUNC as overloaded functions,
532*88e42b0fSchristos    rather than as macros like in C.  POSIX declares these with an argument of
533*88e42b0fSchristos    real-floating (that is, one of float, double, or long double).  */
534*88e42b0fSchristos # define _GL_MATH_CXX_REAL_FLOATING_DECL_1(func) \
535*88e42b0fSchristos static inline int                                                   \
536*88e42b0fSchristos _gl_cxx_ ## func ## f (float f)                                     \
537*88e42b0fSchristos {                                                                   \
538*88e42b0fSchristos   return func (f);                                                  \
539*88e42b0fSchristos }                                                                   \
540*88e42b0fSchristos static inline int                                                   \
541*88e42b0fSchristos _gl_cxx_ ## func ## d (double d)                                    \
542*88e42b0fSchristos {                                                                   \
543*88e42b0fSchristos   return func (d);                                                  \
544*88e42b0fSchristos }                                                                   \
545*88e42b0fSchristos static inline int                                                   \
546*88e42b0fSchristos _gl_cxx_ ## func ## l (long double l)                               \
547*88e42b0fSchristos {                                                                   \
548*88e42b0fSchristos   return func (l);                                                  \
549*88e42b0fSchristos }
550*88e42b0fSchristos # define _GL_MATH_CXX_REAL_FLOATING_DECL_2(func,rpl_func,rettype) \
551*88e42b0fSchristos _GL_BEGIN_NAMESPACE                                                 \
552*88e42b0fSchristos inline rettype                                                      \
553*88e42b0fSchristos rpl_func (float f)                                                  \
554*88e42b0fSchristos {                                                                   \
555*88e42b0fSchristos   return _gl_cxx_ ## func ## f (f);                                 \
556*88e42b0fSchristos }                                                                   \
557*88e42b0fSchristos inline rettype                                                      \
558*88e42b0fSchristos rpl_func (double d)                                                 \
559*88e42b0fSchristos {                                                                   \
560*88e42b0fSchristos   return _gl_cxx_ ## func ## d (d);                                 \
561*88e42b0fSchristos }                                                                   \
562*88e42b0fSchristos inline rettype                                                      \
563*88e42b0fSchristos rpl_func (long double l)                                            \
564*88e42b0fSchristos {                                                                   \
565*88e42b0fSchristos   return _gl_cxx_ ## func ## l (l);                                 \
566*88e42b0fSchristos }                                                                   \
567*88e42b0fSchristos _GL_END_NAMESPACE
568*88e42b0fSchristos #endif
569*88e42b0fSchristos 
570*88e42b0fSchristos /* Helper macros to define a portability warning for the
571*88e42b0fSchristos    classification macro FUNC called with VALUE.  POSIX declares the
572*88e42b0fSchristos    classification macros with an argument of real-floating (that is,
573*88e42b0fSchristos    one of float, double, or long double).  */
574*88e42b0fSchristos #define _GL_WARN_REAL_FLOATING_DECL(func) \
575*88e42b0fSchristos _GL_MATH_INLINE int                                                       \
576*88e42b0fSchristos _GL_WARN_ON_USE_ATTRIBUTE (#func " is unportable - "                      \
577*88e42b0fSchristos                            "use gnulib module " #func " for portability") \
578*88e42b0fSchristos rpl_ ## func ## f (float f)                                               \
579*88e42b0fSchristos {                                                                         \
580*88e42b0fSchristos   return func (f);                                                        \
581*88e42b0fSchristos }                                                                         \
582*88e42b0fSchristos _GL_MATH_INLINE int                                                       \
583*88e42b0fSchristos _GL_WARN_ON_USE_ATTRIBUTE (#func " is unportable - "                      \
584*88e42b0fSchristos                            "use gnulib module " #func " for portability") \
585*88e42b0fSchristos rpl_ ## func ## d (double d)                                              \
586*88e42b0fSchristos {                                                                         \
587*88e42b0fSchristos   return func (d);                                                        \
588*88e42b0fSchristos }                                                                         \
589*88e42b0fSchristos _GL_MATH_INLINE int                                                       \
590*88e42b0fSchristos _GL_WARN_ON_USE_ATTRIBUTE (#func " is unportable - "                      \
591*88e42b0fSchristos                            "use gnulib module " #func " for portability") \
592*88e42b0fSchristos rpl_ ## func ## l (long double l)                                         \
593*88e42b0fSchristos {                                                                         \
594*88e42b0fSchristos   return func (l);                                                        \
595*88e42b0fSchristos }
596*88e42b0fSchristos #define _GL_WARN_REAL_FLOATING_IMPL(func, value) \
597*88e42b0fSchristos   (sizeof (value) == sizeof (float) ? rpl_ ## func ## f (value)     \
598*88e42b0fSchristos    : sizeof (value) == sizeof (double) ? rpl_ ## func ## d (value)  \
599*88e42b0fSchristos    : rpl_ ## func ## l (value))
600*88e42b0fSchristos 
601*88e42b0fSchristos 
602*88e42b0fSchristos #if 0
603*88e42b0fSchristos /* Pull in a function that fixes the 'int' to 'long double' conversion
604*88e42b0fSchristos    of glibc 2.7.  */
605*88e42b0fSchristos _GL_EXTERN_C void _Qp_itoq (long double *, int);
606*88e42b0fSchristos static void (*_gl_math_fix_itold) (long double *, int) = _Qp_itoq;
607*88e42b0fSchristos #endif
608*88e42b0fSchristos 
609*88e42b0fSchristos 
610*88e42b0fSchristos /* For clang: Use __has_builtin to determine whether a builtin is available.  */
611*88e42b0fSchristos #ifndef __has_builtin
612*88e42b0fSchristos # define __has_builtin(name) 0
613*88e42b0fSchristos #endif
614*88e42b0fSchristos 
615*88e42b0fSchristos 
616*88e42b0fSchristos /* POSIX allows platforms that don't support NAN.  But all major
617*88e42b0fSchristos    machines in the past 15 years have supported something close to
618*88e42b0fSchristos    IEEE NaN, so we define this unconditionally.  We also must define
619*88e42b0fSchristos    it on platforms like Solaris 10, where NAN is present but defined
620*88e42b0fSchristos    as a function pointer rather than a floating point constant.  */
621*88e42b0fSchristos #if !defined NAN || 0
622*88e42b0fSchristos # if !GNULIB_defined_NAN
623*88e42b0fSchristos #  undef NAN
624*88e42b0fSchristos   /* The Compaq (ex-DEC) C 6.4 compiler and the Microsoft MSVC 9 compiler
625*88e42b0fSchristos      choke on the expression 0.0 / 0.0.  */
626*88e42b0fSchristos #  if defined __DECC || defined _MSC_VER
627*88e42b0fSchristos _GL_MATH_INLINE float
_NaN()628*88e42b0fSchristos _NaN ()
629*88e42b0fSchristos {
630*88e42b0fSchristos   static float zero = 0.0f;
631*88e42b0fSchristos   return zero / zero;
632*88e42b0fSchristos }
633*88e42b0fSchristos #   define NAN (_NaN())
634*88e42b0fSchristos #  else
635*88e42b0fSchristos #   define NAN (0.0f / 0.0f)
636*88e42b0fSchristos #  endif
637*88e42b0fSchristos #  define GNULIB_defined_NAN 1
638*88e42b0fSchristos # endif
639*88e42b0fSchristos #endif
640*88e42b0fSchristos 
641*88e42b0fSchristos /* Solaris 10 defines HUGE_VAL, but as a function pointer rather
642*88e42b0fSchristos    than a floating point constant.  */
643*88e42b0fSchristos #if 0
644*88e42b0fSchristos # undef HUGE_VALF
645*88e42b0fSchristos # define HUGE_VALF (1.0f / 0.0f)
646*88e42b0fSchristos # undef HUGE_VAL
647*88e42b0fSchristos # define HUGE_VAL (1.0 / 0.0)
648*88e42b0fSchristos # undef HUGE_VALL
649*88e42b0fSchristos # define HUGE_VALL (1.0L / 0.0L)
650*88e42b0fSchristos #endif
651*88e42b0fSchristos 
652*88e42b0fSchristos /* HUGE_VALF is a 'float' Infinity.  */
653*88e42b0fSchristos #ifndef HUGE_VALF
654*88e42b0fSchristos # if defined _MSC_VER
655*88e42b0fSchristos /* The Microsoft MSVC 9 compiler chokes on the expression 1.0f / 0.0f.  */
656*88e42b0fSchristos #  define HUGE_VALF (1e25f * 1e25f)
657*88e42b0fSchristos # else
658*88e42b0fSchristos #  define HUGE_VALF (1.0f / 0.0f)
659*88e42b0fSchristos # endif
660*88e42b0fSchristos #endif
661*88e42b0fSchristos 
662*88e42b0fSchristos /* HUGE_VAL is a 'double' Infinity.  */
663*88e42b0fSchristos #ifndef HUGE_VAL
664*88e42b0fSchristos # if defined _MSC_VER
665*88e42b0fSchristos /* The Microsoft MSVC 9 compiler chokes on the expression 1.0 / 0.0.  */
666*88e42b0fSchristos #  define HUGE_VAL (1e250 * 1e250)
667*88e42b0fSchristos # else
668*88e42b0fSchristos #  define HUGE_VAL (1.0 / 0.0)
669*88e42b0fSchristos # endif
670*88e42b0fSchristos #endif
671*88e42b0fSchristos 
672*88e42b0fSchristos /* HUGE_VALL is a 'long double' Infinity.  */
673*88e42b0fSchristos #ifndef HUGE_VALL
674*88e42b0fSchristos # if defined _MSC_VER
675*88e42b0fSchristos /* The Microsoft MSVC 9 compiler chokes on the expression 1.0L / 0.0L.  */
676*88e42b0fSchristos #  define HUGE_VALL (1e250L * 1e250L)
677*88e42b0fSchristos # else
678*88e42b0fSchristos #  define HUGE_VALL (1.0L / 0.0L)
679*88e42b0fSchristos # endif
680*88e42b0fSchristos #endif
681*88e42b0fSchristos 
682*88e42b0fSchristos 
683*88e42b0fSchristos #if defined FP_ILOGB0 && defined FP_ILOGBNAN
684*88e42b0fSchristos  /* Ensure FP_ILOGB0 and FP_ILOGBNAN are correct.  */
685*88e42b0fSchristos # if defined __HAIKU__
686*88e42b0fSchristos   /* Haiku: match what ilogb() does */
687*88e42b0fSchristos #  undef FP_ILOGB0
688*88e42b0fSchristos #  undef FP_ILOGBNAN
689*88e42b0fSchristos #  define FP_ILOGB0   (- 2147483647 - 1) /* INT_MIN */
690*88e42b0fSchristos #  define FP_ILOGBNAN (- 2147483647 - 1) /* INT_MIN */
691*88e42b0fSchristos # endif
692*88e42b0fSchristos #else
693*88e42b0fSchristos  /* Ensure FP_ILOGB0 and FP_ILOGBNAN are defined.  */
694*88e42b0fSchristos # if defined __NetBSD__ || defined __sgi
695*88e42b0fSchristos   /* NetBSD, IRIX 6.5: match what ilogb() does */
696*88e42b0fSchristos #  define FP_ILOGB0   (- 2147483647 - 1) /* INT_MIN */
697*88e42b0fSchristos #  define FP_ILOGBNAN (- 2147483647 - 1) /* INT_MIN */
698*88e42b0fSchristos # elif defined _AIX
699*88e42b0fSchristos   /* AIX 5.1: match what ilogb() does in AIX >= 5.2 */
700*88e42b0fSchristos #  define FP_ILOGB0   (- 2147483647 - 1) /* INT_MIN */
701*88e42b0fSchristos #  define FP_ILOGBNAN 2147483647 /* INT_MAX */
702*88e42b0fSchristos # elif defined __sun
703*88e42b0fSchristos   /* Solaris 9: match what ilogb() does */
704*88e42b0fSchristos #  define FP_ILOGB0   (- 2147483647) /* - INT_MAX */
705*88e42b0fSchristos #  define FP_ILOGBNAN 2147483647 /* INT_MAX */
706*88e42b0fSchristos # else
707*88e42b0fSchristos   /* Gnulib defined values.  */
708*88e42b0fSchristos #  define FP_ILOGB0   (- 2147483647) /* - INT_MAX */
709*88e42b0fSchristos #  define FP_ILOGBNAN (- 2147483647 - 1) /* INT_MIN */
710*88e42b0fSchristos # endif
711*88e42b0fSchristos #endif
712*88e42b0fSchristos 
713*88e42b0fSchristos 
714*88e42b0fSchristos #if 0
715*88e42b0fSchristos # if 0
716*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
717*88e42b0fSchristos #   undef acosf
718*88e42b0fSchristos #   define acosf rpl_acosf
719*88e42b0fSchristos #  endif
720*88e42b0fSchristos _GL_FUNCDECL_RPL (acosf, float, (float x));
721*88e42b0fSchristos _GL_CXXALIAS_RPL (acosf, float, (float x));
722*88e42b0fSchristos # else
723*88e42b0fSchristos #  if !1
724*88e42b0fSchristos #   undef acosf
725*88e42b0fSchristos _GL_FUNCDECL_SYS (acosf, float, (float x));
726*88e42b0fSchristos #  endif
727*88e42b0fSchristos _GL_CXXALIAS_SYS (acosf, float, (float x));
728*88e42b0fSchristos # endif
729*88e42b0fSchristos _GL_CXXALIASWARN (acosf);
730*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
731*88e42b0fSchristos # undef acosf
732*88e42b0fSchristos # if HAVE_RAW_DECL_ACOSF
733*88e42b0fSchristos _GL_WARN_ON_USE (acosf, "acosf is unportable - "
734*88e42b0fSchristos                  "use gnulib module acosf for portability");
735*88e42b0fSchristos # endif
736*88e42b0fSchristos #endif
737*88e42b0fSchristos 
738*88e42b0fSchristos #if 0
739*88e42b0fSchristos # if !1 || !1
740*88e42b0fSchristos #  undef acosl
741*88e42b0fSchristos _GL_FUNCDECL_SYS (acosl, long double, (long double x));
742*88e42b0fSchristos # endif
743*88e42b0fSchristos _GL_CXXALIAS_SYS (acosl, long double, (long double x));
744*88e42b0fSchristos _GL_CXXALIASWARN (acosl);
745*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
746*88e42b0fSchristos # undef acosl
747*88e42b0fSchristos # if HAVE_RAW_DECL_ACOSL
748*88e42b0fSchristos _GL_WARN_ON_USE (acosl, "acosl is unportable - "
749*88e42b0fSchristos                  "use gnulib module acosl for portability");
750*88e42b0fSchristos # endif
751*88e42b0fSchristos #endif
752*88e42b0fSchristos 
753*88e42b0fSchristos 
754*88e42b0fSchristos #if 0
755*88e42b0fSchristos # if 0
756*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
757*88e42b0fSchristos #   undef asinf
758*88e42b0fSchristos #   define asinf rpl_asinf
759*88e42b0fSchristos #  endif
760*88e42b0fSchristos _GL_FUNCDECL_RPL (asinf, float, (float x));
761*88e42b0fSchristos _GL_CXXALIAS_RPL (asinf, float, (float x));
762*88e42b0fSchristos # else
763*88e42b0fSchristos #  if !1
764*88e42b0fSchristos #   undef asinf
765*88e42b0fSchristos _GL_FUNCDECL_SYS (asinf, float, (float x));
766*88e42b0fSchristos #  endif
767*88e42b0fSchristos _GL_CXXALIAS_SYS (asinf, float, (float x));
768*88e42b0fSchristos # endif
769*88e42b0fSchristos _GL_CXXALIASWARN (asinf);
770*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
771*88e42b0fSchristos # undef asinf
772*88e42b0fSchristos # if HAVE_RAW_DECL_ASINF
773*88e42b0fSchristos _GL_WARN_ON_USE (asinf, "asinf is unportable - "
774*88e42b0fSchristos                  "use gnulib module asinf for portability");
775*88e42b0fSchristos # endif
776*88e42b0fSchristos #endif
777*88e42b0fSchristos 
778*88e42b0fSchristos #if 0
779*88e42b0fSchristos # if !1 || !1
780*88e42b0fSchristos #  undef asinl
781*88e42b0fSchristos _GL_FUNCDECL_SYS (asinl, long double, (long double x));
782*88e42b0fSchristos # endif
783*88e42b0fSchristos _GL_CXXALIAS_SYS (asinl, long double, (long double x));
784*88e42b0fSchristos _GL_CXXALIASWARN (asinl);
785*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
786*88e42b0fSchristos # undef asinl
787*88e42b0fSchristos # if HAVE_RAW_DECL_ASINL
788*88e42b0fSchristos _GL_WARN_ON_USE (asinl, "asinl is unportable - "
789*88e42b0fSchristos                  "use gnulib module asinl for portability");
790*88e42b0fSchristos # endif
791*88e42b0fSchristos #endif
792*88e42b0fSchristos 
793*88e42b0fSchristos 
794*88e42b0fSchristos #if 0
795*88e42b0fSchristos # if 0
796*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
797*88e42b0fSchristos #   undef atanf
798*88e42b0fSchristos #   define atanf rpl_atanf
799*88e42b0fSchristos #  endif
800*88e42b0fSchristos _GL_FUNCDECL_RPL (atanf, float, (float x));
801*88e42b0fSchristos _GL_CXXALIAS_RPL (atanf, float, (float x));
802*88e42b0fSchristos # else
803*88e42b0fSchristos #  if !1
804*88e42b0fSchristos #   undef atanf
805*88e42b0fSchristos _GL_FUNCDECL_SYS (atanf, float, (float x));
806*88e42b0fSchristos #  endif
807*88e42b0fSchristos _GL_CXXALIAS_SYS (atanf, float, (float x));
808*88e42b0fSchristos # endif
809*88e42b0fSchristos _GL_CXXALIASWARN (atanf);
810*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
811*88e42b0fSchristos # undef atanf
812*88e42b0fSchristos # if HAVE_RAW_DECL_ATANF
813*88e42b0fSchristos _GL_WARN_ON_USE (atanf, "atanf is unportable - "
814*88e42b0fSchristos                  "use gnulib module atanf for portability");
815*88e42b0fSchristos # endif
816*88e42b0fSchristos #endif
817*88e42b0fSchristos 
818*88e42b0fSchristos #if 0
819*88e42b0fSchristos # if !1 || !1
820*88e42b0fSchristos #  undef atanl
821*88e42b0fSchristos _GL_FUNCDECL_SYS (atanl, long double, (long double x));
822*88e42b0fSchristos # endif
823*88e42b0fSchristos _GL_CXXALIAS_SYS (atanl, long double, (long double x));
824*88e42b0fSchristos _GL_CXXALIASWARN (atanl);
825*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
826*88e42b0fSchristos # undef atanl
827*88e42b0fSchristos # if HAVE_RAW_DECL_ATANL
828*88e42b0fSchristos _GL_WARN_ON_USE (atanl, "atanl is unportable - "
829*88e42b0fSchristos                  "use gnulib module atanl for portability");
830*88e42b0fSchristos # endif
831*88e42b0fSchristos #endif
832*88e42b0fSchristos 
833*88e42b0fSchristos 
834*88e42b0fSchristos #if 0
835*88e42b0fSchristos # if 0
836*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
837*88e42b0fSchristos #   undef atan2f
838*88e42b0fSchristos #   define atan2f rpl_atan2f
839*88e42b0fSchristos #  endif
840*88e42b0fSchristos _GL_FUNCDECL_RPL (atan2f, float, (float y, float x));
841*88e42b0fSchristos _GL_CXXALIAS_RPL (atan2f, float, (float y, float x));
842*88e42b0fSchristos # else
843*88e42b0fSchristos #  if !1
844*88e42b0fSchristos #   undef atan2f
845*88e42b0fSchristos _GL_FUNCDECL_SYS (atan2f, float, (float y, float x));
846*88e42b0fSchristos #  endif
847*88e42b0fSchristos _GL_CXXALIAS_SYS (atan2f, float, (float y, float x));
848*88e42b0fSchristos # endif
849*88e42b0fSchristos _GL_CXXALIASWARN (atan2f);
850*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
851*88e42b0fSchristos # undef atan2f
852*88e42b0fSchristos # if HAVE_RAW_DECL_ATAN2F
853*88e42b0fSchristos _GL_WARN_ON_USE (atan2f, "atan2f is unportable - "
854*88e42b0fSchristos                  "use gnulib module atan2f for portability");
855*88e42b0fSchristos # endif
856*88e42b0fSchristos #endif
857*88e42b0fSchristos 
858*88e42b0fSchristos 
859*88e42b0fSchristos #if 0
860*88e42b0fSchristos # if 0
861*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
862*88e42b0fSchristos #   undef cbrtf
863*88e42b0fSchristos #   define cbrtf rpl_cbrtf
864*88e42b0fSchristos #  endif
865*88e42b0fSchristos _GL_FUNCDECL_RPL (cbrtf, float, (float x));
866*88e42b0fSchristos _GL_CXXALIAS_RPL (cbrtf, float, (float x));
867*88e42b0fSchristos # else
868*88e42b0fSchristos #  if !1
869*88e42b0fSchristos _GL_FUNCDECL_SYS (cbrtf, float, (float x));
870*88e42b0fSchristos #  endif
871*88e42b0fSchristos _GL_CXXALIAS_SYS (cbrtf, float, (float x));
872*88e42b0fSchristos # endif
873*88e42b0fSchristos _GL_CXXALIASWARN (cbrtf);
874*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
875*88e42b0fSchristos # undef cbrtf
876*88e42b0fSchristos # if HAVE_RAW_DECL_CBRTF
877*88e42b0fSchristos _GL_WARN_ON_USE (cbrtf, "cbrtf is unportable - "
878*88e42b0fSchristos                  "use gnulib module cbrtf for portability");
879*88e42b0fSchristos # endif
880*88e42b0fSchristos #endif
881*88e42b0fSchristos 
882*88e42b0fSchristos #if 0
883*88e42b0fSchristos # if !1
884*88e42b0fSchristos _GL_FUNCDECL_SYS (cbrt, double, (double x));
885*88e42b0fSchristos # endif
886*88e42b0fSchristos _GL_CXXALIAS_SYS (cbrt, double, (double x));
887*88e42b0fSchristos # if __GLIBC__ >= 2
888*88e42b0fSchristos _GL_CXXALIASWARN (cbrt);
889*88e42b0fSchristos # endif
890*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
891*88e42b0fSchristos # undef cbrt
892*88e42b0fSchristos # if HAVE_RAW_DECL_CBRT
893*88e42b0fSchristos _GL_WARN_ON_USE (cbrt, "cbrt is unportable - "
894*88e42b0fSchristos                  "use gnulib module cbrt for portability");
895*88e42b0fSchristos # endif
896*88e42b0fSchristos #endif
897*88e42b0fSchristos 
898*88e42b0fSchristos #if 0
899*88e42b0fSchristos # if 0
900*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
901*88e42b0fSchristos #   undef cbrtl
902*88e42b0fSchristos #   define cbrtl rpl_cbrtl
903*88e42b0fSchristos #  endif
904*88e42b0fSchristos _GL_FUNCDECL_RPL (cbrtl, long double, (long double x));
905*88e42b0fSchristos _GL_CXXALIAS_RPL (cbrtl, long double, (long double x));
906*88e42b0fSchristos # else
907*88e42b0fSchristos #  if !1
908*88e42b0fSchristos _GL_FUNCDECL_SYS (cbrtl, long double, (long double x));
909*88e42b0fSchristos #  endif
910*88e42b0fSchristos _GL_CXXALIAS_SYS (cbrtl, long double, (long double x));
911*88e42b0fSchristos # endif
912*88e42b0fSchristos _GL_CXXALIASWARN (cbrtl);
913*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
914*88e42b0fSchristos # undef cbrtl
915*88e42b0fSchristos # if HAVE_RAW_DECL_CBRTL
916*88e42b0fSchristos _GL_WARN_ON_USE (cbrtl, "cbrtl is unportable - "
917*88e42b0fSchristos                  "use gnulib module cbrtl for portability");
918*88e42b0fSchristos # endif
919*88e42b0fSchristos #endif
920*88e42b0fSchristos 
921*88e42b0fSchristos 
922*88e42b0fSchristos #if 0
923*88e42b0fSchristos # if 0
924*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
925*88e42b0fSchristos #   undef ceilf
926*88e42b0fSchristos #   define ceilf rpl_ceilf
927*88e42b0fSchristos #  endif
928*88e42b0fSchristos _GL_FUNCDECL_RPL (ceilf, float, (float x));
929*88e42b0fSchristos _GL_CXXALIAS_RPL (ceilf, float, (float x));
930*88e42b0fSchristos # else
931*88e42b0fSchristos #  if !1
932*88e42b0fSchristos #   undef ceilf
933*88e42b0fSchristos _GL_FUNCDECL_SYS (ceilf, float, (float x));
934*88e42b0fSchristos #  endif
935*88e42b0fSchristos _GL_CXXALIAS_SYS (ceilf, float, (float x));
936*88e42b0fSchristos # endif
937*88e42b0fSchristos _GL_CXXALIASWARN (ceilf);
938*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
939*88e42b0fSchristos # undef ceilf
940*88e42b0fSchristos # if HAVE_RAW_DECL_CEILF
941*88e42b0fSchristos _GL_WARN_ON_USE (ceilf, "ceilf is unportable - "
942*88e42b0fSchristos                  "use gnulib module ceilf for portability");
943*88e42b0fSchristos # endif
944*88e42b0fSchristos #endif
945*88e42b0fSchristos 
946*88e42b0fSchristos #if 0
947*88e42b0fSchristos # if 0
948*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
949*88e42b0fSchristos #   undef ceil
950*88e42b0fSchristos #   define ceil rpl_ceil
951*88e42b0fSchristos #  endif
952*88e42b0fSchristos _GL_FUNCDECL_RPL (ceil, double, (double x));
953*88e42b0fSchristos _GL_CXXALIAS_RPL (ceil, double, (double x));
954*88e42b0fSchristos # else
955*88e42b0fSchristos _GL_CXXALIAS_SYS (ceil, double, (double x));
956*88e42b0fSchristos # endif
957*88e42b0fSchristos # if __GLIBC__ >= 2
958*88e42b0fSchristos _GL_CXXALIASWARN (ceil);
959*88e42b0fSchristos # endif
960*88e42b0fSchristos #endif
961*88e42b0fSchristos 
962*88e42b0fSchristos #if 0
963*88e42b0fSchristos # if 0
964*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
965*88e42b0fSchristos #   undef ceill
966*88e42b0fSchristos #   define ceill rpl_ceill
967*88e42b0fSchristos #  endif
968*88e42b0fSchristos _GL_FUNCDECL_RPL (ceill, long double, (long double x));
969*88e42b0fSchristos _GL_CXXALIAS_RPL (ceill, long double, (long double x));
970*88e42b0fSchristos # else
971*88e42b0fSchristos #  if !1
972*88e42b0fSchristos #   undef ceill
973*88e42b0fSchristos _GL_FUNCDECL_SYS (ceill, long double, (long double x));
974*88e42b0fSchristos #  endif
975*88e42b0fSchristos _GL_CXXALIAS_SYS (ceill, long double, (long double x));
976*88e42b0fSchristos # endif
977*88e42b0fSchristos _GL_CXXALIASWARN (ceill);
978*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
979*88e42b0fSchristos # undef ceill
980*88e42b0fSchristos # if HAVE_RAW_DECL_CEILL
981*88e42b0fSchristos _GL_WARN_ON_USE (ceill, "ceill is unportable - "
982*88e42b0fSchristos                  "use gnulib module ceill for portability");
983*88e42b0fSchristos # endif
984*88e42b0fSchristos #endif
985*88e42b0fSchristos 
986*88e42b0fSchristos 
987*88e42b0fSchristos #if 0
988*88e42b0fSchristos # if !1
989*88e42b0fSchristos #  undef copysignf
990*88e42b0fSchristos _GL_FUNCDECL_SYS (copysignf, float, (float x, float y));
991*88e42b0fSchristos # endif
992*88e42b0fSchristos _GL_CXXALIAS_SYS (copysignf, float, (float x, float y));
993*88e42b0fSchristos _GL_CXXALIASWARN (copysignf);
994*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
995*88e42b0fSchristos # undef copysignf
996*88e42b0fSchristos # if HAVE_RAW_DECL_COPYSIGNF
997*88e42b0fSchristos _GL_WARN_ON_USE (copysignf, "copysignf is unportable - "
998*88e42b0fSchristos                  "use gnulib module copysignf for portability");
999*88e42b0fSchristos # endif
1000*88e42b0fSchristos #endif
1001*88e42b0fSchristos 
1002*88e42b0fSchristos #if 0
1003*88e42b0fSchristos # if !1
1004*88e42b0fSchristos _GL_FUNCDECL_SYS (copysign, double, (double x, double y));
1005*88e42b0fSchristos # endif
1006*88e42b0fSchristos _GL_CXXALIAS_SYS (copysign, double, (double x, double y));
1007*88e42b0fSchristos # if __GLIBC__ >= 2
1008*88e42b0fSchristos _GL_CXXALIASWARN (copysign);
1009*88e42b0fSchristos # endif
1010*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
1011*88e42b0fSchristos # undef copysign
1012*88e42b0fSchristos # if HAVE_RAW_DECL_COPYSIGN
1013*88e42b0fSchristos _GL_WARN_ON_USE (copysign, "copysign is unportable - "
1014*88e42b0fSchristos                  "use gnulib module copysign for portability");
1015*88e42b0fSchristos # endif
1016*88e42b0fSchristos #endif
1017*88e42b0fSchristos 
1018*88e42b0fSchristos #if 0
1019*88e42b0fSchristos # if !1
1020*88e42b0fSchristos _GL_FUNCDECL_SYS (copysignl, long double, (long double x, long double y));
1021*88e42b0fSchristos # endif
1022*88e42b0fSchristos _GL_CXXALIAS_SYS (copysignl, long double, (long double x, long double y));
1023*88e42b0fSchristos _GL_CXXALIASWARN (copysignl);
1024*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
1025*88e42b0fSchristos # undef copysignl
1026*88e42b0fSchristos # if HAVE_RAW_DECL_COPYSIGNL
1027*88e42b0fSchristos _GL_WARN_ON_USE (copysign, "copysignl is unportable - "
1028*88e42b0fSchristos                  "use gnulib module copysignl for portability");
1029*88e42b0fSchristos # endif
1030*88e42b0fSchristos #endif
1031*88e42b0fSchristos 
1032*88e42b0fSchristos 
1033*88e42b0fSchristos #if 0
1034*88e42b0fSchristos # if 0
1035*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1036*88e42b0fSchristos #   undef cosf
1037*88e42b0fSchristos #   define cosf rpl_cosf
1038*88e42b0fSchristos #  endif
1039*88e42b0fSchristos _GL_FUNCDECL_RPL (cosf, float, (float x));
1040*88e42b0fSchristos _GL_CXXALIAS_RPL (cosf, float, (float x));
1041*88e42b0fSchristos # else
1042*88e42b0fSchristos #  if !1
1043*88e42b0fSchristos #   undef cosf
1044*88e42b0fSchristos _GL_FUNCDECL_SYS (cosf, float, (float x));
1045*88e42b0fSchristos #  endif
1046*88e42b0fSchristos _GL_CXXALIAS_SYS (cosf, float, (float x));
1047*88e42b0fSchristos # endif
1048*88e42b0fSchristos _GL_CXXALIASWARN (cosf);
1049*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
1050*88e42b0fSchristos # undef cosf
1051*88e42b0fSchristos # if HAVE_RAW_DECL_COSF
1052*88e42b0fSchristos _GL_WARN_ON_USE (cosf, "cosf is unportable - "
1053*88e42b0fSchristos                  "use gnulib module cosf for portability");
1054*88e42b0fSchristos # endif
1055*88e42b0fSchristos #endif
1056*88e42b0fSchristos 
1057*88e42b0fSchristos #if 0
1058*88e42b0fSchristos # if !1 || !1
1059*88e42b0fSchristos #  undef cosl
1060*88e42b0fSchristos _GL_FUNCDECL_SYS (cosl, long double, (long double x));
1061*88e42b0fSchristos # endif
1062*88e42b0fSchristos _GL_CXXALIAS_SYS (cosl, long double, (long double x));
1063*88e42b0fSchristos _GL_CXXALIASWARN (cosl);
1064*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
1065*88e42b0fSchristos # undef cosl
1066*88e42b0fSchristos # if HAVE_RAW_DECL_COSL
1067*88e42b0fSchristos _GL_WARN_ON_USE (cosl, "cosl is unportable - "
1068*88e42b0fSchristos                  "use gnulib module cosl for portability");
1069*88e42b0fSchristos # endif
1070*88e42b0fSchristos #endif
1071*88e42b0fSchristos 
1072*88e42b0fSchristos 
1073*88e42b0fSchristos #if 0
1074*88e42b0fSchristos # if 0
1075*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1076*88e42b0fSchristos #   undef coshf
1077*88e42b0fSchristos #   define coshf rpl_coshf
1078*88e42b0fSchristos #  endif
1079*88e42b0fSchristos _GL_FUNCDECL_RPL (coshf, float, (float x));
1080*88e42b0fSchristos _GL_CXXALIAS_RPL (coshf, float, (float x));
1081*88e42b0fSchristos # else
1082*88e42b0fSchristos #  if !1
1083*88e42b0fSchristos #   undef coshf
1084*88e42b0fSchristos _GL_FUNCDECL_SYS (coshf, float, (float x));
1085*88e42b0fSchristos #  endif
1086*88e42b0fSchristos _GL_CXXALIAS_SYS (coshf, float, (float x));
1087*88e42b0fSchristos # endif
1088*88e42b0fSchristos _GL_CXXALIASWARN (coshf);
1089*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
1090*88e42b0fSchristos # undef coshf
1091*88e42b0fSchristos # if HAVE_RAW_DECL_COSHF
1092*88e42b0fSchristos _GL_WARN_ON_USE (coshf, "coshf is unportable - "
1093*88e42b0fSchristos                  "use gnulib module coshf for portability");
1094*88e42b0fSchristos # endif
1095*88e42b0fSchristos #endif
1096*88e42b0fSchristos 
1097*88e42b0fSchristos 
1098*88e42b0fSchristos #if 0
1099*88e42b0fSchristos # if 0
1100*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1101*88e42b0fSchristos #   undef expf
1102*88e42b0fSchristos #   define expf rpl_expf
1103*88e42b0fSchristos #  endif
1104*88e42b0fSchristos _GL_FUNCDECL_RPL (expf, float, (float x));
1105*88e42b0fSchristos _GL_CXXALIAS_RPL (expf, float, (float x));
1106*88e42b0fSchristos # else
1107*88e42b0fSchristos #  if !1
1108*88e42b0fSchristos #   undef expf
1109*88e42b0fSchristos _GL_FUNCDECL_SYS (expf, float, (float x));
1110*88e42b0fSchristos #  endif
1111*88e42b0fSchristos _GL_CXXALIAS_SYS (expf, float, (float x));
1112*88e42b0fSchristos # endif
1113*88e42b0fSchristos _GL_CXXALIASWARN (expf);
1114*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
1115*88e42b0fSchristos # undef expf
1116*88e42b0fSchristos # if HAVE_RAW_DECL_EXPF
1117*88e42b0fSchristos _GL_WARN_ON_USE (expf, "expf is unportable - "
1118*88e42b0fSchristos                  "use gnulib module expf for portability");
1119*88e42b0fSchristos # endif
1120*88e42b0fSchristos #endif
1121*88e42b0fSchristos 
1122*88e42b0fSchristos #if 0
1123*88e42b0fSchristos # if 0
1124*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1125*88e42b0fSchristos #   undef expl
1126*88e42b0fSchristos #   define expl rpl_expl
1127*88e42b0fSchristos #  endif
1128*88e42b0fSchristos _GL_FUNCDECL_RPL (expl, long double, (long double x));
1129*88e42b0fSchristos _GL_CXXALIAS_RPL (expl, long double, (long double x));
1130*88e42b0fSchristos # else
1131*88e42b0fSchristos #  if !1 || !1
1132*88e42b0fSchristos #   undef expl
1133*88e42b0fSchristos _GL_FUNCDECL_SYS (expl, long double, (long double x));
1134*88e42b0fSchristos #  endif
1135*88e42b0fSchristos _GL_CXXALIAS_SYS (expl, long double, (long double x));
1136*88e42b0fSchristos # endif
1137*88e42b0fSchristos _GL_CXXALIASWARN (expl);
1138*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
1139*88e42b0fSchristos # undef expl
1140*88e42b0fSchristos # if HAVE_RAW_DECL_EXPL
1141*88e42b0fSchristos _GL_WARN_ON_USE (expl, "expl is unportable - "
1142*88e42b0fSchristos                  "use gnulib module expl for portability");
1143*88e42b0fSchristos # endif
1144*88e42b0fSchristos #endif
1145*88e42b0fSchristos 
1146*88e42b0fSchristos 
1147*88e42b0fSchristos #if 0
1148*88e42b0fSchristos # if !1
1149*88e42b0fSchristos _GL_FUNCDECL_SYS (exp2f, float, (float x));
1150*88e42b0fSchristos # endif
1151*88e42b0fSchristos _GL_CXXALIAS_SYS (exp2f, float, (float x));
1152*88e42b0fSchristos _GL_CXXALIASWARN (exp2f);
1153*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
1154*88e42b0fSchristos # undef exp2f
1155*88e42b0fSchristos # if HAVE_RAW_DECL_EXP2F
1156*88e42b0fSchristos _GL_WARN_ON_USE (exp2f, "exp2f is unportable - "
1157*88e42b0fSchristos                  "use gnulib module exp2f for portability");
1158*88e42b0fSchristos # endif
1159*88e42b0fSchristos #endif
1160*88e42b0fSchristos 
1161*88e42b0fSchristos #if 0
1162*88e42b0fSchristos # if 0
1163*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1164*88e42b0fSchristos #   undef exp2
1165*88e42b0fSchristos #   define exp2 rpl_exp2
1166*88e42b0fSchristos #  endif
1167*88e42b0fSchristos _GL_FUNCDECL_RPL (exp2, double, (double x));
1168*88e42b0fSchristos _GL_CXXALIAS_RPL (exp2, double, (double x));
1169*88e42b0fSchristos # else
1170*88e42b0fSchristos #  if !1
1171*88e42b0fSchristos _GL_FUNCDECL_SYS (exp2, double, (double x));
1172*88e42b0fSchristos #  endif
1173*88e42b0fSchristos _GL_CXXALIAS_SYS (exp2, double, (double x));
1174*88e42b0fSchristos # endif
1175*88e42b0fSchristos # if __GLIBC__ >= 2
1176*88e42b0fSchristos _GL_CXXALIASWARN (exp2);
1177*88e42b0fSchristos # endif
1178*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
1179*88e42b0fSchristos # undef exp2
1180*88e42b0fSchristos # if HAVE_RAW_DECL_EXP2
1181*88e42b0fSchristos _GL_WARN_ON_USE (exp2, "exp2 is unportable - "
1182*88e42b0fSchristos                  "use gnulib module exp2 for portability");
1183*88e42b0fSchristos # endif
1184*88e42b0fSchristos #endif
1185*88e42b0fSchristos 
1186*88e42b0fSchristos #if 0
1187*88e42b0fSchristos # if 0
1188*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1189*88e42b0fSchristos #   undef exp2l
1190*88e42b0fSchristos #   define exp2l rpl_exp2l
1191*88e42b0fSchristos #  endif
1192*88e42b0fSchristos _GL_FUNCDECL_RPL (exp2l, long double, (long double x));
1193*88e42b0fSchristos _GL_CXXALIAS_RPL (exp2l, long double, (long double x));
1194*88e42b0fSchristos # else
1195*88e42b0fSchristos #  if !1
1196*88e42b0fSchristos #   undef exp2l
1197*88e42b0fSchristos _GL_FUNCDECL_SYS (exp2l, long double, (long double x));
1198*88e42b0fSchristos #  endif
1199*88e42b0fSchristos _GL_CXXALIAS_SYS (exp2l, long double, (long double x));
1200*88e42b0fSchristos # endif
1201*88e42b0fSchristos _GL_CXXALIASWARN (exp2l);
1202*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
1203*88e42b0fSchristos # undef exp2l
1204*88e42b0fSchristos # if HAVE_RAW_DECL_EXP2L
1205*88e42b0fSchristos _GL_WARN_ON_USE (exp2l, "exp2l is unportable - "
1206*88e42b0fSchristos                  "use gnulib module exp2l for portability");
1207*88e42b0fSchristos # endif
1208*88e42b0fSchristos #endif
1209*88e42b0fSchristos 
1210*88e42b0fSchristos 
1211*88e42b0fSchristos #if 0
1212*88e42b0fSchristos # if 0
1213*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1214*88e42b0fSchristos #   undef expm1f
1215*88e42b0fSchristos #   define expm1f rpl_expm1f
1216*88e42b0fSchristos #  endif
1217*88e42b0fSchristos _GL_FUNCDECL_RPL (expm1f, float, (float x));
1218*88e42b0fSchristos _GL_CXXALIAS_RPL (expm1f, float, (float x));
1219*88e42b0fSchristos # else
1220*88e42b0fSchristos #  if !1
1221*88e42b0fSchristos _GL_FUNCDECL_SYS (expm1f, float, (float x));
1222*88e42b0fSchristos #  endif
1223*88e42b0fSchristos _GL_CXXALIAS_SYS (expm1f, float, (float x));
1224*88e42b0fSchristos # endif
1225*88e42b0fSchristos _GL_CXXALIASWARN (expm1f);
1226*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
1227*88e42b0fSchristos # undef expm1f
1228*88e42b0fSchristos # if HAVE_RAW_DECL_EXPM1F
1229*88e42b0fSchristos _GL_WARN_ON_USE (expm1f, "expm1f is unportable - "
1230*88e42b0fSchristos                  "use gnulib module expm1f for portability");
1231*88e42b0fSchristos # endif
1232*88e42b0fSchristos #endif
1233*88e42b0fSchristos 
1234*88e42b0fSchristos #if 0
1235*88e42b0fSchristos # if 0
1236*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1237*88e42b0fSchristos #   undef expm1
1238*88e42b0fSchristos #   define expm1 rpl_expm1
1239*88e42b0fSchristos #  endif
1240*88e42b0fSchristos _GL_FUNCDECL_RPL (expm1, double, (double x));
1241*88e42b0fSchristos _GL_CXXALIAS_RPL (expm1, double, (double x));
1242*88e42b0fSchristos # else
1243*88e42b0fSchristos #  if !1
1244*88e42b0fSchristos _GL_FUNCDECL_SYS (expm1, double, (double x));
1245*88e42b0fSchristos #  endif
1246*88e42b0fSchristos _GL_CXXALIAS_SYS (expm1, double, (double x));
1247*88e42b0fSchristos # endif
1248*88e42b0fSchristos # if __GLIBC__ >= 2
1249*88e42b0fSchristos _GL_CXXALIASWARN (expm1);
1250*88e42b0fSchristos # endif
1251*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
1252*88e42b0fSchristos # undef expm1
1253*88e42b0fSchristos # if HAVE_RAW_DECL_EXPM1
1254*88e42b0fSchristos _GL_WARN_ON_USE (expm1, "expm1 is unportable - "
1255*88e42b0fSchristos                  "use gnulib module expm1 for portability");
1256*88e42b0fSchristos # endif
1257*88e42b0fSchristos #endif
1258*88e42b0fSchristos 
1259*88e42b0fSchristos #if 0
1260*88e42b0fSchristos # if 0
1261*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1262*88e42b0fSchristos #   undef expm1l
1263*88e42b0fSchristos #   define expm1l rpl_expm1l
1264*88e42b0fSchristos #  endif
1265*88e42b0fSchristos _GL_FUNCDECL_RPL (expm1l, long double, (long double x));
1266*88e42b0fSchristos _GL_CXXALIAS_RPL (expm1l, long double, (long double x));
1267*88e42b0fSchristos # else
1268*88e42b0fSchristos #  if !1
1269*88e42b0fSchristos #   undef expm1l
1270*88e42b0fSchristos #   if !(defined __cplusplus && defined _AIX)
1271*88e42b0fSchristos _GL_FUNCDECL_SYS (expm1l, long double, (long double x));
1272*88e42b0fSchristos #   endif
1273*88e42b0fSchristos #  endif
1274*88e42b0fSchristos _GL_CXXALIAS_SYS (expm1l, long double, (long double x));
1275*88e42b0fSchristos # endif
1276*88e42b0fSchristos _GL_CXXALIASWARN (expm1l);
1277*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
1278*88e42b0fSchristos # undef expm1l
1279*88e42b0fSchristos # if HAVE_RAW_DECL_EXPM1L
1280*88e42b0fSchristos _GL_WARN_ON_USE (expm1l, "expm1l is unportable - "
1281*88e42b0fSchristos                  "use gnulib module expm1l for portability");
1282*88e42b0fSchristos # endif
1283*88e42b0fSchristos #endif
1284*88e42b0fSchristos 
1285*88e42b0fSchristos 
1286*88e42b0fSchristos #if 0
1287*88e42b0fSchristos # if !1
1288*88e42b0fSchristos #  undef fabsf
1289*88e42b0fSchristos _GL_FUNCDECL_SYS (fabsf, float, (float x));
1290*88e42b0fSchristos # endif
1291*88e42b0fSchristos _GL_CXXALIAS_SYS (fabsf, float, (float x));
1292*88e42b0fSchristos _GL_CXXALIASWARN (fabsf);
1293*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
1294*88e42b0fSchristos # undef fabsf
1295*88e42b0fSchristos # if HAVE_RAW_DECL_FABSF
1296*88e42b0fSchristos _GL_WARN_ON_USE (fabsf, "fabsf is unportable - "
1297*88e42b0fSchristos                  "use gnulib module fabsf for portability");
1298*88e42b0fSchristos # endif
1299*88e42b0fSchristos #endif
1300*88e42b0fSchristos 
1301*88e42b0fSchristos #if 0
1302*88e42b0fSchristos # if 0
1303*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1304*88e42b0fSchristos #   undef fabsl
1305*88e42b0fSchristos #   define fabsl rpl_fabsl
1306*88e42b0fSchristos #  endif
1307*88e42b0fSchristos _GL_FUNCDECL_RPL (fabsl, long double, (long double x));
1308*88e42b0fSchristos _GL_CXXALIAS_RPL (fabsl, long double, (long double x));
1309*88e42b0fSchristos # else
1310*88e42b0fSchristos #  if !1
1311*88e42b0fSchristos #   undef fabsl
1312*88e42b0fSchristos _GL_FUNCDECL_SYS (fabsl, long double, (long double x));
1313*88e42b0fSchristos #  endif
1314*88e42b0fSchristos _GL_CXXALIAS_SYS (fabsl, long double, (long double x));
1315*88e42b0fSchristos # endif
1316*88e42b0fSchristos _GL_CXXALIASWARN (fabsl);
1317*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
1318*88e42b0fSchristos # undef fabsl
1319*88e42b0fSchristos # if HAVE_RAW_DECL_FABSL
1320*88e42b0fSchristos _GL_WARN_ON_USE (fabsl, "fabsl is unportable - "
1321*88e42b0fSchristos                  "use gnulib module fabsl for portability");
1322*88e42b0fSchristos # endif
1323*88e42b0fSchristos #endif
1324*88e42b0fSchristos 
1325*88e42b0fSchristos 
1326*88e42b0fSchristos #if 0
1327*88e42b0fSchristos # if 0
1328*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1329*88e42b0fSchristos #   undef floorf
1330*88e42b0fSchristos #   define floorf rpl_floorf
1331*88e42b0fSchristos #  endif
1332*88e42b0fSchristos _GL_FUNCDECL_RPL (floorf, float, (float x));
1333*88e42b0fSchristos _GL_CXXALIAS_RPL (floorf, float, (float x));
1334*88e42b0fSchristos # else
1335*88e42b0fSchristos #  if !1
1336*88e42b0fSchristos #   undef floorf
1337*88e42b0fSchristos _GL_FUNCDECL_SYS (floorf, float, (float x));
1338*88e42b0fSchristos #  endif
1339*88e42b0fSchristos _GL_CXXALIAS_SYS (floorf, float, (float x));
1340*88e42b0fSchristos # endif
1341*88e42b0fSchristos _GL_CXXALIASWARN (floorf);
1342*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
1343*88e42b0fSchristos # undef floorf
1344*88e42b0fSchristos # if HAVE_RAW_DECL_FLOORF
1345*88e42b0fSchristos _GL_WARN_ON_USE (floorf, "floorf is unportable - "
1346*88e42b0fSchristos                  "use gnulib module floorf for portability");
1347*88e42b0fSchristos # endif
1348*88e42b0fSchristos #endif
1349*88e42b0fSchristos 
1350*88e42b0fSchristos #if 0
1351*88e42b0fSchristos # if 0
1352*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1353*88e42b0fSchristos #   undef floor
1354*88e42b0fSchristos #   define floor rpl_floor
1355*88e42b0fSchristos #  endif
1356*88e42b0fSchristos _GL_FUNCDECL_RPL (floor, double, (double x));
1357*88e42b0fSchristos _GL_CXXALIAS_RPL (floor, double, (double x));
1358*88e42b0fSchristos # else
1359*88e42b0fSchristos _GL_CXXALIAS_SYS (floor, double, (double x));
1360*88e42b0fSchristos # endif
1361*88e42b0fSchristos # if __GLIBC__ >= 2
1362*88e42b0fSchristos _GL_CXXALIASWARN (floor);
1363*88e42b0fSchristos # endif
1364*88e42b0fSchristos #endif
1365*88e42b0fSchristos 
1366*88e42b0fSchristos #if 0
1367*88e42b0fSchristos # if 0
1368*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1369*88e42b0fSchristos #   undef floorl
1370*88e42b0fSchristos #   define floorl rpl_floorl
1371*88e42b0fSchristos #  endif
1372*88e42b0fSchristos _GL_FUNCDECL_RPL (floorl, long double, (long double x));
1373*88e42b0fSchristos _GL_CXXALIAS_RPL (floorl, long double, (long double x));
1374*88e42b0fSchristos # else
1375*88e42b0fSchristos #  if !1
1376*88e42b0fSchristos #   undef floorl
1377*88e42b0fSchristos _GL_FUNCDECL_SYS (floorl, long double, (long double x));
1378*88e42b0fSchristos #  endif
1379*88e42b0fSchristos _GL_CXXALIAS_SYS (floorl, long double, (long double x));
1380*88e42b0fSchristos # endif
1381*88e42b0fSchristos _GL_CXXALIASWARN (floorl);
1382*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
1383*88e42b0fSchristos # undef floorl
1384*88e42b0fSchristos # if HAVE_RAW_DECL_FLOORL
1385*88e42b0fSchristos _GL_WARN_ON_USE (floorl, "floorl is unportable - "
1386*88e42b0fSchristos                  "use gnulib module floorl for portability");
1387*88e42b0fSchristos # endif
1388*88e42b0fSchristos #endif
1389*88e42b0fSchristos 
1390*88e42b0fSchristos 
1391*88e42b0fSchristos #if 0
1392*88e42b0fSchristos # if 0
1393*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1394*88e42b0fSchristos #   undef fmaf
1395*88e42b0fSchristos #   define fmaf rpl_fmaf
1396*88e42b0fSchristos #  endif
1397*88e42b0fSchristos _GL_FUNCDECL_RPL (fmaf, float, (float x, float y, float z));
1398*88e42b0fSchristos _GL_CXXALIAS_RPL (fmaf, float, (float x, float y, float z));
1399*88e42b0fSchristos # else
1400*88e42b0fSchristos #  if !1
1401*88e42b0fSchristos #   undef fmaf
1402*88e42b0fSchristos _GL_FUNCDECL_SYS (fmaf, float, (float x, float y, float z));
1403*88e42b0fSchristos #  endif
1404*88e42b0fSchristos _GL_CXXALIAS_SYS (fmaf, float, (float x, float y, float z));
1405*88e42b0fSchristos # endif
1406*88e42b0fSchristos _GL_CXXALIASWARN (fmaf);
1407*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
1408*88e42b0fSchristos # undef fmaf
1409*88e42b0fSchristos # if HAVE_RAW_DECL_FMAF
1410*88e42b0fSchristos _GL_WARN_ON_USE (fmaf, "fmaf is unportable - "
1411*88e42b0fSchristos                  "use gnulib module fmaf for portability");
1412*88e42b0fSchristos # endif
1413*88e42b0fSchristos #endif
1414*88e42b0fSchristos 
1415*88e42b0fSchristos #if 0
1416*88e42b0fSchristos # if 0
1417*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1418*88e42b0fSchristos #   undef fma
1419*88e42b0fSchristos #   define fma rpl_fma
1420*88e42b0fSchristos #  endif
1421*88e42b0fSchristos _GL_FUNCDECL_RPL (fma, double, (double x, double y, double z));
1422*88e42b0fSchristos _GL_CXXALIAS_RPL (fma, double, (double x, double y, double z));
1423*88e42b0fSchristos # else
1424*88e42b0fSchristos #  if !1
1425*88e42b0fSchristos #   undef fma
1426*88e42b0fSchristos _GL_FUNCDECL_SYS (fma, double, (double x, double y, double z));
1427*88e42b0fSchristos #  endif
1428*88e42b0fSchristos _GL_CXXALIAS_SYS (fma, double, (double x, double y, double z));
1429*88e42b0fSchristos # endif
1430*88e42b0fSchristos # if __GLIBC__ >= 2
1431*88e42b0fSchristos _GL_CXXALIASWARN (fma);
1432*88e42b0fSchristos # endif
1433*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
1434*88e42b0fSchristos # undef fma
1435*88e42b0fSchristos # if HAVE_RAW_DECL_FMA
1436*88e42b0fSchristos _GL_WARN_ON_USE (fma, "fma is unportable - "
1437*88e42b0fSchristos                  "use gnulib module fma for portability");
1438*88e42b0fSchristos # endif
1439*88e42b0fSchristos #endif
1440*88e42b0fSchristos 
1441*88e42b0fSchristos #if 0
1442*88e42b0fSchristos # if 0
1443*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1444*88e42b0fSchristos #   undef fmal
1445*88e42b0fSchristos #   define fmal rpl_fmal
1446*88e42b0fSchristos #  endif
1447*88e42b0fSchristos _GL_FUNCDECL_RPL (fmal, long double,
1448*88e42b0fSchristos                   (long double x, long double y, long double z));
1449*88e42b0fSchristos _GL_CXXALIAS_RPL (fmal, long double,
1450*88e42b0fSchristos                   (long double x, long double y, long double z));
1451*88e42b0fSchristos # else
1452*88e42b0fSchristos #  if !1
1453*88e42b0fSchristos #   undef fmal
1454*88e42b0fSchristos #   if !(defined __cplusplus && defined _AIX)
1455*88e42b0fSchristos _GL_FUNCDECL_SYS (fmal, long double,
1456*88e42b0fSchristos                   (long double x, long double y, long double z));
1457*88e42b0fSchristos #   endif
1458*88e42b0fSchristos #  endif
1459*88e42b0fSchristos _GL_CXXALIAS_SYS (fmal, long double,
1460*88e42b0fSchristos                   (long double x, long double y, long double z));
1461*88e42b0fSchristos # endif
1462*88e42b0fSchristos _GL_CXXALIASWARN (fmal);
1463*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
1464*88e42b0fSchristos # undef fmal
1465*88e42b0fSchristos # if HAVE_RAW_DECL_FMAL
1466*88e42b0fSchristos _GL_WARN_ON_USE (fmal, "fmal is unportable - "
1467*88e42b0fSchristos                  "use gnulib module fmal for portability");
1468*88e42b0fSchristos # endif
1469*88e42b0fSchristos #endif
1470*88e42b0fSchristos 
1471*88e42b0fSchristos 
1472*88e42b0fSchristos #if 0
1473*88e42b0fSchristos # if 0
1474*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1475*88e42b0fSchristos #   undef fmodf
1476*88e42b0fSchristos #   define fmodf rpl_fmodf
1477*88e42b0fSchristos #  endif
1478*88e42b0fSchristos _GL_FUNCDECL_RPL (fmodf, float, (float x, float y));
1479*88e42b0fSchristos _GL_CXXALIAS_RPL (fmodf, float, (float x, float y));
1480*88e42b0fSchristos # else
1481*88e42b0fSchristos #  if !1
1482*88e42b0fSchristos #   undef fmodf
1483*88e42b0fSchristos _GL_FUNCDECL_SYS (fmodf, float, (float x, float y));
1484*88e42b0fSchristos #  endif
1485*88e42b0fSchristos _GL_CXXALIAS_SYS (fmodf, float, (float x, float y));
1486*88e42b0fSchristos # endif
1487*88e42b0fSchristos _GL_CXXALIASWARN (fmodf);
1488*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
1489*88e42b0fSchristos # undef fmodf
1490*88e42b0fSchristos # if HAVE_RAW_DECL_FMODF
1491*88e42b0fSchristos _GL_WARN_ON_USE (fmodf, "fmodf is unportable - "
1492*88e42b0fSchristos                  "use gnulib module fmodf for portability");
1493*88e42b0fSchristos # endif
1494*88e42b0fSchristos #endif
1495*88e42b0fSchristos 
1496*88e42b0fSchristos #if 0
1497*88e42b0fSchristos # if 0
1498*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1499*88e42b0fSchristos #   undef fmod
1500*88e42b0fSchristos #   define fmod rpl_fmod
1501*88e42b0fSchristos #  endif
1502*88e42b0fSchristos _GL_FUNCDECL_RPL (fmod, double, (double x, double y));
1503*88e42b0fSchristos _GL_CXXALIAS_RPL (fmod, double, (double x, double y));
1504*88e42b0fSchristos # else
1505*88e42b0fSchristos _GL_CXXALIAS_SYS (fmod, double, (double x, double y));
1506*88e42b0fSchristos # endif
1507*88e42b0fSchristos # if __GLIBC__ >= 2
1508*88e42b0fSchristos _GL_CXXALIASWARN (fmod);
1509*88e42b0fSchristos # endif
1510*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
1511*88e42b0fSchristos # undef fmod
1512*88e42b0fSchristos # if HAVE_RAW_DECL_FMOD
1513*88e42b0fSchristos _GL_WARN_ON_USE (fmod, "fmod has portability problems - "
1514*88e42b0fSchristos                  "use gnulib module fmod for portability");
1515*88e42b0fSchristos # endif
1516*88e42b0fSchristos #endif
1517*88e42b0fSchristos 
1518*88e42b0fSchristos #if 0
1519*88e42b0fSchristos # if 0
1520*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1521*88e42b0fSchristos #   undef fmodl
1522*88e42b0fSchristos #   define fmodl rpl_fmodl
1523*88e42b0fSchristos #  endif
1524*88e42b0fSchristos _GL_FUNCDECL_RPL (fmodl, long double, (long double x, long double y));
1525*88e42b0fSchristos _GL_CXXALIAS_RPL (fmodl, long double, (long double x, long double y));
1526*88e42b0fSchristos # else
1527*88e42b0fSchristos #  if !1
1528*88e42b0fSchristos #   undef fmodl
1529*88e42b0fSchristos _GL_FUNCDECL_SYS (fmodl, long double, (long double x, long double y));
1530*88e42b0fSchristos #  endif
1531*88e42b0fSchristos _GL_CXXALIAS_SYS (fmodl, long double, (long double x, long double y));
1532*88e42b0fSchristos # endif
1533*88e42b0fSchristos _GL_CXXALIASWARN (fmodl);
1534*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
1535*88e42b0fSchristos # undef fmodl
1536*88e42b0fSchristos # if HAVE_RAW_DECL_FMODL
1537*88e42b0fSchristos _GL_WARN_ON_USE (fmodl, "fmodl is unportable - "
1538*88e42b0fSchristos                  "use gnulib module fmodl for portability");
1539*88e42b0fSchristos # endif
1540*88e42b0fSchristos #endif
1541*88e42b0fSchristos 
1542*88e42b0fSchristos 
1543*88e42b0fSchristos /* Write x as
1544*88e42b0fSchristos      x = mantissa * 2^exp
1545*88e42b0fSchristos    where
1546*88e42b0fSchristos      If x finite and nonzero: 0.5 <= |mantissa| < 1.0.
1547*88e42b0fSchristos      If x is zero: mantissa = x, exp = 0.
1548*88e42b0fSchristos      If x is infinite or NaN: mantissa = x, exp unspecified.
1549*88e42b0fSchristos    Store exp in *EXPPTR and return mantissa.  */
1550*88e42b0fSchristos #if 0
1551*88e42b0fSchristos # if 0
1552*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1553*88e42b0fSchristos #   undef frexpf
1554*88e42b0fSchristos #   define frexpf rpl_frexpf
1555*88e42b0fSchristos #  endif
1556*88e42b0fSchristos _GL_FUNCDECL_RPL (frexpf, float, (float x, int *expptr) _GL_ARG_NONNULL ((2)));
1557*88e42b0fSchristos _GL_CXXALIAS_RPL (frexpf, float, (float x, int *expptr));
1558*88e42b0fSchristos # else
1559*88e42b0fSchristos #  if !1
1560*88e42b0fSchristos #   undef frexpf
1561*88e42b0fSchristos _GL_FUNCDECL_SYS (frexpf, float, (float x, int *expptr) _GL_ARG_NONNULL ((2)));
1562*88e42b0fSchristos #  endif
1563*88e42b0fSchristos _GL_CXXALIAS_SYS (frexpf, float, (float x, int *expptr));
1564*88e42b0fSchristos # endif
1565*88e42b0fSchristos _GL_CXXALIASWARN (frexpf);
1566*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
1567*88e42b0fSchristos # undef frexpf
1568*88e42b0fSchristos # if HAVE_RAW_DECL_FREXPF
1569*88e42b0fSchristos _GL_WARN_ON_USE (frexpf, "frexpf is unportable - "
1570*88e42b0fSchristos                  "use gnulib module frexpf for portability");
1571*88e42b0fSchristos # endif
1572*88e42b0fSchristos #endif
1573*88e42b0fSchristos 
1574*88e42b0fSchristos /* Write x as
1575*88e42b0fSchristos      x = mantissa * 2^exp
1576*88e42b0fSchristos    where
1577*88e42b0fSchristos      If x finite and nonzero: 0.5 <= |mantissa| < 1.0.
1578*88e42b0fSchristos      If x is zero: mantissa = x, exp = 0.
1579*88e42b0fSchristos      If x is infinite or NaN: mantissa = x, exp unspecified.
1580*88e42b0fSchristos    Store exp in *EXPPTR and return mantissa.  */
1581*88e42b0fSchristos #if 1
1582*88e42b0fSchristos # if 0
1583*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1584*88e42b0fSchristos #   undef frexp
1585*88e42b0fSchristos #   define frexp rpl_frexp
1586*88e42b0fSchristos #  endif
1587*88e42b0fSchristos _GL_FUNCDECL_RPL (frexp, double, (double x, int *expptr) _GL_ARG_NONNULL ((2)));
1588*88e42b0fSchristos _GL_CXXALIAS_RPL (frexp, double, (double x, int *expptr));
1589*88e42b0fSchristos # else
1590*88e42b0fSchristos _GL_CXXALIAS_SYS (frexp, double, (double x, int *expptr));
1591*88e42b0fSchristos # endif
1592*88e42b0fSchristos # if __GLIBC__ >= 2
1593*88e42b0fSchristos _GL_CXXALIASWARN1 (frexp, double, (double x, int *expptr));
1594*88e42b0fSchristos # endif
1595*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
1596*88e42b0fSchristos # undef frexp
1597*88e42b0fSchristos /* Assume frexp is always declared.  */
1598*88e42b0fSchristos _GL_WARN_ON_USE (frexp, "frexp is unportable - "
1599*88e42b0fSchristos                  "use gnulib module frexp for portability");
1600*88e42b0fSchristos #endif
1601*88e42b0fSchristos 
1602*88e42b0fSchristos /* Write x as
1603*88e42b0fSchristos      x = mantissa * 2^exp
1604*88e42b0fSchristos    where
1605*88e42b0fSchristos      If x finite and nonzero: 0.5 <= |mantissa| < 1.0.
1606*88e42b0fSchristos      If x is zero: mantissa = x, exp = 0.
1607*88e42b0fSchristos      If x is infinite or NaN: mantissa = x, exp unspecified.
1608*88e42b0fSchristos    Store exp in *EXPPTR and return mantissa.  */
1609*88e42b0fSchristos #if 1 && 0
1610*88e42b0fSchristos # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1611*88e42b0fSchristos #  undef frexpl
1612*88e42b0fSchristos #  define frexpl rpl_frexpl
1613*88e42b0fSchristos # endif
1614*88e42b0fSchristos _GL_FUNCDECL_RPL (frexpl, long double,
1615*88e42b0fSchristos                   (long double x, int *expptr) _GL_ARG_NONNULL ((2)));
1616*88e42b0fSchristos _GL_CXXALIAS_RPL (frexpl, long double, (long double x, int *expptr));
1617*88e42b0fSchristos #else
1618*88e42b0fSchristos # if !1
1619*88e42b0fSchristos _GL_FUNCDECL_SYS (frexpl, long double,
1620*88e42b0fSchristos                   (long double x, int *expptr) _GL_ARG_NONNULL ((2)));
1621*88e42b0fSchristos # endif
1622*88e42b0fSchristos # if 1
1623*88e42b0fSchristos _GL_CXXALIAS_SYS (frexpl, long double, (long double x, int *expptr));
1624*88e42b0fSchristos # endif
1625*88e42b0fSchristos #endif
1626*88e42b0fSchristos #if 1 && !(0 && !1)
1627*88e42b0fSchristos _GL_CXXALIASWARN (frexpl);
1628*88e42b0fSchristos #endif
1629*88e42b0fSchristos #if !1 && defined GNULIB_POSIXCHECK
1630*88e42b0fSchristos # undef frexpl
1631*88e42b0fSchristos # if HAVE_RAW_DECL_FREXPL
1632*88e42b0fSchristos _GL_WARN_ON_USE (frexpl, "frexpl is unportable - "
1633*88e42b0fSchristos                  "use gnulib module frexpl for portability");
1634*88e42b0fSchristos # endif
1635*88e42b0fSchristos #endif
1636*88e42b0fSchristos 
1637*88e42b0fSchristos 
1638*88e42b0fSchristos /* Return sqrt(x^2+y^2).  */
1639*88e42b0fSchristos #if 0
1640*88e42b0fSchristos # if 0
1641*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1642*88e42b0fSchristos #   undef hypotf
1643*88e42b0fSchristos #   define hypotf rpl_hypotf
1644*88e42b0fSchristos #  endif
1645*88e42b0fSchristos _GL_FUNCDECL_RPL (hypotf, float, (float x, float y));
1646*88e42b0fSchristos _GL_CXXALIAS_RPL (hypotf, float, (float x, float y));
1647*88e42b0fSchristos # else
1648*88e42b0fSchristos #  if !1
1649*88e42b0fSchristos _GL_FUNCDECL_SYS (hypotf, float, (float x, float y));
1650*88e42b0fSchristos #  endif
1651*88e42b0fSchristos _GL_CXXALIAS_SYS (hypotf, float, (float x, float y));
1652*88e42b0fSchristos # endif
1653*88e42b0fSchristos _GL_CXXALIASWARN (hypotf);
1654*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
1655*88e42b0fSchristos # undef hypotf
1656*88e42b0fSchristos # if HAVE_RAW_DECL_HYPOTF
1657*88e42b0fSchristos _GL_WARN_ON_USE (hypotf, "hypotf is unportable - "
1658*88e42b0fSchristos                  "use gnulib module hypotf for portability");
1659*88e42b0fSchristos # endif
1660*88e42b0fSchristos #endif
1661*88e42b0fSchristos 
1662*88e42b0fSchristos /* Return sqrt(x^2+y^2).  */
1663*88e42b0fSchristos #if 0
1664*88e42b0fSchristos # if 0
1665*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1666*88e42b0fSchristos #   undef hypot
1667*88e42b0fSchristos #   define hypot rpl_hypot
1668*88e42b0fSchristos #  endif
1669*88e42b0fSchristos _GL_FUNCDECL_RPL (hypot, double, (double x, double y));
1670*88e42b0fSchristos _GL_CXXALIAS_RPL (hypot, double, (double x, double y));
1671*88e42b0fSchristos # else
1672*88e42b0fSchristos _GL_CXXALIAS_SYS (hypot, double, (double x, double y));
1673*88e42b0fSchristos # endif
1674*88e42b0fSchristos # if __GLIBC__ >= 2
1675*88e42b0fSchristos _GL_CXXALIASWARN (hypot);
1676*88e42b0fSchristos # endif
1677*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
1678*88e42b0fSchristos # undef hypot
1679*88e42b0fSchristos # if HAVE_RAW_DECL_HYPOT
1680*88e42b0fSchristos _GL_WARN_ON_USE (hypotf, "hypot has portability problems - "
1681*88e42b0fSchristos                  "use gnulib module hypot for portability");
1682*88e42b0fSchristos # endif
1683*88e42b0fSchristos #endif
1684*88e42b0fSchristos 
1685*88e42b0fSchristos /* Return sqrt(x^2+y^2).  */
1686*88e42b0fSchristos #if 0
1687*88e42b0fSchristos # if 0
1688*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1689*88e42b0fSchristos #   undef hypotl
1690*88e42b0fSchristos #   define hypotl rpl_hypotl
1691*88e42b0fSchristos #  endif
1692*88e42b0fSchristos _GL_FUNCDECL_RPL (hypotl, long double, (long double x, long double y));
1693*88e42b0fSchristos _GL_CXXALIAS_RPL (hypotl, long double, (long double x, long double y));
1694*88e42b0fSchristos # else
1695*88e42b0fSchristos #  if !1
1696*88e42b0fSchristos _GL_FUNCDECL_SYS (hypotl, long double, (long double x, long double y));
1697*88e42b0fSchristos #  endif
1698*88e42b0fSchristos _GL_CXXALIAS_SYS (hypotl, long double, (long double x, long double y));
1699*88e42b0fSchristos # endif
1700*88e42b0fSchristos _GL_CXXALIASWARN (hypotl);
1701*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
1702*88e42b0fSchristos # undef hypotl
1703*88e42b0fSchristos # if HAVE_RAW_DECL_HYPOTL
1704*88e42b0fSchristos _GL_WARN_ON_USE (hypotl, "hypotl is unportable - "
1705*88e42b0fSchristos                  "use gnulib module hypotl for portability");
1706*88e42b0fSchristos # endif
1707*88e42b0fSchristos #endif
1708*88e42b0fSchristos 
1709*88e42b0fSchristos 
1710*88e42b0fSchristos #if 0
1711*88e42b0fSchristos # if 0
1712*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1713*88e42b0fSchristos #   undef ilogbf
1714*88e42b0fSchristos #   define ilogbf rpl_ilogbf
1715*88e42b0fSchristos #  endif
1716*88e42b0fSchristos _GL_FUNCDECL_RPL (ilogbf, int, (float x));
1717*88e42b0fSchristos _GL_CXXALIAS_RPL (ilogbf, int, (float x));
1718*88e42b0fSchristos # else
1719*88e42b0fSchristos #  if !1
1720*88e42b0fSchristos _GL_FUNCDECL_SYS (ilogbf, int, (float x));
1721*88e42b0fSchristos #  endif
1722*88e42b0fSchristos _GL_CXXALIAS_SYS (ilogbf, int, (float x));
1723*88e42b0fSchristos # endif
1724*88e42b0fSchristos _GL_CXXALIASWARN (ilogbf);
1725*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
1726*88e42b0fSchristos # undef ilogbf
1727*88e42b0fSchristos # if HAVE_RAW_DECL_ILOGBF
1728*88e42b0fSchristos _GL_WARN_ON_USE (ilogbf, "ilogbf is unportable - "
1729*88e42b0fSchristos                  "use gnulib module ilogbf for portability");
1730*88e42b0fSchristos # endif
1731*88e42b0fSchristos #endif
1732*88e42b0fSchristos 
1733*88e42b0fSchristos #if 0
1734*88e42b0fSchristos # if 0
1735*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1736*88e42b0fSchristos #   undef ilogb
1737*88e42b0fSchristos #   define ilogb rpl_ilogb
1738*88e42b0fSchristos #  endif
1739*88e42b0fSchristos _GL_FUNCDECL_RPL (ilogb, int, (double x));
1740*88e42b0fSchristos _GL_CXXALIAS_RPL (ilogb, int, (double x));
1741*88e42b0fSchristos # else
1742*88e42b0fSchristos #  if !1
1743*88e42b0fSchristos _GL_FUNCDECL_SYS (ilogb, int, (double x));
1744*88e42b0fSchristos #  endif
1745*88e42b0fSchristos _GL_CXXALIAS_SYS (ilogb, int, (double x));
1746*88e42b0fSchristos # endif
1747*88e42b0fSchristos # if __GLIBC__ >= 2
1748*88e42b0fSchristos _GL_CXXALIASWARN (ilogb);
1749*88e42b0fSchristos # endif
1750*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
1751*88e42b0fSchristos # undef ilogb
1752*88e42b0fSchristos # if HAVE_RAW_DECL_ILOGB
1753*88e42b0fSchristos _GL_WARN_ON_USE (ilogb, "ilogb is unportable - "
1754*88e42b0fSchristos                  "use gnulib module ilogb for portability");
1755*88e42b0fSchristos # endif
1756*88e42b0fSchristos #endif
1757*88e42b0fSchristos 
1758*88e42b0fSchristos #if 0
1759*88e42b0fSchristos # if 0
1760*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1761*88e42b0fSchristos #   undef ilogbl
1762*88e42b0fSchristos #   define ilogbl rpl_ilogbl
1763*88e42b0fSchristos #  endif
1764*88e42b0fSchristos _GL_FUNCDECL_RPL (ilogbl, int, (long double x));
1765*88e42b0fSchristos _GL_CXXALIAS_RPL (ilogbl, int, (long double x));
1766*88e42b0fSchristos # else
1767*88e42b0fSchristos #  if !1
1768*88e42b0fSchristos _GL_FUNCDECL_SYS (ilogbl, int, (long double x));
1769*88e42b0fSchristos #  endif
1770*88e42b0fSchristos _GL_CXXALIAS_SYS (ilogbl, int, (long double x));
1771*88e42b0fSchristos # endif
1772*88e42b0fSchristos _GL_CXXALIASWARN (ilogbl);
1773*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
1774*88e42b0fSchristos # undef ilogbl
1775*88e42b0fSchristos # if HAVE_RAW_DECL_ILOGBL
1776*88e42b0fSchristos _GL_WARN_ON_USE (ilogbl, "ilogbl is unportable - "
1777*88e42b0fSchristos                  "use gnulib module ilogbl for portability");
1778*88e42b0fSchristos # endif
1779*88e42b0fSchristos #endif
1780*88e42b0fSchristos 
1781*88e42b0fSchristos 
1782*88e42b0fSchristos /* Return x * 2^exp.  */
1783*88e42b0fSchristos #if 0
1784*88e42b0fSchristos # if !1
1785*88e42b0fSchristos #  undef ldexpf
1786*88e42b0fSchristos _GL_FUNCDECL_SYS (ldexpf, float, (float x, int exp));
1787*88e42b0fSchristos # endif
1788*88e42b0fSchristos _GL_CXXALIAS_SYS (ldexpf, float, (float x, int exp));
1789*88e42b0fSchristos _GL_CXXALIASWARN (ldexpf);
1790*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
1791*88e42b0fSchristos # undef ldexpf
1792*88e42b0fSchristos # if HAVE_RAW_DECL_LDEXPF
1793*88e42b0fSchristos _GL_WARN_ON_USE (ldexpf, "ldexpf is unportable - "
1794*88e42b0fSchristos                  "use gnulib module ldexpf for portability");
1795*88e42b0fSchristos # endif
1796*88e42b0fSchristos #endif
1797*88e42b0fSchristos 
1798*88e42b0fSchristos /* Return x * 2^exp.  */
1799*88e42b0fSchristos #if 0 && 0
1800*88e42b0fSchristos # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1801*88e42b0fSchristos #  undef ldexpl
1802*88e42b0fSchristos #  define ldexpl rpl_ldexpl
1803*88e42b0fSchristos # endif
1804*88e42b0fSchristos _GL_FUNCDECL_RPL (ldexpl, long double, (long double x, int exp));
1805*88e42b0fSchristos _GL_CXXALIAS_RPL (ldexpl, long double, (long double x, int exp));
1806*88e42b0fSchristos #else
1807*88e42b0fSchristos # if !1
1808*88e42b0fSchristos _GL_FUNCDECL_SYS (ldexpl, long double, (long double x, int exp));
1809*88e42b0fSchristos # endif
1810*88e42b0fSchristos # if 0
1811*88e42b0fSchristos _GL_CXXALIAS_SYS (ldexpl, long double, (long double x, int exp));
1812*88e42b0fSchristos # endif
1813*88e42b0fSchristos #endif
1814*88e42b0fSchristos #if 0
1815*88e42b0fSchristos _GL_CXXALIASWARN (ldexpl);
1816*88e42b0fSchristos #endif
1817*88e42b0fSchristos #if !0 && defined GNULIB_POSIXCHECK
1818*88e42b0fSchristos # undef ldexpl
1819*88e42b0fSchristos # if HAVE_RAW_DECL_LDEXPL
1820*88e42b0fSchristos _GL_WARN_ON_USE (ldexpl, "ldexpl is unportable - "
1821*88e42b0fSchristos                  "use gnulib module ldexpl for portability");
1822*88e42b0fSchristos # endif
1823*88e42b0fSchristos #endif
1824*88e42b0fSchristos 
1825*88e42b0fSchristos 
1826*88e42b0fSchristos #if 0
1827*88e42b0fSchristos # if 0
1828*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1829*88e42b0fSchristos #   undef logf
1830*88e42b0fSchristos #   define logf rpl_logf
1831*88e42b0fSchristos #  endif
1832*88e42b0fSchristos _GL_FUNCDECL_RPL (logf, float, (float x));
1833*88e42b0fSchristos _GL_CXXALIAS_RPL (logf, float, (float x));
1834*88e42b0fSchristos # else
1835*88e42b0fSchristos #  if !1
1836*88e42b0fSchristos #   undef logf
1837*88e42b0fSchristos _GL_FUNCDECL_SYS (logf, float, (float x));
1838*88e42b0fSchristos #  endif
1839*88e42b0fSchristos _GL_CXXALIAS_SYS (logf, float, (float x));
1840*88e42b0fSchristos # endif
1841*88e42b0fSchristos _GL_CXXALIASWARN (logf);
1842*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
1843*88e42b0fSchristos # undef logf
1844*88e42b0fSchristos # if HAVE_RAW_DECL_LOGF
1845*88e42b0fSchristos _GL_WARN_ON_USE (logf, "logf is unportable - "
1846*88e42b0fSchristos                  "use gnulib module logf for portability");
1847*88e42b0fSchristos # endif
1848*88e42b0fSchristos #endif
1849*88e42b0fSchristos 
1850*88e42b0fSchristos #if 0
1851*88e42b0fSchristos # if 0
1852*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1853*88e42b0fSchristos #   undef log
1854*88e42b0fSchristos #   define log rpl_log
1855*88e42b0fSchristos #  endif
1856*88e42b0fSchristos _GL_FUNCDECL_RPL (log, double, (double x));
1857*88e42b0fSchristos _GL_CXXALIAS_RPL (log, double, (double x));
1858*88e42b0fSchristos # else
1859*88e42b0fSchristos _GL_CXXALIAS_SYS (log, double, (double x));
1860*88e42b0fSchristos # endif
1861*88e42b0fSchristos # if __GLIBC__ >= 2
1862*88e42b0fSchristos _GL_CXXALIASWARN (log);
1863*88e42b0fSchristos # endif
1864*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
1865*88e42b0fSchristos # undef log
1866*88e42b0fSchristos # if HAVE_RAW_DECL_LOG
1867*88e42b0fSchristos _GL_WARN_ON_USE (log, "log has portability problems - "
1868*88e42b0fSchristos                  "use gnulib module log for portability");
1869*88e42b0fSchristos # endif
1870*88e42b0fSchristos #endif
1871*88e42b0fSchristos 
1872*88e42b0fSchristos #if 0
1873*88e42b0fSchristos # if 0
1874*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1875*88e42b0fSchristos #   undef logl
1876*88e42b0fSchristos #   define logl rpl_logl
1877*88e42b0fSchristos #  endif
1878*88e42b0fSchristos _GL_FUNCDECL_RPL (logl, long double, (long double x));
1879*88e42b0fSchristos _GL_CXXALIAS_RPL (logl, long double, (long double x));
1880*88e42b0fSchristos # else
1881*88e42b0fSchristos #  if !1 || !1
1882*88e42b0fSchristos #   undef logl
1883*88e42b0fSchristos _GL_FUNCDECL_SYS (logl, long double, (long double x));
1884*88e42b0fSchristos #  endif
1885*88e42b0fSchristos _GL_CXXALIAS_SYS (logl, long double, (long double x));
1886*88e42b0fSchristos # endif
1887*88e42b0fSchristos _GL_CXXALIASWARN (logl);
1888*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
1889*88e42b0fSchristos # undef logl
1890*88e42b0fSchristos # if HAVE_RAW_DECL_LOGL
1891*88e42b0fSchristos _GL_WARN_ON_USE (logl, "logl is unportable - "
1892*88e42b0fSchristos                  "use gnulib module logl for portability");
1893*88e42b0fSchristos # endif
1894*88e42b0fSchristos #endif
1895*88e42b0fSchristos 
1896*88e42b0fSchristos 
1897*88e42b0fSchristos #if 0
1898*88e42b0fSchristos # if 0
1899*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1900*88e42b0fSchristos #   undef log10f
1901*88e42b0fSchristos #   define log10f rpl_log10f
1902*88e42b0fSchristos #  endif
1903*88e42b0fSchristos _GL_FUNCDECL_RPL (log10f, float, (float x));
1904*88e42b0fSchristos _GL_CXXALIAS_RPL (log10f, float, (float x));
1905*88e42b0fSchristos # else
1906*88e42b0fSchristos #  if !1
1907*88e42b0fSchristos #   undef log10f
1908*88e42b0fSchristos _GL_FUNCDECL_SYS (log10f, float, (float x));
1909*88e42b0fSchristos #  endif
1910*88e42b0fSchristos _GL_CXXALIAS_SYS (log10f, float, (float x));
1911*88e42b0fSchristos # endif
1912*88e42b0fSchristos _GL_CXXALIASWARN (log10f);
1913*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
1914*88e42b0fSchristos # undef log10f
1915*88e42b0fSchristos # if HAVE_RAW_DECL_LOG10F
1916*88e42b0fSchristos _GL_WARN_ON_USE (log10f, "log10f is unportable - "
1917*88e42b0fSchristos                  "use gnulib module log10f for portability");
1918*88e42b0fSchristos # endif
1919*88e42b0fSchristos #endif
1920*88e42b0fSchristos 
1921*88e42b0fSchristos #if 0
1922*88e42b0fSchristos # if 0
1923*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1924*88e42b0fSchristos #   undef log10
1925*88e42b0fSchristos #   define log10 rpl_log10
1926*88e42b0fSchristos #  endif
1927*88e42b0fSchristos _GL_FUNCDECL_RPL (log10, double, (double x));
1928*88e42b0fSchristos _GL_CXXALIAS_RPL (log10, double, (double x));
1929*88e42b0fSchristos # else
1930*88e42b0fSchristos _GL_CXXALIAS_SYS (log10, double, (double x));
1931*88e42b0fSchristos # endif
1932*88e42b0fSchristos # if __GLIBC__ >= 2
1933*88e42b0fSchristos _GL_CXXALIASWARN (log10);
1934*88e42b0fSchristos # endif
1935*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
1936*88e42b0fSchristos # undef log10
1937*88e42b0fSchristos # if HAVE_RAW_DECL_LOG10
1938*88e42b0fSchristos _GL_WARN_ON_USE (log10, "log10 has portability problems - "
1939*88e42b0fSchristos                  "use gnulib module log10 for portability");
1940*88e42b0fSchristos # endif
1941*88e42b0fSchristos #endif
1942*88e42b0fSchristos 
1943*88e42b0fSchristos #if 0
1944*88e42b0fSchristos # if 0
1945*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1946*88e42b0fSchristos #   undef log10l
1947*88e42b0fSchristos #   define log10l rpl_log10l
1948*88e42b0fSchristos #  endif
1949*88e42b0fSchristos _GL_FUNCDECL_RPL (log10l, long double, (long double x));
1950*88e42b0fSchristos _GL_CXXALIAS_RPL (log10l, long double, (long double x));
1951*88e42b0fSchristos # else
1952*88e42b0fSchristos #  if !1 || !1
1953*88e42b0fSchristos #   undef log10l
1954*88e42b0fSchristos _GL_FUNCDECL_SYS (log10l, long double, (long double x));
1955*88e42b0fSchristos #  endif
1956*88e42b0fSchristos _GL_CXXALIAS_SYS (log10l, long double, (long double x));
1957*88e42b0fSchristos # endif
1958*88e42b0fSchristos _GL_CXXALIASWARN (log10l);
1959*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
1960*88e42b0fSchristos # undef log10l
1961*88e42b0fSchristos # if HAVE_RAW_DECL_LOG10L
1962*88e42b0fSchristos _GL_WARN_ON_USE (log10l, "log10l is unportable - "
1963*88e42b0fSchristos                  "use gnulib module log10l for portability");
1964*88e42b0fSchristos # endif
1965*88e42b0fSchristos #endif
1966*88e42b0fSchristos 
1967*88e42b0fSchristos 
1968*88e42b0fSchristos #if 0
1969*88e42b0fSchristos # if 0
1970*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1971*88e42b0fSchristos #   undef log1pf
1972*88e42b0fSchristos #   define log1pf rpl_log1pf
1973*88e42b0fSchristos #  endif
1974*88e42b0fSchristos _GL_FUNCDECL_RPL (log1pf, float, (float x));
1975*88e42b0fSchristos _GL_CXXALIAS_RPL (log1pf, float, (float x));
1976*88e42b0fSchristos # else
1977*88e42b0fSchristos #  if !1
1978*88e42b0fSchristos _GL_FUNCDECL_SYS (log1pf, float, (float x));
1979*88e42b0fSchristos #  endif
1980*88e42b0fSchristos _GL_CXXALIAS_SYS (log1pf, float, (float x));
1981*88e42b0fSchristos # endif
1982*88e42b0fSchristos _GL_CXXALIASWARN (log1pf);
1983*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
1984*88e42b0fSchristos # undef log1pf
1985*88e42b0fSchristos # if HAVE_RAW_DECL_LOG1PF
1986*88e42b0fSchristos _GL_WARN_ON_USE (log1pf, "log1pf is unportable - "
1987*88e42b0fSchristos                  "use gnulib module log1pf for portability");
1988*88e42b0fSchristos # endif
1989*88e42b0fSchristos #endif
1990*88e42b0fSchristos 
1991*88e42b0fSchristos #if 0
1992*88e42b0fSchristos # if 0
1993*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1994*88e42b0fSchristos #   undef log1p
1995*88e42b0fSchristos #   define log1p rpl_log1p
1996*88e42b0fSchristos #  endif
1997*88e42b0fSchristos _GL_FUNCDECL_RPL (log1p, double, (double x));
1998*88e42b0fSchristos _GL_CXXALIAS_RPL (log1p, double, (double x));
1999*88e42b0fSchristos # else
2000*88e42b0fSchristos #  if !1
2001*88e42b0fSchristos _GL_FUNCDECL_SYS (log1p, double, (double x));
2002*88e42b0fSchristos #  endif
2003*88e42b0fSchristos _GL_CXXALIAS_SYS (log1p, double, (double x));
2004*88e42b0fSchristos # endif
2005*88e42b0fSchristos # if __GLIBC__ >= 2
2006*88e42b0fSchristos _GL_CXXALIASWARN (log1p);
2007*88e42b0fSchristos # endif
2008*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
2009*88e42b0fSchristos # undef log1p
2010*88e42b0fSchristos # if HAVE_RAW_DECL_LOG1P
2011*88e42b0fSchristos _GL_WARN_ON_USE (log1p, "log1p has portability problems - "
2012*88e42b0fSchristos                  "use gnulib module log1p for portability");
2013*88e42b0fSchristos # endif
2014*88e42b0fSchristos #endif
2015*88e42b0fSchristos 
2016*88e42b0fSchristos #if 0
2017*88e42b0fSchristos # if 0
2018*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2019*88e42b0fSchristos #   undef log1pl
2020*88e42b0fSchristos #   define log1pl rpl_log1pl
2021*88e42b0fSchristos #  endif
2022*88e42b0fSchristos _GL_FUNCDECL_RPL (log1pl, long double, (long double x));
2023*88e42b0fSchristos _GL_CXXALIAS_RPL (log1pl, long double, (long double x));
2024*88e42b0fSchristos # else
2025*88e42b0fSchristos #  if !1
2026*88e42b0fSchristos _GL_FUNCDECL_SYS (log1pl, long double, (long double x));
2027*88e42b0fSchristos #  endif
2028*88e42b0fSchristos _GL_CXXALIAS_SYS (log1pl, long double, (long double x));
2029*88e42b0fSchristos # endif
2030*88e42b0fSchristos _GL_CXXALIASWARN (log1pl);
2031*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
2032*88e42b0fSchristos # undef log1pl
2033*88e42b0fSchristos # if HAVE_RAW_DECL_LOG1PL
2034*88e42b0fSchristos _GL_WARN_ON_USE (log1pl, "log1pl has portability problems - "
2035*88e42b0fSchristos                  "use gnulib module log1pl for portability");
2036*88e42b0fSchristos # endif
2037*88e42b0fSchristos #endif
2038*88e42b0fSchristos 
2039*88e42b0fSchristos 
2040*88e42b0fSchristos #if 0
2041*88e42b0fSchristos # if 0
2042*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2043*88e42b0fSchristos #   undef log2f
2044*88e42b0fSchristos #   define log2f rpl_log2f
2045*88e42b0fSchristos #  endif
2046*88e42b0fSchristos _GL_FUNCDECL_RPL (log2f, float, (float x));
2047*88e42b0fSchristos _GL_CXXALIAS_RPL (log2f, float, (float x));
2048*88e42b0fSchristos # else
2049*88e42b0fSchristos #  if !1
2050*88e42b0fSchristos #   undef log2f
2051*88e42b0fSchristos _GL_FUNCDECL_SYS (log2f, float, (float x));
2052*88e42b0fSchristos #  endif
2053*88e42b0fSchristos _GL_CXXALIAS_SYS (log2f, float, (float x));
2054*88e42b0fSchristos # endif
2055*88e42b0fSchristos _GL_CXXALIASWARN (log2f);
2056*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
2057*88e42b0fSchristos # undef log2f
2058*88e42b0fSchristos # if HAVE_RAW_DECL_LOG2F
2059*88e42b0fSchristos _GL_WARN_ON_USE (log2f, "log2f is unportable - "
2060*88e42b0fSchristos                  "use gnulib module log2f for portability");
2061*88e42b0fSchristos # endif
2062*88e42b0fSchristos #endif
2063*88e42b0fSchristos 
2064*88e42b0fSchristos #if 0
2065*88e42b0fSchristos # if 0
2066*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2067*88e42b0fSchristos #   undef log2
2068*88e42b0fSchristos #   define log2 rpl_log2
2069*88e42b0fSchristos #  endif
2070*88e42b0fSchristos _GL_FUNCDECL_RPL (log2, double, (double x));
2071*88e42b0fSchristos _GL_CXXALIAS_RPL (log2, double, (double x));
2072*88e42b0fSchristos # else
2073*88e42b0fSchristos #  if !1
2074*88e42b0fSchristos #   undef log2
2075*88e42b0fSchristos _GL_FUNCDECL_SYS (log2, double, (double x));
2076*88e42b0fSchristos #  endif
2077*88e42b0fSchristos _GL_CXXALIAS_SYS (log2, double, (double x));
2078*88e42b0fSchristos # endif
2079*88e42b0fSchristos # if __GLIBC__ >= 2
2080*88e42b0fSchristos _GL_CXXALIASWARN (log2);
2081*88e42b0fSchristos # endif
2082*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
2083*88e42b0fSchristos # undef log2
2084*88e42b0fSchristos # if HAVE_RAW_DECL_LOG2
2085*88e42b0fSchristos _GL_WARN_ON_USE (log2, "log2 is unportable - "
2086*88e42b0fSchristos                  "use gnulib module log2 for portability");
2087*88e42b0fSchristos # endif
2088*88e42b0fSchristos #endif
2089*88e42b0fSchristos 
2090*88e42b0fSchristos #if 0
2091*88e42b0fSchristos # if 0
2092*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2093*88e42b0fSchristos #   undef log2l
2094*88e42b0fSchristos #   define log2l rpl_log2l
2095*88e42b0fSchristos #  endif
2096*88e42b0fSchristos _GL_FUNCDECL_RPL (log2l, long double, (long double x));
2097*88e42b0fSchristos _GL_CXXALIAS_RPL (log2l, long double, (long double x));
2098*88e42b0fSchristos # else
2099*88e42b0fSchristos #  if !1
2100*88e42b0fSchristos _GL_FUNCDECL_SYS (log2l, long double, (long double x));
2101*88e42b0fSchristos #  endif
2102*88e42b0fSchristos _GL_CXXALIAS_SYS (log2l, long double, (long double x));
2103*88e42b0fSchristos # endif
2104*88e42b0fSchristos _GL_CXXALIASWARN (log2l);
2105*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
2106*88e42b0fSchristos # undef log2l
2107*88e42b0fSchristos # if HAVE_RAW_DECL_LOG2L
2108*88e42b0fSchristos _GL_WARN_ON_USE (log2l, "log2l is unportable - "
2109*88e42b0fSchristos                  "use gnulib module log2l for portability");
2110*88e42b0fSchristos # endif
2111*88e42b0fSchristos #endif
2112*88e42b0fSchristos 
2113*88e42b0fSchristos 
2114*88e42b0fSchristos #if 0
2115*88e42b0fSchristos # if 0
2116*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2117*88e42b0fSchristos #   undef logbf
2118*88e42b0fSchristos #   define logbf rpl_logbf
2119*88e42b0fSchristos #  endif
2120*88e42b0fSchristos _GL_FUNCDECL_RPL (logbf, float, (float x));
2121*88e42b0fSchristos _GL_CXXALIAS_RPL (logbf, float, (float x));
2122*88e42b0fSchristos # else
2123*88e42b0fSchristos #  if !1
2124*88e42b0fSchristos _GL_FUNCDECL_SYS (logbf, float, (float x));
2125*88e42b0fSchristos #  endif
2126*88e42b0fSchristos _GL_CXXALIAS_SYS (logbf, float, (float x));
2127*88e42b0fSchristos # endif
2128*88e42b0fSchristos _GL_CXXALIASWARN (logbf);
2129*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
2130*88e42b0fSchristos # undef logbf
2131*88e42b0fSchristos # if HAVE_RAW_DECL_LOGBF
2132*88e42b0fSchristos _GL_WARN_ON_USE (logbf, "logbf is unportable - "
2133*88e42b0fSchristos                  "use gnulib module logbf for portability");
2134*88e42b0fSchristos # endif
2135*88e42b0fSchristos #endif
2136*88e42b0fSchristos 
2137*88e42b0fSchristos #if 0
2138*88e42b0fSchristos # if 0
2139*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2140*88e42b0fSchristos #   undef logb
2141*88e42b0fSchristos #   define logb rpl_logb
2142*88e42b0fSchristos #  endif
2143*88e42b0fSchristos _GL_FUNCDECL_RPL (logb, double, (double x));
2144*88e42b0fSchristos _GL_CXXALIAS_RPL (logb, double, (double x));
2145*88e42b0fSchristos # else
2146*88e42b0fSchristos #  if !1
2147*88e42b0fSchristos _GL_FUNCDECL_SYS (logb, double, (double x));
2148*88e42b0fSchristos #  endif
2149*88e42b0fSchristos _GL_CXXALIAS_SYS (logb, double, (double x));
2150*88e42b0fSchristos # endif
2151*88e42b0fSchristos # if __GLIBC__ >= 2
2152*88e42b0fSchristos _GL_CXXALIASWARN (logb);
2153*88e42b0fSchristos # endif
2154*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
2155*88e42b0fSchristos # undef logb
2156*88e42b0fSchristos # if HAVE_RAW_DECL_LOGB
2157*88e42b0fSchristos _GL_WARN_ON_USE (logb, "logb is unportable - "
2158*88e42b0fSchristos                  "use gnulib module logb for portability");
2159*88e42b0fSchristos # endif
2160*88e42b0fSchristos #endif
2161*88e42b0fSchristos 
2162*88e42b0fSchristos #if 0
2163*88e42b0fSchristos # if 0
2164*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2165*88e42b0fSchristos #   undef logbl
2166*88e42b0fSchristos #   define logbl rpl_logbl
2167*88e42b0fSchristos #  endif
2168*88e42b0fSchristos _GL_FUNCDECL_RPL (logbl, long double, (long double x));
2169*88e42b0fSchristos _GL_CXXALIAS_RPL (logbl, long double, (long double x));
2170*88e42b0fSchristos # else
2171*88e42b0fSchristos #  if !1
2172*88e42b0fSchristos _GL_FUNCDECL_SYS (logbl, long double, (long double x));
2173*88e42b0fSchristos #  endif
2174*88e42b0fSchristos _GL_CXXALIAS_SYS (logbl, long double, (long double x));
2175*88e42b0fSchristos # endif
2176*88e42b0fSchristos _GL_CXXALIASWARN (logbl);
2177*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
2178*88e42b0fSchristos # undef logbl
2179*88e42b0fSchristos # if HAVE_RAW_DECL_LOGBL
2180*88e42b0fSchristos _GL_WARN_ON_USE (logbl, "logbl is unportable - "
2181*88e42b0fSchristos                  "use gnulib module logbl for portability");
2182*88e42b0fSchristos # endif
2183*88e42b0fSchristos #endif
2184*88e42b0fSchristos 
2185*88e42b0fSchristos 
2186*88e42b0fSchristos #if 0
2187*88e42b0fSchristos # if 0
2188*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2189*88e42b0fSchristos #   undef modff
2190*88e42b0fSchristos #   define modff rpl_modff
2191*88e42b0fSchristos #  endif
2192*88e42b0fSchristos _GL_FUNCDECL_RPL (modff, float, (float x, float *iptr) _GL_ARG_NONNULL ((2)));
2193*88e42b0fSchristos _GL_CXXALIAS_RPL (modff, float, (float x, float *iptr));
2194*88e42b0fSchristos # else
2195*88e42b0fSchristos #  if !1
2196*88e42b0fSchristos #   undef modff
2197*88e42b0fSchristos _GL_FUNCDECL_SYS (modff, float, (float x, float *iptr) _GL_ARG_NONNULL ((2)));
2198*88e42b0fSchristos #  endif
2199*88e42b0fSchristos _GL_CXXALIAS_SYS (modff, float, (float x, float *iptr));
2200*88e42b0fSchristos # endif
2201*88e42b0fSchristos _GL_CXXALIASWARN (modff);
2202*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
2203*88e42b0fSchristos # undef modff
2204*88e42b0fSchristos # if HAVE_RAW_DECL_MODFF
2205*88e42b0fSchristos _GL_WARN_ON_USE (modff, "modff is unportable - "
2206*88e42b0fSchristos                  "use gnulib module modff for portability");
2207*88e42b0fSchristos # endif
2208*88e42b0fSchristos #endif
2209*88e42b0fSchristos 
2210*88e42b0fSchristos #if 0
2211*88e42b0fSchristos # if 0
2212*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2213*88e42b0fSchristos #   undef modf
2214*88e42b0fSchristos #   define modf rpl_modf
2215*88e42b0fSchristos #  endif
2216*88e42b0fSchristos _GL_FUNCDECL_RPL (modf, double, (double x, double *iptr) _GL_ARG_NONNULL ((2)));
2217*88e42b0fSchristos _GL_CXXALIAS_RPL (modf, double, (double x, double *iptr));
2218*88e42b0fSchristos # else
2219*88e42b0fSchristos _GL_CXXALIAS_SYS (modf, double, (double x, double *iptr));
2220*88e42b0fSchristos # endif
2221*88e42b0fSchristos # if __GLIBC__ >= 2
2222*88e42b0fSchristos _GL_CXXALIASWARN (modf);
2223*88e42b0fSchristos # endif
2224*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
2225*88e42b0fSchristos # undef modf
2226*88e42b0fSchristos # if HAVE_RAW_DECL_MODF
2227*88e42b0fSchristos _GL_WARN_ON_USE (modf, "modf has portability problems - "
2228*88e42b0fSchristos                  "use gnulib module modf for portability");
2229*88e42b0fSchristos # endif
2230*88e42b0fSchristos #endif
2231*88e42b0fSchristos 
2232*88e42b0fSchristos #if 0
2233*88e42b0fSchristos # if 0
2234*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2235*88e42b0fSchristos #   undef modfl
2236*88e42b0fSchristos #   define modfl rpl_modfl
2237*88e42b0fSchristos #  endif
2238*88e42b0fSchristos _GL_FUNCDECL_RPL (modfl, long double, (long double x, long double *iptr)
2239*88e42b0fSchristos                                       _GL_ARG_NONNULL ((2)));
2240*88e42b0fSchristos _GL_CXXALIAS_RPL (modfl, long double, (long double x, long double *iptr));
2241*88e42b0fSchristos # else
2242*88e42b0fSchristos #  if !1
2243*88e42b0fSchristos #   undef modfl
2244*88e42b0fSchristos _GL_FUNCDECL_SYS (modfl, long double, (long double x, long double *iptr)
2245*88e42b0fSchristos                                       _GL_ARG_NONNULL ((2)));
2246*88e42b0fSchristos #  endif
2247*88e42b0fSchristos _GL_CXXALIAS_SYS (modfl, long double, (long double x, long double *iptr));
2248*88e42b0fSchristos # endif
2249*88e42b0fSchristos _GL_CXXALIASWARN (modfl);
2250*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
2251*88e42b0fSchristos # undef modfl
2252*88e42b0fSchristos # if HAVE_RAW_DECL_MODFL
2253*88e42b0fSchristos _GL_WARN_ON_USE (modfl, "modfl is unportable - "
2254*88e42b0fSchristos                  "use gnulib module modfl for portability");
2255*88e42b0fSchristos # endif
2256*88e42b0fSchristos #endif
2257*88e42b0fSchristos 
2258*88e42b0fSchristos 
2259*88e42b0fSchristos #if 0
2260*88e42b0fSchristos # if !1
2261*88e42b0fSchristos #  undef powf
2262*88e42b0fSchristos _GL_FUNCDECL_SYS (powf, float, (float x, float y));
2263*88e42b0fSchristos # endif
2264*88e42b0fSchristos _GL_CXXALIAS_SYS (powf, float, (float x, float y));
2265*88e42b0fSchristos _GL_CXXALIASWARN (powf);
2266*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
2267*88e42b0fSchristos # undef powf
2268*88e42b0fSchristos # if HAVE_RAW_DECL_POWF
2269*88e42b0fSchristos _GL_WARN_ON_USE (powf, "powf is unportable - "
2270*88e42b0fSchristos                  "use gnulib module powf for portability");
2271*88e42b0fSchristos # endif
2272*88e42b0fSchristos #endif
2273*88e42b0fSchristos 
2274*88e42b0fSchristos 
2275*88e42b0fSchristos #if 0
2276*88e42b0fSchristos # if 0
2277*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2278*88e42b0fSchristos #   undef remainderf
2279*88e42b0fSchristos #   define remainderf rpl_remainderf
2280*88e42b0fSchristos #  endif
2281*88e42b0fSchristos _GL_FUNCDECL_RPL (remainderf, float, (float x, float y));
2282*88e42b0fSchristos _GL_CXXALIAS_RPL (remainderf, float, (float x, float y));
2283*88e42b0fSchristos # else
2284*88e42b0fSchristos #  if !1
2285*88e42b0fSchristos _GL_FUNCDECL_SYS (remainderf, float, (float x, float y));
2286*88e42b0fSchristos #  endif
2287*88e42b0fSchristos _GL_CXXALIAS_SYS (remainderf, float, (float x, float y));
2288*88e42b0fSchristos # endif
2289*88e42b0fSchristos _GL_CXXALIASWARN (remainderf);
2290*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
2291*88e42b0fSchristos # undef remainderf
2292*88e42b0fSchristos # if HAVE_RAW_DECL_REMAINDERF
2293*88e42b0fSchristos _GL_WARN_ON_USE (remainderf, "remainderf is unportable - "
2294*88e42b0fSchristos                  "use gnulib module remainderf for portability");
2295*88e42b0fSchristos # endif
2296*88e42b0fSchristos #endif
2297*88e42b0fSchristos 
2298*88e42b0fSchristos #if 0
2299*88e42b0fSchristos # if 0
2300*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2301*88e42b0fSchristos #   undef remainder
2302*88e42b0fSchristos #   define remainder rpl_remainder
2303*88e42b0fSchristos #  endif
2304*88e42b0fSchristos _GL_FUNCDECL_RPL (remainder, double, (double x, double y));
2305*88e42b0fSchristos _GL_CXXALIAS_RPL (remainder, double, (double x, double y));
2306*88e42b0fSchristos # else
2307*88e42b0fSchristos #  if !1 || !1
2308*88e42b0fSchristos _GL_FUNCDECL_SYS (remainder, double, (double x, double y));
2309*88e42b0fSchristos #  endif
2310*88e42b0fSchristos _GL_CXXALIAS_SYS (remainder, double, (double x, double y));
2311*88e42b0fSchristos # endif
2312*88e42b0fSchristos # if __GLIBC__ >= 2
2313*88e42b0fSchristos _GL_CXXALIASWARN (remainder);
2314*88e42b0fSchristos # endif
2315*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
2316*88e42b0fSchristos # undef remainder
2317*88e42b0fSchristos # if HAVE_RAW_DECL_REMAINDER
2318*88e42b0fSchristos _GL_WARN_ON_USE (remainder, "remainder is unportable - "
2319*88e42b0fSchristos                  "use gnulib module remainder for portability");
2320*88e42b0fSchristos # endif
2321*88e42b0fSchristos #endif
2322*88e42b0fSchristos 
2323*88e42b0fSchristos #if 0
2324*88e42b0fSchristos # if 0
2325*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2326*88e42b0fSchristos #   undef remainderl
2327*88e42b0fSchristos #   define remainderl rpl_remainderl
2328*88e42b0fSchristos #  endif
2329*88e42b0fSchristos _GL_FUNCDECL_RPL (remainderl, long double, (long double x, long double y));
2330*88e42b0fSchristos _GL_CXXALIAS_RPL (remainderl, long double, (long double x, long double y));
2331*88e42b0fSchristos # else
2332*88e42b0fSchristos #  if !1
2333*88e42b0fSchristos #   undef remainderl
2334*88e42b0fSchristos #   if !(defined __cplusplus && defined _AIX)
2335*88e42b0fSchristos _GL_FUNCDECL_SYS (remainderl, long double, (long double x, long double y));
2336*88e42b0fSchristos #   endif
2337*88e42b0fSchristos #  endif
2338*88e42b0fSchristos _GL_CXXALIAS_SYS (remainderl, long double, (long double x, long double y));
2339*88e42b0fSchristos # endif
2340*88e42b0fSchristos _GL_CXXALIASWARN (remainderl);
2341*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
2342*88e42b0fSchristos # undef remainderl
2343*88e42b0fSchristos # if HAVE_RAW_DECL_REMAINDERL
2344*88e42b0fSchristos _GL_WARN_ON_USE (remainderl, "remainderl is unportable - "
2345*88e42b0fSchristos                  "use gnulib module remainderl for portability");
2346*88e42b0fSchristos # endif
2347*88e42b0fSchristos #endif
2348*88e42b0fSchristos 
2349*88e42b0fSchristos 
2350*88e42b0fSchristos #if 0
2351*88e42b0fSchristos # if !1
2352*88e42b0fSchristos _GL_FUNCDECL_SYS (rintf, float, (float x));
2353*88e42b0fSchristos # endif
2354*88e42b0fSchristos _GL_CXXALIAS_SYS (rintf, float, (float x));
2355*88e42b0fSchristos _GL_CXXALIASWARN (rintf);
2356*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
2357*88e42b0fSchristos # undef rintf
2358*88e42b0fSchristos # if HAVE_RAW_DECL_RINTF
2359*88e42b0fSchristos _GL_WARN_ON_USE (rintf, "rintf is unportable - "
2360*88e42b0fSchristos                  "use gnulib module rintf for portability");
2361*88e42b0fSchristos # endif
2362*88e42b0fSchristos #endif
2363*88e42b0fSchristos 
2364*88e42b0fSchristos #if 0
2365*88e42b0fSchristos # if !1
2366*88e42b0fSchristos _GL_FUNCDECL_SYS (rint, double, (double x));
2367*88e42b0fSchristos # endif
2368*88e42b0fSchristos _GL_CXXALIAS_SYS (rint, double, (double x));
2369*88e42b0fSchristos # if __GLIBC__ >= 2
2370*88e42b0fSchristos _GL_CXXALIASWARN (rint);
2371*88e42b0fSchristos # endif
2372*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
2373*88e42b0fSchristos # undef rint
2374*88e42b0fSchristos # if HAVE_RAW_DECL_RINT
2375*88e42b0fSchristos _GL_WARN_ON_USE (rint, "rint is unportable - "
2376*88e42b0fSchristos                  "use gnulib module rint for portability");
2377*88e42b0fSchristos # endif
2378*88e42b0fSchristos #endif
2379*88e42b0fSchristos 
2380*88e42b0fSchristos #if 0
2381*88e42b0fSchristos # if 0
2382*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2383*88e42b0fSchristos #   undef rintl
2384*88e42b0fSchristos #   define rintl rpl_rintl
2385*88e42b0fSchristos #  endif
2386*88e42b0fSchristos _GL_FUNCDECL_RPL (rintl, long double, (long double x));
2387*88e42b0fSchristos _GL_CXXALIAS_RPL (rintl, long double, (long double x));
2388*88e42b0fSchristos # else
2389*88e42b0fSchristos #  if !1
2390*88e42b0fSchristos _GL_FUNCDECL_SYS (rintl, long double, (long double x));
2391*88e42b0fSchristos #  endif
2392*88e42b0fSchristos _GL_CXXALIAS_SYS (rintl, long double, (long double x));
2393*88e42b0fSchristos # endif
2394*88e42b0fSchristos _GL_CXXALIASWARN (rintl);
2395*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
2396*88e42b0fSchristos # undef rintl
2397*88e42b0fSchristos # if HAVE_RAW_DECL_RINTL
2398*88e42b0fSchristos _GL_WARN_ON_USE (rintl, "rintl is unportable - "
2399*88e42b0fSchristos                  "use gnulib module rintl for portability");
2400*88e42b0fSchristos # endif
2401*88e42b0fSchristos #endif
2402*88e42b0fSchristos 
2403*88e42b0fSchristos 
2404*88e42b0fSchristos #if 0
2405*88e42b0fSchristos # if 0
2406*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2407*88e42b0fSchristos #   undef roundf
2408*88e42b0fSchristos #   define roundf rpl_roundf
2409*88e42b0fSchristos #  endif
2410*88e42b0fSchristos _GL_FUNCDECL_RPL (roundf, float, (float x));
2411*88e42b0fSchristos _GL_CXXALIAS_RPL (roundf, float, (float x));
2412*88e42b0fSchristos # else
2413*88e42b0fSchristos #  if !1
2414*88e42b0fSchristos _GL_FUNCDECL_SYS (roundf, float, (float x));
2415*88e42b0fSchristos #  endif
2416*88e42b0fSchristos _GL_CXXALIAS_SYS (roundf, float, (float x));
2417*88e42b0fSchristos # endif
2418*88e42b0fSchristos _GL_CXXALIASWARN (roundf);
2419*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
2420*88e42b0fSchristos # undef roundf
2421*88e42b0fSchristos # if HAVE_RAW_DECL_ROUNDF
2422*88e42b0fSchristos _GL_WARN_ON_USE (roundf, "roundf is unportable - "
2423*88e42b0fSchristos                  "use gnulib module roundf for portability");
2424*88e42b0fSchristos # endif
2425*88e42b0fSchristos #endif
2426*88e42b0fSchristos 
2427*88e42b0fSchristos #if 0
2428*88e42b0fSchristos # if 0
2429*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2430*88e42b0fSchristos #   undef round
2431*88e42b0fSchristos #   define round rpl_round
2432*88e42b0fSchristos #  endif
2433*88e42b0fSchristos _GL_FUNCDECL_RPL (round, double, (double x));
2434*88e42b0fSchristos _GL_CXXALIAS_RPL (round, double, (double x));
2435*88e42b0fSchristos # else
2436*88e42b0fSchristos #  if !1
2437*88e42b0fSchristos _GL_FUNCDECL_SYS (round, double, (double x));
2438*88e42b0fSchristos #  endif
2439*88e42b0fSchristos _GL_CXXALIAS_SYS (round, double, (double x));
2440*88e42b0fSchristos # endif
2441*88e42b0fSchristos # if __GLIBC__ >= 2
2442*88e42b0fSchristos _GL_CXXALIASWARN (round);
2443*88e42b0fSchristos # endif
2444*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
2445*88e42b0fSchristos # undef round
2446*88e42b0fSchristos # if HAVE_RAW_DECL_ROUND
2447*88e42b0fSchristos _GL_WARN_ON_USE (round, "round is unportable - "
2448*88e42b0fSchristos                  "use gnulib module round for portability");
2449*88e42b0fSchristos # endif
2450*88e42b0fSchristos #endif
2451*88e42b0fSchristos 
2452*88e42b0fSchristos #if 0
2453*88e42b0fSchristos # if 0
2454*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2455*88e42b0fSchristos #   undef roundl
2456*88e42b0fSchristos #   define roundl rpl_roundl
2457*88e42b0fSchristos #  endif
2458*88e42b0fSchristos _GL_FUNCDECL_RPL (roundl, long double, (long double x));
2459*88e42b0fSchristos _GL_CXXALIAS_RPL (roundl, long double, (long double x));
2460*88e42b0fSchristos # else
2461*88e42b0fSchristos #  if !1
2462*88e42b0fSchristos #   undef roundl
2463*88e42b0fSchristos #   if !(defined __cplusplus && defined _AIX)
2464*88e42b0fSchristos _GL_FUNCDECL_SYS (roundl, long double, (long double x));
2465*88e42b0fSchristos #   endif
2466*88e42b0fSchristos #  endif
2467*88e42b0fSchristos _GL_CXXALIAS_SYS (roundl, long double, (long double x));
2468*88e42b0fSchristos # endif
2469*88e42b0fSchristos _GL_CXXALIASWARN (roundl);
2470*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
2471*88e42b0fSchristos # undef roundl
2472*88e42b0fSchristos # if HAVE_RAW_DECL_ROUNDL
2473*88e42b0fSchristos _GL_WARN_ON_USE (roundl, "roundl is unportable - "
2474*88e42b0fSchristos                  "use gnulib module roundl for portability");
2475*88e42b0fSchristos # endif
2476*88e42b0fSchristos #endif
2477*88e42b0fSchristos 
2478*88e42b0fSchristos 
2479*88e42b0fSchristos #if 0
2480*88e42b0fSchristos # if 0
2481*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2482*88e42b0fSchristos #   undef sinf
2483*88e42b0fSchristos #   define sinf rpl_sinf
2484*88e42b0fSchristos #  endif
2485*88e42b0fSchristos _GL_FUNCDECL_RPL (sinf, float, (float x));
2486*88e42b0fSchristos _GL_CXXALIAS_RPL (sinf, float, (float x));
2487*88e42b0fSchristos # else
2488*88e42b0fSchristos #  if !1
2489*88e42b0fSchristos  #  undef sinf
2490*88e42b0fSchristos _GL_FUNCDECL_SYS (sinf, float, (float x));
2491*88e42b0fSchristos #  endif
2492*88e42b0fSchristos _GL_CXXALIAS_SYS (sinf, float, (float x));
2493*88e42b0fSchristos # endif
2494*88e42b0fSchristos _GL_CXXALIASWARN (sinf);
2495*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
2496*88e42b0fSchristos # undef sinf
2497*88e42b0fSchristos # if HAVE_RAW_DECL_SINF
2498*88e42b0fSchristos _GL_WARN_ON_USE (sinf, "sinf is unportable - "
2499*88e42b0fSchristos                  "use gnulib module sinf for portability");
2500*88e42b0fSchristos # endif
2501*88e42b0fSchristos #endif
2502*88e42b0fSchristos 
2503*88e42b0fSchristos #if 0
2504*88e42b0fSchristos # if !1 || !1
2505*88e42b0fSchristos #  undef sinl
2506*88e42b0fSchristos _GL_FUNCDECL_SYS (sinl, long double, (long double x));
2507*88e42b0fSchristos # endif
2508*88e42b0fSchristos _GL_CXXALIAS_SYS (sinl, long double, (long double x));
2509*88e42b0fSchristos _GL_CXXALIASWARN (sinl);
2510*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
2511*88e42b0fSchristos # undef sinl
2512*88e42b0fSchristos # if HAVE_RAW_DECL_SINL
2513*88e42b0fSchristos _GL_WARN_ON_USE (sinl, "sinl is unportable - "
2514*88e42b0fSchristos                  "use gnulib module sinl for portability");
2515*88e42b0fSchristos # endif
2516*88e42b0fSchristos #endif
2517*88e42b0fSchristos 
2518*88e42b0fSchristos 
2519*88e42b0fSchristos #if 0
2520*88e42b0fSchristos # if 0
2521*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2522*88e42b0fSchristos #   undef sinhf
2523*88e42b0fSchristos #   define sinhf rpl_sinhf
2524*88e42b0fSchristos #  endif
2525*88e42b0fSchristos _GL_FUNCDECL_RPL (sinhf, float, (float x));
2526*88e42b0fSchristos _GL_CXXALIAS_RPL (sinhf, float, (float x));
2527*88e42b0fSchristos # else
2528*88e42b0fSchristos #  if !1
2529*88e42b0fSchristos #   undef sinhf
2530*88e42b0fSchristos _GL_FUNCDECL_SYS (sinhf, float, (float x));
2531*88e42b0fSchristos #  endif
2532*88e42b0fSchristos _GL_CXXALIAS_SYS (sinhf, float, (float x));
2533*88e42b0fSchristos # endif
2534*88e42b0fSchristos _GL_CXXALIASWARN (sinhf);
2535*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
2536*88e42b0fSchristos # undef sinhf
2537*88e42b0fSchristos # if HAVE_RAW_DECL_SINHF
2538*88e42b0fSchristos _GL_WARN_ON_USE (sinhf, "sinhf is unportable - "
2539*88e42b0fSchristos                  "use gnulib module sinhf for portability");
2540*88e42b0fSchristos # endif
2541*88e42b0fSchristos #endif
2542*88e42b0fSchristos 
2543*88e42b0fSchristos 
2544*88e42b0fSchristos #if 0
2545*88e42b0fSchristos # if 0
2546*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2547*88e42b0fSchristos #   undef sqrtf
2548*88e42b0fSchristos #   define sqrtf rpl_sqrtf
2549*88e42b0fSchristos #  endif
2550*88e42b0fSchristos _GL_FUNCDECL_RPL (sqrtf, float, (float x));
2551*88e42b0fSchristos _GL_CXXALIAS_RPL (sqrtf, float, (float x));
2552*88e42b0fSchristos # else
2553*88e42b0fSchristos #  if !1
2554*88e42b0fSchristos #   undef sqrtf
2555*88e42b0fSchristos _GL_FUNCDECL_SYS (sqrtf, float, (float x));
2556*88e42b0fSchristos #  endif
2557*88e42b0fSchristos _GL_CXXALIAS_SYS (sqrtf, float, (float x));
2558*88e42b0fSchristos # endif
2559*88e42b0fSchristos _GL_CXXALIASWARN (sqrtf);
2560*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
2561*88e42b0fSchristos # undef sqrtf
2562*88e42b0fSchristos # if HAVE_RAW_DECL_SQRTF
2563*88e42b0fSchristos _GL_WARN_ON_USE (sqrtf, "sqrtf is unportable - "
2564*88e42b0fSchristos                  "use gnulib module sqrtf for portability");
2565*88e42b0fSchristos # endif
2566*88e42b0fSchristos #endif
2567*88e42b0fSchristos 
2568*88e42b0fSchristos #if 0
2569*88e42b0fSchristos # if 0
2570*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2571*88e42b0fSchristos #   undef sqrtl
2572*88e42b0fSchristos #   define sqrtl rpl_sqrtl
2573*88e42b0fSchristos #  endif
2574*88e42b0fSchristos _GL_FUNCDECL_RPL (sqrtl, long double, (long double x));
2575*88e42b0fSchristos _GL_CXXALIAS_RPL (sqrtl, long double, (long double x));
2576*88e42b0fSchristos # else
2577*88e42b0fSchristos #  if !1 || !1
2578*88e42b0fSchristos #   undef sqrtl
2579*88e42b0fSchristos _GL_FUNCDECL_SYS (sqrtl, long double, (long double x));
2580*88e42b0fSchristos #  endif
2581*88e42b0fSchristos _GL_CXXALIAS_SYS (sqrtl, long double, (long double x));
2582*88e42b0fSchristos # endif
2583*88e42b0fSchristos _GL_CXXALIASWARN (sqrtl);
2584*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
2585*88e42b0fSchristos # undef sqrtl
2586*88e42b0fSchristos # if HAVE_RAW_DECL_SQRTL
2587*88e42b0fSchristos _GL_WARN_ON_USE (sqrtl, "sqrtl is unportable - "
2588*88e42b0fSchristos                  "use gnulib module sqrtl for portability");
2589*88e42b0fSchristos # endif
2590*88e42b0fSchristos #endif
2591*88e42b0fSchristos 
2592*88e42b0fSchristos 
2593*88e42b0fSchristos #if 0
2594*88e42b0fSchristos # if 0
2595*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2596*88e42b0fSchristos #   undef tanf
2597*88e42b0fSchristos #   define tanf rpl_tanf
2598*88e42b0fSchristos #  endif
2599*88e42b0fSchristos _GL_FUNCDECL_RPL (tanf, float, (float x));
2600*88e42b0fSchristos _GL_CXXALIAS_RPL (tanf, float, (float x));
2601*88e42b0fSchristos # else
2602*88e42b0fSchristos #  if !1
2603*88e42b0fSchristos #   undef tanf
2604*88e42b0fSchristos _GL_FUNCDECL_SYS (tanf, float, (float x));
2605*88e42b0fSchristos #  endif
2606*88e42b0fSchristos _GL_CXXALIAS_SYS (tanf, float, (float x));
2607*88e42b0fSchristos # endif
2608*88e42b0fSchristos _GL_CXXALIASWARN (tanf);
2609*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
2610*88e42b0fSchristos # undef tanf
2611*88e42b0fSchristos # if HAVE_RAW_DECL_TANF
2612*88e42b0fSchristos _GL_WARN_ON_USE (tanf, "tanf is unportable - "
2613*88e42b0fSchristos                  "use gnulib module tanf for portability");
2614*88e42b0fSchristos # endif
2615*88e42b0fSchristos #endif
2616*88e42b0fSchristos 
2617*88e42b0fSchristos #if 0
2618*88e42b0fSchristos # if !1 || !1
2619*88e42b0fSchristos #  undef tanl
2620*88e42b0fSchristos _GL_FUNCDECL_SYS (tanl, long double, (long double x));
2621*88e42b0fSchristos # endif
2622*88e42b0fSchristos _GL_CXXALIAS_SYS (tanl, long double, (long double x));
2623*88e42b0fSchristos _GL_CXXALIASWARN (tanl);
2624*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
2625*88e42b0fSchristos # undef tanl
2626*88e42b0fSchristos # if HAVE_RAW_DECL_TANL
2627*88e42b0fSchristos _GL_WARN_ON_USE (tanl, "tanl is unportable - "
2628*88e42b0fSchristos                  "use gnulib module tanl for portability");
2629*88e42b0fSchristos # endif
2630*88e42b0fSchristos #endif
2631*88e42b0fSchristos 
2632*88e42b0fSchristos 
2633*88e42b0fSchristos #if 0
2634*88e42b0fSchristos # if 0
2635*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2636*88e42b0fSchristos #   undef tanhf
2637*88e42b0fSchristos #   define tanhf rpl_tanhf
2638*88e42b0fSchristos #  endif
2639*88e42b0fSchristos _GL_FUNCDECL_RPL (tanhf, float, (float x));
2640*88e42b0fSchristos _GL_CXXALIAS_RPL (tanhf, float, (float x));
2641*88e42b0fSchristos # else
2642*88e42b0fSchristos #  if !1
2643*88e42b0fSchristos #   undef tanhf
2644*88e42b0fSchristos _GL_FUNCDECL_SYS (tanhf, float, (float x));
2645*88e42b0fSchristos #  endif
2646*88e42b0fSchristos _GL_CXXALIAS_SYS (tanhf, float, (float x));
2647*88e42b0fSchristos # endif
2648*88e42b0fSchristos _GL_CXXALIASWARN (tanhf);
2649*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
2650*88e42b0fSchristos # undef tanhf
2651*88e42b0fSchristos # if HAVE_RAW_DECL_TANHF
2652*88e42b0fSchristos _GL_WARN_ON_USE (tanhf, "tanhf is unportable - "
2653*88e42b0fSchristos                  "use gnulib module tanhf for portability");
2654*88e42b0fSchristos # endif
2655*88e42b0fSchristos #endif
2656*88e42b0fSchristos 
2657*88e42b0fSchristos 
2658*88e42b0fSchristos #if 0
2659*88e42b0fSchristos # if 0
2660*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2661*88e42b0fSchristos #   undef truncf
2662*88e42b0fSchristos #   define truncf rpl_truncf
2663*88e42b0fSchristos #  endif
2664*88e42b0fSchristos _GL_FUNCDECL_RPL (truncf, float, (float x));
2665*88e42b0fSchristos _GL_CXXALIAS_RPL (truncf, float, (float x));
2666*88e42b0fSchristos # else
2667*88e42b0fSchristos #  if !1
2668*88e42b0fSchristos _GL_FUNCDECL_SYS (truncf, float, (float x));
2669*88e42b0fSchristos #  endif
2670*88e42b0fSchristos _GL_CXXALIAS_SYS (truncf, float, (float x));
2671*88e42b0fSchristos # endif
2672*88e42b0fSchristos _GL_CXXALIASWARN (truncf);
2673*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
2674*88e42b0fSchristos # undef truncf
2675*88e42b0fSchristos # if HAVE_RAW_DECL_TRUNCF
2676*88e42b0fSchristos _GL_WARN_ON_USE (truncf, "truncf is unportable - "
2677*88e42b0fSchristos                  "use gnulib module truncf for portability");
2678*88e42b0fSchristos # endif
2679*88e42b0fSchristos #endif
2680*88e42b0fSchristos 
2681*88e42b0fSchristos #if 0
2682*88e42b0fSchristos # if 0
2683*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2684*88e42b0fSchristos #   undef trunc
2685*88e42b0fSchristos #   define trunc rpl_trunc
2686*88e42b0fSchristos #  endif
2687*88e42b0fSchristos _GL_FUNCDECL_RPL (trunc, double, (double x));
2688*88e42b0fSchristos _GL_CXXALIAS_RPL (trunc, double, (double x));
2689*88e42b0fSchristos # else
2690*88e42b0fSchristos #  if !1
2691*88e42b0fSchristos _GL_FUNCDECL_SYS (trunc, double, (double x));
2692*88e42b0fSchristos #  endif
2693*88e42b0fSchristos _GL_CXXALIAS_SYS (trunc, double, (double x));
2694*88e42b0fSchristos # endif
2695*88e42b0fSchristos # if __GLIBC__ >= 2
2696*88e42b0fSchristos _GL_CXXALIASWARN (trunc);
2697*88e42b0fSchristos # endif
2698*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
2699*88e42b0fSchristos # undef trunc
2700*88e42b0fSchristos # if HAVE_RAW_DECL_TRUNC
2701*88e42b0fSchristos _GL_WARN_ON_USE (trunc, "trunc is unportable - "
2702*88e42b0fSchristos                  "use gnulib module trunc for portability");
2703*88e42b0fSchristos # endif
2704*88e42b0fSchristos #endif
2705*88e42b0fSchristos 
2706*88e42b0fSchristos #if 0
2707*88e42b0fSchristos # if 0
2708*88e42b0fSchristos #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2709*88e42b0fSchristos #   undef truncl
2710*88e42b0fSchristos #   define truncl rpl_truncl
2711*88e42b0fSchristos #  endif
2712*88e42b0fSchristos _GL_FUNCDECL_RPL (truncl, long double, (long double x));
2713*88e42b0fSchristos _GL_CXXALIAS_RPL (truncl, long double, (long double x));
2714*88e42b0fSchristos # else
2715*88e42b0fSchristos #  if !1
2716*88e42b0fSchristos _GL_FUNCDECL_SYS (truncl, long double, (long double x));
2717*88e42b0fSchristos #  endif
2718*88e42b0fSchristos _GL_CXXALIAS_SYS (truncl, long double, (long double x));
2719*88e42b0fSchristos # endif
2720*88e42b0fSchristos _GL_CXXALIASWARN (truncl);
2721*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
2722*88e42b0fSchristos # undef truncl
2723*88e42b0fSchristos # if HAVE_RAW_DECL_TRUNCL
2724*88e42b0fSchristos _GL_WARN_ON_USE (truncl, "truncl is unportable - "
2725*88e42b0fSchristos                  "use gnulib module truncl for portability");
2726*88e42b0fSchristos # endif
2727*88e42b0fSchristos #endif
2728*88e42b0fSchristos 
2729*88e42b0fSchristos 
2730*88e42b0fSchristos /* Definitions of function-like macros come here, after the function
2731*88e42b0fSchristos    declarations.  */
2732*88e42b0fSchristos 
2733*88e42b0fSchristos 
2734*88e42b0fSchristos #if 0
2735*88e42b0fSchristos # if 0
2736*88e42b0fSchristos _GL_EXTERN_C int gl_isfinitef (float x);
2737*88e42b0fSchristos _GL_EXTERN_C int gl_isfinited (double x);
2738*88e42b0fSchristos _GL_EXTERN_C int gl_isfinitel (long double x);
2739*88e42b0fSchristos #  undef isfinite
2740*88e42b0fSchristos #  define isfinite(x) \
2741*88e42b0fSchristos    (sizeof (x) == sizeof (long double) ? gl_isfinitel (x) : \
2742*88e42b0fSchristos     sizeof (x) == sizeof (double) ? gl_isfinited (x) : \
2743*88e42b0fSchristos     gl_isfinitef (x))
2744*88e42b0fSchristos # endif
2745*88e42b0fSchristos # ifdef __cplusplus
2746*88e42b0fSchristos #  if defined isfinite || defined GNULIB_NAMESPACE
2747*88e42b0fSchristos _GL_MATH_CXX_REAL_FLOATING_DECL_1 (isfinite)
2748*88e42b0fSchristos #   undef isfinite
2749*88e42b0fSchristos #   if __GNUC__ >= 6 || (defined __clang__ && !((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined _AIX))
2750*88e42b0fSchristos   /* This platform's <cmath> possibly defines isfinite through a set of inline
2751*88e42b0fSchristos      functions.  */
2752*88e42b0fSchristos _GL_MATH_CXX_REAL_FLOATING_DECL_2 (isfinite, rpl_isfinite, bool)
2753*88e42b0fSchristos #    define isfinite rpl_isfinite
2754*88e42b0fSchristos #   else
2755*88e42b0fSchristos _GL_MATH_CXX_REAL_FLOATING_DECL_2 (isfinite, isfinite, bool)
2756*88e42b0fSchristos #   endif
2757*88e42b0fSchristos #  endif
2758*88e42b0fSchristos # endif
2759*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
2760*88e42b0fSchristos # if defined isfinite
2761*88e42b0fSchristos _GL_WARN_REAL_FLOATING_DECL (isfinite);
2762*88e42b0fSchristos #  undef isfinite
2763*88e42b0fSchristos #  define isfinite(x) _GL_WARN_REAL_FLOATING_IMPL (isfinite, x)
2764*88e42b0fSchristos # endif
2765*88e42b0fSchristos #endif
2766*88e42b0fSchristos 
2767*88e42b0fSchristos 
2768*88e42b0fSchristos #if 0
2769*88e42b0fSchristos # if 0
2770*88e42b0fSchristos _GL_EXTERN_C int gl_isinff (float x);
2771*88e42b0fSchristos _GL_EXTERN_C int gl_isinfd (double x);
2772*88e42b0fSchristos _GL_EXTERN_C int gl_isinfl (long double x);
2773*88e42b0fSchristos #  undef isinf
2774*88e42b0fSchristos #  define isinf(x) \
2775*88e42b0fSchristos    (sizeof (x) == sizeof (long double) ? gl_isinfl (x) : \
2776*88e42b0fSchristos     sizeof (x) == sizeof (double) ? gl_isinfd (x) : \
2777*88e42b0fSchristos     gl_isinff (x))
2778*88e42b0fSchristos # endif
2779*88e42b0fSchristos # ifdef __cplusplus
2780*88e42b0fSchristos #  if defined isinf || defined GNULIB_NAMESPACE
2781*88e42b0fSchristos _GL_MATH_CXX_REAL_FLOATING_DECL_1 (isinf)
2782*88e42b0fSchristos #   undef isinf
2783*88e42b0fSchristos #   if __GNUC__ >= 6 || (defined __clang__ && !((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__))
2784*88e42b0fSchristos   /* This platform's <cmath> possibly defines isinf through a set of inline
2785*88e42b0fSchristos      functions.  */
2786*88e42b0fSchristos _GL_MATH_CXX_REAL_FLOATING_DECL_2 (isinf, rpl_isinf, bool)
2787*88e42b0fSchristos #    define isinf rpl_isinf
2788*88e42b0fSchristos #   else
2789*88e42b0fSchristos _GL_MATH_CXX_REAL_FLOATING_DECL_2 (isinf, isinf, bool)
2790*88e42b0fSchristos #   endif
2791*88e42b0fSchristos #  endif
2792*88e42b0fSchristos # endif
2793*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
2794*88e42b0fSchristos # if defined isinf
2795*88e42b0fSchristos _GL_WARN_REAL_FLOATING_DECL (isinf);
2796*88e42b0fSchristos #  undef isinf
2797*88e42b0fSchristos #  define isinf(x) _GL_WARN_REAL_FLOATING_IMPL (isinf, x)
2798*88e42b0fSchristos # endif
2799*88e42b0fSchristos #endif
2800*88e42b0fSchristos 
2801*88e42b0fSchristos 
2802*88e42b0fSchristos #if 0
2803*88e42b0fSchristos /* Test for NaN for 'float' numbers.  */
2804*88e42b0fSchristos # if 1
2805*88e42b0fSchristos /* The original <math.h> included above provides a declaration of isnan macro
2806*88e42b0fSchristos    or (older) isnanf function.  */
2807*88e42b0fSchristos #  if __GNUC__ >= 4 && (!defined __clang__ || __has_builtin (__builtin_isnanf))
2808*88e42b0fSchristos     /* GCC 4.0 and newer provides three built-ins for isnan.  */
2809*88e42b0fSchristos #   undef isnanf
2810*88e42b0fSchristos #   define isnanf(x) __builtin_isnanf ((float)(x))
2811*88e42b0fSchristos #  elif defined isnan
2812*88e42b0fSchristos #   undef isnanf
2813*88e42b0fSchristos #   define isnanf(x) isnan ((float)(x))
2814*88e42b0fSchristos #  endif
2815*88e42b0fSchristos # else
2816*88e42b0fSchristos /* Test whether X is a NaN.  */
2817*88e42b0fSchristos #  undef isnanf
2818*88e42b0fSchristos #  define isnanf rpl_isnanf
2819*88e42b0fSchristos _GL_EXTERN_C int isnanf (float x);
2820*88e42b0fSchristos # endif
2821*88e42b0fSchristos #endif
2822*88e42b0fSchristos 
2823*88e42b0fSchristos #if 0
2824*88e42b0fSchristos /* Test for NaN for 'double' numbers.
2825*88e42b0fSchristos    This function is a gnulib extension, unlike isnan() which applied only
2826*88e42b0fSchristos    to 'double' numbers earlier but now is a type-generic macro.  */
2827*88e42b0fSchristos # if 1
2828*88e42b0fSchristos /* The original <math.h> included above provides a declaration of isnan
2829*88e42b0fSchristos    macro.  */
2830*88e42b0fSchristos #  if __GNUC__ >= 4
2831*88e42b0fSchristos     /* GCC 4.0 and newer provides three built-ins for isnan.  */
2832*88e42b0fSchristos #   undef isnand
2833*88e42b0fSchristos #   define isnand(x) __builtin_isnan ((double)(x))
2834*88e42b0fSchristos #  else
2835*88e42b0fSchristos #   undef isnand
2836*88e42b0fSchristos #   define isnand(x) isnan ((double)(x))
2837*88e42b0fSchristos #  endif
2838*88e42b0fSchristos # else
2839*88e42b0fSchristos /* Test whether X is a NaN.  */
2840*88e42b0fSchristos #  undef isnand
2841*88e42b0fSchristos #  define isnand rpl_isnand
2842*88e42b0fSchristos _GL_EXTERN_C int isnand (double x);
2843*88e42b0fSchristos # endif
2844*88e42b0fSchristos #endif
2845*88e42b0fSchristos 
2846*88e42b0fSchristos #if 0
2847*88e42b0fSchristos /* Test for NaN for 'long double' numbers.  */
2848*88e42b0fSchristos # if 1
2849*88e42b0fSchristos /* The original <math.h> included above provides a declaration of isnan
2850*88e42b0fSchristos    macro or (older) isnanl function.  */
2851*88e42b0fSchristos #  if __GNUC__ >= 4 && (!defined __clang__ || __has_builtin (__builtin_isnanl))
2852*88e42b0fSchristos     /* GCC 4.0 and newer provides three built-ins for isnan.  */
2853*88e42b0fSchristos #   undef isnanl
2854*88e42b0fSchristos #   define isnanl(x) __builtin_isnanl ((long double)(x))
2855*88e42b0fSchristos #  elif defined isnan
2856*88e42b0fSchristos #   undef isnanl
2857*88e42b0fSchristos #   define isnanl(x) isnan ((long double)(x))
2858*88e42b0fSchristos #  endif
2859*88e42b0fSchristos # else
2860*88e42b0fSchristos /* Test whether X is a NaN.  */
2861*88e42b0fSchristos #  undef isnanl
2862*88e42b0fSchristos #  define isnanl rpl_isnanl
2863*88e42b0fSchristos _GL_EXTERN_C int isnanl (long double x) _GL_ATTRIBUTE_CONST;
2864*88e42b0fSchristos # endif
2865*88e42b0fSchristos #endif
2866*88e42b0fSchristos 
2867*88e42b0fSchristos /* This must come *after* the snippets for GNULIB_ISNANF and GNULIB_ISNANL!  */
2868*88e42b0fSchristos #if 0
2869*88e42b0fSchristos # if 0
2870*88e42b0fSchristos /* We can't just use the isnanf macro (e.g.) as exposed by
2871*88e42b0fSchristos    isnanf.h (e.g.) here, because those may end up being macros
2872*88e42b0fSchristos    that recursively expand back to isnan.  So use the gnulib
2873*88e42b0fSchristos    replacements for them directly. */
2874*88e42b0fSchristos #  if 1 && __GNUC__ >= 4 && (!defined __clang__ || __has_builtin (__builtin_isnanf))
2875*88e42b0fSchristos #   define gl_isnan_f(x) __builtin_isnanf ((float)(x))
2876*88e42b0fSchristos #  else
2877*88e42b0fSchristos _GL_EXTERN_C int rpl_isnanf (float x);
2878*88e42b0fSchristos #   define gl_isnan_f(x) rpl_isnanf (x)
2879*88e42b0fSchristos #  endif
2880*88e42b0fSchristos #  if 1 && __GNUC__ >= 4
2881*88e42b0fSchristos #   define gl_isnan_d(x) __builtin_isnan ((double)(x))
2882*88e42b0fSchristos #  else
2883*88e42b0fSchristos _GL_EXTERN_C int rpl_isnand (double x);
2884*88e42b0fSchristos #   define gl_isnan_d(x) rpl_isnand (x)
2885*88e42b0fSchristos #  endif
2886*88e42b0fSchristos #  if 1 && __GNUC__ >= 4 && (!defined __clang__ || __has_builtin (__builtin_isnanl))
2887*88e42b0fSchristos #   define gl_isnan_l(x) __builtin_isnanl ((long double)(x))
2888*88e42b0fSchristos #  else
2889*88e42b0fSchristos _GL_EXTERN_C int rpl_isnanl (long double x) _GL_ATTRIBUTE_CONST;
2890*88e42b0fSchristos #   define gl_isnan_l(x) rpl_isnanl (x)
2891*88e42b0fSchristos #  endif
2892*88e42b0fSchristos #  undef isnan
2893*88e42b0fSchristos #  define isnan(x) \
2894*88e42b0fSchristos    (sizeof (x) == sizeof (long double) ? gl_isnan_l (x) : \
2895*88e42b0fSchristos     sizeof (x) == sizeof (double) ? gl_isnan_d (x) : \
2896*88e42b0fSchristos     gl_isnan_f (x))
2897*88e42b0fSchristos # elif __GNUC__ >= 4 && (!defined __clang__ || (__has_builtin (__builtin_isnanf) && __has_builtin (__builtin_isnanl)))
2898*88e42b0fSchristos #  undef isnan
2899*88e42b0fSchristos #  define isnan(x) \
2900*88e42b0fSchristos    (sizeof (x) == sizeof (long double) ? __builtin_isnanl ((long double)(x)) : \
2901*88e42b0fSchristos     sizeof (x) == sizeof (double) ? __builtin_isnan ((double)(x)) : \
2902*88e42b0fSchristos     __builtin_isnanf ((float)(x)))
2903*88e42b0fSchristos # endif
2904*88e42b0fSchristos # ifdef __cplusplus
2905*88e42b0fSchristos #  if defined isnan || defined GNULIB_NAMESPACE
2906*88e42b0fSchristos _GL_MATH_CXX_REAL_FLOATING_DECL_1 (isnan)
2907*88e42b0fSchristos #   undef isnan
2908*88e42b0fSchristos #   if __GNUC__ >= 6 || (defined __clang__ && !((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__))
2909*88e42b0fSchristos   /* This platform's <cmath> possibly defines isnan through a set of inline
2910*88e42b0fSchristos      functions.  */
2911*88e42b0fSchristos _GL_MATH_CXX_REAL_FLOATING_DECL_2 (isnan, rpl_isnan, bool)
2912*88e42b0fSchristos #    define isnan rpl_isnan
2913*88e42b0fSchristos #   else
2914*88e42b0fSchristos _GL_MATH_CXX_REAL_FLOATING_DECL_2 (isnan, isnan, bool)
2915*88e42b0fSchristos #   endif
2916*88e42b0fSchristos #  endif
2917*88e42b0fSchristos # else
2918*88e42b0fSchristos /* Ensure isnan is a macro.  */
2919*88e42b0fSchristos #  ifndef isnan
2920*88e42b0fSchristos #   define isnan isnan
2921*88e42b0fSchristos #  endif
2922*88e42b0fSchristos # endif
2923*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
2924*88e42b0fSchristos # if defined isnan
2925*88e42b0fSchristos _GL_WARN_REAL_FLOATING_DECL (isnan);
2926*88e42b0fSchristos #  undef isnan
2927*88e42b0fSchristos #  define isnan(x) _GL_WARN_REAL_FLOATING_IMPL (isnan, x)
2928*88e42b0fSchristos # endif
2929*88e42b0fSchristos #endif
2930*88e42b0fSchristos 
2931*88e42b0fSchristos 
2932*88e42b0fSchristos #if 0
2933*88e42b0fSchristos # if (0 \
2934*88e42b0fSchristos       && (!defined __cplusplus || __cplusplus < 201103))
2935*88e42b0fSchristos #  undef signbit
2936*88e42b0fSchristos    /* GCC 4.0 and newer provides three built-ins for signbit.  */
2937*88e42b0fSchristos #  define signbit(x) \
2938*88e42b0fSchristos    (sizeof (x) == sizeof (long double) ? __builtin_signbitl (x) : \
2939*88e42b0fSchristos     sizeof (x) == sizeof (double) ? __builtin_signbit (x) : \
2940*88e42b0fSchristos     __builtin_signbitf (x))
2941*88e42b0fSchristos # endif
2942*88e42b0fSchristos # if 0 && !GNULIB_defined_signbit
2943*88e42b0fSchristos #  undef signbit
2944*88e42b0fSchristos _GL_EXTERN_C int gl_signbitf (float arg);
2945*88e42b0fSchristos _GL_EXTERN_C int gl_signbitd (double arg);
2946*88e42b0fSchristos _GL_EXTERN_C int gl_signbitl (long double arg);
2947*88e42b0fSchristos #  if __GNUC__ >= 2 && !defined __STRICT_ANSI__
2948*88e42b0fSchristos #   define _GL_NUM_UINT_WORDS(type) \
2949*88e42b0fSchristos       ((sizeof (type) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
2950*88e42b0fSchristos #   if defined FLT_SIGNBIT_WORD && defined FLT_SIGNBIT_BIT && !defined gl_signbitf
2951*88e42b0fSchristos #    define gl_signbitf_OPTIMIZED_MACRO
2952*88e42b0fSchristos #    define gl_signbitf(arg) \
2953*88e42b0fSchristos        ({ union { float _value;                                         \
2954*88e42b0fSchristos                   unsigned int _word[_GL_NUM_UINT_WORDS (float)];       \
2955*88e42b0fSchristos                 } _m;                                                   \
2956*88e42b0fSchristos           _m._value = (arg);                                            \
2957*88e42b0fSchristos           (_m._word[FLT_SIGNBIT_WORD] >> FLT_SIGNBIT_BIT) & 1;          \
2958*88e42b0fSchristos         })
2959*88e42b0fSchristos #   endif
2960*88e42b0fSchristos #   if defined DBL_SIGNBIT_WORD && defined DBL_SIGNBIT_BIT && !defined gl_signbitd
2961*88e42b0fSchristos #    define gl_signbitd_OPTIMIZED_MACRO
2962*88e42b0fSchristos #    define gl_signbitd(arg) \
2963*88e42b0fSchristos        ({ union { double _value;                                        \
2964*88e42b0fSchristos                   unsigned int _word[_GL_NUM_UINT_WORDS (double)];      \
2965*88e42b0fSchristos                 } _m;                                                   \
2966*88e42b0fSchristos           _m._value = (arg);                                            \
2967*88e42b0fSchristos           (_m._word[DBL_SIGNBIT_WORD] >> DBL_SIGNBIT_BIT) & 1;          \
2968*88e42b0fSchristos         })
2969*88e42b0fSchristos #   endif
2970*88e42b0fSchristos #   if defined LDBL_SIGNBIT_WORD && defined LDBL_SIGNBIT_BIT && !defined gl_signbitl
2971*88e42b0fSchristos #    define gl_signbitl_OPTIMIZED_MACRO
2972*88e42b0fSchristos #    define gl_signbitl(arg) \
2973*88e42b0fSchristos        ({ union { long double _value;                                   \
2974*88e42b0fSchristos                   unsigned int _word[_GL_NUM_UINT_WORDS (long double)]; \
2975*88e42b0fSchristos                 } _m;                                                   \
2976*88e42b0fSchristos           _m._value = (arg);                                            \
2977*88e42b0fSchristos           (_m._word[LDBL_SIGNBIT_WORD] >> LDBL_SIGNBIT_BIT) & 1;        \
2978*88e42b0fSchristos         })
2979*88e42b0fSchristos #   endif
2980*88e42b0fSchristos #  endif
2981*88e42b0fSchristos #  define signbit(x) \
2982*88e42b0fSchristos    (sizeof (x) == sizeof (long double) ? gl_signbitl (x) : \
2983*88e42b0fSchristos     sizeof (x) == sizeof (double) ? gl_signbitd (x) : \
2984*88e42b0fSchristos     gl_signbitf (x))
2985*88e42b0fSchristos #  define GNULIB_defined_signbit 1
2986*88e42b0fSchristos # endif
2987*88e42b0fSchristos # ifdef __cplusplus
2988*88e42b0fSchristos #  if defined signbit || defined GNULIB_NAMESPACE
2989*88e42b0fSchristos _GL_MATH_CXX_REAL_FLOATING_DECL_1 (signbit)
2990*88e42b0fSchristos #   undef signbit
2991*88e42b0fSchristos #   if __GNUC__ >= 6 || (defined __clang__ && !((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined _AIX))
2992*88e42b0fSchristos   /* This platform's <cmath> possibly defines signbit through a set of inline
2993*88e42b0fSchristos      functions.  */
2994*88e42b0fSchristos _GL_MATH_CXX_REAL_FLOATING_DECL_2 (signbit, rpl_signbit, bool)
2995*88e42b0fSchristos #    define signbit rpl_signbit
2996*88e42b0fSchristos #   else
2997*88e42b0fSchristos _GL_MATH_CXX_REAL_FLOATING_DECL_2 (signbit, signbit, bool)
2998*88e42b0fSchristos #   endif
2999*88e42b0fSchristos #  endif
3000*88e42b0fSchristos # endif
3001*88e42b0fSchristos #elif defined GNULIB_POSIXCHECK
3002*88e42b0fSchristos # if defined signbit
3003*88e42b0fSchristos _GL_WARN_REAL_FLOATING_DECL (signbit);
3004*88e42b0fSchristos #  undef signbit
3005*88e42b0fSchristos #  define signbit(x) _GL_WARN_REAL_FLOATING_IMPL (signbit, x)
3006*88e42b0fSchristos # endif
3007*88e42b0fSchristos #endif
3008*88e42b0fSchristos 
3009*88e42b0fSchristos _GL_INLINE_HEADER_END
3010*88e42b0fSchristos 
3011*88e42b0fSchristos #endif /* _GL_MATH_H */
3012*88e42b0fSchristos #endif /* _GL_MATH_H */
3013