summaryrefslogtreecommitdiffstats
path: root/gl/math.in.h
diff options
context:
space:
mode:
Diffstat (limited to 'gl/math.in.h')
-rw-r--r--gl/math.in.h831
1 files changed, 638 insertions, 193 deletions
diff --git a/gl/math.in.h b/gl/math.in.h
index f3d58afc..f4e80c53 100644
--- a/gl/math.in.h
+++ b/gl/math.in.h
@@ -1,6 +1,6 @@
1/* A GNU-like <math.h>. 1/* A GNU-like <math.h>.
2 2
3 Copyright (C) 2002-2003, 2007-2023 Free Software Foundation, Inc. 3 Copyright (C) 2002-2003, 2007-2025 Free Software Foundation, Inc.
4 4
5 This file is free software: you can redistribute it and/or modify 5 This file is free software: you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as 6 it under the terms of the GNU Lesser General Public License as
@@ -15,6 +15,11 @@
15 You should have received a copy of the GNU Lesser General Public License 15 You should have received a copy of the GNU Lesser General Public License
16 along with this program. If not, see <https://www.gnu.org/licenses/>. */ 16 along with this program. If not, see <https://www.gnu.org/licenses/>. */
17 17
18/* On Android, in C++ mode, when /usr/include/c++/v1/math.h is being included
19 and /usr/include/math.h has not yet been included, skip this file, since it
20 would lead to many syntax errors. */
21#if !(defined __ANDROID__ && defined _LIBCPP_MATH_H && !defined INFINITY)
22
18#ifndef _@GUARD_PREFIX@_MATH_H 23#ifndef _@GUARD_PREFIX@_MATH_H
19 24
20#if __GNUC__ >= 3 25#if __GNUC__ >= 3
@@ -43,14 +48,17 @@
43#ifndef _@GUARD_PREFIX@_MATH_H 48#ifndef _@GUARD_PREFIX@_MATH_H
44#define _@GUARD_PREFIX@_MATH_H 49#define _@GUARD_PREFIX@_MATH_H
45 50
51/* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE, _GL_ATTRIBUTE_CONST,
52 GNULIB_POSIXCHECK, HAVE_RAW_DECL_*. */
53#if !_GL_CONFIG_H_INCLUDED
54 #error "Please include config.h first."
55#endif
56
46/* On OpenVMS, NAN, INFINITY, and HUGEVAL macros are defined in <fp.h>. */ 57/* On OpenVMS, NAN, INFINITY, and HUGEVAL macros are defined in <fp.h>. */
47#if defined __VMS && ! defined NAN 58#if defined __VMS && ! defined NAN
48# include <fp.h> 59# include <fp.h>
49#endif 60#endif
50 61
51#ifndef _GL_INLINE_HEADER_BEGIN
52 #error "Please include config.h first."
53#endif
54_GL_INLINE_HEADER_BEGIN 62_GL_INLINE_HEADER_BEGIN
55#ifndef _GL_MATH_INLINE 63#ifndef _GL_MATH_INLINE
56# define _GL_MATH_INLINE _GL_INLINE 64# define _GL_MATH_INLINE _GL_INLINE
@@ -152,12 +160,23 @@ static void (*_gl_math_fix_itold) (long double *, int) = _Qp_itoq;
152#endif 160#endif
153 161
154 162
163/* Ensure that INFINITY is a constant expression, of type 'float'. */
164#if !defined INFINITY || (defined __FreeBSD__ && __FreeBSD__ < 8) || defined _AIX || defined __MINGW32__
165# undef INFINITY
166# if defined __GNUC__ || defined __clang__
167# define INFINITY (__builtin_inff ())
168# else
169# define INFINITY (1.0f / 0.0f)
170# endif
171#endif
172
155/* POSIX allows platforms that don't support NAN. But all major 173/* POSIX allows platforms that don't support NAN. But all major
156 machines in the past 15 years have supported something close to 174 machines in the past 15 years have supported something close to
157 IEEE NaN, so we define this unconditionally. We also must define 175 IEEE NaN, so we define this unconditionally. We also must define
158 it on platforms like Solaris 10, where NAN is present but defined 176 it on platforms like Solaris 10, where NAN is present but defined
159 as a function pointer rather than a floating point constant. */ 177 as a function pointer rather than a floating point constant.
160#if !defined NAN || @REPLACE_NAN@ 178 Also ensure that it is a constant expression, of type 'float'. */
179#if !defined NAN || @REPLACE_NAN@ || (defined __FreeBSD__ && __FreeBSD__ < 8) || defined _AIX || defined __MINGW32__
161# if !GNULIB_defined_NAN 180# if !GNULIB_defined_NAN
162# undef NAN 181# undef NAN
163 /* The Compaq (ex-DEC) C 6.4 compiler and the Microsoft MSVC 9 compiler 182 /* The Compaq (ex-DEC) C 6.4 compiler and the Microsoft MSVC 9 compiler
@@ -170,6 +189,8 @@ _NaN ()
170 return zero / zero; 189 return zero / zero;
171} 190}
172# define NAN (_NaN()) 191# define NAN (_NaN())
192# elif defined __GNUC__ || defined __clang__
193# define NAN (__builtin_nanf (""))
173# else 194# else
174# define NAN (0.0f / 0.0f) 195# define NAN (0.0f / 0.0f)
175# endif 196# endif
@@ -189,46 +210,46 @@ _NaN ()
189#endif 210#endif
190 211
191/* HUGE_VALF is a 'float' Infinity. */ 212/* HUGE_VALF is a 'float' Infinity. */
192#ifndef HUGE_VALF 213#if !defined HUGE_VALF || (defined __FreeBSD__ && __FreeBSD__ < 6)
214# undef HUGE_VALF
193# if defined _MSC_VER 215# if defined _MSC_VER
194/* The Microsoft MSVC 9 compiler chokes on the expression 1.0f / 0.0f. */ 216/* The Microsoft MSVC 9 compiler chokes on the expression 1.0f / 0.0f. */
195# define HUGE_VALF (1e25f * 1e25f) 217# define HUGE_VALF (1e25f * 1e25f)
218# elif defined __GNUC__ || defined __clang__
219# define HUGE_VALF (__builtin_inff ())
196# else 220# else
197# define HUGE_VALF (1.0f / 0.0f) 221# define HUGE_VALF (1.0f / 0.0f)
198# endif 222# endif
199#endif 223#endif
200 224
201/* HUGE_VAL is a 'double' Infinity. */ 225/* HUGE_VAL is a 'double' Infinity. */
202#ifndef HUGE_VAL 226#if !defined HUGE_VAL || (defined __FreeBSD__ && __FreeBSD__ < 6) || defined _AIX
227# undef HUGE_VAL
203# if defined _MSC_VER 228# if defined _MSC_VER
204/* The Microsoft MSVC 9 compiler chokes on the expression 1.0 / 0.0. */ 229/* The Microsoft MSVC 9 compiler chokes on the expression 1.0 / 0.0. */
205# define HUGE_VAL (1e250 * 1e250) 230# define HUGE_VAL (1e250 * 1e250)
231# elif defined __GNUC__ || defined __clang__
232# define HUGE_VAL (__builtin_inf ())
206# else 233# else
207# define HUGE_VAL (1.0 / 0.0) 234# define HUGE_VAL (1.0 / 0.0)
208# endif 235# endif
209#endif 236#endif
210 237
211/* HUGE_VALL is a 'long double' Infinity. */ 238/* HUGE_VALL is a 'long double' Infinity. */
212#ifndef HUGE_VALL 239#if !defined HUGE_VALL || (defined __FreeBSD__ && __FreeBSD__ < 6) || defined _AIX
240# undef HUGE_VALL
213# if defined _MSC_VER 241# if defined _MSC_VER
214/* The Microsoft MSVC 9 compiler chokes on the expression 1.0L / 0.0L. */ 242/* The Microsoft MSVC 9 compiler chokes on the expression 1.0L / 0.0L. */
215# define HUGE_VALL (1e250L * 1e250L) 243# define HUGE_VALL (1e250L * 1e250L)
244# elif defined __GNUC__ || defined __clang__
245# define HUGE_VALL (__builtin_infl ())
216# else 246# else
217# define HUGE_VALL (1.0L / 0.0L) 247# define HUGE_VALL (1.0L / 0.0L)
218# endif 248# endif
219#endif 249#endif
220 250
221 251
222#if defined FP_ILOGB0 && defined FP_ILOGBNAN 252#if !(defined FP_ILOGB0 && defined FP_ILOGBNAN)
223 /* Ensure FP_ILOGB0 and FP_ILOGBNAN are correct. */
224# if defined __HAIKU__
225 /* Haiku: match what ilogb() does */
226# undef FP_ILOGB0
227# undef FP_ILOGBNAN
228# define FP_ILOGB0 (- 2147483647 - 1) /* INT_MIN */
229# define FP_ILOGBNAN (- 2147483647 - 1) /* INT_MIN */
230# endif
231#else
232 /* Ensure FP_ILOGB0 and FP_ILOGBNAN are defined. */ 253 /* Ensure FP_ILOGB0 and FP_ILOGBNAN are defined. */
233# if defined __NetBSD__ || defined __sgi 254# if defined __NetBSD__ || defined __sgi
234 /* NetBSD, IRIX 6.5: match what ilogb() does */ 255 /* NetBSD, IRIX 6.5: match what ilogb() does */
@@ -256,12 +277,12 @@ _NaN ()
256# undef acosf 277# undef acosf
257# define acosf rpl_acosf 278# define acosf rpl_acosf
258# endif 279# endif
259_GL_FUNCDECL_RPL (acosf, float, (float x)); 280_GL_FUNCDECL_RPL (acosf, float, (float x), );
260_GL_CXXALIAS_RPL (acosf, float, (float x)); 281_GL_CXXALIAS_RPL (acosf, float, (float x));
261# else 282# else
262# if !@HAVE_ACOSF@ 283# if !@HAVE_ACOSF@
263# undef acosf 284# undef acosf
264_GL_FUNCDECL_SYS (acosf, float, (float x)); 285_GL_FUNCDECL_SYS (acosf, float, (float x), );
265# endif 286# endif
266_GL_CXXALIAS_SYS (acosf, float, (float x)); 287_GL_CXXALIAS_SYS (acosf, float, (float x));
267# endif 288# endif
@@ -277,7 +298,7 @@ _GL_WARN_ON_USE (acosf, "acosf is unportable - "
277#if @GNULIB_ACOSL@ 298#if @GNULIB_ACOSL@
278# if !@HAVE_ACOSL@ || !@HAVE_DECL_ACOSL@ 299# if !@HAVE_ACOSL@ || !@HAVE_DECL_ACOSL@
279# undef acosl 300# undef acosl
280_GL_FUNCDECL_SYS (acosl, long double, (long double x)); 301_GL_FUNCDECL_SYS (acosl, long double, (long double x), );
281# endif 302# endif
282_GL_CXXALIAS_SYS (acosl, long double, (long double x)); 303_GL_CXXALIAS_SYS (acosl, long double, (long double x));
283# if __GLIBC__ >= 2 304# if __GLIBC__ >= 2
@@ -298,12 +319,12 @@ _GL_WARN_ON_USE (acosl, "acosl is unportable - "
298# undef asinf 319# undef asinf
299# define asinf rpl_asinf 320# define asinf rpl_asinf
300# endif 321# endif
301_GL_FUNCDECL_RPL (asinf, float, (float x)); 322_GL_FUNCDECL_RPL (asinf, float, (float x), );
302_GL_CXXALIAS_RPL (asinf, float, (float x)); 323_GL_CXXALIAS_RPL (asinf, float, (float x));
303# else 324# else
304# if !@HAVE_ASINF@ 325# if !@HAVE_ASINF@
305# undef asinf 326# undef asinf
306_GL_FUNCDECL_SYS (asinf, float, (float x)); 327_GL_FUNCDECL_SYS (asinf, float, (float x), );
307# endif 328# endif
308_GL_CXXALIAS_SYS (asinf, float, (float x)); 329_GL_CXXALIAS_SYS (asinf, float, (float x));
309# endif 330# endif
@@ -319,7 +340,7 @@ _GL_WARN_ON_USE (asinf, "asinf is unportable - "
319#if @GNULIB_ASINL@ 340#if @GNULIB_ASINL@
320# if !@HAVE_ASINL@ || !@HAVE_DECL_ASINL@ 341# if !@HAVE_ASINL@ || !@HAVE_DECL_ASINL@
321# undef asinl 342# undef asinl
322_GL_FUNCDECL_SYS (asinl, long double, (long double x)); 343_GL_FUNCDECL_SYS (asinl, long double, (long double x), );
323# endif 344# endif
324_GL_CXXALIAS_SYS (asinl, long double, (long double x)); 345_GL_CXXALIAS_SYS (asinl, long double, (long double x));
325# if __GLIBC__ >= 2 346# if __GLIBC__ >= 2
@@ -340,12 +361,12 @@ _GL_WARN_ON_USE (asinl, "asinl is unportable - "
340# undef atanf 361# undef atanf
341# define atanf rpl_atanf 362# define atanf rpl_atanf
342# endif 363# endif
343_GL_FUNCDECL_RPL (atanf, float, (float x)); 364_GL_FUNCDECL_RPL (atanf, float, (float x), );
344_GL_CXXALIAS_RPL (atanf, float, (float x)); 365_GL_CXXALIAS_RPL (atanf, float, (float x));
345# else 366# else
346# if !@HAVE_ATANF@ 367# if !@HAVE_ATANF@
347# undef atanf 368# undef atanf
348_GL_FUNCDECL_SYS (atanf, float, (float x)); 369_GL_FUNCDECL_SYS (atanf, float, (float x), );
349# endif 370# endif
350_GL_CXXALIAS_SYS (atanf, float, (float x)); 371_GL_CXXALIAS_SYS (atanf, float, (float x));
351# endif 372# endif
@@ -361,7 +382,7 @@ _GL_WARN_ON_USE (atanf, "atanf is unportable - "
361#if @GNULIB_ATANL@ 382#if @GNULIB_ATANL@
362# if !@HAVE_ATANL@ || !@HAVE_DECL_ATANL@ 383# if !@HAVE_ATANL@ || !@HAVE_DECL_ATANL@
363# undef atanl 384# undef atanl
364_GL_FUNCDECL_SYS (atanl, long double, (long double x)); 385_GL_FUNCDECL_SYS (atanl, long double, (long double x), );
365# endif 386# endif
366_GL_CXXALIAS_SYS (atanl, long double, (long double x)); 387_GL_CXXALIAS_SYS (atanl, long double, (long double x));
367# if __GLIBC__ >= 2 388# if __GLIBC__ >= 2
@@ -382,12 +403,12 @@ _GL_WARN_ON_USE (atanl, "atanl is unportable - "
382# undef atan2f 403# undef atan2f
383# define atan2f rpl_atan2f 404# define atan2f rpl_atan2f
384# endif 405# endif
385_GL_FUNCDECL_RPL (atan2f, float, (float y, float x)); 406_GL_FUNCDECL_RPL (atan2f, float, (float y, float x), );
386_GL_CXXALIAS_RPL (atan2f, float, (float y, float x)); 407_GL_CXXALIAS_RPL (atan2f, float, (float y, float x));
387# else 408# else
388# if !@HAVE_ATAN2F@ 409# if !@HAVE_ATAN2F@
389# undef atan2f 410# undef atan2f
390_GL_FUNCDECL_SYS (atan2f, float, (float y, float x)); 411_GL_FUNCDECL_SYS (atan2f, float, (float y, float x), );
391# endif 412# endif
392_GL_CXXALIAS_SYS (atan2f, float, (float y, float x)); 413_GL_CXXALIAS_SYS (atan2f, float, (float y, float x));
393# endif 414# endif
@@ -407,11 +428,11 @@ _GL_WARN_ON_USE (atan2f, "atan2f is unportable - "
407# undef cbrtf 428# undef cbrtf
408# define cbrtf rpl_cbrtf 429# define cbrtf rpl_cbrtf
409# endif 430# endif
410_GL_FUNCDECL_RPL (cbrtf, float, (float x)); 431_GL_FUNCDECL_RPL (cbrtf, float, (float x), );
411_GL_CXXALIAS_RPL (cbrtf, float, (float x)); 432_GL_CXXALIAS_RPL (cbrtf, float, (float x));
412# else 433# else
413# if !@HAVE_DECL_CBRTF@ 434# if !@HAVE_DECL_CBRTF@
414_GL_FUNCDECL_SYS (cbrtf, float, (float x)); 435_GL_FUNCDECL_SYS (cbrtf, float, (float x), );
415# endif 436# endif
416_GL_CXXALIAS_SYS (cbrtf, float, (float x)); 437_GL_CXXALIAS_SYS (cbrtf, float, (float x));
417# endif 438# endif
@@ -426,7 +447,7 @@ _GL_WARN_ON_USE (cbrtf, "cbrtf is unportable - "
426 447
427#if @GNULIB_CBRT@ 448#if @GNULIB_CBRT@
428# if !@HAVE_CBRT@ 449# if !@HAVE_CBRT@
429_GL_FUNCDECL_SYS (cbrt, double, (double x)); 450_GL_FUNCDECL_SYS (cbrt, double, (double x), );
430# endif 451# endif
431_GL_CXXALIAS_SYS (cbrt, double, (double x)); 452_GL_CXXALIAS_SYS (cbrt, double, (double x));
432# if __GLIBC__ >= 2 453# if __GLIBC__ >= 2
@@ -446,11 +467,11 @@ _GL_WARN_ON_USE (cbrt, "cbrt is unportable - "
446# undef cbrtl 467# undef cbrtl
447# define cbrtl rpl_cbrtl 468# define cbrtl rpl_cbrtl
448# endif 469# endif
449_GL_FUNCDECL_RPL (cbrtl, long double, (long double x)); 470_GL_FUNCDECL_RPL (cbrtl, long double, (long double x), );
450_GL_CXXALIAS_RPL (cbrtl, long double, (long double x)); 471_GL_CXXALIAS_RPL (cbrtl, long double, (long double x));
451# else 472# else
452# if !@HAVE_DECL_CBRTL@ 473# if !@HAVE_DECL_CBRTL@
453_GL_FUNCDECL_SYS (cbrtl, long double, (long double x)); 474_GL_FUNCDECL_SYS (cbrtl, long double, (long double x), );
454# endif 475# endif
455_GL_CXXALIAS_SYS (cbrtl, long double, (long double x)); 476_GL_CXXALIAS_SYS (cbrtl, long double, (long double x));
456# endif 477# endif
@@ -472,12 +493,12 @@ _GL_WARN_ON_USE (cbrtl, "cbrtl is unportable - "
472# undef ceilf 493# undef ceilf
473# define ceilf rpl_ceilf 494# define ceilf rpl_ceilf
474# endif 495# endif
475_GL_FUNCDECL_RPL (ceilf, float, (float x)); 496_GL_FUNCDECL_RPL (ceilf, float, (float x), );
476_GL_CXXALIAS_RPL (ceilf, float, (float x)); 497_GL_CXXALIAS_RPL (ceilf, float, (float x));
477# else 498# else
478# if !@HAVE_DECL_CEILF@ 499# if !@HAVE_DECL_CEILF@
479# undef ceilf 500# undef ceilf
480_GL_FUNCDECL_SYS (ceilf, float, (float x)); 501_GL_FUNCDECL_SYS (ceilf, float, (float x), );
481# endif 502# endif
482_GL_CXXALIAS_SYS (ceilf, float, (float x)); 503_GL_CXXALIAS_SYS (ceilf, float, (float x));
483# endif 504# endif
@@ -496,7 +517,7 @@ _GL_WARN_ON_USE (ceilf, "ceilf is unportable - "
496# undef ceil 517# undef ceil
497# define ceil rpl_ceil 518# define ceil rpl_ceil
498# endif 519# endif
499_GL_FUNCDECL_RPL (ceil, double, (double x)); 520_GL_FUNCDECL_RPL (ceil, double, (double x), );
500_GL_CXXALIAS_RPL (ceil, double, (double x)); 521_GL_CXXALIAS_RPL (ceil, double, (double x));
501# else 522# else
502_GL_CXXALIAS_SYS (ceil, double, (double x)); 523_GL_CXXALIAS_SYS (ceil, double, (double x));
@@ -512,12 +533,12 @@ _GL_CXXALIASWARN1 (ceil, double, (double x));
512# undef ceill 533# undef ceill
513# define ceill rpl_ceill 534# define ceill rpl_ceill
514# endif 535# endif
515_GL_FUNCDECL_RPL (ceill, long double, (long double x)); 536_GL_FUNCDECL_RPL (ceill, long double, (long double x), );
516_GL_CXXALIAS_RPL (ceill, long double, (long double x)); 537_GL_CXXALIAS_RPL (ceill, long double, (long double x));
517# else 538# else
518# if !@HAVE_DECL_CEILL@ 539# if !@HAVE_DECL_CEILL@
519# undef ceill 540# undef ceill
520_GL_FUNCDECL_SYS (ceill, long double, (long double x)); 541_GL_FUNCDECL_SYS (ceill, long double, (long double x), );
521# endif 542# endif
522_GL_CXXALIAS_SYS (ceill, long double, (long double x)); 543_GL_CXXALIAS_SYS (ceill, long double, (long double x));
523# endif 544# endif
@@ -536,7 +557,7 @@ _GL_WARN_ON_USE (ceill, "ceill is unportable - "
536#if @GNULIB_COPYSIGNF@ 557#if @GNULIB_COPYSIGNF@
537# if !@HAVE_DECL_COPYSIGNF@ 558# if !@HAVE_DECL_COPYSIGNF@
538# undef copysignf 559# undef copysignf
539_GL_FUNCDECL_SYS (copysignf, float, (float x, float y)); 560_GL_FUNCDECL_SYS (copysignf, float, (float x, float y), );
540# endif 561# endif
541_GL_CXXALIAS_SYS (copysignf, float, (float x, float y)); 562_GL_CXXALIAS_SYS (copysignf, float, (float x, float y));
542_GL_CXXALIASWARN (copysignf); 563_GL_CXXALIASWARN (copysignf);
@@ -550,7 +571,7 @@ _GL_WARN_ON_USE (copysignf, "copysignf is unportable - "
550 571
551#if @GNULIB_COPYSIGN@ 572#if @GNULIB_COPYSIGN@
552# if !@HAVE_COPYSIGN@ 573# if !@HAVE_COPYSIGN@
553_GL_FUNCDECL_SYS (copysign, double, (double x, double y)); 574_GL_FUNCDECL_SYS (copysign, double, (double x, double y), );
554# endif 575# endif
555_GL_CXXALIAS_SYS (copysign, double, (double x, double y)); 576_GL_CXXALIAS_SYS (copysign, double, (double x, double y));
556# if __GLIBC__ >= 2 577# if __GLIBC__ >= 2
@@ -566,7 +587,7 @@ _GL_WARN_ON_USE (copysign, "copysign is unportable - "
566 587
567#if @GNULIB_COPYSIGNL@ 588#if @GNULIB_COPYSIGNL@
568# if !@HAVE_COPYSIGNL@ 589# if !@HAVE_COPYSIGNL@
569_GL_FUNCDECL_SYS (copysignl, long double, (long double x, long double y)); 590_GL_FUNCDECL_SYS (copysignl, long double, (long double x, long double y), );
570# endif 591# endif
571_GL_CXXALIAS_SYS (copysignl, long double, (long double x, long double y)); 592_GL_CXXALIAS_SYS (copysignl, long double, (long double x, long double y));
572# if __GLIBC__ >= 2 593# if __GLIBC__ >= 2
@@ -587,12 +608,12 @@ _GL_WARN_ON_USE (copysign, "copysignl is unportable - "
587# undef cosf 608# undef cosf
588# define cosf rpl_cosf 609# define cosf rpl_cosf
589# endif 610# endif
590_GL_FUNCDECL_RPL (cosf, float, (float x)); 611_GL_FUNCDECL_RPL (cosf, float, (float x), );
591_GL_CXXALIAS_RPL (cosf, float, (float x)); 612_GL_CXXALIAS_RPL (cosf, float, (float x));
592# else 613# else
593# if !@HAVE_COSF@ 614# if !@HAVE_COSF@
594# undef cosf 615# undef cosf
595_GL_FUNCDECL_SYS (cosf, float, (float x)); 616_GL_FUNCDECL_SYS (cosf, float, (float x), );
596# endif 617# endif
597_GL_CXXALIAS_SYS (cosf, float, (float x)); 618_GL_CXXALIAS_SYS (cosf, float, (float x));
598# endif 619# endif
@@ -608,7 +629,7 @@ _GL_WARN_ON_USE (cosf, "cosf is unportable - "
608#if @GNULIB_COSL@ 629#if @GNULIB_COSL@
609# if !@HAVE_COSL@ || !@HAVE_DECL_COSL@ 630# if !@HAVE_COSL@ || !@HAVE_DECL_COSL@
610# undef cosl 631# undef cosl
611_GL_FUNCDECL_SYS (cosl, long double, (long double x)); 632_GL_FUNCDECL_SYS (cosl, long double, (long double x), );
612# endif 633# endif
613_GL_CXXALIAS_SYS (cosl, long double, (long double x)); 634_GL_CXXALIAS_SYS (cosl, long double, (long double x));
614# if __GLIBC__ >= 2 635# if __GLIBC__ >= 2
@@ -629,12 +650,12 @@ _GL_WARN_ON_USE (cosl, "cosl is unportable - "
629# undef coshf 650# undef coshf
630# define coshf rpl_coshf 651# define coshf rpl_coshf
631# endif 652# endif
632_GL_FUNCDECL_RPL (coshf, float, (float x)); 653_GL_FUNCDECL_RPL (coshf, float, (float x), );
633_GL_CXXALIAS_RPL (coshf, float, (float x)); 654_GL_CXXALIAS_RPL (coshf, float, (float x));
634# else 655# else
635# if !@HAVE_COSHF@ 656# if !@HAVE_COSHF@
636# undef coshf 657# undef coshf
637_GL_FUNCDECL_SYS (coshf, float, (float x)); 658_GL_FUNCDECL_SYS (coshf, float, (float x), );
638# endif 659# endif
639_GL_CXXALIAS_SYS (coshf, float, (float x)); 660_GL_CXXALIAS_SYS (coshf, float, (float x));
640# endif 661# endif
@@ -654,12 +675,12 @@ _GL_WARN_ON_USE (coshf, "coshf is unportable - "
654# undef expf 675# undef expf
655# define expf rpl_expf 676# define expf rpl_expf
656# endif 677# endif
657_GL_FUNCDECL_RPL (expf, float, (float x)); 678_GL_FUNCDECL_RPL (expf, float, (float x), );
658_GL_CXXALIAS_RPL (expf, float, (float x)); 679_GL_CXXALIAS_RPL (expf, float, (float x));
659# else 680# else
660# if !@HAVE_EXPF@ 681# if !@HAVE_EXPF@
661# undef expf 682# undef expf
662_GL_FUNCDECL_SYS (expf, float, (float x)); 683_GL_FUNCDECL_SYS (expf, float, (float x), );
663# endif 684# endif
664_GL_CXXALIAS_SYS (expf, float, (float x)); 685_GL_CXXALIAS_SYS (expf, float, (float x));
665# endif 686# endif
@@ -678,12 +699,12 @@ _GL_WARN_ON_USE (expf, "expf is unportable - "
678# undef expl 699# undef expl
679# define expl rpl_expl 700# define expl rpl_expl
680# endif 701# endif
681_GL_FUNCDECL_RPL (expl, long double, (long double x)); 702_GL_FUNCDECL_RPL (expl, long double, (long double x), );
682_GL_CXXALIAS_RPL (expl, long double, (long double x)); 703_GL_CXXALIAS_RPL (expl, long double, (long double x));
683# else 704# else
684# if !@HAVE_EXPL@ || !@HAVE_DECL_EXPL@ 705# if !@HAVE_EXPL@ || !@HAVE_DECL_EXPL@
685# undef expl 706# undef expl
686_GL_FUNCDECL_SYS (expl, long double, (long double x)); 707_GL_FUNCDECL_SYS (expl, long double, (long double x), );
687# endif 708# endif
688_GL_CXXALIAS_SYS (expl, long double, (long double x)); 709_GL_CXXALIAS_SYS (expl, long double, (long double x));
689# endif 710# endif
@@ -701,7 +722,7 @@ _GL_WARN_ON_USE (expl, "expl is unportable - "
701 722
702#if @GNULIB_EXP2F@ 723#if @GNULIB_EXP2F@
703# if !@HAVE_DECL_EXP2F@ 724# if !@HAVE_DECL_EXP2F@
704_GL_FUNCDECL_SYS (exp2f, float, (float x)); 725_GL_FUNCDECL_SYS (exp2f, float, (float x), );
705# endif 726# endif
706_GL_CXXALIAS_SYS (exp2f, float, (float x)); 727_GL_CXXALIAS_SYS (exp2f, float, (float x));
707_GL_CXXALIASWARN (exp2f); 728_GL_CXXALIASWARN (exp2f);
@@ -719,11 +740,11 @@ _GL_WARN_ON_USE (exp2f, "exp2f is unportable - "
719# undef exp2 740# undef exp2
720# define exp2 rpl_exp2 741# define exp2 rpl_exp2
721# endif 742# endif
722_GL_FUNCDECL_RPL (exp2, double, (double x)); 743_GL_FUNCDECL_RPL (exp2, double, (double x), );
723_GL_CXXALIAS_RPL (exp2, double, (double x)); 744_GL_CXXALIAS_RPL (exp2, double, (double x));
724# else 745# else
725# if !@HAVE_DECL_EXP2@ 746# if !@HAVE_DECL_EXP2@
726_GL_FUNCDECL_SYS (exp2, double, (double x)); 747_GL_FUNCDECL_SYS (exp2, double, (double x), );
727# endif 748# endif
728_GL_CXXALIAS_SYS (exp2, double, (double x)); 749_GL_CXXALIAS_SYS (exp2, double, (double x));
729# endif 750# endif
@@ -744,12 +765,12 @@ _GL_WARN_ON_USE (exp2, "exp2 is unportable - "
744# undef exp2l 765# undef exp2l
745# define exp2l rpl_exp2l 766# define exp2l rpl_exp2l
746# endif 767# endif
747_GL_FUNCDECL_RPL (exp2l, long double, (long double x)); 768_GL_FUNCDECL_RPL (exp2l, long double, (long double x), );
748_GL_CXXALIAS_RPL (exp2l, long double, (long double x)); 769_GL_CXXALIAS_RPL (exp2l, long double, (long double x));
749# else 770# else
750# if !@HAVE_DECL_EXP2L@ 771# if !@HAVE_DECL_EXP2L@
751# undef exp2l 772# undef exp2l
752_GL_FUNCDECL_SYS (exp2l, long double, (long double x)); 773_GL_FUNCDECL_SYS (exp2l, long double, (long double x), );
753# endif 774# endif
754_GL_CXXALIAS_SYS (exp2l, long double, (long double x)); 775_GL_CXXALIAS_SYS (exp2l, long double, (long double x));
755# endif 776# endif
@@ -771,11 +792,11 @@ _GL_WARN_ON_USE (exp2l, "exp2l is unportable - "
771# undef expm1f 792# undef expm1f
772# define expm1f rpl_expm1f 793# define expm1f rpl_expm1f
773# endif 794# endif
774_GL_FUNCDECL_RPL (expm1f, float, (float x)); 795_GL_FUNCDECL_RPL (expm1f, float, (float x), );
775_GL_CXXALIAS_RPL (expm1f, float, (float x)); 796_GL_CXXALIAS_RPL (expm1f, float, (float x));
776# else 797# else
777# if !@HAVE_EXPM1F@ 798# if !@HAVE_EXPM1F@
778_GL_FUNCDECL_SYS (expm1f, float, (float x)); 799_GL_FUNCDECL_SYS (expm1f, float, (float x), );
779# endif 800# endif
780_GL_CXXALIAS_SYS (expm1f, float, (float x)); 801_GL_CXXALIAS_SYS (expm1f, float, (float x));
781# endif 802# endif
@@ -794,11 +815,11 @@ _GL_WARN_ON_USE (expm1f, "expm1f is unportable - "
794# undef expm1 815# undef expm1
795# define expm1 rpl_expm1 816# define expm1 rpl_expm1
796# endif 817# endif
797_GL_FUNCDECL_RPL (expm1, double, (double x)); 818_GL_FUNCDECL_RPL (expm1, double, (double x), );
798_GL_CXXALIAS_RPL (expm1, double, (double x)); 819_GL_CXXALIAS_RPL (expm1, double, (double x));
799# else 820# else
800# if !@HAVE_EXPM1@ 821# if !@HAVE_EXPM1@
801_GL_FUNCDECL_SYS (expm1, double, (double x)); 822_GL_FUNCDECL_SYS (expm1, double, (double x), );
802# endif 823# endif
803_GL_CXXALIAS_SYS (expm1, double, (double x)); 824_GL_CXXALIAS_SYS (expm1, double, (double x));
804# endif 825# endif
@@ -819,13 +840,13 @@ _GL_WARN_ON_USE (expm1, "expm1 is unportable - "
819# undef expm1l 840# undef expm1l
820# define expm1l rpl_expm1l 841# define expm1l rpl_expm1l
821# endif 842# endif
822_GL_FUNCDECL_RPL (expm1l, long double, (long double x)); 843_GL_FUNCDECL_RPL (expm1l, long double, (long double x), );
823_GL_CXXALIAS_RPL (expm1l, long double, (long double x)); 844_GL_CXXALIAS_RPL (expm1l, long double, (long double x));
824# else 845# else
825# if !@HAVE_DECL_EXPM1L@ 846# if !@HAVE_DECL_EXPM1L@
826# undef expm1l 847# undef expm1l
827# if !(defined __cplusplus && defined _AIX) 848# if !(defined __cplusplus && defined _AIX)
828_GL_FUNCDECL_SYS (expm1l, long double, (long double x)); 849_GL_FUNCDECL_SYS (expm1l, long double, (long double x), );
829# endif 850# endif
830# endif 851# endif
831_GL_CXXALIAS_SYS (expm1l, long double, (long double x)); 852_GL_CXXALIAS_SYS (expm1l, long double, (long double x));
@@ -845,7 +866,7 @@ _GL_WARN_ON_USE (expm1l, "expm1l is unportable - "
845#if @GNULIB_FABSF@ 866#if @GNULIB_FABSF@
846# if !@HAVE_FABSF@ 867# if !@HAVE_FABSF@
847# undef fabsf 868# undef fabsf
848_GL_FUNCDECL_SYS (fabsf, float, (float x)); 869_GL_FUNCDECL_SYS (fabsf, float, (float x), );
849# endif 870# endif
850_GL_CXXALIAS_SYS (fabsf, float, (float x)); 871_GL_CXXALIAS_SYS (fabsf, float, (float x));
851# if __GLIBC__ >= 2 872# if __GLIBC__ >= 2
@@ -865,12 +886,12 @@ _GL_WARN_ON_USE (fabsf, "fabsf is unportable - "
865# undef fabsl 886# undef fabsl
866# define fabsl rpl_fabsl 887# define fabsl rpl_fabsl
867# endif 888# endif
868_GL_FUNCDECL_RPL (fabsl, long double, (long double x)); 889_GL_FUNCDECL_RPL (fabsl, long double, (long double x), );
869_GL_CXXALIAS_RPL (fabsl, long double, (long double x)); 890_GL_CXXALIAS_RPL (fabsl, long double, (long double x));
870# else 891# else
871# if !@HAVE_FABSL@ 892# if !@HAVE_FABSL@
872# undef fabsl 893# undef fabsl
873_GL_FUNCDECL_SYS (fabsl, long double, (long double x)); 894_GL_FUNCDECL_SYS (fabsl, long double, (long double x), );
874# endif 895# endif
875_GL_CXXALIAS_SYS (fabsl, long double, (long double x)); 896_GL_CXXALIAS_SYS (fabsl, long double, (long double x));
876# endif 897# endif
@@ -892,12 +913,12 @@ _GL_WARN_ON_USE (fabsl, "fabsl is unportable - "
892# undef floorf 913# undef floorf
893# define floorf rpl_floorf 914# define floorf rpl_floorf
894# endif 915# endif
895_GL_FUNCDECL_RPL (floorf, float, (float x)); 916_GL_FUNCDECL_RPL (floorf, float, (float x), );
896_GL_CXXALIAS_RPL (floorf, float, (float x)); 917_GL_CXXALIAS_RPL (floorf, float, (float x));
897# else 918# else
898# if !@HAVE_DECL_FLOORF@ 919# if !@HAVE_DECL_FLOORF@
899# undef floorf 920# undef floorf
900_GL_FUNCDECL_SYS (floorf, float, (float x)); 921_GL_FUNCDECL_SYS (floorf, float, (float x), );
901# endif 922# endif
902_GL_CXXALIAS_SYS (floorf, float, (float x)); 923_GL_CXXALIAS_SYS (floorf, float, (float x));
903# endif 924# endif
@@ -916,7 +937,7 @@ _GL_WARN_ON_USE (floorf, "floorf is unportable - "
916# undef floor 937# undef floor
917# define floor rpl_floor 938# define floor rpl_floor
918# endif 939# endif
919_GL_FUNCDECL_RPL (floor, double, (double x)); 940_GL_FUNCDECL_RPL (floor, double, (double x), );
920_GL_CXXALIAS_RPL (floor, double, (double x)); 941_GL_CXXALIAS_RPL (floor, double, (double x));
921# else 942# else
922_GL_CXXALIAS_SYS (floor, double, (double x)); 943_GL_CXXALIAS_SYS (floor, double, (double x));
@@ -932,12 +953,12 @@ _GL_CXXALIASWARN1 (floor, double, (double x));
932# undef floorl 953# undef floorl
933# define floorl rpl_floorl 954# define floorl rpl_floorl
934# endif 955# endif
935_GL_FUNCDECL_RPL (floorl, long double, (long double x)); 956_GL_FUNCDECL_RPL (floorl, long double, (long double x), );
936_GL_CXXALIAS_RPL (floorl, long double, (long double x)); 957_GL_CXXALIAS_RPL (floorl, long double, (long double x));
937# else 958# else
938# if !@HAVE_DECL_FLOORL@ 959# if !@HAVE_DECL_FLOORL@
939# undef floorl 960# undef floorl
940_GL_FUNCDECL_SYS (floorl, long double, (long double x)); 961_GL_FUNCDECL_SYS (floorl, long double, (long double x), );
941# endif 962# endif
942_GL_CXXALIAS_SYS (floorl, long double, (long double x)); 963_GL_CXXALIAS_SYS (floorl, long double, (long double x));
943# endif 964# endif
@@ -959,12 +980,12 @@ _GL_WARN_ON_USE (floorl, "floorl is unportable - "
959# undef fmaf 980# undef fmaf
960# define fmaf rpl_fmaf 981# define fmaf rpl_fmaf
961# endif 982# endif
962_GL_FUNCDECL_RPL (fmaf, float, (float x, float y, float z)); 983_GL_FUNCDECL_RPL (fmaf, float, (float x, float y, float z), );
963_GL_CXXALIAS_RPL (fmaf, float, (float x, float y, float z)); 984_GL_CXXALIAS_RPL (fmaf, float, (float x, float y, float z));
964# else 985# else
965# if !@HAVE_FMAF@ 986# if !@HAVE_FMAF@
966# undef fmaf 987# undef fmaf
967_GL_FUNCDECL_SYS (fmaf, float, (float x, float y, float z)); 988_GL_FUNCDECL_SYS (fmaf, float, (float x, float y, float z), );
968# endif 989# endif
969_GL_CXXALIAS_SYS (fmaf, float, (float x, float y, float z)); 990_GL_CXXALIAS_SYS (fmaf, float, (float x, float y, float z));
970# endif 991# endif
@@ -983,12 +1004,12 @@ _GL_WARN_ON_USE (fmaf, "fmaf is unportable - "
983# undef fma 1004# undef fma
984# define fma rpl_fma 1005# define fma rpl_fma
985# endif 1006# endif
986_GL_FUNCDECL_RPL (fma, double, (double x, double y, double z)); 1007_GL_FUNCDECL_RPL (fma, double, (double x, double y, double z), );
987_GL_CXXALIAS_RPL (fma, double, (double x, double y, double z)); 1008_GL_CXXALIAS_RPL (fma, double, (double x, double y, double z));
988# else 1009# else
989# if !@HAVE_FMA@ 1010# if !@HAVE_FMA@
990# undef fma 1011# undef fma
991_GL_FUNCDECL_SYS (fma, double, (double x, double y, double z)); 1012_GL_FUNCDECL_SYS (fma, double, (double x, double y, double z), );
992# endif 1013# endif
993_GL_CXXALIAS_SYS (fma, double, (double x, double y, double z)); 1014_GL_CXXALIAS_SYS (fma, double, (double x, double y, double z));
994# endif 1015# endif
@@ -1010,7 +1031,7 @@ _GL_WARN_ON_USE (fma, "fma is unportable - "
1010# define fmal rpl_fmal 1031# define fmal rpl_fmal
1011# endif 1032# endif
1012_GL_FUNCDECL_RPL (fmal, long double, 1033_GL_FUNCDECL_RPL (fmal, long double,
1013 (long double x, long double y, long double z)); 1034 (long double x, long double y, long double z), );
1014_GL_CXXALIAS_RPL (fmal, long double, 1035_GL_CXXALIAS_RPL (fmal, long double,
1015 (long double x, long double y, long double z)); 1036 (long double x, long double y, long double z));
1016# else 1037# else
@@ -1018,7 +1039,7 @@ _GL_CXXALIAS_RPL (fmal, long double,
1018# undef fmal 1039# undef fmal
1019# if !(defined __cplusplus && defined _AIX) 1040# if !(defined __cplusplus && defined _AIX)
1020_GL_FUNCDECL_SYS (fmal, long double, 1041_GL_FUNCDECL_SYS (fmal, long double,
1021 (long double x, long double y, long double z)); 1042 (long double x, long double y, long double z), );
1022# endif 1043# endif
1023# endif 1044# endif
1024_GL_CXXALIAS_SYS (fmal, long double, 1045_GL_CXXALIAS_SYS (fmal, long double,
@@ -1042,12 +1063,12 @@ _GL_WARN_ON_USE (fmal, "fmal is unportable - "
1042# undef fmodf 1063# undef fmodf
1043# define fmodf rpl_fmodf 1064# define fmodf rpl_fmodf
1044# endif 1065# endif
1045_GL_FUNCDECL_RPL (fmodf, float, (float x, float y)); 1066_GL_FUNCDECL_RPL (fmodf, float, (float x, float y), );
1046_GL_CXXALIAS_RPL (fmodf, float, (float x, float y)); 1067_GL_CXXALIAS_RPL (fmodf, float, (float x, float y));
1047# else 1068# else
1048# if !@HAVE_FMODF@ 1069# if !@HAVE_FMODF@
1049# undef fmodf 1070# undef fmodf
1050_GL_FUNCDECL_SYS (fmodf, float, (float x, float y)); 1071_GL_FUNCDECL_SYS (fmodf, float, (float x, float y), );
1051# endif 1072# endif
1052_GL_CXXALIAS_SYS (fmodf, float, (float x, float y)); 1073_GL_CXXALIAS_SYS (fmodf, float, (float x, float y));
1053# endif 1074# endif
@@ -1066,7 +1087,7 @@ _GL_WARN_ON_USE (fmodf, "fmodf is unportable - "
1066# undef fmod 1087# undef fmod
1067# define fmod rpl_fmod 1088# define fmod rpl_fmod
1068# endif 1089# endif
1069_GL_FUNCDECL_RPL (fmod, double, (double x, double y)); 1090_GL_FUNCDECL_RPL (fmod, double, (double x, double y), );
1070_GL_CXXALIAS_RPL (fmod, double, (double x, double y)); 1091_GL_CXXALIAS_RPL (fmod, double, (double x, double y));
1071# else 1092# else
1072_GL_CXXALIAS_SYS (fmod, double, (double x, double y)); 1093_GL_CXXALIAS_SYS (fmod, double, (double x, double y));
@@ -1088,12 +1109,12 @@ _GL_WARN_ON_USE (fmod, "fmod has portability problems - "
1088# undef fmodl 1109# undef fmodl
1089# define fmodl rpl_fmodl 1110# define fmodl rpl_fmodl
1090# endif 1111# endif
1091_GL_FUNCDECL_RPL (fmodl, long double, (long double x, long double y)); 1112_GL_FUNCDECL_RPL (fmodl, long double, (long double x, long double y), );
1092_GL_CXXALIAS_RPL (fmodl, long double, (long double x, long double y)); 1113_GL_CXXALIAS_RPL (fmodl, long double, (long double x, long double y));
1093# else 1114# else
1094# if !@HAVE_FMODL@ 1115# if !@HAVE_FMODL@
1095# undef fmodl 1116# undef fmodl
1096_GL_FUNCDECL_SYS (fmodl, long double, (long double x, long double y)); 1117_GL_FUNCDECL_SYS (fmodl, long double, (long double x, long double y), );
1097# endif 1118# endif
1098_GL_CXXALIAS_SYS (fmodl, long double, (long double x, long double y)); 1119_GL_CXXALIAS_SYS (fmodl, long double, (long double x, long double y));
1099# endif 1120# endif
@@ -1122,12 +1143,12 @@ _GL_WARN_ON_USE (fmodl, "fmodl is unportable - "
1122# undef frexpf 1143# undef frexpf
1123# define frexpf rpl_frexpf 1144# define frexpf rpl_frexpf
1124# endif 1145# endif
1125_GL_FUNCDECL_RPL (frexpf, float, (float x, int *expptr) _GL_ARG_NONNULL ((2))); 1146_GL_FUNCDECL_RPL (frexpf, float, (float x, int *expptr), _GL_ARG_NONNULL ((2)));
1126_GL_CXXALIAS_RPL (frexpf, float, (float x, int *expptr)); 1147_GL_CXXALIAS_RPL (frexpf, float, (float x, int *expptr));
1127# else 1148# else
1128# if !@HAVE_FREXPF@ 1149# if !@HAVE_FREXPF@
1129# undef frexpf 1150# undef frexpf
1130_GL_FUNCDECL_SYS (frexpf, float, (float x, int *expptr) _GL_ARG_NONNULL ((2))); 1151_GL_FUNCDECL_SYS (frexpf, float, (float x, int *expptr), _GL_ARG_NONNULL ((2)));
1131# endif 1152# endif
1132_GL_CXXALIAS_SYS (frexpf, float, (float x, int *expptr)); 1153_GL_CXXALIAS_SYS (frexpf, float, (float x, int *expptr));
1133# endif 1154# endif
@@ -1155,7 +1176,8 @@ _GL_WARN_ON_USE (frexpf, "frexpf is unportable - "
1155# undef frexp 1176# undef frexp
1156# define frexp rpl_frexp 1177# define frexp rpl_frexp
1157# endif 1178# endif
1158_GL_FUNCDECL_RPL (frexp, double, (double x, int *expptr) _GL_ARG_NONNULL ((2))); 1179_GL_FUNCDECL_RPL (frexp, double, (double x, int *expptr),
1180 _GL_ARG_NONNULL ((2)));
1159_GL_CXXALIAS_RPL (frexp, double, (double x, int *expptr)); 1181_GL_CXXALIAS_RPL (frexp, double, (double x, int *expptr));
1160# else 1182# else
1161_GL_CXXALIAS_SYS (frexp, double, (double x, int *expptr)); 1183_GL_CXXALIAS_SYS (frexp, double, (double x, int *expptr));
@@ -1166,8 +1188,10 @@ _GL_CXXALIASWARN1 (frexp, double, (double x, int *expptr));
1166#elif defined GNULIB_POSIXCHECK 1188#elif defined GNULIB_POSIXCHECK
1167# undef frexp 1189# undef frexp
1168/* Assume frexp is always declared. */ 1190/* Assume frexp is always declared. */
1169_GL_WARN_ON_USE (frexp, "frexp is unportable - " 1191_GL_WARN_ON_USE_CXX (frexp,
1170 "use gnulib module frexp for portability"); 1192 double, double, (double, int *),
1193 "frexp is unportable - "
1194 "use gnulib module frexp for portability");
1171#endif 1195#endif
1172 1196
1173/* Write x as 1197/* Write x as
@@ -1183,12 +1207,12 @@ _GL_WARN_ON_USE (frexp, "frexp is unportable - "
1183# define frexpl rpl_frexpl 1207# define frexpl rpl_frexpl
1184# endif 1208# endif
1185_GL_FUNCDECL_RPL (frexpl, long double, 1209_GL_FUNCDECL_RPL (frexpl, long double,
1186 (long double x, int *expptr) _GL_ARG_NONNULL ((2))); 1210 (long double x, int *expptr), _GL_ARG_NONNULL ((2)));
1187_GL_CXXALIAS_RPL (frexpl, long double, (long double x, int *expptr)); 1211_GL_CXXALIAS_RPL (frexpl, long double, (long double x, int *expptr));
1188#else 1212#else
1189# if !@HAVE_DECL_FREXPL@ 1213# if !@HAVE_DECL_FREXPL@
1190_GL_FUNCDECL_SYS (frexpl, long double, 1214_GL_FUNCDECL_SYS (frexpl, long double,
1191 (long double x, int *expptr) _GL_ARG_NONNULL ((2))); 1215 (long double x, int *expptr), _GL_ARG_NONNULL ((2)));
1192# endif 1216# endif
1193# if @GNULIB_FREXPL@ 1217# if @GNULIB_FREXPL@
1194_GL_CXXALIAS_SYS (frexpl, long double, (long double x, int *expptr)); 1218_GL_CXXALIAS_SYS (frexpl, long double, (long double x, int *expptr));
@@ -1215,11 +1239,11 @@ _GL_WARN_ON_USE (frexpl, "frexpl is unportable - "
1215# undef hypotf 1239# undef hypotf
1216# define hypotf rpl_hypotf 1240# define hypotf rpl_hypotf
1217# endif 1241# endif
1218_GL_FUNCDECL_RPL (hypotf, float, (float x, float y)); 1242_GL_FUNCDECL_RPL (hypotf, float, (float x, float y), );
1219_GL_CXXALIAS_RPL (hypotf, float, (float x, float y)); 1243_GL_CXXALIAS_RPL (hypotf, float, (float x, float y));
1220# else 1244# else
1221# if !@HAVE_HYPOTF@ 1245# if !@HAVE_HYPOTF@
1222_GL_FUNCDECL_SYS (hypotf, float, (float x, float y)); 1246_GL_FUNCDECL_SYS (hypotf, float, (float x, float y), );
1223# endif 1247# endif
1224_GL_CXXALIAS_SYS (hypotf, float, (float x, float y)); 1248_GL_CXXALIAS_SYS (hypotf, float, (float x, float y));
1225# endif 1249# endif
@@ -1241,7 +1265,7 @@ _GL_WARN_ON_USE (hypotf, "hypotf is unportable - "
1241# undef hypot 1265# undef hypot
1242# define hypot rpl_hypot 1266# define hypot rpl_hypot
1243# endif 1267# endif
1244_GL_FUNCDECL_RPL (hypot, double, (double x, double y)); 1268_GL_FUNCDECL_RPL (hypot, double, (double x, double y), );
1245_GL_CXXALIAS_RPL (hypot, double, (double x, double y)); 1269_GL_CXXALIAS_RPL (hypot, double, (double x, double y));
1246# else 1270# else
1247_GL_CXXALIAS_SYS (hypot, double, (double x, double y)); 1271_GL_CXXALIAS_SYS (hypot, double, (double x, double y));
@@ -1264,11 +1288,11 @@ _GL_WARN_ON_USE (hypotf, "hypot has portability problems - "
1264# undef hypotl 1288# undef hypotl
1265# define hypotl rpl_hypotl 1289# define hypotl rpl_hypotl
1266# endif 1290# endif
1267_GL_FUNCDECL_RPL (hypotl, long double, (long double x, long double y)); 1291_GL_FUNCDECL_RPL (hypotl, long double, (long double x, long double y), );
1268_GL_CXXALIAS_RPL (hypotl, long double, (long double x, long double y)); 1292_GL_CXXALIAS_RPL (hypotl, long double, (long double x, long double y));
1269# else 1293# else
1270# if !@HAVE_HYPOTL@ 1294# if !@HAVE_HYPOTL@
1271_GL_FUNCDECL_SYS (hypotl, long double, (long double x, long double y)); 1295_GL_FUNCDECL_SYS (hypotl, long double, (long double x, long double y), );
1272# endif 1296# endif
1273_GL_CXXALIAS_SYS (hypotl, long double, (long double x, long double y)); 1297_GL_CXXALIAS_SYS (hypotl, long double, (long double x, long double y));
1274# endif 1298# endif
@@ -1290,11 +1314,11 @@ _GL_WARN_ON_USE (hypotl, "hypotl is unportable - "
1290# undef ilogbf 1314# undef ilogbf
1291# define ilogbf rpl_ilogbf 1315# define ilogbf rpl_ilogbf
1292# endif 1316# endif
1293_GL_FUNCDECL_RPL (ilogbf, int, (float x)); 1317_GL_FUNCDECL_RPL (ilogbf, int, (float x), );
1294_GL_CXXALIAS_RPL (ilogbf, int, (float x)); 1318_GL_CXXALIAS_RPL (ilogbf, int, (float x));
1295# else 1319# else
1296# if !@HAVE_ILOGBF@ 1320# if !@HAVE_ILOGBF@
1297_GL_FUNCDECL_SYS (ilogbf, int, (float x)); 1321_GL_FUNCDECL_SYS (ilogbf, int, (float x), );
1298# endif 1322# endif
1299_GL_CXXALIAS_SYS (ilogbf, int, (float x)); 1323_GL_CXXALIAS_SYS (ilogbf, int, (float x));
1300# endif 1324# endif
@@ -1313,11 +1337,11 @@ _GL_WARN_ON_USE (ilogbf, "ilogbf is unportable - "
1313# undef ilogb 1337# undef ilogb
1314# define ilogb rpl_ilogb 1338# define ilogb rpl_ilogb
1315# endif 1339# endif
1316_GL_FUNCDECL_RPL (ilogb, int, (double x)); 1340_GL_FUNCDECL_RPL (ilogb, int, (double x), );
1317_GL_CXXALIAS_RPL (ilogb, int, (double x)); 1341_GL_CXXALIAS_RPL (ilogb, int, (double x));
1318# else 1342# else
1319# if !@HAVE_ILOGB@ 1343# if !@HAVE_ILOGB@
1320_GL_FUNCDECL_SYS (ilogb, int, (double x)); 1344_GL_FUNCDECL_SYS (ilogb, int, (double x), );
1321# endif 1345# endif
1322_GL_CXXALIAS_SYS (ilogb, int, (double x)); 1346_GL_CXXALIAS_SYS (ilogb, int, (double x));
1323# endif 1347# endif
@@ -1338,12 +1362,12 @@ _GL_WARN_ON_USE (ilogb, "ilogb is unportable - "
1338# undef ilogbl 1362# undef ilogbl
1339# define ilogbl rpl_ilogbl 1363# define ilogbl rpl_ilogbl
1340# endif 1364# endif
1341_GL_FUNCDECL_RPL (ilogbl, int, (long double x)); 1365_GL_FUNCDECL_RPL (ilogbl, int, (long double x), );
1342_GL_CXXALIAS_RPL (ilogbl, int, (long double x)); 1366_GL_CXXALIAS_RPL (ilogbl, int, (long double x));
1343# else 1367# else
1344# if !@HAVE_ILOGBL@ 1368# if !@HAVE_ILOGBL@
1345# undef ilogbl 1369# undef ilogbl
1346_GL_FUNCDECL_SYS (ilogbl, int, (long double x)); 1370_GL_FUNCDECL_SYS (ilogbl, int, (long double x), );
1347# endif 1371# endif
1348_GL_CXXALIAS_SYS (ilogbl, int, (long double x)); 1372_GL_CXXALIAS_SYS (ilogbl, int, (long double x));
1349# endif 1373# endif
@@ -1412,7 +1436,7 @@ _GL_CXXALIASWARN (jn);
1412#if @GNULIB_LDEXPF@ 1436#if @GNULIB_LDEXPF@
1413# if !@HAVE_LDEXPF@ 1437# if !@HAVE_LDEXPF@
1414# undef ldexpf 1438# undef ldexpf
1415_GL_FUNCDECL_SYS (ldexpf, float, (float x, int exp)); 1439_GL_FUNCDECL_SYS (ldexpf, float, (float x, int exp), );
1416# endif 1440# endif
1417_GL_CXXALIAS_SYS (ldexpf, float, (float x, int exp)); 1441_GL_CXXALIAS_SYS (ldexpf, float, (float x, int exp));
1418# if __GLIBC__ >= 2 1442# if __GLIBC__ >= 2
@@ -1427,16 +1451,41 @@ _GL_WARN_ON_USE (ldexpf, "ldexpf is unportable - "
1427#endif 1451#endif
1428 1452
1429/* Return x * 2^exp. */ 1453/* Return x * 2^exp. */
1454#if @GNULIB_LDEXP@
1455# if @REPLACE_LDEXP@
1456# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1457# undef ldexp
1458# define ldexp rpl_ldexp
1459# endif
1460_GL_FUNCDECL_RPL (ldexp, double, (double x, int exp), );
1461_GL_CXXALIAS_RPL (ldexp, double, (double x, int exp));
1462# else
1463/* Assume ldexp is always declared. */
1464_GL_CXXALIAS_SYS (ldexp, double, (double x, int exp));
1465# endif
1466# if __GLIBC__ >= 2
1467_GL_CXXALIASWARN1 (ldexp, double, (double x, int exp));
1468# endif
1469#elif defined GNULIB_POSIXCHECK
1470# undef ldexp
1471/* Assume ldexp is always declared. */
1472_GL_WARN_ON_USE_CXX (ldexp,
1473 double, double, (double, int),
1474 "ldexp is unportable - "
1475 "use gnulib module ldexp for portability");
1476#endif
1477
1478/* Return x * 2^exp. */
1430#if @GNULIB_LDEXPL@ && @REPLACE_LDEXPL@ 1479#if @GNULIB_LDEXPL@ && @REPLACE_LDEXPL@
1431# if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1480# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1432# undef ldexpl 1481# undef ldexpl
1433# define ldexpl rpl_ldexpl 1482# define ldexpl rpl_ldexpl
1434# endif 1483# endif
1435_GL_FUNCDECL_RPL (ldexpl, long double, (long double x, int exp)); 1484_GL_FUNCDECL_RPL (ldexpl, long double, (long double x, int exp), );
1436_GL_CXXALIAS_RPL (ldexpl, long double, (long double x, int exp)); 1485_GL_CXXALIAS_RPL (ldexpl, long double, (long double x, int exp));
1437#else 1486#else
1438# if !@HAVE_DECL_LDEXPL@ 1487# if !@HAVE_DECL_LDEXPL@
1439_GL_FUNCDECL_SYS (ldexpl, long double, (long double x, int exp)); 1488_GL_FUNCDECL_SYS (ldexpl, long double, (long double x, int exp), );
1440# endif 1489# endif
1441# if @GNULIB_LDEXPL@ 1490# if @GNULIB_LDEXPL@
1442_GL_CXXALIAS_SYS (ldexpl, long double, (long double x, int exp)); 1491_GL_CXXALIAS_SYS (ldexpl, long double, (long double x, int exp));
@@ -1462,12 +1511,12 @@ _GL_WARN_ON_USE (ldexpl, "ldexpl is unportable - "
1462# undef logf 1511# undef logf
1463# define logf rpl_logf 1512# define logf rpl_logf
1464# endif 1513# endif
1465_GL_FUNCDECL_RPL (logf, float, (float x)); 1514_GL_FUNCDECL_RPL (logf, float, (float x), );
1466_GL_CXXALIAS_RPL (logf, float, (float x)); 1515_GL_CXXALIAS_RPL (logf, float, (float x));
1467# else 1516# else
1468# if !@HAVE_LOGF@ 1517# if !@HAVE_LOGF@
1469# undef logf 1518# undef logf
1470_GL_FUNCDECL_SYS (logf, float, (float x)); 1519_GL_FUNCDECL_SYS (logf, float, (float x), );
1471# endif 1520# endif
1472_GL_CXXALIAS_SYS (logf, float, (float x)); 1521_GL_CXXALIAS_SYS (logf, float, (float x));
1473# endif 1522# endif
@@ -1486,7 +1535,7 @@ _GL_WARN_ON_USE (logf, "logf is unportable - "
1486# undef log 1535# undef log
1487# define log rpl_log 1536# define log rpl_log
1488# endif 1537# endif
1489_GL_FUNCDECL_RPL (log, double, (double x)); 1538_GL_FUNCDECL_RPL (log, double, (double x), );
1490_GL_CXXALIAS_RPL (log, double, (double x)); 1539_GL_CXXALIAS_RPL (log, double, (double x));
1491# else 1540# else
1492_GL_CXXALIAS_SYS (log, double, (double x)); 1541_GL_CXXALIAS_SYS (log, double, (double x));
@@ -1508,12 +1557,12 @@ _GL_WARN_ON_USE (log, "log has portability problems - "
1508# undef logl 1557# undef logl
1509# define logl rpl_logl 1558# define logl rpl_logl
1510# endif 1559# endif
1511_GL_FUNCDECL_RPL (logl, long double, (long double x)); 1560_GL_FUNCDECL_RPL (logl, long double, (long double x), );
1512_GL_CXXALIAS_RPL (logl, long double, (long double x)); 1561_GL_CXXALIAS_RPL (logl, long double, (long double x));
1513# else 1562# else
1514# if !@HAVE_LOGL@ || !@HAVE_DECL_LOGL@ 1563# if !@HAVE_LOGL@ || !@HAVE_DECL_LOGL@
1515# undef logl 1564# undef logl
1516_GL_FUNCDECL_SYS (logl, long double, (long double x)); 1565_GL_FUNCDECL_SYS (logl, long double, (long double x), );
1517# endif 1566# endif
1518_GL_CXXALIAS_SYS (logl, long double, (long double x)); 1567_GL_CXXALIAS_SYS (logl, long double, (long double x));
1519# endif 1568# endif
@@ -1535,12 +1584,12 @@ _GL_WARN_ON_USE (logl, "logl is unportable - "
1535# undef log10f 1584# undef log10f
1536# define log10f rpl_log10f 1585# define log10f rpl_log10f
1537# endif 1586# endif
1538_GL_FUNCDECL_RPL (log10f, float, (float x)); 1587_GL_FUNCDECL_RPL (log10f, float, (float x), );
1539_GL_CXXALIAS_RPL (log10f, float, (float x)); 1588_GL_CXXALIAS_RPL (log10f, float, (float x));
1540# else 1589# else
1541# if !@HAVE_LOG10F@ 1590# if !@HAVE_LOG10F@
1542# undef log10f 1591# undef log10f
1543_GL_FUNCDECL_SYS (log10f, float, (float x)); 1592_GL_FUNCDECL_SYS (log10f, float, (float x), );
1544# endif 1593# endif
1545_GL_CXXALIAS_SYS (log10f, float, (float x)); 1594_GL_CXXALIAS_SYS (log10f, float, (float x));
1546# endif 1595# endif
@@ -1559,7 +1608,7 @@ _GL_WARN_ON_USE (log10f, "log10f is unportable - "
1559# undef log10 1608# undef log10
1560# define log10 rpl_log10 1609# define log10 rpl_log10
1561# endif 1610# endif
1562_GL_FUNCDECL_RPL (log10, double, (double x)); 1611_GL_FUNCDECL_RPL (log10, double, (double x), );
1563_GL_CXXALIAS_RPL (log10, double, (double x)); 1612_GL_CXXALIAS_RPL (log10, double, (double x));
1564# else 1613# else
1565_GL_CXXALIAS_SYS (log10, double, (double x)); 1614_GL_CXXALIAS_SYS (log10, double, (double x));
@@ -1581,12 +1630,12 @@ _GL_WARN_ON_USE (log10, "log10 has portability problems - "
1581# undef log10l 1630# undef log10l
1582# define log10l rpl_log10l 1631# define log10l rpl_log10l
1583# endif 1632# endif
1584_GL_FUNCDECL_RPL (log10l, long double, (long double x)); 1633_GL_FUNCDECL_RPL (log10l, long double, (long double x), );
1585_GL_CXXALIAS_RPL (log10l, long double, (long double x)); 1634_GL_CXXALIAS_RPL (log10l, long double, (long double x));
1586# else 1635# else
1587# if !@HAVE_LOG10L@ || !@HAVE_DECL_LOG10L@ 1636# if !@HAVE_LOG10L@ || !@HAVE_DECL_LOG10L@
1588# undef log10l 1637# undef log10l
1589_GL_FUNCDECL_SYS (log10l, long double, (long double x)); 1638_GL_FUNCDECL_SYS (log10l, long double, (long double x), );
1590# endif 1639# endif
1591_GL_CXXALIAS_SYS (log10l, long double, (long double x)); 1640_GL_CXXALIAS_SYS (log10l, long double, (long double x));
1592# endif 1641# endif
@@ -1608,11 +1657,11 @@ _GL_WARN_ON_USE (log10l, "log10l is unportable - "
1608# undef log1pf 1657# undef log1pf
1609# define log1pf rpl_log1pf 1658# define log1pf rpl_log1pf
1610# endif 1659# endif
1611_GL_FUNCDECL_RPL (log1pf, float, (float x)); 1660_GL_FUNCDECL_RPL (log1pf, float, (float x), );
1612_GL_CXXALIAS_RPL (log1pf, float, (float x)); 1661_GL_CXXALIAS_RPL (log1pf, float, (float x));
1613# else 1662# else
1614# if !@HAVE_LOG1PF@ 1663# if !@HAVE_LOG1PF@
1615_GL_FUNCDECL_SYS (log1pf, float, (float x)); 1664_GL_FUNCDECL_SYS (log1pf, float, (float x), );
1616# endif 1665# endif
1617_GL_CXXALIAS_SYS (log1pf, float, (float x)); 1666_GL_CXXALIAS_SYS (log1pf, float, (float x));
1618# endif 1667# endif
@@ -1631,11 +1680,11 @@ _GL_WARN_ON_USE (log1pf, "log1pf is unportable - "
1631# undef log1p 1680# undef log1p
1632# define log1p rpl_log1p 1681# define log1p rpl_log1p
1633# endif 1682# endif
1634_GL_FUNCDECL_RPL (log1p, double, (double x)); 1683_GL_FUNCDECL_RPL (log1p, double, (double x), );
1635_GL_CXXALIAS_RPL (log1p, double, (double x)); 1684_GL_CXXALIAS_RPL (log1p, double, (double x));
1636# else 1685# else
1637# if !@HAVE_LOG1P@ 1686# if !@HAVE_LOG1P@
1638_GL_FUNCDECL_SYS (log1p, double, (double x)); 1687_GL_FUNCDECL_SYS (log1p, double, (double x), );
1639# endif 1688# endif
1640_GL_CXXALIAS_SYS (log1p, double, (double x)); 1689_GL_CXXALIAS_SYS (log1p, double, (double x));
1641# endif 1690# endif
@@ -1656,11 +1705,11 @@ _GL_WARN_ON_USE (log1p, "log1p has portability problems - "
1656# undef log1pl 1705# undef log1pl
1657# define log1pl rpl_log1pl 1706# define log1pl rpl_log1pl
1658# endif 1707# endif
1659_GL_FUNCDECL_RPL (log1pl, long double, (long double x)); 1708_GL_FUNCDECL_RPL (log1pl, long double, (long double x), );
1660_GL_CXXALIAS_RPL (log1pl, long double, (long double x)); 1709_GL_CXXALIAS_RPL (log1pl, long double, (long double x));
1661# else 1710# else
1662# if !@HAVE_LOG1PL@ 1711# if !@HAVE_LOG1PL@
1663_GL_FUNCDECL_SYS (log1pl, long double, (long double x)); 1712_GL_FUNCDECL_SYS (log1pl, long double, (long double x), );
1664# endif 1713# endif
1665_GL_CXXALIAS_SYS (log1pl, long double, (long double x)); 1714_GL_CXXALIAS_SYS (log1pl, long double, (long double x));
1666# endif 1715# endif
@@ -1682,16 +1731,18 @@ _GL_WARN_ON_USE (log1pl, "log1pl has portability problems - "
1682# undef log2f 1731# undef log2f
1683# define log2f rpl_log2f 1732# define log2f rpl_log2f
1684# endif 1733# endif
1685_GL_FUNCDECL_RPL (log2f, float, (float x)); 1734_GL_FUNCDECL_RPL (log2f, float, (float x), );
1686_GL_CXXALIAS_RPL (log2f, float, (float x)); 1735_GL_CXXALIAS_RPL (log2f, float, (float x));
1687# else 1736# else
1688# if !@HAVE_DECL_LOG2F@ 1737# if !@HAVE_DECL_LOG2F@
1689# undef log2f 1738# undef log2f
1690_GL_FUNCDECL_SYS (log2f, float, (float x)); 1739_GL_FUNCDECL_SYS (log2f, float, (float x), );
1691# endif 1740# endif
1692_GL_CXXALIAS_SYS (log2f, float, (float x)); 1741_GL_CXXALIAS_SYS (log2f, float, (float x));
1693# endif 1742# endif
1743# if __GLIBC__ >= 2
1694_GL_CXXALIASWARN (log2f); 1744_GL_CXXALIASWARN (log2f);
1745# endif
1695#elif defined GNULIB_POSIXCHECK 1746#elif defined GNULIB_POSIXCHECK
1696# undef log2f 1747# undef log2f
1697# if HAVE_RAW_DECL_LOG2F 1748# if HAVE_RAW_DECL_LOG2F
@@ -1706,12 +1757,12 @@ _GL_WARN_ON_USE (log2f, "log2f is unportable - "
1706# undef log2 1757# undef log2
1707# define log2 rpl_log2 1758# define log2 rpl_log2
1708# endif 1759# endif
1709_GL_FUNCDECL_RPL (log2, double, (double x)); 1760_GL_FUNCDECL_RPL (log2, double, (double x), );
1710_GL_CXXALIAS_RPL (log2, double, (double x)); 1761_GL_CXXALIAS_RPL (log2, double, (double x));
1711# else 1762# else
1712# if !@HAVE_DECL_LOG2@ 1763# if !@HAVE_DECL_LOG2@
1713# undef log2 1764# undef log2
1714_GL_FUNCDECL_SYS (log2, double, (double x)); 1765_GL_FUNCDECL_SYS (log2, double, (double x), );
1715# endif 1766# endif
1716_GL_CXXALIAS_SYS (log2, double, (double x)); 1767_GL_CXXALIAS_SYS (log2, double, (double x));
1717# endif 1768# endif
@@ -1732,11 +1783,11 @@ _GL_WARN_ON_USE (log2, "log2 is unportable - "
1732# undef log2l 1783# undef log2l
1733# define log2l rpl_log2l 1784# define log2l rpl_log2l
1734# endif 1785# endif
1735_GL_FUNCDECL_RPL (log2l, long double, (long double x)); 1786_GL_FUNCDECL_RPL (log2l, long double, (long double x), );
1736_GL_CXXALIAS_RPL (log2l, long double, (long double x)); 1787_GL_CXXALIAS_RPL (log2l, long double, (long double x));
1737# else 1788# else
1738# if !@HAVE_DECL_LOG2L@ 1789# if !@HAVE_DECL_LOG2L@
1739_GL_FUNCDECL_SYS (log2l, long double, (long double x)); 1790_GL_FUNCDECL_SYS (log2l, long double, (long double x), );
1740# endif 1791# endif
1741_GL_CXXALIAS_SYS (log2l, long double, (long double x)); 1792_GL_CXXALIAS_SYS (log2l, long double, (long double x));
1742# endif 1793# endif
@@ -1758,11 +1809,11 @@ _GL_WARN_ON_USE (log2l, "log2l is unportable - "
1758# undef logbf 1809# undef logbf
1759# define logbf rpl_logbf 1810# define logbf rpl_logbf
1760# endif 1811# endif
1761_GL_FUNCDECL_RPL (logbf, float, (float x)); 1812_GL_FUNCDECL_RPL (logbf, float, (float x), );
1762_GL_CXXALIAS_RPL (logbf, float, (float x)); 1813_GL_CXXALIAS_RPL (logbf, float, (float x));
1763# else 1814# else
1764# if !@HAVE_LOGBF@ 1815# if !@HAVE_LOGBF@
1765_GL_FUNCDECL_SYS (logbf, float, (float x)); 1816_GL_FUNCDECL_SYS (logbf, float, (float x), );
1766# endif 1817# endif
1767_GL_CXXALIAS_SYS (logbf, float, (float x)); 1818_GL_CXXALIAS_SYS (logbf, float, (float x));
1768# endif 1819# endif
@@ -1781,11 +1832,11 @@ _GL_WARN_ON_USE (logbf, "logbf is unportable - "
1781# undef logb 1832# undef logb
1782# define logb rpl_logb 1833# define logb rpl_logb
1783# endif 1834# endif
1784_GL_FUNCDECL_RPL (logb, double, (double x)); 1835_GL_FUNCDECL_RPL (logb, double, (double x), );
1785_GL_CXXALIAS_RPL (logb, double, (double x)); 1836_GL_CXXALIAS_RPL (logb, double, (double x));
1786# else 1837# else
1787# if !@HAVE_DECL_LOGB@ 1838# if !@HAVE_DECL_LOGB@
1788_GL_FUNCDECL_SYS (logb, double, (double x)); 1839_GL_FUNCDECL_SYS (logb, double, (double x), );
1789# endif 1840# endif
1790_GL_CXXALIAS_SYS (logb, double, (double x)); 1841_GL_CXXALIAS_SYS (logb, double, (double x));
1791# endif 1842# endif
@@ -1806,11 +1857,11 @@ _GL_WARN_ON_USE (logb, "logb is unportable - "
1806# undef logbl 1857# undef logbl
1807# define logbl rpl_logbl 1858# define logbl rpl_logbl
1808# endif 1859# endif
1809_GL_FUNCDECL_RPL (logbl, long double, (long double x)); 1860_GL_FUNCDECL_RPL (logbl, long double, (long double x), );
1810_GL_CXXALIAS_RPL (logbl, long double, (long double x)); 1861_GL_CXXALIAS_RPL (logbl, long double, (long double x));
1811# else 1862# else
1812# if !@HAVE_LOGBL@ 1863# if !@HAVE_LOGBL@
1813_GL_FUNCDECL_SYS (logbl, long double, (long double x)); 1864_GL_FUNCDECL_SYS (logbl, long double, (long double x), );
1814# endif 1865# endif
1815_GL_CXXALIAS_SYS (logbl, long double, (long double x)); 1866_GL_CXXALIAS_SYS (logbl, long double, (long double x));
1816# endif 1867# endif
@@ -1826,18 +1877,67 @@ _GL_WARN_ON_USE (logbl, "logbl is unportable - "
1826#endif 1877#endif
1827 1878
1828 1879
1880#if @GNULIB_LOGP1F@
1881# if !@HAVE_LOGP1F@
1882_GL_FUNCDECL_SYS (logp1f, float, (float x), );
1883# endif
1884_GL_CXXALIAS_SYS (logp1f, float, (float x));
1885# if __GLIBC__ >= 2
1886_GL_CXXALIASWARN1 (logp1f, float, (float x));
1887# endif
1888#elif defined GNULIB_POSIXCHECK
1889# undef logp1f
1890# if HAVE_RAW_DECL_LOGP1F
1891_GL_WARN_ON_USE (logp1f, "logp1f is unportable - "
1892 "use gnulib module logp1f for portability");
1893# endif
1894#endif
1895
1896#if @GNULIB_LOGP1@
1897# if !@HAVE_LOGP1@
1898_GL_FUNCDECL_SYS (logp1, double, (double x), );
1899# endif
1900_GL_CXXALIAS_SYS (logp1, double, (double x));
1901# if __GLIBC__ >= 2
1902_GL_CXXALIASWARN1 (logp1, double, (double x));
1903# endif
1904#elif defined GNULIB_POSIXCHECK
1905# undef logp1
1906# if HAVE_RAW_DECL_LOGP1
1907_GL_WARN_ON_USE (logp1, "logp1 is unportable - "
1908 "use gnulib module logp1 for portability");
1909# endif
1910#endif
1911
1912#if @GNULIB_LOGP1L@
1913# if !@HAVE_LOGP1L@
1914_GL_FUNCDECL_SYS (logp1l, long double, (long double x), );
1915# endif
1916_GL_CXXALIAS_SYS (logp1l, long double, (long double x));
1917# if __GLIBC__ >= 2
1918_GL_CXXALIASWARN1 (logp1l, long double, (long double x));
1919# endif
1920#elif defined GNULIB_POSIXCHECK
1921# undef logp1l
1922# if HAVE_RAW_DECL_LOGP1L
1923_GL_WARN_ON_USE (logp1l, "logp1l is unportable - "
1924 "use gnulib module logp1l for portability");
1925# endif
1926#endif
1927
1928
1829#if @GNULIB_MODFF@ 1929#if @GNULIB_MODFF@
1830# if @REPLACE_MODFF@ 1930# if @REPLACE_MODFF@
1831# if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1931# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1832# undef modff 1932# undef modff
1833# define modff rpl_modff 1933# define modff rpl_modff
1834# endif 1934# endif
1835_GL_FUNCDECL_RPL (modff, float, (float x, float *iptr) _GL_ARG_NONNULL ((2))); 1935_GL_FUNCDECL_RPL (modff, float, (float x, float *iptr), _GL_ARG_NONNULL ((2)));
1836_GL_CXXALIAS_RPL (modff, float, (float x, float *iptr)); 1936_GL_CXXALIAS_RPL (modff, float, (float x, float *iptr));
1837# else 1937# else
1838# if !@HAVE_MODFF@ 1938# if !@HAVE_MODFF@
1839# undef modff 1939# undef modff
1840_GL_FUNCDECL_SYS (modff, float, (float x, float *iptr) _GL_ARG_NONNULL ((2))); 1940_GL_FUNCDECL_SYS (modff, float, (float x, float *iptr), _GL_ARG_NONNULL ((2)));
1841# endif 1941# endif
1842_GL_CXXALIAS_SYS (modff, float, (float x, float *iptr)); 1942_GL_CXXALIAS_SYS (modff, float, (float x, float *iptr));
1843# endif 1943# endif
@@ -1856,7 +1956,8 @@ _GL_WARN_ON_USE (modff, "modff is unportable - "
1856# undef modf 1956# undef modf
1857# define modf rpl_modf 1957# define modf rpl_modf
1858# endif 1958# endif
1859_GL_FUNCDECL_RPL (modf, double, (double x, double *iptr) _GL_ARG_NONNULL ((2))); 1959_GL_FUNCDECL_RPL (modf, double, (double x, double *iptr),
1960 _GL_ARG_NONNULL ((2)));
1860_GL_CXXALIAS_RPL (modf, double, (double x, double *iptr)); 1961_GL_CXXALIAS_RPL (modf, double, (double x, double *iptr));
1861# else 1962# else
1862_GL_CXXALIAS_SYS (modf, double, (double x, double *iptr)); 1963_GL_CXXALIAS_SYS (modf, double, (double x, double *iptr));
@@ -1878,13 +1979,13 @@ _GL_WARN_ON_USE (modf, "modf has portability problems - "
1878# undef modfl 1979# undef modfl
1879# define modfl rpl_modfl 1980# define modfl rpl_modfl
1880# endif 1981# endif
1881_GL_FUNCDECL_RPL (modfl, long double, (long double x, long double *iptr) 1982_GL_FUNCDECL_RPL (modfl, long double, (long double x, long double *iptr),
1882 _GL_ARG_NONNULL ((2))); 1983 _GL_ARG_NONNULL ((2)));
1883_GL_CXXALIAS_RPL (modfl, long double, (long double x, long double *iptr)); 1984_GL_CXXALIAS_RPL (modfl, long double, (long double x, long double *iptr));
1884# else 1985# else
1885# if !@HAVE_MODFL@ 1986# if !@HAVE_MODFL@
1886# undef modfl 1987# undef modfl
1887_GL_FUNCDECL_SYS (modfl, long double, (long double x, long double *iptr) 1988_GL_FUNCDECL_SYS (modfl, long double, (long double x, long double *iptr),
1888 _GL_ARG_NONNULL ((2))); 1989 _GL_ARG_NONNULL ((2)));
1889# endif 1990# endif
1890_GL_CXXALIAS_SYS (modfl, long double, (long double x, long double *iptr)); 1991_GL_CXXALIAS_SYS (modfl, long double, (long double x, long double *iptr));
@@ -1904,7 +2005,7 @@ _GL_WARN_ON_USE (modfl, "modfl is unportable - "
1904#if @GNULIB_POWF@ 2005#if @GNULIB_POWF@
1905# if !@HAVE_POWF@ 2006# if !@HAVE_POWF@
1906# undef powf 2007# undef powf
1907_GL_FUNCDECL_SYS (powf, float, (float x, float y)); 2008_GL_FUNCDECL_SYS (powf, float, (float x, float y), );
1908# endif 2009# endif
1909_GL_CXXALIAS_SYS (powf, float, (float x, float y)); 2010_GL_CXXALIAS_SYS (powf, float, (float x, float y));
1910_GL_CXXALIASWARN (powf); 2011_GL_CXXALIASWARN (powf);
@@ -1923,11 +2024,11 @@ _GL_WARN_ON_USE (powf, "powf is unportable - "
1923# undef remainderf 2024# undef remainderf
1924# define remainderf rpl_remainderf 2025# define remainderf rpl_remainderf
1925# endif 2026# endif
1926_GL_FUNCDECL_RPL (remainderf, float, (float x, float y)); 2027_GL_FUNCDECL_RPL (remainderf, float, (float x, float y), );
1927_GL_CXXALIAS_RPL (remainderf, float, (float x, float y)); 2028_GL_CXXALIAS_RPL (remainderf, float, (float x, float y));
1928# else 2029# else
1929# if !@HAVE_REMAINDERF@ 2030# if !@HAVE_REMAINDERF@
1930_GL_FUNCDECL_SYS (remainderf, float, (float x, float y)); 2031_GL_FUNCDECL_SYS (remainderf, float, (float x, float y), );
1931# endif 2032# endif
1932_GL_CXXALIAS_SYS (remainderf, float, (float x, float y)); 2033_GL_CXXALIAS_SYS (remainderf, float, (float x, float y));
1933# endif 2034# endif
@@ -1946,11 +2047,11 @@ _GL_WARN_ON_USE (remainderf, "remainderf is unportable - "
1946# undef remainder 2047# undef remainder
1947# define remainder rpl_remainder 2048# define remainder rpl_remainder
1948# endif 2049# endif
1949_GL_FUNCDECL_RPL (remainder, double, (double x, double y)); 2050_GL_FUNCDECL_RPL (remainder, double, (double x, double y), );
1950_GL_CXXALIAS_RPL (remainder, double, (double x, double y)); 2051_GL_CXXALIAS_RPL (remainder, double, (double x, double y));
1951# else 2052# else
1952# if !@HAVE_REMAINDER@ || !@HAVE_DECL_REMAINDER@ 2053# if !@HAVE_REMAINDER@ || !@HAVE_DECL_REMAINDER@
1953_GL_FUNCDECL_SYS (remainder, double, (double x, double y)); 2054_GL_FUNCDECL_SYS (remainder, double, (double x, double y), );
1954# endif 2055# endif
1955_GL_CXXALIAS_SYS (remainder, double, (double x, double y)); 2056_GL_CXXALIAS_SYS (remainder, double, (double x, double y));
1956# endif 2057# endif
@@ -1971,13 +2072,13 @@ _GL_WARN_ON_USE (remainder, "remainder is unportable - "
1971# undef remainderl 2072# undef remainderl
1972# define remainderl rpl_remainderl 2073# define remainderl rpl_remainderl
1973# endif 2074# endif
1974_GL_FUNCDECL_RPL (remainderl, long double, (long double x, long double y)); 2075_GL_FUNCDECL_RPL (remainderl, long double, (long double x, long double y), );
1975_GL_CXXALIAS_RPL (remainderl, long double, (long double x, long double y)); 2076_GL_CXXALIAS_RPL (remainderl, long double, (long double x, long double y));
1976# else 2077# else
1977# if !@HAVE_DECL_REMAINDERL@ 2078# if !@HAVE_DECL_REMAINDERL@
1978# undef remainderl 2079# undef remainderl
1979# if !(defined __cplusplus && defined _AIX) 2080# if !(defined __cplusplus && defined _AIX)
1980_GL_FUNCDECL_SYS (remainderl, long double, (long double x, long double y)); 2081_GL_FUNCDECL_SYS (remainderl, long double, (long double x, long double y), );
1981# endif 2082# endif
1982# endif 2083# endif
1983_GL_CXXALIAS_SYS (remainderl, long double, (long double x, long double y)); 2084_GL_CXXALIAS_SYS (remainderl, long double, (long double x, long double y));
@@ -1996,7 +2097,7 @@ _GL_WARN_ON_USE (remainderl, "remainderl is unportable - "
1996 2097
1997#if @GNULIB_RINTF@ 2098#if @GNULIB_RINTF@
1998# if !@HAVE_DECL_RINTF@ 2099# if !@HAVE_DECL_RINTF@
1999_GL_FUNCDECL_SYS (rintf, float, (float x)); 2100_GL_FUNCDECL_SYS (rintf, float, (float x), );
2000# endif 2101# endif
2001_GL_CXXALIAS_SYS (rintf, float, (float x)); 2102_GL_CXXALIAS_SYS (rintf, float, (float x));
2002_GL_CXXALIASWARN (rintf); 2103_GL_CXXALIASWARN (rintf);
@@ -2010,7 +2111,7 @@ _GL_WARN_ON_USE (rintf, "rintf is unportable - "
2010 2111
2011#if @GNULIB_RINT@ 2112#if @GNULIB_RINT@
2012# if !@HAVE_RINT@ 2113# if !@HAVE_RINT@
2013_GL_FUNCDECL_SYS (rint, double, (double x)); 2114_GL_FUNCDECL_SYS (rint, double, (double x), );
2014# endif 2115# endif
2015_GL_CXXALIAS_SYS (rint, double, (double x)); 2116_GL_CXXALIAS_SYS (rint, double, (double x));
2016# if __GLIBC__ >= 2 2117# if __GLIBC__ >= 2
@@ -2030,11 +2131,11 @@ _GL_WARN_ON_USE (rint, "rint is unportable - "
2030# undef rintl 2131# undef rintl
2031# define rintl rpl_rintl 2132# define rintl rpl_rintl
2032# endif 2133# endif
2033_GL_FUNCDECL_RPL (rintl, long double, (long double x)); 2134_GL_FUNCDECL_RPL (rintl, long double, (long double x), );
2034_GL_CXXALIAS_RPL (rintl, long double, (long double x)); 2135_GL_CXXALIAS_RPL (rintl, long double, (long double x));
2035# else 2136# else
2036# if !@HAVE_RINTL@ 2137# if !@HAVE_RINTL@
2037_GL_FUNCDECL_SYS (rintl, long double, (long double x)); 2138_GL_FUNCDECL_SYS (rintl, long double, (long double x), );
2038# endif 2139# endif
2039_GL_CXXALIAS_SYS (rintl, long double, (long double x)); 2140_GL_CXXALIAS_SYS (rintl, long double, (long double x));
2040# endif 2141# endif
@@ -2056,11 +2157,11 @@ _GL_WARN_ON_USE (rintl, "rintl is unportable - "
2056# undef roundf 2157# undef roundf
2057# define roundf rpl_roundf 2158# define roundf rpl_roundf
2058# endif 2159# endif
2059_GL_FUNCDECL_RPL (roundf, float, (float x)); 2160_GL_FUNCDECL_RPL (roundf, float, (float x), );
2060_GL_CXXALIAS_RPL (roundf, float, (float x)); 2161_GL_CXXALIAS_RPL (roundf, float, (float x));
2061# else 2162# else
2062# if !@HAVE_DECL_ROUNDF@ 2163# if !@HAVE_DECL_ROUNDF@
2063_GL_FUNCDECL_SYS (roundf, float, (float x)); 2164_GL_FUNCDECL_SYS (roundf, float, (float x), );
2064# endif 2165# endif
2065_GL_CXXALIAS_SYS (roundf, float, (float x)); 2166_GL_CXXALIAS_SYS (roundf, float, (float x));
2066# endif 2167# endif
@@ -2079,11 +2180,11 @@ _GL_WARN_ON_USE (roundf, "roundf is unportable - "
2079# undef round 2180# undef round
2080# define round rpl_round 2181# define round rpl_round
2081# endif 2182# endif
2082_GL_FUNCDECL_RPL (round, double, (double x)); 2183_GL_FUNCDECL_RPL (round, double, (double x), );
2083_GL_CXXALIAS_RPL (round, double, (double x)); 2184_GL_CXXALIAS_RPL (round, double, (double x));
2084# else 2185# else
2085# if !@HAVE_DECL_ROUND@ 2186# if !@HAVE_DECL_ROUND@
2086_GL_FUNCDECL_SYS (round, double, (double x)); 2187_GL_FUNCDECL_SYS (round, double, (double x), );
2087# endif 2188# endif
2088_GL_CXXALIAS_SYS (round, double, (double x)); 2189_GL_CXXALIAS_SYS (round, double, (double x));
2089# endif 2190# endif
@@ -2104,13 +2205,13 @@ _GL_WARN_ON_USE (round, "round is unportable - "
2104# undef roundl 2205# undef roundl
2105# define roundl rpl_roundl 2206# define roundl rpl_roundl
2106# endif 2207# endif
2107_GL_FUNCDECL_RPL (roundl, long double, (long double x)); 2208_GL_FUNCDECL_RPL (roundl, long double, (long double x), );
2108_GL_CXXALIAS_RPL (roundl, long double, (long double x)); 2209_GL_CXXALIAS_RPL (roundl, long double, (long double x));
2109# else 2210# else
2110# if !@HAVE_DECL_ROUNDL@ 2211# if !@HAVE_DECL_ROUNDL@
2111# undef roundl 2212# undef roundl
2112# if !(defined __cplusplus && defined _AIX) 2213# if !(defined __cplusplus && defined _AIX)
2113_GL_FUNCDECL_SYS (roundl, long double, (long double x)); 2214_GL_FUNCDECL_SYS (roundl, long double, (long double x), );
2114# endif 2215# endif
2115# endif 2216# endif
2116_GL_CXXALIAS_SYS (roundl, long double, (long double x)); 2217_GL_CXXALIAS_SYS (roundl, long double, (long double x));
@@ -2133,12 +2234,12 @@ _GL_WARN_ON_USE (roundl, "roundl is unportable - "
2133# undef sinf 2234# undef sinf
2134# define sinf rpl_sinf 2235# define sinf rpl_sinf
2135# endif 2236# endif
2136_GL_FUNCDECL_RPL (sinf, float, (float x)); 2237_GL_FUNCDECL_RPL (sinf, float, (float x), );
2137_GL_CXXALIAS_RPL (sinf, float, (float x)); 2238_GL_CXXALIAS_RPL (sinf, float, (float x));
2138# else 2239# else
2139# if !@HAVE_SINF@ 2240# if !@HAVE_SINF@
2140# undef sinf 2241# undef sinf
2141_GL_FUNCDECL_SYS (sinf, float, (float x)); 2242_GL_FUNCDECL_SYS (sinf, float, (float x), );
2142# endif 2243# endif
2143_GL_CXXALIAS_SYS (sinf, float, (float x)); 2244_GL_CXXALIAS_SYS (sinf, float, (float x));
2144# endif 2245# endif
@@ -2152,11 +2253,20 @@ _GL_WARN_ON_USE (sinf, "sinf is unportable - "
2152#endif 2253#endif
2153 2254
2154#if @GNULIB_SINL@ 2255#if @GNULIB_SINL@
2155# if !@HAVE_SINL@ || !@HAVE_DECL_SINL@ 2256# if @REPLACE_SINL@
2156# undef sinl 2257# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2157_GL_FUNCDECL_SYS (sinl, long double, (long double x)); 2258# undef sinl
2158# endif 2259# define sinl rpl_sinl
2260# endif
2261_GL_FUNCDECL_RPL (sinl, long double, (long double x), );
2262_GL_CXXALIAS_RPL (sinl, long double, (long double x));
2263# else
2264# if !@HAVE_SINL@ || !@HAVE_DECL_SINL@
2265# undef sinl
2266_GL_FUNCDECL_SYS (sinl, long double, (long double x), );
2267# endif
2159_GL_CXXALIAS_SYS (sinl, long double, (long double x)); 2268_GL_CXXALIAS_SYS (sinl, long double, (long double x));
2269# endif
2160# if __GLIBC__ >= 2 2270# if __GLIBC__ >= 2
2161_GL_CXXALIASWARN (sinl); 2271_GL_CXXALIASWARN (sinl);
2162# endif 2272# endif
@@ -2175,12 +2285,12 @@ _GL_WARN_ON_USE (sinl, "sinl is unportable - "
2175# undef sinhf 2285# undef sinhf
2176# define sinhf rpl_sinhf 2286# define sinhf rpl_sinhf
2177# endif 2287# endif
2178_GL_FUNCDECL_RPL (sinhf, float, (float x)); 2288_GL_FUNCDECL_RPL (sinhf, float, (float x), );
2179_GL_CXXALIAS_RPL (sinhf, float, (float x)); 2289_GL_CXXALIAS_RPL (sinhf, float, (float x));
2180# else 2290# else
2181# if !@HAVE_SINHF@ 2291# if !@HAVE_SINHF@
2182# undef sinhf 2292# undef sinhf
2183_GL_FUNCDECL_SYS (sinhf, float, (float x)); 2293_GL_FUNCDECL_SYS (sinhf, float, (float x), );
2184# endif 2294# endif
2185_GL_CXXALIAS_SYS (sinhf, float, (float x)); 2295_GL_CXXALIAS_SYS (sinhf, float, (float x));
2186# endif 2296# endif
@@ -2200,12 +2310,12 @@ _GL_WARN_ON_USE (sinhf, "sinhf is unportable - "
2200# undef sqrtf 2310# undef sqrtf
2201# define sqrtf rpl_sqrtf 2311# define sqrtf rpl_sqrtf
2202# endif 2312# endif
2203_GL_FUNCDECL_RPL (sqrtf, float, (float x)); 2313_GL_FUNCDECL_RPL (sqrtf, float, (float x), );
2204_GL_CXXALIAS_RPL (sqrtf, float, (float x)); 2314_GL_CXXALIAS_RPL (sqrtf, float, (float x));
2205# else 2315# else
2206# if !@HAVE_SQRTF@ 2316# if !@HAVE_SQRTF@
2207# undef sqrtf 2317# undef sqrtf
2208_GL_FUNCDECL_SYS (sqrtf, float, (float x)); 2318_GL_FUNCDECL_SYS (sqrtf, float, (float x), );
2209# endif 2319# endif
2210_GL_CXXALIAS_SYS (sqrtf, float, (float x)); 2320_GL_CXXALIAS_SYS (sqrtf, float, (float x));
2211# endif 2321# endif
@@ -2224,12 +2334,12 @@ _GL_WARN_ON_USE (sqrtf, "sqrtf is unportable - "
2224# undef sqrtl 2334# undef sqrtl
2225# define sqrtl rpl_sqrtl 2335# define sqrtl rpl_sqrtl
2226# endif 2336# endif
2227_GL_FUNCDECL_RPL (sqrtl, long double, (long double x)); 2337_GL_FUNCDECL_RPL (sqrtl, long double, (long double x), );
2228_GL_CXXALIAS_RPL (sqrtl, long double, (long double x)); 2338_GL_CXXALIAS_RPL (sqrtl, long double, (long double x));
2229# else 2339# else
2230# if !@HAVE_SQRTL@ || !@HAVE_DECL_SQRTL@ 2340# if !@HAVE_SQRTL@ || !@HAVE_DECL_SQRTL@
2231# undef sqrtl 2341# undef sqrtl
2232_GL_FUNCDECL_SYS (sqrtl, long double, (long double x)); 2342_GL_FUNCDECL_SYS (sqrtl, long double, (long double x), );
2233# endif 2343# endif
2234_GL_CXXALIAS_SYS (sqrtl, long double, (long double x)); 2344_GL_CXXALIAS_SYS (sqrtl, long double, (long double x));
2235# endif 2345# endif
@@ -2251,12 +2361,12 @@ _GL_WARN_ON_USE (sqrtl, "sqrtl is unportable - "
2251# undef tanf 2361# undef tanf
2252# define tanf rpl_tanf 2362# define tanf rpl_tanf
2253# endif 2363# endif
2254_GL_FUNCDECL_RPL (tanf, float, (float x)); 2364_GL_FUNCDECL_RPL (tanf, float, (float x), );
2255_GL_CXXALIAS_RPL (tanf, float, (float x)); 2365_GL_CXXALIAS_RPL (tanf, float, (float x));
2256# else 2366# else
2257# if !@HAVE_TANF@ 2367# if !@HAVE_TANF@
2258# undef tanf 2368# undef tanf
2259_GL_FUNCDECL_SYS (tanf, float, (float x)); 2369_GL_FUNCDECL_SYS (tanf, float, (float x), );
2260# endif 2370# endif
2261_GL_CXXALIAS_SYS (tanf, float, (float x)); 2371_GL_CXXALIAS_SYS (tanf, float, (float x));
2262# endif 2372# endif
@@ -2272,7 +2382,7 @@ _GL_WARN_ON_USE (tanf, "tanf is unportable - "
2272#if @GNULIB_TANL@ 2382#if @GNULIB_TANL@
2273# if !@HAVE_TANL@ || !@HAVE_DECL_TANL@ 2383# if !@HAVE_TANL@ || !@HAVE_DECL_TANL@
2274# undef tanl 2384# undef tanl
2275_GL_FUNCDECL_SYS (tanl, long double, (long double x)); 2385_GL_FUNCDECL_SYS (tanl, long double, (long double x), );
2276# endif 2386# endif
2277_GL_CXXALIAS_SYS (tanl, long double, (long double x)); 2387_GL_CXXALIAS_SYS (tanl, long double, (long double x));
2278# if __GLIBC__ >= 2 2388# if __GLIBC__ >= 2
@@ -2293,12 +2403,12 @@ _GL_WARN_ON_USE (tanl, "tanl is unportable - "
2293# undef tanhf 2403# undef tanhf
2294# define tanhf rpl_tanhf 2404# define tanhf rpl_tanhf
2295# endif 2405# endif
2296_GL_FUNCDECL_RPL (tanhf, float, (float x)); 2406_GL_FUNCDECL_RPL (tanhf, float, (float x), );
2297_GL_CXXALIAS_RPL (tanhf, float, (float x)); 2407_GL_CXXALIAS_RPL (tanhf, float, (float x));
2298# else 2408# else
2299# if !@HAVE_TANHF@ 2409# if !@HAVE_TANHF@
2300# undef tanhf 2410# undef tanhf
2301_GL_FUNCDECL_SYS (tanhf, float, (float x)); 2411_GL_FUNCDECL_SYS (tanhf, float, (float x), );
2302# endif 2412# endif
2303_GL_CXXALIAS_SYS (tanhf, float, (float x)); 2413_GL_CXXALIAS_SYS (tanhf, float, (float x));
2304# endif 2414# endif
@@ -2318,11 +2428,11 @@ _GL_WARN_ON_USE (tanhf, "tanhf is unportable - "
2318# undef truncf 2428# undef truncf
2319# define truncf rpl_truncf 2429# define truncf rpl_truncf
2320# endif 2430# endif
2321_GL_FUNCDECL_RPL (truncf, float, (float x)); 2431_GL_FUNCDECL_RPL (truncf, float, (float x), );
2322_GL_CXXALIAS_RPL (truncf, float, (float x)); 2432_GL_CXXALIAS_RPL (truncf, float, (float x));
2323# else 2433# else
2324# if !@HAVE_DECL_TRUNCF@ 2434# if !@HAVE_DECL_TRUNCF@
2325_GL_FUNCDECL_SYS (truncf, float, (float x)); 2435_GL_FUNCDECL_SYS (truncf, float, (float x), );
2326# endif 2436# endif
2327_GL_CXXALIAS_SYS (truncf, float, (float x)); 2437_GL_CXXALIAS_SYS (truncf, float, (float x));
2328# endif 2438# endif
@@ -2341,11 +2451,11 @@ _GL_WARN_ON_USE (truncf, "truncf is unportable - "
2341# undef trunc 2451# undef trunc
2342# define trunc rpl_trunc 2452# define trunc rpl_trunc
2343# endif 2453# endif
2344_GL_FUNCDECL_RPL (trunc, double, (double x)); 2454_GL_FUNCDECL_RPL (trunc, double, (double x), );
2345_GL_CXXALIAS_RPL (trunc, double, (double x)); 2455_GL_CXXALIAS_RPL (trunc, double, (double x));
2346# else 2456# else
2347# if !@HAVE_DECL_TRUNC@ 2457# if !@HAVE_DECL_TRUNC@
2348_GL_FUNCDECL_SYS (trunc, double, (double x)); 2458_GL_FUNCDECL_SYS (trunc, double, (double x), );
2349# endif 2459# endif
2350_GL_CXXALIAS_SYS (trunc, double, (double x)); 2460_GL_CXXALIAS_SYS (trunc, double, (double x));
2351# endif 2461# endif
@@ -2366,11 +2476,11 @@ _GL_WARN_ON_USE (trunc, "trunc is unportable - "
2366# undef truncl 2476# undef truncl
2367# define truncl rpl_truncl 2477# define truncl rpl_truncl
2368# endif 2478# endif
2369_GL_FUNCDECL_RPL (truncl, long double, (long double x)); 2479_GL_FUNCDECL_RPL (truncl, long double, (long double x), );
2370_GL_CXXALIAS_RPL (truncl, long double, (long double x)); 2480_GL_CXXALIAS_RPL (truncl, long double, (long double x));
2371# else 2481# else
2372# if !@HAVE_DECL_TRUNCL@ 2482# if !@HAVE_DECL_TRUNCL@
2373_GL_FUNCDECL_SYS (truncl, long double, (long double x)); 2483_GL_FUNCDECL_SYS (truncl, long double, (long double x), );
2374# endif 2484# endif
2375_GL_CXXALIAS_SYS (truncl, long double, (long double x)); 2485_GL_CXXALIAS_SYS (truncl, long double, (long double x));
2376# endif 2486# endif
@@ -2454,7 +2564,7 @@ _GL_EXTERN_C int gl_isfinitel (long double x);
2454# if defined isfinite || defined GNULIB_NAMESPACE 2564# if defined isfinite || defined GNULIB_NAMESPACE
2455_GL_MATH_CXX_REAL_FLOATING_DECL_1 (isfinite) 2565_GL_MATH_CXX_REAL_FLOATING_DECL_1 (isfinite)
2456# undef isfinite 2566# undef isfinite
2457# if __GNUC__ >= 6 || (defined __clang__ && !((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __OpenBSD__ || defined _AIX || (defined _WIN32 && !defined __CYGWIN__))) 2567# if __GNUC__ >= 6 || (defined __clang__ && (__clang_major__ >= 19 || !((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __OpenBSD__ || defined _AIX || (defined _WIN32 && !defined __CYGWIN__))))
2458 /* This platform's <cmath> possibly defines isfinite through a set of inline 2568 /* This platform's <cmath> possibly defines isfinite through a set of inline
2459 functions. */ 2569 functions. */
2460_GL_MATH_CXX_REAL_FLOATING_DECL_2 (isfinite, rpl_isfinite, bool) 2570_GL_MATH_CXX_REAL_FLOATING_DECL_2 (isfinite, rpl_isfinite, bool)
@@ -2512,16 +2622,22 @@ _GL_WARN_REAL_FLOATING_DECL (isinf);
2512#if @GNULIB_ISNANF@ 2622#if @GNULIB_ISNANF@
2513/* Test for NaN for 'float' numbers. */ 2623/* Test for NaN for 'float' numbers. */
2514# if @HAVE_ISNANF@ 2624# if @HAVE_ISNANF@
2625# if defined __sun || defined __sgi
2626/* Solaris and IRIX have isnanf() and declare it in <ieeefp.h>. We cannot
2627 define isnanf as a macro, because that would conflict with <ieeefp.h>. */
2628_GL_EXTERN_C int isnanf (float x);
2629# else
2515/* The original <math.h> included above provides a declaration of isnan macro 2630/* The original <math.h> included above provides a declaration of isnan macro
2516 or (older) isnanf function. */ 2631 or (older) isnanf function. */
2517# if (__GNUC__ >= 4) || (__clang_major__ >= 4) 2632# if (__GNUC__ >= 4) || (__clang_major__ >= 4)
2518 /* GCC >= 4.0 and clang provide a type-generic built-in for isnan. 2633 /* GCC >= 4.0 and clang provide a type-generic built-in for isnan.
2519 GCC >= 4.0 also provides __builtin_isnanf, but clang doesn't. */ 2634 GCC >= 4.0 also provides __builtin_isnanf, but clang doesn't. */
2520# undef isnanf 2635# undef isnanf
2521# define isnanf(x) __builtin_isnan ((float)(x)) 2636# define isnanf(x) __builtin_isnan ((float)(x))
2522# elif defined isnan 2637# elif defined isnan && !defined HAVE_ISNANF_NOLIBM
2523# undef isnanf 2638# undef isnanf
2524# define isnanf(x) isnan ((float)(x)) 2639# define isnanf(x) isnan ((float)(x))
2640# endif
2525# endif 2641# endif
2526# else 2642# else
2527/* Test whether X is a NaN. */ 2643/* Test whether X is a NaN. */
@@ -2536,15 +2652,21 @@ _GL_EXTERN_C int isnanf (float x);
2536 This function is a gnulib extension, unlike isnan() which applied only 2652 This function is a gnulib extension, unlike isnan() which applied only
2537 to 'double' numbers earlier but now is a type-generic macro. */ 2653 to 'double' numbers earlier but now is a type-generic macro. */
2538# if @HAVE_ISNAND@ 2654# if @HAVE_ISNAND@
2655# if defined __sun || defined __sgi
2656/* Solaris and IRIX have isnand() and declare it in <ieeefp.h>. We cannot
2657 define isnand as a macro, because that would conflict with <ieeefp.h>. */
2658_GL_EXTERN_C int isnand (double x);
2659# else
2539/* The original <math.h> included above provides a declaration of isnan 2660/* The original <math.h> included above provides a declaration of isnan
2540 macro. */ 2661 macro. */
2541# if (__GNUC__ >= 4) || (__clang_major__ >= 4) 2662# if (__GNUC__ >= 4) || (__clang_major__ >= 4)
2542 /* GCC >= 4.0 and clang provide a type-generic built-in for isnan. */ 2663 /* GCC >= 4.0 and clang provide a type-generic built-in for isnan. */
2543# undef isnand 2664# undef isnand
2544# define isnand(x) __builtin_isnan ((double)(x)) 2665# define isnand(x) __builtin_isnan ((double)(x))
2545# else 2666# elif !defined HAVE_ISNAND_NOLIBM
2546# undef isnand 2667# undef isnand
2547# define isnand(x) isnan ((double)(x)) 2668# define isnand(x) isnan ((double)(x))
2669# endif
2548# endif 2670# endif
2549# else 2671# else
2550/* Test whether X is a NaN. */ 2672/* Test whether X is a NaN. */
@@ -2564,7 +2686,7 @@ _GL_EXTERN_C int isnand (double x);
2564 GCC >= 4.0 also provides __builtin_isnanl, but clang doesn't. */ 2686 GCC >= 4.0 also provides __builtin_isnanl, but clang doesn't. */
2565# undef isnanl 2687# undef isnanl
2566# define isnanl(x) __builtin_isnan ((long double)(x)) 2688# define isnanl(x) __builtin_isnan ((long double)(x))
2567# elif defined isnan 2689# elif defined isnan && !defined HAVE_ISNANL_NOLIBM
2568# undef isnanl 2690# undef isnanl
2569# define isnanl(x) isnan ((long double)(x)) 2691# define isnanl(x) isnan ((long double)(x))
2570# endif 2692# endif
@@ -2617,12 +2739,17 @@ _GL_EXTERN_C int rpl_isnanl (long double x) _GL_ATTRIBUTE_CONST;
2617# if defined isnan || defined GNULIB_NAMESPACE 2739# if defined isnan || defined GNULIB_NAMESPACE
2618_GL_MATH_CXX_REAL_FLOATING_DECL_1 (isnan) 2740_GL_MATH_CXX_REAL_FLOATING_DECL_1 (isnan)
2619# undef isnan 2741# undef isnan
2620# if __GNUC__ >= 6 || (defined __clang__ && !((defined __APPLE__ && defined __MACH__ && __clang_major__ < 12) || (defined __FreeBSD__ && (__clang_major__ < 7 || __clang_major__ >= 11)) || defined __OpenBSD__ || (defined _WIN32 && !defined __CYGWIN__))) 2742# if __GNUC__ >= 6 || (defined __clang__ && !((defined __APPLE__ && defined __MACH__ && __clang_major__ != 12) || (defined __FreeBSD__ && (__clang_major__ < 7 || __clang_major__ >= 11)) || defined __OpenBSD__ || (defined _WIN32 && !defined __CYGWIN__)))
2621 /* This platform's <cmath> possibly defines isnan through a set of inline 2743 /* This platform's <cmath> possibly defines isnan through a set of inline
2622 functions. */ 2744 functions. */
2623_GL_MATH_CXX_REAL_FLOATING_DECL_2 (isnan, rpl_isnan, bool) 2745_GL_MATH_CXX_REAL_FLOATING_DECL_2 (isnan, rpl_isnan, bool)
2624# define isnan rpl_isnan 2746# define isnan rpl_isnan
2625# define GNULIB_NAMESPACE_LACKS_ISNAN 1 2747# define GNULIB_NAMESPACE_LACKS_ISNAN 1
2748# elif __clang_major__ >= 14
2749 /* Neither of the two possible _GL_MATH_CXX_REAL_FLOATING_DECL_2 invocations
2750 works. Inline functions are already present in /usr/include/c++/v1/math.h,
2751 which comes from LLVM. */
2752# define GNULIB_NAMESPACE_LACKS_ISNAN 1
2626# else 2753# else
2627_GL_MATH_CXX_REAL_FLOATING_DECL_2 (isnan, isnan, bool) 2754_GL_MATH_CXX_REAL_FLOATING_DECL_2 (isnan, isnan, bool)
2628# endif 2755# endif
@@ -2657,12 +2784,13 @@ _GL_WARN_REAL_FLOATING_DECL (isnan);
2657_GL_EXTERN_C int gl_signbitf (float arg); 2784_GL_EXTERN_C int gl_signbitf (float arg);
2658_GL_EXTERN_C int gl_signbitd (double arg); 2785_GL_EXTERN_C int gl_signbitd (double arg);
2659_GL_EXTERN_C int gl_signbitl (long double arg); 2786_GL_EXTERN_C int gl_signbitl (long double arg);
2660# if (__GNUC__ >= 2 || defined __clang__) && !defined __STRICT_ANSI__ 2787# if __GNUC__ >= 2 || defined __clang__
2661# define _GL_NUM_UINT_WORDS(type) \ 2788# define _GL_NUM_UINT_WORDS(type) \
2662 ((sizeof (type) + sizeof (unsigned int) - 1) / sizeof (unsigned int)) 2789 ((sizeof (type) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
2663# if defined FLT_SIGNBIT_WORD && defined FLT_SIGNBIT_BIT && !defined gl_signbitf 2790# if defined FLT_SIGNBIT_WORD && defined FLT_SIGNBIT_BIT && !defined gl_signbitf
2664# define gl_signbitf_OPTIMIZED_MACRO 2791# define gl_signbitf_OPTIMIZED_MACRO
2665# define gl_signbitf(arg) \ 2792# define gl_signbitf(arg) \
2793 __extension__ \
2666 ({ union { float _value; \ 2794 ({ union { float _value; \
2667 unsigned int _word[_GL_NUM_UINT_WORDS (float)]; \ 2795 unsigned int _word[_GL_NUM_UINT_WORDS (float)]; \
2668 } _m; \ 2796 } _m; \
@@ -2673,6 +2801,7 @@ _GL_EXTERN_C int gl_signbitl (long double arg);
2673# if defined DBL_SIGNBIT_WORD && defined DBL_SIGNBIT_BIT && !defined gl_signbitd 2801# if defined DBL_SIGNBIT_WORD && defined DBL_SIGNBIT_BIT && !defined gl_signbitd
2674# define gl_signbitd_OPTIMIZED_MACRO 2802# define gl_signbitd_OPTIMIZED_MACRO
2675# define gl_signbitd(arg) \ 2803# define gl_signbitd(arg) \
2804 __extension__ \
2676 ({ union { double _value; \ 2805 ({ union { double _value; \
2677 unsigned int _word[_GL_NUM_UINT_WORDS (double)]; \ 2806 unsigned int _word[_GL_NUM_UINT_WORDS (double)]; \
2678 } _m; \ 2807 } _m; \
@@ -2683,6 +2812,7 @@ _GL_EXTERN_C int gl_signbitl (long double arg);
2683# if defined LDBL_SIGNBIT_WORD && defined LDBL_SIGNBIT_BIT && !defined gl_signbitl 2812# if defined LDBL_SIGNBIT_WORD && defined LDBL_SIGNBIT_BIT && !defined gl_signbitl
2684# define gl_signbitl_OPTIMIZED_MACRO 2813# define gl_signbitl_OPTIMIZED_MACRO
2685# define gl_signbitl(arg) \ 2814# define gl_signbitl(arg) \
2815 __extension__ \
2686 ({ union { long double _value; \ 2816 ({ union { long double _value; \
2687 unsigned int _word[_GL_NUM_UINT_WORDS (long double)]; \ 2817 unsigned int _word[_GL_NUM_UINT_WORDS (long double)]; \
2688 } _m; \ 2818 } _m; \
@@ -2701,7 +2831,7 @@ _GL_EXTERN_C int gl_signbitl (long double arg);
2701# if defined signbit || defined GNULIB_NAMESPACE 2831# if defined signbit || defined GNULIB_NAMESPACE
2702_GL_MATH_CXX_REAL_FLOATING_DECL_1 (signbit) 2832_GL_MATH_CXX_REAL_FLOATING_DECL_1 (signbit)
2703# undef signbit 2833# undef signbit
2704# if __GNUC__ >= 6 || (defined __clang__ && !((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __OpenBSD__ || defined _AIX || (defined _WIN32 && !defined __CYGWIN__))) 2834# if __cplusplus >= 201103L || __GNUC__ >= 6 || (defined __clang__ && !((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __OpenBSD__ || defined _AIX || (defined _WIN32 && !defined __CYGWIN__)))
2705 /* This platform's <cmath> possibly defines signbit through a set of inline 2835 /* This platform's <cmath> possibly defines signbit through a set of inline
2706 functions. */ 2836 functions. */
2707_GL_MATH_CXX_REAL_FLOATING_DECL_2 (signbit, rpl_signbit, bool) 2837_GL_MATH_CXX_REAL_FLOATING_DECL_2 (signbit, rpl_signbit, bool)
@@ -2720,8 +2850,323 @@ _GL_WARN_REAL_FLOATING_DECL (signbit);
2720# endif 2850# endif
2721#endif 2851#endif
2722 2852
2853
2854#if @GNULIB_GETPAYLOADF@
2855# if @REPLACE_GETPAYLOADF@
2856# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2857# undef getpayloadf
2858# define getpayloadf rpl_getpayloadf
2859# endif
2860_GL_FUNCDECL_RPL (getpayloadf, float, (const float *), );
2861_GL_CXXALIAS_RPL (getpayloadf, float, (const float *));
2862# else
2863# if !@HAVE_GETPAYLOADF@
2864_GL_FUNCDECL_SYS (getpayloadf, float, (const float *), );
2865# endif
2866_GL_CXXALIAS_SYS (getpayloadf, float, (const float *));
2867# endif
2868_GL_CXXALIASWARN (getpayloadf);
2869#elif defined GNULIB_POSIXCHECK
2870# undef getpayloadf
2871# if HAVE_RAW_DECL_GETPAYLOADF
2872_GL_WARN_ON_USE (getpayloadf, "getpayloadf is unportable - "
2873 "use gnulib module getpayloadf for portability");
2874# endif
2875#endif
2876
2877#if @GNULIB_GETPAYLOAD@
2878# if @REPLACE_GETPAYLOAD@
2879# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2880# undef getpayload
2881# define getpayload rpl_getpayload
2882# endif
2883_GL_FUNCDECL_RPL (getpayload, double, (const double *), );
2884_GL_CXXALIAS_RPL (getpayload, double, (const double *));
2885# else
2886# if !@HAVE_GETPAYLOAD@
2887_GL_FUNCDECL_SYS (getpayload, double, (const double *), );
2888# endif
2889_GL_CXXALIAS_SYS (getpayload, double, (const double *));
2890# endif
2891_GL_CXXALIASWARN (getpayload);
2892#elif defined GNULIB_POSIXCHECK
2893# undef getpayload
2894# if HAVE_RAW_DECL_GETPAYLOAD
2895_GL_WARN_ON_USE (getpayload, "getpayload is unportable - "
2896 "use gnulib module getpayload for portability");
2897# endif
2898#endif
2899
2900#if @GNULIB_GETPAYLOADL@
2901# if @REPLACE_GETPAYLOADL@
2902# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2903# undef getpayloadl
2904# define getpayloadl rpl_getpayloadl
2905# endif
2906_GL_FUNCDECL_RPL (getpayloadl, long double, (const long double *), );
2907_GL_CXXALIAS_RPL (getpayloadl, long double, (const long double *));
2908# else
2909# if !@HAVE_GETPAYLOADL@
2910_GL_FUNCDECL_SYS (getpayloadl, long double, (const long double *), );
2911# endif
2912_GL_CXXALIAS_SYS (getpayloadl, long double, (const long double *));
2913# endif
2914_GL_CXXALIASWARN (getpayloadl);
2915#elif defined GNULIB_POSIXCHECK
2916# undef getpayloadl
2917# if HAVE_RAW_DECL_GETPAYLOADL
2918_GL_WARN_ON_USE (getpayloadl, "getpayloadl is unportable - "
2919 "use gnulib module getpayloadl for portability");
2920# endif
2921#endif
2922
2923
2924#if @GNULIB_SETPAYLOADF@
2925# if !@HAVE_SETPAYLOADF@
2926_GL_FUNCDECL_SYS (setpayloadf, int, (float *, float), );
2927# endif
2928_GL_CXXALIAS_SYS (setpayloadf, int, (float *, float));
2929_GL_CXXALIASWARN (setpayloadf);
2930#elif defined GNULIB_POSIXCHECK
2931# undef setpayloadf
2932# if HAVE_RAW_DECL_SETPAYLOADF
2933_GL_WARN_ON_USE (setpayloadf, "setpayloadf is unportable - "
2934 "use gnulib module setpayloadf for portability");
2935# endif
2936#endif
2937
2938#if @GNULIB_SETPAYLOAD@
2939# if !@HAVE_SETPAYLOAD@
2940_GL_FUNCDECL_SYS (setpayload, int, (double *, double), );
2941# endif
2942_GL_CXXALIAS_SYS (setpayload, int, (double *, double));
2943_GL_CXXALIASWARN (setpayload);
2944#elif defined GNULIB_POSIXCHECK
2945# undef setpayload
2946# if HAVE_RAW_DECL_SETPAYLOAD
2947_GL_WARN_ON_USE (setpayload, "setpayload is unportable - "
2948 "use gnulib module setpayload for portability");
2949# endif
2950#endif
2951
2952#if @GNULIB_SETPAYLOADL@
2953# if !@HAVE_SETPAYLOADL@
2954_GL_FUNCDECL_SYS (setpayloadl, int, (long double *, long double), );
2955# endif
2956_GL_CXXALIAS_SYS (setpayloadl, int, (long double *, long double));
2957_GL_CXXALIASWARN (setpayloadl);
2958#elif defined GNULIB_POSIXCHECK
2959# undef setpayloadl
2960# if HAVE_RAW_DECL_SETPAYLOADL
2961_GL_WARN_ON_USE (setpayloadl, "setpayloadl is unportable - "
2962 "use gnulib module setpayloadl for portability");
2963# endif
2964#endif
2965
2966
2967#if @GNULIB_SETPAYLOADSIGF@
2968# if !@HAVE_SETPAYLOADSIGF@
2969_GL_FUNCDECL_SYS (setpayloadsigf, int, (float *, float), );
2970# endif
2971_GL_CXXALIAS_SYS (setpayloadsigf, int, (float *, float));
2972_GL_CXXALIASWARN (setpayloadsigf);
2973#elif defined GNULIB_POSIXCHECK
2974# undef setpayloadsigf
2975# if HAVE_RAW_DECL_SETPAYLOADSIGF
2976_GL_WARN_ON_USE (setpayloadsigf, "setpayloadsigf is unportable - "
2977 "use gnulib module setpayloadsigf for portability");
2978# endif
2979#endif
2980
2981#if @GNULIB_SETPAYLOADSIG@
2982# if !@HAVE_SETPAYLOADSIG@
2983_GL_FUNCDECL_SYS (setpayloadsig, int, (double *, double), );
2984# endif
2985_GL_CXXALIAS_SYS (setpayloadsig, int, (double *, double));
2986_GL_CXXALIASWARN (setpayloadsig);
2987#elif defined GNULIB_POSIXCHECK
2988# undef setpayloadsig
2989# if HAVE_RAW_DECL_SETPAYLOADSIG
2990_GL_WARN_ON_USE (setpayloadsig, "setpayloadsig is unportable - "
2991 "use gnulib module setpayloadsig for portability");
2992# endif
2993#endif
2994
2995#if @GNULIB_SETPAYLOADSIGL@
2996# if !@HAVE_SETPAYLOADSIGL@
2997_GL_FUNCDECL_SYS (setpayloadsigl, int, (long double *, long double), );
2998# endif
2999_GL_CXXALIAS_SYS (setpayloadsigl, int, (long double *, long double));
3000_GL_CXXALIASWARN (setpayloadsigl);
3001#elif defined GNULIB_POSIXCHECK
3002# undef setpayloadsigl
3003# if HAVE_RAW_DECL_SETPAYLOADSIGL
3004_GL_WARN_ON_USE (setpayloadsigl, "setpayloadsigl is unportable - "
3005 "use gnulib module setpayloadsigl for portability");
3006# endif
3007#endif
3008
3009
3010#if @GNULIB_TOTALORDERF@
3011# if @REPLACE_TOTALORDERF@
3012# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
3013# undef totalorderf
3014# define totalorderf rpl_totalorderf
3015# endif
3016_GL_FUNCDECL_RPL (totalorderf, int, (float const *, float const *), );
3017_GL_CXXALIAS_RPL (totalorderf, int, (float const *, float const *));
3018# else
3019# if !@HAVE_TOTALORDERF@
3020_GL_FUNCDECL_SYS (totalorderf, int, (float const *, float const *), );
3021# endif
3022_GL_CXXALIAS_SYS (totalorderf, int, (float const *, float const *));
3023# endif
3024_GL_CXXALIASWARN (totalorderf);
3025#elif defined GNULIB_POSIXCHECK
3026# undef totalorderf
3027# if HAVE_RAW_DECL_TOTALORDERF
3028_GL_WARN_ON_USE (totalorderf, "totalorderf is unportable - "
3029 "use gnulib module totalorderf for portability");
3030# endif
3031#endif
3032
3033#if @GNULIB_TOTALORDER@
3034# if @REPLACE_TOTALORDER@
3035# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
3036# undef totalorder
3037# define totalorder rpl_totalorder
3038# endif
3039_GL_FUNCDECL_RPL (totalorder, int, (double const *, double const *), );
3040_GL_CXXALIAS_RPL (totalorder, int, (double const *, double const *));
3041# else
3042# if !@HAVE_TOTALORDER@
3043_GL_FUNCDECL_SYS (totalorder, int, (double const *, double const *), );
3044# endif
3045_GL_CXXALIAS_SYS (totalorder, int, (double const *, double const *));
3046# endif
3047# if __GLIBC__ >= 2
3048_GL_CXXALIASWARN1 (totalorder, int, (double const *, double const *));
3049# endif
3050#elif defined GNULIB_POSIXCHECK
3051# undef totalorder
3052# if HAVE_RAW_DECL_TOTALORDER
3053_GL_WARN_ON_USE (totalorder, "totalorder is unportable - "
3054 "use gnulib module totalorder for portability");
3055# endif
3056#endif
3057
3058#if @GNULIB_TOTALORDERL@
3059# if @REPLACE_TOTALORDERL@
3060# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
3061# undef totalorderl
3062# define totalorderl rpl_totalorderl
3063# endif
3064_GL_FUNCDECL_RPL (totalorderl, int,
3065 (long double const *, long double const *), );
3066_GL_CXXALIAS_RPL (totalorderl, int,
3067 (long double const *, long double const *));
3068# else
3069# if !@HAVE_TOTALORDERL@
3070_GL_FUNCDECL_SYS (totalorderl, int,
3071 (long double const *, long double const *), );
3072# endif
3073_GL_CXXALIAS_SYS (totalorderl, int,
3074 (long double const *, long double const *));
3075# endif
3076_GL_CXXALIASWARN (totalorderl);
3077#elif defined GNULIB_POSIXCHECK
3078# undef totalorderl
3079# if HAVE_RAW_DECL_TOTALORDERL
3080_GL_WARN_ON_USE (totalorderl, "totalorderl is unportable - "
3081 "use gnulib module totalorderl for portability");
3082# endif
3083#endif
3084
3085
3086#if @GNULIB_TOTALORDERMAGF@
3087# if @REPLACE_TOTALORDERMAGF@
3088# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
3089# undef totalordermagf
3090# define totalordermagf rpl_totalordermagf
3091# endif
3092_GL_FUNCDECL_RPL (totalordermagf, int, (float const *, float const *), );
3093_GL_CXXALIAS_RPL (totalordermagf, int, (float const *, float const *));
3094# else
3095# if !@HAVE_TOTALORDERMAGF@
3096_GL_FUNCDECL_SYS (totalordermagf, int, (float const *, float const *), );
3097# endif
3098_GL_CXXALIAS_SYS (totalordermagf, int, (float const *, float const *));
3099# endif
3100# if __GLIBC__ >= 2
3101_GL_CXXALIASWARN1 (totalordermagf, int, (float const *, float const *));
3102# endif
3103#elif defined GNULIB_POSIXCHECK
3104# undef totalordermagf
3105# if HAVE_RAW_DECL_TOTALORDERMAGF
3106_GL_WARN_ON_USE (totalordermagf, "totalordermagf is unportable - "
3107 "use gnulib module totalordermagf for portability");
3108# endif
3109#endif
3110
3111#if @GNULIB_TOTALORDERMAG@
3112# if @REPLACE_TOTALORDERMAG@
3113# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
3114# undef totalordermag
3115# define totalordermag rpl_totalordermag
3116# endif
3117_GL_FUNCDECL_RPL (totalordermag, int, (double const *, double const *), );
3118_GL_CXXALIAS_RPL (totalordermag, int, (double const *, double const *));
3119# else
3120# if !@HAVE_TOTALORDERMAG@
3121_GL_FUNCDECL_SYS (totalordermag, int, (double const *, double const *), );
3122# endif
3123_GL_CXXALIAS_SYS (totalordermag, int, (double const *, double const *));
3124# endif
3125# if __GLIBC__ >= 2
3126_GL_CXXALIASWARN1 (totalordermag, int, (double const *, double const *));
3127# endif
3128#elif defined GNULIB_POSIXCHECK
3129# undef totalordermag
3130# if HAVE_RAW_DECL_TOTALORDERMAG
3131_GL_WARN_ON_USE (totalordermag, "totalordermag is unportable - "
3132 "use gnulib module totalordermag for portability");
3133# endif
3134#endif
3135
3136#if @GNULIB_TOTALORDERMAGL@
3137# if @REPLACE_TOTALORDERMAGL@
3138# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
3139# undef totalordermagl
3140# define totalordermagl rpl_totalordermagl
3141# endif
3142_GL_FUNCDECL_RPL (totalordermagl, int,
3143 (long double const *, long double const *), );
3144_GL_CXXALIAS_RPL (totalordermagl, int,
3145 (long double const *, long double const *));
3146# else
3147# if !@HAVE_TOTALORDERMAGL@
3148_GL_FUNCDECL_SYS (totalordermagl, int,
3149 (long double const *, long double const *), );
3150# endif
3151_GL_CXXALIAS_SYS (totalordermagl, int,
3152 (long double const *, long double const *));
3153# endif
3154# if __GLIBC__ >= 2
3155_GL_CXXALIASWARN1 (totalordermagl, int,
3156 (long double const *, long double const *));
3157# endif
3158#elif defined GNULIB_POSIXCHECK
3159# undef totalordermagl
3160# if HAVE_RAW_DECL_TOTALORDERMAGL
3161_GL_WARN_ON_USE (totalordermagl, "totalordermagl is unportable - "
3162 "use gnulib module totalordermagl for portability");
3163# endif
3164#endif
3165
3166
2723_GL_INLINE_HEADER_END 3167_GL_INLINE_HEADER_END
2724 3168
2725#endif /* _@GUARD_PREFIX@_MATH_H */ 3169#endif /* _@GUARD_PREFIX@_MATH_H */
2726#endif /* _GL_INCLUDING_MATH_H */ 3170#endif /* _GL_INCLUDING_MATH_H */
2727#endif /* _@GUARD_PREFIX@_MATH_H */ 3171#endif /* _@GUARD_PREFIX@_MATH_H */
3172#endif