]> Savannah Git Hosting - gnulib.git/commitdiff
ilogb: Document a Mac OS X bug.
authorBruno Haible <bruno@clisp.org>
Tue, 3 Oct 2023 22:30:28 +0000 (00:30 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 3 Oct 2023 22:30:28 +0000 (00:30 +0200)
* doc/posix-functions/ilogb.texi: Mention a bug that affects Mac OS X.
* m4/ilogb.m4 (gl_FUNC_ILOGB): Update comments.

ChangeLog
doc/posix-functions/ilogb.texi
m4/ilogb.m4

index 4732d499bc2c0ac4913a71242f92cd81ffa45106..253f32208dc13b86ea59b9cc4c31bd5ba344b149 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-10-03  Bruno Haible  <bruno@clisp.org>
+
+       ilogb: Document a Mac OS X bug.
+       * doc/posix-functions/ilogb.texi: Mention a bug that affects Mac OS X.
+       * m4/ilogb.m4 (gl_FUNC_ILOGB): Update comments.
+
 2023-10-03  Bruno Haible  <bruno@clisp.org>
 
        *printf-posix: Work around bug with %#.0x on Mac OS X 10.6.
index edcba7c6c88f2bea01dab941353f3ad7177f01a4..880898dd3975c21f3b2f89748e8a5fbc5eea4409 100644 (file)
@@ -16,7 +16,7 @@ This function returns a wrong result for a zero argument on some platforms:
 OpenBSD 6.7, AIX 5.1.
 @item
 This function returns a wrong result for denormalized arguments on some platforms:
-AIX 7.1 64-bit.
+Mac OS X 10.5 64-bit, AIX 7.1 64-bit.
 @item
 This function returns a wrong result for an infinite argument on some platforms:
 NetBSD 7.1, OpenBSD 6.7.
index 257272bda713b31dbb758778f30eda1168aa4bff..9258c7238c5bdeb9ba055dab0c6dee794bd7109a 100644 (file)
@@ -1,4 +1,4 @@
-# ilogb.m4 serial 8
+# ilogb.m4 serial 9
 dnl Copyright (C) 2010-2023 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -44,7 +44,8 @@ AC_DEFUN([gl_FUNC_ILOGB],
 
 dnl Test whether ilogb() works.
 dnl On OpenBSD 6.7, AIX 5.1, ilogb(0.0) is wrong.
-dnl On AIX 7.1 in 64-bit mode, ilogb(2^(DBL_MIN_EXP-1)) is wrong.
+dnl On Mac OS X 10.5 in 64-bit mode and on AIX 7.1 in 64-bit mode,
+dnl ilogb(2^(DBL_MIN_EXP-1)) is wrong.
 dnl On NetBSD 7.1, OpenBSD 6.7, ilogb(Infinity) is wrong.
 dnl On NetBSD 7.1, OpenBSD 6.7, ilogb(NaN) is wrong.
 AC_DEFUN([gl_FUNC_ILOGB_WORKS],
@@ -95,7 +96,8 @@ int main (int argc, char *argv[])
     if (my_ilogb (x) != FP_ILOGB0)
       result |= 1;
   }
-  /* This test fails on AIX 7.1 in 64-bit mode.  */
+  /* This test fails on Mac OS X 10.5 in 64-bit mode and on
+     AIX 7.1 in 64-bit mode.  */
   {
     int i;
     x = 0.5;