diff options
author | Andrej Rode <andrej.rode@ettus.com> | 2017-04-10 12:24:28 -0700 |
---|---|---|
committer | Andrej Rode <andrej.rode@ettus.com> | 2017-04-10 12:36:05 -0700 |
commit | 01c8494929882e4a897fbb5c792b610c9f116776 (patch) | |
tree | b201b4ef60e6275277863de66b741893a92e265f /gnuradio-runtime/lib/math | |
parent | c62ad7565afaed3887cd1161cd79ae60ed4a8383 (diff) |
runtime: fix qa_fast_atan2f
Diffstat (limited to 'gnuradio-runtime/lib/math')
-rw-r--r-- | gnuradio-runtime/lib/math/qa_fast_atan2f.cc | 10 |
1 files 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 154998f79a..9584a578a1 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)); } |