Mercurial > hg > octave-shane > gnulib-hg
changeset 9988:74f56586d150
Stricter test whether isnanl works.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 27 Apr 2008 22:51:28 +0200 |
parents | 8d1cd7ae4b1e |
children | 2bff2d33e74d |
files | ChangeLog m4/isnanl.m4 |
diffstat | 2 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-04-27 Bruno Haible <bruno@clisp.org> + + * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on + quiet NaNs. + 2008-04-27 Bruno Haible <bruno@clisp.org> Make test-yesno.sh work on mingw.
--- a/m4/isnanl.m4 +++ b/m4/isnanl.m4 @@ -1,4 +1,4 @@ -# isnanl.m4 serial 6 +# isnanl.m4 serial 7 dnl Copyright (C) 2007-2008 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -134,6 +134,10 @@ memory_long_double m; unsigned int i; + /* gcc-3.4.3 on IRIX 6.5 appears to have a problem with this. */ + if (!isnanl (0.0L / 0.0L)) + return 1; + /* The isnanl function should be immune against changes in the sign bit and in the mantissa bits. The xor operation twiddles a bit that can only be a sign bit or a mantissa bit (since the exponent never extends to