aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/convert/convert_pack_sc12.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2016-11-08 08:41:46 -0800
committerMartin Braun <martin.braun@ettus.com>2016-11-08 08:41:46 -0800
commit9b852f5f243e5cf68662b7152b5fa331a83e55fb (patch)
tree159ffe0761f78dd87e2ecc97abea14494abab4ff /host/lib/convert/convert_pack_sc12.cpp
parentc66cb1bad0d881394f3519bd94f4693cceab4c64 (diff)
parent99c2730bc9db270560671f2d7d173768465ed51f (diff)
downloaduhd-9b852f5f243e5cf68662b7152b5fa331a83e55fb.tar.gz
uhd-9b852f5f243e5cf68662b7152b5fa331a83e55fb.tar.bz2
uhd-9b852f5f243e5cf68662b7152b5fa331a83e55fb.zip
Merge branch 'maint'
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);