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.h487
1 files changed, 282 insertions, 205 deletions
diff --git a/gl/math.in.h b/gl/math.in.h
index 96d0da44..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-2024 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
@@ -160,12 +160,23 @@ static void (*_gl_math_fix_itold) (long double *, int) = _Qp_itoq;
160#endif 160#endif
161 161
162 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
163/* POSIX allows platforms that don't support NAN. But all major 173/* POSIX allows platforms that don't support NAN. But all major
164 machines in the past 15 years have supported something close to 174 machines in the past 15 years have supported something close to
165 IEEE NaN, so we define this unconditionally. We also must define 175 IEEE NaN, so we define this unconditionally. We also must define
166 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
167 as a function pointer rather than a floating point constant. */ 177 as a function pointer rather than a floating point constant.
168#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__
169# if !GNULIB_defined_NAN 180# if !GNULIB_defined_NAN
170# undef NAN 181# undef NAN
171 /* 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
@@ -178,6 +189,8 @@ _NaN ()
178 return zero / zero; 189 return zero / zero;
179} 190}
180# define NAN (_NaN()) 191# define NAN (_NaN())
192# elif defined __GNUC__ || defined __clang__
193# define NAN (__builtin_nanf (""))
181# else 194# else
182# define NAN (0.0f / 0.0f) 195# define NAN (0.0f / 0.0f)
183# endif 196# endif
@@ -197,46 +210,46 @@ _NaN ()
197#endif 210#endif
198 211
199/* HUGE_VALF is a 'float' Infinity. */ 212/* HUGE_VALF is a 'float' Infinity. */
200#ifndef HUGE_VALF 213#if !defined HUGE_VALF || (defined __FreeBSD__ && __FreeBSD__ < 6)
214# undef HUGE_VALF
201# if defined _MSC_VER 215# if defined _MSC_VER
202/* 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. */
203# define HUGE_VALF (1e25f * 1e25f) 217# define HUGE_VALF (1e25f * 1e25f)
218# elif defined __GNUC__ || defined __clang__
219# define HUGE_VALF (__builtin_inff ())
204# else 220# else
205# define HUGE_VALF (1.0f / 0.0f) 221# define HUGE_VALF (1.0f / 0.0f)
206# endif 222# endif
207#endif 223#endif
208 224
209/* HUGE_VAL is a 'double' Infinity. */ 225/* HUGE_VAL is a 'double' Infinity. */
210#ifndef HUGE_VAL 226#if !defined HUGE_VAL || (defined __FreeBSD__ && __FreeBSD__ < 6) || defined _AIX
227# undef HUGE_VAL
211# if defined _MSC_VER 228# if defined _MSC_VER
212/* 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. */
213# define HUGE_VAL (1e250 * 1e250) 230# define HUGE_VAL (1e250 * 1e250)
231# elif defined __GNUC__ || defined __clang__
232# define HUGE_VAL (__builtin_inf ())
214# else 233# else
215# define HUGE_VAL (1.0 / 0.0) 234# define HUGE_VAL (1.0 / 0.0)
216# endif 235# endif
217#endif 236#endif
218 237
219/* HUGE_VALL is a 'long double' Infinity. */ 238/* HUGE_VALL is a 'long double' Infinity. */
220#ifndef HUGE_VALL 239#if !defined HUGE_VALL || (defined __FreeBSD__ && __FreeBSD__ < 6) || defined _AIX
240# undef HUGE_VALL
221# if defined _MSC_VER 241# if defined _MSC_VER
222/* 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. */
223# define HUGE_VALL (1e250L * 1e250L) 243# define HUGE_VALL (1e250L * 1e250L)
244# elif defined __GNUC__ || defined __clang__
245# define HUGE_VALL (__builtin_infl ())
224# else 246# else
225# define HUGE_VALL (1.0L / 0.0L) 247# define HUGE_VALL (1.0L / 0.0L)
226# endif 248# endif
227#endif 249#endif
228 250
229 251
230#if defined FP_ILOGB0 && defined FP_ILOGBNAN 252#if !(defined FP_ILOGB0 && defined FP_ILOGBNAN)
231 /* Ensure FP_ILOGB0 and FP_ILOGBNAN are correct. */
232# if defined __HAIKU__
233 /* Haiku: match what ilogb() does */
234# undef FP_ILOGB0
235# undef FP_ILOGBNAN
236# define FP_ILOGB0 (- 2147483647 - 1) /* INT_MIN */
237# define FP_ILOGBNAN (- 2147483647 - 1) /* INT_MIN */
238# endif
239#else
240 /* Ensure FP_ILOGB0 and FP_ILOGBNAN are defined. */ 253 /* Ensure FP_ILOGB0 and FP_ILOGBNAN are defined. */
241# if defined __NetBSD__ || defined __sgi 254# if defined __NetBSD__ || defined __sgi
242 /* NetBSD, IRIX 6.5: match what ilogb() does */ 255 /* NetBSD, IRIX 6.5: match what ilogb() does */
@@ -264,12 +277,12 @@ _NaN ()
264# undef acosf 277# undef acosf
265# define acosf rpl_acosf 278# define acosf rpl_acosf
266# endif 279# endif
267_GL_FUNCDECL_RPL (acosf, float, (float x)); 280_GL_FUNCDECL_RPL (acosf, float, (float x), );
268_GL_CXXALIAS_RPL (acosf, float, (float x)); 281_GL_CXXALIAS_RPL (acosf, float, (float x));
269# else 282# else
270# if !@HAVE_ACOSF@ 283# if !@HAVE_ACOSF@
271# undef acosf 284# undef acosf
272_GL_FUNCDECL_SYS (acosf, float, (float x)); 285_GL_FUNCDECL_SYS (acosf, float, (float x), );
273# endif 286# endif
274_GL_CXXALIAS_SYS (acosf, float, (float x)); 287_GL_CXXALIAS_SYS (acosf, float, (float x));
275# endif 288# endif
@@ -285,7 +298,7 @@ _GL_WARN_ON_USE (acosf, "acosf is unportable - "
285#if @GNULIB_ACOSL@ 298#if @GNULIB_ACOSL@
286# if !@HAVE_ACOSL@ || !@HAVE_DECL_ACOSL@ 299# if !@HAVE_ACOSL@ || !@HAVE_DECL_ACOSL@
287# undef acosl 300# undef acosl
288_GL_FUNCDECL_SYS (acosl, long double, (long double x)); 301_GL_FUNCDECL_SYS (acosl, long double, (long double x), );
289# endif 302# endif
290_GL_CXXALIAS_SYS (acosl, long double, (long double x)); 303_GL_CXXALIAS_SYS (acosl, long double, (long double x));
291# if __GLIBC__ >= 2 304# if __GLIBC__ >= 2
@@ -306,12 +319,12 @@ _GL_WARN_ON_USE (acosl, "acosl is unportable - "
306# undef asinf 319# undef asinf
307# define asinf rpl_asinf 320# define asinf rpl_asinf
308# endif 321# endif
309_GL_FUNCDECL_RPL (asinf, float, (float x)); 322_GL_FUNCDECL_RPL (asinf, float, (float x), );
310_GL_CXXALIAS_RPL (asinf, float, (float x)); 323_GL_CXXALIAS_RPL (asinf, float, (float x));
311# else 324# else
312# if !@HAVE_ASINF@ 325# if !@HAVE_ASINF@
313# undef asinf 326# undef asinf
314_GL_FUNCDECL_SYS (asinf, float, (float x)); 327_GL_FUNCDECL_SYS (asinf, float, (float x), );
315# endif 328# endif
316_GL_CXXALIAS_SYS (asinf, float, (float x)); 329_GL_CXXALIAS_SYS (asinf, float, (float x));
317# endif 330# endif
@@ -327,7 +340,7 @@ _GL_WARN_ON_USE (asinf, "asinf is unportable - "
327#if @GNULIB_ASINL@ 340#if @GNULIB_ASINL@
328# if !@HAVE_ASINL@ || !@HAVE_DECL_ASINL@ 341# if !@HAVE_ASINL@ || !@HAVE_DECL_ASINL@
329# undef asinl 342# undef asinl
330_GL_FUNCDECL_SYS (asinl, long double, (long double x)); 343_GL_FUNCDECL_SYS (asinl, long double, (long double x), );
331# endif 344# endif
332_GL_CXXALIAS_SYS (asinl, long double, (long double x)); 345_GL_CXXALIAS_SYS (asinl, long double, (long double x));
333# if __GLIBC__ >= 2 346# if __GLIBC__ >= 2
@@ -348,12 +361,12 @@ _GL_WARN_ON_USE (asinl, "asinl is unportable - "
348# undef atanf 361# undef atanf
349# define atanf rpl_atanf 362# define atanf rpl_atanf
350# endif 363# endif
351_GL_FUNCDECL_RPL (atanf, float, (float x)); 364_GL_FUNCDECL_RPL (atanf, float, (float x), );
352_GL_CXXALIAS_RPL (atanf, float, (float x)); 365_GL_CXXALIAS_RPL (atanf, float, (float x));
353# else 366# else
354# if !@HAVE_ATANF@ 367# if !@HAVE_ATANF@
355# undef atanf 368# undef atanf
356_GL_FUNCDECL_SYS (atanf, float, (float x)); 369_GL_FUNCDECL_SYS (atanf, float, (float x), );
357# endif 370# endif
358_GL_CXXALIAS_SYS (atanf, float, (float x)); 371_GL_CXXALIAS_SYS (atanf, float, (float x));
359# endif 372# endif
@@ -369,7 +382,7 @@ _GL_WARN_ON_USE (atanf, "atanf is unportable - "
369#if @GNULIB_ATANL@ 382#if @GNULIB_ATANL@
370# if !@HAVE_ATANL@ || !@HAVE_DECL_ATANL@ 383# if !@HAVE_ATANL@ || !@HAVE_DECL_ATANL@
371# undef atanl 384# undef atanl
372_GL_FUNCDECL_SYS (atanl, long double, (long double x)); 385_GL_FUNCDECL_SYS (atanl, long double, (long double x), );
373# endif 386# endif
374_GL_CXXALIAS_SYS (atanl, long double, (long double x)); 387_GL_CXXALIAS_SYS (atanl, long double, (long double x));
375# if __GLIBC__ >= 2 388# if __GLIBC__ >= 2
@@ -390,12 +403,12 @@ _GL_WARN_ON_USE (atanl, "atanl is unportable - "
390# undef atan2f 403# undef atan2f
391# define atan2f rpl_atan2f 404# define atan2f rpl_atan2f
392# endif 405# endif
393_GL_FUNCDECL_RPL (atan2f, float, (float y, float x)); 406_GL_FUNCDECL_RPL (atan2f, float, (float y, float x), );
394_GL_CXXALIAS_RPL (atan2f, float, (float y, float x)); 407_GL_CXXALIAS_RPL (atan2f, float, (float y, float x));
395# else 408# else
396# if !@HAVE_ATAN2F@ 409# if !@HAVE_ATAN2F@
397# undef atan2f 410# undef atan2f
398_GL_FUNCDECL_SYS (atan2f, float, (float y, float x)); 411_GL_FUNCDECL_SYS (atan2f, float, (float y, float x), );
399# endif 412# endif
400_GL_CXXALIAS_SYS (atan2f, float, (float y, float x)); 413_GL_CXXALIAS_SYS (atan2f, float, (float y, float x));
401# endif 414# endif
@@ -415,11 +428,11 @@ _GL_WARN_ON_USE (atan2f, "atan2f is unportable - "
415# undef cbrtf 428# undef cbrtf
416# define cbrtf rpl_cbrtf 429# define cbrtf rpl_cbrtf
417# endif 430# endif
418_GL_FUNCDECL_RPL (cbrtf, float, (float x)); 431_GL_FUNCDECL_RPL (cbrtf, float, (float x), );
419_GL_CXXALIAS_RPL (cbrtf, float, (float x)); 432_GL_CXXALIAS_RPL (cbrtf, float, (float x));
420# else 433# else
421# if !@HAVE_DECL_CBRTF@ 434# if !@HAVE_DECL_CBRTF@
422_GL_FUNCDECL_SYS (cbrtf, float, (float x)); 435_GL_FUNCDECL_SYS (cbrtf, float, (float x), );
423# endif 436# endif
424_GL_CXXALIAS_SYS (cbrtf, float, (float x)); 437_GL_CXXALIAS_SYS (cbrtf, float, (float x));
425# endif 438# endif
@@ -434,7 +447,7 @@ _GL_WARN_ON_USE (cbrtf, "cbrtf is unportable - "
434 447
435#if @GNULIB_CBRT@ 448#if @GNULIB_CBRT@
436# if !@HAVE_CBRT@ 449# if !@HAVE_CBRT@
437_GL_FUNCDECL_SYS (cbrt, double, (double x)); 450_GL_FUNCDECL_SYS (cbrt, double, (double x), );
438# endif 451# endif
439_GL_CXXALIAS_SYS (cbrt, double, (double x)); 452_GL_CXXALIAS_SYS (cbrt, double, (double x));
440# if __GLIBC__ >= 2 453# if __GLIBC__ >= 2
@@ -454,11 +467,11 @@ _GL_WARN_ON_USE (cbrt, "cbrt is unportable - "
454# undef cbrtl 467# undef cbrtl
455# define cbrtl rpl_cbrtl 468# define cbrtl rpl_cbrtl
456# endif 469# endif
457_GL_FUNCDECL_RPL (cbrtl, long double, (long double x)); 470_GL_FUNCDECL_RPL (cbrtl, long double, (long double x), );
458_GL_CXXALIAS_RPL (cbrtl, long double, (long double x)); 471_GL_CXXALIAS_RPL (cbrtl, long double, (long double x));
459# else 472# else
460# if !@HAVE_DECL_CBRTL@ 473# if !@HAVE_DECL_CBRTL@
461_GL_FUNCDECL_SYS (cbrtl, long double, (long double x)); 474_GL_FUNCDECL_SYS (cbrtl, long double, (long double x), );
462# endif 475# endif
463_GL_CXXALIAS_SYS (cbrtl, long double, (long double x)); 476_GL_CXXALIAS_SYS (cbrtl, long double, (long double x));
464# endif 477# endif
@@ -480,12 +493,12 @@ _GL_WARN_ON_USE (cbrtl, "cbrtl is unportable - "
480# undef ceilf 493# undef ceilf
481# define ceilf rpl_ceilf 494# define ceilf rpl_ceilf
482# endif 495# endif
483_GL_FUNCDECL_RPL (ceilf, float, (float x)); 496_GL_FUNCDECL_RPL (ceilf, float, (float x), );
484_GL_CXXALIAS_RPL (ceilf, float, (float x)); 497_GL_CXXALIAS_RPL (ceilf, float, (float x));
485# else 498# else
486# if !@HAVE_DECL_CEILF@ 499# if !@HAVE_DECL_CEILF@
487# undef ceilf 500# undef ceilf
488_GL_FUNCDECL_SYS (ceilf, float, (float x)); 501_GL_FUNCDECL_SYS (ceilf, float, (float x), );
489# endif 502# endif
490_GL_CXXALIAS_SYS (ceilf, float, (float x)); 503_GL_CXXALIAS_SYS (ceilf, float, (float x));
491# endif 504# endif
@@ -504,7 +517,7 @@ _GL_WARN_ON_USE (ceilf, "ceilf is unportable - "
504# undef ceil 517# undef ceil
505# define ceil rpl_ceil 518# define ceil rpl_ceil
506# endif 519# endif
507_GL_FUNCDECL_RPL (ceil, double, (double x)); 520_GL_FUNCDECL_RPL (ceil, double, (double x), );
508_GL_CXXALIAS_RPL (ceil, double, (double x)); 521_GL_CXXALIAS_RPL (ceil, double, (double x));
509# else 522# else
510_GL_CXXALIAS_SYS (ceil, double, (double x)); 523_GL_CXXALIAS_SYS (ceil, double, (double x));
@@ -520,12 +533,12 @@ _GL_CXXALIASWARN1 (ceil, double, (double x));
520# undef ceill 533# undef ceill
521# define ceill rpl_ceill 534# define ceill rpl_ceill
522# endif 535# endif
523_GL_FUNCDECL_RPL (ceill, long double, (long double x)); 536_GL_FUNCDECL_RPL (ceill, long double, (long double x), );
524_GL_CXXALIAS_RPL (ceill, long double, (long double x)); 537_GL_CXXALIAS_RPL (ceill, long double, (long double x));
525# else 538# else
526# if !@HAVE_DECL_CEILL@ 539# if !@HAVE_DECL_CEILL@
527# undef ceill 540# undef ceill
528_GL_FUNCDECL_SYS (ceill, long double, (long double x)); 541_GL_FUNCDECL_SYS (ceill, long double, (long double x), );
529# endif 542# endif
530_GL_CXXALIAS_SYS (ceill, long double, (long double x)); 543_GL_CXXALIAS_SYS (ceill, long double, (long double x));
531# endif 544# endif
@@ -544,7 +557,7 @@ _GL_WARN_ON_USE (ceill, "ceill is unportable - "
544#if @GNULIB_COPYSIGNF@ 557#if @GNULIB_COPYSIGNF@
545# if !@HAVE_DECL_COPYSIGNF@ 558# if !@HAVE_DECL_COPYSIGNF@
546# undef copysignf 559# undef copysignf
547_GL_FUNCDECL_SYS (copysignf, float, (float x, float y)); 560_GL_FUNCDECL_SYS (copysignf, float, (float x, float y), );
548# endif 561# endif
549_GL_CXXALIAS_SYS (copysignf, float, (float x, float y)); 562_GL_CXXALIAS_SYS (copysignf, float, (float x, float y));
550_GL_CXXALIASWARN (copysignf); 563_GL_CXXALIASWARN (copysignf);
@@ -558,7 +571,7 @@ _GL_WARN_ON_USE (copysignf, "copysignf is unportable - "
558 571
559#if @GNULIB_COPYSIGN@ 572#if @GNULIB_COPYSIGN@
560# if !@HAVE_COPYSIGN@ 573# if !@HAVE_COPYSIGN@
561_GL_FUNCDECL_SYS (copysign, double, (double x, double y)); 574_GL_FUNCDECL_SYS (copysign, double, (double x, double y), );
562# endif 575# endif
563_GL_CXXALIAS_SYS (copysign, double, (double x, double y)); 576_GL_CXXALIAS_SYS (copysign, double, (double x, double y));
564# if __GLIBC__ >= 2 577# if __GLIBC__ >= 2
@@ -574,7 +587,7 @@ _GL_WARN_ON_USE (copysign, "copysign is unportable - "
574 587
575#if @GNULIB_COPYSIGNL@ 588#if @GNULIB_COPYSIGNL@
576# if !@HAVE_COPYSIGNL@ 589# if !@HAVE_COPYSIGNL@
577_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), );
578# endif 591# endif
579_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));
580# if __GLIBC__ >= 2 593# if __GLIBC__ >= 2
@@ -595,12 +608,12 @@ _GL_WARN_ON_USE (copysign, "copysignl is unportable - "
595# undef cosf 608# undef cosf
596# define cosf rpl_cosf 609# define cosf rpl_cosf
597# endif 610# endif
598_GL_FUNCDECL_RPL (cosf, float, (float x)); 611_GL_FUNCDECL_RPL (cosf, float, (float x), );
599_GL_CXXALIAS_RPL (cosf, float, (float x)); 612_GL_CXXALIAS_RPL (cosf, float, (float x));
600# else 613# else
601# if !@HAVE_COSF@ 614# if !@HAVE_COSF@
602# undef cosf 615# undef cosf
603_GL_FUNCDECL_SYS (cosf, float, (float x)); 616_GL_FUNCDECL_SYS (cosf, float, (float x), );
604# endif 617# endif
605_GL_CXXALIAS_SYS (cosf, float, (float x)); 618_GL_CXXALIAS_SYS (cosf, float, (float x));
606# endif 619# endif
@@ -616,7 +629,7 @@ _GL_WARN_ON_USE (cosf, "cosf is unportable - "
616#if @GNULIB_COSL@ 629#if @GNULIB_COSL@
617# if !@HAVE_COSL@ || !@HAVE_DECL_COSL@ 630# if !@HAVE_COSL@ || !@HAVE_DECL_COSL@
618# undef cosl 631# undef cosl
619_GL_FUNCDECL_SYS (cosl, long double, (long double x)); 632_GL_FUNCDECL_SYS (cosl, long double, (long double x), );
620# endif 633# endif
621_GL_CXXALIAS_SYS (cosl, long double, (long double x)); 634_GL_CXXALIAS_SYS (cosl, long double, (long double x));
622# if __GLIBC__ >= 2 635# if __GLIBC__ >= 2
@@ -637,12 +650,12 @@ _GL_WARN_ON_USE (cosl, "cosl is unportable - "
637# undef coshf 650# undef coshf
638# define coshf rpl_coshf 651# define coshf rpl_coshf
639# endif 652# endif
640_GL_FUNCDECL_RPL (coshf, float, (float x)); 653_GL_FUNCDECL_RPL (coshf, float, (float x), );
641_GL_CXXALIAS_RPL (coshf, float, (float x)); 654_GL_CXXALIAS_RPL (coshf, float, (float x));
642# else 655# else
643# if !@HAVE_COSHF@ 656# if !@HAVE_COSHF@
644# undef coshf 657# undef coshf
645_GL_FUNCDECL_SYS (coshf, float, (float x)); 658_GL_FUNCDECL_SYS (coshf, float, (float x), );
646# endif 659# endif
647_GL_CXXALIAS_SYS (coshf, float, (float x)); 660_GL_CXXALIAS_SYS (coshf, float, (float x));
648# endif 661# endif
@@ -662,12 +675,12 @@ _GL_WARN_ON_USE (coshf, "coshf is unportable - "
662# undef expf 675# undef expf
663# define expf rpl_expf 676# define expf rpl_expf
664# endif 677# endif
665_GL_FUNCDECL_RPL (expf, float, (float x)); 678_GL_FUNCDECL_RPL (expf, float, (float x), );
666_GL_CXXALIAS_RPL (expf, float, (float x)); 679_GL_CXXALIAS_RPL (expf, float, (float x));
667# else 680# else
668# if !@HAVE_EXPF@ 681# if !@HAVE_EXPF@
669# undef expf 682# undef expf
670_GL_FUNCDECL_SYS (expf, float, (float x)); 683_GL_FUNCDECL_SYS (expf, float, (float x), );
671# endif 684# endif
672_GL_CXXALIAS_SYS (expf, float, (float x)); 685_GL_CXXALIAS_SYS (expf, float, (float x));
673# endif 686# endif
@@ -686,12 +699,12 @@ _GL_WARN_ON_USE (expf, "expf is unportable - "
686# undef expl 699# undef expl
687# define expl rpl_expl 700# define expl rpl_expl
688# endif 701# endif
689_GL_FUNCDECL_RPL (expl, long double, (long double x)); 702_GL_FUNCDECL_RPL (expl, long double, (long double x), );
690_GL_CXXALIAS_RPL (expl, long double, (long double x)); 703_GL_CXXALIAS_RPL (expl, long double, (long double x));
691# else 704# else
692# if !@HAVE_EXPL@ || !@HAVE_DECL_EXPL@ 705# if !@HAVE_EXPL@ || !@HAVE_DECL_EXPL@
693# undef expl 706# undef expl
694_GL_FUNCDECL_SYS (expl, long double, (long double x)); 707_GL_FUNCDECL_SYS (expl, long double, (long double x), );
695# endif 708# endif
696_GL_CXXALIAS_SYS (expl, long double, (long double x)); 709_GL_CXXALIAS_SYS (expl, long double, (long double x));
697# endif 710# endif
@@ -709,7 +722,7 @@ _GL_WARN_ON_USE (expl, "expl is unportable - "
709 722
710#if @GNULIB_EXP2F@ 723#if @GNULIB_EXP2F@
711# if !@HAVE_DECL_EXP2F@ 724# if !@HAVE_DECL_EXP2F@
712_GL_FUNCDECL_SYS (exp2f, float, (float x)); 725_GL_FUNCDECL_SYS (exp2f, float, (float x), );
713# endif 726# endif
714_GL_CXXALIAS_SYS (exp2f, float, (float x)); 727_GL_CXXALIAS_SYS (exp2f, float, (float x));
715_GL_CXXALIASWARN (exp2f); 728_GL_CXXALIASWARN (exp2f);
@@ -727,11 +740,11 @@ _GL_WARN_ON_USE (exp2f, "exp2f is unportable - "
727# undef exp2 740# undef exp2
728# define exp2 rpl_exp2 741# define exp2 rpl_exp2
729# endif 742# endif
730_GL_FUNCDECL_RPL (exp2, double, (double x)); 743_GL_FUNCDECL_RPL (exp2, double, (double x), );
731_GL_CXXALIAS_RPL (exp2, double, (double x)); 744_GL_CXXALIAS_RPL (exp2, double, (double x));
732# else 745# else
733# if !@HAVE_DECL_EXP2@ 746# if !@HAVE_DECL_EXP2@
734_GL_FUNCDECL_SYS (exp2, double, (double x)); 747_GL_FUNCDECL_SYS (exp2, double, (double x), );
735# endif 748# endif
736_GL_CXXALIAS_SYS (exp2, double, (double x)); 749_GL_CXXALIAS_SYS (exp2, double, (double x));
737# endif 750# endif
@@ -752,12 +765,12 @@ _GL_WARN_ON_USE (exp2, "exp2 is unportable - "
752# undef exp2l 765# undef exp2l
753# define exp2l rpl_exp2l 766# define exp2l rpl_exp2l
754# endif 767# endif
755_GL_FUNCDECL_RPL (exp2l, long double, (long double x)); 768_GL_FUNCDECL_RPL (exp2l, long double, (long double x), );
756_GL_CXXALIAS_RPL (exp2l, long double, (long double x)); 769_GL_CXXALIAS_RPL (exp2l, long double, (long double x));
757# else 770# else
758# if !@HAVE_DECL_EXP2L@ 771# if !@HAVE_DECL_EXP2L@
759# undef exp2l 772# undef exp2l
760_GL_FUNCDECL_SYS (exp2l, long double, (long double x)); 773_GL_FUNCDECL_SYS (exp2l, long double, (long double x), );
761# endif 774# endif
762_GL_CXXALIAS_SYS (exp2l, long double, (long double x)); 775_GL_CXXALIAS_SYS (exp2l, long double, (long double x));
763# endif 776# endif
@@ -779,11 +792,11 @@ _GL_WARN_ON_USE (exp2l, "exp2l is unportable - "
779# undef expm1f 792# undef expm1f
780# define expm1f rpl_expm1f 793# define expm1f rpl_expm1f
781# endif 794# endif
782_GL_FUNCDECL_RPL (expm1f, float, (float x)); 795_GL_FUNCDECL_RPL (expm1f, float, (float x), );
783_GL_CXXALIAS_RPL (expm1f, float, (float x)); 796_GL_CXXALIAS_RPL (expm1f, float, (float x));
784# else 797# else
785# if !@HAVE_EXPM1F@ 798# if !@HAVE_EXPM1F@
786_GL_FUNCDECL_SYS (expm1f, float, (float x)); 799_GL_FUNCDECL_SYS (expm1f, float, (float x), );
787# endif 800# endif
788_GL_CXXALIAS_SYS (expm1f, float, (float x)); 801_GL_CXXALIAS_SYS (expm1f, float, (float x));
789# endif 802# endif
@@ -802,11 +815,11 @@ _GL_WARN_ON_USE (expm1f, "expm1f is unportable - "
802# undef expm1 815# undef expm1
803# define expm1 rpl_expm1 816# define expm1 rpl_expm1
804# endif 817# endif
805_GL_FUNCDECL_RPL (expm1, double, (double x)); 818_GL_FUNCDECL_RPL (expm1, double, (double x), );
806_GL_CXXALIAS_RPL (expm1, double, (double x)); 819_GL_CXXALIAS_RPL (expm1, double, (double x));
807# else 820# else
808# if !@HAVE_EXPM1@ 821# if !@HAVE_EXPM1@
809_GL_FUNCDECL_SYS (expm1, double, (double x)); 822_GL_FUNCDECL_SYS (expm1, double, (double x), );
810# endif 823# endif
811_GL_CXXALIAS_SYS (expm1, double, (double x)); 824_GL_CXXALIAS_SYS (expm1, double, (double x));
812# endif 825# endif
@@ -827,13 +840,13 @@ _GL_WARN_ON_USE (expm1, "expm1 is unportable - "
827# undef expm1l 840# undef expm1l
828# define expm1l rpl_expm1l 841# define expm1l rpl_expm1l
829# endif 842# endif
830_GL_FUNCDECL_RPL (expm1l, long double, (long double x)); 843_GL_FUNCDECL_RPL (expm1l, long double, (long double x), );
831_GL_CXXALIAS_RPL (expm1l, long double, (long double x)); 844_GL_CXXALIAS_RPL (expm1l, long double, (long double x));
832# else 845# else
833# if !@HAVE_DECL_EXPM1L@ 846# if !@HAVE_DECL_EXPM1L@
834# undef expm1l 847# undef expm1l
835# if !(defined __cplusplus && defined _AIX) 848# if !(defined __cplusplus && defined _AIX)
836_GL_FUNCDECL_SYS (expm1l, long double, (long double x)); 849_GL_FUNCDECL_SYS (expm1l, long double, (long double x), );
837# endif 850# endif
838# endif 851# endif
839_GL_CXXALIAS_SYS (expm1l, long double, (long double x)); 852_GL_CXXALIAS_SYS (expm1l, long double, (long double x));
@@ -853,7 +866,7 @@ _GL_WARN_ON_USE (expm1l, "expm1l is unportable - "
853#if @GNULIB_FABSF@ 866#if @GNULIB_FABSF@
854# if !@HAVE_FABSF@ 867# if !@HAVE_FABSF@
855# undef fabsf 868# undef fabsf
856_GL_FUNCDECL_SYS (fabsf, float, (float x)); 869_GL_FUNCDECL_SYS (fabsf, float, (float x), );
857# endif 870# endif
858_GL_CXXALIAS_SYS (fabsf, float, (float x)); 871_GL_CXXALIAS_SYS (fabsf, float, (float x));
859# if __GLIBC__ >= 2 872# if __GLIBC__ >= 2
@@ -873,12 +886,12 @@ _GL_WARN_ON_USE (fabsf, "fabsf is unportable - "
873# undef fabsl 886# undef fabsl
874# define fabsl rpl_fabsl 887# define fabsl rpl_fabsl
875# endif 888# endif
876_GL_FUNCDECL_RPL (fabsl, long double, (long double x)); 889_GL_FUNCDECL_RPL (fabsl, long double, (long double x), );
877_GL_CXXALIAS_RPL (fabsl, long double, (long double x)); 890_GL_CXXALIAS_RPL (fabsl, long double, (long double x));
878# else 891# else
879# if !@HAVE_FABSL@ 892# if !@HAVE_FABSL@
880# undef fabsl 893# undef fabsl
881_GL_FUNCDECL_SYS (fabsl, long double, (long double x)); 894_GL_FUNCDECL_SYS (fabsl, long double, (long double x), );
882# endif 895# endif
883_GL_CXXALIAS_SYS (fabsl, long double, (long double x)); 896_GL_CXXALIAS_SYS (fabsl, long double, (long double x));
884# endif 897# endif
@@ -900,12 +913,12 @@ _GL_WARN_ON_USE (fabsl, "fabsl is unportable - "
900# undef floorf 913# undef floorf
901# define floorf rpl_floorf 914# define floorf rpl_floorf
902# endif 915# endif
903_GL_FUNCDECL_RPL (floorf, float, (float x)); 916_GL_FUNCDECL_RPL (floorf, float, (float x), );
904_GL_CXXALIAS_RPL (floorf, float, (float x)); 917_GL_CXXALIAS_RPL (floorf, float, (float x));
905# else 918# else
906# if !@HAVE_DECL_FLOORF@ 919# if !@HAVE_DECL_FLOORF@
907# undef floorf 920# undef floorf
908_GL_FUNCDECL_SYS (floorf, float, (float x)); 921_GL_FUNCDECL_SYS (floorf, float, (float x), );
909# endif 922# endif
910_GL_CXXALIAS_SYS (floorf, float, (float x)); 923_GL_CXXALIAS_SYS (floorf, float, (float x));
911# endif 924# endif
@@ -924,7 +937,7 @@ _GL_WARN_ON_USE (floorf, "floorf is unportable - "
924# undef floor 937# undef floor
925# define floor rpl_floor 938# define floor rpl_floor
926# endif 939# endif
927_GL_FUNCDECL_RPL (floor, double, (double x)); 940_GL_FUNCDECL_RPL (floor, double, (double x), );
928_GL_CXXALIAS_RPL (floor, double, (double x)); 941_GL_CXXALIAS_RPL (floor, double, (double x));
929# else 942# else
930_GL_CXXALIAS_SYS (floor, double, (double x)); 943_GL_CXXALIAS_SYS (floor, double, (double x));
@@ -940,12 +953,12 @@ _GL_CXXALIASWARN1 (floor, double, (double x));
940# undef floorl 953# undef floorl
941# define floorl rpl_floorl 954# define floorl rpl_floorl
942# endif 955# endif
943_GL_FUNCDECL_RPL (floorl, long double, (long double x)); 956_GL_FUNCDECL_RPL (floorl, long double, (long double x), );
944_GL_CXXALIAS_RPL (floorl, long double, (long double x)); 957_GL_CXXALIAS_RPL (floorl, long double, (long double x));
945# else 958# else
946# if !@HAVE_DECL_FLOORL@ 959# if !@HAVE_DECL_FLOORL@
947# undef floorl 960# undef floorl
948_GL_FUNCDECL_SYS (floorl, long double, (long double x)); 961_GL_FUNCDECL_SYS (floorl, long double, (long double x), );
949# endif 962# endif
950_GL_CXXALIAS_SYS (floorl, long double, (long double x)); 963_GL_CXXALIAS_SYS (floorl, long double, (long double x));
951# endif 964# endif
@@ -967,12 +980,12 @@ _GL_WARN_ON_USE (floorl, "floorl is unportable - "
967# undef fmaf 980# undef fmaf
968# define fmaf rpl_fmaf 981# define fmaf rpl_fmaf
969# endif 982# endif
970_GL_FUNCDECL_RPL (fmaf, float, (float x, float y, float z)); 983_GL_FUNCDECL_RPL (fmaf, float, (float x, float y, float z), );
971_GL_CXXALIAS_RPL (fmaf, float, (float x, float y, float z)); 984_GL_CXXALIAS_RPL (fmaf, float, (float x, float y, float z));
972# else 985# else
973# if !@HAVE_FMAF@ 986# if !@HAVE_FMAF@
974# undef fmaf 987# undef fmaf
975_GL_FUNCDECL_SYS (fmaf, float, (float x, float y, float z)); 988_GL_FUNCDECL_SYS (fmaf, float, (float x, float y, float z), );
976# endif 989# endif
977_GL_CXXALIAS_SYS (fmaf, float, (float x, float y, float z)); 990_GL_CXXALIAS_SYS (fmaf, float, (float x, float y, float z));
978# endif 991# endif
@@ -991,12 +1004,12 @@ _GL_WARN_ON_USE (fmaf, "fmaf is unportable - "
991# undef fma 1004# undef fma
992# define fma rpl_fma 1005# define fma rpl_fma
993# endif 1006# endif
994_GL_FUNCDECL_RPL (fma, double, (double x, double y, double z)); 1007_GL_FUNCDECL_RPL (fma, double, (double x, double y, double z), );
995_GL_CXXALIAS_RPL (fma, double, (double x, double y, double z)); 1008_GL_CXXALIAS_RPL (fma, double, (double x, double y, double z));
996# else 1009# else
997# if !@HAVE_FMA@ 1010# if !@HAVE_FMA@
998# undef fma 1011# undef fma
999_GL_FUNCDECL_SYS (fma, double, (double x, double y, double z)); 1012_GL_FUNCDECL_SYS (fma, double, (double x, double y, double z), );
1000# endif 1013# endif
1001_GL_CXXALIAS_SYS (fma, double, (double x, double y, double z)); 1014_GL_CXXALIAS_SYS (fma, double, (double x, double y, double z));
1002# endif 1015# endif
@@ -1018,7 +1031,7 @@ _GL_WARN_ON_USE (fma, "fma is unportable - "
1018# define fmal rpl_fmal 1031# define fmal rpl_fmal
1019# endif 1032# endif
1020_GL_FUNCDECL_RPL (fmal, long double, 1033_GL_FUNCDECL_RPL (fmal, long double,
1021 (long double x, long double y, long double z)); 1034 (long double x, long double y, long double z), );
1022_GL_CXXALIAS_RPL (fmal, long double, 1035_GL_CXXALIAS_RPL (fmal, long double,
1023 (long double x, long double y, long double z)); 1036 (long double x, long double y, long double z));
1024# else 1037# else
@@ -1026,7 +1039,7 @@ _GL_CXXALIAS_RPL (fmal, long double,
1026# undef fmal 1039# undef fmal
1027# if !(defined __cplusplus && defined _AIX) 1040# if !(defined __cplusplus && defined _AIX)
1028_GL_FUNCDECL_SYS (fmal, long double, 1041_GL_FUNCDECL_SYS (fmal, long double,
1029 (long double x, long double y, long double z)); 1042 (long double x, long double y, long double z), );
1030# endif 1043# endif
1031# endif 1044# endif
1032_GL_CXXALIAS_SYS (fmal, long double, 1045_GL_CXXALIAS_SYS (fmal, long double,
@@ -1050,12 +1063,12 @@ _GL_WARN_ON_USE (fmal, "fmal is unportable - "
1050# undef fmodf 1063# undef fmodf
1051# define fmodf rpl_fmodf 1064# define fmodf rpl_fmodf
1052# endif 1065# endif
1053_GL_FUNCDECL_RPL (fmodf, float, (float x, float y)); 1066_GL_FUNCDECL_RPL (fmodf, float, (float x, float y), );
1054_GL_CXXALIAS_RPL (fmodf, float, (float x, float y)); 1067_GL_CXXALIAS_RPL (fmodf, float, (float x, float y));
1055# else 1068# else
1056# if !@HAVE_FMODF@ 1069# if !@HAVE_FMODF@
1057# undef fmodf 1070# undef fmodf
1058_GL_FUNCDECL_SYS (fmodf, float, (float x, float y)); 1071_GL_FUNCDECL_SYS (fmodf, float, (float x, float y), );
1059# endif 1072# endif
1060_GL_CXXALIAS_SYS (fmodf, float, (float x, float y)); 1073_GL_CXXALIAS_SYS (fmodf, float, (float x, float y));
1061# endif 1074# endif
@@ -1074,7 +1087,7 @@ _GL_WARN_ON_USE (fmodf, "fmodf is unportable - "
1074# undef fmod 1087# undef fmod
1075# define fmod rpl_fmod 1088# define fmod rpl_fmod
1076# endif 1089# endif
1077_GL_FUNCDECL_RPL (fmod, double, (double x, double y)); 1090_GL_FUNCDECL_RPL (fmod, double, (double x, double y), );
1078_GL_CXXALIAS_RPL (fmod, double, (double x, double y)); 1091_GL_CXXALIAS_RPL (fmod, double, (double x, double y));
1079# else 1092# else
1080_GL_CXXALIAS_SYS (fmod, double, (double x, double y)); 1093_GL_CXXALIAS_SYS (fmod, double, (double x, double y));
@@ -1096,12 +1109,12 @@ _GL_WARN_ON_USE (fmod, "fmod has portability problems - "
1096# undef fmodl 1109# undef fmodl
1097# define fmodl rpl_fmodl 1110# define fmodl rpl_fmodl
1098# endif 1111# endif
1099_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), );
1100_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));
1101# else 1114# else
1102# if !@HAVE_FMODL@ 1115# if !@HAVE_FMODL@
1103# undef fmodl 1116# undef fmodl
1104_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), );
1105# endif 1118# endif
1106_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));
1107# endif 1120# endif
@@ -1130,12 +1143,12 @@ _GL_WARN_ON_USE (fmodl, "fmodl is unportable - "
1130# undef frexpf 1143# undef frexpf
1131# define frexpf rpl_frexpf 1144# define frexpf rpl_frexpf
1132# endif 1145# endif
1133_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)));
1134_GL_CXXALIAS_RPL (frexpf, float, (float x, int *expptr)); 1147_GL_CXXALIAS_RPL (frexpf, float, (float x, int *expptr));
1135# else 1148# else
1136# if !@HAVE_FREXPF@ 1149# if !@HAVE_FREXPF@
1137# undef frexpf 1150# undef frexpf
1138_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)));
1139# endif 1152# endif
1140_GL_CXXALIAS_SYS (frexpf, float, (float x, int *expptr)); 1153_GL_CXXALIAS_SYS (frexpf, float, (float x, int *expptr));
1141# endif 1154# endif
@@ -1163,7 +1176,8 @@ _GL_WARN_ON_USE (frexpf, "frexpf is unportable - "
1163# undef frexp 1176# undef frexp
1164# define frexp rpl_frexp 1177# define frexp rpl_frexp
1165# endif 1178# endif
1166_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)));
1167_GL_CXXALIAS_RPL (frexp, double, (double x, int *expptr)); 1181_GL_CXXALIAS_RPL (frexp, double, (double x, int *expptr));
1168# else 1182# else
1169_GL_CXXALIAS_SYS (frexp, double, (double x, int *expptr)); 1183_GL_CXXALIAS_SYS (frexp, double, (double x, int *expptr));
@@ -1174,8 +1188,10 @@ _GL_CXXALIASWARN1 (frexp, double, (double x, int *expptr));
1174#elif defined GNULIB_POSIXCHECK 1188#elif defined GNULIB_POSIXCHECK
1175# undef frexp 1189# undef frexp
1176/* Assume frexp is always declared. */ 1190/* Assume frexp is always declared. */
1177_GL_WARN_ON_USE (frexp, "frexp is unportable - " 1191_GL_WARN_ON_USE_CXX (frexp,
1178 "use gnulib module frexp for portability"); 1192 double, double, (double, int *),
1193 "frexp is unportable - "
1194 "use gnulib module frexp for portability");
1179#endif 1195#endif
1180 1196
1181/* Write x as 1197/* Write x as
@@ -1191,12 +1207,12 @@ _GL_WARN_ON_USE (frexp, "frexp is unportable - "
1191# define frexpl rpl_frexpl 1207# define frexpl rpl_frexpl
1192# endif 1208# endif
1193_GL_FUNCDECL_RPL (frexpl, long double, 1209_GL_FUNCDECL_RPL (frexpl, long double,
1194 (long double x, int *expptr) _GL_ARG_NONNULL ((2))); 1210 (long double x, int *expptr), _GL_ARG_NONNULL ((2)));
1195_GL_CXXALIAS_RPL (frexpl, long double, (long double x, int *expptr)); 1211_GL_CXXALIAS_RPL (frexpl, long double, (long double x, int *expptr));
1196#else 1212#else
1197# if !@HAVE_DECL_FREXPL@ 1213# if !@HAVE_DECL_FREXPL@
1198_GL_FUNCDECL_SYS (frexpl, long double, 1214_GL_FUNCDECL_SYS (frexpl, long double,
1199 (long double x, int *expptr) _GL_ARG_NONNULL ((2))); 1215 (long double x, int *expptr), _GL_ARG_NONNULL ((2)));
1200# endif 1216# endif
1201# if @GNULIB_FREXPL@ 1217# if @GNULIB_FREXPL@
1202_GL_CXXALIAS_SYS (frexpl, long double, (long double x, int *expptr)); 1218_GL_CXXALIAS_SYS (frexpl, long double, (long double x, int *expptr));
@@ -1223,11 +1239,11 @@ _GL_WARN_ON_USE (frexpl, "frexpl is unportable - "
1223# undef hypotf 1239# undef hypotf
1224# define hypotf rpl_hypotf 1240# define hypotf rpl_hypotf
1225# endif 1241# endif
1226_GL_FUNCDECL_RPL (hypotf, float, (float x, float y)); 1242_GL_FUNCDECL_RPL (hypotf, float, (float x, float y), );
1227_GL_CXXALIAS_RPL (hypotf, float, (float x, float y)); 1243_GL_CXXALIAS_RPL (hypotf, float, (float x, float y));
1228# else 1244# else
1229# if !@HAVE_HYPOTF@ 1245# if !@HAVE_HYPOTF@
1230_GL_FUNCDECL_SYS (hypotf, float, (float x, float y)); 1246_GL_FUNCDECL_SYS (hypotf, float, (float x, float y), );
1231# endif 1247# endif
1232_GL_CXXALIAS_SYS (hypotf, float, (float x, float y)); 1248_GL_CXXALIAS_SYS (hypotf, float, (float x, float y));
1233# endif 1249# endif
@@ -1249,7 +1265,7 @@ _GL_WARN_ON_USE (hypotf, "hypotf is unportable - "
1249# undef hypot 1265# undef hypot
1250# define hypot rpl_hypot 1266# define hypot rpl_hypot
1251# endif 1267# endif
1252_GL_FUNCDECL_RPL (hypot, double, (double x, double y)); 1268_GL_FUNCDECL_RPL (hypot, double, (double x, double y), );
1253_GL_CXXALIAS_RPL (hypot, double, (double x, double y)); 1269_GL_CXXALIAS_RPL (hypot, double, (double x, double y));
1254# else 1270# else
1255_GL_CXXALIAS_SYS (hypot, double, (double x, double y)); 1271_GL_CXXALIAS_SYS (hypot, double, (double x, double y));
@@ -1272,11 +1288,11 @@ _GL_WARN_ON_USE (hypotf, "hypot has portability problems - "
1272# undef hypotl 1288# undef hypotl
1273# define hypotl rpl_hypotl 1289# define hypotl rpl_hypotl
1274# endif 1290# endif
1275_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), );
1276_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));
1277# else 1293# else
1278# if !@HAVE_HYPOTL@ 1294# if !@HAVE_HYPOTL@
1279_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), );
1280# endif 1296# endif
1281_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));
1282# endif 1298# endif
@@ -1298,11 +1314,11 @@ _GL_WARN_ON_USE (hypotl, "hypotl is unportable - "
1298# undef ilogbf 1314# undef ilogbf
1299# define ilogbf rpl_ilogbf 1315# define ilogbf rpl_ilogbf
1300# endif 1316# endif
1301_GL_FUNCDECL_RPL (ilogbf, int, (float x)); 1317_GL_FUNCDECL_RPL (ilogbf, int, (float x), );
1302_GL_CXXALIAS_RPL (ilogbf, int, (float x)); 1318_GL_CXXALIAS_RPL (ilogbf, int, (float x));
1303# else 1319# else
1304# if !@HAVE_ILOGBF@ 1320# if !@HAVE_ILOGBF@
1305_GL_FUNCDECL_SYS (ilogbf, int, (float x)); 1321_GL_FUNCDECL_SYS (ilogbf, int, (float x), );
1306# endif 1322# endif
1307_GL_CXXALIAS_SYS (ilogbf, int, (float x)); 1323_GL_CXXALIAS_SYS (ilogbf, int, (float x));
1308# endif 1324# endif
@@ -1321,11 +1337,11 @@ _GL_WARN_ON_USE (ilogbf, "ilogbf is unportable - "
1321# undef ilogb 1337# undef ilogb
1322# define ilogb rpl_ilogb 1338# define ilogb rpl_ilogb
1323# endif 1339# endif
1324_GL_FUNCDECL_RPL (ilogb, int, (double x)); 1340_GL_FUNCDECL_RPL (ilogb, int, (double x), );
1325_GL_CXXALIAS_RPL (ilogb, int, (double x)); 1341_GL_CXXALIAS_RPL (ilogb, int, (double x));
1326# else 1342# else
1327# if !@HAVE_ILOGB@ 1343# if !@HAVE_ILOGB@
1328_GL_FUNCDECL_SYS (ilogb, int, (double x)); 1344_GL_FUNCDECL_SYS (ilogb, int, (double x), );
1329# endif 1345# endif
1330_GL_CXXALIAS_SYS (ilogb, int, (double x)); 1346_GL_CXXALIAS_SYS (ilogb, int, (double x));
1331# endif 1347# endif
@@ -1346,12 +1362,12 @@ _GL_WARN_ON_USE (ilogb, "ilogb is unportable - "
1346# undef ilogbl 1362# undef ilogbl
1347# define ilogbl rpl_ilogbl 1363# define ilogbl rpl_ilogbl
1348# endif 1364# endif
1349_GL_FUNCDECL_RPL (ilogbl, int, (long double x)); 1365_GL_FUNCDECL_RPL (ilogbl, int, (long double x), );
1350_GL_CXXALIAS_RPL (ilogbl, int, (long double x)); 1366_GL_CXXALIAS_RPL (ilogbl, int, (long double x));
1351# else 1367# else
1352# if !@HAVE_ILOGBL@ 1368# if !@HAVE_ILOGBL@
1353# undef ilogbl 1369# undef ilogbl
1354_GL_FUNCDECL_SYS (ilogbl, int, (long double x)); 1370_GL_FUNCDECL_SYS (ilogbl, int, (long double x), );
1355# endif 1371# endif
1356_GL_CXXALIAS_SYS (ilogbl, int, (long double x)); 1372_GL_CXXALIAS_SYS (ilogbl, int, (long double x));
1357# endif 1373# endif
@@ -1420,7 +1436,7 @@ _GL_CXXALIASWARN (jn);
1420#if @GNULIB_LDEXPF@ 1436#if @GNULIB_LDEXPF@
1421# if !@HAVE_LDEXPF@ 1437# if !@HAVE_LDEXPF@
1422# undef ldexpf 1438# undef ldexpf
1423_GL_FUNCDECL_SYS (ldexpf, float, (float x, int exp)); 1439_GL_FUNCDECL_SYS (ldexpf, float, (float x, int exp), );
1424# endif 1440# endif
1425_GL_CXXALIAS_SYS (ldexpf, float, (float x, int exp)); 1441_GL_CXXALIAS_SYS (ldexpf, float, (float x, int exp));
1426# if __GLIBC__ >= 2 1442# if __GLIBC__ >= 2
@@ -1441,7 +1457,7 @@ _GL_WARN_ON_USE (ldexpf, "ldexpf is unportable - "
1441# undef ldexp 1457# undef ldexp
1442# define ldexp rpl_ldexp 1458# define ldexp rpl_ldexp
1443# endif 1459# endif
1444_GL_FUNCDECL_RPL (ldexp, double, (double x, int exp)); 1460_GL_FUNCDECL_RPL (ldexp, double, (double x, int exp), );
1445_GL_CXXALIAS_RPL (ldexp, double, (double x, int exp)); 1461_GL_CXXALIAS_RPL (ldexp, double, (double x, int exp));
1446# else 1462# else
1447/* Assume ldexp is always declared. */ 1463/* Assume ldexp is always declared. */
@@ -1453,8 +1469,10 @@ _GL_CXXALIASWARN1 (ldexp, double, (double x, int exp));
1453#elif defined GNULIB_POSIXCHECK 1469#elif defined GNULIB_POSIXCHECK
1454# undef ldexp 1470# undef ldexp
1455/* Assume ldexp is always declared. */ 1471/* Assume ldexp is always declared. */
1456_GL_WARN_ON_USE (ldexp, "ldexp is unportable - " 1472_GL_WARN_ON_USE_CXX (ldexp,
1457 "use gnulib module ldexp for portability"); 1473 double, double, (double, int),
1474 "ldexp is unportable - "
1475 "use gnulib module ldexp for portability");
1458#endif 1476#endif
1459 1477
1460/* Return x * 2^exp. */ 1478/* Return x * 2^exp. */
@@ -1463,11 +1481,11 @@ _GL_WARN_ON_USE (ldexp, "ldexp is unportable - "
1463# undef ldexpl 1481# undef ldexpl
1464# define ldexpl rpl_ldexpl 1482# define ldexpl rpl_ldexpl
1465# endif 1483# endif
1466_GL_FUNCDECL_RPL (ldexpl, long double, (long double x, int exp)); 1484_GL_FUNCDECL_RPL (ldexpl, long double, (long double x, int exp), );
1467_GL_CXXALIAS_RPL (ldexpl, long double, (long double x, int exp)); 1485_GL_CXXALIAS_RPL (ldexpl, long double, (long double x, int exp));
1468#else 1486#else
1469# if !@HAVE_DECL_LDEXPL@ 1487# if !@HAVE_DECL_LDEXPL@
1470_GL_FUNCDECL_SYS (ldexpl, long double, (long double x, int exp)); 1488_GL_FUNCDECL_SYS (ldexpl, long double, (long double x, int exp), );
1471# endif 1489# endif
1472# if @GNULIB_LDEXPL@ 1490# if @GNULIB_LDEXPL@
1473_GL_CXXALIAS_SYS (ldexpl, long double, (long double x, int exp)); 1491_GL_CXXALIAS_SYS (ldexpl, long double, (long double x, int exp));
@@ -1493,12 +1511,12 @@ _GL_WARN_ON_USE (ldexpl, "ldexpl is unportable - "
1493# undef logf 1511# undef logf
1494# define logf rpl_logf 1512# define logf rpl_logf
1495# endif 1513# endif
1496_GL_FUNCDECL_RPL (logf, float, (float x)); 1514_GL_FUNCDECL_RPL (logf, float, (float x), );
1497_GL_CXXALIAS_RPL (logf, float, (float x)); 1515_GL_CXXALIAS_RPL (logf, float, (float x));
1498# else 1516# else
1499# if !@HAVE_LOGF@ 1517# if !@HAVE_LOGF@
1500# undef logf 1518# undef logf
1501_GL_FUNCDECL_SYS (logf, float, (float x)); 1519_GL_FUNCDECL_SYS (logf, float, (float x), );
1502# endif 1520# endif
1503_GL_CXXALIAS_SYS (logf, float, (float x)); 1521_GL_CXXALIAS_SYS (logf, float, (float x));
1504# endif 1522# endif
@@ -1517,7 +1535,7 @@ _GL_WARN_ON_USE (logf, "logf is unportable - "
1517# undef log 1535# undef log
1518# define log rpl_log 1536# define log rpl_log
1519# endif 1537# endif
1520_GL_FUNCDECL_RPL (log, double, (double x)); 1538_GL_FUNCDECL_RPL (log, double, (double x), );
1521_GL_CXXALIAS_RPL (log, double, (double x)); 1539_GL_CXXALIAS_RPL (log, double, (double x));
1522# else 1540# else
1523_GL_CXXALIAS_SYS (log, double, (double x)); 1541_GL_CXXALIAS_SYS (log, double, (double x));
@@ -1539,12 +1557,12 @@ _GL_WARN_ON_USE (log, "log has portability problems - "
1539# undef logl 1557# undef logl
1540# define logl rpl_logl 1558# define logl rpl_logl
1541# endif 1559# endif
1542_GL_FUNCDECL_RPL (logl, long double, (long double x)); 1560_GL_FUNCDECL_RPL (logl, long double, (long double x), );
1543_GL_CXXALIAS_RPL (logl, long double, (long double x)); 1561_GL_CXXALIAS_RPL (logl, long double, (long double x));
1544# else 1562# else
1545# if !@HAVE_LOGL@ || !@HAVE_DECL_LOGL@ 1563# if !@HAVE_LOGL@ || !@HAVE_DECL_LOGL@
1546# undef logl 1564# undef logl
1547_GL_FUNCDECL_SYS (logl, long double, (long double x)); 1565_GL_FUNCDECL_SYS (logl, long double, (long double x), );
1548# endif 1566# endif
1549_GL_CXXALIAS_SYS (logl, long double, (long double x)); 1567_GL_CXXALIAS_SYS (logl, long double, (long double x));
1550# endif 1568# endif
@@ -1566,12 +1584,12 @@ _GL_WARN_ON_USE (logl, "logl is unportable - "
1566# undef log10f 1584# undef log10f
1567# define log10f rpl_log10f 1585# define log10f rpl_log10f
1568# endif 1586# endif
1569_GL_FUNCDECL_RPL (log10f, float, (float x)); 1587_GL_FUNCDECL_RPL (log10f, float, (float x), );
1570_GL_CXXALIAS_RPL (log10f, float, (float x)); 1588_GL_CXXALIAS_RPL (log10f, float, (float x));
1571# else 1589# else
1572# if !@HAVE_LOG10F@ 1590# if !@HAVE_LOG10F@
1573# undef log10f 1591# undef log10f
1574_GL_FUNCDECL_SYS (log10f, float, (float x)); 1592_GL_FUNCDECL_SYS (log10f, float, (float x), );
1575# endif 1593# endif
1576_GL_CXXALIAS_SYS (log10f, float, (float x)); 1594_GL_CXXALIAS_SYS (log10f, float, (float x));
1577# endif 1595# endif
@@ -1590,7 +1608,7 @@ _GL_WARN_ON_USE (log10f, "log10f is unportable - "
1590# undef log10 1608# undef log10
1591# define log10 rpl_log10 1609# define log10 rpl_log10
1592# endif 1610# endif
1593_GL_FUNCDECL_RPL (log10, double, (double x)); 1611_GL_FUNCDECL_RPL (log10, double, (double x), );
1594_GL_CXXALIAS_RPL (log10, double, (double x)); 1612_GL_CXXALIAS_RPL (log10, double, (double x));
1595# else 1613# else
1596_GL_CXXALIAS_SYS (log10, double, (double x)); 1614_GL_CXXALIAS_SYS (log10, double, (double x));
@@ -1612,12 +1630,12 @@ _GL_WARN_ON_USE (log10, "log10 has portability problems - "
1612# undef log10l 1630# undef log10l
1613# define log10l rpl_log10l 1631# define log10l rpl_log10l
1614# endif 1632# endif
1615_GL_FUNCDECL_RPL (log10l, long double, (long double x)); 1633_GL_FUNCDECL_RPL (log10l, long double, (long double x), );
1616_GL_CXXALIAS_RPL (log10l, long double, (long double x)); 1634_GL_CXXALIAS_RPL (log10l, long double, (long double x));
1617# else 1635# else
1618# if !@HAVE_LOG10L@ || !@HAVE_DECL_LOG10L@ 1636# if !@HAVE_LOG10L@ || !@HAVE_DECL_LOG10L@
1619# undef log10l 1637# undef log10l
1620_GL_FUNCDECL_SYS (log10l, long double, (long double x)); 1638_GL_FUNCDECL_SYS (log10l, long double, (long double x), );
1621# endif 1639# endif
1622_GL_CXXALIAS_SYS (log10l, long double, (long double x)); 1640_GL_CXXALIAS_SYS (log10l, long double, (long double x));
1623# endif 1641# endif
@@ -1639,11 +1657,11 @@ _GL_WARN_ON_USE (log10l, "log10l is unportable - "
1639# undef log1pf 1657# undef log1pf
1640# define log1pf rpl_log1pf 1658# define log1pf rpl_log1pf
1641# endif 1659# endif
1642_GL_FUNCDECL_RPL (log1pf, float, (float x)); 1660_GL_FUNCDECL_RPL (log1pf, float, (float x), );
1643_GL_CXXALIAS_RPL (log1pf, float, (float x)); 1661_GL_CXXALIAS_RPL (log1pf, float, (float x));
1644# else 1662# else
1645# if !@HAVE_LOG1PF@ 1663# if !@HAVE_LOG1PF@
1646_GL_FUNCDECL_SYS (log1pf, float, (float x)); 1664_GL_FUNCDECL_SYS (log1pf, float, (float x), );
1647# endif 1665# endif
1648_GL_CXXALIAS_SYS (log1pf, float, (float x)); 1666_GL_CXXALIAS_SYS (log1pf, float, (float x));
1649# endif 1667# endif
@@ -1662,11 +1680,11 @@ _GL_WARN_ON_USE (log1pf, "log1pf is unportable - "
1662# undef log1p 1680# undef log1p
1663# define log1p rpl_log1p 1681# define log1p rpl_log1p
1664# endif 1682# endif
1665_GL_FUNCDECL_RPL (log1p, double, (double x)); 1683_GL_FUNCDECL_RPL (log1p, double, (double x), );
1666_GL_CXXALIAS_RPL (log1p, double, (double x)); 1684_GL_CXXALIAS_RPL (log1p, double, (double x));
1667# else 1685# else
1668# if !@HAVE_LOG1P@ 1686# if !@HAVE_LOG1P@
1669_GL_FUNCDECL_SYS (log1p, double, (double x)); 1687_GL_FUNCDECL_SYS (log1p, double, (double x), );
1670# endif 1688# endif
1671_GL_CXXALIAS_SYS (log1p, double, (double x)); 1689_GL_CXXALIAS_SYS (log1p, double, (double x));
1672# endif 1690# endif
@@ -1687,11 +1705,11 @@ _GL_WARN_ON_USE (log1p, "log1p has portability problems - "
1687# undef log1pl 1705# undef log1pl
1688# define log1pl rpl_log1pl 1706# define log1pl rpl_log1pl
1689# endif 1707# endif
1690_GL_FUNCDECL_RPL (log1pl, long double, (long double x)); 1708_GL_FUNCDECL_RPL (log1pl, long double, (long double x), );
1691_GL_CXXALIAS_RPL (log1pl, long double, (long double x)); 1709_GL_CXXALIAS_RPL (log1pl, long double, (long double x));
1692# else 1710# else
1693# if !@HAVE_LOG1PL@ 1711# if !@HAVE_LOG1PL@
1694_GL_FUNCDECL_SYS (log1pl, long double, (long double x)); 1712_GL_FUNCDECL_SYS (log1pl, long double, (long double x), );
1695# endif 1713# endif
1696_GL_CXXALIAS_SYS (log1pl, long double, (long double x)); 1714_GL_CXXALIAS_SYS (log1pl, long double, (long double x));
1697# endif 1715# endif
@@ -1713,12 +1731,12 @@ _GL_WARN_ON_USE (log1pl, "log1pl has portability problems - "
1713# undef log2f 1731# undef log2f
1714# define log2f rpl_log2f 1732# define log2f rpl_log2f
1715# endif 1733# endif
1716_GL_FUNCDECL_RPL (log2f, float, (float x)); 1734_GL_FUNCDECL_RPL (log2f, float, (float x), );
1717_GL_CXXALIAS_RPL (log2f, float, (float x)); 1735_GL_CXXALIAS_RPL (log2f, float, (float x));
1718# else 1736# else
1719# if !@HAVE_DECL_LOG2F@ 1737# if !@HAVE_DECL_LOG2F@
1720# undef log2f 1738# undef log2f
1721_GL_FUNCDECL_SYS (log2f, float, (float x)); 1739_GL_FUNCDECL_SYS (log2f, float, (float x), );
1722# endif 1740# endif
1723_GL_CXXALIAS_SYS (log2f, float, (float x)); 1741_GL_CXXALIAS_SYS (log2f, float, (float x));
1724# endif 1742# endif
@@ -1739,12 +1757,12 @@ _GL_WARN_ON_USE (log2f, "log2f is unportable - "
1739# undef log2 1757# undef log2
1740# define log2 rpl_log2 1758# define log2 rpl_log2
1741# endif 1759# endif
1742_GL_FUNCDECL_RPL (log2, double, (double x)); 1760_GL_FUNCDECL_RPL (log2, double, (double x), );
1743_GL_CXXALIAS_RPL (log2, double, (double x)); 1761_GL_CXXALIAS_RPL (log2, double, (double x));
1744# else 1762# else
1745# if !@HAVE_DECL_LOG2@ 1763# if !@HAVE_DECL_LOG2@
1746# undef log2 1764# undef log2
1747_GL_FUNCDECL_SYS (log2, double, (double x)); 1765_GL_FUNCDECL_SYS (log2, double, (double x), );
1748# endif 1766# endif
1749_GL_CXXALIAS_SYS (log2, double, (double x)); 1767_GL_CXXALIAS_SYS (log2, double, (double x));
1750# endif 1768# endif
@@ -1765,11 +1783,11 @@ _GL_WARN_ON_USE (log2, "log2 is unportable - "
1765# undef log2l 1783# undef log2l
1766# define log2l rpl_log2l 1784# define log2l rpl_log2l
1767# endif 1785# endif
1768_GL_FUNCDECL_RPL (log2l, long double, (long double x)); 1786_GL_FUNCDECL_RPL (log2l, long double, (long double x), );
1769_GL_CXXALIAS_RPL (log2l, long double, (long double x)); 1787_GL_CXXALIAS_RPL (log2l, long double, (long double x));
1770# else 1788# else
1771# if !@HAVE_DECL_LOG2L@ 1789# if !@HAVE_DECL_LOG2L@
1772_GL_FUNCDECL_SYS (log2l, long double, (long double x)); 1790_GL_FUNCDECL_SYS (log2l, long double, (long double x), );
1773# endif 1791# endif
1774_GL_CXXALIAS_SYS (log2l, long double, (long double x)); 1792_GL_CXXALIAS_SYS (log2l, long double, (long double x));
1775# endif 1793# endif
@@ -1791,11 +1809,11 @@ _GL_WARN_ON_USE (log2l, "log2l is unportable - "
1791# undef logbf 1809# undef logbf
1792# define logbf rpl_logbf 1810# define logbf rpl_logbf
1793# endif 1811# endif
1794_GL_FUNCDECL_RPL (logbf, float, (float x)); 1812_GL_FUNCDECL_RPL (logbf, float, (float x), );
1795_GL_CXXALIAS_RPL (logbf, float, (float x)); 1813_GL_CXXALIAS_RPL (logbf, float, (float x));
1796# else 1814# else
1797# if !@HAVE_LOGBF@ 1815# if !@HAVE_LOGBF@
1798_GL_FUNCDECL_SYS (logbf, float, (float x)); 1816_GL_FUNCDECL_SYS (logbf, float, (float x), );
1799# endif 1817# endif
1800_GL_CXXALIAS_SYS (logbf, float, (float x)); 1818_GL_CXXALIAS_SYS (logbf, float, (float x));
1801# endif 1819# endif
@@ -1814,11 +1832,11 @@ _GL_WARN_ON_USE (logbf, "logbf is unportable - "
1814# undef logb 1832# undef logb
1815# define logb rpl_logb 1833# define logb rpl_logb
1816# endif 1834# endif
1817_GL_FUNCDECL_RPL (logb, double, (double x)); 1835_GL_FUNCDECL_RPL (logb, double, (double x), );
1818_GL_CXXALIAS_RPL (logb, double, (double x)); 1836_GL_CXXALIAS_RPL (logb, double, (double x));
1819# else 1837# else
1820# if !@HAVE_DECL_LOGB@ 1838# if !@HAVE_DECL_LOGB@
1821_GL_FUNCDECL_SYS (logb, double, (double x)); 1839_GL_FUNCDECL_SYS (logb, double, (double x), );
1822# endif 1840# endif
1823_GL_CXXALIAS_SYS (logb, double, (double x)); 1841_GL_CXXALIAS_SYS (logb, double, (double x));
1824# endif 1842# endif
@@ -1839,11 +1857,11 @@ _GL_WARN_ON_USE (logb, "logb is unportable - "
1839# undef logbl 1857# undef logbl
1840# define logbl rpl_logbl 1858# define logbl rpl_logbl
1841# endif 1859# endif
1842_GL_FUNCDECL_RPL (logbl, long double, (long double x)); 1860_GL_FUNCDECL_RPL (logbl, long double, (long double x), );
1843_GL_CXXALIAS_RPL (logbl, long double, (long double x)); 1861_GL_CXXALIAS_RPL (logbl, long double, (long double x));
1844# else 1862# else
1845# if !@HAVE_LOGBL@ 1863# if !@HAVE_LOGBL@
1846_GL_FUNCDECL_SYS (logbl, long double, (long double x)); 1864_GL_FUNCDECL_SYS (logbl, long double, (long double x), );
1847# endif 1865# endif
1848_GL_CXXALIAS_SYS (logbl, long double, (long double x)); 1866_GL_CXXALIAS_SYS (logbl, long double, (long double x));
1849# endif 1867# endif
@@ -1859,18 +1877,67 @@ _GL_WARN_ON_USE (logbl, "logbl is unportable - "
1859#endif 1877#endif
1860 1878
1861 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
1862#if @GNULIB_MODFF@ 1929#if @GNULIB_MODFF@
1863# if @REPLACE_MODFF@ 1930# if @REPLACE_MODFF@
1864# if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1931# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1865# undef modff 1932# undef modff
1866# define modff rpl_modff 1933# define modff rpl_modff
1867# endif 1934# endif
1868_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)));
1869_GL_CXXALIAS_RPL (modff, float, (float x, float *iptr)); 1936_GL_CXXALIAS_RPL (modff, float, (float x, float *iptr));
1870# else 1937# else
1871# if !@HAVE_MODFF@ 1938# if !@HAVE_MODFF@
1872# undef modff 1939# undef modff
1873_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)));
1874# endif 1941# endif
1875_GL_CXXALIAS_SYS (modff, float, (float x, float *iptr)); 1942_GL_CXXALIAS_SYS (modff, float, (float x, float *iptr));
1876# endif 1943# endif
@@ -1889,7 +1956,8 @@ _GL_WARN_ON_USE (modff, "modff is unportable - "
1889# undef modf 1956# undef modf
1890# define modf rpl_modf 1957# define modf rpl_modf
1891# endif 1958# endif
1892_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)));
1893_GL_CXXALIAS_RPL (modf, double, (double x, double *iptr)); 1961_GL_CXXALIAS_RPL (modf, double, (double x, double *iptr));
1894# else 1962# else
1895_GL_CXXALIAS_SYS (modf, double, (double x, double *iptr)); 1963_GL_CXXALIAS_SYS (modf, double, (double x, double *iptr));
@@ -1911,13 +1979,13 @@ _GL_WARN_ON_USE (modf, "modf has portability problems - "
1911# undef modfl 1979# undef modfl
1912# define modfl rpl_modfl 1980# define modfl rpl_modfl
1913# endif 1981# endif
1914_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),
1915 _GL_ARG_NONNULL ((2))); 1983 _GL_ARG_NONNULL ((2)));
1916_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));
1917# else 1985# else
1918# if !@HAVE_MODFL@ 1986# if !@HAVE_MODFL@
1919# undef modfl 1987# undef modfl
1920_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),
1921 _GL_ARG_NONNULL ((2))); 1989 _GL_ARG_NONNULL ((2)));
1922# endif 1990# endif
1923_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));
@@ -1937,7 +2005,7 @@ _GL_WARN_ON_USE (modfl, "modfl is unportable - "
1937#if @GNULIB_POWF@ 2005#if @GNULIB_POWF@
1938# if !@HAVE_POWF@ 2006# if !@HAVE_POWF@
1939# undef powf 2007# undef powf
1940_GL_FUNCDECL_SYS (powf, float, (float x, float y)); 2008_GL_FUNCDECL_SYS (powf, float, (float x, float y), );
1941# endif 2009# endif
1942_GL_CXXALIAS_SYS (powf, float, (float x, float y)); 2010_GL_CXXALIAS_SYS (powf, float, (float x, float y));
1943_GL_CXXALIASWARN (powf); 2011_GL_CXXALIASWARN (powf);
@@ -1956,11 +2024,11 @@ _GL_WARN_ON_USE (powf, "powf is unportable - "
1956# undef remainderf 2024# undef remainderf
1957# define remainderf rpl_remainderf 2025# define remainderf rpl_remainderf
1958# endif 2026# endif
1959_GL_FUNCDECL_RPL (remainderf, float, (float x, float y)); 2027_GL_FUNCDECL_RPL (remainderf, float, (float x, float y), );
1960_GL_CXXALIAS_RPL (remainderf, float, (float x, float y)); 2028_GL_CXXALIAS_RPL (remainderf, float, (float x, float y));
1961# else 2029# else
1962# if !@HAVE_REMAINDERF@ 2030# if !@HAVE_REMAINDERF@
1963_GL_FUNCDECL_SYS (remainderf, float, (float x, float y)); 2031_GL_FUNCDECL_SYS (remainderf, float, (float x, float y), );
1964# endif 2032# endif
1965_GL_CXXALIAS_SYS (remainderf, float, (float x, float y)); 2033_GL_CXXALIAS_SYS (remainderf, float, (float x, float y));
1966# endif 2034# endif
@@ -1979,11 +2047,11 @@ _GL_WARN_ON_USE (remainderf, "remainderf is unportable - "
1979# undef remainder 2047# undef remainder
1980# define remainder rpl_remainder 2048# define remainder rpl_remainder
1981# endif 2049# endif
1982_GL_FUNCDECL_RPL (remainder, double, (double x, double y)); 2050_GL_FUNCDECL_RPL (remainder, double, (double x, double y), );
1983_GL_CXXALIAS_RPL (remainder, double, (double x, double y)); 2051_GL_CXXALIAS_RPL (remainder, double, (double x, double y));
1984# else 2052# else
1985# if !@HAVE_REMAINDER@ || !@HAVE_DECL_REMAINDER@ 2053# if !@HAVE_REMAINDER@ || !@HAVE_DECL_REMAINDER@
1986_GL_FUNCDECL_SYS (remainder, double, (double x, double y)); 2054_GL_FUNCDECL_SYS (remainder, double, (double x, double y), );
1987# endif 2055# endif
1988_GL_CXXALIAS_SYS (remainder, double, (double x, double y)); 2056_GL_CXXALIAS_SYS (remainder, double, (double x, double y));
1989# endif 2057# endif
@@ -2004,13 +2072,13 @@ _GL_WARN_ON_USE (remainder, "remainder is unportable - "
2004# undef remainderl 2072# undef remainderl
2005# define remainderl rpl_remainderl 2073# define remainderl rpl_remainderl
2006# endif 2074# endif
2007_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), );
2008_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));
2009# else 2077# else
2010# if !@HAVE_DECL_REMAINDERL@ 2078# if !@HAVE_DECL_REMAINDERL@
2011# undef remainderl 2079# undef remainderl
2012# if !(defined __cplusplus && defined _AIX) 2080# if !(defined __cplusplus && defined _AIX)
2013_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), );
2014# endif 2082# endif
2015# endif 2083# endif
2016_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));
@@ -2029,7 +2097,7 @@ _GL_WARN_ON_USE (remainderl, "remainderl is unportable - "
2029 2097
2030#if @GNULIB_RINTF@ 2098#if @GNULIB_RINTF@
2031# if !@HAVE_DECL_RINTF@ 2099# if !@HAVE_DECL_RINTF@
2032_GL_FUNCDECL_SYS (rintf, float, (float x)); 2100_GL_FUNCDECL_SYS (rintf, float, (float x), );
2033# endif 2101# endif
2034_GL_CXXALIAS_SYS (rintf, float, (float x)); 2102_GL_CXXALIAS_SYS (rintf, float, (float x));
2035_GL_CXXALIASWARN (rintf); 2103_GL_CXXALIASWARN (rintf);
@@ -2043,7 +2111,7 @@ _GL_WARN_ON_USE (rintf, "rintf is unportable - "
2043 2111
2044#if @GNULIB_RINT@ 2112#if @GNULIB_RINT@
2045# if !@HAVE_RINT@ 2113# if !@HAVE_RINT@
2046_GL_FUNCDECL_SYS (rint, double, (double x)); 2114_GL_FUNCDECL_SYS (rint, double, (double x), );
2047# endif 2115# endif
2048_GL_CXXALIAS_SYS (rint, double, (double x)); 2116_GL_CXXALIAS_SYS (rint, double, (double x));
2049# if __GLIBC__ >= 2 2117# if __GLIBC__ >= 2
@@ -2063,11 +2131,11 @@ _GL_WARN_ON_USE (rint, "rint is unportable - "
2063# undef rintl 2131# undef rintl
2064# define rintl rpl_rintl 2132# define rintl rpl_rintl
2065# endif 2133# endif
2066_GL_FUNCDECL_RPL (rintl, long double, (long double x)); 2134_GL_FUNCDECL_RPL (rintl, long double, (long double x), );
2067_GL_CXXALIAS_RPL (rintl, long double, (long double x)); 2135_GL_CXXALIAS_RPL (rintl, long double, (long double x));
2068# else 2136# else
2069# if !@HAVE_RINTL@ 2137# if !@HAVE_RINTL@
2070_GL_FUNCDECL_SYS (rintl, long double, (long double x)); 2138_GL_FUNCDECL_SYS (rintl, long double, (long double x), );
2071# endif 2139# endif
2072_GL_CXXALIAS_SYS (rintl, long double, (long double x)); 2140_GL_CXXALIAS_SYS (rintl, long double, (long double x));
2073# endif 2141# endif
@@ -2089,11 +2157,11 @@ _GL_WARN_ON_USE (rintl, "rintl is unportable - "
2089# undef roundf 2157# undef roundf
2090# define roundf rpl_roundf 2158# define roundf rpl_roundf
2091# endif 2159# endif
2092_GL_FUNCDECL_RPL (roundf, float, (float x)); 2160_GL_FUNCDECL_RPL (roundf, float, (float x), );
2093_GL_CXXALIAS_RPL (roundf, float, (float x)); 2161_GL_CXXALIAS_RPL (roundf, float, (float x));
2094# else 2162# else
2095# if !@HAVE_DECL_ROUNDF@ 2163# if !@HAVE_DECL_ROUNDF@
2096_GL_FUNCDECL_SYS (roundf, float, (float x)); 2164_GL_FUNCDECL_SYS (roundf, float, (float x), );
2097# endif 2165# endif
2098_GL_CXXALIAS_SYS (roundf, float, (float x)); 2166_GL_CXXALIAS_SYS (roundf, float, (float x));
2099# endif 2167# endif
@@ -2112,11 +2180,11 @@ _GL_WARN_ON_USE (roundf, "roundf is unportable - "
2112# undef round 2180# undef round
2113# define round rpl_round 2181# define round rpl_round
2114# endif 2182# endif
2115_GL_FUNCDECL_RPL (round, double, (double x)); 2183_GL_FUNCDECL_RPL (round, double, (double x), );
2116_GL_CXXALIAS_RPL (round, double, (double x)); 2184_GL_CXXALIAS_RPL (round, double, (double x));
2117# else 2185# else
2118# if !@HAVE_DECL_ROUND@ 2186# if !@HAVE_DECL_ROUND@
2119_GL_FUNCDECL_SYS (round, double, (double x)); 2187_GL_FUNCDECL_SYS (round, double, (double x), );
2120# endif 2188# endif
2121_GL_CXXALIAS_SYS (round, double, (double x)); 2189_GL_CXXALIAS_SYS (round, double, (double x));
2122# endif 2190# endif
@@ -2137,13 +2205,13 @@ _GL_WARN_ON_USE (round, "round is unportable - "
2137# undef roundl 2205# undef roundl
2138# define roundl rpl_roundl 2206# define roundl rpl_roundl
2139# endif 2207# endif
2140_GL_FUNCDECL_RPL (roundl, long double, (long double x)); 2208_GL_FUNCDECL_RPL (roundl, long double, (long double x), );
2141_GL_CXXALIAS_RPL (roundl, long double, (long double x)); 2209_GL_CXXALIAS_RPL (roundl, long double, (long double x));
2142# else 2210# else
2143# if !@HAVE_DECL_ROUNDL@ 2211# if !@HAVE_DECL_ROUNDL@
2144# undef roundl 2212# undef roundl
2145# if !(defined __cplusplus && defined _AIX) 2213# if !(defined __cplusplus && defined _AIX)
2146_GL_FUNCDECL_SYS (roundl, long double, (long double x)); 2214_GL_FUNCDECL_SYS (roundl, long double, (long double x), );
2147# endif 2215# endif
2148# endif 2216# endif
2149_GL_CXXALIAS_SYS (roundl, long double, (long double x)); 2217_GL_CXXALIAS_SYS (roundl, long double, (long double x));
@@ -2166,12 +2234,12 @@ _GL_WARN_ON_USE (roundl, "roundl is unportable - "
2166# undef sinf 2234# undef sinf
2167# define sinf rpl_sinf 2235# define sinf rpl_sinf
2168# endif 2236# endif
2169_GL_FUNCDECL_RPL (sinf, float, (float x)); 2237_GL_FUNCDECL_RPL (sinf, float, (float x), );
2170_GL_CXXALIAS_RPL (sinf, float, (float x)); 2238_GL_CXXALIAS_RPL (sinf, float, (float x));
2171# else 2239# else
2172# if !@HAVE_SINF@ 2240# if !@HAVE_SINF@
2173# undef sinf 2241# undef sinf
2174_GL_FUNCDECL_SYS (sinf, float, (float x)); 2242_GL_FUNCDECL_SYS (sinf, float, (float x), );
2175# endif 2243# endif
2176_GL_CXXALIAS_SYS (sinf, float, (float x)); 2244_GL_CXXALIAS_SYS (sinf, float, (float x));
2177# endif 2245# endif
@@ -2185,11 +2253,20 @@ _GL_WARN_ON_USE (sinf, "sinf is unportable - "
2185#endif 2253#endif
2186 2254
2187#if @GNULIB_SINL@ 2255#if @GNULIB_SINL@
2188# if !@HAVE_SINL@ || !@HAVE_DECL_SINL@ 2256# if @REPLACE_SINL@
2189# undef sinl 2257# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
2190_GL_FUNCDECL_SYS (sinl, long double, (long double x)); 2258# undef sinl
2191# 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
2192_GL_CXXALIAS_SYS (sinl, long double, (long double x)); 2268_GL_CXXALIAS_SYS (sinl, long double, (long double x));
2269# endif
2193# if __GLIBC__ >= 2 2270# if __GLIBC__ >= 2
2194_GL_CXXALIASWARN (sinl); 2271_GL_CXXALIASWARN (sinl);
2195# endif 2272# endif
@@ -2208,12 +2285,12 @@ _GL_WARN_ON_USE (sinl, "sinl is unportable - "
2208# undef sinhf 2285# undef sinhf
2209# define sinhf rpl_sinhf 2286# define sinhf rpl_sinhf
2210# endif 2287# endif
2211_GL_FUNCDECL_RPL (sinhf, float, (float x)); 2288_GL_FUNCDECL_RPL (sinhf, float, (float x), );
2212_GL_CXXALIAS_RPL (sinhf, float, (float x)); 2289_GL_CXXALIAS_RPL (sinhf, float, (float x));
2213# else 2290# else
2214# if !@HAVE_SINHF@ 2291# if !@HAVE_SINHF@
2215# undef sinhf 2292# undef sinhf
2216_GL_FUNCDECL_SYS (sinhf, float, (float x)); 2293_GL_FUNCDECL_SYS (sinhf, float, (float x), );
2217# endif 2294# endif
2218_GL_CXXALIAS_SYS (sinhf, float, (float x)); 2295_GL_CXXALIAS_SYS (sinhf, float, (float x));
2219# endif 2296# endif
@@ -2233,12 +2310,12 @@ _GL_WARN_ON_USE (sinhf, "sinhf is unportable - "
2233# undef sqrtf 2310# undef sqrtf
2234# define sqrtf rpl_sqrtf 2311# define sqrtf rpl_sqrtf
2235# endif 2312# endif
2236_GL_FUNCDECL_RPL (sqrtf, float, (float x)); 2313_GL_FUNCDECL_RPL (sqrtf, float, (float x), );
2237_GL_CXXALIAS_RPL (sqrtf, float, (float x)); 2314_GL_CXXALIAS_RPL (sqrtf, float, (float x));
2238# else 2315# else
2239# if !@HAVE_SQRTF@ 2316# if !@HAVE_SQRTF@
2240# undef sqrtf 2317# undef sqrtf
2241_GL_FUNCDECL_SYS (sqrtf, float, (float x)); 2318_GL_FUNCDECL_SYS (sqrtf, float, (float x), );
2242# endif 2319# endif
2243_GL_CXXALIAS_SYS (sqrtf, float, (float x)); 2320_GL_CXXALIAS_SYS (sqrtf, float, (float x));
2244# endif 2321# endif
@@ -2257,12 +2334,12 @@ _GL_WARN_ON_USE (sqrtf, "sqrtf is unportable - "
2257# undef sqrtl 2334# undef sqrtl
2258# define sqrtl rpl_sqrtl 2335# define sqrtl rpl_sqrtl
2259# endif 2336# endif
2260_GL_FUNCDECL_RPL (sqrtl, long double, (long double x)); 2337_GL_FUNCDECL_RPL (sqrtl, long double, (long double x), );
2261_GL_CXXALIAS_RPL (sqrtl, long double, (long double x)); 2338_GL_CXXALIAS_RPL (sqrtl, long double, (long double x));
2262# else 2339# else
2263# if !@HAVE_SQRTL@ || !@HAVE_DECL_SQRTL@ 2340# if !@HAVE_SQRTL@ || !@HAVE_DECL_SQRTL@
2264# undef sqrtl 2341# undef sqrtl
2265_GL_FUNCDECL_SYS (sqrtl, long double, (long double x)); 2342_GL_FUNCDECL_SYS (sqrtl, long double, (long double x), );
2266# endif 2343# endif
2267_GL_CXXALIAS_SYS (sqrtl, long double, (long double x)); 2344_GL_CXXALIAS_SYS (sqrtl, long double, (long double x));
2268# endif 2345# endif
@@ -2284,12 +2361,12 @@ _GL_WARN_ON_USE (sqrtl, "sqrtl is unportable - "
2284# undef tanf 2361# undef tanf
2285# define tanf rpl_tanf 2362# define tanf rpl_tanf
2286# endif 2363# endif
2287_GL_FUNCDECL_RPL (tanf, float, (float x)); 2364_GL_FUNCDECL_RPL (tanf, float, (float x), );
2288_GL_CXXALIAS_RPL (tanf, float, (float x)); 2365_GL_CXXALIAS_RPL (tanf, float, (float x));
2289# else 2366# else
2290# if !@HAVE_TANF@ 2367# if !@HAVE_TANF@
2291# undef tanf 2368# undef tanf
2292_GL_FUNCDECL_SYS (tanf, float, (float x)); 2369_GL_FUNCDECL_SYS (tanf, float, (float x), );
2293# endif 2370# endif
2294_GL_CXXALIAS_SYS (tanf, float, (float x)); 2371_GL_CXXALIAS_SYS (tanf, float, (float x));
2295# endif 2372# endif
@@ -2305,7 +2382,7 @@ _GL_WARN_ON_USE (tanf, "tanf is unportable - "
2305#if @GNULIB_TANL@ 2382#if @GNULIB_TANL@
2306# if !@HAVE_TANL@ || !@HAVE_DECL_TANL@ 2383# if !@HAVE_TANL@ || !@HAVE_DECL_TANL@
2307# undef tanl 2384# undef tanl
2308_GL_FUNCDECL_SYS (tanl, long double, (long double x)); 2385_GL_FUNCDECL_SYS (tanl, long double, (long double x), );
2309# endif 2386# endif
2310_GL_CXXALIAS_SYS (tanl, long double, (long double x)); 2387_GL_CXXALIAS_SYS (tanl, long double, (long double x));
2311# if __GLIBC__ >= 2 2388# if __GLIBC__ >= 2
@@ -2326,12 +2403,12 @@ _GL_WARN_ON_USE (tanl, "tanl is unportable - "
2326# undef tanhf 2403# undef tanhf
2327# define tanhf rpl_tanhf 2404# define tanhf rpl_tanhf
2328# endif 2405# endif
2329_GL_FUNCDECL_RPL (tanhf, float, (float x)); 2406_GL_FUNCDECL_RPL (tanhf, float, (float x), );
2330_GL_CXXALIAS_RPL (tanhf, float, (float x)); 2407_GL_CXXALIAS_RPL (tanhf, float, (float x));
2331# else 2408# else
2332# if !@HAVE_TANHF@ 2409# if !@HAVE_TANHF@
2333# undef tanhf 2410# undef tanhf
2334_GL_FUNCDECL_SYS (tanhf, float, (float x)); 2411_GL_FUNCDECL_SYS (tanhf, float, (float x), );
2335# endif 2412# endif
2336_GL_CXXALIAS_SYS (tanhf, float, (float x)); 2413_GL_CXXALIAS_SYS (tanhf, float, (float x));
2337# endif 2414# endif
@@ -2351,11 +2428,11 @@ _GL_WARN_ON_USE (tanhf, "tanhf is unportable - "
2351# undef truncf 2428# undef truncf
2352# define truncf rpl_truncf 2429# define truncf rpl_truncf
2353# endif 2430# endif
2354_GL_FUNCDECL_RPL (truncf, float, (float x)); 2431_GL_FUNCDECL_RPL (truncf, float, (float x), );
2355_GL_CXXALIAS_RPL (truncf, float, (float x)); 2432_GL_CXXALIAS_RPL (truncf, float, (float x));
2356# else 2433# else
2357# if !@HAVE_DECL_TRUNCF@ 2434# if !@HAVE_DECL_TRUNCF@
2358_GL_FUNCDECL_SYS (truncf, float, (float x)); 2435_GL_FUNCDECL_SYS (truncf, float, (float x), );
2359# endif 2436# endif
2360_GL_CXXALIAS_SYS (truncf, float, (float x)); 2437_GL_CXXALIAS_SYS (truncf, float, (float x));
2361# endif 2438# endif
@@ -2374,11 +2451,11 @@ _GL_WARN_ON_USE (truncf, "truncf is unportable - "
2374# undef trunc 2451# undef trunc
2375# define trunc rpl_trunc 2452# define trunc rpl_trunc
2376# endif 2453# endif
2377_GL_FUNCDECL_RPL (trunc, double, (double x)); 2454_GL_FUNCDECL_RPL (trunc, double, (double x), );
2378_GL_CXXALIAS_RPL (trunc, double, (double x)); 2455_GL_CXXALIAS_RPL (trunc, double, (double x));
2379# else 2456# else
2380# if !@HAVE_DECL_TRUNC@ 2457# if !@HAVE_DECL_TRUNC@
2381_GL_FUNCDECL_SYS (trunc, double, (double x)); 2458_GL_FUNCDECL_SYS (trunc, double, (double x), );
2382# endif 2459# endif
2383_GL_CXXALIAS_SYS (trunc, double, (double x)); 2460_GL_CXXALIAS_SYS (trunc, double, (double x));
2384# endif 2461# endif
@@ -2399,11 +2476,11 @@ _GL_WARN_ON_USE (trunc, "trunc is unportable - "
2399# undef truncl 2476# undef truncl
2400# define truncl rpl_truncl 2477# define truncl rpl_truncl
2401# endif 2478# endif
2402_GL_FUNCDECL_RPL (truncl, long double, (long double x)); 2479_GL_FUNCDECL_RPL (truncl, long double, (long double x), );
2403_GL_CXXALIAS_RPL (truncl, long double, (long double x)); 2480_GL_CXXALIAS_RPL (truncl, long double, (long double x));
2404# else 2481# else
2405# if !@HAVE_DECL_TRUNCL@ 2482# if !@HAVE_DECL_TRUNCL@
2406_GL_FUNCDECL_SYS (truncl, long double, (long double x)); 2483_GL_FUNCDECL_SYS (truncl, long double, (long double x), );
2407# endif 2484# endif
2408_GL_CXXALIAS_SYS (truncl, long double, (long double x)); 2485_GL_CXXALIAS_SYS (truncl, long double, (long double x));
2409# endif 2486# endif
@@ -2487,7 +2564,7 @@ _GL_EXTERN_C int gl_isfinitel (long double x);
2487# if defined isfinite || defined GNULIB_NAMESPACE 2564# if defined isfinite || defined GNULIB_NAMESPACE
2488_GL_MATH_CXX_REAL_FLOATING_DECL_1 (isfinite) 2565_GL_MATH_CXX_REAL_FLOATING_DECL_1 (isfinite)
2489# undef isfinite 2566# undef isfinite
2490# 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__))))
2491 /* 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
2492 functions. */ 2569 functions. */
2493_GL_MATH_CXX_REAL_FLOATING_DECL_2 (isfinite, rpl_isfinite, bool) 2570_GL_MATH_CXX_REAL_FLOATING_DECL_2 (isfinite, rpl_isfinite, bool)
@@ -2557,7 +2634,7 @@ _GL_EXTERN_C int isnanf (float x);
2557 GCC >= 4.0 also provides __builtin_isnanf, but clang doesn't. */ 2634 GCC >= 4.0 also provides __builtin_isnanf, but clang doesn't. */
2558# undef isnanf 2635# undef isnanf
2559# define isnanf(x) __builtin_isnan ((float)(x)) 2636# define isnanf(x) __builtin_isnan ((float)(x))
2560# elif defined isnan 2637# elif defined isnan && !defined HAVE_ISNANF_NOLIBM
2561# undef isnanf 2638# undef isnanf
2562# define isnanf(x) isnan ((float)(x)) 2639# define isnanf(x) isnan ((float)(x))
2563# endif 2640# endif
@@ -2586,7 +2663,7 @@ _GL_EXTERN_C int isnand (double x);
2586 /* 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. */
2587# undef isnand 2664# undef isnand
2588# define isnand(x) __builtin_isnan ((double)(x)) 2665# define isnand(x) __builtin_isnan ((double)(x))
2589# else 2666# elif !defined HAVE_ISNAND_NOLIBM
2590# undef isnand 2667# undef isnand
2591# define isnand(x) isnan ((double)(x)) 2668# define isnand(x) isnan ((double)(x))
2592# endif 2669# endif
@@ -2609,7 +2686,7 @@ _GL_EXTERN_C int isnand (double x);
2609 GCC >= 4.0 also provides __builtin_isnanl, but clang doesn't. */ 2686 GCC >= 4.0 also provides __builtin_isnanl, but clang doesn't. */
2610# undef isnanl 2687# undef isnanl
2611# define isnanl(x) __builtin_isnan ((long double)(x)) 2688# define isnanl(x) __builtin_isnan ((long double)(x))
2612# elif defined isnan 2689# elif defined isnan && !defined HAVE_ISNANL_NOLIBM
2613# undef isnanl 2690# undef isnanl
2614# define isnanl(x) isnan ((long double)(x)) 2691# define isnanl(x) isnan ((long double)(x))
2615# endif 2692# endif
@@ -2754,7 +2831,7 @@ _GL_EXTERN_C int gl_signbitl (long double arg);
2754# if defined signbit || defined GNULIB_NAMESPACE 2831# if defined signbit || defined GNULIB_NAMESPACE
2755_GL_MATH_CXX_REAL_FLOATING_DECL_1 (signbit) 2832_GL_MATH_CXX_REAL_FLOATING_DECL_1 (signbit)
2756# undef signbit 2833# undef signbit
2757# 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__)))
2758 /* 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
2759 functions. */ 2836 functions. */
2760_GL_MATH_CXX_REAL_FLOATING_DECL_2 (signbit, rpl_signbit, bool) 2837_GL_MATH_CXX_REAL_FLOATING_DECL_2 (signbit, rpl_signbit, bool)
@@ -2780,11 +2857,11 @@ _GL_WARN_REAL_FLOATING_DECL (signbit);
2780# undef getpayloadf 2857# undef getpayloadf
2781# define getpayloadf rpl_getpayloadf 2858# define getpayloadf rpl_getpayloadf
2782# endif 2859# endif
2783_GL_FUNCDECL_RPL (getpayloadf, float, (const float *)); 2860_GL_FUNCDECL_RPL (getpayloadf, float, (const float *), );
2784_GL_CXXALIAS_RPL (getpayloadf, float, (const float *)); 2861_GL_CXXALIAS_RPL (getpayloadf, float, (const float *));
2785# else 2862# else
2786# if !@HAVE_GETPAYLOADF@ 2863# if !@HAVE_GETPAYLOADF@
2787_GL_FUNCDECL_SYS (getpayloadf, float, (const float *)); 2864_GL_FUNCDECL_SYS (getpayloadf, float, (const float *), );
2788# endif 2865# endif
2789_GL_CXXALIAS_SYS (getpayloadf, float, (const float *)); 2866_GL_CXXALIAS_SYS (getpayloadf, float, (const float *));
2790# endif 2867# endif
@@ -2803,11 +2880,11 @@ _GL_WARN_ON_USE (getpayloadf, "getpayloadf is unportable - "
2803# undef getpayload 2880# undef getpayload
2804# define getpayload rpl_getpayload 2881# define getpayload rpl_getpayload
2805# endif 2882# endif
2806_GL_FUNCDECL_RPL (getpayload, double, (const double *)); 2883_GL_FUNCDECL_RPL (getpayload, double, (const double *), );
2807_GL_CXXALIAS_RPL (getpayload, double, (const double *)); 2884_GL_CXXALIAS_RPL (getpayload, double, (const double *));
2808# else 2885# else
2809# if !@HAVE_GETPAYLOAD@ 2886# if !@HAVE_GETPAYLOAD@
2810_GL_FUNCDECL_SYS (getpayload, double, (const double *)); 2887_GL_FUNCDECL_SYS (getpayload, double, (const double *), );
2811# endif 2888# endif
2812_GL_CXXALIAS_SYS (getpayload, double, (const double *)); 2889_GL_CXXALIAS_SYS (getpayload, double, (const double *));
2813# endif 2890# endif
@@ -2826,11 +2903,11 @@ _GL_WARN_ON_USE (getpayload, "getpayload is unportable - "
2826# undef getpayloadl 2903# undef getpayloadl
2827# define getpayloadl rpl_getpayloadl 2904# define getpayloadl rpl_getpayloadl
2828# endif 2905# endif
2829_GL_FUNCDECL_RPL (getpayloadl, long double, (const long double *)); 2906_GL_FUNCDECL_RPL (getpayloadl, long double, (const long double *), );
2830_GL_CXXALIAS_RPL (getpayloadl, long double, (const long double *)); 2907_GL_CXXALIAS_RPL (getpayloadl, long double, (const long double *));
2831# else 2908# else
2832# if !@HAVE_GETPAYLOADL@ 2909# if !@HAVE_GETPAYLOADL@
2833_GL_FUNCDECL_SYS (getpayloadl, long double, (const long double *)); 2910_GL_FUNCDECL_SYS (getpayloadl, long double, (const long double *), );
2834# endif 2911# endif
2835_GL_CXXALIAS_SYS (getpayloadl, long double, (const long double *)); 2912_GL_CXXALIAS_SYS (getpayloadl, long double, (const long double *));
2836# endif 2913# endif
@@ -2846,7 +2923,7 @@ _GL_WARN_ON_USE (getpayloadl, "getpayloadl is unportable - "
2846 2923
2847#if @GNULIB_SETPAYLOADF@ 2924#if @GNULIB_SETPAYLOADF@
2848# if !@HAVE_SETPAYLOADF@ 2925# if !@HAVE_SETPAYLOADF@
2849_GL_FUNCDECL_SYS (setpayloadf, int, (float *, float)); 2926_GL_FUNCDECL_SYS (setpayloadf, int, (float *, float), );
2850# endif 2927# endif
2851_GL_CXXALIAS_SYS (setpayloadf, int, (float *, float)); 2928_GL_CXXALIAS_SYS (setpayloadf, int, (float *, float));
2852_GL_CXXALIASWARN (setpayloadf); 2929_GL_CXXALIASWARN (setpayloadf);
@@ -2860,7 +2937,7 @@ _GL_WARN_ON_USE (setpayloadf, "setpayloadf is unportable - "
2860 2937
2861#if @GNULIB_SETPAYLOAD@ 2938#if @GNULIB_SETPAYLOAD@
2862# if !@HAVE_SETPAYLOAD@ 2939# if !@HAVE_SETPAYLOAD@
2863_GL_FUNCDECL_SYS (setpayload, int, (double *, double)); 2940_GL_FUNCDECL_SYS (setpayload, int, (double *, double), );
2864# endif 2941# endif
2865_GL_CXXALIAS_SYS (setpayload, int, (double *, double)); 2942_GL_CXXALIAS_SYS (setpayload, int, (double *, double));
2866_GL_CXXALIASWARN (setpayload); 2943_GL_CXXALIASWARN (setpayload);
@@ -2874,7 +2951,7 @@ _GL_WARN_ON_USE (setpayload, "setpayload is unportable - "
2874 2951
2875#if @GNULIB_SETPAYLOADL@ 2952#if @GNULIB_SETPAYLOADL@
2876# if !@HAVE_SETPAYLOADL@ 2953# if !@HAVE_SETPAYLOADL@
2877_GL_FUNCDECL_SYS (setpayloadl, int, (long double *, long double)); 2954_GL_FUNCDECL_SYS (setpayloadl, int, (long double *, long double), );
2878# endif 2955# endif
2879_GL_CXXALIAS_SYS (setpayloadl, int, (long double *, long double)); 2956_GL_CXXALIAS_SYS (setpayloadl, int, (long double *, long double));
2880_GL_CXXALIASWARN (setpayloadl); 2957_GL_CXXALIASWARN (setpayloadl);
@@ -2889,7 +2966,7 @@ _GL_WARN_ON_USE (setpayloadl, "setpayloadl is unportable - "
2889 2966
2890#if @GNULIB_SETPAYLOADSIGF@ 2967#if @GNULIB_SETPAYLOADSIGF@
2891# if !@HAVE_SETPAYLOADSIGF@ 2968# if !@HAVE_SETPAYLOADSIGF@
2892_GL_FUNCDECL_SYS (setpayloadsigf, int, (float *, float)); 2969_GL_FUNCDECL_SYS (setpayloadsigf, int, (float *, float), );
2893# endif 2970# endif
2894_GL_CXXALIAS_SYS (setpayloadsigf, int, (float *, float)); 2971_GL_CXXALIAS_SYS (setpayloadsigf, int, (float *, float));
2895_GL_CXXALIASWARN (setpayloadsigf); 2972_GL_CXXALIASWARN (setpayloadsigf);
@@ -2903,7 +2980,7 @@ _GL_WARN_ON_USE (setpayloadsigf, "setpayloadsigf is unportable - "
2903 2980
2904#if @GNULIB_SETPAYLOADSIG@ 2981#if @GNULIB_SETPAYLOADSIG@
2905# if !@HAVE_SETPAYLOADSIG@ 2982# if !@HAVE_SETPAYLOADSIG@
2906_GL_FUNCDECL_SYS (setpayloadsig, int, (double *, double)); 2983_GL_FUNCDECL_SYS (setpayloadsig, int, (double *, double), );
2907# endif 2984# endif
2908_GL_CXXALIAS_SYS (setpayloadsig, int, (double *, double)); 2985_GL_CXXALIAS_SYS (setpayloadsig, int, (double *, double));
2909_GL_CXXALIASWARN (setpayloadsig); 2986_GL_CXXALIASWARN (setpayloadsig);
@@ -2917,7 +2994,7 @@ _GL_WARN_ON_USE (setpayloadsig, "setpayloadsig is unportable - "
2917 2994
2918#if @GNULIB_SETPAYLOADSIGL@ 2995#if @GNULIB_SETPAYLOADSIGL@
2919# if !@HAVE_SETPAYLOADSIGL@ 2996# if !@HAVE_SETPAYLOADSIGL@
2920_GL_FUNCDECL_SYS (setpayloadsigl, int, (long double *, long double)); 2997_GL_FUNCDECL_SYS (setpayloadsigl, int, (long double *, long double), );
2921# endif 2998# endif
2922_GL_CXXALIAS_SYS (setpayloadsigl, int, (long double *, long double)); 2999_GL_CXXALIAS_SYS (setpayloadsigl, int, (long double *, long double));
2923_GL_CXXALIASWARN (setpayloadsigl); 3000_GL_CXXALIASWARN (setpayloadsigl);
@@ -2936,11 +3013,11 @@ _GL_WARN_ON_USE (setpayloadsigl, "setpayloadsigl is unportable - "
2936# undef totalorderf 3013# undef totalorderf
2937# define totalorderf rpl_totalorderf 3014# define totalorderf rpl_totalorderf
2938# endif 3015# endif
2939_GL_FUNCDECL_RPL (totalorderf, int, (float const *, float const *)); 3016_GL_FUNCDECL_RPL (totalorderf, int, (float const *, float const *), );
2940_GL_CXXALIAS_RPL (totalorderf, int, (float const *, float const *)); 3017_GL_CXXALIAS_RPL (totalorderf, int, (float const *, float const *));
2941# else 3018# else
2942# if !@HAVE_TOTALORDERF@ 3019# if !@HAVE_TOTALORDERF@
2943_GL_FUNCDECL_SYS (totalorderf, int, (float const *, float const *)); 3020_GL_FUNCDECL_SYS (totalorderf, int, (float const *, float const *), );
2944# endif 3021# endif
2945_GL_CXXALIAS_SYS (totalorderf, int, (float const *, float const *)); 3022_GL_CXXALIAS_SYS (totalorderf, int, (float const *, float const *));
2946# endif 3023# endif
@@ -2959,11 +3036,11 @@ _GL_WARN_ON_USE (totalorderf, "totalorderf is unportable - "
2959# undef totalorder 3036# undef totalorder
2960# define totalorder rpl_totalorder 3037# define totalorder rpl_totalorder
2961# endif 3038# endif
2962_GL_FUNCDECL_RPL (totalorder, int, (double const *, double const *)); 3039_GL_FUNCDECL_RPL (totalorder, int, (double const *, double const *), );
2963_GL_CXXALIAS_RPL (totalorder, int, (double const *, double const *)); 3040_GL_CXXALIAS_RPL (totalorder, int, (double const *, double const *));
2964# else 3041# else
2965# if !@HAVE_TOTALORDER@ 3042# if !@HAVE_TOTALORDER@
2966_GL_FUNCDECL_SYS (totalorder, int, (double const *, double const *)); 3043_GL_FUNCDECL_SYS (totalorder, int, (double const *, double const *), );
2967# endif 3044# endif
2968_GL_CXXALIAS_SYS (totalorder, int, (double const *, double const *)); 3045_GL_CXXALIAS_SYS (totalorder, int, (double const *, double const *));
2969# endif 3046# endif
@@ -2985,13 +3062,13 @@ _GL_WARN_ON_USE (totalorder, "totalorder is unportable - "
2985# define totalorderl rpl_totalorderl 3062# define totalorderl rpl_totalorderl
2986# endif 3063# endif
2987_GL_FUNCDECL_RPL (totalorderl, int, 3064_GL_FUNCDECL_RPL (totalorderl, int,
2988 (long double const *, long double const *)); 3065 (long double const *, long double const *), );
2989_GL_CXXALIAS_RPL (totalorderl, int, 3066_GL_CXXALIAS_RPL (totalorderl, int,
2990 (long double const *, long double const *)); 3067 (long double const *, long double const *));
2991# else 3068# else
2992# if !@HAVE_TOTALORDERL@ 3069# if !@HAVE_TOTALORDERL@
2993_GL_FUNCDECL_SYS (totalorderl, int, 3070_GL_FUNCDECL_SYS (totalorderl, int,
2994 (long double const *, long double const *)); 3071 (long double const *, long double const *), );
2995# endif 3072# endif
2996_GL_CXXALIAS_SYS (totalorderl, int, 3073_GL_CXXALIAS_SYS (totalorderl, int,
2997 (long double const *, long double const *)); 3074 (long double const *, long double const *));
@@ -3012,11 +3089,11 @@ _GL_WARN_ON_USE (totalorderl, "totalorderl is unportable - "
3012# undef totalordermagf 3089# undef totalordermagf
3013# define totalordermagf rpl_totalordermagf 3090# define totalordermagf rpl_totalordermagf
3014# endif 3091# endif
3015_GL_FUNCDECL_RPL (totalordermagf, int, (float const *, float const *)); 3092_GL_FUNCDECL_RPL (totalordermagf, int, (float const *, float const *), );
3016_GL_CXXALIAS_RPL (totalordermagf, int, (float const *, float const *)); 3093_GL_CXXALIAS_RPL (totalordermagf, int, (float const *, float const *));
3017# else 3094# else
3018# if !@HAVE_TOTALORDERMAGF@ 3095# if !@HAVE_TOTALORDERMAGF@
3019_GL_FUNCDECL_SYS (totalordermagf, int, (float const *, float const *)); 3096_GL_FUNCDECL_SYS (totalordermagf, int, (float const *, float const *), );
3020# endif 3097# endif
3021_GL_CXXALIAS_SYS (totalordermagf, int, (float const *, float const *)); 3098_GL_CXXALIAS_SYS (totalordermagf, int, (float const *, float const *));
3022# endif 3099# endif
@@ -3037,11 +3114,11 @@ _GL_WARN_ON_USE (totalordermagf, "totalordermagf is unportable - "
3037# undef totalordermag 3114# undef totalordermag
3038# define totalordermag rpl_totalordermag 3115# define totalordermag rpl_totalordermag
3039# endif 3116# endif
3040_GL_FUNCDECL_RPL (totalordermag, int, (double const *, double const *)); 3117_GL_FUNCDECL_RPL (totalordermag, int, (double const *, double const *), );
3041_GL_CXXALIAS_RPL (totalordermag, int, (double const *, double const *)); 3118_GL_CXXALIAS_RPL (totalordermag, int, (double const *, double const *));
3042# else 3119# else
3043# if !@HAVE_TOTALORDERMAG@ 3120# if !@HAVE_TOTALORDERMAG@
3044_GL_FUNCDECL_SYS (totalordermag, int, (double const *, double const *)); 3121_GL_FUNCDECL_SYS (totalordermag, int, (double const *, double const *), );
3045# endif 3122# endif
3046_GL_CXXALIAS_SYS (totalordermag, int, (double const *, double const *)); 3123_GL_CXXALIAS_SYS (totalordermag, int, (double const *, double const *));
3047# endif 3124# endif
@@ -3063,13 +3140,13 @@ _GL_WARN_ON_USE (totalordermag, "totalordermag is unportable - "
3063# define totalordermagl rpl_totalordermagl 3140# define totalordermagl rpl_totalordermagl
3064# endif 3141# endif
3065_GL_FUNCDECL_RPL (totalordermagl, int, 3142_GL_FUNCDECL_RPL (totalordermagl, int,
3066 (long double const *, long double const *)); 3143 (long double const *, long double const *), );
3067_GL_CXXALIAS_RPL (totalordermagl, int, 3144_GL_CXXALIAS_RPL (totalordermagl, int,
3068 (long double const *, long double const *)); 3145 (long double const *, long double const *));
3069# else 3146# else
3070# if !@HAVE_TOTALORDERMAGL@ 3147# if !@HAVE_TOTALORDERMAGL@
3071_GL_FUNCDECL_SYS (totalordermagl, int, 3148_GL_FUNCDECL_SYS (totalordermagl, int,
3072 (long double const *, long double const *)); 3149 (long double const *, long double const *), );
3073# endif 3150# endif
3074_GL_CXXALIAS_SYS (totalordermagl, int, 3151_GL_CXXALIAS_SYS (totalordermagl, int,
3075 (long double const *, long double const *)); 3152 (long double const *, long double const *));