Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't use long double math functions if NO_LONG_DOUBLE
  • Loading branch information
Andreas Schwab committed Feb 24, 2016
1 parent b2e7228 commit 8dfdd07
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions 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,
Expand Down
7 changes: 6 additions & 1 deletion math/test-math-isinff.cc
Expand Up @@ -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);
Expand Down

0 comments on commit 8dfdd07

Please sign in to comment.