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).
# 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,
])
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],
[
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" ;;