aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/convert/convert_pack_sc12.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2016-10-31 14:30:52 -0700
committerMartin Braun <martin.braun@ettus.com>2016-11-08 08:02:22 -0800
commit99c2730bc9db270560671f2d7d173768465ed51f (patch)
treebc4df495734a075ebe2f7917cf67dec6fb7d8177 /host/lib/convert/convert_pack_sc12.cpp
parent218f4b0b63927110df9dbbaa8353c346eee2d98a (diff)
downloaduhd-99c2730bc9db270560671f2d7d173768465ed51f.tar.gz
uhd-99c2730bc9db270560671f2d7d173768465ed51f.tar.bz2
uhd-99c2730bc9db270560671f2d7d173768465ed51f.zip
Remove all boost:: namespace prefix for uint32_t, int32_t etc. (fixed-width types)
- Also removes all references to boost/cstdint.hpp and replaces it with stdint.h (The 'correct' replacement would be <cstdint>, but not all of our compilers support that).
Diffstat (limited to 'host/lib/convert/convert_pack_sc12.cpp')
-rw-r--r--host/lib/convert/convert_pack_sc12.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/host/lib/convert/convert_pack_sc12.cpp b/host/lib/convert/convert_pack_sc12.cpp
index 370e4a3e4..fd32fc95f 100644
--- a/host/lib/convert/convert_pack_sc12.cpp
+++ b/host/lib/convert/convert_pack_sc12.cpp
@@ -23,7 +23,7 @@
using namespace uhd::convert;
-typedef boost::uint32_t (*towire32_type)(boost::uint32_t);
+typedef uint32_t (*towire32_type)(uint32_t);
/* C language specification requires this to be packed
* (i.e., line0, line1, line2 will be in adjacent memory locations).
@@ -71,17 +71,17 @@ void convert_star_4_to_sc12_item32_3
const double scalar
)
{
- const item32_t i0 = boost::int32_t(type(in0.real()*scalar)) & 0xfff;
- const item32_t q0 = boost::int32_t(type(in0.imag()*scalar)) & 0xfff;
+ const item32_t i0 = int32_t(type(in0.real()*scalar)) & 0xfff;
+ const item32_t q0 = int32_t(type(in0.imag()*scalar)) & 0xfff;
- const item32_t i1 = boost::int32_t(type(in1.real()*scalar)) & 0xfff;
- const item32_t q1 = boost::int32_t(type(in1.imag()*scalar)) & 0xfff;
+ const item32_t i1 = int32_t(type(in1.real()*scalar)) & 0xfff;
+ const item32_t q1 = int32_t(type(in1.imag()*scalar)) & 0xfff;
- const item32_t i2 = boost::int32_t(type(in2.real()*scalar)) & 0xfff;
- const item32_t q2 = boost::int32_t(type(in2.imag()*scalar)) & 0xfff;
+ const item32_t i2 = int32_t(type(in2.real()*scalar)) & 0xfff;
+ const item32_t q2 = int32_t(type(in2.imag()*scalar)) & 0xfff;
- const item32_t i3 = boost::int32_t(type(in3.real()*scalar)) & 0xfff;
- const item32_t q3 = boost::int32_t(type(in3.imag()*scalar)) & 0xfff;
+ const item32_t i3 = int32_t(type(in3.real()*scalar)) & 0xfff;
+ const item32_t q3 = int32_t(type(in3.imag()*scalar)) & 0xfff;
const item32_t line0 = (i0 << 20) | (q0 << 8) | (i1 >> 4);
const item32_t line1 = (i1 << 28) | (q1 << 16) | (i2 << 4) | (q2 >> 8);