summaryrefslogtreecommitdiff
path: root/lib/math.in.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/math.in.h')
-rw-r--r--lib/math.in.h658
1 files changed, 480 insertions, 178 deletions
diff --git a/lib/math.in.h b/lib/math.in.h
index 85b7e6ff..75d6351a 100644
--- a/lib/math.in.h
+++ b/lib/math.in.h
@@ -160,12 +160,23 @@ static void (*_gl_math_fix_itold) (long double *, int) = _Qp_itoq;
#endif
+/* Ensure that INFINITY is a constant expression, of type 'float'. */
+#if !defined INFINITY || (defined __FreeBSD__ && __FreeBSD__ < 8) || defined _AIX || defined __MINGW32__
+# undef INFINITY
+# if defined __GNUC__ || defined __clang__
+# define INFINITY (__builtin_inff ())
+# else
+# define INFINITY (1.0f / 0.0f)
+# endif
+#endif
+
/* POSIX allows platforms that don't support NAN. But all major
machines in the past 15 years have supported something close to
IEEE NaN, so we define this unconditionally. We also must define
it on platforms like Solaris 10, where NAN is present but defined
- as a function pointer rather than a floating point constant. */
-#if !defined NAN || @REPLACE_NAN@
+ as a function pointer rather than a floating point constant.
+ Also ensure that it is a constant expression, of type 'float'. */
+#if !defined NAN || @REPLACE_NAN@ || (defined __FreeBSD__ && __FreeBSD__ < 8) || defined _AIX || defined __MINGW32__
# if !GNULIB_defined_NAN
# undef NAN
/* The Compaq (ex-DEC) C 6.4 compiler and the Microsoft MSVC 9 compiler
@@ -178,6 +189,8 @@ _NaN ()
return zero / zero;
}
# define NAN (_NaN())
+# elif defined __GNUC__ || defined __clang__
+# define NAN (__builtin_nanf (""))
# else
# define NAN (0.0f / 0.0f)
# endif
@@ -197,46 +210,46 @@ _NaN ()
#endif
/* HUGE_VALF is a 'float' Infinity. */
-#ifndef HUGE_VALF
+#if !defined HUGE_VALF || (defined __FreeBSD__ && __FreeBSD__ < 6)
+# undef HUGE_VALF
# if defined _MSC_VER
/* The Microsoft MSVC 9 compiler chokes on the expression 1.0f / 0.0f. */
# define HUGE_VALF (1e25f * 1e25f)
+# elif defined __GNUC__ || defined __clang__
+# define HUGE_VALF (__builtin_inff ())
# else
# define HUGE_VALF (1.0f / 0.0f)
# endif
#endif
/* HUGE_VAL is a 'double' Infinity. */
-#ifndef HUGE_VAL
+#if !defined HUGE_VAL || (defined __FreeBSD__ && __FreeBSD__ < 6) || defined _AIX
+# undef HUGE_VAL
# if defined _MSC_VER
/* The Microsoft MSVC 9 compiler chokes on the expression 1.0 / 0.0. */
# define HUGE_VAL (1e250 * 1e250)
+# elif defined __GNUC__ || defined __clang__
+# define HUGE_VAL (__builtin_inf ())
# else
# define HUGE_VAL (1.0 / 0.0)
# endif
#endif
/* HUGE_VALL is a 'long double' Infinity. */
-#ifndef HUGE_VALL
+#if !defined HUGE_VALL || (defined __FreeBSD__ && __FreeBSD__ < 6) || defined _AIX
+# undef HUGE_VALL
# if defined _MSC_VER
/* The Microsoft MSVC 9 compiler chokes on the expression 1.0L / 0.0L. */
# define HUGE_VALL (1e250L * 1e250L)
+# elif defined __GNUC__ || defined __clang__
+# define HUGE_VALL (__builtin_infl ())
# else
# define HUGE_VALL (1.0L / 0.0L)
# endif
#endif
-#if defined FP_ILOGB0 && defined FP_ILOGBNAN
- /* Ensure FP_ILOGB0 and FP_ILOGBNAN are correct. */
-# if defined __HAIKU__
- /* Haiku: match what ilogb() does */
-# undef FP_ILOGB0
-# undef FP_ILOGBNAN
-# define FP_ILOGB0 (- 2147483647 - 1) /* INT_MIN */
-# define FP_ILOGBNAN (- 2147483647 - 1) /* INT_MIN */
-# endif
-#else
+#if !(defined FP_ILOGB0 && defined FP_ILOGBNAN)
/* Ensure FP_ILOGB0 and FP_ILOGBNAN are defined. */
# if defined __NetBSD__ || defined __sgi
/* NetBSD, IRIX 6.5: match what ilogb() does */
@@ -264,12 +277,12 @@ _NaN ()
# undef acosf
# define acosf rpl_acosf
# endif
-_GL_FUNCDECL_RPL (acosf, float, (float x));
+_GL_FUNCDECL_RPL (acosf, float, (float x), );
_GL_CXXALIAS_RPL (acosf, float, (float x));
# else
# if !@HAVE_ACOSF@
# undef acosf
-_GL_FUNCDECL_SYS (acosf, float, (float x));
+_GL_FUNCDECL_SYS (acosf, float, (float x), );
# endif
_GL_CXXALIAS_SYS (acosf, float, (float x));
# endif
@@ -285,7 +298,7 @@ _GL_WARN_ON_USE (acosf, "acosf is unportable - "
#if @GNULIB_ACOSL@
# if !@HAVE_ACOSL@ || !@HAVE_DECL_ACOSL@
# undef acosl
-_GL_FUNCDECL_SYS (acosl, long double, (long double x));
+_GL_FUNCDECL_SYS (acosl, long double, (long double x), );
# endif
_GL_CXXALIAS_SYS (acosl, long double, (long double x));
# if __GLIBC__ >= 2
@@ -306,12 +319,12 @@ _GL_WARN_ON_USE (acosl, "acosl is unportable - "
# undef asinf
# define asinf rpl_asinf
# endif
-_GL_FUNCDECL_RPL (asinf, float, (float x));
+_GL_FUNCDECL_RPL (asinf, float, (float x), );
_GL_CXXALIAS_RPL (asinf, float, (float x));
# else
# if !@HAVE_ASINF@
# undef asinf
-_GL_FUNCDECL_SYS (asinf, float, (float x));
+_GL_FUNCDECL_SYS (asinf, float, (float x), );
# endif
_GL_CXXALIAS_SYS (asinf, float, (float x));
# endif
@@ -327,7 +340,7 @@ _GL_WARN_ON_USE (asinf, "asinf is unportable - "
#if @GNULIB_ASINL@
# if !@HAVE_ASINL@ || !@HAVE_DECL_ASINL@
# undef asinl
-_GL_FUNCDECL_SYS (asinl, long double, (long double x));
+_GL_FUNCDECL_SYS (asinl, long double, (long double x), );
# endif
_GL_CXXALIAS_SYS (asinl, long double, (long double x));
# if __GLIBC__ >= 2
@@ -348,12 +361,12 @@ _GL_WARN_ON_USE (asinl, "asinl is unportable - "
# undef atanf
# define atanf rpl_atanf
# endif
-_GL_FUNCDECL_RPL (atanf, float, (float x));
+_GL_FUNCDECL_RPL (atanf, float, (float x), );
_GL_CXXALIAS_RPL (atanf, float, (float x));
# else
# if !@HAVE_ATANF@
# undef atanf
-_GL_FUNCDECL_SYS (atanf, float, (float x));
+_GL_FUNCDECL_SYS (atanf, float, (float x), );
# endif
_GL_CXXALIAS_SYS (atanf, float, (float x));
# endif
@@ -369,7 +382,7 @@ _GL_WARN_ON_USE (atanf, "atanf is unportable - "
#if @GNULIB_ATANL@
# if !@HAVE_ATANL@ || !@HAVE_DECL_ATANL@
# undef atanl
-_GL_FUNCDECL_SYS (atanl, long double, (long double x));
+_GL_FUNCDECL_SYS (atanl, long double, (long double x), );
# endif
_GL_CXXALIAS_SYS (atanl, long double, (long double x));
# if __GLIBC__ >= 2
@@ -390,12 +403,12 @@ _GL_WARN_ON_USE (atanl, "atanl is unportable - "
# undef atan2f
# define atan2f rpl_atan2f
# endif
-_GL_FUNCDECL_RPL (atan2f, float, (float y, float x));
+_GL_FUNCDECL_RPL (atan2f, float, (float y, float x), );
_GL_CXXALIAS_RPL (atan2f, float, (float y, float x));
# else
# if !@HAVE_ATAN2F@
# undef atan2f
-_GL_FUNCDECL_SYS (atan2f, float, (float y, float x));
+_GL_FUNCDECL_SYS (atan2f, float, (float y, float x), );
# endif
_GL_CXXALIAS_SYS (atan2f, float, (float y, float x));
# endif
@@ -415,11 +428,11 @@ _GL_WARN_ON_USE (atan2f, "atan2f is unportable - "
# undef cbrtf
# define cbrtf rpl_cbrtf
# endif
-_GL_FUNCDECL_RPL (cbrtf, float, (float x));
+_GL_FUNCDECL_RPL (cbrtf, float, (float x), );
_GL_CXXALIAS_RPL (cbrtf, float, (float x));
# else
# if !@HAVE_DECL_CBRTF@
-_GL_FUNCDECL_SYS (cbrtf, float, (float x));
+_GL_FUNCDECL_SYS (cbrtf, float, (float x), );
# endif
_GL_CXXALIAS_SYS (cbrtf, float, (float x));
# endif
@@ -434,7 +447,7 @@ _GL_WARN_ON_USE (cbrtf, "cbrtf is unportable - "
#if @GNULIB_CBRT@
# if !@HAVE_CBRT@
-_GL_FUNCDECL_SYS (cbrt, double, (double x));
+_GL_FUNCDECL_SYS (cbrt, double, (double x), );
# endif
_GL_CXXALIAS_SYS (cbrt, double, (double x));
# if __GLIBC__ >= 2
@@ -454,11 +467,11 @@ _GL_WARN_ON_USE (cbrt, "cbrt is unportable - "
# undef cbrtl
# define cbrtl rpl_cbrtl
# endif
-_GL_FUNCDECL_RPL (cbrtl, long double, (long double x));
+_GL_FUNCDECL_RPL (cbrtl, long double, (long double x), );
_GL_CXXALIAS_RPL (cbrtl, long double, (long double x));
# else
# if !@HAVE_DECL_CBRTL@
-_GL_FUNCDECL_SYS (cbrtl, long double, (long double x));
+_GL_FUNCDECL_SYS (cbrtl, long double, (long double x), );
# endif
_GL_CXXALIAS_SYS (cbrtl, long double, (long double x));
# endif
@@ -480,12 +493,12 @@ _GL_WARN_ON_USE (cbrtl, "cbrtl is unportable - "
# undef ceilf
# define ceilf rpl_ceilf
# endif
-_GL_FUNCDECL_RPL (ceilf, float, (float x));
+_GL_FUNCDECL_RPL (ceilf, float, (float x), );
_GL_CXXALIAS_RPL (ceilf, float, (float x));
# else
# if !@HAVE_DECL_CEILF@
# undef ceilf
-_GL_FUNCDECL_SYS (ceilf, float, (float x));
+_GL_FUNCDECL_SYS (ceilf, float, (float x), );
# endif
_GL_CXXALIAS_SYS (ceilf, float, (float x));
# endif
@@ -504,7 +517,7 @@ _GL_WARN_ON_USE (ceilf, "ceilf is unportable - "
# undef ceil
# define ceil rpl_ceil
# endif
-_GL_FUNCDECL_RPL (ceil, double, (double x));
+_GL_FUNCDECL_RPL (ceil, double, (double x), );
_GL_CXXALIAS_RPL (ceil, double, (double x));
# else
_GL_CXXALIAS_SYS (ceil, double, (double x));
@@ -520,12 +533,12 @@ _GL_CXXALIASWARN1 (ceil, double, (double x));
# undef ceill
# define ceill rpl_ceill
# endif
-_GL_FUNCDECL_RPL (ceill, long double, (long double x));
+_GL_FUNCDECL_RPL (ceill, long double, (long double x), );
_GL_CXXALIAS_RPL (ceill, long double, (long double x));
# else
# if !@HAVE_DECL_CEILL@
# undef ceill
-_GL_FUNCDECL_SYS (ceill, long double, (long double x));
+_GL_FUNCDECL_SYS (ceill, long double, (long double x), );
# endif
_GL_CXXALIAS_SYS (ceill, long double, (long double x));
# endif
@@ -544,7 +557,7 @@ _GL_WARN_ON_USE (ceill, "ceill is unportable - "
#if @GNULIB_COPYSIGNF@
# if !@HAVE_DECL_COPYSIGNF@
# undef copysignf
-_GL_FUNCDECL_SYS (copysignf, float, (float x, float y));
+_GL_FUNCDECL_SYS (copysignf, float, (float x, float y), );
# endif
_GL_CXXALIAS_SYS (copysignf, float, (float x, float y));
_GL_CXXALIASWARN (copysignf);
@@ -558,7 +571,7 @@ _GL_WARN_ON_USE (copysignf, "copysignf is unportable - "
#if @GNULIB_COPYSIGN@
# if !@HAVE_COPYSIGN@
-_GL_FUNCDECL_SYS (copysign, double, (double x, double y));
+_GL_FUNCDECL_SYS (copysign, double, (double x, double y), );
# endif
_GL_CXXALIAS_SYS (copysign, double, (double x, double y));
# if __GLIBC__ >= 2
@@ -574,7 +587,7 @@ _GL_WARN_ON_USE (copysign, "copysign is unportable - "
#if @GNULIB_COPYSIGNL@
# if !@HAVE_COPYSIGNL@
-_GL_FUNCDECL_SYS (copysignl, long double, (long double x, long double y));
+_GL_FUNCDECL_SYS (copysignl, long double, (long double x, long double y), );
# endif
_GL_CXXALIAS_SYS (copysignl, long double, (long double x, long double y));
# if __GLIBC__ >= 2
@@ -595,12 +608,12 @@ _GL_WARN_ON_USE (copysign, "copysignl is unportable - "
# undef cosf
# define cosf rpl_cosf
# endif
-_GL_FUNCDECL_RPL (cosf, float, (float x));
+_GL_FUNCDECL_RPL (cosf, float, (float x), );
_GL_CXXALIAS_RPL (cosf, float, (float x));
# else
# if !@HAVE_COSF@
# undef cosf
-_GL_FUNCDECL_SYS (cosf, float, (float x));
+_GL_FUNCDECL_SYS (cosf, float, (float x), );
# endif
_GL_CXXALIAS_SYS (cosf, float, (float x));
# endif
@@ -616,7 +629,7 @@ _GL_WARN_ON_USE (cosf, "cosf is unportable - "
#if @GNULIB_COSL@
# if !@HAVE_COSL@ || !@HAVE_DECL_COSL@
# undef cosl
-_GL_FUNCDECL_SYS (cosl, long double, (long double x));
+_GL_FUNCDECL_SYS (cosl, long double, (long double x), );
# endif
_GL_CXXALIAS_SYS (cosl, long double, (long double x));
# if __GLIBC__ >= 2
@@ -637,12 +650,12 @@ _GL_WARN_ON_USE (cosl, "cosl is unportable - "
# undef coshf
# define coshf rpl_coshf
# endif
-_GL_FUNCDECL_RPL (coshf, float, (float x));
+_GL_FUNCDECL_RPL (coshf, float, (float x), );
_GL_CXXALIAS_RPL (coshf, float, (float x));
# else
# if !@HAVE_COSHF@
# undef coshf
-_GL_FUNCDECL_SYS (coshf, float, (float x));
+_GL_FUNCDECL_SYS (coshf, float, (float x), );
# endif
_GL_CXXALIAS_SYS (coshf, float, (float x));
# endif
@@ -662,12 +675,12 @@ _GL_WARN_ON_USE (coshf, "coshf is unportable - "
# undef expf
# define expf rpl_expf
# endif
-_GL_FUNCDECL_RPL (expf, float, (float x));
+_GL_FUNCDECL_RPL (expf, float, (float x), );
_GL_CXXALIAS_RPL (expf, float, (float x));
# else
# if !@HAVE_EXPF@
# undef expf
-_GL_FUNCDECL_SYS (expf, float, (float x));
+_GL_FUNCDECL_SYS (expf, float, (float x), );
# endif
_GL_CXXALIAS_SYS (expf, float, (float x));
# endif
@@ -686,12 +699,12 @@ _GL_WARN_ON_USE (expf, "expf is unportable - "
# undef expl
# define expl rpl_expl
# endif
-_GL_FUNCDECL_RPL (expl, long double, (long double x));
+_GL_FUNCDECL_RPL (expl, long double, (long double x), );
_GL_CXXALIAS_RPL (expl, long double, (long double x));
# else
# if !@HAVE_EXPL@ || !@HAVE_DECL_EXPL@
# undef expl
-_GL_FUNCDECL_SYS (expl, long double, (long double x));
+_GL_FUNCDECL_SYS (expl, long double, (long double x), );
# endif
_GL_CXXALIAS_SYS (expl, long double, (long double x));
# endif
@@ -709,7 +722,7 @@ _GL_WARN_ON_USE (expl, "expl is unportable - "
#if @GNULIB_EXP2F@
# if !@HAVE_DECL_EXP2F@
-_GL_FUNCDECL_SYS (exp2f, float, (float x));
+_GL_FUNCDECL_SYS (exp2f, float, (float x), );
# endif
_GL_CXXALIAS_SYS (exp2f, float, (float x));
_GL_CXXALIASWARN (exp2f);
@@ -727,11 +740,11 @@ _GL_WARN_ON_USE (exp2f, "exp2f is unportable - "
# undef exp2
# define exp2 rpl_exp2
# endif
-_GL_FUNCDECL_RPL (exp2, double, (double x));
+_GL_FUNCDECL_RPL (exp2, double, (double x), );
_GL_CXXALIAS_RPL (exp2, double, (double x));
# else
# if !@HAVE_DECL_EXP2@
-_GL_FUNCDECL_SYS (exp2, double, (double x));
+_GL_FUNCDECL_SYS (exp2, double, (double x), );
# endif
_GL_CXXALIAS_SYS (exp2, double, (double x));
# endif
@@ -752,12 +765,12 @@ _GL_WARN_ON_USE (exp2, "exp2 is unportable - "
# undef exp2l
# define exp2l rpl_exp2l
# endif
-_GL_FUNCDECL_RPL (exp2l, long double, (long double x));
+_GL_FUNCDECL_RPL (exp2l, long double, (long double x), );
_GL_CXXALIAS_RPL (exp2l, long double, (long double x));
# else
# if !@HAVE_DECL_EXP2L@
# undef exp2l
-_GL_FUNCDECL_SYS (exp2l, long double, (long double x));
+_GL_FUNCDECL_SYS (exp2l, long double, (long double x), );
# endif
_GL_CXXALIAS_SYS (exp2l, long double, (long double x));
# endif
@@ -779,11 +792,11 @@ _GL_WARN_ON_USE (exp2l, "exp2l is unportable - "
# undef expm1f
# define expm1f rpl_expm1f
# endif
-_GL_FUNCDECL_RPL (expm1f, float, (float x));
+_GL_FUNCDECL_RPL (expm1f, float, (float x), );
_GL_CXXALIAS_RPL (expm1f, float, (float x));
# else
# if !@HAVE_EXPM1F@
-_GL_FUNCDECL_SYS (expm1f, float, (float x));
+_GL_FUNCDECL_SYS (expm1f, float, (float x), );
# endif
_GL_CXXALIAS_SYS (expm1f, float, (float x));
# endif
@@ -802,11 +815,11 @@ _GL_WARN_ON_USE (expm1f, "expm1f is unportable - "
# undef expm1
# define expm1 rpl_expm1
# endif
-_GL_FUNCDECL_RPL (expm1, double, (double x));
+_GL_FUNCDECL_RPL (expm1, double, (double x), );
_GL_CXXALIAS_RPL (expm1, double, (double x));
# else
# if !@HAVE_EXPM1@
-_GL_FUNCDECL_SYS (expm1, double, (double x));
+_GL_FUNCDECL_SYS (expm1, double, (double x), );
# endif
_GL_CXXALIAS_SYS (expm1, double, (double x));
# endif
@@ -827,13 +840,13 @@ _GL_WARN_ON_USE (expm1, "expm1 is unportable - "
# undef expm1l
# define expm1l rpl_expm1l
# endif
-_GL_FUNCDECL_RPL (expm1l, long double, (long double x));
+_GL_FUNCDECL_RPL (expm1l, long double, (long double x), );
_GL_CXXALIAS_RPL (expm1l, long double, (long double x));
# else
# if !@HAVE_DECL_EXPM1L@
# undef expm1l
# if !(defined __cplusplus && defined _AIX)
-_GL_FUNCDECL_SYS (expm1l, long double, (long double x));
+_GL_FUNCDECL_SYS (expm1l, long double, (long double x), );
# endif
# endif
_GL_CXXALIAS_SYS (expm1l, long double, (long double x));
@@ -853,7 +866,7 @@ _GL_WARN_ON_USE (expm1l, "expm1l is unportable - "
#if @GNULIB_FABSF@
# if !@HAVE_FABSF@
# undef fabsf
-_GL_FUNCDECL_SYS (fabsf, float, (float x));
+_GL_FUNCDECL_SYS (fabsf, float, (float x), );
# endif
_GL_CXXALIAS_SYS (fabsf, float, (float x));
# if __GLIBC__ >= 2
@@ -873,12 +886,12 @@ _GL_WARN_ON_USE (fabsf, "fabsf is unportable - "
# undef fabsl
# define fabsl rpl_fabsl
# endif
-_GL_FUNCDECL_RPL (fabsl, long double, (long double x));
+_GL_FUNCDECL_RPL (fabsl, long double, (long double x), );
_GL_CXXALIAS_RPL (fabsl, long double, (long double x));
# else
# if !@HAVE_FABSL@
# undef fabsl
-_GL_FUNCDECL_SYS (fabsl, long double, (long double x));
+_GL_FUNCDECL_SYS (fabsl, long double, (long double x), );
# endif
_GL_CXXALIAS_SYS (fabsl, long double, (long double x));
# endif
@@ -900,12 +913,12 @@ _GL_WARN_ON_USE (fabsl, "fabsl is unportable - "
# undef floorf
# define floorf rpl_floorf
# endif
-_GL_FUNCDECL_RPL (floorf, float, (float x));
+_GL_FUNCDECL_RPL (floorf, float, (float x), );
_GL_CXXALIAS_RPL (floorf, float, (float x));
# else
# if !@HAVE_DECL_FLOORF@
# undef floorf
-_GL_FUNCDECL_SYS (floorf, float, (float x));
+_GL_FUNCDECL_SYS (floorf, float, (float x), );
# endif
_GL_CXXALIAS_SYS (floorf, float, (float x));
# endif
@@ -924,7 +937,7 @@ _GL_WARN_ON_USE (floorf, "floorf is unportable - "
# undef floor
# define floor rpl_floor
# endif
-_GL_FUNCDECL_RPL (floor, double, (double x));
+_GL_FUNCDECL_RPL (floor, double, (double x), );
_GL_CXXALIAS_RPL (floor, double, (double x));
# else
_GL_CXXALIAS_SYS (floor, double, (double x));
@@ -940,12 +953,12 @@ _GL_CXXALIASWARN1 (floor, double, (double x));
# undef floorl
# define floorl rpl_floorl
# endif
-_GL_FUNCDECL_RPL (floorl, long double, (long double x));
+_GL_FUNCDECL_RPL (floorl, long double, (long double x), );
_GL_CXXALIAS_RPL (floorl, long double, (long double x));
# else
# if !@HAVE_DECL_FLOORL@
# undef floorl
-_GL_FUNCDECL_SYS (floorl, long double, (long double x));
+_GL_FUNCDECL_SYS (floorl, long double, (long double x), );
# endif
_GL_CXXALIAS_SYS (floorl, long double, (long double x));
# endif
@@ -967,12 +980,12 @@ _GL_WARN_ON_USE (floorl, "floorl is unportable - "
# undef fmaf
# define fmaf rpl_fmaf
# endif
-_GL_FUNCDECL_RPL (fmaf, float, (float x, float y, float z));
+_GL_FUNCDECL_RPL (fmaf, float, (float x, float y, float z), );
_GL_CXXALIAS_RPL (fmaf, float, (float x, float y, float z));
# else
# if !@HAVE_FMAF@
# undef fmaf
-_GL_FUNCDECL_SYS (fmaf, float, (float x, float y, float z));
+_GL_FUNCDECL_SYS (fmaf, float, (float x, float y, float z), );
# endif
_GL_CXXALIAS_SYS (fmaf, float, (float x, float y, float z));
# endif
@@ -991,12 +1004,12 @@ _GL_WARN_ON_USE (fmaf, "fmaf is unportable - "
# undef fma
# define fma rpl_fma
# endif
-_GL_FUNCDECL_RPL (fma, double, (double x, double y, double z));
+_GL_FUNCDECL_RPL (fma, double, (double x, double y, double z), );
_GL_CXXALIAS_RPL (fma, double, (double x, double y, double z));
# else
# if !@HAVE_FMA@
# undef fma
-_GL_FUNCDECL_SYS (fma, double, (double x, double y, double z));
+_GL_FUNCDECL_SYS (fma, double, (double x, double y, double z), );
# endif
_GL_CXXALIAS_SYS (fma, double, (double x, double y, double z));
# endif
@@ -1018,7 +1031,7 @@ _GL_WARN_ON_USE (fma, "fma is unportable - "
# define fmal rpl_fmal
# endif
_GL_FUNCDECL_RPL (fmal, long double,
- (long double x, long double y, long double z));
+ (long double x, long double y, long double z), );
_GL_CXXALIAS_RPL (fmal, long double,
(long double x, long double y, long double z));
# else
@@ -1026,7 +1039,7 @@ _GL_CXXALIAS_RPL (fmal, long double,
# undef fmal
# if !(defined __cplusplus && defined _AIX)
_GL_FUNCDECL_SYS (fmal, long double,
- (long double x, long double y, long double z));
+ (long double x, long double y, long double z), );
# endif
# endif
_GL_CXXALIAS_SYS (fmal, long double,
@@ -1050,12 +1063,12 @@ _GL_WARN_ON_USE (fmal, "fmal is unportable - "
# undef fmodf
# define fmodf rpl_fmodf
# endif
-_GL_FUNCDECL_RPL (fmodf, float, (float x, float y));
+_GL_FUNCDECL_RPL (fmodf, float, (float x, float y), );
_GL_CXXALIAS_RPL (fmodf, float, (float x, float y));
# else
# if !@HAVE_FMODF@
# undef fmodf
-_GL_FUNCDECL_SYS (fmodf, float, (float x, float y));
+_GL_FUNCDECL_SYS (fmodf, float, (float x, float y), );
# endif
_GL_CXXALIAS_SYS (fmodf, float, (float x, float y));
# endif
@@ -1074,7 +1087,7 @@ _GL_WARN_ON_USE (fmodf, "fmodf is unportable - "
# undef fmod
# define fmod rpl_fmod
# endif
-_GL_FUNCDECL_RPL (fmod, double, (double x, double y));
+_GL_FUNCDECL_RPL (fmod, double, (double x, double y), );
_GL_CXXALIAS_RPL (fmod, double, (double x, double y));
# else
_GL_CXXALIAS_SYS (fmod, double, (double x, double y));
@@ -1096,12 +1109,12 @@ _GL_WARN_ON_USE (fmod, "fmod has portability problems - "
# undef fmodl
# define fmodl rpl_fmodl
# endif
-_GL_FUNCDECL_RPL (fmodl, long double, (long double x, long double y));
+_GL_FUNCDECL_RPL (fmodl, long double, (long double x, long double y), );
_GL_CXXALIAS_RPL (fmodl, long double, (long double x, long double y));
# else
# if !@HAVE_FMODL@
# undef fmodl
-_GL_FUNCDECL_SYS (fmodl, long double, (long double x, long double y));
+_GL_FUNCDECL_SYS (fmodl, long double, (long double x, long double y), );
# endif
_GL_CXXALIAS_SYS (fmodl, long double, (long double x, long double y));
# endif
@@ -1130,12 +1143,12 @@ _GL_WARN_ON_USE (fmodl, "fmodl is unportable - "
# undef frexpf
# define frexpf rpl_frexpf
# endif
-_GL_FUNCDECL_RPL (frexpf, float, (float x, int *expptr) _GL_ARG_NONNULL ((2)));
+_GL_FUNCDECL_RPL (frexpf, float, (float x, int *expptr), _GL_ARG_NONNULL ((2)));
_GL_CXXALIAS_RPL (frexpf, float, (float x, int *expptr));
# else
# if !@HAVE_FREXPF@
# undef frexpf
-_GL_FUNCDECL_SYS (frexpf, float, (float x, int *expptr) _GL_ARG_NONNULL ((2)));
+_GL_FUNCDECL_SYS (frexpf, float, (float x, int *expptr), _GL_ARG_NONNULL ((2)));
# endif
_GL_CXXALIAS_SYS (frexpf, float, (float x, int *expptr));
# endif
@@ -1163,7 +1176,8 @@ _GL_WARN_ON_USE (frexpf, "frexpf is unportable - "
# undef frexp
# define frexp rpl_frexp
# endif
-_GL_FUNCDECL_RPL (frexp, double, (double x, int *expptr) _GL_ARG_NONNULL ((2)));
+_GL_FUNCDECL_RPL (frexp, double, (double x, int *expptr),
+ _GL_ARG_NONNULL ((2)));
_GL_CXXALIAS_RPL (frexp, double, (double x, int *expptr));
# else
_GL_CXXALIAS_SYS (frexp, double, (double x, int *expptr));
@@ -1191,12 +1205,12 @@ _GL_WARN_ON_USE (frexp, "frexp is unportable - "
# define frexpl rpl_frexpl
# endif
_GL_FUNCDECL_RPL (frexpl, long double,
- (long double x, int *expptr) _GL_ARG_NONNULL ((2)));
+ (long double x, int *expptr), _GL_ARG_NONNULL ((2)));
_GL_CXXALIAS_RPL (frexpl, long double, (long double x, int *expptr));
#else
# if !@HAVE_DECL_FREXPL@
_GL_FUNCDECL_SYS (frexpl, long double,
- (long double x, int *expptr) _GL_ARG_NONNULL ((2)));
+ (long double x, int *expptr), _GL_ARG_NONNULL ((2)));
# endif
# if @GNULIB_FREXPL@
_GL_CXXALIAS_SYS (frexpl, long double, (long double x, int *expptr));
@@ -1223,11 +1237,11 @@ _GL_WARN_ON_USE (frexpl, "frexpl is unportable - "
# undef hypotf
# define hypotf rpl_hypotf
# endif
-_GL_FUNCDECL_RPL (hypotf, float, (float x, float y));
+_GL_FUNCDECL_RPL (hypotf, float, (float x, float y), );
_GL_CXXALIAS_RPL (hypotf, float, (float x, float y));
# else
# if !@HAVE_HYPOTF@
-_GL_FUNCDECL_SYS (hypotf, float, (float x, float y));
+_GL_FUNCDECL_SYS (hypotf, float, (float x, float y), );
# endif
_GL_CXXALIAS_SYS (hypotf, float, (float x, float y));
# endif
@@ -1249,7 +1263,7 @@ _GL_WARN_ON_USE (hypotf, "hypotf is unportable - "
# undef hypot
# define hypot rpl_hypot
# endif
-_GL_FUNCDECL_RPL (hypot, double, (double x, double y));
+_GL_FUNCDECL_RPL (hypot, double, (double x, double y), );
_GL_CXXALIAS_RPL (hypot, double, (double x, double y));
# else
_GL_CXXALIAS_SYS (hypot, double, (double x, double y));
@@ -1272,11 +1286,11 @@ _GL_WARN_ON_USE (hypotf, "hypot has portability problems - "
# undef hypotl
# define hypotl rpl_hypotl
# endif
-_GL_FUNCDECL_RPL (hypotl, long double, (long double x, long double y));
+_GL_FUNCDECL_RPL (hypotl, long double, (long double x, long double y), );
_GL_CXXALIAS_RPL (hypotl, long double, (long double x, long double y));
# else
# if !@HAVE_HYPOTL@
-_GL_FUNCDECL_SYS (hypotl, long double, (long double x, long double y));
+_GL_FUNCDECL_SYS (hypotl, long double, (long double x, long double y), );
# endif
_GL_CXXALIAS_SYS (hypotl, long double, (long double x, long double y));
# endif
@@ -1298,11 +1312,11 @@ _GL_WARN_ON_USE (hypotl, "hypotl is unportable - "
# undef ilogbf
# define ilogbf rpl_ilogbf
# endif
-_GL_FUNCDECL_RPL (ilogbf, int, (float x));
+_GL_FUNCDECL_RPL (ilogbf, int, (float x), );
_GL_CXXALIAS_RPL (ilogbf, int, (float x));
# else
# if !@HAVE_ILOGBF@
-_GL_FUNCDECL_SYS (ilogbf, int, (float x));
+_GL_FUNCDECL_SYS (ilogbf, int, (float x), );
# endif
_GL_CXXALIAS_SYS (ilogbf, int, (float x));
# endif
@@ -1321,11 +1335,11 @@ _GL_WARN_ON_USE (ilogbf, "ilogbf is unportable - "
# undef ilogb
# define ilogb rpl_ilogb
# endif
-_GL_FUNCDECL_RPL (ilogb, int, (double x));
+_GL_FUNCDECL_RPL (ilogb, int, (double x), );
_GL_CXXALIAS_RPL (ilogb, int, (double x));
# else
# if !@HAVE_ILOGB@
-_GL_FUNCDECL_SYS (ilogb, int, (double x));
+_GL_FUNCDECL_SYS (ilogb, int, (double x), );
# endif
_GL_CXXALIAS_SYS (ilogb, int, (double x));
# endif
@@ -1346,12 +1360,12 @@ _GL_WARN_ON_USE (ilogb, "ilogb is unportable - "
# undef ilogbl
# define ilogbl rpl_ilogbl
# endif
-_GL_FUNCDECL_RPL (ilogbl, int, (long double x));
+_GL_FUNCDECL_RPL (ilogbl, int, (long double x), );
_GL_CXXALIAS_RPL (ilogbl, int, (long double x));
# else
# if !@HAVE_ILOGBL@
# undef ilogbl
-_GL_FUNCDECL_SYS (ilogbl, int, (long double x));
+_GL_FUNCDECL_SYS (ilogbl, int, (long double x), );
# endif
_GL_CXXALIAS_SYS (ilogbl, int, (long double x));
# endif
@@ -1420,7 +1434,7 @@ _GL_CXXALIASWARN (jn);
#if @GNULIB_LDEXPF@
# if !@HAVE_LDEXPF@
# undef ldexpf
-_GL_FUNCDECL_SYS (ldexpf, float, (float x, int exp));
+_GL_FUNCDECL_SYS (ldexpf, float, (float x, int exp), );
# endif
_GL_CXXALIAS_SYS (ldexpf, float, (float x, int exp));
# if __GLIBC__ >= 2
@@ -1441,7 +1455,7 @@ _GL_WARN_ON_USE (ldexpf, "ldexpf is unportable - "
# undef ldexp
# define ldexp rpl_ldexp
# endif
-_GL_FUNCDECL_RPL (ldexp, double, (double x, int exp));
+_GL_FUNCDECL_RPL (ldexp, double, (double x, int exp), );
_GL_CXXALIAS_RPL (ldexp, double, (double x, int exp));
# else
/* Assume ldexp is always declared. */
@@ -1463,11 +1477,11 @@ _GL_WARN_ON_USE (ldexp, "ldexp is unportable - "
# undef ldexpl
# define ldexpl rpl_ldexpl
# endif
-_GL_FUNCDECL_RPL (ldexpl, long double, (long double x, int exp));
+_GL_FUNCDECL_RPL (ldexpl, long double, (long double x, int exp), );
_GL_CXXALIAS_RPL (ldexpl, long double, (long double x, int exp));
#else
# if !@HAVE_DECL_LDEXPL@
-_GL_FUNCDECL_SYS (ldexpl, long double, (long double x, int exp));
+_GL_FUNCDECL_SYS (ldexpl, long double, (long double x, int exp), );
# endif
# if @GNULIB_LDEXPL@
_GL_CXXALIAS_SYS (ldexpl, long double, (long double x, int exp));
@@ -1493,12 +1507,12 @@ _GL_WARN_ON_USE (ldexpl, "ldexpl is unportable - "
# undef logf
# define logf rpl_logf
# endif
-_GL_FUNCDECL_RPL (logf, float, (float x));
+_GL_FUNCDECL_RPL (logf, float, (float x), );
_GL_CXXALIAS_RPL (logf, float, (float x));
# else
# if !@HAVE_LOGF@
# undef logf
-_GL_FUNCDECL_SYS (logf, float, (float x));
+_GL_FUNCDECL_SYS (logf, float, (float x), );
# endif
_GL_CXXALIAS_SYS (logf, float, (float x));
# endif
@@ -1517,7 +1531,7 @@ _GL_WARN_ON_USE (logf, "logf is unportable - "
# undef log
# define log rpl_log
# endif
-_GL_FUNCDECL_RPL (log, double, (double x));
+_GL_FUNCDECL_RPL (log, double, (double x), );
_GL_CXXALIAS_RPL (log, double, (double x));
# else
_GL_CXXALIAS_SYS (log, double, (double x));
@@ -1539,12 +1553,12 @@ _GL_WARN_ON_USE (log, "log has portability problems - "
# undef logl
# define logl rpl_logl
# endif
-_GL_FUNCDECL_RPL (logl, long double, (long double x));
+_GL_FUNCDECL_RPL (logl, long double, (long double x), );
_GL_CXXALIAS_RPL (logl, long double, (long double x));
# else
# if !@HAVE_LOGL@ || !@HAVE_DECL_LOGL@
# undef logl
-_GL_FUNCDECL_SYS (logl, long double, (long double x));
+_GL_FUNCDECL_SYS (logl, long double, (long double x), );
# endif
_GL_CXXALIAS_SYS (logl, long double, (long double x));
# endif
@@ -1566,12 +1580,12 @@ _GL_WARN_ON_USE (logl, "logl is unportable - "
# undef log10f
# define log10f rpl_log10f
# endif
-_GL_FUNCDECL_RPL (log10f, float, (float x));
+_GL_FUNCDECL_RPL (log10f, float, (float x), );
_GL_CXXALIAS_RPL (log10f, float, (float x));
# else
# if !@HAVE_LOG10F@
# undef log10f
-_GL_FUNCDECL_SYS (log10f, float, (float x));
+_GL_FUNCDECL_SYS (log10f, float, (float x), );
# endif
_GL_CXXALIAS_SYS (log10f, float, (float x));
# endif
@@ -1590,7 +1604,7 @@ _GL_WARN_ON_USE (log10f, "log10f is unportable - "
# undef log10
# define log10 rpl_log10
# endif
-_GL_FUNCDECL_RPL (log10, double, (double x));
+_GL_FUNCDECL_RPL (log10, double, (double x), );
_GL_CXXALIAS_RPL (log10, double, (double x));
# else
_GL_CXXALIAS_SYS (log10, double, (double x));
@@ -1612,12 +1626,12 @@ _GL_WARN_ON_USE (log10, "log10 has portability problems - "
# undef log10l
# define log10l rpl_log10l
# endif
-_GL_FUNCDECL_RPL (log10l, long double, (long double x));
+_GL_FUNCDECL_RPL (log10l, long double, (long double x), );
_GL_CXXALIAS_RPL (log10l, long double, (long double x));
# else
# if !@HAVE_LOG10L@ || !@HAVE_DECL_LOG10L@
# undef log10l
-_GL_FUNCDECL_SYS (log10l, long double, (long double x));
+_GL_FUNCDECL_SYS (log10l, long double, (long double x), );
# endif
_GL_CXXALIAS_SYS (log10l, long double, (long double x));
# endif
@@ -1639,11 +1653,11 @@ _GL_WARN_ON_USE (log10l, "log10l is unportable - "
# undef log1pf
# define log1pf rpl_log1pf
# endif
-_GL_FUNCDECL_RPL (log1pf, float, (float x));
+_GL_FUNCDECL_RPL (log1pf, float, (float x), );
_GL_CXXALIAS_RPL (log1pf, float, (float x));
# else
# if !@HAVE_LOG1PF@
-_GL_FUNCDECL_SYS (log1pf, float, (float x));
+_GL_FUNCDECL_SYS (log1pf, float, (float x), );
# endif
_GL_CXXALIAS_SYS (log1pf, float, (float x));
# endif
@@ -1662,11 +1676,11 @@ _GL_WARN_ON_USE (log1pf, "log1pf is unportable - "
# undef log1p
# define log1p rpl_log1p
# endif
-_GL_FUNCDECL_RPL (log1p, double, (double x));
+_GL_FUNCDECL_RPL (log1p, double, (double x), );
_GL_CXXALIAS_RPL (log1p, double, (double x));
# else
# if !@HAVE_LOG1P@
-_GL_FUNCDECL_SYS (log1p, double, (double x));
+_GL_FUNCDECL_SYS (log1p, double, (double x), );
# endif
_GL_CXXALIAS_SYS (log1p, double, (double x));
# endif
@@ -1687,11 +1701,11 @@ _GL_WARN_ON_USE (log1p, "log1p has portability problems - "
# undef log1pl
# define log1pl rpl_log1pl
# endif
-_GL_FUNCDECL_RPL (log1pl, long double, (long double x));
+_GL_FUNCDECL_RPL (log1pl, long double, (long double x), );
_GL_CXXALIAS_RPL (log1pl, long double, (long double x));
# else
# if !@HAVE_LOG1PL@
-_GL_FUNCDECL_SYS (log1pl, long double, (long double x));
+_GL_FUNCDECL_SYS (log1pl, long double, (long double x), );
# endif
_GL_CXXALIAS_SYS (log1pl, long double, (long double x));
# endif
@@ -1713,12 +1727,12 @@ _GL_WARN_ON_USE (log1pl, "log1pl has portability problems - "
# undef log2f
# define log2f rpl_log2f
# endif
-_GL_FUNCDECL_RPL (log2f, float, (float x));
+_GL_FUNCDECL_RPL (log2f, float, (float x), );
_GL_CXXALIAS_RPL (log2f, float, (float x));
# else
# if !@HAVE_DECL_LOG2F@
# undef log2f
-_GL_FUNCDECL_SYS (log2f, float, (float x));
+_GL_FUNCDECL_SYS (log2f, float, (float x), );
# endif
_GL_CXXALIAS_SYS (log2f, float, (float x));
# endif
@@ -1739,12 +1753,12 @@ _GL_WARN_ON_USE (log2f, "log2f is unportable - "
# undef log2
# define log2 rpl_log2
# endif
-_GL_FUNCDECL_RPL (log2, double, (double x));
+_GL_FUNCDECL_RPL (log2, double, (double x), );
_GL_CXXALIAS_RPL (log2, double, (double x));
# else
# if !@HAVE_DECL_LOG2@
# undef log2
-_GL_FUNCDECL_SYS (log2, double, (double x));
+_GL_FUNCDECL_SYS (log2, double, (double x), );
# endif
_GL_CXXALIAS_SYS (log2, double, (double x));
# endif
@@ -1765,11 +1779,11 @@ _GL_WARN_ON_USE (log2, "log2 is unportable - "
# undef log2l
# define log2l rpl_log2l
# endif
-_GL_FUNCDECL_RPL (log2l, long double, (long double x));
+_GL_FUNCDECL_RPL (log2l, long double, (long double x), );
_GL_CXXALIAS_RPL (log2l, long double, (long double x));
# else
# if !@HAVE_DECL_LOG2L@
-_GL_FUNCDECL_SYS (log2l, long double, (long double x));
+_GL_FUNCDECL_SYS (log2l, long double, (long double x), );
# endif
_GL_CXXALIAS_SYS (log2l, long double, (long double x));
# endif
@@ -1791,11 +1805,11 @@ _GL_WARN_ON_USE (log2l, "log2l is unportable - "
# undef logbf
# define logbf rpl_logbf
# endif
-_GL_FUNCDECL_RPL (logbf, float, (float x));
+_GL_FUNCDECL_RPL (logbf, float, (float x), );
_GL_CXXALIAS_RPL (logbf, float, (float x));
# else
# if !@HAVE_LOGBF@
-_GL_FUNCDECL_SYS (logbf, float, (float x));
+_GL_FUNCDECL_SYS (logbf, float, (float x), );
# endif
_GL_CXXALIAS_SYS (logbf, float, (float x));
# endif
@@ -1814,11 +1828,11 @@ _GL_WARN_ON_USE (logbf, "logbf is unportable - "
# undef logb
# define logb rpl_logb
# endif
-_GL_FUNCDECL_RPL (logb, double, (double x));
+_GL_FUNCDECL_RPL (logb, double, (double x), );
_GL_CXXALIAS_RPL (logb, double, (double x));
# else
# if !@HAVE_DECL_LOGB@
-_GL_FUNCDECL_SYS (logb, double, (double x));
+_GL_FUNCDECL_SYS (logb, double, (double x), );
# endif
_GL_CXXALIAS_SYS (logb, double, (double x));
# endif
@@ -1839,11 +1853,11 @@ _GL_WARN_ON_USE (logb, "logb is unportable - "
# undef logbl
# define logbl rpl_logbl
# endif
-_GL_FUNCDECL_RPL (logbl, long double, (long double x));
+_GL_FUNCDECL_RPL (logbl, long double, (long double x), );
_GL_CXXALIAS_RPL (logbl, long double, (long double x));
# else
# if !@HAVE_LOGBL@
-_GL_FUNCDECL_SYS (logbl, long double, (long double x));
+_GL_FUNCDECL_SYS (logbl, long double, (long double x), );
# endif
_GL_CXXALIAS_SYS (logbl, long double, (long double x));
# endif
@@ -1859,18 +1873,67 @@ _GL_WARN_ON_USE (logbl, "logbl is unportable - "
#endif
+#if @GNULIB_LOGP1F@
+# if !@HAVE_LOGP1F@
+_GL_FUNCDECL_SYS (logp1f, float, (float x), );
+# endif
+_GL_CXXALIAS_SYS (logp1f, float, (float x));
+# if __GLIBC__ >= 2
+_GL_CXXALIASWARN1 (logp1f, float, (float x));
+# endif
+#elif defined GNULIB_POSIXCHECK
+# undef logp1f
+# if HAVE_RAW_DECL_LOGP1F
+_GL_WARN_ON_USE (logp1f, "logp1f is unportable - "
+ "use gnulib module logp1f for portability");
+# endif
+#endif
+
+#if @GNULIB_LOGP1@
+# if !@HAVE_LOGP1@
+_GL_FUNCDECL_SYS (logp1, double, (double x), );
+# endif
+_GL_CXXALIAS_SYS (logp1, double, (double x));
+# if __GLIBC__ >= 2
+_GL_CXXALIASWARN1 (logp1, double, (double x));
+# endif
+#elif defined GNULIB_POSIXCHECK
+# undef logp1
+# if HAVE_RAW_DECL_LOGP1
+_GL_WARN_ON_USE (logp1, "logp1 is unportable - "
+ "use gnulib module logp1 for portability");
+# endif
+#endif
+
+#if @GNULIB_LOGP1L@
+# if !@HAVE_LOGP1L@
+_GL_FUNCDECL_SYS (logp1l, long double, (long double x), );
+# endif
+_GL_CXXALIAS_SYS (logp1l, long double, (long double x));
+# if __GLIBC__ >= 2
+_GL_CXXALIASWARN1 (logp1l, long double, (long double x));
+# endif
+#elif defined GNULIB_POSIXCHECK
+# undef logp1l
+# if HAVE_RAW_DECL_LOGP1L
+_GL_WARN_ON_USE (logp1l, "logp1l is unportable - "
+ "use gnulib module logp1l for portability");
+# endif
+#endif
+
+
#if @GNULIB_MODFF@
# if @REPLACE_MODFF@
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
# undef modff
# define modff rpl_modff
# endif
-_GL_FUNCDECL_RPL (modff, float, (float x, float *iptr) _GL_ARG_NONNULL ((2)));
+_GL_FUNCDECL_RPL (modff, float, (float x, float *iptr), _GL_ARG_NONNULL ((2)));
_GL_CXXALIAS_RPL (modff, float, (float x, float *iptr));
# else
# if !@HAVE_MODFF@
# undef modff
-_GL_FUNCDECL_SYS (modff, float, (float x, float *iptr) _GL_ARG_NONNULL ((2)));
+_GL_FUNCDECL_SYS (modff, float, (float x, float *iptr), _GL_ARG_NONNULL ((2)));
# endif
_GL_CXXALIAS_SYS (modff, float, (float x, float *iptr));
# endif
@@ -1889,7 +1952,8 @@ _GL_WARN_ON_USE (modff, "modff is unportable - "
# undef modf
# define modf rpl_modf
# endif
-_GL_FUNCDECL_RPL (modf, double, (double x, double *iptr) _GL_ARG_NONNULL ((2)));
+_GL_FUNCDECL_RPL (modf, double, (double x, double *iptr),
+ _GL_ARG_NONNULL ((2)));
_GL_CXXALIAS_RPL (modf, double, (double x, double *iptr));
# else
_GL_CXXALIAS_SYS (modf, double, (double x, double *iptr));
@@ -1911,13 +1975,13 @@ _GL_WARN_ON_USE (modf, "modf has portability problems - "
# undef modfl
# define modfl rpl_modfl
# endif
-_GL_FUNCDECL_RPL (modfl, long double, (long double x, long double *iptr)
+_GL_FUNCDECL_RPL (modfl, long double, (long double x, long double *iptr),
_GL_ARG_NONNULL ((2)));
_GL_CXXALIAS_RPL (modfl, long double, (long double x, long double *iptr));
# else
# if !@HAVE_MODFL@
# undef modfl
-_GL_FUNCDECL_SYS (modfl, long double, (long double x, long double *iptr)
+_GL_FUNCDECL_SYS (modfl, long double, (long double x, long double *iptr),
_GL_ARG_NONNULL ((2)));
# endif
_GL_CXXALIAS_SYS (modfl, long double, (long double x, long double *iptr));
@@ -1937,7 +2001,7 @@ _GL_WARN_ON_USE (modfl, "modfl is unportable - "
#if @GNULIB_POWF@
# if !@HAVE_POWF@
# undef powf
-_GL_FUNCDECL_SYS (powf, float, (float x, float y));
+_GL_FUNCDECL_SYS (powf, float, (float x, float y), );
# endif
_GL_CXXALIAS_SYS (powf, float, (float x, float y));
_GL_CXXALIASWARN (powf);
@@ -1956,11 +2020,11 @@ _GL_WARN_ON_USE (powf, "powf is unportable - "
# undef remainderf
# define remainderf rpl_remainderf
# endif
-_GL_FUNCDECL_RPL (remainderf, float, (float x, float y));
+_GL_FUNCDECL_RPL (remainderf, float, (float x, float y), );
_GL_CXXALIAS_RPL (remainderf, float, (float x, float y));
# else
# if !@HAVE_REMAINDERF@
-_GL_FUNCDECL_SYS (remainderf, float, (float x, float y));
+_GL_FUNCDECL_SYS (remainderf, float, (float x, float y), );
# endif
_GL_CXXALIAS_SYS (remainderf, float, (float x, float y));
# endif
@@ -1979,11 +2043,11 @@ _GL_WARN_ON_USE (remainderf, "remainderf is unportable - "
# undef remainder
# define remainder rpl_remainder
# endif
-_GL_FUNCDECL_RPL (remainder, double, (double x, double y));
+_GL_FUNCDECL_RPL (remainder, double, (double x, double y), );
_GL_CXXALIAS_RPL (remainder, double, (double x, double y));
# else
# if !@HAVE_REMAINDER@ || !@HAVE_DECL_REMAINDER@
-_GL_FUNCDECL_SYS (remainder, double, (double x, double y));
+_GL_FUNCDECL_SYS (remainder, double, (double x, double y), );
# endif
_GL_CXXALIAS_SYS (remainder, double, (double x, double y));
# endif
@@ -2004,13 +2068,13 @@ _GL_WARN_ON_USE (remainder, "remainder is unportable - "
# undef remainderl
# define remainderl rpl_remainderl
# endif
-_GL_FUNCDECL_RPL (remainderl, long double, (long double x, long double y));
+_GL_FUNCDECL_RPL (remainderl, long double, (long double x, long double y), );
_GL_CXXALIAS_RPL (remainderl, long double, (long double x, long double y));
# else
# if !@HAVE_DECL_REMAINDERL@
# undef remainderl
# if !(defined __cplusplus && defined _AIX)
-_GL_FUNCDECL_SYS (remainderl, long double, (long double x, long double y));
+_GL_FUNCDECL_SYS (remainderl, long double, (long double x, long double y), );
# endif
# endif
_GL_CXXALIAS_SYS (remainderl, long double, (long double x, long double y));
@@ -2029,7 +2093,7 @@ _GL_WARN_ON_USE (remainderl, "remainderl is unportable - "
#if @GNULIB_RINTF@
# if !@HAVE_DECL_RINTF@
-_GL_FUNCDECL_SYS (rintf, float, (float x));
+_GL_FUNCDECL_SYS (rintf, float, (float x), );
# endif
_GL_CXXALIAS_SYS (rintf, float, (float x));
_GL_CXXALIASWARN (rintf);
@@ -2043,7 +2107,7 @@ _GL_WARN_ON_USE (rintf, "rintf is unportable - "
#if @GNULIB_RINT@
# if !@HAVE_RINT@
-_GL_FUNCDECL_SYS (rint, double, (double x));
+_GL_FUNCDECL_SYS (rint, double, (double x), );
# endif
_GL_CXXALIAS_SYS (rint, double, (double x));
# if __GLIBC__ >= 2
@@ -2063,11 +2127,11 @@ _GL_WARN_ON_USE (rint, "rint is unportable - "
# undef rintl
# define rintl rpl_rintl
# endif
-_GL_FUNCDECL_RPL (rintl, long double, (long double x));
+_GL_FUNCDECL_RPL (rintl, long double, (long double x), );
_GL_CXXALIAS_RPL (rintl, long double, (long double x));
# else
# if !@HAVE_RINTL@
-_GL_FUNCDECL_SYS (rintl, long double, (long double x));
+_GL_FUNCDECL_SYS (rintl, long double, (long double x), );
# endif
_GL_CXXALIAS_SYS (rintl, long double, (long double x));
# endif
@@ -2089,11 +2153,11 @@ _GL_WARN_ON_USE (rintl, "rintl is unportable - "
# undef roundf
# define roundf rpl_roundf
# endif
-_GL_FUNCDECL_RPL (roundf, float, (float x));
+_GL_FUNCDECL_RPL (roundf, float, (float x), );
_GL_CXXALIAS_RPL (roundf, float, (float x));
# else
# if !@HAVE_DECL_ROUNDF@
-_GL_FUNCDECL_SYS (roundf, float, (float x));
+_GL_FUNCDECL_SYS (roundf, float, (float x), );
# endif
_GL_CXXALIAS_SYS (roundf, float, (float x));
# endif
@@ -2112,11 +2176,11 @@ _GL_WARN_ON_USE (roundf, "roundf is unportable - "
# undef round
# define round rpl_round
# endif
-_GL_FUNCDECL_RPL (round, double, (double x));
+_GL_FUNCDECL_RPL (round, double, (double x), );
_GL_CXXALIAS_RPL (round, double, (double x));
# else
# if !@HAVE_DECL_ROUND@
-_GL_FUNCDECL_SYS (round, double, (double x));
+_GL_FUNCDECL_SYS (round, double, (double x), );
# endif
_GL_CXXALIAS_SYS (round, double, (double x));
# endif
@@ -2137,13 +2201,13 @@ _GL_WARN_ON_USE (round, "round is unportable - "
# undef roundl
# define roundl rpl_roundl
# endif
-_GL_FUNCDECL_RPL (roundl, long double, (long double x));
+_GL_FUNCDECL_RPL (roundl, long double, (long double x), );
_GL_CXXALIAS_RPL (roundl, long double, (long double x));
# else
# if !@HAVE_DECL_ROUNDL@
# undef roundl
# if !(defined __cplusplus && defined _AIX)
-_GL_FUNCDECL_SYS (roundl, long double, (long double x));
+_GL_FUNCDECL_SYS (roundl, long double, (long double x), );
# endif
# endif
_GL_CXXALIAS_SYS (roundl, long double, (long double x));
@@ -2166,12 +2230,12 @@ _GL_WARN_ON_USE (roundl, "roundl is unportable - "
# undef sinf
# define sinf rpl_sinf
# endif
-_GL_FUNCDECL_RPL (sinf, float, (float x));
+_GL_FUNCDECL_RPL (sinf, float, (float x), );
_GL_CXXALIAS_RPL (sinf, float, (float x));
# else
# if !@HAVE_SINF@
# undef sinf
-_GL_FUNCDECL_SYS (sinf, float, (float x));
+_GL_FUNCDECL_SYS (sinf, float, (float x), );
# endif
_GL_CXXALIAS_SYS (sinf, float, (float x));
# endif
@@ -2187,7 +2251,7 @@ _GL_WARN_ON_USE (sinf, "sinf is unportable - "
#if @GNULIB_SINL@
# if !@HAVE_SINL@ || !@HAVE_DECL_SINL@
# undef sinl
-_GL_FUNCDECL_SYS (sinl, long double, (long double x));
+_GL_FUNCDECL_SYS (sinl, long double, (long double x), );
# endif
_GL_CXXALIAS_SYS (sinl, long double, (long double x));
# if __GLIBC__ >= 2
@@ -2208,12 +2272,12 @@ _GL_WARN_ON_USE (sinl, "sinl is unportable - "
# undef sinhf
# define sinhf rpl_sinhf
# endif
-_GL_FUNCDECL_RPL (sinhf, float, (float x));
+_GL_FUNCDECL_RPL (sinhf, float, (float x), );
_GL_CXXALIAS_RPL (sinhf, float, (float x));
# else
# if !@HAVE_SINHF@
# undef sinhf
-_GL_FUNCDECL_SYS (sinhf, float, (float x));
+_GL_FUNCDECL_SYS (sinhf, float, (float x), );
# endif
_GL_CXXALIAS_SYS (sinhf, float, (float x));
# endif
@@ -2233,12 +2297,12 @@ _GL_WARN_ON_USE (sinhf, "sinhf is unportable - "
# undef sqrtf
# define sqrtf rpl_sqrtf
# endif
-_GL_FUNCDECL_RPL (sqrtf, float, (float x));
+_GL_FUNCDECL_RPL (sqrtf, float, (float x), );
_GL_CXXALIAS_RPL (sqrtf, float, (float x));
# else
# if !@HAVE_SQRTF@
# undef sqrtf
-_GL_FUNCDECL_SYS (sqrtf, float, (float x));
+_GL_FUNCDECL_SYS (sqrtf, float, (float x), );
# endif
_GL_CXXALIAS_SYS (sqrtf, float, (float x));
# endif
@@ -2257,12 +2321,12 @@ _GL_WARN_ON_USE (sqrtf, "sqrtf is unportable - "
# undef sqrtl
# define sqrtl rpl_sqrtl
# endif
-_GL_FUNCDECL_RPL (sqrtl, long double, (long double x));
+_GL_FUNCDECL_RPL (sqrtl, long double, (long double x), );
_GL_CXXALIAS_RPL (sqrtl, long double, (long double x));
# else
# if !@HAVE_SQRTL@ || !@HAVE_DECL_SQRTL@
# undef sqrtl
-_GL_FUNCDECL_SYS (sqrtl, long double, (long double x));
+_GL_FUNCDECL_SYS (sqrtl, long double, (long double x), );
# endif
_GL_CXXALIAS_SYS (sqrtl, long double, (long double x));
# endif
@@ -2284,12 +2348,12 @@ _GL_WARN_ON_USE (sqrtl, "sqrtl is unportable - "
# undef tanf
# define tanf rpl_tanf
# endif
-_GL_FUNCDECL_RPL (tanf, float, (float x));
+_GL_FUNCDECL_RPL (tanf, float, (float x), );
_GL_CXXALIAS_RPL (tanf, float, (float x));
# else
# if !@HAVE_TANF@
# undef tanf
-_GL_FUNCDECL_SYS (tanf, float, (float x));
+_GL_FUNCDECL_SYS (tanf, float, (float x), );
# endif
_GL_CXXALIAS_SYS (tanf, float, (float x));
# endif
@@ -2305,7 +2369,7 @@ _GL_WARN_ON_USE (tanf, "tanf is unportable - "
#if @GNULIB_TANL@
# if !@HAVE_TANL@ || !@HAVE_DECL_TANL@
# undef tanl
-_GL_FUNCDECL_SYS (tanl, long double, (long double x));
+_GL_FUNCDECL_SYS (tanl, long double, (long double x), );
# endif
_GL_CXXALIAS_SYS (tanl, long double, (long double x));
# if __GLIBC__ >= 2
@@ -2326,12 +2390,12 @@ _GL_WARN_ON_USE (tanl, "tanl is unportable - "
# undef tanhf
# define tanhf rpl_tanhf
# endif
-_GL_FUNCDECL_RPL (tanhf, float, (float x));
+_GL_FUNCDECL_RPL (tanhf, float, (float x), );
_GL_CXXALIAS_RPL (tanhf, float, (float x));
# else
# if !@HAVE_TANHF@
# undef tanhf
-_GL_FUNCDECL_SYS (tanhf, float, (float x));
+_GL_FUNCDECL_SYS (tanhf, float, (float x), );
# endif
_GL_CXXALIAS_SYS (tanhf, float, (float x));
# endif
@@ -2351,11 +2415,11 @@ _GL_WARN_ON_USE (tanhf, "tanhf is unportable - "
# undef truncf
# define truncf rpl_truncf
# endif
-_GL_FUNCDECL_RPL (truncf, float, (float x));
+_GL_FUNCDECL_RPL (truncf, float, (float x), );
_GL_CXXALIAS_RPL (truncf, float, (float x));
# else
# if !@HAVE_DECL_TRUNCF@
-_GL_FUNCDECL_SYS (truncf, float, (float x));
+_GL_FUNCDECL_SYS (truncf, float, (float x), );
# endif
_GL_CXXALIAS_SYS (truncf, float, (float x));
# endif
@@ -2374,11 +2438,11 @@ _GL_WARN_ON_USE (truncf, "truncf is unportable - "
# undef trunc
# define trunc rpl_trunc
# endif
-_GL_FUNCDECL_RPL (trunc, double, (double x));
+_GL_FUNCDECL_RPL (trunc, double, (double x), );
_GL_CXXALIAS_RPL (trunc, double, (double x));
# else
# if !@HAVE_DECL_TRUNC@
-_GL_FUNCDECL_SYS (trunc, double, (double x));
+_GL_FUNCDECL_SYS (trunc, double, (double x), );
# endif
_GL_CXXALIAS_SYS (trunc, double, (double x));
# endif
@@ -2399,11 +2463,11 @@ _GL_WARN_ON_USE (trunc, "trunc is unportable - "
# undef truncl
# define truncl rpl_truncl
# endif
-_GL_FUNCDECL_RPL (truncl, long double, (long double x));
+_GL_FUNCDECL_RPL (truncl, long double, (long double x), );
_GL_CXXALIAS_RPL (truncl, long double, (long double x));
# else
# if !@HAVE_DECL_TRUNCL@
-_GL_FUNCDECL_SYS (truncl, long double, (long double x));
+_GL_FUNCDECL_SYS (truncl, long double, (long double x), );
# endif
_GL_CXXALIAS_SYS (truncl, long double, (long double x));
# endif
@@ -2557,7 +2621,7 @@ _GL_EXTERN_C int isnanf (float x);
GCC >= 4.0 also provides __builtin_isnanf, but clang doesn't. */
# undef isnanf
# define isnanf(x) __builtin_isnan ((float)(x))
-# elif defined isnan
+# elif defined isnan && !defined HAVE_ISNANF_NOLIBM
# undef isnanf
# define isnanf(x) isnan ((float)(x))
# endif
@@ -2586,7 +2650,7 @@ _GL_EXTERN_C int isnand (double x);
/* GCC >= 4.0 and clang provide a type-generic built-in for isnan. */
# undef isnand
# define isnand(x) __builtin_isnan ((double)(x))
-# else
+# elif !defined HAVE_ISNAND_NOLIBM
# undef isnand
# define isnand(x) isnan ((double)(x))
# endif
@@ -2609,7 +2673,7 @@ _GL_EXTERN_C int isnand (double x);
GCC >= 4.0 also provides __builtin_isnanl, but clang doesn't. */
# undef isnanl
# define isnanl(x) __builtin_isnan ((long double)(x))
-# elif defined isnan
+# elif defined isnan && !defined HAVE_ISNANL_NOLIBM
# undef isnanl
# define isnanl(x) isnan ((long double)(x))
# endif
@@ -2668,7 +2732,7 @@ _GL_MATH_CXX_REAL_FLOATING_DECL_1 (isnan)
_GL_MATH_CXX_REAL_FLOATING_DECL_2 (isnan, rpl_isnan, bool)
# define isnan rpl_isnan
# define GNULIB_NAMESPACE_LACKS_ISNAN 1
-# elif (((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__) && __clang_major__ >= 14)
+# elif __clang_major__ >= 14
/* Neither of the two possible _GL_MATH_CXX_REAL_FLOATING_DECL_2 invocations
works. Inline functions are already present in /usr/include/c++/v1/math.h,
which comes from LLVM. */
@@ -2774,17 +2838,173 @@ _GL_WARN_REAL_FLOATING_DECL (signbit);
#endif
+#if @GNULIB_GETPAYLOADF@
+# if @REPLACE_GETPAYLOADF@
+# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
+# undef getpayloadf
+# define getpayloadf rpl_getpayloadf
+# endif
+_GL_FUNCDECL_RPL (getpayloadf, float, (const float *), );
+_GL_CXXALIAS_RPL (getpayloadf, float, (const float *));
+# else
+# if !@HAVE_GETPAYLOADF@
+_GL_FUNCDECL_SYS (getpayloadf, float, (const float *), );
+# endif
+_GL_CXXALIAS_SYS (getpayloadf, float, (const float *));
+# endif
+_GL_CXXALIASWARN (getpayloadf);
+#elif defined GNULIB_POSIXCHECK
+# undef getpayloadf
+# if HAVE_RAW_DECL_GETPAYLOADF
+_GL_WARN_ON_USE (getpayloadf, "getpayloadf is unportable - "
+ "use gnulib module getpayloadf for portability");
+# endif
+#endif
+
+#if @GNULIB_GETPAYLOAD@
+# if @REPLACE_GETPAYLOAD@
+# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
+# undef getpayload
+# define getpayload rpl_getpayload
+# endif
+_GL_FUNCDECL_RPL (getpayload, double, (const double *), );
+_GL_CXXALIAS_RPL (getpayload, double, (const double *));
+# else
+# if !@HAVE_GETPAYLOAD@
+_GL_FUNCDECL_SYS (getpayload, double, (const double *), );
+# endif
+_GL_CXXALIAS_SYS (getpayload, double, (const double *));
+# endif
+_GL_CXXALIASWARN (getpayload);
+#elif defined GNULIB_POSIXCHECK
+# undef getpayload
+# if HAVE_RAW_DECL_GETPAYLOAD
+_GL_WARN_ON_USE (getpayload, "getpayload is unportable - "
+ "use gnulib module getpayload for portability");
+# endif
+#endif
+
+#if @GNULIB_GETPAYLOADL@
+# if @REPLACE_GETPAYLOADL@
+# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
+# undef getpayloadl
+# define getpayloadl rpl_getpayloadl
+# endif
+_GL_FUNCDECL_RPL (getpayloadl, long double, (const long double *), );
+_GL_CXXALIAS_RPL (getpayloadl, long double, (const long double *));
+# else
+# if !@HAVE_GETPAYLOADL@
+_GL_FUNCDECL_SYS (getpayloadl, long double, (const long double *), );
+# endif
+_GL_CXXALIAS_SYS (getpayloadl, long double, (const long double *));
+# endif
+_GL_CXXALIASWARN (getpayloadl);
+#elif defined GNULIB_POSIXCHECK
+# undef getpayloadl
+# if HAVE_RAW_DECL_GETPAYLOADL
+_GL_WARN_ON_USE (getpayloadl, "getpayloadl is unportable - "
+ "use gnulib module getpayloadl for portability");
+# endif
+#endif
+
+
+#if @GNULIB_SETPAYLOADF@
+# if !@HAVE_SETPAYLOADF@
+_GL_FUNCDECL_SYS (setpayloadf, int, (float *, float), );
+# endif
+_GL_CXXALIAS_SYS (setpayloadf, int, (float *, float));
+_GL_CXXALIASWARN (setpayloadf);
+#elif defined GNULIB_POSIXCHECK
+# undef setpayloadf
+# if HAVE_RAW_DECL_SETPAYLOADF
+_GL_WARN_ON_USE (setpayloadf, "setpayloadf is unportable - "
+ "use gnulib module setpayloadf for portability");
+# endif
+#endif
+
+#if @GNULIB_SETPAYLOAD@
+# if !@HAVE_SETPAYLOAD@
+_GL_FUNCDECL_SYS (setpayload, int, (double *, double), );
+# endif
+_GL_CXXALIAS_SYS (setpayload, int, (double *, double));
+_GL_CXXALIASWARN (setpayload);
+#elif defined GNULIB_POSIXCHECK
+# undef setpayload
+# if HAVE_RAW_DECL_SETPAYLOAD
+_GL_WARN_ON_USE (setpayload, "setpayload is unportable - "
+ "use gnulib module setpayload for portability");
+# endif
+#endif
+
+#if @GNULIB_SETPAYLOADL@
+# if !@HAVE_SETPAYLOADL@
+_GL_FUNCDECL_SYS (setpayloadl, int, (long double *, long double), );
+# endif
+_GL_CXXALIAS_SYS (setpayloadl, int, (long double *, long double));
+_GL_CXXALIASWARN (setpayloadl);
+#elif defined GNULIB_POSIXCHECK
+# undef setpayloadl
+# if HAVE_RAW_DECL_SETPAYLOADL
+_GL_WARN_ON_USE (setpayloadl, "setpayloadl is unportable - "
+ "use gnulib module setpayloadl for portability");
+# endif
+#endif
+
+
+#if @GNULIB_SETPAYLOADSIGF@
+# if !@HAVE_SETPAYLOADSIGF@
+_GL_FUNCDECL_SYS (setpayloadsigf, int, (float *, float), );
+# endif
+_GL_CXXALIAS_SYS (setpayloadsigf, int, (float *, float));
+_GL_CXXALIASWARN (setpayloadsigf);
+#elif defined GNULIB_POSIXCHECK
+# undef setpayloadsigf
+# if HAVE_RAW_DECL_SETPAYLOADSIGF
+_GL_WARN_ON_USE (setpayloadsigf, "setpayloadsigf is unportable - "
+ "use gnulib module setpayloadsigf for portability");
+# endif
+#endif
+
+#if @GNULIB_SETPAYLOADSIG@
+# if !@HAVE_SETPAYLOADSIG@
+_GL_FUNCDECL_SYS (setpayloadsig, int, (double *, double), );
+# endif
+_GL_CXXALIAS_SYS (setpayloadsig, int, (double *, double));
+_GL_CXXALIASWARN (setpayloadsig);
+#elif defined GNULIB_POSIXCHECK
+# undef setpayloadsig
+# if HAVE_RAW_DECL_SETPAYLOADSIG
+_GL_WARN_ON_USE (setpayloadsig, "setpayloadsig is unportable - "
+ "use gnulib module setpayloadsig for portability");
+# endif
+#endif
+
+#if @GNULIB_SETPAYLOADSIGL@
+# if !@HAVE_SETPAYLOADSIGL@
+_GL_FUNCDECL_SYS (setpayloadsigl, int, (long double *, long double), );
+# endif
+_GL_CXXALIAS_SYS (setpayloadsigl, int, (long double *, long double));
+_GL_CXXALIASWARN (setpayloadsigl);
+#elif defined GNULIB_POSIXCHECK
+# undef setpayloadsigl
+# if HAVE_RAW_DECL_SETPAYLOADSIGL
+_GL_WARN_ON_USE (setpayloadsigl, "setpayloadsigl is unportable - "
+ "use gnulib module setpayloadsigl for portability");
+# endif
+#endif
+
+
#if @GNULIB_TOTALORDERF@
# if @REPLACE_TOTALORDERF@
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
# undef totalorderf
# define totalorderf rpl_totalorderf
# endif
-_GL_FUNCDECL_RPL (totalorderf, int, (float const *, float const *));
+_GL_FUNCDECL_RPL (totalorderf, int, (float const *, float const *), );
_GL_CXXALIAS_RPL (totalorderf, int, (float const *, float const *));
# else
# if !@HAVE_TOTALORDERF@
-_GL_FUNCDECL_SYS (totalorderf, int, (float const *, float const *));
+_GL_FUNCDECL_SYS (totalorderf, int, (float const *, float const *), );
# endif
_GL_CXXALIAS_SYS (totalorderf, int, (float const *, float const *));
# endif
@@ -2803,11 +3023,11 @@ _GL_WARN_ON_USE (totalorderf, "totalorderf is unportable - "
# undef totalorder
# define totalorder rpl_totalorder
# endif
-_GL_FUNCDECL_RPL (totalorder, int, (double const *, double const *));
+_GL_FUNCDECL_RPL (totalorder, int, (double const *, double const *), );
_GL_CXXALIAS_RPL (totalorder, int, (double const *, double const *));
# else
# if !@HAVE_TOTALORDER@
-_GL_FUNCDECL_SYS (totalorder, int, (double const *, double const *));
+_GL_FUNCDECL_SYS (totalorder, int, (double const *, double const *), );
# endif
_GL_CXXALIAS_SYS (totalorder, int, (double const *, double const *));
# endif
@@ -2829,13 +3049,13 @@ _GL_WARN_ON_USE (totalorder, "totalorder is unportable - "
# define totalorderl rpl_totalorderl
# endif
_GL_FUNCDECL_RPL (totalorderl, int,
- (long double const *, long double const *));
+ (long double const *, long double const *), );
_GL_CXXALIAS_RPL (totalorderl, int,
(long double const *, long double const *));
# else
# if !@HAVE_TOTALORDERL@
_GL_FUNCDECL_SYS (totalorderl, int,
- (long double const *, long double const *));
+ (long double const *, long double const *), );
# endif
_GL_CXXALIAS_SYS (totalorderl, int,
(long double const *, long double const *));
@@ -2849,6 +3069,88 @@ _GL_WARN_ON_USE (totalorderl, "totalorderl is unportable - "
# endif
#endif
+
+#if @GNULIB_TOTALORDERMAGF@
+# if @REPLACE_TOTALORDERMAGF@
+# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
+# undef totalordermagf
+# define totalordermagf rpl_totalordermagf
+# endif
+_GL_FUNCDECL_RPL (totalordermagf, int, (float const *, float const *), );
+_GL_CXXALIAS_RPL (totalordermagf, int, (float const *, float const *));
+# else
+# if !@HAVE_TOTALORDERMAGF@
+_GL_FUNCDECL_SYS (totalordermagf, int, (float const *, float const *), );
+# endif
+_GL_CXXALIAS_SYS (totalordermagf, int, (float const *, float const *));
+# endif
+# if __GLIBC__ >= 2
+_GL_CXXALIASWARN1 (totalordermagf, int, (float const *, float const *));
+# endif
+#elif defined GNULIB_POSIXCHECK
+# undef totalordermagf
+# if HAVE_RAW_DECL_TOTALORDERMAGF
+_GL_WARN_ON_USE (totalordermagf, "totalordermagf is unportable - "
+ "use gnulib module totalordermagf for portability");
+# endif
+#endif
+
+#if @GNULIB_TOTALORDERMAG@
+# if @REPLACE_TOTALORDERMAG@
+# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
+# undef totalordermag
+# define totalordermag rpl_totalordermag
+# endif
+_GL_FUNCDECL_RPL (totalordermag, int, (double const *, double const *), );
+_GL_CXXALIAS_RPL (totalordermag, int, (double const *, double const *));
+# else
+# if !@HAVE_TOTALORDERMAG@
+_GL_FUNCDECL_SYS (totalordermag, int, (double const *, double const *), );
+# endif
+_GL_CXXALIAS_SYS (totalordermag, int, (double const *, double const *));
+# endif
+# if __GLIBC__ >= 2
+_GL_CXXALIASWARN1 (totalordermag, int, (double const *, double const *));
+# endif
+#elif defined GNULIB_POSIXCHECK
+# undef totalordermag
+# if HAVE_RAW_DECL_TOTALORDERMAG
+_GL_WARN_ON_USE (totalordermag, "totalordermag is unportable - "
+ "use gnulib module totalordermag for portability");
+# endif
+#endif
+
+#if @GNULIB_TOTALORDERMAGL@
+# if @REPLACE_TOTALORDERMAGL@
+# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
+# undef totalordermagl
+# define totalordermagl rpl_totalordermagl
+# endif
+_GL_FUNCDECL_RPL (totalordermagl, int,
+ (long double const *, long double const *), );
+_GL_CXXALIAS_RPL (totalordermagl, int,
+ (long double const *, long double const *));
+# else
+# if !@HAVE_TOTALORDERMAGL@
+_GL_FUNCDECL_SYS (totalordermagl, int,
+ (long double const *, long double const *), );
+# endif
+_GL_CXXALIAS_SYS (totalordermagl, int,
+ (long double const *, long double const *));
+# endif
+# if __GLIBC__ >= 2
+_GL_CXXALIASWARN1 (totalordermagl, int,
+ (long double const *, long double const *));
+# endif
+#elif defined GNULIB_POSIXCHECK
+# undef totalordermagl
+# if HAVE_RAW_DECL_TOTALORDERMAGL
+_GL_WARN_ON_USE (totalordermagl, "totalordermagl is unportable - "
+ "use gnulib module totalordermagl for portability");
+# endif
+#endif
+
+
_GL_INLINE_HEADER_END
#endif /* _@GUARD_PREFIX@_MATH_H */