+2012-03-11 Bruno Haible <bruno@clisp.org>
+
+ New module 'log2f'.
+ * lib/math.in.h (log2f): New declaration.
+ * lib/log2f.c: New file.
+ * m4/log2f.m4: New file.
+ * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
+ (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
+ REPLACE_LOG2F.
+ * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
+ REPLACE_LOG2F.
+ * modules/log2f: New file.
+ * tests/test-math-c++.cc: Check the declaration of log2f.
+ * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
+ and OSF/1 and Cygwin problems.
+
+2012-03-11 Bruno Haible <bruno@clisp.org>
+
+ Tests for module 'log2'.
+ * modules/log2-tests: New file.
+ * tests/test-log2.c: New file.
+ * tests/test-log2.h: New file.
+
+ New module 'log2'.
+ * lib/math.in.h (log2): New declaration.
+ * lib/log2.c: New file.
+ * m4/log2.m4: New file.
+ * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
+ (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
+ REPLACE_LOG2.
+ * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
+ REPLACE_LOG2.
+ * modules/log2: New file.
+ * tests/test-math-c++.cc: Check the declaration of log2.
+ * doc/posix-functions/log2.texi: Mention the new module and the IRIX
+ and OSF/1 and Cygwin problems.
+
+2012-03-11 Bruno Haible <bruno@clisp.org>
+
+ exp2* tests: More tests.
+ * tests/test-exp2.h (test_function): Test all integral arguments that
+ don't need to overflow or denormalized numbers.
+ * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
+ * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
+ * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
+
+2012-03-10 Bruno Haible <bruno@clisp.org>
+
+ log1pl-ieee: Work around test failure on AIX 7.1.
+ * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
+
+ log1pl-ieee: Work around test failure on IRIX 6.5.
+ * m4/log1pl-ieee.m4: New file.
+ * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
+ test whether log1pl works with a minus zero argument. Replace it if
+ not.
+ * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
+ * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
+ * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
+ * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
+ (Depends-on): Update conditions.
+ * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
+ m4/signbit.m4.
+ (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
+ * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
+
+ log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
+ * m4/log1pf-ieee.m4: New file.
+ * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
+ test whether log1pf works with a minus zero argument. Replace it if
+ not.
+ * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
+ m4/signbit.m4.
+ (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
+ * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
+
+ log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
+ * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
+ (configure.ac): Require gl_FUNC_LOG1PF.
+
+ log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
+ * m4/log1p-ieee.m4: New file.
+ * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
+ whether log1p works with a minus zero argument. Replace it if not.
+ * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
+ * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
+ * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
+ * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
+ (Depends-on): Update conditions.
+ * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
+ m4/signbit.m4.
+ (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
+ * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
+
+ Tests for module 'log1pl-ieee'.
+ * modules/log1pl-ieee-tests: New file.
+ * tests/test-log1pl-ieee.c: New file.
+
+ New module 'log1pl-ieee'.
+ * modules/log1pl-ieee: New file.
+
+ Tests for module 'log1p-ieee'.
+ * modules/log1p-ieee-tests: New file.
+ * tests/test-log1p-ieee.c: New file.
+
+ New module 'log1p-ieee'.
+ * modules/log1p-ieee: New file.
+
+ Tests for module 'log1pf-ieee'.
+ * modules/log1pf-ieee-tests: New file.
+ * tests/test-log1pf-ieee.c: New file.
+ * tests/test-log1p-ieee.h: New file.
+
+ New module 'log1pf-ieee'.
+ * modules/log1pf-ieee: New file.
+
+2012-03-10 Bruno Haible <bruno@clisp.org>
+
+ Tests for module 'log1pl'.
+ * modules/log1pl-tests: New file.
+ * tests/test-log1pl.c: New file.
+
+ New module 'log1pl'.
+ * lib/math.in.h (log1pl): New declaration.
+ * lib/log1pl.c: New file.
+ * m4/log1pl.m4: New file.
+ * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
+ (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
+ * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
+ * modules/log1pl: New file.
+ * tests/test-math-c++.cc: Check the declaration of log1pl.
+ * doc/posix-functions/log1pl.texi: Mention the new module.
+
+2012-03-10 Bruno Haible <bruno@clisp.org>
+
+ Tests for module 'log1pf'.
+ * modules/log1pf-tests: New file.
+ * tests/test-log1pf.c: New file.
+
+ New module 'log1pf'.
+ * lib/math.in.h (log1pf): New declaration.
+ * lib/log1pf.c: New file.
+ * m4/log1pf.m4: New file.
+ * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
+ (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
+ REPLACE_LOG1PF.
+ * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
+ REPLACE_LOG1PF.
+ * modules/log1pf: New file.
+ * tests/test-math-c++.cc: Check the declaration of log1pf.
+ * doc/posix-functions/log1pf.texi: Mention the new module.
+
+2012-03-10 Bruno Haible <bruno@clisp.org>
+
+ log1p tests: More tests.
+ * tests/test-log1p.h: New file.
+ * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
+ (Makefile.am): Add randomd.c to test_log1p_SOURCES.
+ * tests/test-log1p.c: Include <float.h> and test-log1p.h.
+ (main): Invoke test_function.
+
+ log1p: Provide replacement for Minix and MSVC.
+ * lib/math.in.h (log1p): New declaration.
+ * lib/log1p.c: New file.
+ * m4/log1p.m4: New file.
+ * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
+ (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
+ * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
+ * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
+ (Depends-on): Add math, isnand, log, round.
+ (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
+ HAVE_LOG1P is 0.
+ * tests/test-math-c++.cc: Check the declaration of log1p.
+ * doc/posix-functions/log1p.texi: Mention the replacement.
+
+2012-03-10 Bruno Haible <bruno@clisp.org>
+
+ math tests: Small simplification.
+ * tests/test-exp.h (test_function): Use the same err_bound for
+ 'double' on platforms with sizeof (long double) == sizeof (double)
+ than on platforms with sizeof (long double) > sizeof (double).
+ * tests/test-exp2.h (test_function): Likewise.
+ * tests/test-expm1.h (test_function): Likewise.
+ * tests/test-log.h (test_function): Likewise.
+
2012-03-10 Bruno Haible <bruno@clisp.org>
+ Fix some comments.
+ * lib/expl.c: Fix an ambiguous comment.
+ * lib/expm1.c: Likewise.
+ * lib/expm1l.c: Likewise.
+ * lib/exp2.c: Likewise.
+ * lib/exp2l.c: Likewise.
+
+2012-03-10 Paul Eggert <eggert@cs.ucla.edu>
+
+ regex: allow inclusion of <regex.h> before <limits.h>
+ Without this patch, portable programs had to include <limits.h> before
+ <regex.h> if they wanted a consistent value for RE_DUP_MAX.
+ I ran into this problem with a test version of GNU grep on Solaris 8.
+ * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
+ This is done conditionally so that this change can be merged
+ back to glibc.
+ * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
+ using the included regex.
+
+ fts: depend on fdopendir
+ * modules/fts (Depends-on): Depend on fdopendir. This is needed
+ on Solaris 8, at least, since it lacks fdopendir. Evidently the
+ problem was introduced when fdopendir was split out.
+
+2012-03-10 Bruno Haible <bruno@clisp.org>
+
+ Remove unused variables.
+ * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
+ * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
+
+2012-03-10 Bruno Haible <bruno@clisp.org>
+
+ isnanf-nolibm: Fix last commit.
+ * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
+
+ isnanf-nolibm: Make it work on IRIX 6.5 with cc.
+ * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
+
+2012-03-10 Bruno Haible <bruno@clisp.org>
+
+ logf-ieee: Work around test failure on NetBSD 5.1.
+ * m4/logf-ieee.m4: New file.
+ * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
+ whether logf works with a negative argument. Replace it if not.
+ * lib/logf.c (logf): For negative arguments, return NaN.
+ * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
+ (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
+ * doc/posix-functions/logf.texi: Mention the logf-ieee module.
+
logf-ieee: Work around test failure on Solaris 9.
* modules/logf-ieee (Depends-on): Add log-ieee.
(configure.ac): Require gl_FUNC_LOGF.