aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2016-01-26 20:32:41 +0100
committerMartin Braun <martin.braun@ettus.com>2016-02-04 09:50:49 -0800
commit747f5e8bc00c898b62c7153deea3666c082d317a (patch)
treeb77f7cfef536f6bc72d78b8bf91931a5bff74dd2 /host
parent11ad46f74837f080c42a2c9109e223f3b8100442 (diff)
downloaduhd-747f5e8bc00c898b62c7153deea3666c082d317a.tar.gz
uhd-747f5e8bc00c898b62c7153deea3666c082d317a.tar.bz2
uhd-747f5e8bc00c898b62c7153deea3666c082d317a.zip
math: Removed now superfluous constants. Removes a lot of compiler warnings
Diffstat (limited to 'host')
-rw-r--r--host/include/uhd/utils/math.hpp13
-rw-r--r--host/lib/usrp/cores/dsp_core_utils.cpp1
2 files changed, 0 insertions, 14 deletions
diff --git a/host/include/uhd/utils/math.hpp b/host/include/uhd/utils/math.hpp
index 088983167..0b35f1f17 100644
--- a/host/include/uhd/utils/math.hpp
+++ b/host/include/uhd/utils/math.hpp
@@ -32,19 +32,6 @@ namespace uhd {
namespace math {
/*!
- * Numeric limits of certain types.
- *
- * There are many sources for getting these, including std::numeric_limits,
- * `<cstdint>`, `<climits>`, and Boost. The `<cstdint>` option is preferable as it
- * gives us fixed-width constants, but unfortunately is new as of C++11.
- * Since this isn't available on many systems, we need to use one of the
- * other options. We will use the Boost option, here, since we use Boost
- * data types for portability across UHD.
- */
- static const boost::int32_t BOOST_INT32_MAX = boost::numeric::bounds<boost::int32_t>::highest();
- static const boost::int32_t BOOST_INT32_MIN = boost::numeric::bounds<boost::int32_t>::lowest();
-
- /*!
* Define epsilon values for floating point comparisons.
*
* There are a lot of different sources for epsilon values that we could use
diff --git a/host/lib/usrp/cores/dsp_core_utils.cpp b/host/lib/usrp/cores/dsp_core_utils.cpp
index f6f56a16b..aea809ae8 100644
--- a/host/lib/usrp/cores/dsp_core_utils.cpp
+++ b/host/lib/usrp/cores/dsp_core_utils.cpp
@@ -61,7 +61,6 @@ void get_freq_and_freq_word(
freq_word = int32_t(boost::math::round((freq / tick_rate) * scale_factor));
}
- //program the frequency word into the device DSP
actual_freq = (double(freq_word) / scale_factor) * tick_rate;
}