[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));
- [Commit-gnuradio] [gnuradio] branch maint updated (689f507 -> ec05c9b), git, 2014/12/04
- [Commit-gnuradio] [gnuradio] 05/13: Merge remote-tracking branch 'st0ne/maint' into maint, git, 2014/12/04
- [Commit-gnuradio] [gnuradio] 02/13: modified the qa tests to the correct values., git, 2014/12/04
- [Commit-gnuradio] [gnuradio] 01/13: Corrected the fast_atan2f function. Recalculated the table and corrected some errors in the code. Error before correction: <0.111 degrees. Error after correction: <8.20E-5 degrees Some QA tests failed after correcting fast_atan2f function. The tests were also fixed., git, 2014/12/04
- [Commit-gnuradio] [gnuradio] 04/13: Checking for NaN takes too much time. With some incompatibility to cmath atan2 for some NaN/Inf combinations the performance is better now. This change should not have any impact in SDR related things. It is only for checking NaN/Inf values., git, 2014/12/04
- [Commit-gnuradio] [gnuradio] 13/13: logger: fixed a problem with the Python loggers not respecting the log_file and debug_file settings in the logger preferences file., git, 2014/12/04
- [Commit-gnuradio] [gnuradio] 07/13: runtime: math: reset a QA test for the fast_atan2f for mixed nan/inf input., git, 2014/12/04
- [Commit-gnuradio] [gnuradio] 06/13: runtime: math: in fast_atan2f, moved nested if that checks for divide by zero out into its own check., git, 2014/12/04
- [Commit-gnuradio] [gnuradio] 08/13: qtgui: compare current time domain x-axis unit with new unit to ensure time scale update., git, 2014/12/04
- [Commit-gnuradio] [gnuradio] 03/13: cleaned the code,
git <=
- [Commit-gnuradio] [gnuradio] 11/13: filter: fixed default filter for rational_resampler., git, 2014/12/04
- [Commit-gnuradio] [gnuradio] 12/13: filter: adds documentation to using the rational resamplers., git, 2014/12/04
- [Commit-gnuradio] [gnuradio] 09/13: digital: fixes issues with the constellation soft decoder, specifically how the decisions are calculated in the C++ code and some issues with the QAM16 constellation in particular., git, 2014/12/04
- [Commit-gnuradio] [gnuradio] 10/13: digtial: adding example to explore the constellation decoder and soft decoder for different constellations., git, 2014/12/04