diff options
author | Marcus Müller <mmueller@gnuradio.org> | 2021-06-13 01:51:48 +0200 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2021-06-17 06:38:27 -0400 |
commit | a29f87eacc202a6c0f782f54e335a3f02dfdb6d4 (patch) | |
tree | 6309286d893254d2288225570bb664ab5b91b5d3 | |
parent | d45392e5eb24b08e35f1fc6058999c3318b73cf9 (diff) |
runtime/math QA: remove orphaned debug printfs
Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
-rw-r--r-- | gnuradio-runtime/lib/math/qa_fxpt_nco.cc | 5 | ||||
-rw-r--r-- | gnuradio-runtime/lib/math/qa_fxpt_vco.cc | 7 | ||||
-rw-r--r-- | gnuradio-runtime/lib/math/qa_math.cc | 23 |
3 files changed, 0 insertions, 35 deletions
diff --git a/gnuradio-runtime/lib/math/qa_fxpt_nco.cc b/gnuradio-runtime/lib/math/qa_fxpt_nco.cc index 6475be05bb..13d2076780 100644 --- a/gnuradio-runtime/lib/math/qa_fxpt_nco.cc +++ b/gnuradio-runtime/lib/math/qa_fxpt_nco.cc @@ -17,7 +17,6 @@ #include <unistd.h> #include <boost/test/unit_test.hpp> #include <cmath> -#include <cstdio> static const float SIN_COS_TOLERANCE = 1e-5; @@ -63,8 +62,6 @@ BOOST_AUTO_TEST_CASE(t0) max_phase_error = max_d(max_phase_error, ref_nco.get_phase() - new_nco.get_phase()); } - // printf ("Fxpt max error %.9f, max phase error %.9f\n", max_error, - // max_phase_error); } BOOST_AUTO_TEST_CASE(t1) @@ -93,6 +90,4 @@ BOOST_AUTO_TEST_CASE(t1) max_error = max_d(max_error, ref_block[i].imag() - new_block[i].imag()); } BOOST_CHECK(std::abs(ref_nco.get_phase() - new_nco.get_phase()) <= SIN_COS_TOLERANCE); - // printf ("Fxpt max error %.9f, max phase error %.9f\n", max_error, - // max_phase_error); } diff --git a/gnuradio-runtime/lib/math/qa_fxpt_vco.cc b/gnuradio-runtime/lib/math/qa_fxpt_vco.cc index 993512269a..d1ee528cba 100644 --- a/gnuradio-runtime/lib/math/qa_fxpt_vco.cc +++ b/gnuradio-runtime/lib/math/qa_fxpt_vco.cc @@ -17,7 +17,6 @@ #include <unistd.h> #include <boost/test/unit_test.hpp> #include <cmath> -#include <cstdio> static const float SIN_COS_TOLERANCE = 1e-5; @@ -55,8 +54,6 @@ BOOST_AUTO_TEST_CASE(t0) max_phase_error = max_d(max_phase_error, ref_vco.get_phase() - new_vco.get_phase()); } - // printf ("Fxpt max error %.9f, max phase error %.9f\n", max_error, - // max_phase_error); } BOOST_AUTO_TEST_CASE(t1) @@ -82,8 +79,6 @@ BOOST_AUTO_TEST_CASE(t1) max_error = max_d(max_error, ref_block[i] - new_block[i]); } BOOST_CHECK(std::abs(ref_vco.get_phase() - new_vco.get_phase()) <= SIN_COS_TOLERANCE); - // printf ("Fxpt max error %.9f, max phase error %.9f\n", max_error, - // ref_vco.get_phase()-new_vco.get_phase()); } @@ -110,6 +105,4 @@ BOOST_AUTO_TEST_CASE(t2) max_error = max_d(max_error, abs(ref_block[i] - new_block[i])); } BOOST_CHECK(std::abs(ref_vco.get_phase() - new_vco.get_phase()) <= SIN_COS_TOLERANCE); - // printf ("Fxpt max error %.9f, max phase error %.9f\n", max_error, - // ref_vco.get_phase()-new_vco.get_phase()); } diff --git a/gnuradio-runtime/lib/math/qa_math.cc b/gnuradio-runtime/lib/math/qa_math.cc index 8763c9f09e..0b4250097c 100644 --- a/gnuradio-runtime/lib/math/qa_math.cc +++ b/gnuradio-runtime/lib/math/qa_math.cc @@ -10,7 +10,6 @@ #include <gnuradio/math.h> #include <boost/test/unit_test.hpp> #include <cmath> -#include <cstdio> BOOST_AUTO_TEST_CASE(test_binary_slicer1) { @@ -18,19 +17,13 @@ BOOST_AUTO_TEST_CASE(test_binary_slicer1) unsigned int z[5] = { 0, 0, 1, 1, 1 }; unsigned int y; - // printf("\nBinary\n"); for (unsigned int i = 0; i < 5; i++) { y = gr::binary_slicer(x[i]); - // printf("in: %f out: %d desired: %d\n", x[i], y, z[i]); - BOOST_CHECK_EQUAL(y, z[i]); } - // printf("\nBranchless Binary\n"); for (unsigned int i = 0; i < 5; i++) { y = gr::branchless_binary_slicer(x[i]); - // printf("in: %f out: %d desired: %d\n", x[i], y, z[i]); - BOOST_CHECK_EQUAL(y, z[i]); } } @@ -44,21 +37,13 @@ BOOST_AUTO_TEST_CASE(test_quad_0deg_slicer1) unsigned int z[4] = { 0, 1, 2, 3 }; unsigned int y; - // printf("\nQuad0\n"); for (unsigned int i = 0; i < 4; i++) { y = gr::quad_0deg_slicer(x[i]); - // printf("in: %.4f+j%.4f out: %d desired: %d\n", x[i].real(), x[i].imag(), y, - // z[i]); - BOOST_CHECK_EQUAL(y, z[i]); } - // printf("\nBranchless Quad0\n"); for (unsigned int i = 0; i < 4; i++) { y = gr::branchless_quad_0deg_slicer(x[i]); - // printf("in: %.4f+j%.4f out: %d desired: %d\n", x[i].real(), x[i].imag(), y, - // z[i]); - BOOST_CHECK_EQUAL(y, z[i]); } } @@ -73,21 +58,13 @@ BOOST_AUTO_TEST_CASE(test_quad_45deg_slicer1) unsigned int z[4] = { 0, 1, 2, 3 }; unsigned int y; - // printf("\nQuad45\n"); for (unsigned int i = 0; i < 4; i++) { y = gr::quad_45deg_slicer(x[i]); - // printf("in: %.4f+j%.4f out: %d desired: %d\n", x[i].real(), x[i].imag(), y, - // z[i]); - BOOST_CHECK_EQUAL(y, z[i]); } - // printf("\nBranchless Quad45\n"); for (unsigned int i = 0; i < 4; i++) { y = gr::branchless_quad_45deg_slicer(x[i]); - // printf("in: %.4f+j%.4f out: %d desired: %d\n", x[i].real(), x[i].imag(), y, - // z[i]); - BOOST_CHECK_EQUAL(y, z[i]); } } |