summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/lib/misc.cc
diff options
context:
space:
mode:
authorMarcus Müller <mmueller@gnuradio.org>2019-08-07 21:45:12 +0200
committerMarcus Müller <marcus@hostalia.de>2019-08-09 23:04:28 +0200
commitf7bbf2c1d8d780294f3e016aff239ca35eb6516e (patch)
treee09ab6112e02b2215b2d59ac24d3d6ea2edac745 /gnuradio-runtime/lib/misc.cc
parent78431dc6941e3acc67c858277dfe4a0ed583643c (diff)
Tree: clang-format without the include sorting
Diffstat (limited to 'gnuradio-runtime/lib/misc.cc')
-rw-r--r--gnuradio-runtime/lib/misc.cc59
1 files changed, 27 insertions, 32 deletions
diff --git a/gnuradio-runtime/lib/misc.cc b/gnuradio-runtime/lib/misc.cc
index f9ad6ca89c..22c9fbed99 100644
--- a/gnuradio-runtime/lib/misc.cc
+++ b/gnuradio-runtime/lib/misc.cc
@@ -28,43 +28,38 @@
namespace gr {
- unsigned int
- rounduppow2(unsigned int n)
- {
+unsigned int rounduppow2(unsigned int n)
+{
int i;
- for(i=0;((n-1)>>i) != 0;i++)
- ;
- return 1<<i;
- }
+ for (i = 0; ((n - 1) >> i) != 0; i++)
+ ;
+ return 1 << i;
+}
- // ----------------------------------------------------------------
+// ----------------------------------------------------------------
- void
- zero_vector(std::vector<float> &v)
- {
- for(unsigned int i=0; i < v.size(); i++)
- v[i] = 0;
- }
+void zero_vector(std::vector<float>& v)
+{
+ for (unsigned int i = 0; i < v.size(); i++)
+ v[i] = 0;
+}
- void
- zero_vector(std::vector<double> &v)
- {
- for(unsigned int i=0; i < v.size(); i++)
- v[i] = 0;
- }
+void zero_vector(std::vector<double>& v)
+{
+ for (unsigned int i = 0; i < v.size(); i++)
+ v[i] = 0;
+}
- void
- zero_vector(std::vector<int> &v)
- {
- for(unsigned int i=0; i < v.size(); i++)
- v[i] = 0;
- }
+void zero_vector(std::vector<int>& v)
+{
+ for (unsigned int i = 0; i < v.size(); i++)
+ v[i] = 0;
+}
- void
- zero_vector(std::vector<gr_complex> &v)
- {
- for(unsigned int i=0; i < v.size(); i++)
- v[i] = 0;
- }
+void zero_vector(std::vector<gr_complex>& v)
+{
+ for (unsigned int i = 0; i < v.size(); i++)
+ v[i] = 0;
+}
} /* namespace gr */