]> 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>
Wed, 30 Aug 2023 10:16:52 +0000 (12:16 +0200)
commit5aa32231b354f8532af7cb37ed7d5d36c8768cb7
treee09c58bfc48965992d58ae983107339202614386
parent40070769ab763ab2cd688e821b3ec2e91a543f77
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