From 876d4150aa3da531ddd687b48afada6e43f79146 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 2 Mar 2020 15:25:13 -0800 Subject: uhd: Apply clang-format against all .cpp and .hpp files in host/ Note: template_lvbitx.{cpp,hpp} need to be excluded from the list of files that clang-format gets applied against. --- host/utils/converter_benchmark.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'host/utils/converter_benchmark.cpp') diff --git a/host/utils/converter_benchmark.cpp b/host/utils/converter_benchmark.cpp index d00255d0c..f981455ac 100644 --- a/host/utils/converter_benchmark.cpp +++ b/host/utils/converter_benchmark.cpp @@ -47,7 +47,7 @@ void configure_conv( if (in_type == "sc16") { if (out_type == "fc32") { std::cout << "Setting scalar to 1./32767." << std::endl; - conv->set_scalar(1./32767.); + conv->set_scalar(1. / 32767.); return; } } @@ -116,7 +116,8 @@ void init_random_vector_real_int(std::vector& buf_ptr, size_t n_items) } // Fill a buffer with increasing numbers -template void init_inc_vector(std::vector& buf_ptr, size_t n_items) +template +void init_inc_vector(std::vector& buf_ptr, size_t n_items) { T* const buf = reinterpret_cast(&buf_ptr[0]); for (size_t i = 0; i < n_items; i++) { @@ -206,7 +207,8 @@ double run_benchmark(converter::sptr conv, return benchmark_timer.elapsed(); } -template std::string void_ptr_to_hexstring(const void* v_ptr, size_t index) +template +std::string void_ptr_to_hexstring(const void* v_ptr, size_t index) { const T* ptr = reinterpret_cast(v_ptr); return str(boost::format("%X") % ptr[index]); -- cgit v1.2.3