From: Bruno Haible Date: Tue, 9 Sep 2025 10:42:51 +0000 (+0200) Subject: log2f: Remove support for OSF/1. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62586e741ca840b4d55669bd0d1f3620b68eabdf;p=thirdparty%2Fgnulib.git log2f: Remove support for OSF/1. * m4/log2f.m4 (gl_FUNC_LOG2F_WORKS): Remove test regarding log2f (-0.0f). --- diff --git a/ChangeLog b/ChangeLog index 134cd54456..1f8803eb32 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2025-09-09 Bruno Haible + 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). diff --git a/m4/log2f.m4 b/m4/log2f.m4 index e4e0b0a151..6a0e713998 100644 --- a/m4/log2f.m4 +++ b/m4/log2f.m4 @@ -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" ;;