From 99c2730bc9db270560671f2d7d173768465ed51f Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 31 Oct 2016 14:30:52 -0700 Subject: 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 , but not all of our compilers support that). --- host/lib/convert/convert_pack_sc12.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'host/lib/convert/convert_pack_sc12.cpp') 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); -- cgit v1.2.3