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