Mercurial > hg > octave-nkf > gnulib-hg
diff doc/posix-functions/expl.texi @ 17655:bfa6d7414863
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.
author | Assaf Gordon <agordon@wi.mit.edu> |
---|---|
date | Wed, 16 Apr 2014 11:35:55 -0400 |
parents | 498a2211d839 |
children |
line wrap: on
line diff
--- a/doc/posix-functions/expl.texi +++ b/doc/posix-functions/expl.texi @@ -12,6 +12,9 @@ This function is missing on some platforms: FreeBSD 6.0, NetBSD 5.0, OpenBSD 3.8, Minix 3.1.8, HP-UX 11, IRIX 6.5, Solaris 9, Cygwin, Interix 3.5, BeOS. @item +This function returns NaN for small operands: +OpenBSD 5.4. +@item This function is only defined as a macro with arguments on some platforms: MSVC 9. @item