commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 03/13: cleaned the code


From: git
Subject: [Commit-gnuradio] [gnuradio] 03/13: cleaned the code
Date: Thu, 4 Dec 2014 16:21:49 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

trondeau pushed a commit to branch maint
in repository gnuradio.

commit 3ccfc81b442a6082b0703af136404c9dbc502090
Author: aiph <address@hidden>
Date:   Sat Nov 22 00:59:03 2014 +0100

    cleaned the code
---
 gnuradio-runtime/lib/math/qa_fast_atan2f.cc | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

diff --git a/gnuradio-runtime/lib/math/qa_fast_atan2f.cc 
b/gnuradio-runtime/lib/math/qa_fast_atan2f.cc
index 1d1cea0..514d8c8 100644
--- a/gnuradio-runtime/lib/math/qa_fast_atan2f.cc
+++ b/gnuradio-runtime/lib/math/qa_fast_atan2f.cc
@@ -51,7 +51,7 @@ qa_fast_atan2f::t1()
 
       gr_atan2f = gr::fast_atan2f(y, x);
 
-      CPPUNIT_ASSERT_DOUBLES_EQUAL(c_atan2, gr_atan2f,0.000083);
+      CPPUNIT_ASSERT_DOUBLES_EQUAL(c_atan2, gr_atan2f, 0.0);
     }
   }
 }
@@ -71,13 +71,13 @@ qa_fast_atan2f::t2()
   y = 0;
   c_atan2 = atan2(y, x);
   gr_atan2f = gr::fast_atan2f(y, x);
-  CPPUNIT_ASSERT_DOUBLES_EQUAL(c_atan2, gr_atan2f, 0.00083);
+  CPPUNIT_ASSERT_DOUBLES_EQUAL(c_atan2, gr_atan2f, 0.0);
 
   x = -inf;
   y = 0;
   c_atan2 = atan2(y, x);
   gr_atan2f = gr::fast_atan2f(y, x);
-  CPPUNIT_ASSERT_DOUBLES_EQUAL(c_atan2, gr_atan2f, 0.00083);
+  CPPUNIT_ASSERT_DOUBLES_EQUAL(c_atan2, gr_atan2f, 0.0);
 
 
   /* Test y as INF */
@@ -85,13 +85,13 @@ qa_fast_atan2f::t2()
   y = inf;
   c_atan2 = atan2(y, x);
   gr_atan2f = gr::fast_atan2f(y, x);
-  CPPUNIT_ASSERT_DOUBLES_EQUAL(c_atan2, gr_atan2f, 0.00083);
+  CPPUNIT_ASSERT_DOUBLES_EQUAL(c_atan2, gr_atan2f, 0.0);
 
   x = 0;
   y = -inf;
   c_atan2 = atan2(y, x);
   gr_atan2f = gr::fast_atan2f(y, x);
-  CPPUNIT_ASSERT_DOUBLES_EQUAL(c_atan2, gr_atan2f, 0.00083);
+  CPPUNIT_ASSERT_DOUBLES_EQUAL(c_atan2, gr_atan2f, 0.0);
 
 
   /* Test x and y as INF */
@@ -104,13 +104,11 @@ qa_fast_atan2f::t2()
   /* Test x as NAN */
   x = nan;
   y = 0;
-  c_atan2 = atan2(y, x);
   gr_atan2f = gr::fast_atan2f(y, x);
   CPPUNIT_ASSERT(isnan(gr_atan2f));
 
   x = -nan;
   y = 0;
-  c_atan2 = atan2(y, x);
   gr_atan2f = gr::fast_atan2f(y, x);
   CPPUNIT_ASSERT(isnan(gr_atan2f));
 
@@ -118,13 +116,11 @@ qa_fast_atan2f::t2()
   /* Test y as NAN */
   x = 0;
   y = nan;
-  c_atan2 = atan2(y, x);
   gr_atan2f = gr::fast_atan2f(y, x);
   CPPUNIT_ASSERT(isnan(gr_atan2f));
 
   x = 0;
   y = -nan;
-  c_atan2 = atan2(y, x);
   gr_atan2f = gr::fast_atan2f(y, x);
   CPPUNIT_ASSERT(isnan(gr_atan2f));
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]