]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
log2f: Remove support for OSF/1.
authorBruno Haible <bruno@clisp.org>
Tue, 9 Sep 2025 10:42:51 +0000 (12:42 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 9 Sep 2025 10:42:51 +0000 (12:42 +0200)
* m4/log2f.m4 (gl_FUNC_LOG2F_WORKS): Remove test regarding
log2f (-0.0f).

ChangeLog
m4/log2f.m4

index 134cd544560b75f5391e4d770a0d04c5b65286e3..1f8803eb32a1d3214b85eb560f7fb8d0c893ebba 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2025-09-09  Bruno Haible  <bruno@clisp.org>
 
+       log2f: Remove support for OSF/1.
+       * m4/log2f.m4 (gl_FUNC_LOG2F_WORKS): Remove test regarding
+       log2f (-0.0f).
+
        log2: Remove support for OSF/1.
        * m4/log2.m4 (gl_FUNC_LOG2_WORKS): Remove test regarding log2 (-0.0).
 
index e4e0b0a151fc39756624bc3b516521ce2bb1705e..6a0e713998e92d0e879562677b35f6228b618405 100644 (file)
@@ -1,5 +1,5 @@
 # log2f.m4
-# serial 15
+# serial 16
 dnl Copyright (C) 2010-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,
@@ -138,7 +138,6 @@ int main (int argc, char *argv[])
 ])
 
 dnl Test whether log2() works.
-dnl On OSF/1 5.1, log2f(-0.0f) is NaN.
 dnl On Cygwin 1.7.9, log2f(2^13) is not exactly 13.
 AC_DEFUN([gl_FUNC_LOG2F_WORKS],
 [
@@ -161,23 +160,18 @@ volatile float y;
 int main ()
 {
   int result = 0;
-  /* This test fails on OSF/1 5.1.  */
-  x = -0.0f;
-  y = log2f (x);
-  if (!(y + y == y))
-    result |= 1;
   /* This test fails on Cygwin 1.7.9.  */
   x = 8192.0f;
   y = log2f (x);
   if (!(y == 13.0f))
-    result |= 2;
+    result |= 1;
   return result;
 }
 ]])],
         [gl_cv_func_log2f_works=yes],
         [gl_cv_func_log2f_works=no],
         [case "$host_os" in
-           cygwin* | osf*)    gl_cv_func_log2f_works="guessing no" ;;
+           cygwin*)           gl_cv_func_log2f_works="guessing no" ;;
                               # Guess yes on native Windows.
            mingw* | windows*) gl_cv_func_log2f_works="guessing yes" ;;
            *)                 gl_cv_func_log2f_works="guessing yes" ;;