]> Savannah Git Hosting - gnulib.git/commit
expl: avoid incorrect expl(small_value) on OpenBSD 5.4
authorAssaf Gordon <agordon@wi.mit.edu>
Wed, 16 Apr 2014 15:35:55 +0000 (11:35 -0400)
committerPádraig Brady <P@draigBrady.com>
Wed, 16 Apr 2014 22:12:55 +0000 (23:12 +0100)
commit187808c6c576d7c492e8f2bb9e973e5a7498744e
tree2b165fc8357f1157899d73b1b76225e2b0c8deae
parent2f40bc523412742dac387b37d70b5a7f5d8363cc
expl: avoid incorrect expl(small_value) on OpenBSD 5.4

OpenBSD 5.4, expl() incorrectly returns 'nan' for small values.
Detect this and use gnulib's expl() in that case.

Discussed here:
http://marc.info/?t=139159081700002&r=1&w=2
(Message from David Coppa on 2014-02-05 to openbsd-tech mailing list).

Fixed here (in revision 1.2):
http://www.openbsd.org/cgi-bin/cvsweb/src/lib/libm/src/ld128/s_floorl.c

* m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
* doc/posix-functions/expl.texi: Mention the workaround.
ChangeLog
doc/posix-functions/expl.texi
m4/expl.m4