diff options
author | Johnathan Corgan | 2011-03-14 19:44:49 -0700 |
---|---|---|
committer | Johnathan Corgan | 2011-03-14 19:44:49 -0700 |
commit | cd3c58cd66533fc66a8be4021c2c9074abd34b30 (patch) | |
tree | 5db768fd93bd44baf1c9e31eabf388c93ba4004d /gnuradio-core/src/lib/general | |
parent | 7df5b10ddcd64309a5c299f662a4cd62a7d175ab (diff) | |
parent | 8e5f4bc89af1682b258ecb1bc46b04d24ea3addd (diff) | |
download | gnuradio-cd3c58cd66533fc66a8be4021c2c9074abd34b30.tar.gz gnuradio-cd3c58cd66533fc66a8be4021c2c9074abd34b30.tar.bz2 gnuradio-cd3c58cd66533fc66a8be4021c2c9074abd34b30.zip |
Merge remote branch 'jblum/mergeme/misc/use_boost_math_trunc' into next
* jblum/mergeme/misc/use_boost_math_trunc:
use boost::math::trunc in gr_frequency_modulator_fc.cc
Diffstat (limited to 'gnuradio-core/src/lib/general')
-rw-r--r-- | gnuradio-core/src/lib/general/gr_frequency_modulator_fc.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gnuradio-core/src/lib/general/gr_frequency_modulator_fc.cc b/gnuradio-core/src/lib/general/gr_frequency_modulator_fc.cc index 0f6f0d719..bff22be25 100644 --- a/gnuradio-core/src/lib/general/gr_frequency_modulator_fc.cc +++ b/gnuradio-core/src/lib/general/gr_frequency_modulator_fc.cc @@ -1,6 +1,6 @@ /* -*- c++ -*- */ /* - * Copyright 2004,2010 Free Software Foundation, Inc. + * Copyright 2004,2010,2011 Free Software Foundation, Inc. * * This file is part of GNU Radio * @@ -28,6 +28,7 @@ #include <gr_io_signature.h> #include <gr_sincos.h> #include <math.h> +#include <boost/math/special_functions/trunc.hpp> gr_frequency_modulator_fc_sptr gr_make_frequency_modulator_fc (double sensitivity) @@ -62,7 +63,7 @@ gr_frequency_modulator_fc::work (int noutput_items, // to avoid loss of precision in the addition above. if (fabs (d_phase) > 16 * M_PI){ - double ii = trunc (d_phase / (2 * M_PI)); + double ii = boost::math::trunc (d_phase / (2 * M_PI)); d_phase = d_phase - (ii * 2 * M_PI); } |