2025-09-10 Bruno Haible <bruno@clisp.org>
+ log10l: Remove support for IRIX.
+ * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Remove IRIX <float.h> workaround.
+ * lib/log10l.c (log10l): Remove code for IRIX.
+
logl: Remove support for IRIX.
* m4/logl.m4 (gl_FUNC_LOGL_WORKS): Remove IRIX <float.h> workaround.
log10l (long double x)
# undef log10l
{
- /* Work around the AIX, IRIX bug. */
+ /* Work around the AIX bug. */
if (x == 0.0L)
/* Return -Infinity. */
return -1.0L / 0.0L;
- {
- long double y = log10l (x);
-# ifdef __sgi
- /* Normalize the +Infinity value. */
- if (y > LDBL_MAX)
- y = 1.0L / 0.0L;
-# endif
- return y;
- }
+ return log10l (x);
}
#else
# log10l.m4
-# serial 16
+# serial 17
dnl Copyright (C) 2011-2025 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
])
dnl Test whether log10l() works.
-dnl On IRIX 6.5, log10l(-0.0L) is an unnormalized negative infinity
-dnl 0xFFF00000000000007FF0000000000000, should be
-dnl 0xFFF00000000000000000000000000000.
dnl On AIX 5.1, log10l(-0.0L) is finite if it's not the first log10l call
dnl in the program.
dnl On NetBSD 9.3, the result is accurate to only 16 digits.
# undef LDBL_MIN_EXP
# define LDBL_MIN_EXP DBL_MIN_EXP
#endif
-#if defined __sgi && (LDBL_MANT_DIG >= 106)
-# undef LDBL_MANT_DIG
-# define LDBL_MANT_DIG 106
-# if defined __GNUC__
-# undef LDBL_MIN_EXP
-# define LDBL_MIN_EXP DBL_MIN_EXP
-# endif
-#endif
#undef log10l /* for AIX */
extern
#ifdef __cplusplus
/* Dummy call, to trigger the AIX 5.1 bug. */
gx = 0.6L;
gy = log10l (gx);
- /* This test fails on AIX 5.1, IRIX 6.5. */
+ /* This test fails on AIX 5.1. */
{
gx = -0.0L;
gy = log10l (gx);