Stricter test whether isnanl works.
authorBruno Haible <bruno@clisp.org>
Sun, 27 Apr 2008 20:51:28 +0000 (22:51 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 27 Apr 2008 20:51:28 +0000 (22:51 +0200)
ChangeLog
m4/isnanl.m4

index 8ae01ef..391bb3f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 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.
        * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
        * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
index c2bddc6..660a898 100644 (file)
@@ -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 @@ int main ()
   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