[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 01/02: runtime: fix qa_fast_atan2f
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 01/02: runtime: fix qa_fast_atan2f |
Date: |
Sat, 15 Apr 2017 22:43:37 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch maint
in repository gnuradio.
commit 01c8494929882e4a897fbb5c792b610c9f116776
Author: Andrej Rode <address@hidden>
Date: Mon Apr 10 12:24:28 2017 -0700
runtime: fix qa_fast_atan2f
---
gnuradio-runtime/lib/math/qa_fast_atan2f.cc | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/gnuradio-runtime/lib/math/qa_fast_atan2f.cc
b/gnuradio-runtime/lib/math/qa_fast_atan2f.cc
index 154998f..9584a57 100644
--- a/gnuradio-runtime/lib/math/qa_fast_atan2f.cc
+++ b/gnuradio-runtime/lib/math/qa_fast_atan2f.cc
@@ -31,9 +31,9 @@
#include <limits>
#ifdef _MSC_VER
-#define isnan _isnan
+#define ISNAN _isnan
#else
-using std::isnan;
+#define ISNAN std::isnan
#endif
void
@@ -98,7 +98,7 @@ qa_fast_atan2f::t2()
x = inf;
y = inf;
gr_atan2f = gr::fast_atan2f(y, x);
- CPPUNIT_ASSERT(isnan(gr_atan2f));
+ CPPUNIT_ASSERT(ISNAN(gr_atan2f));
/* Test x as NAN */
@@ -128,10 +128,10 @@ qa_fast_atan2f::t2()
x = inf;
y = nan;
gr_atan2f = gr::fast_atan2f(y, x);
- CPPUNIT_ASSERT(isnan(gr_atan2f));
+ CPPUNIT_ASSERT(ISNAN(gr_atan2f));
x = nan;
y = inf;
gr_atan2f = gr::fast_atan2f(y, x);
- CPPUNIT_ASSERT(isnan(gr_atan2f));
+ CPPUNIT_ASSERT(ISNAN(gr_atan2f));
}