diff options
author | Tom Rondeau | 2012-04-13 18:36:53 -0400 |
---|---|---|
committer | Tom Rondeau | 2012-04-13 18:36:53 -0400 |
commit | f919f9dcbb54a08e6e26d6c229ce92fb784fa1b2 (patch) | |
tree | 7e846386b9eb1676f9a93fc4a1e55916b9accc97 /gr-atsc/src/lib/GrAtscBitTimingLoop2.cc | |
parent | 6a1e9783fec6ed827f49db27c171591d30f32933 (diff) | |
download | gnuradio-f919f9dcbb54a08e6e26d6c229ce92fb784fa1b2.tar.gz gnuradio-f919f9dcbb54a08e6e26d6c229ce92fb784fa1b2.tar.bz2 gnuradio-f919f9dcbb54a08e6e26d6c229ce92fb784fa1b2.zip |
Removed whitespace and added dtools/bin/remove-whitespace as a tool to do this in the future.
The sed script was provided by Moritz Fischer.
Diffstat (limited to 'gr-atsc/src/lib/GrAtscBitTimingLoop2.cc')
-rw-r--r-- | gr-atsc/src/lib/GrAtscBitTimingLoop2.cc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/gr-atsc/src/lib/GrAtscBitTimingLoop2.cc b/gr-atsc/src/lib/GrAtscBitTimingLoop2.cc index 3f9cf106e..c741a5bb2 100644 --- a/gr-atsc/src/lib/GrAtscBitTimingLoop2.cc +++ b/gr-atsc/src/lib/GrAtscBitTimingLoop2.cc @@ -1,19 +1,19 @@ /* -*- c++ -*- */ /* * Copyright 2002 Free Software Foundation, Inc. - * + * * This file is part of GNU Radio - * + * * GNU Radio is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3, or (at your option) * any later version. - * + * * GNU Radio is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with GNU Radio; see the file COPYING. If not, write to * the Free Software Foundation, Inc., 51 Franklin Street, @@ -45,7 +45,7 @@ GrAtscBitTimingLoop2::GrAtscBitTimingLoop2 () perror ("loop.out"); exit (1); } - + fp_ps = fopen ("ps.out", "w"); if (fp_ps == 0){ perror ("ps.out"); @@ -70,7 +70,7 @@ GrAtscBitTimingLoop2::forecast(VrSampleRange output, inputs[i].size=output.size*decimation + history-1; } return 0; -} +} inline float GrAtscBitTimingLoop2::filter_error (float e) @@ -78,7 +78,7 @@ GrAtscBitTimingLoop2::filter_error (float e) return e; // identity function } -int +int GrAtscBitTimingLoop2::work (VrSampleRange output, void *ao[], VrSampleRange inputs[], void *ai[]) { @@ -89,8 +89,8 @@ GrAtscBitTimingLoop2::work (VrSampleRange output, void *ao[], // This is required because of our slightly variable decimation factor sync (output.index); - - // We are tasked with producing output.size output samples. + + // We are tasked with producing output.size output samples. // We will consume approximately 2 * output.size input samples. @@ -117,7 +117,7 @@ GrAtscBitTimingLoop2::work (VrSampleRange output, void *ao[], for (k = 0; k < output.size; k++){ left = right; - + iType middle_raw = produce_sample (in, ii); iType middle_dc = dc.filter (middle_raw); middle = middle_raw - middle_dc; @@ -127,7 +127,7 @@ GrAtscBitTimingLoop2::work (VrSampleRange output, void *ao[], right = right_raw - right_dc; if (use_right_p) // produce our output - out[k] = right; + out[k] = right; else out[k] = middle; } |