aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples/ascii_art_dft.hpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2020-03-02 15:25:13 -0800
committeratrnati <54334261+atrnati@users.noreply.github.com>2020-03-03 08:51:32 -0600
commit876d4150aa3da531ddd687b48afada6e43f79146 (patch)
treefd72a71419f4cd800d4e500cfcaded4dfc8dc367 /host/examples/ascii_art_dft.hpp
parent1393553d623bdf4ba40d5435c9719b6ce990d9ac (diff)
downloaduhd-876d4150aa3da531ddd687b48afada6e43f79146.tar.gz
uhd-876d4150aa3da531ddd687b48afada6e43f79146.tar.bz2
uhd-876d4150aa3da531ddd687b48afada6e43f79146.zip
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.
Diffstat (limited to 'host/examples/ascii_art_dft.hpp')
-rw-r--r--host/examples/ascii_art_dft.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/host/examples/ascii_art_dft.hpp b/host/examples/ascii_art_dft.hpp
index 84c008bbf..7dddad42e 100644
--- a/host/examples/ascii_art_dft.hpp
+++ b/host/examples/ascii_art_dft.hpp
@@ -65,13 +65,15 @@ namespace { /*anon*/
static const double pi = double(std::acos(-1.0));
//! Round a floating-point value to the nearest integer
-template <typename T> int iround(T val)
+template <typename T>
+int iround(T val)
{
return (val > 0) ? int(val + 0.5) : int(val - 0.5);
}
//! Pick the closest number that is nice to display
-template <typename T> T to_clean_num(const T num)
+template <typename T>
+T to_clean_num(const T num)
{
if (num == 0)
return 0;