From 581672f31d57b11517e1c88948d8ad672c9975f3 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 15 Nov 2016 16:36:43 -0800 Subject: fixup! Remove all boost:: namespace prefix for uint32_t, int32_t etc. (fixed-width types) Now also removes the namespaces in the utils/ directory. --- host/utils/converter_benchmark.cpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'host/utils/converter_benchmark.cpp') diff --git a/host/utils/converter_benchmark.cpp b/host/utils/converter_benchmark.cpp index ddbf50255..c0cd28440 100644 --- a/host/utils/converter_benchmark.cpp +++ b/host/utils/converter_benchmark.cpp @@ -131,22 +131,22 @@ void init_buffers( if (buf_seed_mode == INC) { for (size_t i = 0; i < buf.size(); i++) { if (type == "sc8") { - init_inc_vector< std::complex >(buf[i], n_items); + init_inc_vector< std::complex >(buf[i], n_items); } else if (type == "sc16") { - init_inc_vector< std::complex >(buf[i], n_items); + init_inc_vector< std::complex >(buf[i], n_items); } else if (type == "sc32") { - init_inc_vector< std::complex >(buf[i], n_items); + init_inc_vector< std::complex >(buf[i], n_items); } else if (type == "fc32") { init_inc_vector< std::complex >(buf[i], n_items); } else if (type == "fc64") { init_inc_vector< std::complex >(buf[i], n_items); } else if (type == "s8") { - init_inc_vector< boost::int8_t >(buf[i], n_items); + init_inc_vector< int8_t >(buf[i], n_items); } else if (type == "s16") { - init_inc_vector< boost::int16_t >(buf[i], n_items); + init_inc_vector< int16_t >(buf[i], n_items); } else if (type == "item32") { - init_inc_vector< boost::uint32_t >(buf[i], n_items); - init_random_vector_real_int(buf[i], n_items); + init_inc_vector< uint32_t >(buf[i], n_items); + init_random_vector_real_int(buf[i], n_items); } else { throw uhd::runtime_error(str( boost::format("Cannot handle data type: %s") % type @@ -162,21 +162,21 @@ void init_buffers( /// Fill with random data for (size_t i = 0; i < buf.size(); i++) { if (type == "sc8") { - init_random_vector_complex_int(buf[i], n_items); + init_random_vector_complex_int(buf[i], n_items); } else if (type == "sc16") { - init_random_vector_complex_int(buf[i], n_items); + init_random_vector_complex_int(buf[i], n_items); } else if (type == "sc32") { - init_random_vector_complex_int(buf[i], n_items); + init_random_vector_complex_int(buf[i], n_items); } else if (type == "fc32") { init_random_vector_complex_float(buf[i], n_items); } else if (type == "fc64") { init_random_vector_complex_float(buf[i], n_items); } else if (type == "s8") { - init_random_vector_real_int(buf[i], n_items); + init_random_vector_real_int(buf[i], n_items); } else if (type == "s16") { - init_random_vector_real_int(buf[i], n_items); + init_random_vector_real_int(buf[i], n_items); } else if (type == "item32") { - init_random_vector_real_int(buf[i], n_items); + init_random_vector_real_int(buf[i], n_items); } else { throw uhd::runtime_error(str( boost::format("Cannot handle data type: %s") % type @@ -240,11 +240,11 @@ std::string item_to_string( } if (type == "sc16") { - const std::complex *ptr = reinterpret_cast *>(v_ptr); + const std::complex *ptr = reinterpret_cast *>(v_ptr); return boost::lexical_cast(ptr[index]); } else if (type == "sc8") { - const std::complex *ptr = reinterpret_cast *>(v_ptr); + const std::complex *ptr = reinterpret_cast *>(v_ptr); return boost::lexical_cast(ptr[index]); } else if (type == "fc32") { @@ -252,11 +252,11 @@ std::string item_to_string( return boost::lexical_cast(ptr[index]); } else if (type == "item32") { - const boost::uint32_t *ptr = reinterpret_cast(v_ptr); + const uint32_t *ptr = reinterpret_cast(v_ptr); return boost::lexical_cast(ptr[index]); } else if (type == "s16") { - const boost::int16_t *ptr = reinterpret_cast(v_ptr); + const int16_t *ptr = reinterpret_cast(v_ptr); return boost::lexical_cast(ptr[index]); } else { -- cgit v1.2.3