projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
NEWS.stable: log cherry-pick [e446f25]->[c092018] relocatable-shell: Update suggested...
[gnulib.git]
/
lib
/
logl.c
diff --git
a/lib/logl.c
b/lib/logl.c
index
42c50cb
..
0c00a2b
100644
(file)
--- a/
lib/logl.c
+++ b/
lib/logl.c
@@
-26,8
+26,23
@@
logl (long double x)
return log (x);
}
return log (x);
}
+#elif HAVE_LOGL
+
+long double
+logl (long double x)
+# undef logl
+{
+ /* Work around the OSF/1 5.1 bug. */
+ if (x == 0.0L)
+ /* Return -Infinity. */
+ return -1.0L / 0.0L;
+ return logl (x);
+}
+
#else
#else
+/* Code based on glibc/sysdeps/ieee754/ldbl-128/e_logl.c. */
+
/* logll.c
*
* Natural logarithm for 128-bit long double precision.
/* logll.c
*
* Natural logarithm for 128-bit long double precision.