]> Savannah Git Hosting - gnulib.git/commit
ldexp: Work around OpenBSD/mips64 bug.
authorBruno Haible <bruno@clisp.org>
Sun, 20 Aug 2023 00:43:01 +0000 (02:43 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 20 Aug 2023 01:14:14 +0000 (03:14 +0200)
commitfed956a877ca706961ad6536dfd4ad69b17d4467
treec1bbe02738881e3c8677e50f0fc5fcdd30a581f3
parente9633a2bc8f65647a6f67eaa597e5b1b174c2746
ldexp: Work around OpenBSD/mips64 bug.

* lib/math.in.h (ldexp): New declaration.
* lib/ldexp.c: New file, based on lib/ldexpl.c.
* lib/ldexpl.c: Moved the implementation to lib/ldexp.c. Just include
it.
* m4/math_h.m4 (gl_MATH_H_REQUIRE_DEFAULTS): Initialize GNULIB_LDEXP.
(gl_MATH_H_DEFAULTS): Initialize REPLACE_LDEXP.
* m4/ldexp.m4 (gl_FUNC_LDEXP): Require gl_MATH_H_DEFAULTS and
gl_FUNC_ISNAND. Invoke gl_FUNC_LDEXP_WORKS. Set REPLACE_LDEXP. Consider
it when setting LDEXP_LIBM.
(gl_FUNC_LDEXP_WORKS): New macro.
* modules/math (Makefile.am): Substitute GNULIB_LDEXP, REPLACE_LDEXP.
* modules/ldexp (Files): Add lib/ldexp.c.
(Depends-on): Add math, isnand.
(configure.ac): Set GL_COND_OBJ_LDEXP. Invoke gl_MATH_MODULE_INDICATOR.
(Makefile.am): Conditionally compile ldexp.c.
* modules/ldexpl (Files): Add lib/ldexp.c.
* doc/posix-functions/ldexp.texi: Mention the OpenBSD bug.
ChangeLog
doc/posix-functions/ldexp.texi
lib/ldexp.c [new file with mode: 0644]
lib/ldexpl.c
lib/math.in.h
m4/ldexp.m4
m4/math_h.m4
modules/ldexp
modules/ldexpl
modules/math