]> sourceware.org Git - glibc.git/commitdiff
Don't use long double math functions if NO_LONG_DOUBLE
authorAndreas Schwab <schwab@suse.de>
Tue, 23 Feb 2016 15:27:56 +0000 (16:27 +0100)
committerAndreas Schwab <schwab@suse.de>
Wed, 24 Feb 2016 10:59:42 +0000 (11:59 +0100)
ChangeLog
math/test-math-isinff.cc

index fbe987fe236b8cd76c48499aa428b9b0bc4825c5..4d4840da75990b50fccb609fcddedcf7423b1685 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-02-24  Andreas Schwab  <schwab@suse.de>
+
+       * math/test-math-isinff.cc (do_test): Only call isinfl and isnanl
+       if !NO_LONG_DOUBLE.
+
 2016-02-22  Roland McGrath  <roland@hack.frob.com>
 
        * sysdeps/arm/nacl/libc.abilist (GLIBC_2.23): Add GLIBC_2.23,
index 195d753f0ee357b26080036862fbbf6a56675932..ecff1dc46a0e82a18143736ba6950221b42fce7e 100644 (file)
@@ -30,12 +30,17 @@ do_test (void)
      header fix this test will not compile.  */
   if (isinff (1.0f)
       || !isinff (INFINITY)
+#ifndef NO_LONG_DOUBLE
       || isinfl (1.0L)
       || !isinfl (INFINITY)
+#endif
       || isnanf (2.0f)
       || !isnanf (NAN)
+#ifndef NO_LONG_DOUBLE
       || isnanl (2.0L)
-      || !isnanl (NAN))
+      || !isnanl (NAN)
+#endif
+      )
     {
       printf ("FAIL: Failed to call is* functions.\n");
       exit (1);
This page took 0.158863 seconds and 5 git commands to generate.