doc: use ASCII in .texi files where UTF-8 isn't needed
[gnulib.git] / lib / logl.c
index 42c50cb..0c00a2b 100644 (file)
@@ -26,8 +26,23 @@ logl (long double 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
 
+/* Code based on glibc/sysdeps/ieee754/ldbl-128/e_logl.c.  */
+
 /*                                                      logll.c
  *
  * Natural logarithm for 128-bit long double precision.