summaryrefslogtreecommitdiff
path: root/gr-atsc/src/lib/atsci_sssr.cc
diff options
context:
space:
mode:
authorTom Rondeau2011-03-20 12:31:10 -0400
committerTom Rondeau2011-03-20 12:31:10 -0400
commit972fc99ad6984e50731ec0dd97ccfec71829139b (patch)
treedcbbe06ca254169c122b88600816e504643880dc /gr-atsc/src/lib/atsci_sssr.cc
parent3c3aff088447942053e96ae30b766b00d4cd0202 (diff)
parent4d1426b8db5be20583a6efb380d564a55a28fd09 (diff)
downloadgnuradio-972fc99ad6984e50731ec0dd97ccfec71829139b.tar.gz
gnuradio-972fc99ad6984e50731ec0dd97ccfec71829139b.tar.bz2
gnuradio-972fc99ad6984e50731ec0dd97ccfec71829139b.zip
Merge branch 'master' of gnuradio.org:gnuradio
Diffstat (limited to 'gr-atsc/src/lib/atsci_sssr.cc')
-rw-r--r--gr-atsc/src/lib/atsci_sssr.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gr-atsc/src/lib/atsci_sssr.cc b/gr-atsc/src/lib/atsci_sssr.cc
index dc5c01b0d..4ccee85de 100644
--- a/gr-atsc/src/lib/atsci_sssr.cc
+++ b/gr-atsc/src/lib/atsci_sssr.cc
@@ -28,6 +28,7 @@
#include <atsci_diag_output.h>
#include <gr_math.h>
#include <stdio.h>
+#include <boost/math/special_functions/sign.hpp>
/*
* ----------------------------------------------------------------
@@ -141,7 +142,7 @@ atsci_sssr::update (sssr::sample_t sample_in, // input
double qo = d_quad_filter.update (sample_in);
d_quad_output[d_counter] = qo;
- int bit = gr_signbit (sample_in) ^ 1; // slice on sign: + => 1, - => 0
+ int bit = boost::math::signbit (sample_in) ^ 1; // slice on sign: + => 1, - => 0
int corr_out = d_correlator.update (bit);
int weight = sipp (corr_out);
int corr_value = d_integrator.update (weight, d_counter);