aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/b100/clock_ctrl.cpp
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/lib/usrp/b100/clock_ctrl.cpp
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/lib/usrp/b100/clock_ctrl.cpp')
-rw-r--r--host/lib/usrp/b100/clock_ctrl.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/host/lib/usrp/b100/clock_ctrl.cpp b/host/lib/usrp/b100/clock_ctrl.cpp
index 676ebd981..12ef2052f 100644
--- a/host/lib/usrp/b100/clock_ctrl.cpp
+++ b/host/lib/usrp/b100/clock_ctrl.cpp
@@ -87,7 +87,8 @@ struct clock_settings_type
};
//! gives the greatest divisor of num between 1 and max inclusive
-template <typename T> static inline T greatest_divisor(T num, T max)
+template <typename T>
+static inline T greatest_divisor(T num, T max)
{
for (T i = max; i > 1; i--) {
if (num % i == 0) {
@@ -98,7 +99,8 @@ template <typename T> static inline T greatest_divisor(T num, T max)
}
//! gives the least divisor of num between min and num exclusive
-template <typename T> static inline T least_divisor(T num, T min)
+template <typename T>
+static inline T least_divisor(T num, T min)
{
for (T i = min; i < num; i++) {
if (num % i == 0) {