summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rondeau2012-04-13 18:36:53 -0400
committerTom Rondeau2012-04-13 18:36:53 -0400
commitf919f9dcbb54a08e6e26d6c229ce92fb784fa1b2 (patch)
tree7e846386b9eb1676f9a93fc4a1e55916b9accc97
parent6a1e9783fec6ed827f49db27c171591d30f32933 (diff)
downloadgnuradio-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.
-rw-r--r--CMakeLists.txt8
-rw-r--r--README14
-rw-r--r--README-win32-mingw-short.txt2
-rw-r--r--README.hacking22
-rw-r--r--cmake/Modules/FindJack.cmake2
-rw-r--r--cmake/Modules/FindOSS.cmake2
-rw-r--r--cmake/Modules/FindPortaudio.cmake14
-rw-r--r--cmake/Modules/FindQwt.cmake2
-rw-r--r--cmake/Modules/GrBoost.cmake8
-rw-r--r--cmake/Modules/GrComponent.cmake8
-rw-r--r--cmake/Modules/GrMiscUtils.cmake8
-rw-r--r--cmake/Modules/GrPackage.cmake8
-rw-r--r--cmake/Modules/GrPlatform.cmake8
-rw-r--r--cmake/Modules/GrSwig.cmake12
-rw-r--r--cmake/Modules/GrTest.cmake8
-rw-r--r--cmake/Modules/GrVersion.cmake8
-rw-r--r--cmake/msvc/inttypes.h18
-rw-r--r--cmake/msvc/stdint.h18
-rw-r--r--cmake/msvc/sys/time.h16
-rw-r--r--docs/CMakeLists.txt8
-rw-r--r--docs/ChangeLog10
-rw-r--r--docs/doxygen/CMakeLists.txt8
-rw-r--r--docs/doxygen/Doxyfile.in1222
-rw-r--r--docs/doxygen/doxyxml/__init__.py14
-rw-r--r--docs/doxygen/doxyxml/base.py18
-rw-r--r--docs/doxygen/doxyxml/doxyindex.py42
-rw-r--r--docs/doxygen/doxyxml/example/aadvark.cc8
-rw-r--r--docs/doxygen/doxyxml/example/aadvark.h8
-rw-r--r--docs/doxygen/doxyxml/example/xml/combine.xslt2
-rw-r--r--docs/doxygen/doxyxml/example/xml/compound.xsd34
-rw-r--r--docs/doxygen/doxyxml/example/xml/index.xsd2
-rw-r--r--docs/doxygen/doxyxml/text.py10
-rw-r--r--docs/doxygen/other/build_guide.dox2
-rwxr-xr-xdocs/doxygen/other/doxypy.py142
-rw-r--r--docs/doxygen/other/group_defs.dox6
-rw-r--r--docs/doxygen/other/tv-channel-frequencies6
-rw-r--r--docs/doxygen/other/vector_docstub.h2
-rw-r--r--docs/doxygen/other/volk_guide.dox2
-rw-r--r--docs/doxygen/swig_doc.py20
-rw-r--r--docs/exploring-gnuradio/Makefile10
-rwxr-xr-xdocs/exploring-gnuradio/dial_tone.py10
-rw-r--r--docs/exploring-gnuradio/exploring-gnuradio.xml4
-rwxr-xr-xdocs/exploring-gnuradio/fm_demod.py16
-rw-r--r--docs/exploring-gnuradio/fm_demod_example.xml14
-rw-r--r--dtools/README10
-rwxr-xr-xdtools/bin/check-imports2
-rwxr-xr-xdtools/bin/install-tbb12
-rwxr-xr-xdtools/bin/remove-whitespace3
-rwxr-xr-xdtools/bin/update_fsf_address16
-rw-r--r--gnuradio-core/CMakeLists.txt8
-rw-r--r--gnuradio-core/src/examples/CMakeLists.txt8
-rw-r--r--gnuradio-core/src/examples/mp-sched/CMakeLists.txt8
-rwxr-xr-xgnuradio-core/src/examples/mp-sched/plot_flops.py12
-rwxr-xr-xgnuradio-core/src/examples/mp-sched/run_synthetic.py16
-rwxr-xr-xgnuradio-core/src/examples/mp-sched/synthetic.py16
-rwxr-xr-xgnuradio-core/src/examples/mp-sched/wfm_rcv_pll_to_wav.py20
-rw-r--r--gnuradio-core/src/examples/network/CMakeLists.txt8
-rwxr-xr-xgnuradio-core/src/examples/network/audio_sink.py18
-rwxr-xr-xgnuradio-core/src/examples/network/audio_source.py16
-rwxr-xr-xgnuradio-core/src/examples/network/dial_tone_sink.py18
-rwxr-xr-xgnuradio-core/src/examples/network/dial_tone_source.py14
-rwxr-xr-xgnuradio-core/src/examples/network/vector_sink.py18
-rwxr-xr-xgnuradio-core/src/examples/network/vector_source.py16
-rw-r--r--gnuradio-core/src/examples/pfb/CMakeLists.txt8
-rwxr-xr-xgnuradio-core/src/examples/pfb/channelize.py40
-rwxr-xr-xgnuradio-core/src/examples/pfb/chirp_channelize.py42
-rwxr-xr-xgnuradio-core/src/examples/pfb/decimate.py38
-rwxr-xr-xgnuradio-core/src/examples/pfb/fmtest.py36
-rwxr-xr-xgnuradio-core/src/examples/pfb/interpolate.py42
-rwxr-xr-xgnuradio-core/src/examples/pfb/reconstruction.py14
-rwxr-xr-xgnuradio-core/src/examples/pfb/resampler.py14
-rwxr-xr-xgnuradio-core/src/examples/pfb/synth_filter.py18
-rwxr-xr-xgnuradio-core/src/examples/pfb/synth_to_chan.py20
-rw-r--r--gnuradio-core/src/examples/tags/CMakeLists.txt8
-rwxr-xr-xgnuradio-core/src/examples/tags/test_file_tags.py12
-rwxr-xr-xgnuradio-core/src/examples/tags/uhd_burst_detector.py22
-rw-r--r--gnuradio-core/src/examples/volk_benchmark/CMakeLists.txt8
-rw-r--r--gnuradio-core/src/examples/volk_benchmark/README2
-rwxr-xr-xgnuradio-core/src/examples/volk_benchmark/volk_math.py4
-rwxr-xr-xgnuradio-core/src/examples/volk_benchmark/volk_plot.py8
-rw-r--r--gnuradio-core/src/examples/volk_benchmark/volk_test_funcs.py6
-rwxr-xr-xgnuradio-core/src/examples/volk_benchmark/volk_types.py4
-rw-r--r--gnuradio-core/src/gen_interpolator_taps/Makefile.am.obsolete12
-rw-r--r--gnuradio-core/src/gen_interpolator_taps/README12
-rw-r--r--gnuradio-core/src/gen_interpolator_taps/gen_interpolator_taps.c28
-rw-r--r--gnuradio-core/src/gen_interpolator_taps/objective_fct.c12
-rw-r--r--gnuradio-core/src/gen_interpolator_taps/praxis.txt22
-rw-r--r--gnuradio-core/src/gen_interpolator_taps/simpson.c2
-rw-r--r--gnuradio-core/src/lib/CMakeLists.txt8
-rw-r--r--gnuradio-core/src/lib/ConfigChecks.cmake8
-rw-r--r--gnuradio-core/src/lib/filter/3dnow_float_dotprod_really_simple.S32
-rw-r--r--gnuradio-core/src/lib/filter/3dnow_float_dotprod_simple.S38
-rw-r--r--gnuradio-core/src/lib/filter/README10
-rw-r--r--gnuradio-core/src/lib/filter/assembly.h8
-rw-r--r--gnuradio-core/src/lib/filter/ccomplex_dotprod_3dnow.S40
-rw-r--r--gnuradio-core/src/lib/filter/ccomplex_dotprod_3dnow64.S40
-rw-r--r--gnuradio-core/src/lib/filter/ccomplex_dotprod_3dnowext.S44
-rw-r--r--gnuradio-core/src/lib/filter/ccomplex_dotprod_3dnowext64.S44
-rw-r--r--gnuradio-core/src/lib/filter/ccomplex_dotprod_generic.cc8
-rw-r--r--gnuradio-core/src/lib/filter/ccomplex_dotprod_generic.h8
-rw-r--r--gnuradio-core/src/lib/filter/ccomplex_dotprod_sse.S34
-rw-r--r--gnuradio-core/src/lib/filter/ccomplex_dotprod_sse64.S34
-rw-r--r--gnuradio-core/src/lib/filter/ccomplex_dotprod_x86.h8
-rw-r--r--gnuradio-core/src/lib/filter/complex_dotprod_3dnow.S44
-rw-r--r--gnuradio-core/src/lib/filter/complex_dotprod_3dnow64.S44
-rw-r--r--gnuradio-core/src/lib/filter/complex_dotprod_3dnowext.S44
-rw-r--r--gnuradio-core/src/lib/filter/complex_dotprod_3dnowext64.S44
-rw-r--r--gnuradio-core/src/lib/filter/complex_dotprod_generic.cc8
-rw-r--r--gnuradio-core/src/lib/filter/complex_dotprod_generic.h8
-rw-r--r--gnuradio-core/src/lib/filter/complex_dotprod_sse.S42
-rw-r--r--gnuradio-core/src/lib/filter/complex_dotprod_sse64.S42
-rw-r--r--gnuradio-core/src/lib/filter/complex_dotprod_x86.h8
-rw-r--r--gnuradio-core/src/lib/filter/dotprod_ccf_armv7_a.c8
-rw-r--r--gnuradio-core/src/lib/filter/dotprod_ccf_armv7_a.h8
-rw-r--r--gnuradio-core/src/lib/filter/dotprod_fff_altivec.c12
-rw-r--r--gnuradio-core/src/lib/filter/dotprod_fff_altivec.h10
-rw-r--r--gnuradio-core/src/lib/filter/dotprod_fff_armv7_a.c8
-rw-r--r--gnuradio-core/src/lib/filter/dotprod_fff_armv7_a.h10
-rw-r--r--gnuradio-core/src/lib/filter/fcomplex_dotprod_3dnow.S44
-rw-r--r--gnuradio-core/src/lib/filter/fcomplex_dotprod_3dnow64.S44
-rw-r--r--gnuradio-core/src/lib/filter/fcomplex_dotprod_sse.S44
-rw-r--r--gnuradio-core/src/lib/filter/fcomplex_dotprod_sse64.S44
-rw-r--r--gnuradio-core/src/lib/filter/fcomplex_dotprod_x86.h8
-rw-r--r--gnuradio-core/src/lib/filter/filter.i8
-rw-r--r--gnuradio-core/src/lib/filter/float_dotprod_3dnow.S52
-rw-r--r--gnuradio-core/src/lib/filter/float_dotprod_3dnow64.S52
-rw-r--r--gnuradio-core/src/lib/filter/float_dotprod_generic.c10
-rw-r--r--gnuradio-core/src/lib/filter/float_dotprod_generic.h10
-rw-r--r--gnuradio-core/src/lib/filter/float_dotprod_sse.S48
-rw-r--r--gnuradio-core/src/lib/filter/float_dotprod_sse64.S46
-rw-r--r--gnuradio-core/src/lib/filter/float_dotprod_x86.h12
-rw-r--r--gnuradio-core/src/lib/filter/gcc_x86_cpuid.h6
-rwxr-xr-xgnuradio-core/src/lib/filter/generate_all.py10
-rwxr-xr-xgnuradio-core/src/lib/filter/generate_gr_fir_XXX.py12
-rwxr-xr-xgnuradio-core/src/lib/filter/generate_gr_fir_filter_XXX.py12
-rwxr-xr-xgnuradio-core/src/lib/filter/generate_gr_fir_sysconfig.py18
-rwxr-xr-xgnuradio-core/src/lib/filter/generate_gr_fir_sysconfig_generic.py22
-rwxr-xr-xgnuradio-core/src/lib/filter/generate_gr_fir_util.py30
-rwxr-xr-xgnuradio-core/src/lib/filter/generate_gr_freq_xlating_fir_filter_XXX.py10
-rw-r--r--gnuradio-core/src/lib/filter/generate_gr_interp_fir_filter_XXX.py12
-rw-r--r--gnuradio-core/src/lib/filter/generate_gr_rational_resampler_base_XXX.py12
-rwxr-xr-xgnuradio-core/src/lib/filter/generate_gri_fir_filter_with_buffer_XXX.py12
-rw-r--r--gnuradio-core/src/lib/filter/generate_utils.py10
-rw-r--r--gnuradio-core/src/lib/filter/gr_adaptive_fir_ccc.cc12
-rw-r--r--gnuradio-core/src/lib/filter/gr_adaptive_fir_ccc.h10
-rw-r--r--gnuradio-core/src/lib/filter/gr_adaptive_fir_ccc.i8
-rw-r--r--gnuradio-core/src/lib/filter/gr_adaptive_fir_ccf.cc12
-rw-r--r--gnuradio-core/src/lib/filter/gr_adaptive_fir_ccf.h10
-rw-r--r--gnuradio-core/src/lib/filter/gr_adaptive_fir_ccf.i8
-rw-r--r--gnuradio-core/src/lib/filter/gr_altivec.c10
-rw-r--r--gnuradio-core/src/lib/filter/gr_altivec.h8
-rw-r--r--gnuradio-core/src/lib/filter/gr_cpu.h8
-rw-r--r--gnuradio-core/src/lib/filter/gr_cpu_armv7_a.cc8
-rw-r--r--gnuradio-core/src/lib/filter/gr_cpu_powerpc.cc8
-rw-r--r--gnuradio-core/src/lib/filter/gr_cpu_x86.cc8
-rw-r--r--gnuradio-core/src/lib/filter/gr_dc_blocker_cc.cc14
-rw-r--r--gnuradio-core/src/lib/filter/gr_dc_blocker_cc.h12
-rw-r--r--gnuradio-core/src/lib/filter/gr_dc_blocker_cc.i8
-rw-r--r--gnuradio-core/src/lib/filter/gr_dc_blocker_ff.cc14
-rw-r--r--gnuradio-core/src/lib/filter/gr_dc_blocker_ff.h12
-rw-r--r--gnuradio-core/src/lib/filter/gr_dc_blocker_ff.i8
-rw-r--r--gnuradio-core/src/lib/filter/gr_fft_filter_ccc.cc8
-rw-r--r--gnuradio-core/src/lib/filter/gr_fft_filter_ccc.h12
-rw-r--r--gnuradio-core/src/lib/filter/gr_fft_filter_ccc.i10
-rw-r--r--gnuradio-core/src/lib/filter/gr_fft_filter_fff.cc12
-rw-r--r--gnuradio-core/src/lib/filter/gr_fft_filter_fff.h8
-rw-r--r--gnuradio-core/src/lib/filter/gr_fft_filter_fff.i10
-rw-r--r--gnuradio-core/src/lib/filter/gr_filter_delay_fc.cc14
-rw-r--r--gnuradio-core/src/lib/filter/gr_filter_delay_fc.h10
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_XXX.cc.t8
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_XXX.h.t12
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_XXX_generic.cc.t14
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_XXX_generic.h.t12
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_ccc_simd.cc22
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_ccc_simd.h8
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_ccc_x86.cc18
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_ccc_x86.h8
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_ccf_armv7_a.cc8
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_ccf_armv7_a.h8
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_ccf_simd.cc24
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_ccf_simd.h8
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_ccf_x86.cc14
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_ccf_x86.h8
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_fcc_simd.cc22
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_fcc_simd.h8
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_fcc_x86.cc14
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_fcc_x86.h8
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_fff_altivec.cc12
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_fff_altivec.h8
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_fff_armv7_a.cc12
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_fff_armv7_a.h8
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_fff_simd.cc24
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_fff_simd.h8
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_fff_x86.cc14
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_fff_x86.h8
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_filter_XXX.cc.t8
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_filter_XXX.h.t8
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_filter_XXX.i.t8
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_fsf_simd.cc24
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_fsf_simd.h8
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_fsf_x86.cc14
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_fsf_x86.h8
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_scc_simd.cc22
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_scc_simd.h8
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_scc_x86.cc18
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_scc_x86.h8
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_sysconfig_armv7_a.cc28
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_sysconfig_armv7_a.h8
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_sysconfig_powerpc.cc28
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_sysconfig_powerpc.h8
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_sysconfig_x86.cc40
-rw-r--r--gnuradio-core/src/lib/filter/gr_fir_sysconfig_x86.h8
-rw-r--r--gnuradio-core/src/lib/filter/gr_fractional_interpolator_cc.i8
-rw-r--r--gnuradio-core/src/lib/filter/gr_fractional_interpolator_ff.i8
-rw-r--r--gnuradio-core/src/lib/filter/gr_freq_xlating_fir_filter_XXX.cc.t14
-rw-r--r--gnuradio-core/src/lib/filter/gr_freq_xlating_fir_filter_XXX.h.t16
-rw-r--r--gnuradio-core/src/lib/filter/gr_freq_xlating_fir_filter_XXX.i.t10
-rw-r--r--gnuradio-core/src/lib/filter/gr_goertzel_fc.cc12
-rw-r--r--gnuradio-core/src/lib/filter/gr_goertzel_fc.h8
-rw-r--r--gnuradio-core/src/lib/filter/gr_hilbert_fc.cc10
-rw-r--r--gnuradio-core/src/lib/filter/gr_hilbert_fc.h8
-rw-r--r--gnuradio-core/src/lib/filter/gr_hilbert_fc.i8
-rw-r--r--gnuradio-core/src/lib/filter/gr_iir_filter_ffd.cc12
-rw-r--r--gnuradio-core/src/lib/filter/gr_iir_filter_ffd.h14
-rw-r--r--gnuradio-core/src/lib/filter/gr_iir_filter_ffd.i10
-rw-r--r--gnuradio-core/src/lib/filter/gr_interp_fir_filter_XXX.cc.t16
-rw-r--r--gnuradio-core/src/lib/filter/gr_interp_fir_filter_XXX.h.t8
-rw-r--r--gnuradio-core/src/lib/filter/gr_interp_fir_filter_XXX.i.t8
-rw-r--r--gnuradio-core/src/lib/filter/gr_pfb_arb_resampler_ccf.cc20
-rw-r--r--gnuradio-core/src/lib/filter/gr_pfb_arb_resampler_ccf.h26
-rw-r--r--gnuradio-core/src/lib/filter/gr_pfb_arb_resampler_ccf.i8
-rw-r--r--gnuradio-core/src/lib/filter/gr_pfb_arb_resampler_fff.cc20
-rw-r--r--gnuradio-core/src/lib/filter/gr_pfb_arb_resampler_fff.h26
-rw-r--r--gnuradio-core/src/lib/filter/gr_pfb_arb_resampler_fff.i8
-rw-r--r--gnuradio-core/src/lib/filter/gr_pfb_channelizer_ccf.cc24
-rw-r--r--gnuradio-core/src/lib/filter/gr_pfb_channelizer_ccf.h42
-rw-r--r--gnuradio-core/src/lib/filter/gr_pfb_channelizer_ccf.i8
-rw-r--r--gnuradio-core/src/lib/filter/gr_pfb_clock_sync_ccf.cc46
-rw-r--r--gnuradio-core/src/lib/filter/gr_pfb_clock_sync_ccf.h26
-rw-r--r--gnuradio-core/src/lib/filter/gr_pfb_clock_sync_ccf.i8
-rw-r--r--gnuradio-core/src/lib/filter/gr_pfb_clock_sync_fff.cc18
-rw-r--r--gnuradio-core/src/lib/filter/gr_pfb_clock_sync_fff.h22
-rw-r--r--gnuradio-core/src/lib/filter/gr_pfb_clock_sync_fff.i8
-rw-r--r--gnuradio-core/src/lib/filter/gr_pfb_decimator_ccf.cc22
-rw-r--r--gnuradio-core/src/lib/filter/gr_pfb_decimator_ccf.h38
-rw-r--r--gnuradio-core/src/lib/filter/gr_pfb_decimator_ccf.i8
-rw-r--r--gnuradio-core/src/lib/filter/gr_pfb_interpolator_ccf.cc18
-rw-r--r--gnuradio-core/src/lib/filter/gr_pfb_interpolator_ccf.h22
-rw-r--r--gnuradio-core/src/lib/filter/gr_pfb_interpolator_ccf.i8
-rw-r--r--gnuradio-core/src/lib/filter/gr_pfb_synthesizer_ccf.cc34
-rw-r--r--gnuradio-core/src/lib/filter/gr_pfb_synthesizer_ccf.h26
-rw-r--r--gnuradio-core/src/lib/filter/gr_pfb_synthesizer_ccf.i12
-rw-r--r--gnuradio-core/src/lib/filter/gr_rational_resampler_base_XXX.cc.t18
-rw-r--r--gnuradio-core/src/lib/filter/gr_rational_resampler_base_XXX.h.t12
-rw-r--r--gnuradio-core/src/lib/filter/gr_rational_resampler_base_XXX.i.t8
-rw-r--r--gnuradio-core/src/lib/filter/gr_rotator.h8
-rw-r--r--gnuradio-core/src/lib/filter/gr_sincos.c8
-rw-r--r--gnuradio-core/src/lib/filter/gr_sincos.h10
-rw-r--r--gnuradio-core/src/lib/filter/gr_single_pole_iir.h32
-rw-r--r--gnuradio-core/src/lib/filter/gr_single_pole_iir_filter_cc.cc10
-rw-r--r--gnuradio-core/src/lib/filter/gr_single_pole_iir_filter_cc.h12
-rw-r--r--gnuradio-core/src/lib/filter/gr_single_pole_iir_filter_cc.i10
-rw-r--r--gnuradio-core/src/lib/filter/gr_single_pole_iir_filter_ff.cc10
-rw-r--r--gnuradio-core/src/lib/filter/gr_single_pole_iir_filter_ff.h12
-rw-r--r--gnuradio-core/src/lib/filter/gr_single_pole_iir_filter_ff.i10
-rw-r--r--gnuradio-core/src/lib/filter/gr_vec_types.h14
-rw-r--r--gnuradio-core/src/lib/filter/gri_fft_filter_ccc_generic.cc22
-rw-r--r--gnuradio-core/src/lib/filter/gri_fft_filter_ccc_generic.h12
-rw-r--r--gnuradio-core/src/lib/filter/gri_fft_filter_ccc_sse.cc22
-rw-r--r--gnuradio-core/src/lib/filter/gri_fft_filter_ccc_sse.h12
-rw-r--r--gnuradio-core/src/lib/filter/gri_fft_filter_fff_generic.cc18
-rw-r--r--gnuradio-core/src/lib/filter/gri_fft_filter_fff_generic.h14
-rw-r--r--gnuradio-core/src/lib/filter/gri_fft_filter_fff_sse.cc20
-rw-r--r--gnuradio-core/src/lib/filter/gri_fft_filter_fff_sse.h12
-rw-r--r--gnuradio-core/src/lib/filter/gri_fir_filter_with_buffer_XXX.cc.t12
-rw-r--r--gnuradio-core/src/lib/filter/gri_fir_filter_with_buffer_XXX.h.t16
-rw-r--r--gnuradio-core/src/lib/filter/gri_goertzel.cc8
-rw-r--r--gnuradio-core/src/lib/filter/gri_goertzel.h10
-rw-r--r--gnuradio-core/src/lib/filter/gri_iir.h26
-rw-r--r--gnuradio-core/src/lib/filter/gri_mmse_fir_interpolator.cc10
-rw-r--r--gnuradio-core/src/lib/filter/gri_mmse_fir_interpolator.h10
-rw-r--r--gnuradio-core/src/lib/filter/gri_mmse_fir_interpolator_cc.cc10
-rw-r--r--gnuradio-core/src/lib/filter/gri_mmse_fir_interpolator_cc.h10
-rw-r--r--gnuradio-core/src/lib/filter/qa_ccomplex_dotprod_x86.cc52
-rw-r--r--gnuradio-core/src/lib/filter/qa_ccomplex_dotprod_x86.h8
-rw-r--r--gnuradio-core/src/lib/filter/qa_complex_dotprod_x86.cc50
-rw-r--r--gnuradio-core/src/lib/filter/qa_complex_dotprod_x86.h8
-rw-r--r--gnuradio-core/src/lib/filter/qa_dotprod.h8
-rw-r--r--gnuradio-core/src/lib/filter/qa_dotprod_armv7_a.cc8
-rw-r--r--gnuradio-core/src/lib/filter/qa_dotprod_generic.cc8
-rw-r--r--gnuradio-core/src/lib/filter/qa_dotprod_powerpc.cc8
-rw-r--r--gnuradio-core/src/lib/filter/qa_dotprod_x86.cc8
-rw-r--r--gnuradio-core/src/lib/filter/qa_filter.cc8
-rw-r--r--gnuradio-core/src/lib/filter/qa_filter.h8
-rw-r--r--gnuradio-core/src/lib/filter/qa_float_dotprod_x86.cc52
-rw-r--r--gnuradio-core/src/lib/filter/qa_float_dotprod_x86.h10
-rw-r--r--gnuradio-core/src/lib/filter/qa_gr_fir_ccc.cc14
-rw-r--r--gnuradio-core/src/lib/filter/qa_gr_fir_ccc.h8
-rw-r--r--gnuradio-core/src/lib/filter/qa_gr_fir_ccf.cc14
-rw-r--r--gnuradio-core/src/lib/filter/qa_gr_fir_ccf.h8
-rw-r--r--gnuradio-core/src/lib/filter/qa_gr_fir_fcc.cc14
-rw-r--r--gnuradio-core/src/lib/filter/qa_gr_fir_fcc.h8
-rw-r--r--gnuradio-core/src/lib/filter/qa_gr_fir_fff.cc18
-rw-r--r--gnuradio-core/src/lib/filter/qa_gr_fir_fff.h8
-rw-r--r--gnuradio-core/src/lib/filter/qa_gr_fir_scc.cc14
-rw-r--r--gnuradio-core/src/lib/filter/qa_gr_fir_scc.h8
-rw-r--r--gnuradio-core/src/lib/filter/qa_gr_rotator.cc10
-rw-r--r--gnuradio-core/src/lib/filter/qa_gr_rotator.h8
-rw-r--r--gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_ccc.cc12
-rw-r--r--gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_ccc.h8
-rw-r--r--gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_ccf.cc12
-rw-r--r--gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_ccf.h8
-rw-r--r--gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_fcc.cc12
-rw-r--r--gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_fcc.h8
-rw-r--r--gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_fff.cc12
-rw-r--r--gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_fff.h8
-rw-r--r--gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_fsf.cc10
-rw-r--r--gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_fsf.h10
-rw-r--r--gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_scc.cc10
-rw-r--r--gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_scc.h8
-rw-r--r--gnuradio-core/src/lib/filter/qa_gri_mmse_fir_interpolator.cc8
-rw-r--r--gnuradio-core/src/lib/filter/qa_gri_mmse_fir_interpolator.h8
-rw-r--r--gnuradio-core/src/lib/filter/qa_gri_mmse_fir_interpolator_cc.cc8
-rw-r--r--gnuradio-core/src/lib/filter/qa_gri_mmse_fir_interpolator_cc.h8
-rw-r--r--gnuradio-core/src/lib/filter/short_dotprod_generic.c8
-rw-r--r--gnuradio-core/src/lib/filter/short_dotprod_generic.h8
-rw-r--r--gnuradio-core/src/lib/filter/short_dotprod_mmx.S38
-rw-r--r--gnuradio-core/src/lib/filter/short_dotprod_mmx64.S38
-rw-r--r--gnuradio-core/src/lib/filter/short_dotprod_x86.h8
-rw-r--r--gnuradio-core/src/lib/filter/sse_debug.c10
-rw-r--r--gnuradio-core/src/lib/filter/sse_debug.h10
-rw-r--r--gnuradio-core/src/lib/filter/sysconfig_armv7_a.cc8
-rw-r--r--gnuradio-core/src/lib/filter/sysconfig_generic.cc8
-rw-r--r--gnuradio-core/src/lib/filter/sysconfig_powerpc.cc8
-rw-r--r--gnuradio-core/src/lib/filter/sysconfig_x86.cc8
-rw-r--r--gnuradio-core/src/lib/general/README4
-rw-r--r--gnuradio-core/src/lib/general/atsc_rrc1x.dat8
-rw-r--r--gnuradio-core/src/lib/general/atsc_rrc2x.dat4
-rw-r--r--gnuradio-core/src/lib/general/complex_vec_test.cc6
-rwxr-xr-xgnuradio-core/src/lib/general/gen_sine_table.py12
-rw-r--r--gnuradio-core/src/lib/general/general.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_add_ff.cc10
-rw-r--r--gnuradio-core/src/lib/general/gr_add_ff.h10
-rw-r--r--gnuradio-core/src/lib/general/gr_add_ff.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_additive_scrambler_bb.cc10
-rw-r--r--gnuradio-core/src/lib/general/gr_additive_scrambler_bb.h14
-rw-r--r--gnuradio-core/src/lib/general/gr_additive_scrambler_bb.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_agc2_cc.cc14
-rw-r--r--gnuradio-core/src/lib/general/gr_agc2_cc.h16
-rw-r--r--gnuradio-core/src/lib/general/gr_agc2_cc.i12
-rw-r--r--gnuradio-core/src/lib/general/gr_agc2_ff.cc14
-rw-r--r--gnuradio-core/src/lib/general/gr_agc2_ff.h10
-rw-r--r--gnuradio-core/src/lib/general/gr_agc2_ff.i12
-rw-r--r--gnuradio-core/src/lib/general/gr_agc_cc.cc14
-rw-r--r--gnuradio-core/src/lib/general/gr_agc_cc.h14
-rw-r--r--gnuradio-core/src/lib/general/gr_agc_cc.i12
-rw-r--r--gnuradio-core/src/lib/general/gr_agc_ff.cc8
-rw-r--r--gnuradio-core/src/lib/general/gr_agc_ff.h12
-rw-r--r--gnuradio-core/src/lib/general/gr_agc_ff.i10
-rw-r--r--gnuradio-core/src/lib/general/gr_align_on_samplenumbers_ss.cc40
-rw-r--r--gnuradio-core/src/lib/general/gr_align_on_samplenumbers_ss.h12
-rw-r--r--gnuradio-core/src/lib/general/gr_align_on_samplenumbers_ss.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_annotator_1to1.cc8
-rw-r--r--gnuradio-core/src/lib/general/gr_annotator_1to1.h2
-rw-r--r--gnuradio-core/src/lib/general/gr_annotator_1to1.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_annotator_alltoall.cc10
-rw-r--r--gnuradio-core/src/lib/general/gr_annotator_alltoall.h4
-rw-r--r--gnuradio-core/src/lib/general/gr_annotator_alltoall.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_bin_statistics_f.cc10
-rw-r--r--gnuradio-core/src/lib/general/gr_bin_statistics_f.h12
-rw-r--r--gnuradio-core/src/lib/general/gr_bin_statistics_f.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_burst_tagger.cc12
-rw-r--r--gnuradio-core/src/lib/general/gr_burst_tagger.h14
-rw-r--r--gnuradio-core/src/lib/general/gr_burst_tagger.i10
-rw-r--r--gnuradio-core/src/lib/general/gr_bytes_to_syms.cc12
-rw-r--r--gnuradio-core/src/lib/general/gr_bytes_to_syms.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_bytes_to_syms.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_char_to_float.cc12
-rw-r--r--gnuradio-core/src/lib/general/gr_char_to_float.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_char_to_float.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_char_to_short.cc8
-rw-r--r--gnuradio-core/src/lib/general/gr_char_to_short.h10
-rw-r--r--gnuradio-core/src/lib/general/gr_char_to_short.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_check_counting_s.cc16
-rw-r--r--gnuradio-core/src/lib/general/gr_check_counting_s.h16
-rw-r--r--gnuradio-core/src/lib/general/gr_check_counting_s.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_check_lfsr_32k_s.cc18
-rw-r--r--gnuradio-core/src/lib/general/gr_check_lfsr_32k_s.h14
-rw-r--r--gnuradio-core/src/lib/general/gr_check_lfsr_32k_s.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_circular_file.cc16
-rw-r--r--gnuradio-core/src/lib/general/gr_circular_file.h10
-rw-r--r--gnuradio-core/src/lib/general/gr_complex_to_interleaved_short.cc10
-rw-r--r--gnuradio-core/src/lib/general/gr_complex_to_interleaved_short.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_complex_to_interleaved_short.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_complex_to_xxx.cc10
-rw-r--r--gnuradio-core/src/lib/general/gr_complex_to_xxx.h10
-rw-r--r--gnuradio-core/src/lib/general/gr_complex_to_xxx.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_conjugate_cc.cc10
-rw-r--r--gnuradio-core/src/lib/general/gr_conjugate_cc.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_conjugate_cc.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_constants.cc.in8
-rw-r--r--gnuradio-core/src/lib/general/gr_constants.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_copy.cc8
-rw-r--r--gnuradio-core/src/lib/general/gr_copy.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_copy.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_correlate_access_code_tag_bb.cc12
-rw-r--r--gnuradio-core/src/lib/general/gr_correlate_access_code_tag_bb.h14
-rw-r--r--gnuradio-core/src/lib/general/gr_correlate_access_code_tag_bb.i14
-rw-r--r--gnuradio-core/src/lib/general/gr_count_bits.cc16
-rw-r--r--gnuradio-core/src/lib/general/gr_count_bits.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_cpfsk_bc.cc14
-rw-r--r--gnuradio-core/src/lib/general/gr_cpfsk_bc.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_cpfsk_bc.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_cpm.cc6
-rw-r--r--gnuradio-core/src/lib/general/gr_cpm.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_ctcss_squelch_ff.cc18
-rw-r--r--gnuradio-core/src/lib/general/gr_ctcss_squelch_ff.h14
-rw-r--r--gnuradio-core/src/lib/general/gr_ctcss_squelch_ff.i10
-rw-r--r--gnuradio-core/src/lib/general/gr_decode_ccsds_27_fb.cc18
-rw-r--r--gnuradio-core/src/lib/general/gr_decode_ccsds_27_fb.h16
-rw-r--r--gnuradio-core/src/lib/general/gr_decode_ccsds_27_fb.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_deinterleave.cc8
-rw-r--r--gnuradio-core/src/lib/general/gr_deinterleave.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_deinterleave.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_delay.cc12
-rw-r--r--gnuradio-core/src/lib/general/gr_delay.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_delay.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_descrambler_bb.cc10
-rw-r--r--gnuradio-core/src/lib/general/gr_descrambler_bb.h10
-rw-r--r--gnuradio-core/src/lib/general/gr_descrambler_bb.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_diff_decoder_bb.cc8
-rw-r--r--gnuradio-core/src/lib/general/gr_diff_decoder_bb.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_diff_decoder_bb.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_diff_encoder_bb.cc8
-rw-r--r--gnuradio-core/src/lib/general/gr_diff_encoder_bb.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_diff_encoder_bb.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_diff_phasor_cc.cc12
-rw-r--r--gnuradio-core/src/lib/general/gr_diff_phasor_cc.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_diff_phasor_cc.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_dpll_bb.cc8
-rw-r--r--gnuradio-core/src/lib/general/gr_dpll_bb.h10
-rw-r--r--gnuradio-core/src/lib/general/gr_dpll_bb.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_encode_ccsds_27_bb.cc10
-rw-r--r--gnuradio-core/src/lib/general/gr_encode_ccsds_27_bb.h12
-rw-r--r--gnuradio-core/src/lib/general/gr_encode_ccsds_27_bb.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_expj.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_fake_channel_coder_pp.cc12
-rw-r--r--gnuradio-core/src/lib/general/gr_fake_channel_coder_pp.h16
-rw-r--r--gnuradio-core/src/lib/general/gr_fake_channel_coder_pp.i12
-rw-r--r--gnuradio-core/src/lib/general/gr_fast_atan2f.cc10
-rw-r--r--gnuradio-core/src/lib/general/gr_feedforward_agc_cc.cc12
-rw-r--r--gnuradio-core/src/lib/general/gr_feedforward_agc_cc.h12
-rw-r--r--gnuradio-core/src/lib/general/gr_feedforward_agc_cc.i10
-rw-r--r--gnuradio-core/src/lib/general/gr_feval.cc10
-rw-r--r--gnuradio-core/src/lib/general/gr_feval.h10
-rw-r--r--gnuradio-core/src/lib/general/gr_feval.i12
-rw-r--r--gnuradio-core/src/lib/general/gr_fft_vcc.cc12
-rw-r--r--gnuradio-core/src/lib/general/gr_fft_vcc.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_fft_vcc.i10
-rw-r--r--gnuradio-core/src/lib/general/gr_fft_vcc_fftw.cc20
-rw-r--r--gnuradio-core/src/lib/general/gr_fft_vcc_fftw.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_fft_vfc.cc14
-rw-r--r--gnuradio-core/src/lib/general/gr_fft_vfc.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_fft_vfc.i12
-rw-r--r--gnuradio-core/src/lib/general/gr_firdes.cc54
-rw-r--r--gnuradio-core/src/lib/general/gr_firdes.h12
-rw-r--r--gnuradio-core/src/lib/general/gr_firdes.i20
-rw-r--r--gnuradio-core/src/lib/general/gr_float_to_char.cc12
-rw-r--r--gnuradio-core/src/lib/general/gr_float_to_char.h10
-rw-r--r--gnuradio-core/src/lib/general/gr_float_to_char.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_float_to_complex.cc8
-rw-r--r--gnuradio-core/src/lib/general/gr_float_to_complex.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_float_to_complex.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_float_to_int.cc12
-rw-r--r--gnuradio-core/src/lib/general/gr_float_to_int.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_float_to_int.i10
-rw-r--r--gnuradio-core/src/lib/general/gr_float_to_short.cc10
-rw-r--r--gnuradio-core/src/lib/general/gr_float_to_short.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_float_to_short.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_float_to_uchar.cc10
-rw-r--r--gnuradio-core/src/lib/general/gr_float_to_uchar.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_float_to_uchar.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_fmdet_cf.cc14
-rw-r--r--gnuradio-core/src/lib/general/gr_fmdet_cf.h12
-rw-r--r--gnuradio-core/src/lib/general/gr_fmdet_cf.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_framer_sink_1.cc20
-rw-r--r--gnuradio-core/src/lib/general/gr_framer_sink_1.h16
-rw-r--r--gnuradio-core/src/lib/general/gr_framer_sink_1.i10
-rw-r--r--gnuradio-core/src/lib/general/gr_frequency_modulator_fc.cc8
-rw-r--r--gnuradio-core/src/lib/general/gr_frequency_modulator_fc.h10
-rw-r--r--gnuradio-core/src/lib/general/gr_frequency_modulator_fc.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_fxpt.cc8
-rw-r--r--gnuradio-core/src/lib/general/gr_fxpt.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_fxpt_nco.h12
-rw-r--r--gnuradio-core/src/lib/general/gr_fxpt_vco.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_glfsr_source_b.cc10
-rw-r--r--gnuradio-core/src/lib/general/gr_glfsr_source_b.h12
-rw-r--r--gnuradio-core/src/lib/general/gr_glfsr_source_b.i12
-rw-r--r--gnuradio-core/src/lib/general/gr_glfsr_source_f.cc10
-rw-r--r--gnuradio-core/src/lib/general/gr_glfsr_source_f.h12
-rw-r--r--gnuradio-core/src/lib/general/gr_glfsr_source_f.i12
-rw-r--r--gnuradio-core/src/lib/general/gr_head.cc10
-rw-r--r--gnuradio-core/src/lib/general/gr_head.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_head.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_int_to_float.cc10
-rw-r--r--gnuradio-core/src/lib/general/gr_int_to_float.h10
-rw-r--r--gnuradio-core/src/lib/general/gr_int_to_float.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_interleave.cc8
-rw-r--r--gnuradio-core/src/lib/general/gr_interleave.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_interleave.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_interleaved_short_to_complex.cc10
-rw-r--r--gnuradio-core/src/lib/general/gr_interleaved_short_to_complex.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_interleaved_short_to_complex.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_iqcomp_cc.cc8
-rw-r--r--gnuradio-core/src/lib/general/gr_iqcomp_cc.h10
-rw-r--r--gnuradio-core/src/lib/general/gr_iqcomp_cc.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_keep_one_in_n.cc12
-rw-r--r--gnuradio-core/src/lib/general/gr_keep_one_in_n.h10
-rw-r--r--gnuradio-core/src/lib/general/gr_keep_one_in_n.i10
-rw-r--r--gnuradio-core/src/lib/general/gr_kludge_copy.cc8
-rw-r--r--gnuradio-core/src/lib/general/gr_kludge_copy.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_kludge_copy.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_lfsr_32k_source_s.cc14
-rw-r--r--gnuradio-core/src/lib/general/gr_lfsr_32k_source_s.h10
-rw-r--r--gnuradio-core/src/lib/general/gr_lfsr_32k_source_s.i10
-rw-r--r--gnuradio-core/src/lib/general/gr_log2_const.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_map_bb.cc10
-rw-r--r--gnuradio-core/src/lib/general/gr_map_bb.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_map_bb.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_math.h16
-rw-r--r--gnuradio-core/src/lib/general/gr_misc.cc10
-rw-r--r--gnuradio-core/src/lib/general/gr_misc.h10
-rw-r--r--gnuradio-core/src/lib/general/gr_multiply_cc.cc8
-rw-r--r--gnuradio-core/src/lib/general/gr_multiply_cc.h10
-rw-r--r--gnuradio-core/src/lib/general/gr_multiply_cc.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_multiply_conjugate_cc.cc8
-rw-r--r--gnuradio-core/src/lib/general/gr_multiply_conjugate_cc.h10
-rw-r--r--gnuradio-core/src/lib/general/gr_multiply_conjugate_cc.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_multiply_const_cc.cc8
-rw-r--r--gnuradio-core/src/lib/general/gr_multiply_const_cc.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_multiply_const_cc.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_multiply_const_ff.cc8
-rw-r--r--gnuradio-core/src/lib/general/gr_multiply_const_ff.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_multiply_const_ff.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_multiply_ff.cc10
-rw-r--r--gnuradio-core/src/lib/general/gr_multiply_ff.h10
-rw-r--r--gnuradio-core/src/lib/general/gr_multiply_ff.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_nco.h36
-rw-r--r--gnuradio-core/src/lib/general/gr_nlog10_ff.cc8
-rw-r--r--gnuradio-core/src/lib/general/gr_nlog10_ff.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_nlog10_ff.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_nop.cc10
-rw-r--r--gnuradio-core/src/lib/general/gr_nop.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_nop.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_null_sink.cc8
-rw-r--r--gnuradio-core/src/lib/general/gr_null_sink.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_null_sink.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_null_source.cc8
-rw-r--r--gnuradio-core/src/lib/general/gr_null_source.h10
-rw-r--r--gnuradio-core/src/lib/general/gr_null_source.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_ofdm_bpsk_demapper.cc12
-rw-r--r--gnuradio-core/src/lib/general/gr_ofdm_bpsk_demapper.h16
-rw-r--r--gnuradio-core/src/lib/general/gr_ofdm_bpsk_demapper.i10
-rw-r--r--gnuradio-core/src/lib/general/gr_ofdm_frame_sink2.cc80
-rw-r--r--gnuradio-core/src/lib/general/gr_ofdm_frame_sink2.h20
-rw-r--r--gnuradio-core/src/lib/general/gr_ofdm_frame_sink2.i10
-rw-r--r--gnuradio-core/src/lib/general/gr_pa_2x2_phase_combiner.cc8
-rw-r--r--gnuradio-core/src/lib/general/gr_pa_2x2_phase_combiner.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_pa_2x2_phase_combiner.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_packet_sink.cc22
-rw-r--r--gnuradio-core/src/lib/general/gr_packet_sink.h16
-rw-r--r--gnuradio-core/src/lib/general/gr_packet_sink.i10
-rw-r--r--gnuradio-core/src/lib/general/gr_peak_detector2_fb.cc36
-rw-r--r--gnuradio-core/src/lib/general/gr_peak_detector2_fb.h34
-rw-r--r--gnuradio-core/src/lib/general/gr_peak_detector2_fb.i16
-rw-r--r--gnuradio-core/src/lib/general/gr_phase_modulator_fc.cc10
-rw-r--r--gnuradio-core/src/lib/general/gr_phase_modulator_fc.h10
-rw-r--r--gnuradio-core/src/lib/general/gr_phase_modulator_fc.i10
-rw-r--r--gnuradio-core/src/lib/general/gr_pll_carriertracking_cc.cc12
-rw-r--r--gnuradio-core/src/lib/general/gr_pll_carriertracking_cc.h14
-rw-r--r--gnuradio-core/src/lib/general/gr_pll_carriertracking_cc.i10
-rw-r--r--gnuradio-core/src/lib/general/gr_pll_freqdet_cf.cc14
-rw-r--r--gnuradio-core/src/lib/general/gr_pll_freqdet_cf.h12
-rw-r--r--gnuradio-core/src/lib/general/gr_pll_freqdet_cf.i10
-rw-r--r--gnuradio-core/src/lib/general/gr_pll_refout_cc.cc12
-rw-r--r--gnuradio-core/src/lib/general/gr_pll_refout_cc.h12
-rw-r--r--gnuradio-core/src/lib/general/gr_pll_refout_cc.i10
-rw-r--r--gnuradio-core/src/lib/general/gr_pn_correlator_cc.cc8
-rw-r--r--gnuradio-core/src/lib/general/gr_pn_correlator_cc.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_pn_correlator_cc.i10
-rw-r--r--gnuradio-core/src/lib/general/gr_prefs.cc8
-rw-r--r--gnuradio-core/src/lib/general/gr_prefs.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_prefs.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_c.cc8
-rw-r--r--gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_c.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_c.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_cf.cc8
-rw-r--r--gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_cf.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_cf.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_f.cc8
-rw-r--r--gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_f.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_f.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_probe_density_b.cc10
-rw-r--r--gnuradio-core/src/lib/general/gr_probe_density_b.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_probe_density_b.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_pwr_squelch_cc.cc10
-rw-r--r--gnuradio-core/src/lib/general/gr_pwr_squelch_cc.h12
-rw-r--r--gnuradio-core/src/lib/general/gr_pwr_squelch_cc.i10
-rw-r--r--gnuradio-core/src/lib/general/gr_pwr_squelch_ff.cc10
-rw-r--r--gnuradio-core/src/lib/general/gr_pwr_squelch_ff.h12
-rw-r--r--gnuradio-core/src/lib/general/gr_pwr_squelch_ff.i10
-rw-r--r--gnuradio-core/src/lib/general/gr_quadrature_demod_cf.cc10
-rw-r--r--gnuradio-core/src/lib/general/gr_quadrature_demod_cf.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_quadrature_demod_cf.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_rail_ff.cc10
-rw-r--r--gnuradio-core/src/lib/general/gr_rail_ff.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_rail_ff.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_random.cc28
-rw-r--r--gnuradio-core/src/lib/general/gr_random.h12
-rw-r--r--gnuradio-core/src/lib/general/gr_regenerate_bb.cc12
-rw-r--r--gnuradio-core/src/lib/general/gr_regenerate_bb.h12
-rw-r--r--gnuradio-core/src/lib/general/gr_regenerate_bb.i10
-rw-r--r--gnuradio-core/src/lib/general/gr_remez.cc34
-rw-r--r--gnuradio-core/src/lib/general/gr_remez.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_remez.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_repeat.cc14
-rw-r--r--gnuradio-core/src/lib/general/gr_repeat.h10
-rw-r--r--gnuradio-core/src/lib/general/gr_reverse.cc12
-rw-r--r--gnuradio-core/src/lib/general/gr_reverse.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_rms_cf.cc8
-rw-r--r--gnuradio-core/src/lib/general/gr_rms_cf.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_rms_cf.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_rms_ff.cc8
-rw-r--r--gnuradio-core/src/lib/general/gr_rms_ff.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_rms_ff.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_scrambler_bb.cc10
-rw-r--r--gnuradio-core/src/lib/general/gr_scrambler_bb.h12
-rw-r--r--gnuradio-core/src/lib/general/gr_scrambler_bb.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_short_to_char.cc10
-rw-r--r--gnuradio-core/src/lib/general/gr_short_to_char.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_short_to_char.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_short_to_float.cc10
-rw-r--r--gnuradio-core/src/lib/general/gr_short_to_float.h12
-rw-r--r--gnuradio-core/src/lib/general/gr_short_to_float.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_simple_correlator.cc20
-rw-r--r--gnuradio-core/src/lib/general/gr_simple_correlator.h14
-rw-r--r--gnuradio-core/src/lib/general/gr_simple_correlator.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_simple_framer.cc8
-rw-r--r--gnuradio-core/src/lib/general/gr_simple_framer.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_simple_framer.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_simple_framer_sync.h10
-rw-r--r--gnuradio-core/src/lib/general/gr_simple_squelch_cc.cc8
-rw-r--r--gnuradio-core/src/lib/general/gr_simple_squelch_cc.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_simple_squelch_cc.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_skiphead.cc8
-rw-r--r--gnuradio-core/src/lib/general/gr_skiphead.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_skiphead.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_squelch_base_cc.cc14
-rw-r--r--gnuradio-core/src/lib/general/gr_squelch_base_cc.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_squelch_base_cc.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_squelch_base_ff.cc14
-rw-r--r--gnuradio-core/src/lib/general/gr_squelch_base_ff.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_squelch_base_ff.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_stream_mux.cc24
-rw-r--r--gnuradio-core/src/lib/general/gr_stream_mux.h16
-rw-r--r--gnuradio-core/src/lib/general/gr_stream_mux.i10
-rw-r--r--gnuradio-core/src/lib/general/gr_stream_to_streams.cc8
-rw-r--r--gnuradio-core/src/lib/general/gr_stream_to_streams.h10
-rw-r--r--gnuradio-core/src/lib/general/gr_stream_to_streams.i10
-rw-r--r--gnuradio-core/src/lib/general/gr_stream_to_vector.cc8
-rw-r--r--gnuradio-core/src/lib/general/gr_stream_to_vector.h10
-rw-r--r--gnuradio-core/src/lib/general/gr_stream_to_vector.i10
-rw-r--r--gnuradio-core/src/lib/general/gr_streams_to_stream.cc8
-rw-r--r--gnuradio-core/src/lib/general/gr_streams_to_stream.h10
-rw-r--r--gnuradio-core/src/lib/general/gr_streams_to_stream.i10
-rw-r--r--gnuradio-core/src/lib/general/gr_streams_to_vector.cc8
-rw-r--r--gnuradio-core/src/lib/general/gr_streams_to_vector.h10
-rw-r--r--gnuradio-core/src/lib/general/gr_streams_to_vector.i10
-rw-r--r--gnuradio-core/src/lib/general/gr_stretch_ff.cc14
-rw-r--r--gnuradio-core/src/lib/general/gr_stretch_ff.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_stretch_ff.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_test.cc22
-rw-r--r--gnuradio-core/src/lib/general/gr_test.h16
-rw-r--r--gnuradio-core/src/lib/general/gr_test.i10
-rw-r--r--gnuradio-core/src/lib/general/gr_test_types.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_threshold_ff.cc10
-rw-r--r--gnuradio-core/src/lib/general/gr_threshold_ff.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_threshold_ff.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_throttle.cc8
-rw-r--r--gnuradio-core/src/lib/general/gr_throttle.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_throttle.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_transcendental.cc8
-rw-r--r--gnuradio-core/src/lib/general/gr_transcendental.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_transcendental.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_uchar_to_float.cc10
-rw-r--r--gnuradio-core/src/lib/general/gr_uchar_to_float.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_uchar_to_float.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_unpack_k_bits_bb.cc8
-rw-r--r--gnuradio-core/src/lib/general/gr_unpack_k_bits_bb.h10
-rw-r--r--gnuradio-core/src/lib/general/gr_unpack_k_bits_bb.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_vco.h16
-rw-r--r--gnuradio-core/src/lib/general/gr_vco_f.cc10
-rw-r--r--gnuradio-core/src/lib/general/gr_vco_f.h8
-rw-r--r--gnuradio-core/src/lib/general/gr_vco_f.i8
-rw-r--r--gnuradio-core/src/lib/general/gr_vector_to_stream.cc8
-rw-r--r--gnuradio-core/src/lib/general/gr_vector_to_stream.h10
-rw-r--r--gnuradio-core/src/lib/general/gr_vector_to_stream.i10
-rw-r--r--gnuradio-core/src/lib/general/gr_vector_to_streams.cc8
-rw-r--r--gnuradio-core/src/lib/general/gr_vector_to_streams.h10
-rw-r--r--gnuradio-core/src/lib/general/gr_vector_to_streams.i10
-rw-r--r--gnuradio-core/src/lib/general/gri_add_const_ss.h8
-rw-r--r--gnuradio-core/src/lib/general/gri_add_const_ss_generic.cc8
-rw-r--r--gnuradio-core/src/lib/general/gri_agc2_cc.h20
-rw-r--r--gnuradio-core/src/lib/general/gri_agc2_cc.i10
-rw-r--r--gnuradio-core/src/lib/general/gri_agc2_ff.h20
-rw-r--r--gnuradio-core/src/lib/general/gri_agc2_ff.i8
-rw-r--r--gnuradio-core/src/lib/general/gri_agc_cc.h18
-rw-r--r--gnuradio-core/src/lib/general/gri_agc_cc.i10
-rw-r--r--gnuradio-core/src/lib/general/gri_agc_ff.h14
-rw-r--r--gnuradio-core/src/lib/general/gri_agc_ff.i8
-rw-r--r--gnuradio-core/src/lib/general/gri_char_to_float.cc10
-rw-r--r--gnuradio-core/src/lib/general/gri_char_to_float.h8
-rw-r--r--gnuradio-core/src/lib/general/gri_control_loop.cc20
-rw-r--r--gnuradio-core/src/lib/general/gri_control_loop.h12
-rw-r--r--gnuradio-core/src/lib/general/gri_control_loop.i10
-rw-r--r--gnuradio-core/src/lib/general/gri_debugger_hook.cc8
-rw-r--r--gnuradio-core/src/lib/general/gri_debugger_hook.h8
-rw-r--r--gnuradio-core/src/lib/general/gri_fft.cc44
-rw-r--r--gnuradio-core/src/lib/general/gri_fft.h14
-rw-r--r--gnuradio-core/src/lib/general/gri_float_to_char.cc10
-rw-r--r--gnuradio-core/src/lib/general/gri_float_to_char.h8
-rw-r--r--gnuradio-core/src/lib/general/gri_float_to_int.cc10
-rw-r--r--gnuradio-core/src/lib/general/gri_float_to_int.h8
-rw-r--r--gnuradio-core/src/lib/general/gri_float_to_short.cc10
-rw-r--r--gnuradio-core/src/lib/general/gri_float_to_short.h8
-rw-r--r--gnuradio-core/src/lib/general/gri_float_to_uchar.cc10
-rw-r--r--gnuradio-core/src/lib/general/gri_float_to_uchar.h8
-rw-r--r--gnuradio-core/src/lib/general/gri_glfsr.cc8
-rw-r--r--gnuradio-core/src/lib/general/gri_glfsr.h8
-rw-r--r--gnuradio-core/src/lib/general/gri_int_to_float.cc10
-rw-r--r--gnuradio-core/src/lib/general/gri_int_to_float.h8
-rw-r--r--gnuradio-core/src/lib/general/gri_interleaved_short_to_complex.cc12
-rw-r--r--gnuradio-core/src/lib/general/gri_interleaved_short_to_complex.h8
-rw-r--r--gnuradio-core/src/lib/general/gri_lfsr.h28
-rw-r--r--gnuradio-core/src/lib/general/gri_lfsr_15_1_0.h10
-rw-r--r--gnuradio-core/src/lib/general/gri_lfsr_32k.h10
-rw-r--r--gnuradio-core/src/lib/general/gri_short_to_float.cc10
-rw-r--r--gnuradio-core/src/lib/general/gri_short_to_float.h8
-rw-r--r--gnuradio-core/src/lib/general/gri_uchar_to_float.cc10
-rw-r--r--gnuradio-core/src/lib/general/gri_uchar_to_float.h8
-rw-r--r--gnuradio-core/src/lib/general/malloc16.h8
-rw-r--r--gnuradio-core/src/lib/general/qa_general.cc10
-rw-r--r--gnuradio-core/src/lib/general/qa_general.h8
-rw-r--r--gnuradio-core/src/lib/general/qa_gr_circular_file.cc10
-rw-r--r--gnuradio-core/src/lib/general/qa_gr_circular_file.h8
-rw-r--r--gnuradio-core/src/lib/general/qa_gr_cpm.cc8
-rw-r--r--gnuradio-core/src/lib/general/qa_gr_cpm.h8
-rw-r--r--gnuradio-core/src/lib/general/qa_gr_firdes.cc10
-rw-r--r--gnuradio-core/src/lib/general/qa_gr_firdes.h8
-rw-r--r--gnuradio-core/src/lib/general/qa_gr_fxpt.cc8
-rw-r--r--gnuradio-core/src/lib/general/qa_gr_fxpt.h8
-rw-r--r--gnuradio-core/src/lib/general/qa_gr_fxpt_nco.cc8
-rw-r--r--gnuradio-core/src/lib/general/qa_gr_fxpt_nco.h8
-rw-r--r--gnuradio-core/src/lib/general/qa_gr_fxpt_vco.cc8
-rw-r--r--gnuradio-core/src/lib/general/qa_gr_fxpt_vco.h8
-rw-r--r--gnuradio-core/src/lib/general/qa_gr_math.cc18
-rw-r--r--gnuradio-core/src/lib/general/qa_gr_math.h8
-rw-r--r--gnuradio-core/src/lib/general/qa_gri_lfsr.cc76
-rw-r--r--gnuradio-core/src/lib/general/qa_gri_lfsr.h8
-rwxr-xr-xgnuradio-core/src/lib/gengen/generate_all.py10
-rwxr-xr-xgnuradio-core/src/lib/gengen/generate_common.py14
-rw-r--r--gnuradio-core/src/lib/gengen/gengen.i8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_add_XX.cc.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_add_XX.h.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_add_XX.i.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_add_const_XX.cc.t10
-rw-r--r--gnuradio-core/src/lib/gengen/gr_add_const_XX.h.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_add_const_XX.i.t8
-rwxr-xr-xgnuradio-core/src/lib/gengen/gr_add_const_vXX.cc.t12
-rw-r--r--gnuradio-core/src/lib/gengen/gr_add_const_vXX.h.t8
-rwxr-xr-xgnuradio-core/src/lib/gengen/gr_add_const_vXX.i.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_and_XX.cc.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_and_XX.h.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_and_XX.i.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_and_const_XX.cc.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_and_const_XX.h.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_and_const_XX.i.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_argmax_XX.cc.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_argmax_XX.h.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_argmax_XX.i.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_chunks_to_symbols_XX.cc.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_chunks_to_symbols_XX.h.t10
-rw-r--r--gnuradio-core/src/lib/gengen/gr_divide_XX.cc.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_divide_XX.h.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_divide_XX.i.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_endianness.h8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_endianness.i8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_integrate_XX.cc.t14
-rw-r--r--gnuradio-core/src/lib/gengen/gr_integrate_XX.h.t10
-rw-r--r--gnuradio-core/src/lib/gengen/gr_integrate_XX.i.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_max_XX.cc.t12
-rw-r--r--gnuradio-core/src/lib/gengen/gr_max_XX.h.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_max_XX.i.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_moving_average_XX.cc.t12
-rw-r--r--gnuradio-core/src/lib/gengen/gr_moving_average_XX.h.t10
-rw-r--r--gnuradio-core/src/lib/gengen/gr_moving_average_XX.i.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_multiply_XX.cc.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_multiply_XX.h.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_multiply_XX.i.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_multiply_const_XX.cc.t10
-rw-r--r--gnuradio-core/src/lib/gengen/gr_multiply_const_XX.h.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_multiply_const_XX.i.t8
-rwxr-xr-xgnuradio-core/src/lib/gengen/gr_multiply_const_vXX.cc.t12
-rw-r--r--gnuradio-core/src/lib/gengen/gr_multiply_const_vXX.h.t8
-rwxr-xr-xgnuradio-core/src/lib/gengen/gr_multiply_const_vXX.i.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_mute_XX.cc.t10
-rw-r--r--gnuradio-core/src/lib/gengen/gr_mute_XX.h.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_mute_XX.i.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_noise_source_X.cc.t18
-rw-r--r--gnuradio-core/src/lib/gengen/gr_noise_source_X.h.t14
-rw-r--r--gnuradio-core/src/lib/gengen/gr_noise_source_X.i.t10
-rw-r--r--gnuradio-core/src/lib/gengen/gr_noise_type.h8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_not_XX.cc.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_not_XX.h.t10
-rw-r--r--gnuradio-core/src/lib/gengen/gr_not_XX.i.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_or_XX.cc.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_or_XX.h.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_or_XX.i.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_packed_to_unpacked_XX.cc.t14
-rw-r--r--gnuradio-core/src/lib/gengen/gr_packed_to_unpacked_XX.h.t20
-rw-r--r--gnuradio-core/src/lib/gengen/gr_packed_to_unpacked_XX.i.t10
-rw-r--r--gnuradio-core/src/lib/gengen/gr_peak_detector_XX.cc.t16
-rw-r--r--gnuradio-core/src/lib/gengen/gr_peak_detector_XX.h.t18
-rw-r--r--gnuradio-core/src/lib/gengen/gr_peak_detector_XX.i.t14
-rw-r--r--gnuradio-core/src/lib/gengen/gr_probe_signal_X.cc.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_probe_signal_X.h.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_probe_signal_X.i.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_probe_signal_vX.cc.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_probe_signal_vX.h.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_probe_signal_vX.i.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_sample_and_hold_XX.cc.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_sample_and_hold_XX.h.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_sample_and_hold_XX.i.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_sig_source_X.cc.t60
-rw-r--r--gnuradio-core/src/lib/gengen/gr_sig_source_X.h.t10
-rw-r--r--gnuradio-core/src/lib/gengen/gr_sig_source_X.i.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_sig_source_waveform.h8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_sub_XX.cc.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_sub_XX.h.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_sub_XX.i.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_unpacked_to_packed_XX.cc.t18
-rw-r--r--gnuradio-core/src/lib/gengen/gr_unpacked_to_packed_XX.h.t10
-rw-r--r--gnuradio-core/src/lib/gengen/gr_unpacked_to_packed_XX.i.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_vector_sink_X.cc.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_vector_sink_X.h.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_vector_sink_X.i.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_vector_source_X.cc.t12
-rw-r--r--gnuradio-core/src/lib/gengen/gr_vector_source_X.h.t10
-rw-r--r--gnuradio-core/src/lib/gengen/gr_vector_source_X.i.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_xor_XX.cc.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_xor_XX.h.t8
-rw-r--r--gnuradio-core/src/lib/gengen/gr_xor_XX.i.t8
-rw-r--r--gnuradio-core/src/lib/gnuradio-config-info.cc10
-rw-r--r--gnuradio-core/src/lib/hier/gr_channel_model.cc22
-rw-r--r--gnuradio-core/src/lib/hier/gr_channel_model.h14
-rw-r--r--gnuradio-core/src/lib/hier/gr_channel_model.i10
-rw-r--r--gnuradio-core/src/lib/hier/hier.i8
-rw-r--r--gnuradio-core/src/lib/io/gr_file_descriptor_sink.cc10
-rw-r--r--gnuradio-core/src/lib/io/gr_file_descriptor_sink.h8
-rw-r--r--gnuradio-core/src/lib/io/gr_file_descriptor_sink.i10
-rw-r--r--gnuradio-core/src/lib/io/gr_file_descriptor_source.cc12
-rw-r--r--gnuradio-core/src/lib/io/gr_file_descriptor_source.h8
-rw-r--r--gnuradio-core/src/lib/io/gr_file_descriptor_source.i10
-rw-r--r--gnuradio-core/src/lib/io/gr_file_sink.cc14
-rw-r--r--gnuradio-core/src/lib/io/gr_file_sink.h8
-rw-r--r--gnuradio-core/src/lib/io/gr_file_sink.i12
-rw-r--r--gnuradio-core/src/lib/io/gr_file_sink_base.cc10
-rw-r--r--gnuradio-core/src/lib/io/gr_file_sink_base.h14
-rw-r--r--gnuradio-core/src/lib/io/gr_file_sink_base.i12
-rw-r--r--gnuradio-core/src/lib/io/gr_file_source.cc14
-rw-r--r--gnuradio-core/src/lib/io/gr_file_source.h8
-rw-r--r--gnuradio-core/src/lib/io/gr_file_source.i10
-rw-r--r--gnuradio-core/src/lib/io/gr_histo_sink.i8
-rw-r--r--gnuradio-core/src/lib/io/gr_message_sink.cc10
-rw-r--r--gnuradio-core/src/lib/io/gr_message_sink.h8
-rw-r--r--gnuradio-core/src/lib/io/gr_message_sink.i8
-rw-r--r--gnuradio-core/src/lib/io/gr_message_source.cc8
-rw-r--r--gnuradio-core/src/lib/io/gr_message_source.h8
-rw-r--r--gnuradio-core/src/lib/io/gr_message_source.i8
-rw-r--r--gnuradio-core/src/lib/io/gr_oscope_guts.cc24
-rw-r--r--gnuradio-core/src/lib/io/gr_oscope_guts.h10
-rw-r--r--gnuradio-core/src/lib/io/gr_oscope_sink.i8
-rw-r--r--gnuradio-core/src/lib/io/gr_oscope_sink_f.cc10
-rw-r--r--gnuradio-core/src/lib/io/gr_oscope_sink_f.h8
-rw-r--r--gnuradio-core/src/lib/io/gr_oscope_sink_x.cc8
-rw-r--r--gnuradio-core/src/lib/io/gr_oscope_sink_x.h12
-rw-r--r--gnuradio-core/src/lib/io/gr_tagged_file_sink.cc20
-rw-r--r--gnuradio-core/src/lib/io/gr_tagged_file_sink.h8
-rw-r--r--gnuradio-core/src/lib/io/gr_tagged_file_sink.i10
-rw-r--r--gnuradio-core/src/lib/io/gr_trigger_mode.h8
-rw-r--r--gnuradio-core/src/lib/io/gr_udp_sink.cc20
-rw-r--r--gnuradio-core/src/lib/io/gr_udp_sink.h20
-rw-r--r--gnuradio-core/src/lib/io/gr_udp_sink.i16
-rw-r--r--gnuradio-core/src/lib/io/gr_udp_source.cc34
-rw-r--r--gnuradio-core/src/lib/io/gr_udp_source.h16
-rw-r--r--gnuradio-core/src/lib/io/gr_udp_source.i14
-rw-r--r--gnuradio-core/src/lib/io/gr_wavfile_sink.cc40
-rw-r--r--gnuradio-core/src/lib/io/gr_wavfile_sink.h20
-rw-r--r--gnuradio-core/src/lib/io/gr_wavfile_sink.i2
-rw-r--r--gnuradio-core/src/lib/io/gr_wavfile_source.cc8
-rw-r--r--gnuradio-core/src/lib/io/gr_wavfile_source.h16
-rw-r--r--gnuradio-core/src/lib/io/gri_wavfile.cc52
-rw-r--r--gnuradio-core/src/lib/io/gri_wavfile.h2
-rw-r--r--gnuradio-core/src/lib/io/i2c.cc8
-rw-r--r--gnuradio-core/src/lib/io/i2c.h12
-rw-r--r--gnuradio-core/src/lib/io/i2c_bbio.cc8
-rw-r--r--gnuradio-core/src/lib/io/i2c_bbio.h10
-rw-r--r--gnuradio-core/src/lib/io/i2c_bbio_pp.cc8
-rw-r--r--gnuradio-core/src/lib/io/i2c_bbio_pp.h8
-rw-r--r--gnuradio-core/src/lib/io/i2c_bitbang.cc20
-rw-r--r--gnuradio-core/src/lib/io/i2c_bitbang.h12
-rw-r--r--gnuradio-core/src/lib/io/io.i8
-rw-r--r--gnuradio-core/src/lib/io/microtune_4702.cc6
-rw-r--r--gnuradio-core/src/lib/io/microtune_4702.h10
-rw-r--r--gnuradio-core/src/lib/io/microtune_4702_eval_board.h8
-rw-r--r--gnuradio-core/src/lib/io/microtune_4702_eval_board.i8
-rw-r--r--gnuradio-core/src/lib/io/microtune_4937.cc12
-rw-r--r--gnuradio-core/src/lib/io/microtune_4937.h12
-rw-r--r--gnuradio-core/src/lib/io/microtune_4937_eval_board.cc8
-rw-r--r--gnuradio-core/src/lib/io/microtune_4937_eval_board.h8
-rw-r--r--gnuradio-core/src/lib/io/microtune_4937_eval_board.i8
-rw-r--r--gnuradio-core/src/lib/io/microtune_eval_board.i12
-rw-r--r--gnuradio-core/src/lib/io/microtune_eval_board_defs.h8
-rw-r--r--gnuradio-core/src/lib/io/microtune_xxxx.cc10
-rw-r--r--gnuradio-core/src/lib/io/microtune_xxxx.h12
-rw-r--r--gnuradio-core/src/lib/io/microtune_xxxx_eval_board.cc18
-rw-r--r--gnuradio-core/src/lib/io/microtune_xxxx_eval_board.h14
-rw-r--r--gnuradio-core/src/lib/io/microtune_xxxx_eval_board.i10
-rw-r--r--gnuradio-core/src/lib/io/ppio.cc8
-rw-r--r--gnuradio-core/src/lib/io/ppio.h10
-rw-r--r--gnuradio-core/src/lib/io/ppio.i8
-rw-r--r--gnuradio-core/src/lib/io/ppio_ppdev.cc20
-rw-r--r--gnuradio-core/src/lib/io/ppio_ppdev.h8
-rw-r--r--gnuradio-core/src/lib/io/sdr_1000.cc12
-rw-r--r--gnuradio-core/src/lib/io/sdr_1000.h12
-rw-r--r--gnuradio-core/src/lib/io/sdr_1000.i8
-rw-r--r--gnuradio-core/src/lib/missing/CMakeLists.txt8
-rw-r--r--gnuradio-core/src/lib/missing/getopt.c10
-rw-r--r--gnuradio-core/src/lib/missing/gettimeofday.c14
-rw-r--r--gnuradio-core/src/lib/missing/posix_memalign.cc8
-rw-r--r--gnuradio-core/src/lib/missing/posix_memalign.h8
-rw-r--r--gnuradio-core/src/lib/reed-solomon/char.h2
-rw-r--r--gnuradio-core/src/lib/reed-solomon/decode_rs.c8
-rw-r--r--gnuradio-core/src/lib/reed-solomon/exercise.c2
-rw-r--r--gnuradio-core/src/lib/reed-solomon/int.h2
-rw-r--r--gnuradio-core/src/lib/runtime/CMakeLists.txt8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_basic_block.cc16
-rw-r--r--gnuradio-core/src/lib/runtime/gr_basic_block.h10
-rw-r--r--gnuradio-core/src/lib/runtime/gr_basic_block.i8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_block.cc20
-rw-r--r--gnuradio-core/src/lib/runtime/gr_block.h26
-rw-r--r--gnuradio-core/src/lib/runtime/gr_block.i12
-rw-r--r--gnuradio-core/src/lib/runtime/gr_block_detail.cc16
-rw-r--r--gnuradio-core/src/lib/runtime/gr_block_detail.h10
-rw-r--r--gnuradio-core/src/lib/runtime/gr_block_detail.i8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_block_executor.cc20
-rw-r--r--gnuradio-core/src/lib/runtime/gr_block_executor.h8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_buffer.cc18
-rw-r--r--gnuradio-core/src/lib/runtime/gr_buffer.h20
-rw-r--r--gnuradio-core/src/lib/runtime/gr_buffer.i10
-rw-r--r--gnuradio-core/src/lib/runtime/gr_complex.h8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_dispatcher.cc8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_dispatcher.h8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_dispatcher.i8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_error_handler.cc14
-rw-r--r--gnuradio-core/src/lib/runtime/gr_error_handler.h10
-rw-r--r--gnuradio-core/src/lib/runtime/gr_error_handler.i8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_flat_flowgraph.cc26
-rw-r--r--gnuradio-core/src/lib/runtime/gr_flat_flowgraph.h10
-rw-r--r--gnuradio-core/src/lib/runtime/gr_flowgraph.cc32
-rw-r--r--gnuradio-core/src/lib/runtime/gr_flowgraph.h14
-rw-r--r--gnuradio-core/src/lib/runtime/gr_hier_block2.cc22
-rw-r--r--gnuradio-core/src/lib/runtime/gr_hier_block2.h24
-rw-r--r--gnuradio-core/src/lib/runtime/gr_hier_block2.i12
-rw-r--r--gnuradio-core/src/lib/runtime/gr_hier_block2_detail.cc44
-rw-r--r--gnuradio-core/src/lib/runtime/gr_hier_block2_detail.h16
-rw-r--r--gnuradio-core/src/lib/runtime/gr_io_signature.cc16
-rw-r--r--gnuradio-core/src/lib/runtime/gr_io_signature.h16
-rw-r--r--gnuradio-core/src/lib/runtime/gr_io_signature.i16
-rw-r--r--gnuradio-core/src/lib/runtime/gr_local_sighandler.cc10
-rw-r--r--gnuradio-core/src/lib/runtime/gr_local_sighandler.h8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_message.cc10
-rw-r--r--gnuradio-core/src/lib/runtime/gr_message.h12
-rw-r--r--gnuradio-core/src/lib/runtime/gr_message.i8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_msg_accepter.cc10
-rw-r--r--gnuradio-core/src/lib/runtime/gr_msg_accepter.h8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_msg_handler.cc8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_msg_handler.h10
-rw-r--r--gnuradio-core/src/lib/runtime/gr_msg_handler.i10
-rw-r--r--gnuradio-core/src/lib/runtime/gr_msg_queue.cc8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_msg_queue.h14
-rw-r--r--gnuradio-core/src/lib/runtime/gr_msg_queue.i14
-rw-r--r--gnuradio-core/src/lib/runtime/gr_pagesize.cc8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_pagesize.h8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_preferences.cc10
-rw-r--r--gnuradio-core/src/lib/runtime/gr_preferences.h8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_realtime.cc8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_realtime.h8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_realtime.i8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_runtime_types.h8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_scheduler.cc8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_scheduler.h8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_scheduler_sts.cc10
-rw-r--r--gnuradio-core/src/lib/runtime/gr_scheduler_sts.h8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_scheduler_tpb.cc10
-rw-r--r--gnuradio-core/src/lib/runtime/gr_scheduler_tpb.h8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_select_handler.cc8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_select_handler.h10
-rw-r--r--gnuradio-core/src/lib/runtime/gr_single_threaded_scheduler.cc14
-rw-r--r--gnuradio-core/src/lib/runtime/gr_single_threaded_scheduler.h10
-rw-r--r--gnuradio-core/src/lib/runtime/gr_single_threaded_scheduler.i10
-rw-r--r--gnuradio-core/src/lib/runtime/gr_sptr_magic.cc10
-rw-r--r--gnuradio-core/src/lib/runtime/gr_sptr_magic.h12
-rw-r--r--gnuradio-core/src/lib/runtime/gr_sync_block.cc8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_sync_block.h12
-rw-r--r--gnuradio-core/src/lib/runtime/gr_sync_block.i8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_sync_decimator.cc8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_sync_decimator.h8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_sync_decimator.i8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_sync_interpolator.cc8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_sync_interpolator.h8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_sync_interpolator.i8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_sys_paths.cc8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_sys_paths.h8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_tags.h8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_timer.h10
-rw-r--r--gnuradio-core/src/lib/runtime/gr_top_block.cc28
-rw-r--r--gnuradio-core/src/lib/runtime/gr_top_block.h14
-rw-r--r--gnuradio-core/src/lib/runtime/gr_top_block.i16
-rw-r--r--gnuradio-core/src/lib/runtime/gr_top_block_impl.cc8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_top_block_impl.h16
-rw-r--r--gnuradio-core/src/lib/runtime/gr_tpb_detail.cc12
-rw-r--r--gnuradio-core/src/lib/runtime/gr_tpb_detail.h12
-rw-r--r--gnuradio-core/src/lib/runtime/gr_tpb_thread_body.cc16
-rw-r--r--gnuradio-core/src/lib/runtime/gr_tpb_thread_body.h8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_types.h10
-rw-r--r--gnuradio-core/src/lib/runtime/gr_unittests.h8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_vmcircbuf.cc14
-rw-r--r--gnuradio-core/src/lib/runtime/gr_vmcircbuf.h12
-rw-r--r--gnuradio-core/src/lib/runtime/gr_vmcircbuf_mmap_shm_open.cc18
-rw-r--r--gnuradio-core/src/lib/runtime/gr_vmcircbuf_mmap_shm_open.h8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_vmcircbuf_mmap_tmpfile.cc14
-rw-r--r--gnuradio-core/src/lib/runtime/gr_vmcircbuf_mmap_tmpfile.h8
-rw-r--r--gnuradio-core/src/lib/runtime/gr_vmcircbuf_sysv_shm.cc10
-rw-r--r--gnuradio-core/src/lib/runtime/gr_vmcircbuf_sysv_shm.h8
-rw-r--r--gnuradio-core/src/lib/runtime/qa_block_tags.cc22
-rw-r--r--gnuradio-core/src/lib/runtime/qa_block_tags.h8
-rw-r--r--gnuradio-core/src/lib/runtime/qa_gr_block.cc8
-rw-r--r--gnuradio-core/src/lib/runtime/qa_gr_block.h8
-rw-r--r--gnuradio-core/src/lib/runtime/qa_gr_buffer.cc24
-rw-r--r--gnuradio-core/src/lib/runtime/qa_gr_buffer.h8
-rw-r--r--gnuradio-core/src/lib/runtime/qa_gr_flowgraph.cc10
-rw-r--r--gnuradio-core/src/lib/runtime/qa_gr_flowgraph.h12
-rw-r--r--gnuradio-core/src/lib/runtime/qa_gr_hier_block2.cc12
-rw-r--r--gnuradio-core/src/lib/runtime/qa_gr_hier_block2.h12
-rw-r--r--gnuradio-core/src/lib/runtime/qa_gr_hier_block2_derived.cc10
-rw-r--r--gnuradio-core/src/lib/runtime/qa_gr_hier_block2_derived.h10
-rw-r--r--gnuradio-core/src/lib/runtime/qa_gr_io_signature.cc8
-rw-r--r--gnuradio-core/src/lib/runtime/qa_gr_io_signature.h8
-rw-r--r--gnuradio-core/src/lib/runtime/qa_gr_top_block.cc8
-rw-r--r--gnuradio-core/src/lib/runtime/qa_gr_top_block.h12
-rw-r--r--gnuradio-core/src/lib/runtime/qa_gr_vmcircbuf.cc10
-rw-r--r--gnuradio-core/src/lib/runtime/qa_gr_vmcircbuf.h8
-rw-r--r--gnuradio-core/src/lib/runtime/qa_runtime.cc10
-rw-r--r--gnuradio-core/src/lib/runtime/qa_runtime.h8
-rw-r--r--gnuradio-core/src/lib/runtime/qa_set_msg_handler.cc8
-rw-r--r--gnuradio-core/src/lib/runtime/qa_set_msg_handler.h12
-rw-r--r--gnuradio-core/src/lib/runtime/runtime.i8
-rw-r--r--gnuradio-core/src/lib/runtime/test_shared_block_ptr.cc14
-rw-r--r--gnuradio-core/src/lib/swig/CMakeLists.txt8
-rwxr-xr-xgnuradio-core/src/lib/swig/gen-swig-bug-fix26
-rw-r--r--gnuradio-core/src/lib/swig/gnuradio.i8
-rw-r--r--gnuradio-core/src/lib/swig/gnuradio_core.py8
-rw-r--r--gnuradio-core/src/lib/swig/gnuradio_swig_bug_workaround.h8
-rw-r--r--gnuradio-core/src/lib/swig/gr_shared_ptr.i2
-rw-r--r--gnuradio-core/src/lib/swig/gr_swig_block_magic.i8
-rw-r--r--gnuradio-core/src/lib/viterbi/decode.cc20
-rw-r--r--gnuradio-core/src/lib/viterbi/encode.cc14
-rw-r--r--gnuradio-core/src/lib/viterbi/metrics.c30
-rw-r--r--gnuradio-core/src/lib/viterbi/tab.c8
-rw-r--r--gnuradio-core/src/lib/viterbi/viterbi.c56
-rw-r--r--gnuradio-core/src/lib/viterbi/viterbi.h10
-rwxr-xr-xgnuradio-core/src/python/bin/microtune.py2
-rw-r--r--gnuradio-core/src/python/build_utils.py26
-rw-r--r--gnuradio-core/src/python/build_utils_codes.py10
-rw-r--r--gnuradio-core/src/python/gnuradio/blks2/__init__.py12
-rw-r--r--gnuradio-core/src/python/gnuradio/blks2impl/am_demod.py23
-rw-r--r--gnuradio-core/src/python/gnuradio/blks2impl/channel_model.py10
-rw-r--r--gnuradio-core/src/python/gnuradio/blks2impl/filterbank.py30
-rw-r--r--gnuradio-core/src/python/gnuradio/blks2impl/fm_demod.py36
-rw-r--r--gnuradio-core/src/python/gnuradio/blks2impl/fm_emph.py20
-rw-r--r--gnuradio-core/src/python/gnuradio/blks2impl/nbfm_rx.py10
-rw-r--r--gnuradio-core/src/python/gnuradio/blks2impl/nbfm_tx.py24
-rw-r--r--gnuradio-core/src/python/gnuradio/blks2impl/pfb_arb_resampler.py18
-rw-r--r--gnuradio-core/src/python/gnuradio/blks2impl/pfb_channelizer.py14
-rw-r--r--gnuradio-core/src/python/gnuradio/blks2impl/pfb_decimator.py10
-rw-r--r--gnuradio-core/src/python/gnuradio/blks2impl/pfb_interpolator.py18
-rw-r--r--gnuradio-core/src/python/gnuradio/blks2impl/rational_resampler.py16
-rw-r--r--gnuradio-core/src/python/gnuradio/blks2impl/standard_squelch.py16
-rw-r--r--gnuradio-core/src/python/gnuradio/blks2impl/wfm_rcv.py20
-rwxr-xr-xgnuradio-core/src/python/gnuradio/blks2impl/wfm_rcv_fmdet.py32
-rw-r--r--gnuradio-core/src/python/gnuradio/blks2impl/wfm_rcv_pll.py32
-rw-r--r--gnuradio-core/src/python/gnuradio/blks2impl/wfm_tx.py18
-rw-r--r--gnuradio-core/src/python/gnuradio/eng_notation.py10
-rw-r--r--gnuradio-core/src/python/gnuradio/eng_option.py10
-rw-r--r--gnuradio-core/src/python/gnuradio/gr/__init__.py12
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/benchmark_filters.py12
-rw-r--r--gnuradio-core/src/python/gnuradio/gr/exceptions.py8
-rw-r--r--gnuradio-core/src/python/gnuradio/gr/gr_threading.py10
-rw-r--r--gnuradio-core/src/python/gnuradio/gr/hier_block2.py12
-rw-r--r--gnuradio-core/src/python/gnuradio/gr/prefs.py18
-rw-r--r--gnuradio-core/src/python/gnuradio/gr/pubsub.py20
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_add_and_friends.py10
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_add_v_and_friends.py34
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_agc.py22
-rw-r--r--gnuradio-core/src/python/gnuradio/gr/qa_argmax.py10
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_bin_statistics.py26
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_boolean_operators.py12
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_complex_to_xxx.py10
-rw-r--r--gnuradio-core/src/python/gnuradio/gr/qa_conjugate.py14
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_copy.py14
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_dc_blocker.py20
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_delay.py10
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_diff_encoder.py12
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_diff_phasor_cc.py10
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_ecc_ccsds_27.py12
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_feval.py14
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_fft.py10
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_fft_filter.py26
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_filter_delay_fc.py390
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_float_to_char.py12
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_float_to_int.py12
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_float_to_short.py10
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_float_to_uchar.py10
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_fractional_interpolator.py12
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_frequency_modulator.py12
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_fsk_stuff.py18
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_glfsr_source.py12
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_goertzel.py12
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_head.py12
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_hier_block2.py98
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_hilbert.py132
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_iir.py18
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_int_to_float.py14
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_integrate.py18
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_interleave.py12
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_interp_fir_filter.py12
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_kludge_copy.py16
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_kludged_imports.py10
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_max.py10
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_message.py20
-rw-r--r--gnuradio-core/src/python/gnuradio/gr/qa_multiply_conjugate.py14
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_mute.py10
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_nlog10.py12
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_noise.py14
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_packed_to_unpacked.py38
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_pipe_fittings.py30
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_pll_carriertracking.py10
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_pll_freqdet.py12
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_pll_refout.py10
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_pn_correlator_cc.py12
-rw-r--r--gnuradio-core/src/python/gnuradio/gr/qa_probe_signal.py14
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_rational_resampler.py22
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_regenerate.py20
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_repeat.py14
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_scrambler.py16
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_short_to_char.py10
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_short_to_float.py10
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_sig_source.py26
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_single_pole_iir.py12
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_single_pole_iir_cc.py12
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_skiphead.py20
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_stream_mux.py50
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_udp_sink_source.py18
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_unpack_k_bits.py12
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_vector_sink_source.py10
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_wavefile.py12
-rw-r--r--gnuradio-core/src/python/gnuradio/gr/top_block.py12
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr_unittest.py18
-rw-r--r--gnuradio-core/src/python/gnuradio/gr_xmlrunner.py20
-rw-r--r--gnuradio-core/src/python/gnuradio/gru/__init__.py12
-rw-r--r--gnuradio-core/src/python/gnuradio/gruimpl/daemon.py16
-rw-r--r--gnuradio-core/src/python/gnuradio/gruimpl/freqz.py46
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gruimpl/gnuplot_freqz.py16
-rw-r--r--gnuradio-core/src/python/gnuradio/gruimpl/hexint.py10
-rw-r--r--gnuradio-core/src/python/gnuradio/gruimpl/listmisc.py10
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gruimpl/lmx2306.py20
-rw-r--r--gnuradio-core/src/python/gnuradio/gruimpl/mathmisc.py10
-rw-r--r--gnuradio-core/src/python/gnuradio/gruimpl/os_read_exactly.py10
-rw-r--r--gnuradio-core/src/python/gnuradio/gruimpl/sdr_1000.py20
-rw-r--r--gnuradio-core/src/python/gnuradio/gruimpl/seq_with_cursor.py16
-rw-r--r--gnuradio-core/src/python/gnuradio/gruimpl/socket_stuff.py10
-rw-r--r--gnuradio-core/src/python/gnuradio/optfir.py20
-rw-r--r--gnuradio-core/src/python/gnuradio/window.py20
-rw-r--r--gnuradio-core/src/tests/CMakeLists.txt8
-rwxr-xr-xgnuradio-core/src/tests/benchmark_dotprod8
-rw-r--r--gnuradio-core/src/tests/benchmark_dotprod_fcc.cc2
-rw-r--r--gnuradio-core/src/tests/benchmark_dotprod_scc.cc4
-rw-r--r--gnuradio-core/src/tests/benchmark_nco.cc6
-rw-r--r--gnuradio-core/src/tests/test_all.cc12
-rw-r--r--gnuradio-core/src/tests/test_atsc.cc10
-rwxr-xr-xgnuradio-core/src/tests/test_buffers.py10
-rw-r--r--gnuradio-core/src/tests/test_filter.cc12
-rw-r--r--gnuradio-core/src/tests/test_general.cc12
-rw-r--r--gnuradio-core/src/tests/test_runtime.cc12
-rw-r--r--gnuradio-core/src/tests/test_vmcircbuf.cc10
-rw-r--r--gnuradio-core/src/utils/cic_comp_taps.m10
-rw-r--r--gnuradio-core/src/utils/cool.m4
-rw-r--r--gnuradio-core/src/utils/db_width.m8
-rw-r--r--gnuradio-core/src/utils/filter_tools.m12
-rw-r--r--gnuradio-core/src/utils/is_complex.m10
-rw-r--r--gnuradio-core/src/utils/lp_to_bp.m10
-rw-r--r--gnuradio-core/src/utils/partition-cascaded-decimating-filters.scm3
-rw-r--r--gnuradio-core/src/utils/plot_cic_decimator_response.m11
-rw-r--r--gnuradio-core/src/utils/plot_freq_response.m10
-rw-r--r--gnuradio-core/src/utils/plot_freq_response_db.m10
-rw-r--r--gnuradio-core/src/utils/plot_freq_response_phase.m10
-rw-r--r--gnuradio-core/src/utils/plotfft.m8
-rw-r--r--gnuradio-core/src/utils/plotfftavgk.m10
-rw-r--r--gnuradio-core/src/utils/plotfftavgk_db.m12
-rw-r--r--gnuradio-core/src/utils/plotfftk.m10
-rw-r--r--gnuradio-core/src/utils/plotfftk_db.m10
-rw-r--r--gnuradio-core/src/utils/put_markers.m10
-rw-r--r--gnuradio-core/src/utils/rainbow.m4
-rw-r--r--gnuradio-core/src/utils/read_char_binary.m10
-rw-r--r--gnuradio-core/src/utils/read_complex_binary.m12
-rw-r--r--gnuradio-core/src/utils/read_cshort_binary.m10
-rw-r--r--gnuradio-core/src/utils/read_float_binary.m10
-rw-r--r--gnuradio-core/src/utils/read_int_binary.m10
-rw-r--r--gnuradio-core/src/utils/read_short_binary.m10
-rw-r--r--gnuradio-core/src/utils/read_xambi.m10
-rw-r--r--gnuradio-core/src/utils/single_pole_iir.m10
-rw-r--r--gnuradio-core/src/utils/split_vect.m2
-rw-r--r--gnuradio-core/src/utils/write_float_binary.m10
-rw-r--r--gnuradio-core/src/utils/write_short_binary.m10
-rw-r--r--gr-atsc/CMakeLists.txt8
-rw-r--r--gr-atsc/README12
-rw-r--r--gr-atsc/README.signal_flow6
-rw-r--r--gr-atsc/src/lib/GrAtscBitTimingLoop.cc24
-rw-r--r--gr-atsc/src/lib/GrAtscBitTimingLoop.h10
-rw-r--r--gr-atsc/src/lib/GrAtscBitTimingLoop2.cc22
-rw-r--r--gr-atsc/src/lib/GrAtscBitTimingLoop2.h8
-rw-r--r--gr-atsc/src/lib/GrAtscBitTimingLoop3.cc20
-rw-r--r--gr-atsc/src/lib/GrAtscBitTimingLoop3.h8
-rw-r--r--gr-atsc/src/lib/GrAtscConvert2xTo20.cc12
-rw-r--r--gr-atsc/src/lib/GrAtscConvert2xTo20.h10
-rw-r--r--gr-atsc/src/lib/GrAtscDataSegToSoftDataSeg.cc12
-rw-r--r--gr-atsc/src/lib/GrAtscDataSegToSoftDataSeg.h8
-rw-r--r--gr-atsc/src/lib/GrAtscDeinterleaver.cc12
-rw-r--r--gr-atsc/src/lib/GrAtscDeinterleaver.h8
-rw-r--r--gr-atsc/src/lib/GrAtscDerandomizer.cc16
-rw-r--r--gr-atsc/src/lib/GrAtscDerandomizer.h8
-rw-r--r--gr-atsc/src/lib/GrAtscEqualizer.cc28
-rw-r--r--gr-atsc/src/lib/GrAtscEqualizer.h8
-rw-r--r--gr-atsc/src/lib/GrAtscFPLL.cc14
-rw-r--r--gr-atsc/src/lib/GrAtscFPLL.h14
-rw-r--r--gr-atsc/src/lib/GrAtscFieldSyncChecker.cc14
-rw-r--r--gr-atsc/src/lib/GrAtscFieldSyncChecker.h8
-rw-r--r--gr-atsc/src/lib/GrAtscFieldSyncCorrelator.cc14
-rw-r--r--gr-atsc/src/lib/GrAtscFieldSyncCorrelator.h8
-rw-r--r--gr-atsc/src/lib/GrAtscFieldSyncDemux.cc22
-rw-r--r--gr-atsc/src/lib/GrAtscFieldSyncDemux.h8
-rw-r--r--gr-atsc/src/lib/GrAtscFieldSyncMux.cc22
-rw-r--r--gr-atsc/src/lib/GrAtscFieldSyncMux.h10
-rw-r--r--gr-atsc/src/lib/GrAtscInterleaver.cc14
-rw-r--r--gr-atsc/src/lib/GrAtscInterleaver.h8
-rw-r--r--gr-atsc/src/lib/GrAtscRSDecoder.cc14
-rw-r--r--gr-atsc/src/lib/GrAtscRSDecoder.h8
-rw-r--r--gr-atsc/src/lib/GrAtscRSEncoder.cc14
-rw-r--r--gr-atsc/src/lib/GrAtscRSEncoder.h8
-rw-r--r--gr-atsc/src/lib/GrAtscRandomizer.cc14
-rw-r--r--gr-atsc/src/lib/GrAtscRandomizer.h8
-rw-r--r--gr-atsc/src/lib/GrAtscSegSymSync.cc8
-rw-r--r--gr-atsc/src/lib/GrAtscSegSymSync.h10
-rw-r--r--gr-atsc/src/lib/GrAtscSegSymSyncImpl.cc10
-rw-r--r--gr-atsc/src/lib/GrAtscSegSymSyncImpl.h12
-rw-r--r--gr-atsc/src/lib/GrAtscSegSymSyncImpl_export.h8
-rw-r--r--gr-atsc/src/lib/GrAtscSymbolMapper.h14
-rw-r--r--gr-atsc/src/lib/GrAtscTrellisEncoder.cc16
-rw-r--r--gr-atsc/src/lib/GrAtscTrellisEncoder.h8
-rw-r--r--gr-atsc/src/lib/GrAtscViterbiDecoder.cc16
-rw-r--r--gr-atsc/src/lib/GrAtscViterbiDecoder.h8
-rw-r--r--gr-atsc/src/lib/atsc.i8
-rw-r--r--gr-atsc/src/lib/atsc_bit_timing_loop.cc10
-rw-r--r--gr-atsc/src/lib/atsc_bit_timing_loop.h8
-rw-r--r--gr-atsc/src/lib/atsc_consts.h10
-rw-r--r--gr-atsc/src/lib/atsc_deinterleaver.cc8
-rw-r--r--gr-atsc/src/lib/atsc_deinterleaver.h8
-rw-r--r--gr-atsc/src/lib/atsc_depad.cc8
-rw-r--r--gr-atsc/src/lib/atsc_depad.h8
-rw-r--r--gr-atsc/src/lib/atsc_derandomizer.cc8
-rw-r--r--gr-atsc/src/lib/atsc_derandomizer.h10
-rw-r--r--gr-atsc/src/lib/atsc_ds_to_softds.cc8
-rw-r--r--gr-atsc/src/lib/atsc_ds_to_softds.h8
-rw-r--r--gr-atsc/src/lib/atsc_equalizer.cc8
-rw-r--r--gr-atsc/src/lib/atsc_equalizer.h8
-rw-r--r--gr-atsc/src/lib/atsc_field_sync_demux.cc10
-rw-r--r--gr-atsc/src/lib/atsc_field_sync_demux.h8
-rw-r--r--gr-atsc/src/lib/atsc_field_sync_mux.cc12
-rw-r--r--gr-atsc/src/lib/atsc_field_sync_mux.h8
-rw-r--r--gr-atsc/src/lib/atsc_fpll.cc8
-rw-r--r--gr-atsc/src/lib/atsc_fpll.h8
-rw-r--r--gr-atsc/src/lib/atsc_fs_checker.cc8
-rw-r--r--gr-atsc/src/lib/atsc_fs_checker.h8
-rw-r--r--gr-atsc/src/lib/atsc_interleaver.cc8
-rw-r--r--gr-atsc/src/lib/atsc_interleaver.h10
-rw-r--r--gr-atsc/src/lib/atsc_pad.cc12
-rw-r--r--gr-atsc/src/lib/atsc_pad.h10
-rw-r--r--gr-atsc/src/lib/atsc_randomizer.cc8
-rw-r--r--gr-atsc/src/lib/atsc_randomizer.h8
-rw-r--r--gr-atsc/src/lib/atsc_rs_decoder.cc8
-rw-r--r--gr-atsc/src/lib/atsc_rs_decoder.h8
-rw-r--r--gr-atsc/src/lib/atsc_rs_encoder.cc8
-rw-r--r--gr-atsc/src/lib/atsc_rs_encoder.h8
-rw-r--r--gr-atsc/src/lib/atsc_trellis_encoder.cc8
-rw-r--r--gr-atsc/src/lib/atsc_trellis_encoder.h8
-rw-r--r--gr-atsc/src/lib/atsc_types.h14
-rw-r--r--gr-atsc/src/lib/atsc_viterbi_decoder.cc8
-rw-r--r--gr-atsc/src/lib/atsc_viterbi_decoder.h8
-rw-r--r--gr-atsc/src/lib/atsci_basic_trellis_encoder.cc10
-rw-r--r--gr-atsc/src/lib/atsci_basic_trellis_encoder.h8
-rw-r--r--gr-atsc/src/lib/atsci_data_interleaver.cc14
-rw-r--r--gr-atsc/src/lib/atsci_data_interleaver.h8
-rw-r--r--gr-atsc/src/lib/atsci_diag_output.h8
-rw-r--r--gr-atsc/src/lib/atsci_equalizer.cc24
-rw-r--r--gr-atsc/src/lib/atsci_equalizer.h26
-rw-r--r--gr-atsc/src/lib/atsci_equalizer_lms.cc34
-rw-r--r--gr-atsc/src/lib/atsci_equalizer_lms.h12
-rw-r--r--gr-atsc/src/lib/atsci_equalizer_lms2.cc44
-rw-r--r--gr-atsc/src/lib/atsci_equalizer_lms2.h12
-rw-r--r--gr-atsc/src/lib/atsci_equalizer_nop.cc22
-rw-r--r--gr-atsc/src/lib/atsci_equalizer_nop.h14
-rw-r--r--gr-atsc/src/lib/atsci_exp2_lp.cc20
-rw-r--r--gr-atsc/src/lib/atsci_exp2_lp.h8
-rw-r--r--gr-atsc/src/lib/atsci_exp2_lp20.dat4
-rw-r--r--gr-atsc/src/lib/atsci_exp2_lp2x.dat4
-rw-r--r--gr-atsc/src/lib/atsci_fake_single_viterbi.cc10
-rw-r--r--gr-atsc/src/lib/atsci_fake_single_viterbi.h12
-rw-r--r--gr-atsc/src/lib/atsci_fs_checker.cc8
-rw-r--r--gr-atsc/src/lib/atsci_fs_checker.h12
-rw-r--r--gr-atsc/src/lib/atsci_fs_checker_naive.cc12
-rw-r--r--gr-atsc/src/lib/atsci_fs_checker_naive.h10
-rw-r--r--gr-atsc/src/lib/atsci_fs_correlator.cc8
-rw-r--r--gr-atsc/src/lib/atsci_fs_correlator.h10
-rw-r--r--gr-atsc/src/lib/atsci_fs_correlator_naive.cc8
-rw-r--r--gr-atsc/src/lib/atsci_fs_correlator_naive.h10
-rw-r--r--gr-atsc/src/lib/atsci_pnXXX.cc10
-rw-r--r--gr-atsc/src/lib/atsci_pnXXX.h8
-rw-r--r--gr-atsc/src/lib/atsci_randomizer.cc14
-rw-r--r--gr-atsc/src/lib/atsci_randomizer.h20
-rw-r--r--gr-atsc/src/lib/atsci_reed_solomon.cc16
-rw-r--r--gr-atsc/src/lib/atsci_reed_solomon.h8
-rw-r--r--gr-atsc/src/lib/atsci_root_raised_cosine.cc10
-rw-r--r--gr-atsc/src/lib/atsci_root_raised_cosine.h8
-rw-r--r--gr-atsc/src/lib/atsci_root_raised_cosine_bandpass.cc12
-rw-r--r--gr-atsc/src/lib/atsci_root_raised_cosine_bandpass.h8
-rw-r--r--gr-atsc/src/lib/atsci_single_viterbi.cc14
-rw-r--r--gr-atsc/src/lib/atsci_single_viterbi.h12
-rw-r--r--gr-atsc/src/lib/atsci_slicer_agc.h12
-rw-r--r--gr-atsc/src/lib/atsci_sliding_correlator.cc8
-rw-r--r--gr-atsc/src/lib/atsci_sliding_correlator.h16
-rw-r--r--gr-atsc/src/lib/atsci_sssr.cc28
-rw-r--r--gr-atsc/src/lib/atsci_sssr.h30
-rw-r--r--gr-atsc/src/lib/atsci_syminfo.h8
-rw-r--r--gr-atsc/src/lib/atsci_sync_tag.h10
-rw-r--r--gr-atsc/src/lib/atsci_trellis_encoder.cc22
-rw-r--r--gr-atsc/src/lib/atsci_trellis_encoder.h12
-rw-r--r--gr-atsc/src/lib/atsci_viterbi_decoder.cc20
-rw-r--r--gr-atsc/src/lib/atsci_viterbi_decoder.h16
-rw-r--r--gr-atsc/src/lib/atsci_viterbi_gen.cc24
-rw-r--r--gr-atsc/src/lib/atsci_vsbtx_lp.cc12
-rw-r--r--gr-atsc/src/lib/atsci_vsbtx_lp.dat6
-rw-r--r--gr-atsc/src/lib/atsci_vsbtx_lp.h8
-rw-r--r--gr-atsc/src/lib/convolutional_interleaver.h12
-rw-r--r--gr-atsc/src/lib/create_atsci_equalizer.cc8
-rw-r--r--gr-atsc/src/lib/create_atsci_equalizer.h8
-rw-r--r--gr-atsc/src/lib/create_atsci_fs_checker.cc8
-rw-r--r--gr-atsc/src/lib/create_atsci_fs_checker.h8
-rw-r--r--gr-atsc/src/lib/create_atsci_fs_correlator.cc8
-rw-r--r--gr-atsc/src/lib/create_atsci_fs_correlator.h8
-rw-r--r--gr-atsc/src/lib/fpll_btloop_coupling.h8
-rwxr-xr-xgr-atsc/src/lib/gen_encoder.py14
-rw-r--r--gr-atsc/src/lib/interleaver_fifo.h10
-rw-r--r--gr-atsc/src/lib/plinfo.cc10
-rw-r--r--gr-atsc/src/lib/qa_atsci.cc10
-rw-r--r--gr-atsc/src/lib/qa_atsci.h8
-rw-r--r--gr-atsc/src/lib/qa_atsci_basic_trellis_encoder.cc8
-rw-r--r--gr-atsc/src/lib/qa_atsci_basic_trellis_encoder.h8
-rw-r--r--gr-atsc/src/lib/qa_atsci_data_interleaver.cc18
-rw-r--r--gr-atsc/src/lib/qa_atsci_data_interleaver.h10
-rw-r--r--gr-atsc/src/lib/qa_atsci_equalizer_nop.cc12
-rw-r--r--gr-atsc/src/lib/qa_atsci_equalizer_nop.h8
-rw-r--r--gr-atsc/src/lib/qa_atsci_fake_single_viterbi.cc16
-rw-r--r--gr-atsc/src/lib/qa_atsci_fake_single_viterbi.h10
-rw-r--r--gr-atsc/src/lib/qa_atsci_fs_correlator.cc18
-rw-r--r--gr-atsc/src/lib/qa_atsci_fs_correlator.h12
-rw-r--r--gr-atsc/src/lib/qa_atsci_randomizer.cc12
-rw-r--r--gr-atsc/src/lib/qa_atsci_randomizer.h12
-rw-r--r--gr-atsc/src/lib/qa_atsci_reed_solomon.cc8
-rw-r--r--gr-atsc/src/lib/qa_atsci_reed_solomon.h8
-rw-r--r--gr-atsc/src/lib/qa_atsci_single_viterbi.cc24
-rw-r--r--gr-atsc/src/lib/qa_atsci_single_viterbi.h10
-rw-r--r--gr-atsc/src/lib/qa_atsci_sliding_correlator.cc8
-rw-r--r--gr-atsc/src/lib/qa_atsci_sliding_correlator.h12
-rw-r--r--gr-atsc/src/lib/qa_atsci_trellis_encoder.cc12
-rw-r--r--gr-atsc/src/lib/qa_atsci_trellis_encoder.h12
-rw-r--r--gr-atsc/src/lib/qa_atsci_viterbi_decoder.cc16
-rw-r--r--gr-atsc/src/lib/qa_atsci_viterbi_decoder.h12
-rw-r--r--gr-atsc/src/lib/qa_convolutional_interleaver.cc16
-rw-r--r--gr-atsc/src/lib/qa_convolutional_interleaver.h10
-rw-r--r--gr-atsc/src/lib/qa_interleaver_fifo.cc10
-rw-r--r--gr-atsc/src/lib/qa_interleaver_fifo.h10
-rw-r--r--gr-atsc/src/lib/test_atsci.cc12
-rw-r--r--gr-atsc/src/python/CMakeLists.txt8
-rw-r--r--gr-atsc/src/python/README2
-rw-r--r--gr-atsc/src/python/atsc_utils.py12
-rwxr-xr-xgr-atsc/src/python/btl-fsd.py10
-rwxr-xr-xgr-atsc/src/python/fpll.py12
-rwxr-xr-xgr-atsc/src/python/interp.py12
-rwxr-xr-xgr-atsc/src/python/interp_short.py10
-rwxr-xr-xgr-atsc/src/python/qa_atsc.py22
-rwxr-xr-xgr-atsc/src/python/viterbi-out.py12
-rwxr-xr-xgr-atsc/src/python/xlate.py10
-rw-r--r--gr-audio/CMakeLists.txt8
-rw-r--r--gr-audio/doc/CMakeLists.txt8
-rw-r--r--gr-audio/doc/README.audio2
-rw-r--r--gr-audio/examples/c++/CMakeLists.txt8
-rw-r--r--gr-audio/examples/c++/dial_tone.cc8
-rwxr-xr-xgr-audio/examples/python/audio_copy.py12
-rwxr-xr-xgr-audio/examples/python/audio_fft.py26
-rwxr-xr-xgr-audio/examples/python/audio_play.py10
-rwxr-xr-xgr-audio/examples/python/audio_to_file.py12
-rwxr-xr-xgr-audio/examples/python/dial_tone.py10
-rwxr-xr-xgr-audio/examples/python/dial_tone_daemon.py10
-rwxr-xr-xgr-audio/examples/python/dial_tone_wav.py10
-rwxr-xr-xgr-audio/examples/python/mono_tone.py12
-rwxr-xr-xgr-audio/examples/python/multi_tone.py12
-rwxr-xr-xgr-audio/examples/python/noise.py10
-rwxr-xr-xgr-audio/examples/python/spectrum_inversion.py8
-rwxr-xr-xgr-audio/examples/python/test_resampler.py10
-rw-r--r--gr-audio/grc/CMakeLists.txt8
-rw-r--r--gr-audio/include/CMakeLists.txt8
-rw-r--r--gr-audio/include/gr_audio_api.h8
-rw-r--r--gr-audio/include/gr_audio_sink.h8
-rw-r--r--gr-audio/include/gr_audio_source.h8
-rw-r--r--gr-audio/lib/CMakeLists.txt8
-rw-r--r--gr-audio/lib/alsa/audio_alsa_sink.cc42
-rw-r--r--gr-audio/lib/alsa/audio_alsa_sink.h10
-rw-r--r--gr-audio/lib/alsa/audio_alsa_source.cc36
-rw-r--r--gr-audio/lib/alsa/audio_alsa_source.h10
-rw-r--r--gr-audio/lib/alsa/gri_alsa.cc12
-rw-r--r--gr-audio/lib/alsa/gri_alsa.h10
-rw-r--r--gr-audio/lib/gr_audio_registry.cc8
-rw-r--r--gr-audio/lib/gr_audio_registry.h8
-rw-r--r--gr-audio/lib/jack/audio_jack_sink.cc26
-rw-r--r--gr-audio/lib/jack/audio_jack_sink.h10
-rw-r--r--gr-audio/lib/jack/audio_jack_source.cc22
-rw-r--r--gr-audio/lib/jack/audio_jack_source.h10
-rw-r--r--gr-audio/lib/jack/gri_jack.cc8
-rw-r--r--gr-audio/lib/jack/gri_jack.h8
-rw-r--r--gr-audio/lib/oss/audio_oss_sink.cc14
-rw-r--r--gr-audio/lib/oss/audio_oss_sink.h10
-rw-r--r--gr-audio/lib/oss/audio_oss_source.cc14
-rw-r--r--gr-audio/lib/oss/audio_oss_source.h10
-rw-r--r--gr-audio/lib/osx/audio_osx.h6
-rw-r--r--gr-audio/lib/osx/audio_osx_sink.cc22
-rw-r--r--gr-audio/lib/osx/audio_osx_sink.h16
-rw-r--r--gr-audio/lib/osx/audio_osx_source.cc24
-rw-r--r--gr-audio/lib/osx/audio_osx_source.h8
-rw-r--r--gr-audio/lib/osx/circular_buffer.h6
-rw-r--r--gr-audio/lib/portaudio/audio_portaudio_sink.cc22
-rw-r--r--gr-audio/lib/portaudio/audio_portaudio_sink.h10
-rw-r--r--gr-audio/lib/portaudio/audio_portaudio_source.cc24
-rw-r--r--gr-audio/lib/portaudio/audio_portaudio_source.h10
-rw-r--r--gr-audio/lib/portaudio/gri_portaudio.cc12
-rw-r--r--gr-audio/lib/portaudio/gri_portaudio.h8
-rw-r--r--gr-audio/swig/CMakeLists.txt8
-rw-r--r--gr-audio/swig/__init__.py8
-rw-r--r--gr-audio/swig/audio_swig.i8
-rw-r--r--gr-comedi/CMakeLists.txt8
-rw-r--r--gr-comedi/src/CMakeLists.txt8
-rw-r--r--gr-comedi/src/comedi.i8
-rw-r--r--gr-comedi/src/comedi_sink_s.cc10
-rw-r--r--gr-comedi/src/comedi_sink_s.h10
-rw-r--r--gr-comedi/src/comedi_source_s.cc12
-rw-r--r--gr-comedi/src/comedi_source_s.h10
-rw-r--r--gr-comedi/src/gri_comedi.cc8
-rw-r--r--gr-comedi/src/gri_comedi.h8
-rwxr-xr-xgr-comedi/src/qa_comedi.py12
-rw-r--r--gr-fcd/CMakeLists.txt10
-rw-r--r--gr-fcd/doc/CMakeLists.txt8
-rw-r--r--gr-fcd/doc/README.fcd2
-rw-r--r--gr-fcd/doc/fcd.dox2
-rw-r--r--gr-fcd/examples/c++/fcd_nfm_rx.cc12
-rw-r--r--gr-fcd/grc/CMakeLists.txt8
-rw-r--r--gr-fcd/include/fcd/fcd_source_c.h42
-rw-r--r--gr-fcd/lib/fcd/fcd.c4
-rw-r--r--gr-fcd/lib/fcd/fcdhidcmd.h2
-rw-r--r--gr-fcd/lib/fcd_source_c_impl.cc50
-rw-r--r--gr-fcd/lib/fcd_source_c_impl.h10
-rw-r--r--gr-fcd/lib/hid/hid-libusb.c174
-rw-r--r--gr-fcd/lib/hid/hidapi.h2
-rw-r--r--gr-fcd/lib/hid/hidmac.c128
-rw-r--r--gr-fcd/lib/hid/hidwin.c40
-rw-r--r--gr-fcd/python/CMakeLists.txt8
-rw-r--r--gr-fcd/python/__init__.py10
-rwxr-xr-xgr-fcd/python/qa_fcd.py12
-rw-r--r--gr-fcd/swig/fcd_swig.i8
-rw-r--r--gr-howto-write-a-block/CMakeLists.txt8
-rw-r--r--gr-howto-write-a-block/apps/CMakeLists.txt8
-rw-r--r--gr-howto-write-a-block/cmake/Modules/GrMiscUtils.cmake8
-rw-r--r--gr-howto-write-a-block/cmake/Modules/GrPlatform.cmake8
-rw-r--r--gr-howto-write-a-block/cmake/Modules/GrSwig.cmake8
-rw-r--r--gr-howto-write-a-block/cmake/Modules/GrTest.cmake8
-rw-r--r--gr-howto-write-a-block/docs/CMakeLists.txt8
-rw-r--r--gr-howto-write-a-block/docs/doxygen/CMakeLists.txt8
-rw-r--r--gr-howto-write-a-block/docs/doxygen/Doxyfile.in1228
-rw-r--r--gr-howto-write-a-block/docs/doxygen/doxyxml/__init__.py14
-rw-r--r--gr-howto-write-a-block/docs/doxygen/doxyxml/base.py18
-rw-r--r--gr-howto-write-a-block/docs/doxygen/doxyxml/doxyindex.py42
-rw-r--r--gr-howto-write-a-block/docs/doxygen/doxyxml/example/aadvark.cc8
-rw-r--r--gr-howto-write-a-block/docs/doxygen/doxyxml/example/aadvark.h8
-rw-r--r--gr-howto-write-a-block/docs/doxygen/doxyxml/example/xml/combine.xslt2
-rw-r--r--gr-howto-write-a-block/docs/doxygen/doxyxml/example/xml/compound.xsd34
-rw-r--r--gr-howto-write-a-block/docs/doxygen/doxyxml/example/xml/index.xsd2
-rw-r--r--gr-howto-write-a-block/docs/doxygen/doxyxml/text.py10
-rw-r--r--gr-howto-write-a-block/docs/doxygen/other/group_defs.dox4
-rw-r--r--gr-howto-write-a-block/docs/doxygen/swig_doc.py18
-rw-r--r--gr-howto-write-a-block/grc/CMakeLists.txt8
-rw-r--r--gr-howto-write-a-block/include/howto_square2_ff.h8
-rw-r--r--gr-howto-write-a-block/include/howto_square_ff.h8
-rw-r--r--gr-howto-write-a-block/lib/howto_square2_ff.cc12
-rw-r--r--gr-howto-write-a-block/lib/howto_square_ff.cc12
-rw-r--r--gr-howto-write-a-block/lib/qa_howto_square2_ff.cc8
-rw-r--r--gr-howto-write-a-block/lib/qa_howto_square_ff.cc8
-rw-r--r--gr-howto-write-a-block/python/CMakeLists.txt8
-rw-r--r--gr-howto-write-a-block/python/__init__.py8
-rwxr-xr-xgr-howto-write-a-block/python/qa_howto.py12
-rw-r--r--gr-noaa/CMakeLists.txt8
-rw-r--r--gr-noaa/grc/CMakeLists.txt8
-rw-r--r--gr-noaa/lib/noaa_hrpt.h8
-rw-r--r--gr-noaa/lib/noaa_hrpt_decoder.cc10
-rw-r--r--gr-noaa/lib/noaa_hrpt_decoder.h8
-rw-r--r--gr-noaa/lib/noaa_hrpt_deframer.cc14
-rw-r--r--gr-noaa/lib/noaa_hrpt_deframer.h10
-rw-r--r--gr-noaa/lib/noaa_hrpt_pll_cf.cc8
-rw-r--r--gr-noaa/lib/noaa_hrpt_pll_cf.h8
-rw-r--r--gr-noaa/oct/frames_to_ppm.m20
-rw-r--r--gr-noaa/swig/__init__.py10
-rw-r--r--gr-noaa/swig/noaa_hrpt_decoder.i8
-rw-r--r--gr-noaa/swig/noaa_hrpt_deframer.i8
-rw-r--r--gr-noaa/swig/noaa_hrpt_pll_cf.i8
-rw-r--r--gr-noaa/swig/noaa_swig.i8
-rw-r--r--gr-pager/CMakeLists.txt8
-rw-r--r--gr-pager/README12
-rw-r--r--gr-pager/apps/CMakeLists.txt8
-rwxr-xr-xgr-pager/apps/usrp_flex28
-rwxr-xr-xgr-pager/apps/usrp_flex_all20
-rwxr-xr-xgr-pager/apps/usrp_flex_band18
-rw-r--r--gr-pager/grc/CMakeLists.txt8
-rw-r--r--gr-pager/lib/pager_flex_deinterleave.cc20
-rw-r--r--gr-pager/lib/pager_flex_deinterleave.h12
-rw-r--r--gr-pager/lib/pager_flex_frame.cc8
-rw-r--r--gr-pager/lib/pager_flex_frame.h8
-rw-r--r--gr-pager/lib/pager_flex_parse.cc36
-rw-r--r--gr-pager/lib/pager_flex_parse.h16
-rw-r--r--gr-pager/lib/pager_flex_sync.cc42
-rw-r--r--gr-pager/lib/pager_flex_sync.h28
-rw-r--r--gr-pager/lib/pager_slicer_fb.cc10
-rw-r--r--gr-pager/lib/pager_slicer_fb.h10
-rw-r--r--gr-pager/lib/pageri_bch3221.cc8
-rw-r--r--gr-pager/lib/pageri_bch3221.h8
-rw-r--r--gr-pager/lib/pageri_flex_modes.cc12
-rw-r--r--gr-pager/lib/pageri_flex_modes.h8
-rw-r--r--gr-pager/lib/pageri_util.cc12
-rw-r--r--gr-pager/lib/pageri_util.h8
-rw-r--r--gr-pager/python/CMakeLists.txt8
-rw-r--r--gr-pager/python/__init__.py10
-rw-r--r--gr-pager/python/flex_demod.py15
-rw-r--r--gr-pager/python/pager_utils.py12
-rwxr-xr-xgr-pager/python/qa_pager.py10
-rw-r--r--gr-pager/swig/pager_flex_frame.i8
-rw-r--r--gr-pager/swig/pager_swig.i8
-rw-r--r--gr-qtgui/CMakeLists.txt8
-rwxr-xr-xgr-qtgui/apps/uhd_display.py34
-rw-r--r--gr-qtgui/doc/CMakeLists.txt8
-rw-r--r--gr-qtgui/doc/README.qtgui2
-rw-r--r--gr-qtgui/doc/qtgui.dox2
-rw-r--r--gr-qtgui/examples/CMakeLists.txt8
-rwxr-xr-xgr-qtgui/examples/pyqt_example_c.py18
-rwxr-xr-xgr-qtgui/examples/pyqt_example_f.py16
-rwxr-xr-xgr-qtgui/examples/pyqt_time_c.py18
-rwxr-xr-xgr-qtgui/examples/pyqt_time_f.py18
-rw-r--r--gr-qtgui/grc/CMakeLists.txt8
-rw-r--r--gr-qtgui/include/qtgui_sink_c.h18
-rw-r--r--gr-qtgui/include/qtgui_sink_f.h14
-rw-r--r--gr-qtgui/include/qtgui_time_sink_c.h10
-rw-r--r--gr-qtgui/include/qtgui_time_sink_f.h10
-rw-r--r--gr-qtgui/include/qtgui_util.h4
-rw-r--r--gr-qtgui/lib/ConstellationDisplayPlot.cc26
-rw-r--r--gr-qtgui/lib/ConstellationDisplayPlot.h16
-rw-r--r--gr-qtgui/lib/FrequencyDisplayPlot.cc44
-rw-r--r--gr-qtgui/lib/FrequencyDisplayPlot.h26
-rw-r--r--gr-qtgui/lib/SpectrumGUIClass.cc24
-rw-r--r--gr-qtgui/lib/SpectrumGUIClass.h10
-rw-r--r--gr-qtgui/lib/TimeDomainDisplayPlot.cc22
-rw-r--r--gr-qtgui/lib/TimeDomainDisplayPlot.h18
-rw-r--r--gr-qtgui/lib/WaterfallDisplayPlot.cc84
-rw-r--r--gr-qtgui/lib/WaterfallDisplayPlot.h14
-rw-r--r--gr-qtgui/lib/plot_waterfall.cc26
-rw-r--r--gr-qtgui/lib/plot_waterfall.h6
-rw-r--r--gr-qtgui/lib/qtgui_sink_c.cc42
-rw-r--r--gr-qtgui/lib/qtgui_sink_f.cc36
-rw-r--r--gr-qtgui/lib/qtgui_time_sink_c.cc20
-rw-r--r--gr-qtgui/lib/qtgui_time_sink_f.cc20
-rw-r--r--gr-qtgui/lib/spectrumUpdateEvents.cc2
-rw-r--r--gr-qtgui/lib/spectrumUpdateEvents.h2
-rw-r--r--gr-qtgui/lib/spectrumdisplayform.cc72
-rw-r--r--gr-qtgui/lib/spectrumdisplayform.h16
-rw-r--r--gr-qtgui/lib/timedisplayform.cc14
-rw-r--r--gr-qtgui/lib/timedisplayform.h14
-rw-r--r--gr-qtgui/lib/waterfallGlobalData.cc30
-rw-r--r--gr-qtgui/lib/waterfallGlobalData.h12
-rw-r--r--gr-qtgui/python/__init__.py10
-rwxr-xr-xgr-qtgui/python/qa_qtgui.py20
-rw-r--r--gr-qtgui/swig/CMakeLists.txt8
-rw-r--r--gr-qtgui/swig/__init__.py10
-rw-r--r--gr-qtgui/swig/qtgui_sink_c.i10
-rw-r--r--gr-qtgui/swig/qtgui_sink_f.i10
-rw-r--r--gr-qtgui/swig/qtgui_swig.i8
-rw-r--r--gr-qtgui/swig/qtgui_time_sink_c.i10
-rw-r--r--gr-qtgui/swig/qtgui_time_sink_f.i10
-rw-r--r--gr-shd/CMakeLists.txt8
-rwxr-xr-xgr-shd/apps/shd_fft38
-rwxr-xr-xgr-shd/apps/shd_rx_cfile24
-rwxr-xr-xgr-shd/apps/shd_siggen20
-rw-r--r--gr-shd/grc/CMakeLists.txt8
-rw-r--r--gr-shd/include/CMakeLists.txt8
-rw-r--r--gr-shd/include/gr_shd_api.h8
-rw-r--r--gr-shd/include/gr_shd_smini_sink.h52
-rw-r--r--gr-shd/include/gr_shd_smini_source.h66
-rw-r--r--gr-shd/lib/CMakeLists.txt8
-rw-r--r--gr-shd/lib/gr_shd_smini_sink.cc78
-rw-r--r--gr-shd/lib/gr_shd_smini_source.cc38
-rw-r--r--gr-shd/swig/__init__.py8
-rwxr-xr-xgr-shd/swig/qa_shd.py12
-rw-r--r--gr-shd/swig/shd_swig.i8
-rw-r--r--gr-trellis/CMakeLists.txt8
-rw-r--r--gr-trellis/README10
-rw-r--r--gr-trellis/doc/CMakeLists.txt8
-rw-r--r--gr-trellis/doc/gr-trellis.xml220
-rwxr-xr-xgr-trellis/doc/make_numbered_listing.py2
-rw-r--r--gr-trellis/doc/test_tcm.py12
-rw-r--r--gr-trellis/doc/test_tcm.py.xml36
-rwxr-xr-xgr-trellis/doc/test_viterbi_equalization1.py6
-rw-r--r--gr-trellis/doc/test_viterbi_equalization1.py.xml36
-rw-r--r--gr-trellis/grc/trellis_pccc_decoder_combined_xx.xml6
-rw-r--r--gr-trellis/grc/trellis_pccc_decoder_x.xml8
-rw-r--r--gr-trellis/grc/trellis_permutation.xml4
-rw-r--r--gr-trellis/grc/trellis_sccc_decoder_combined_xx.xml6
-rw-r--r--gr-trellis/grc/trellis_sccc_decoder_x.xml8
-rw-r--r--gr-trellis/src/examples/grc/CMakeLists.txt8
-rw-r--r--gr-trellis/src/examples/grc/readme.txt8
-rw-r--r--gr-trellis/src/examples/python/README8
-rw-r--r--gr-trellis/src/examples/python/fsm_files/awgn1o2_128.fsm512
-rw-r--r--gr-trellis/src/examples/python/fsm_files/awgn2o3_4_msb.fsm2
-rw-r--r--gr-trellis/src/examples/python/fsm_files/joint_16_16.fsm1024
-rw-r--r--gr-trellis/src/examples/python/fsm_files/joint_4_16.fsm256
-rwxr-xr-xgr-trellis/src/examples/python/fsm_utils.py14
-rwxr-xr-xgr-trellis/src/examples/python/test_cpm.py4
-rwxr-xr-xgr-trellis/src/examples/python/test_pccc_turbo1.py10
-rwxr-xr-xgr-trellis/src/examples/python/test_sccc_hard.py8
-rwxr-xr-xgr-trellis/src/examples/python/test_sccc_soft.py8
-rwxr-xr-xgr-trellis/src/examples/python/test_sccc_turbo.py10
-rwxr-xr-xgr-trellis/src/examples/python/test_sccc_turbo1.py10
-rwxr-xr-xgr-trellis/src/examples/python/test_sccc_turbo2.py10
-rwxr-xr-xgr-trellis/src/examples/python/test_tcm.py16
-rwxr-xr-xgr-trellis/src/examples/python/test_tcm_bit.py18
-rwxr-xr-xgr-trellis/src/examples/python/test_tcm_combined.py16
-rwxr-xr-xgr-trellis/src/examples/python/test_tcm_parallel.py8
-rwxr-xr-xgr-trellis/src/examples/python/test_turbo_equalization.py16
-rwxr-xr-xgr-trellis/src/examples/python/test_turbo_equalization1.py12
-rwxr-xr-xgr-trellis/src/examples/python/test_turbo_equalization2.py14
-rwxr-xr-xgr-trellis/src/examples/python/test_viterbi_equalization.py12
-rwxr-xr-xgr-trellis/src/examples/python/test_viterbi_equalization1.py6
-rw-r--r--gr-trellis/src/lib/calc_metric.cc14
-rw-r--r--gr-trellis/src/lib/calc_metric.h10
-rw-r--r--gr-trellis/src/lib/core_algorithms.cc72
-rw-r--r--gr-trellis/src/lib/core_algorithms.h12
-rw-r--r--gr-trellis/src/lib/fsm.cc38
-rw-r--r--gr-trellis/src/lib/fsm.h6
-rw-r--r--gr-trellis/src/lib/generate_all.py10
-rw-r--r--gr-trellis/src/lib/generate_trellis.py10
-rw-r--r--gr-trellis/src/lib/interleaver.cc16
-rw-r--r--gr-trellis/src/lib/interleaver.i76
-rw-r--r--gr-trellis/src/lib/quicksort_index.cc8
-rw-r--r--gr-trellis/src/lib/quicksort_index.h8
-rw-r--r--gr-trellis/src/lib/trellis_constellation_metrics_cf.cc12
-rw-r--r--gr-trellis/src/lib/trellis_constellation_metrics_cf.h10
-rw-r--r--gr-trellis/src/lib/trellis_encoder_XX.cc.t12
-rw-r--r--gr-trellis/src/lib/trellis_encoder_XX.h.t10
-rw-r--r--gr-trellis/src/lib/trellis_metrics_X.cc.t10
-rw-r--r--gr-trellis/src/lib/trellis_metrics_X.h.t8
-rw-r--r--gr-trellis/src/lib/trellis_pccc_decoder_X.cc.t16
-rw-r--r--gr-trellis/src/lib/trellis_pccc_decoder_X.h.t12
-rw-r--r--gr-trellis/src/lib/trellis_pccc_decoder_combined_XX.cc.t20
-rw-r--r--gr-trellis/src/lib/trellis_pccc_decoder_combined_XX.h.t12
-rw-r--r--gr-trellis/src/lib/trellis_pccc_encoder_XX.cc.t14
-rw-r--r--gr-trellis/src/lib/trellis_pccc_encoder_XX.h.t10
-rw-r--r--gr-trellis/src/lib/trellis_permutation.cc18
-rw-r--r--gr-trellis/src/lib/trellis_permutation.h10
-rw-r--r--gr-trellis/src/lib/trellis_permutation.i10
-rw-r--r--gr-trellis/src/lib/trellis_sccc_decoder_X.cc.t16
-rw-r--r--gr-trellis/src/lib/trellis_sccc_decoder_X.h.t12
-rw-r--r--gr-trellis/src/lib/trellis_sccc_decoder_combined_XX.cc.t20
-rw-r--r--gr-trellis/src/lib/trellis_sccc_decoder_combined_XX.h.t12
-rw-r--r--gr-trellis/src/lib/trellis_sccc_encoder_XX.cc.t14
-rw-r--r--gr-trellis/src/lib/trellis_sccc_encoder_XX.h.t10
-rw-r--r--gr-trellis/src/lib/trellis_siso_combined_f.cc40
-rw-r--r--gr-trellis/src/lib/trellis_siso_combined_f.h10
-rw-r--r--gr-trellis/src/lib/trellis_siso_f.cc40
-rw-r--r--gr-trellis/src/lib/trellis_siso_f.h10
-rw-r--r--gr-trellis/src/lib/trellis_viterbi_X.cc.t20
-rw-r--r--gr-trellis/src/lib/trellis_viterbi_X.h.t10
-rw-r--r--gr-trellis/src/lib/trellis_viterbi_combined_XX.cc.t24
-rw-r--r--gr-trellis/src/lib/trellis_viterbi_combined_XX.h.t8
-rw-r--r--gr-trellis/src/python/CMakeLists.txt8
-rwxr-xr-xgr-trellis/src/python/qa_trellis.py20
-rw-r--r--gr-uhd/CMakeLists.txt8
-rwxr-xr-xgr-uhd/apps/hf_explorer/hfx.py22
-rw-r--r--gr-uhd/apps/hf_explorer/hfx_help14
-rw-r--r--gr-uhd/apps/hf_radio/README.TXT14
-rw-r--r--gr-uhd/apps/hf_radio/hfir.sci2
-rw-r--r--gr-uhd/apps/hf_radio/input.py16
-rw-r--r--gr-uhd/apps/hf_radio/output.py14
-rwxr-xr-xgr-uhd/apps/hf_radio/radio.py24
-rw-r--r--gr-uhd/apps/hf_radio/ssbagc.py10
-rw-r--r--gr-uhd/apps/hf_radio/ssbdemod.py18
-rwxr-xr-xgr-uhd/apps/hf_radio/ui.py10
-rwxr-xr-xgr-uhd/apps/uhd_fft46
-rwxr-xr-xgr-uhd/apps/uhd_rx_cfile22
-rwxr-xr-xgr-uhd/apps/uhd_rx_nogui38
-rwxr-xr-xgr-uhd/apps/uhd_siggen12
-rw-r--r--gr-uhd/apps/uhd_siggen_base.py24
-rwxr-xr-xgr-uhd/apps/uhd_siggen_gui12
-rw-r--r--gr-uhd/doc/CMakeLists.txt8
-rw-r--r--gr-uhd/doc/README.uhd2
-rw-r--r--gr-uhd/doc/uhd.dox2
-rw-r--r--gr-uhd/examples/c++/tag_sink_demo.h8
-rw-r--r--gr-uhd/examples/c++/tag_source_demo.h8
-rw-r--r--gr-uhd/examples/c++/tags_demo.cc8
-rwxr-xr-xgr-uhd/examples/python/fm_tx4.py20
-rwxr-xr-xgr-uhd/examples/python/fm_tx_2_daughterboards.py16
-rwxr-xr-xgr-uhd/examples/python/max_power.py12
-rwxr-xr-xgr-uhd/examples/python/usrp_am_mw_rcv.py42
-rwxr-xr-xgr-uhd/examples/python/usrp_nbfm_ptt.py42
-rwxr-xr-xgr-uhd/examples/python/usrp_nbfm_rcv.py38
-rwxr-xr-xgr-uhd/examples/python/usrp_spectrum_sense.py26
-rwxr-xr-xgr-uhd/examples/python/usrp_tv_rcv.py48
-rwxr-xr-xgr-uhd/examples/python/usrp_tv_rcv_nogui.py22
-rwxr-xr-xgr-uhd/examples/python/usrp_wfm_rcv.py34
-rwxr-xr-xgr-uhd/examples/python/usrp_wfm_rcv2_nogui.py16
-rwxr-xr-xgr-uhd/examples/python/usrp_wfm_rcv_fmdet.py34
-rwxr-xr-xgr-uhd/examples/python/usrp_wfm_rcv_nogui.py20
-rwxr-xr-xgr-uhd/examples/python/usrp_wfm_rcv_pll.py36
-rwxr-xr-xgr-uhd/examples/python/usrp_wfm_rcv_sca.py14
-rwxr-xr-xgr-uhd/examples/python/usrp_wxapt_rcv.py28
-rw-r--r--gr-uhd/grc/CMakeLists.txt8
-rw-r--r--gr-uhd/include/CMakeLists.txt8
-rw-r--r--gr-uhd/include/gr_uhd_amsg_source.h8
-rw-r--r--gr-uhd/include/gr_uhd_api.h8
-rw-r--r--gr-uhd/include/gr_uhd_usrp_sink.h8
-rw-r--r--gr-uhd/include/gr_uhd_usrp_source.h8
-rw-r--r--gr-uhd/lib/CMakeLists.txt8
-rw-r--r--gr-uhd/lib/gr_uhd_amsg_source.cc8
-rw-r--r--gr-uhd/lib/gr_uhd_common.h8
-rw-r--r--gr-uhd/lib/gr_uhd_usrp_sink.cc8
-rw-r--r--gr-uhd/lib/gr_uhd_usrp_source.cc8
-rw-r--r--gr-uhd/swig/__init__.py8
-rwxr-xr-xgr-uhd/swig/qa_uhd.py12
-rw-r--r--gr-uhd/swig/uhd_swig.i8
-rwxr-xr-xgr-utils/src/python/gr_filter_design60
-rwxr-xr-xgr-utils/src/python/gr_plot_char14
-rwxr-xr-xgr-utils/src/python/gr_plot_const38
-rw-r--r--gr-utils/src/python/gr_plot_fft10
-rwxr-xr-xgr-utils/src/python/gr_plot_fft_c14
-rwxr-xr-xgr-utils/src/python/gr_plot_fft_f14
-rwxr-xr-xgr-utils/src/python/gr_plot_float14
-rwxr-xr-xgr-utils/src/python/gr_plot_int14
-rwxr-xr-xgr-utils/src/python/gr_plot_iq28
-rw-r--r--gr-utils/src/python/gr_plot_psd10
-rwxr-xr-xgr-utils/src/python/gr_plot_psd_c12
-rwxr-xr-xgr-utils/src/python/gr_plot_psd_f12
-rwxr-xr-xgr-utils/src/python/gr_plot_qt42
-rwxr-xr-xgr-utils/src/python/gr_plot_short14
-rw-r--r--gr-utils/src/python/plot_data.py26
-rwxr-xr-xgr-utils/src/python/plot_fft_base.py30
-rwxr-xr-xgr-utils/src/python/plot_psd_base.py36
-rw-r--r--gr-video-sdl/CMakeLists.txt8
-rw-r--r--gr-video-sdl/src/CMakeLists.txt8
-rwxr-xr-xgr-video-sdl/src/qa_video_sdl.py12
-rw-r--r--gr-video-sdl/src/video_sdl.i8
-rw-r--r--gr-video-sdl/src/video_sdl_sink_s.cc28
-rw-r--r--gr-video-sdl/src/video_sdl_sink_s.h10
-rw-r--r--gr-video-sdl/src/video_sdl_sink_uc.cc34
-rw-r--r--gr-video-sdl/src/video_sdl_sink_uc.h10
-rw-r--r--gr-vocoder/CMakeLists.txt8
-rw-r--r--gr-vocoder/doc/CMakeLists.txt8
-rw-r--r--gr-vocoder/doc/README.vocoder2
-rwxr-xr-xgr-vocoder/examples/alaw_audio_loopback.py10
-rwxr-xr-xgr-vocoder/examples/codec2_audio_loopback.py10
-rwxr-xr-xgr-vocoder/examples/cvsd_audio_loopback.py14
-rwxr-xr-xgr-vocoder/examples/g721_audio_loopback.py10
-rwxr-xr-xgr-vocoder/examples/g723_24_audio_loopback.py10
-rwxr-xr-xgr-vocoder/examples/g723_40_audio_loopback.py10
-rwxr-xr-xgr-vocoder/examples/gsm_audio_loopback.py10
-rwxr-xr-xgr-vocoder/examples/ulaw_audio_loopback.py10
-rw-r--r--gr-vocoder/grc/vocoder_block_tree.xml8
-rw-r--r--gr-vocoder/include/CMakeLists.txt8
-rw-r--r--gr-vocoder/include/vocoder_alaw_decode_bs.h10
-rw-r--r--gr-vocoder/include/vocoder_alaw_encode_sb.h10
-rw-r--r--gr-vocoder/include/vocoder_codec2_decode_ps.h8
-rw-r--r--gr-vocoder/include/vocoder_codec2_encode_sp.h8
-rw-r--r--gr-vocoder/include/vocoder_cvsd_decode_bs.h12
-rw-r--r--gr-vocoder/include/vocoder_cvsd_encode_sb.h16
-rw-r--r--gr-vocoder/include/vocoder_g721_decode_bs.h10
-rw-r--r--gr-vocoder/include/vocoder_g721_encode_sb.h10
-rw-r--r--gr-vocoder/include/vocoder_g723_24_decode_bs.h10
-rw-r--r--gr-vocoder/include/vocoder_g723_24_encode_sb.h10
-rw-r--r--gr-vocoder/include/vocoder_g723_40_decode_bs.h10
-rw-r--r--gr-vocoder/include/vocoder_g723_40_encode_sb.h10
-rw-r--r--gr-vocoder/include/vocoder_gsm_fr_decode_ps.h8
-rw-r--r--gr-vocoder/include/vocoder_gsm_fr_encode_sp.h8
-rw-r--r--gr-vocoder/include/vocoder_ulaw_decode_bs.h10
-rw-r--r--gr-vocoder/include/vocoder_ulaw_encode_sb.h10
-rw-r--r--gr-vocoder/lib/codec2/CMakeLists.txt2
-rw-r--r--gr-vocoder/lib/codec2/_kiss_fft_guts.h8
-rw-r--r--gr-vocoder/lib/codec2/c2dec.c2
-rw-r--r--gr-vocoder/lib/codec2/c2demo.c4
-rw-r--r--gr-vocoder/lib/codec2/c2enc.c2
-rw-r--r--gr-vocoder/lib/codec2/c2sim.c60
-rw-r--r--gr-vocoder/lib/codec2/codebook/lsp8910.txt128
-rw-r--r--gr-vocoder/lib/codec2/codec2.c74
-rw-r--r--gr-vocoder/lib/codec2/codec2.h2
-rw-r--r--gr-vocoder/lib/codec2/codec2_internal.h4
-rw-r--r--gr-vocoder/lib/codec2/comp.h8
-rw-r--r--gr-vocoder/lib/codec2/defines.h24
-rw-r--r--gr-vocoder/lib/codec2/dump.c54
-rw-r--r--gr-vocoder/lib/codec2/dump.h8
-rw-r--r--gr-vocoder/lib/codec2/fft.c32
-rw-r--r--gr-vocoder/lib/codec2/fft.h2
-rwxr-xr-xgr-vocoder/lib/codec2/fq20.sh2
-rw-r--r--gr-vocoder/lib/codec2/generate_codebook.c10
-rw-r--r--gr-vocoder/lib/codec2/globals.c12
-rw-r--r--gr-vocoder/lib/codec2/globals.h10
-rw-r--r--gr-vocoder/lib/codec2/interp.c86
-rw-r--r--gr-vocoder/lib/codec2/interp.h2
-rw-r--r--gr-vocoder/lib/codec2/kiss_fft.c20
-rw-r--r--gr-vocoder/lib/codec2/kiss_fft.h28
-rw-r--r--gr-vocoder/lib/codec2/lpc.c136
-rw-r--r--gr-vocoder/lib/codec2/lpc.h14
-rw-r--r--gr-vocoder/lib/codec2/lsp.c4
-rw-r--r--gr-vocoder/lib/codec2/nlp.c62
-rw-r--r--gr-vocoder/lib/codec2/nlp.h16
-rw-r--r--gr-vocoder/lib/codec2/pack.c4
-rw-r--r--gr-vocoder/lib/codec2/phase.c32
-rw-r--r--gr-vocoder/lib/codec2/phase.h14
-rw-r--r--gr-vocoder/lib/codec2/postfilter.c14
-rw-r--r--gr-vocoder/lib/codec2/postfilter.h8
-rw-r--r--gr-vocoder/lib/codec2/quantise.c194
-rw-r--r--gr-vocoder/lib/codec2/quantise.h24
-rw-r--r--gr-vocoder/lib/codec2/sine.c200
-rw-r--r--gr-vocoder/lib/codec2/sine.h10
-rw-r--r--gr-vocoder/lib/g7xx/g72x.h36
-rw-r--r--gr-vocoder/lib/gsm/README.gsm2
-rw-r--r--gr-vocoder/lib/gsm/add.c8
-rw-r--r--gr-vocoder/lib/gsm/code.c6
-rw-r--r--gr-vocoder/lib/gsm/debug.c2
-rw-r--r--gr-vocoder/lib/gsm/gsm.h2
-rw-r--r--gr-vocoder/lib/gsm/gsm_decode.c4
-rw-r--r--gr-vocoder/lib/gsm/gsm_explode.c6
-rw-r--r--gr-vocoder/lib/gsm/gsm_implode.c6
-rw-r--r--gr-vocoder/lib/gsm/gsm_option.c2
-rw-r--r--gr-vocoder/lib/gsm/long_term.c16
-rw-r--r--gr-vocoder/lib/gsm/lpc.c10
-rw-r--r--gr-vocoder/lib/gsm/preprocess.c6
-rw-r--r--gr-vocoder/lib/gsm/private.h10
-rw-r--r--gr-vocoder/lib/gsm/proto.h2
-rw-r--r--gr-vocoder/lib/gsm/rpe.c36
-rw-r--r--gr-vocoder/lib/gsm/short_term.c2
-rw-r--r--gr-vocoder/lib/gsm/table.c2
-rw-r--r--gr-vocoder/lib/vocoder_alaw_decode_bs.cc12
-rw-r--r--gr-vocoder/lib/vocoder_alaw_encode_sb.cc12
-rw-r--r--gr-vocoder/lib/vocoder_codec2_decode_ps.cc8
-rw-r--r--gr-vocoder/lib/vocoder_codec2_encode_sp.cc8
-rw-r--r--gr-vocoder/lib/vocoder_cvsd_decode_bs.cc64
-rw-r--r--gr-vocoder/lib/vocoder_cvsd_encode_sb.cc40
-rw-r--r--gr-vocoder/lib/vocoder_g721_decode_bs.cc12
-rw-r--r--gr-vocoder/lib/vocoder_g721_encode_sb.cc12
-rw-r--r--gr-vocoder/lib/vocoder_g723_24_decode_bs.cc12
-rw-r--r--gr-vocoder/lib/vocoder_g723_24_encode_sb.cc12
-rw-r--r--gr-vocoder/lib/vocoder_g723_40_decode_bs.cc12
-rw-r--r--gr-vocoder/lib/vocoder_g723_40_encode_sb.cc12
-rw-r--r--gr-vocoder/lib/vocoder_gsm_fr_decode_ps.cc8
-rw-r--r--gr-vocoder/lib/vocoder_gsm_fr_encode_sp.cc8
-rw-r--r--gr-vocoder/lib/vocoder_ulaw_decode_bs.cc12
-rw-r--r--gr-vocoder/lib/vocoder_ulaw_encode_sb.cc12
-rw-r--r--gr-vocoder/python/__init__.py10
-rw-r--r--gr-vocoder/python/cvsd.py12
-rwxr-xr-xgr-vocoder/python/qa_alaw_vocoder.py12
-rwxr-xr-xgr-vocoder/python/qa_codec2_vocoder.py14
-rwxr-xr-xgr-vocoder/python/qa_cvsd_vocoder.py26
-rwxr-xr-xgr-vocoder/python/qa_g721_vocoder.py12
-rwxr-xr-xgr-vocoder/python/qa_g723_24_vocoder.py12
-rwxr-xr-xgr-vocoder/python/qa_g723_40_vocoder.py12
-rwxr-xr-xgr-vocoder/python/qa_gsm_full_rate.py10
-rwxr-xr-xgr-vocoder/python/qa_ulaw_vocoder.py12
-rw-r--r--gr-vocoder/swig/vocoder_alaw_decode_bs.i8
-rw-r--r--gr-vocoder/swig/vocoder_alaw_encode_sb.i8
-rw-r--r--gr-vocoder/swig/vocoder_codec2_decode_ps.i8
-rw-r--r--gr-vocoder/swig/vocoder_codec2_encode_sp.i8
-rw-r--r--gr-vocoder/swig/vocoder_cvsd_decode_bs.i8
-rw-r--r--gr-vocoder/swig/vocoder_cvsd_encode_sb.i8
-rw-r--r--gr-vocoder/swig/vocoder_g721_decode_bs.i8
-rw-r--r--gr-vocoder/swig/vocoder_g721_encode_sb.i8
-rw-r--r--gr-vocoder/swig/vocoder_g723_24_decode_bs.i8
-rw-r--r--gr-vocoder/swig/vocoder_g723_24_encode_sb.i8
-rw-r--r--gr-vocoder/swig/vocoder_g723_40_decode_bs.i8
-rw-r--r--gr-vocoder/swig/vocoder_g723_40_encode_sb.i8
-rw-r--r--gr-vocoder/swig/vocoder_gsm_fr_decode_ps.i10
-rw-r--r--gr-vocoder/swig/vocoder_gsm_fr_encode_sp.i10
-rw-r--r--gr-vocoder/swig/vocoder_swig.i8
-rw-r--r--gr-vocoder/swig/vocoder_ulaw_decode_bs.i8
-rw-r--r--gr-vocoder/swig/vocoder_ulaw_encode_sb.i8
-rw-r--r--gr-wavelet/CMakeLists.txt8
-rw-r--r--gr-wavelet/include/wavelet/wavelet_squash_ff.h8
-rw-r--r--gr-wavelet/include/wavelet/wavelet_wavelet_ff.h8
-rw-r--r--gr-wavelet/include/wavelet/wavelet_wvps_ff.h10
-rw-r--r--gr-wavelet/lib/CMakeLists.txt8
-rw-r--r--gr-wavelet/lib/wavelet_squash_ff_impl.cc10
-rw-r--r--gr-wavelet/lib/wavelet_squash_ff_impl.h12
-rw-r--r--gr-wavelet/lib/wavelet_wavelet_ff_impl.cc12
-rw-r--r--gr-wavelet/lib/wavelet_wavelet_ff_impl.h8
-rw-r--r--gr-wavelet/lib/wavelet_wvps_ff_impl.cc18
-rw-r--r--gr-wavelet/lib/wavelet_wvps_ff_impl.h8
-rw-r--r--gr-wavelet/python/CMakeLists.txt8
-rw-r--r--gr-wavelet/python/__init__.py10
-rwxr-xr-xgr-wavelet/python/qa_classify.py12
-rw-r--r--gr-wavelet/swig/wavelet_swig.i8
-rw-r--r--gr-wxgui/CMakeLists.txt8
-rw-r--r--gr-wxgui/grc/CMakeLists.txt8
-rw-r--r--gr-wxgui/src/python/__init__.py10
-rw-r--r--gr-wxgui/src/python/common.py2
-rw-r--r--gr-wxgui/src/python/fft_window.py4
-rw-r--r--gr-wxgui/src/python/fftsink_gl.py4
-rw-r--r--gr-wxgui/src/python/fftsink_nongl.py94
-rw-r--r--gr-wxgui/src/python/form.py26
-rw-r--r--gr-wxgui/src/python/forms/__init__.py2
-rw-r--r--gr-wxgui/src/python/forms/forms.py28
-rw-r--r--gr-wxgui/src/python/gui.py18
-rw-r--r--gr-wxgui/src/python/plot.py214
-rw-r--r--gr-wxgui/src/python/plotter/common.py2
-rw-r--r--gr-wxgui/src/python/plotter/gltext.py1006
-rw-r--r--gr-wxgui/src/python/plotter/grid_plotter_base.py2
-rw-r--r--gr-wxgui/src/python/plotter/plotter_base.py2
-rw-r--r--gr-wxgui/src/python/plotter/waterfall_plotter.py2
-rw-r--r--gr-wxgui/src/python/powermate.py46
-rw-r--r--gr-wxgui/src/python/scope_window.py8
-rw-r--r--gr-wxgui/src/python/scopesink_gl.py14
-rw-r--r--gr-wxgui/src/python/scopesink_nongl.py80
-rw-r--r--gr-wxgui/src/python/stdgui2.py14
-rw-r--r--gr-wxgui/src/python/waterfall_window.py4
-rw-r--r--gr-wxgui/src/python/waterfallsink_nongl.py46
-rw-r--r--grc/CMakeLists.txt8
-rw-r--r--grc/base/CMakeLists.txt8
-rw-r--r--grc/base/Platform.py2
-rw-r--r--grc/base/block_tree.dtd6
-rw-r--r--grc/base/flow_graph.dtd6
-rw-r--r--grc/blocks/CMakeLists.txt8
-rw-r--r--grc/blocks/blks2_pfb_arb_resampler.xml2
-rw-r--r--grc/blocks/blks2_pfb_channelizer.xml4
-rw-r--r--grc/examples/CMakeLists.txt8
-rw-r--r--grc/examples/xmlrpc/readme.txt4
-rw-r--r--grc/examples/xmlrpc/xmlrpc_client_script.py2
-rw-r--r--grc/freedesktop/CMakeLists.txt8
-rw-r--r--grc/gui/ActionHandler.py2
-rw-r--r--grc/gui/BlockTreeWindow.py2
-rw-r--r--grc/python/CMakeLists.txt8
-rw-r--r--grc/python/Param.py2
-rw-r--r--grc/scripts/CMakeLists.txt8
-rw-r--r--grc/todo.txt2
-rw-r--r--gruel/CMakeLists.txt8
-rw-r--r--gruel/README10
-rw-r--r--gruel/gruel.pc.in2
-rw-r--r--gruel/src/include/gruel/CMakeLists.txt8
-rw-r--r--gruel/src/include/gruel/high_res_timer.h8
-rw-r--r--gruel/src/include/gruel/inet.h.in2
-rw-r--r--gruel/src/include/gruel/msg_accepter.h8
-rw-r--r--gruel/src/include/gruel/msg_accepter_msgq.h10
-rw-r--r--gruel/src/include/gruel/msg_passing.h8
-rw-r--r--gruel/src/include/gruel/msg_queue.h16
-rw-r--r--gruel/src/include/gruel/pmt.h16
-rw-r--r--gruel/src/include/gruel/pmt_pool.h12
-rw-r--r--gruel/src/include/gruel/pmt_sugar.h10
-rw-r--r--gruel/src/include/gruel/realtime.h10
-rw-r--r--gruel/src/include/gruel/sys_pri.h8
-rw-r--r--gruel/src/include/gruel/thread.h8
-rw-r--r--gruel/src/include/gruel/thread_body_wrapper.h10
-rw-r--r--gruel/src/include/gruel/thread_group.h2
-rw-r--r--gruel/src/lib/CMakeLists.txt8
-rw-r--r--gruel/src/lib/msg/CMakeLists.txt8
-rw-r--r--gruel/src/lib/msg/msg_accepter.cc8
-rw-r--r--gruel/src/lib/msg/msg_accepter_msgq.cc8
-rw-r--r--gruel/src/lib/msg/msg_queue.cc14
-rw-r--r--gruel/src/lib/pmt/CMakeLists.txt8
-rwxr-xr-xgruel/src/lib/pmt/generate_unv.py24
-rw-r--r--gruel/src/lib/pmt/pmt-serial-tags.scm8
-rw-r--r--gruel/src/lib/pmt/pmt.cc30
-rw-r--r--gruel/src/lib/pmt/pmt_int.h10
-rw-r--r--gruel/src/lib/pmt/pmt_io.cc14
-rw-r--r--gruel/src/lib/pmt/pmt_pool.cc8
-rw-r--r--gruel/src/lib/pmt/pmt_serialize.cc22
-rw-r--r--gruel/src/lib/pmt/qa_pmt.cc10
-rw-r--r--gruel/src/lib/pmt/qa_pmt.h8
-rw-r--r--gruel/src/lib/pmt/qa_pmt_prims.cc18
-rw-r--r--gruel/src/lib/pmt/qa_pmt_prims.h8
-rw-r--r--gruel/src/lib/pmt/unv_template.cc.t2
-rw-r--r--gruel/src/lib/realtime.cc12
-rw-r--r--gruel/src/lib/sys_pri.cc8
-rw-r--r--gruel/src/lib/test_gruel.cc12
-rw-r--r--gruel/src/lib/thread_body_wrapper.cc10
-rw-r--r--gruel/src/lib/thread_group.cc2
-rw-r--r--gruel/src/python/__init__.py10
-rw-r--r--gruel/src/python/pmt/__init__.py10
-rwxr-xr-xgruel/src/python/qa_pmt.py10
-rw-r--r--gruel/src/swig/gr_intrusive_ptr.i6
-rw-r--r--gruel/src/swig/gruel_common.i8
-rw-r--r--gruel/src/swig/pmt_swig.i14
-rw-r--r--volk/apps/volk_profile.cc4
-rw-r--r--volk/cmake/FindORC.cmake6
-rw-r--r--volk/gen/archs.xml2
-rw-r--r--volk/gen/make_c.py4
-rw-r--r--volk/gen/make_config_fixed.py2
-rw-r--r--volk/gen/make_cpuid_c.py38
-rw-r--r--volk/gen/make_cpuid_h.py12
-rw-r--r--volk/gen/make_each_machine_c.py2
-rw-r--r--volk/gen/make_environment_init_c.py10
-rw-r--r--volk/gen/make_environment_init_h.py4
-rw-r--r--volk/gen/make_h.py2
-rw-r--r--volk/gen/make_machines_c.py2
-rw-r--r--volk/gen/make_machines_h.py6
-rw-r--r--volk/gen/make_makefile_am.py12
-rw-r--r--volk/gen/make_proccpu_sim.py12
-rw-r--r--volk/gen/make_set_simd.py26
-rw-r--r--volk/gen/make_typedefs.py2
-rw-r--r--volk/gen/volk_register.py42
-rw-r--r--volk/include/volk/volk_16i_branch_4_state_8_a.h118
-rw-r--r--volk/include/volk/volk_16i_convert_8i_a.h4
-rw-r--r--volk/include/volk/volk_16i_convert_8i_u.h4
-rw-r--r--volk/include/volk/volk_16i_max_star_16i_a.h68
-rw-r--r--volk/include/volk/volk_16i_max_star_horizontal_16i_a.h76
-rw-r--r--volk/include/volk/volk_16i_permute_and_scalar_add_a.h62
-rw-r--r--volk/include/volk/volk_16i_s32f_convert_32f_a.h8
-rw-r--r--volk/include/volk/volk_16i_s32f_convert_32f_u.h8
-rw-r--r--volk/include/volk/volk_16i_x4_quad_max_star_16i_a.h56
-rw-r--r--volk/include/volk/volk_16i_x5_add_quad_16i_x4_a.h22
-rw-r--r--volk/include/volk/volk_16ic_deinterleave_16i_x2_a.h2
-rw-r--r--volk/include/volk/volk_16ic_deinterleave_real_16i_a.h2
-rw-r--r--volk/include/volk/volk_16ic_magnitude_16i_a.h6
-rw-r--r--volk/include/volk/volk_16ic_s32f_deinterleave_32f_x2_a.h6
-rw-r--r--volk/include/volk/volk_16ic_s32f_deinterleave_real_32f_a.h10
-rw-r--r--volk/include/volk/volk_16ic_s32f_magnitude_32f_a.h14
-rw-r--r--volk/include/volk/volk_16u_byteswap_a.h4
-rw-r--r--volk/include/volk/volk_32f_accumulator_s32f_a.h6
-rw-r--r--volk/include/volk/volk_32f_convert_64f_a.h6
-rw-r--r--volk/include/volk/volk_32f_convert_64f_u.h6
-rw-r--r--volk/include/volk/volk_32f_index_max_16u_a.h12
-rw-r--r--volk/include/volk/volk_32f_s32f_32f_fm_detect_32f_a.h12
-rw-r--r--volk/include/volk/volk_32f_s32f_calc_spectral_noise_floor_32f_a.h8
-rw-r--r--volk/include/volk/volk_32f_s32f_convert_16i_a.h8
-rw-r--r--volk/include/volk/volk_32f_s32f_convert_16i_u.h8
-rw-r--r--volk/include/volk/volk_32f_s32f_convert_32i_a.h12
-rw-r--r--volk/include/volk/volk_32f_s32f_convert_32i_u.h8
-rw-r--r--volk/include/volk/volk_32f_s32f_convert_8i_a.h10
-rw-r--r--volk/include/volk/volk_32f_s32f_convert_8i_u.h10
-rw-r--r--volk/include/volk/volk_32f_s32f_multiply_32f_a.h20
-rw-r--r--volk/include/volk/volk_32f_s32f_multiply_32f_u.h20
-rw-r--r--volk/include/volk/volk_32f_s32f_power_32f_a.h20
-rw-r--r--volk/include/volk/volk_32f_s32f_stddev_32f_a.h12
-rw-r--r--volk/include/volk/volk_32f_sqrt_32f_a.h10
-rw-r--r--volk/include/volk/volk_32f_stddev_and_mean_32f_x2_a.h12
-rw-r--r--volk/include/volk/volk_32f_x2_add_32f_a.h10
-rw-r--r--volk/include/volk/volk_32f_x2_add_32f_u.h10
-rw-r--r--volk/include/volk/volk_32f_x2_divide_32f_a.h10
-rw-r--r--volk/include/volk/volk_32f_x2_dot_prod_32f_a.h32
-rw-r--r--volk/include/volk/volk_32f_x2_dot_prod_32f_u.h32
-rw-r--r--volk/include/volk/volk_32f_x2_interleave_32fc_a.h2
-rw-r--r--volk/include/volk/volk_32f_x2_max_32f_a.h10
-rw-r--r--volk/include/volk/volk_32f_x2_min_32f_a.h10
-rw-r--r--volk/include/volk/volk_32f_x2_multiply_32f_a.h20
-rw-r--r--volk/include/volk/volk_32f_x2_multiply_32f_u.h20
-rw-r--r--volk/include/volk/volk_32f_x2_s32f_interleave_16ic_a.h12
-rw-r--r--volk/include/volk/volk_32f_x2_subtract_32f_a.h10
-rw-r--r--volk/include/volk/volk_32f_x3_sum_of_poly_32f_a.h70
-rw-r--r--volk/include/volk/volk_32fc_32f_multiply_32fc_a.h16
-rw-r--r--volk/include/volk/volk_32fc_conjugate_32fc_a.h4
-rw-r--r--volk/include/volk/volk_32fc_conjugate_32fc_u.h6
-rw-r--r--volk/include/volk/volk_32fc_deinterleave_32f_x2_a.h4
-rw-r--r--volk/include/volk/volk_32fc_deinterleave_64f_x2_a.h8
-rw-r--r--volk/include/volk/volk_32fc_deinterleave_imag_32f_a.h2
-rw-r--r--volk/include/volk/volk_32fc_deinterleave_real_32f_a.h2
-rw-r--r--volk/include/volk/volk_32fc_deinterleave_real_64f_a.h6
-rw-r--r--volk/include/volk/volk_32fc_index_max_16u_a.h126
-rw-r--r--volk/include/volk/volk_32fc_magnitude_32f_a.h2
-rw-r--r--volk/include/volk/volk_32fc_magnitude_32f_u.h2
-rw-r--r--volk/include/volk/volk_32fc_magnitude_squared_32f_a.h2
-rw-r--r--volk/include/volk/volk_32fc_magnitude_squared_32f_u.h2
-rw-r--r--volk/include/volk/volk_32fc_s32f_atan2_32f_a.h20
-rw-r--r--volk/include/volk/volk_32fc_s32f_power_32fc_a.h38
-rw-r--r--volk/include/volk/volk_32fc_s32f_power_spectrum_32f_a.h24
-rw-r--r--volk/include/volk/volk_32fc_s32f_x2_power_spectral_density_32f_a.h24
-rw-r--r--volk/include/volk/volk_32fc_s32fc_multiply_32fc_a.h12
-rw-r--r--volk/include/volk/volk_32fc_s32fc_multiply_32fc_u.h12
-rw-r--r--volk/include/volk/volk_32fc_x2_conjugate_dot_prod_32fc_a.h84
-rw-r--r--volk/include/volk/volk_32fc_x2_conjugate_dot_prod_32fc_u.h32
-rw-r--r--volk/include/volk/volk_32fc_x2_dot_prod_32fc_a.h126
-rw-r--r--volk/include/volk/volk_32fc_x2_multiply_32fc_a.h14
-rw-r--r--volk/include/volk/volk_32fc_x2_multiply_32fc_u.h14
-rw-r--r--volk/include/volk/volk_32fc_x2_multiply_conjugate_32fc_a.h14
-rw-r--r--volk/include/volk/volk_32fc_x2_multiply_conjugate_32fc_u.h14
-rw-r--r--volk/include/volk/volk_32fc_x2_s32f_square_dist_scalar_mult_32f_a.h56
-rw-r--r--volk/include/volk/volk_32fc_x2_square_dist_32f_a.h40
-rw-r--r--volk/include/volk/volk_32i_s32f_convert_32f_a.h2
-rw-r--r--volk/include/volk/volk_32i_s32f_convert_32f_u.h2
-rw-r--r--volk/include/volk/volk_32i_x2_and_32i_a.h10
-rw-r--r--volk/include/volk/volk_32i_x2_or_32i_a.h10
-rw-r--r--volk/include/volk/volk_32u_byteswap_a.h6
-rw-r--r--volk/include/volk/volk_64f_convert_32f_a.h6
-rw-r--r--volk/include/volk/volk_64f_convert_32f_u.h6
-rw-r--r--volk/include/volk/volk_64f_x2_max_64f_a.h10
-rw-r--r--volk/include/volk/volk_64f_x2_min_64f_a.h10
-rw-r--r--volk/include/volk/volk_64u_byteswap_a.h18
-rw-r--r--volk/include/volk/volk_64u_popcnt_a.h2
-rw-r--r--volk/include/volk/volk_8i_s32f_convert_32f_a.h2
-rw-r--r--volk/include/volk/volk_8i_s32f_convert_32f_u.h2
-rw-r--r--volk/include/volk/volk_8ic_s32f_deinterleave_32f_x2_a.h8
-rw-r--r--volk/include/volk/volk_8ic_s32f_deinterleave_real_32f_a.h10
-rw-r--r--volk/include/volk/volk_8ic_x2_multiply_conjugate_16ic_a.h8
-rw-r--r--volk/include/volk/volk_8ic_x2_s32f_multiply_conjugate_32fc_a.h4
-rw-r--r--volk/lib/gcc_x86_cpuid.h6
-rw-r--r--volk/lib/qa_16s_add_quad_aligned16.cc10
-rw-r--r--volk/lib/qa_16s_branch_4_state_8_aligned16.cc38
-rw-r--r--volk/lib/qa_16s_permute_and_scalar_add_aligned16.cc18
-rw-r--r--volk/lib/qa_16s_quad_max_star_aligned16.cc6
-rw-r--r--volk/lib/qa_32f_fm_detect_aligned16.cc8
-rw-r--r--volk/lib/qa_32f_index_max_aligned16.cc36
-rw-r--r--volk/lib/qa_32fc_index_max_aligned16.cc34
-rw-r--r--volk/lib/qa_32fc_power_spectral_density_32f_aligned16.cc8
-rw-r--r--volk/lib/qa_32fc_x2_conjugate_dot_prod_32fc_u.cc28
-rw-r--r--volk/lib/qa_32u_popcnt_aligned16.cc8
-rw-r--r--volk/lib/qa_64u_popcnt_aligned16.cc8
-rw-r--r--volk/lib/qa_utils.cc54
-rw-r--r--volk/lib/volk_prefs.c2
-rw-r--r--volk/lib/volk_rank_archs.c4
-rwxr-xr-xvolk/libvector_replace.sh4
-rw-r--r--volk/msvc/inttypes.h18
-rw-r--r--volk/msvc/stdint.h18
-rw-r--r--volk/python/__init__.py10
-rwxr-xr-xvolk/python/qa_square.py12
-rw-r--r--volk/python/volk.i8
-rw-r--r--volk/python/volk_square_ff.i8
-rw-r--r--volk/spu_lib/gc_spu_macs.h34
-rw-r--r--volk/spu_lib/spu_16s_cmpgt_unaligned.c66
-rw-r--r--volk/spu_lib/spu_16s_vector_subtract_unaligned.c68
-rw-r--r--volk/spu_lib/spu_16s_vector_sum_unaligned.c68
-rw-r--r--volk/spu_lib/spu_32fc_pointwise_multiply_unaligned.c94
-rw-r--r--volk/spu_lib/spu_memcpy_unaligned.c122
-rw-r--r--volk/spu_lib/spu_memset_unaligned.S44
2188 files changed, 18137 insertions, 18138 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ca962109e..0f43b8f7a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2010-2011 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,
diff --git a/README b/README
index 63d093a5e..09af3d985 100644
--- a/README
+++ b/README
@@ -1,29 +1,29 @@
#
# Copyright 2001-2007,2009,2012 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,
# Boston, MA 02110-1301, USA.
-#
+#
Welcome to GNU Radio!
Please see http://gnuradio.org for the wiki, bug tracking,
-and source code viewer.
+and source code viewer.
If you've got questions about GNU Radio, please subscribe to the
discuss-gnuradio mailing list and post your questions there.
@@ -230,7 +230,7 @@ run some of the example.
----------------------------------------------------------------
-If you have doxygen installed, the build process creates
+If you have doxygen installed, the build process creates
documentation for the class hierarchy etc. Point your browser at
gnuradio/gnuradio-core/doc/html/index.html
diff --git a/README-win32-mingw-short.txt b/README-win32-mingw-short.txt
index 9001e9f15..0e82a705d 100644
--- a/README-win32-mingw-short.txt
+++ b/README-win32-mingw-short.txt
@@ -2,7 +2,7 @@ Building and using gnuradio on windows (win32) using mingw
Required tools and libraries
-MingW and Msys
+MingW and Msys
Download the latest stable version from the mingw site oand follow their installation instructions)
Python for windows version 2.4 (or higher)
diff --git a/README.hacking b/README.hacking
index de6358abf..58b269887 100644
--- a/README.hacking
+++ b/README.hacking
@@ -1,24 +1,24 @@
# -*- Outline -*-
#
# Copyright 2004,2007,2008,2009 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,
# Boston, MA 02110-1301, USA.
-#
+#
Random notes on coding conventions, some explanations about why things
aren't done differently, etc, etc,
@@ -103,7 +103,7 @@ The big win is when you're staring at a block of code it's obvious
which of the things being assigned to persist outside of the block.
This also keeps you from having to be creative with parameter names
for methods and constructors. You just use the same name as the
-instance variable, without the d_.
+instance variable, without the d_.
class gr_wonderfulness {
std::string d_name;
@@ -147,7 +147,7 @@ See http://www.boost.org/libs/smart_ptr/smart_ptr.htm
* Unit tests
Build unit tests for everything non-trivial and run them after every
-change. Check out Extreme Programming:
+change. Check out Extreme Programming:
http://c2.com/cgi/wiki?ExtremeProgrammingRoadmap
Unit tests should also be written for all examples. This should kill
@@ -177,7 +177,7 @@ We use the standard unittest package for unit testing of Python code.
* Subversion line ending styles
-All text files in the tree should have the subversion property
+All text files in the tree should have the subversion property
'svn:eol-style' set to 'native', with the following exceptions:
config/*.m4
@@ -192,7 +192,7 @@ enable-auto-props=yes
[auto-props]
*.c = svn:eol-style=native
-*.cc = svn:eol-style=native
+*.cc = svn:eol-style=native
*.i = svn:eol-style=native
*.h = svn:eol-style=native
*.am = svn:eol-style=native
@@ -303,7 +303,7 @@ To specify a rate use:
add_option("-r", "--sample-rate", type="eng_float", default=<your-default-here>,
help="specify sample-rate [default=%default]")
-
+
If your application has a verbose option, use:
@@ -311,7 +311,7 @@ If your application has a verbose option, use:
help="verbose output")
-If your application allows the user to specify the "fast USB" options, use:
+If your application allows the user to specify the "fast USB" options, use:
add_option("", "--fusb-block-size", type="intx", default=0,
help="specify fast usb block size [default=%default]")
diff --git a/cmake/Modules/FindJack.cmake b/cmake/Modules/FindJack.cmake
index 44417deb3..c6810c011 100644
--- a/cmake/Modules/FindJack.cmake
+++ b/cmake/Modules/FindJack.cmake
@@ -39,7 +39,7 @@ else (JACK_LIBRARIES AND JACK_INCLUDE_DIRS)
/opt/local/include
/sw/include
)
-
+
find_library(JACK_LIBRARY
NAMES
jack
diff --git a/cmake/Modules/FindOSS.cmake b/cmake/Modules/FindOSS.cmake
index 105b3ec9c..4c886de5f 100644
--- a/cmake/Modules/FindOSS.cmake
+++ b/cmake/Modules/FindOSS.cmake
@@ -43,4 +43,4 @@ MARK_AS_ADVANCED (
LINUX_OSS_INCLUDE_DIR
SYS_OSS_INCLUDE_DIR
MACHINE_OSS_INCLUDE_DIR
-)
+)
diff --git a/cmake/Modules/FindPortaudio.cmake b/cmake/Modules/FindPortaudio.cmake
index 158e20ee5..4b7175438 100644
--- a/cmake/Modules/FindPortaudio.cmake
+++ b/cmake/Modules/FindPortaudio.cmake
@@ -48,7 +48,7 @@ else (PORTAUDIO_LIBRARIES AND PORTAUDIO_INCLUDE_DIRS)
/opt/local/include
/sw/include
)
-
+
find_library(PORTAUDIO_LIBRARY
NAMES
portaudio
@@ -58,7 +58,7 @@ else (PORTAUDIO_LIBRARIES AND PORTAUDIO_INCLUDE_DIRS)
/opt/local/lib
/sw/lib
)
-
+
find_path(PORTAUDIO_LIBRARY_DIR
NAMES
portaudio
@@ -68,26 +68,26 @@ else (PORTAUDIO_LIBRARIES AND PORTAUDIO_INCLUDE_DIRS)
/opt/local/lib
/sw/lib
)
-
+
set(PORTAUDIO_INCLUDE_DIRS
${PORTAUDIO_INCLUDE_DIR}
)
set(PORTAUDIO_LIBRARIES
${PORTAUDIO_LIBRARY}
)
-
+
set(PORTAUDIO_LIBRARY_DIRS
${PORTAUDIO_LIBRARY_DIR}
)
-
+
set(PORTAUDIO_VERSION
18
)
-
+
if (PORTAUDIO_INCLUDE_DIRS AND PORTAUDIO_LIBRARIES)
set(PORTAUDIO_FOUND TRUE)
endif (PORTAUDIO_INCLUDE_DIRS AND PORTAUDIO_LIBRARIES)
-
+
if (PORTAUDIO_FOUND)
if (NOT Portaudio_FIND_QUIETLY)
message(STATUS "Found Portaudio: ${PORTAUDIO_LIBRARIES}")
diff --git a/cmake/Modules/FindQwt.cmake b/cmake/Modules/FindQwt.cmake
index cbda16aa0..f2cf3440d 100644
--- a/cmake/Modules/FindQwt.cmake
+++ b/cmake/Modules/FindQwt.cmake
@@ -23,7 +23,7 @@ find_library (QWT_LIBRARIES
/sw/lib
)
-# handle the QUIETLY and REQUIRED arguments and set QWT_FOUND to TRUE if
+# handle the QUIETLY and REQUIRED arguments and set QWT_FOUND to TRUE if
# all listed variables are TRUE
include ( FindPackageHandleStandardArgs )
find_package_handle_standard_args( Qwt DEFAULT_MSG QWT_LIBRARIES QWT_INCLUDE_DIRS )
diff --git a/cmake/Modules/GrBoost.cmake b/cmake/Modules/GrBoost.cmake
index 36890014d..7c0d42134 100644
--- a/cmake/Modules/GrBoost.cmake
+++ b/cmake/Modules/GrBoost.cmake
@@ -1,17 +1,17 @@
# Copyright 2010-2011 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,
diff --git a/cmake/Modules/GrComponent.cmake b/cmake/Modules/GrComponent.cmake
index 708f035ae..f802cdcb4 100644
--- a/cmake/Modules/GrComponent.cmake
+++ b/cmake/Modules/GrComponent.cmake
@@ -1,17 +1,17 @@
# Copyright 2010-2011 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,
diff --git a/cmake/Modules/GrMiscUtils.cmake b/cmake/Modules/GrMiscUtils.cmake
index 7b0c00272..189e97c7e 100644
--- a/cmake/Modules/GrMiscUtils.cmake
+++ b/cmake/Modules/GrMiscUtils.cmake
@@ -1,17 +1,17 @@
# Copyright 2010-2011 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,
diff --git a/cmake/Modules/GrPackage.cmake b/cmake/Modules/GrPackage.cmake
index 2d2dfa531..d1b0b3320 100644
--- a/cmake/Modules/GrPackage.cmake
+++ b/cmake/Modules/GrPackage.cmake
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/cmake/Modules/GrPlatform.cmake b/cmake/Modules/GrPlatform.cmake
index dde65cee5..5b7e886f8 100644
--- a/cmake/Modules/GrPlatform.cmake
+++ b/cmake/Modules/GrPlatform.cmake
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/cmake/Modules/GrSwig.cmake b/cmake/Modules/GrSwig.cmake
index 4bcd67eb9..b8e719353 100644
--- a/cmake/Modules/GrSwig.cmake
+++ b/cmake/Modules/GrSwig.cmake
@@ -1,17 +1,17 @@
# Copyright 2010-2011 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,
@@ -67,7 +67,7 @@ function(GR_SWIG_MAKE_DOCS output_file)
#call doxygen on the Doxyfile + input headers
add_custom_command(
OUTPUT ${OUTPUT_DIRECTORY}/xml/index.xml
- ${OUTPUT_DIRECTORY}/xml/combine.xslt
+ ${OUTPUT_DIRECTORY}/xml/combine.xslt
DEPENDS ${input_files} ${GR_SWIG_DOCS_SOURCE_DEPS} ${tag_deps}
COMMAND ${DOXYGEN_EXECUTABLE} ${OUTPUT_DIRECTORY}/Doxyfile
COMMENT "Generating doxygen xml for ${name} docs"
@@ -75,7 +75,7 @@ function(GR_SWIG_MAKE_DOCS output_file)
#call the swig_doc script on the xml files
add_custom_command(
- OUTPUT ${output_file}
+ OUTPUT ${output_file}
DEPENDS ${input_files} ${stamp-file} ${OUTPUT_DIRECTORY}/xml/index.xml
COMMAND ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B}
${CMAKE_SOURCE_DIR}/docs/doxygen/swig_doc.py
diff --git a/cmake/Modules/GrTest.cmake b/cmake/Modules/GrTest.cmake
index bbb525dcc..4723cca58 100644
--- a/cmake/Modules/GrTest.cmake
+++ b/cmake/Modules/GrTest.cmake
@@ -1,17 +1,17 @@
# Copyright 2010-2011 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,
diff --git a/cmake/Modules/GrVersion.cmake b/cmake/Modules/GrVersion.cmake
index f82246525..9199a702b 100644
--- a/cmake/Modules/GrVersion.cmake
+++ b/cmake/Modules/GrVersion.cmake
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/cmake/msvc/inttypes.h b/cmake/msvc/inttypes.h
index 1c2baa82e..0a1b60fc1 100644
--- a/cmake/msvc/inttypes.h
+++ b/cmake/msvc/inttypes.h
@@ -1,32 +1,32 @@
// ISO C9x compliant inttypes.h for Microsoft Visual Studio
-// Based on ISO/IEC 9899:TC2 Committee draft (May 6, 2005) WG14/N1124
-//
+// Based on ISO/IEC 9899:TC2 Committee draft (May 6, 2005) WG14/N1124
+//
// Copyright (c) 2006 Alexander Chemeris
-//
+//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
-//
+//
// 1. Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
-//
+//
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
-//
+//
// 3. The name of the author may be used to endorse or promote products
// derived from this software without specific prior written permission.
-//
+//
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
// EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
-// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
+//
///////////////////////////////////////////////////////////////////////////////
#ifndef _MSC_VER // [
diff --git a/cmake/msvc/stdint.h b/cmake/msvc/stdint.h
index ab6d37e11..108bc8982 100644
--- a/cmake/msvc/stdint.h
+++ b/cmake/msvc/stdint.h
@@ -1,32 +1,32 @@
// ISO C9x compliant stdint.h for Microsoft Visual Studio
-// Based on ISO/IEC 9899:TC2 Committee draft (May 6, 2005) WG14/N1124
-//
+// Based on ISO/IEC 9899:TC2 Committee draft (May 6, 2005) WG14/N1124
+//
// Copyright (c) 2006-2008 Alexander Chemeris
-//
+//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
-//
+//
// 1. Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
-//
+//
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
-//
+//
// 3. The name of the author may be used to endorse or promote products
// derived from this software without specific prior written permission.
-//
+//
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
// EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
-// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
+//
///////////////////////////////////////////////////////////////////////////////
#ifndef _MSC_VER // [
diff --git a/cmake/msvc/sys/time.h b/cmake/msvc/sys/time.h
index 998b5d7bb..8800ed5cb 100644
--- a/cmake/msvc/sys/time.h
+++ b/cmake/msvc/sys/time.h
@@ -26,32 +26,32 @@ long tv_nsec; /* Additional nanoseconds since */
};
-struct timezone
+struct timezone
{
int tz_minuteswest; /* minutes W of Greenwich */
int tz_dsttime; /* type of dst correction */
};
-
+
static inline int gettimeofday(struct timeval *tv, struct timezone *tz)
{
FILETIME ft;
unsigned __int64 tmpres = 0;
static int tzflag;
-
+
if (NULL != tv)
{
GetSystemTimeAsFileTime(&ft);
-
+
tmpres |= ft.dwHighDateTime;
tmpres <<= 32;
tmpres |= ft.dwLowDateTime;
-
+
/*converting file time to unix epoch*/
- tmpres -= DELTA_EPOCH_IN_MICROSECS;
+ tmpres -= DELTA_EPOCH_IN_MICROSECS;
tv->tv_sec = (long)(tmpres / 1000000UL);
tv->tv_usec = (long)(tmpres % 1000000UL);
}
-
+
if (NULL != tz)
{
if (!tzflag)
@@ -62,7 +62,7 @@ static inline int gettimeofday(struct timeval *tv, struct timezone *tz)
tz->tz_minuteswest = _timezone / 60;
tz->tz_dsttime = _daylight;
}
-
+
return 0;
}
diff --git a/docs/CMakeLists.txt b/docs/CMakeLists.txt
index 45f9b0102..f67fdd7a8 100644
--- a/docs/CMakeLists.txt
+++ b/docs/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/docs/ChangeLog b/docs/ChangeLog
index 6f024c4a3..9f0eb2118 100644
--- a/docs/ChangeLog
+++ b/docs/ChangeLog
@@ -4,21 +4,21 @@
#
# Copyright 2004 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,
# Boston, MA 02110-1301, USA.
-#
+#
diff --git a/docs/doxygen/CMakeLists.txt b/docs/doxygen/CMakeLists.txt
index 532b09d7f..f328bd7a2 100644
--- a/docs/doxygen/CMakeLists.txt
+++ b/docs/doxygen/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/docs/doxygen/Doxyfile.in b/docs/doxygen/Doxyfile.in
index c8f1406a4..f3485316c 100644
--- a/docs/doxygen/Doxyfile.in
+++ b/docs/doxygen/Doxyfile.in
@@ -14,204 +14,204 @@
# Project related configuration options
#---------------------------------------------------------------------------
-# This tag specifies the encoding used for all characters in the config file
-# that follow. The default is UTF-8 which is also the encoding used for all
-# text before the first occurrence of this tag. Doxygen uses libiconv (or the
-# iconv built into libc) for the transcoding. See
+# This tag specifies the encoding used for all characters in the config file
+# that follow. The default is UTF-8 which is also the encoding used for all
+# text before the first occurrence of this tag. Doxygen uses libiconv (or the
+# iconv built into libc) for the transcoding. See
# http://www.gnu.org/software/libiconv for the list of possible encodings.
DOXYFILE_ENCODING = UTF-8
-# The PROJECT_NAME tag is a single word (or a sequence of words surrounded
+# The PROJECT_NAME tag is a single word (or a sequence of words surrounded
# by quotes) that should identify the project.
PROJECT_NAME = "GNU Radio @VERSION@ C++ API"
-# The PROJECT_NUMBER tag can be used to enter a project or revision number.
-# This could be handy for archiving the generated documentation or
+# The PROJECT_NUMBER tag can be used to enter a project or revision number.
+# This could be handy for archiving the generated documentation or
# if some version control system is used.
-PROJECT_NUMBER =
+PROJECT_NUMBER =
-# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
-# base path where the generated documentation will be put.
-# If a relative path is entered, it will be relative to the location
+# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
+# base path where the generated documentation will be put.
+# If a relative path is entered, it will be relative to the location
# where doxygen was started. If left blank the current directory will be used.
-OUTPUT_DIRECTORY =
+OUTPUT_DIRECTORY =
-# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create
-# 4096 sub-directories (in 2 levels) under the output directory of each output
-# format and will distribute the generated files over these directories.
-# Enabling this option can be useful when feeding doxygen a huge amount of
-# source files, where putting all generated files in the same directory would
+# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create
+# 4096 sub-directories (in 2 levels) under the output directory of each output
+# format and will distribute the generated files over these directories.
+# Enabling this option can be useful when feeding doxygen a huge amount of
+# source files, where putting all generated files in the same directory would
# otherwise cause performance problems for the file system.
CREATE_SUBDIRS = NO
-# The OUTPUT_LANGUAGE tag is used to specify the language in which all
-# documentation generated by doxygen is written. Doxygen will use this
-# information to generate all constant output in the proper language.
-# The default language is English, other supported languages are:
-# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional,
-# Croatian, Czech, Danish, Dutch, Farsi, Finnish, French, German, Greek,
-# Hungarian, Italian, Japanese, Japanese-en (Japanese with English messages),
-# Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, Polish,
-# Portuguese, Romanian, Russian, Serbian, Serbian-Cyrilic, Slovak, Slovene,
+# The OUTPUT_LANGUAGE tag is used to specify the language in which all
+# documentation generated by doxygen is written. Doxygen will use this
+# information to generate all constant output in the proper language.
+# The default language is English, other supported languages are:
+# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional,
+# Croatian, Czech, Danish, Dutch, Farsi, Finnish, French, German, Greek,
+# Hungarian, Italian, Japanese, Japanese-en (Japanese with English messages),
+# Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, Polish,
+# Portuguese, Romanian, Russian, Serbian, Serbian-Cyrilic, Slovak, Slovene,
# Spanish, Swedish, and Ukrainian.
OUTPUT_LANGUAGE = English
-# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will
-# include brief member descriptions after the members that are listed in
-# the file and class documentation (similar to JavaDoc).
+# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will
+# include brief member descriptions after the members that are listed in
+# the file and class documentation (similar to JavaDoc).
# Set to NO to disable this.
BRIEF_MEMBER_DESC = YES
-# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend
-# the brief description of a member or function before the detailed description.
-# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the
+# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend
+# the brief description of a member or function before the detailed description.
+# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the
# brief descriptions will be completely suppressed.
REPEAT_BRIEF = YES
-# This tag implements a quasi-intelligent brief description abbreviator
-# that is used to form the text in various listings. Each string
-# in this list, if found as the leading text of the brief description, will be
-# stripped from the text and the result after processing the whole list, is
-# used as the annotated text. Otherwise, the brief description is used as-is.
-# If left blank, the following values are used ("$name" is automatically
-# replaced with the name of the entity): "The $name class" "The $name widget"
-# "The $name file" "is" "provides" "specifies" "contains"
+# This tag implements a quasi-intelligent brief description abbreviator
+# that is used to form the text in various listings. Each string
+# in this list, if found as the leading text of the brief description, will be
+# stripped from the text and the result after processing the whole list, is
+# used as the annotated text. Otherwise, the brief description is used as-is.
+# If left blank, the following values are used ("$name" is automatically
+# replaced with the name of the entity): "The $name class" "The $name widget"
+# "The $name file" "is" "provides" "specifies" "contains"
# "represents" "a" "an" "the"
-ABBREVIATE_BRIEF =
+ABBREVIATE_BRIEF =
-# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then
-# Doxygen will generate a detailed section even if there is only a brief
+# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then
+# Doxygen will generate a detailed section even if there is only a brief
# description.
ALWAYS_DETAILED_SEC = YES
-# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all
-# inherited members of a class in the documentation of that class as if those
-# members were ordinary class members. Constructors, destructors and assignment
+# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all
+# inherited members of a class in the documentation of that class as if those
+# members were ordinary class members. Constructors, destructors and assignment
# operators of the base classes will not be shown.
INLINE_INHERITED_MEMB = NO
-# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full
-# path before files name in the file list and in the header files. If set
+# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full
+# path before files name in the file list and in the header files. If set
# to NO the shortest path that makes the file name unique will be used.
FULL_PATH_NAMES = NO
-# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag
-# can be used to strip a user-defined part of the path. Stripping is
-# only done if one of the specified strings matches the left-hand part of
-# the path. The tag can be used to show relative paths in the file list.
-# If left blank the directory from which doxygen is run is used as the
+# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag
+# can be used to strip a user-defined part of the path. Stripping is
+# only done if one of the specified strings matches the left-hand part of
+# the path. The tag can be used to show relative paths in the file list.
+# If left blank the directory from which doxygen is run is used as the
# path to strip.
-STRIP_FROM_PATH =
+STRIP_FROM_PATH =
-# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of
-# the path mentioned in the documentation of a class, which tells
-# the reader which header file to include in order to use a class.
-# If left blank only the name of the header file containing the class
-# definition is used. Otherwise one should specify the include paths that
+# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of
+# the path mentioned in the documentation of a class, which tells
+# the reader which header file to include in order to use a class.
+# If left blank only the name of the header file containing the class
+# definition is used. Otherwise one should specify the include paths that
# are normally passed to the compiler using the -I flag.
-STRIP_FROM_INC_PATH =
+STRIP_FROM_INC_PATH =
-# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter
-# (but less readable) file names. This can be useful is your file systems
+# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter
+# (but less readable) file names. This can be useful is your file systems
# doesn't support long names like on DOS, Mac, or CD-ROM.
SHORT_NAMES = NO
-# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen
-# will interpret the first line (until the first dot) of a JavaDoc-style
-# comment as the brief description. If set to NO, the JavaDoc
-# comments will behave just like regular Qt-style comments
+# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen
+# will interpret the first line (until the first dot) of a JavaDoc-style
+# comment as the brief description. If set to NO, the JavaDoc
+# comments will behave just like regular Qt-style comments
# (thus requiring an explicit @brief command for a brief description.)
JAVADOC_AUTOBRIEF = NO
-# If the QT_AUTOBRIEF tag is set to YES then Doxygen will
-# interpret the first line (until the first dot) of a Qt-style
-# comment as the brief description. If set to NO, the comments
-# will behave just like regular Qt-style comments (thus requiring
+# If the QT_AUTOBRIEF tag is set to YES then Doxygen will
+# interpret the first line (until the first dot) of a Qt-style
+# comment as the brief description. If set to NO, the comments
+# will behave just like regular Qt-style comments (thus requiring
# an explicit \brief command for a brief description.)
QT_AUTOBRIEF = NO
-# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen
-# treat a multi-line C++ special comment block (i.e. a block of //! or ///
-# comments) as a brief description. This used to be the default behaviour.
-# The new default is to treat a multi-line C++ comment block as a detailed
+# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen
+# treat a multi-line C++ special comment block (i.e. a block of //! or ///
+# comments) as a brief description. This used to be the default behaviour.
+# The new default is to treat a multi-line C++ comment block as a detailed
# description. Set this tag to YES if you prefer the old behaviour instead.
MULTILINE_CPP_IS_BRIEF = YES
-# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented
-# member inherits the documentation from any documented member that it
+# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented
+# member inherits the documentation from any documented member that it
# re-implements.
INHERIT_DOCS = YES
-# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce
-# a new page for each member. If set to NO, the documentation of a member will
+# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce
+# a new page for each member. If set to NO, the documentation of a member will
# be part of the file/class/namespace that contains it.
SEPARATE_MEMBER_PAGES = NO
-# The TAB_SIZE tag can be used to set the number of spaces in a tab.
+# The TAB_SIZE tag can be used to set the number of spaces in a tab.
# Doxygen uses this value to replace tabs by spaces in code fragments.
TAB_SIZE = 8
-# This tag can be used to specify a number of aliases that acts
-# as commands in the documentation. An alias has the form "name=value".
-# For example adding "sideeffect=\par Side Effects:\n" will allow you to
-# put the command \sideeffect (or @sideeffect) in the documentation, which
-# will result in a user-defined paragraph with heading "Side Effects:".
+# This tag can be used to specify a number of aliases that acts
+# as commands in the documentation. An alias has the form "name=value".
+# For example adding "sideeffect=\par Side Effects:\n" will allow you to
+# put the command \sideeffect (or @sideeffect) in the documentation, which
+# will result in a user-defined paragraph with heading "Side Effects:".
# You can put \n's in the value part of an alias to insert newlines.
-ALIASES =
+ALIASES =
-# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C
-# sources only. Doxygen will then generate output that is more tailored for C.
-# For instance, some of the names that are used will be different. The list
+# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C
+# sources only. Doxygen will then generate output that is more tailored for C.
+# For instance, some of the names that are used will be different. The list
# of all members will be omitted, etc.
OPTIMIZE_OUTPUT_FOR_C = NO
-# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java
-# sources only. Doxygen will then generate output that is more tailored for
-# Java. For instance, namespaces will be presented as packages, qualified
+# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java
+# sources only. Doxygen will then generate output that is more tailored for
+# Java. For instance, namespaces will be presented as packages, qualified
# scopes will look different, etc.
OPTIMIZE_OUTPUT_JAVA = NO
-# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran
-# sources only. Doxygen will then generate output that is more tailored for
+# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran
+# sources only. Doxygen will then generate output that is more tailored for
# Fortran.
OPTIMIZE_FOR_FORTRAN = NO
-# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL
-# sources. Doxygen will then generate output that is tailored for
+# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL
+# sources. Doxygen will then generate output that is tailored for
# VHDL.
OPTIMIZE_OUTPUT_VHDL = NO
-# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want
-# to include (a tag file for) the STL sources as input, then you should
-# set this tag to YES in order to let doxygen match functions declarations and
-# definitions whose arguments contain STL classes (e.g. func(std::string); v.s.
-# func(std::string) {}). This also make the inheritance and collaboration
+# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want
+# to include (a tag file for) the STL sources as input, then you should
+# set this tag to YES in order to let doxygen match functions declarations and
+# definitions whose arguments contain STL classes (e.g. func(std::string); v.s.
+# func(std::string) {}). This also make the inheritance and collaboration
# diagrams that involve STL classes more complete and accurate.
BUILTIN_STL_SUPPORT = YES
@@ -221,58 +221,58 @@ BUILTIN_STL_SUPPORT = YES
CPP_CLI_SUPPORT = NO
-# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only.
-# Doxygen will parse them like normal C++ but will assume all classes use public
+# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only.
+# Doxygen will parse them like normal C++ but will assume all classes use public
# instead of private inheritance when no explicit protection keyword is present.
SIP_SUPPORT = NO
-# For Microsoft's IDL there are propget and propput attributes to indicate getter
-# and setter methods for a property. Setting this option to YES (the default)
-# will make doxygen to replace the get and set methods by a property in the
-# documentation. This will only work if the methods are indeed getting or
-# setting a simple type. If this is not the case, or you want to show the
+# For Microsoft's IDL there are propget and propput attributes to indicate getter
+# and setter methods for a property. Setting this option to YES (the default)
+# will make doxygen to replace the get and set methods by a property in the
+# documentation. This will only work if the methods are indeed getting or
+# setting a simple type. If this is not the case, or you want to show the
# methods anyway, you should set this option to NO.
IDL_PROPERTY_SUPPORT = YES
-# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC
-# tag is set to YES, then doxygen will reuse the documentation of the first
-# member in the group (if any) for the other members of the group. By default
+# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC
+# tag is set to YES, then doxygen will reuse the documentation of the first
+# member in the group (if any) for the other members of the group. By default
# all members of a group must be documented explicitly.
DISTRIBUTE_GROUP_DOC = NO
-# Set the SUBGROUPING tag to YES (the default) to allow class member groups of
-# the same type (for instance a group of public functions) to be put as a
-# subgroup of that type (e.g. under the Public Functions section). Set it to
-# NO to prevent subgrouping. Alternatively, this can be done per class using
+# Set the SUBGROUPING tag to YES (the default) to allow class member groups of
+# the same type (for instance a group of public functions) to be put as a
+# subgroup of that type (e.g. under the Public Functions section). Set it to
+# NO to prevent subgrouping. Alternatively, this can be done per class using
# the \nosubgrouping command.
SUBGROUPING = YES
-# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum
-# is documented as struct, union, or enum with the name of the typedef. So
-# typedef struct TypeS {} TypeT, will appear in the documentation as a struct
-# with name TypeT. When disabled the typedef will appear as a member of a file,
-# namespace, or class. And the struct will be named TypeS. This can typically
-# be useful for C code in case the coding convention dictates that all compound
+# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum
+# is documented as struct, union, or enum with the name of the typedef. So
+# typedef struct TypeS {} TypeT, will appear in the documentation as a struct
+# with name TypeT. When disabled the typedef will appear as a member of a file,
+# namespace, or class. And the struct will be named TypeS. This can typically
+# be useful for C code in case the coding convention dictates that all compound
# types are typedef'ed and only the typedef is referenced, never the tag name.
TYPEDEF_HIDES_STRUCT = NO
-# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to
+# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to
# determine which symbols to keep in memory and which to flush to disk.
# When the cache is full, less often used symbols will be written to disk.
-# For small to medium size projects (<1000 input files) the default value is
-# probably good enough. For larger projects a too small cache size can cause
-# doxygen to be busy swapping symbols to and from disk most of the time
-# causing a significant performance penality.
-# If the system has enough physical memory increasing the cache will improve the
-# performance by keeping more symbols in memory. Note that the value works on
-# a logarithmic scale so increasing the size by one will rougly double the
-# memory usage. The cache size is given by this formula:
-# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0,
+# For small to medium size projects (<1000 input files) the default value is
+# probably good enough. For larger projects a too small cache size can cause
+# doxygen to be busy swapping symbols to and from disk most of the time
+# causing a significant performance penality.
+# If the system has enough physical memory increasing the cache will improve the
+# performance by keeping more symbols in memory. Note that the value works on
+# a logarithmic scale so increasing the size by one will rougly double the
+# memory usage. The cache size is given by this formula:
+# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0,
# corresponding to a cache size of 2^16 = 65536 symbols
SYMBOL_CACHE_SIZE = 4
@@ -281,305 +281,305 @@ SYMBOL_CACHE_SIZE = 4
# Build related configuration options
#---------------------------------------------------------------------------
-# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in
-# documentation are documented, even if no documentation was available.
-# Private class members and static file members will be hidden unless
+# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in
+# documentation are documented, even if no documentation was available.
+# Private class members and static file members will be hidden unless
# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES
EXTRACT_ALL = YES
-# If the EXTRACT_PRIVATE tag is set to YES all private members of a class
+# If the EXTRACT_PRIVATE tag is set to YES all private members of a class
# will be included in the documentation.
EXTRACT_PRIVATE = NO
-# If the EXTRACT_STATIC tag is set to YES all static members of a file
+# If the EXTRACT_STATIC tag is set to YES all static members of a file
# will be included in the documentation.
EXTRACT_STATIC = YES
-# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs)
-# defined locally in source files will be included in the documentation.
+# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs)
+# defined locally in source files will be included in the documentation.
# If set to NO only classes defined in header files are included.
EXTRACT_LOCAL_CLASSES = YES
-# This flag is only useful for Objective-C code. When set to YES local
-# methods, which are defined in the implementation section but not in
-# the interface are included in the documentation.
+# This flag is only useful for Objective-C code. When set to YES local
+# methods, which are defined in the implementation section but not in
+# the interface are included in the documentation.
# If set to NO (the default) only methods in the interface are included.
EXTRACT_LOCAL_METHODS = NO
-# If this flag is set to YES, the members of anonymous namespaces will be
-# extracted and appear in the documentation as a namespace called
-# 'anonymous_namespace{file}', where file will be replaced with the base
-# name of the file that contains the anonymous namespace. By default
+# If this flag is set to YES, the members of anonymous namespaces will be
+# extracted and appear in the documentation as a namespace called
+# 'anonymous_namespace{file}', where file will be replaced with the base
+# name of the file that contains the anonymous namespace. By default
# anonymous namespace are hidden.
EXTRACT_ANON_NSPACES = NO
-# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all
-# undocumented members of documented classes, files or namespaces.
-# If set to NO (the default) these members will be included in the
-# various overviews, but no documentation section is generated.
+# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all
+# undocumented members of documented classes, files or namespaces.
+# If set to NO (the default) these members will be included in the
+# various overviews, but no documentation section is generated.
# This option has no effect if EXTRACT_ALL is enabled.
HIDE_UNDOC_MEMBERS = NO
-# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all
-# undocumented classes that are normally visible in the class hierarchy.
-# If set to NO (the default) these classes will be included in the various
+# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all
+# undocumented classes that are normally visible in the class hierarchy.
+# If set to NO (the default) these classes will be included in the various
# overviews. This option has no effect if EXTRACT_ALL is enabled.
HIDE_UNDOC_CLASSES = NO
-# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all
-# friend (class|struct|union) declarations.
-# If set to NO (the default) these declarations will be included in the
+# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all
+# friend (class|struct|union) declarations.
+# If set to NO (the default) these declarations will be included in the
# documentation.
HIDE_FRIEND_COMPOUNDS = NO
-# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any
-# documentation blocks found inside the body of a function.
-# If set to NO (the default) these blocks will be appended to the
+# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any
+# documentation blocks found inside the body of a function.
+# If set to NO (the default) these blocks will be appended to the
# function's detailed documentation block.
HIDE_IN_BODY_DOCS = NO
-# The INTERNAL_DOCS tag determines if documentation
-# that is typed after a \internal command is included. If the tag is set
-# to NO (the default) then the documentation will be excluded.
+# The INTERNAL_DOCS tag determines if documentation
+# that is typed after a \internal command is included. If the tag is set
+# to NO (the default) then the documentation will be excluded.
# Set it to YES to include the internal documentation.
INTERNAL_DOCS = NO
-# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate
-# file names in lower-case letters. If set to YES upper-case letters are also
-# allowed. This is useful if you have classes or files whose names only differ
-# in case and if your file system supports case sensitive file names. Windows
+# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate
+# file names in lower-case letters. If set to YES upper-case letters are also
+# allowed. This is useful if you have classes or files whose names only differ
+# in case and if your file system supports case sensitive file names. Windows
# and Mac users are advised to set this option to NO.
CASE_SENSE_NAMES = YES
-# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen
-# will show members with their full class and namespace scopes in the
+# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen
+# will show members with their full class and namespace scopes in the
# documentation. If set to YES the scope will be hidden.
HIDE_SCOPE_NAMES = NO
-# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen
-# will put a list of the files that are included by a file in the documentation
+# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen
+# will put a list of the files that are included by a file in the documentation
# of that file.
SHOW_INCLUDE_FILES = YES
-# If the INLINE_INFO tag is set to YES (the default) then a tag [inline]
+# If the INLINE_INFO tag is set to YES (the default) then a tag [inline]
# is inserted in the documentation for inline members.
INLINE_INFO = YES
-# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen
-# will sort the (detailed) documentation of file and class members
-# alphabetically by member name. If set to NO the members will appear in
+# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen
+# will sort the (detailed) documentation of file and class members
+# alphabetically by member name. If set to NO the members will appear in
# declaration order.
SORT_MEMBER_DOCS = YES
-# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the
-# brief documentation of file, namespace and class members alphabetically
-# by member name. If set to NO (the default) the members will appear in
+# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the
+# brief documentation of file, namespace and class members alphabetically
+# by member name. If set to NO (the default) the members will appear in
# declaration order.
SORT_BRIEF_DOCS = NO
-# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the
-# hierarchy of group names into alphabetical order. If set to NO (the default)
+# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the
+# hierarchy of group names into alphabetical order. If set to NO (the default)
# the group names will appear in their defined order.
SORT_GROUP_NAMES = NO
-# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be
-# sorted by fully-qualified names, including namespaces. If set to
-# NO (the default), the class list will be sorted only by class name,
-# not including the namespace part.
+# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be
+# sorted by fully-qualified names, including namespaces. If set to
+# NO (the default), the class list will be sorted only by class name,
+# not including the namespace part.
# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES.
-# Note: This option applies only to the class list, not to the
+# Note: This option applies only to the class list, not to the
# alphabetical list.
SORT_BY_SCOPE_NAME = NO
-# The GENERATE_TODOLIST tag can be used to enable (YES) or
-# disable (NO) the todo list. This list is created by putting \todo
+# The GENERATE_TODOLIST tag can be used to enable (YES) or
+# disable (NO) the todo list. This list is created by putting \todo
# commands in the documentation.
GENERATE_TODOLIST = NO
-# The GENERATE_TESTLIST tag can be used to enable (YES) or
-# disable (NO) the test list. This list is created by putting \test
+# The GENERATE_TESTLIST tag can be used to enable (YES) or
+# disable (NO) the test list. This list is created by putting \test
# commands in the documentation.
GENERATE_TESTLIST = NO
-# The GENERATE_BUGLIST tag can be used to enable (YES) or
-# disable (NO) the bug list. This list is created by putting \bug
+# The GENERATE_BUGLIST tag can be used to enable (YES) or
+# disable (NO) the bug list. This list is created by putting \bug
# commands in the documentation.
GENERATE_BUGLIST = NO
-# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or
-# disable (NO) the deprecated list. This list is created by putting
+# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or
+# disable (NO) the deprecated list. This list is created by putting
# \deprecated commands in the documentation.
GENERATE_DEPRECATEDLIST= NO
-# The ENABLED_SECTIONS tag can be used to enable conditional
+# The ENABLED_SECTIONS tag can be used to enable conditional
# documentation sections, marked by \if sectionname ... \endif.
-ENABLED_SECTIONS =
+ENABLED_SECTIONS =
-# The MAX_INITIALIZER_LINES tag determines the maximum number of lines
-# the initial value of a variable or define consists of for it to appear in
-# the documentation. If the initializer consists of more lines than specified
-# here it will be hidden. Use a value of 0 to hide initializers completely.
-# The appearance of the initializer of individual variables and defines in the
-# documentation can be controlled using \showinitializer or \hideinitializer
+# The MAX_INITIALIZER_LINES tag determines the maximum number of lines
+# the initial value of a variable or define consists of for it to appear in
+# the documentation. If the initializer consists of more lines than specified
+# here it will be hidden. Use a value of 0 to hide initializers completely.
+# The appearance of the initializer of individual variables and defines in the
+# documentation can be controlled using \showinitializer or \hideinitializer
# command in the documentation regardless of this setting.
MAX_INITIALIZER_LINES = 30
-# Set the SHOW_USED_FILES tag to NO to disable the list of files generated
-# at the bottom of the documentation of classes and structs. If set to YES the
+# Set the SHOW_USED_FILES tag to NO to disable the list of files generated
+# at the bottom of the documentation of classes and structs. If set to YES the
# list will mention the files that were used to generate the documentation.
SHOW_USED_FILES = YES
-# If the sources in your project are distributed over multiple directories
-# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy
+# If the sources in your project are distributed over multiple directories
+# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy
# in the documentation. The default is NO.
SHOW_DIRECTORIES = NO
# Set the SHOW_FILES tag to NO to disable the generation of the Files page.
-# This will remove the Files entry from the Quick Index and from the
+# This will remove the Files entry from the Quick Index and from the
# Folder Tree View (if specified). The default is YES.
SHOW_FILES = YES
-# Set the SHOW_NAMESPACES tag to NO to disable the generation of the
+# Set the SHOW_NAMESPACES tag to NO to disable the generation of the
# Namespaces page. This will remove the Namespaces entry from the Quick Index
# and from the Folder Tree View (if specified). The default is YES.
SHOW_NAMESPACES = YES
-# The FILE_VERSION_FILTER tag can be used to specify a program or script that
-# doxygen should invoke to get the current version for each file (typically from
-# the version control system). Doxygen will invoke the program by executing (via
-# popen()) the command <command> <input-file>, where <command> is the value of
-# the FILE_VERSION_FILTER tag, and <input-file> is the name of an input file
-# provided by doxygen. Whatever the program writes to standard output
+# The FILE_VERSION_FILTER tag can be used to specify a program or script that
+# doxygen should invoke to get the current version for each file (typically from
+# the version control system). Doxygen will invoke the program by executing (via
+# popen()) the command <command> <input-file>, where <command> is the value of
+# the FILE_VERSION_FILTER tag, and <input-file> is the name of an input file
+# provided by doxygen. Whatever the program writes to standard output
# is used as the file version. See the manual for examples.
-FILE_VERSION_FILTER =
+FILE_VERSION_FILTER =
-# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed by
-# doxygen. The layout file controls the global structure of the generated output files
-# in an output format independent way. The create the layout file that represents
-# doxygen's defaults, run doxygen with the -l option. You can optionally specify a
-# file name after the option, if omitted DoxygenLayout.xml will be used as the name
+# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed by
+# doxygen. The layout file controls the global structure of the generated output files
+# in an output format independent way. The create the layout file that represents
+# doxygen's defaults, run doxygen with the -l option. You can optionally specify a
+# file name after the option, if omitted DoxygenLayout.xml will be used as the name
# of the layout file.
-LAYOUT_FILE =
+LAYOUT_FILE =
#---------------------------------------------------------------------------
# configuration options related to warning and progress messages
#---------------------------------------------------------------------------
-# The QUIET tag can be used to turn on/off the messages that are generated
+# The QUIET tag can be used to turn on/off the messages that are generated
# by doxygen. Possible values are YES and NO. If left blank NO is used.
QUIET = YES
-# The WARNINGS tag can be used to turn on/off the warning messages that are
-# generated by doxygen. Possible values are YES and NO. If left blank
+# The WARNINGS tag can be used to turn on/off the warning messages that are
+# generated by doxygen. Possible values are YES and NO. If left blank
# NO is used.
WARNINGS = YES
-# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings
-# for undocumented members. If EXTRACT_ALL is set to YES then this flag will
+# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings
+# for undocumented members. If EXTRACT_ALL is set to YES then this flag will
# automatically be disabled.
WARN_IF_UNDOCUMENTED = YES
-# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for
-# potential errors in the documentation, such as not documenting some
-# parameters in a documented function, or documenting parameters that
+# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for
+# potential errors in the documentation, such as not documenting some
+# parameters in a documented function, or documenting parameters that
# don't exist or using markup commands wrongly.
WARN_IF_DOC_ERROR = YES
-# This WARN_NO_PARAMDOC option can be abled to get warnings for
-# functions that are documented, but have no documentation for their parameters
-# or return value. If set to NO (the default) doxygen will only warn about
-# wrong or incomplete parameter documentation, but not about the absence of
+# This WARN_NO_PARAMDOC option can be abled to get warnings for
+# functions that are documented, but have no documentation for their parameters
+# or return value. If set to NO (the default) doxygen will only warn about
+# wrong or incomplete parameter documentation, but not about the absence of
# documentation.
WARN_NO_PARAMDOC = NO
-# The WARN_FORMAT tag determines the format of the warning messages that
-# doxygen can produce. The string should contain the $file, $line, and $text
-# tags, which will be replaced by the file and line number from which the
-# warning originated and the warning text. Optionally the format may contain
-# $version, which will be replaced by the version of the file (if it could
+# The WARN_FORMAT tag determines the format of the warning messages that
+# doxygen can produce. The string should contain the $file, $line, and $text
+# tags, which will be replaced by the file and line number from which the
+# warning originated and the warning text. Optionally the format may contain
+# $version, which will be replaced by the version of the file (if it could
# be obtained via FILE_VERSION_FILTER)
WARN_FORMAT = "$file:$line: $text "
-# The WARN_LOGFILE tag can be used to specify a file to which warning
-# and error messages should be written. If left blank the output is written
+# The WARN_LOGFILE tag can be used to specify a file to which warning
+# and error messages should be written. If left blank the output is written
# to stderr.
-WARN_LOGFILE =
+WARN_LOGFILE =
#---------------------------------------------------------------------------
# configuration options related to the input files
#---------------------------------------------------------------------------
-# The INPUT tag can be used to specify the files and/or directories that contain
-# documented source files. You may enter file names like "myfile.cpp" or
-# directories like "/usr/src/myproject". Separate the files or directories
+# The INPUT tag can be used to specify the files and/or directories that contain
+# documented source files. You may enter file names like "myfile.cpp" or
+# directories like "/usr/src/myproject". Separate the files or directories
# with spaces.
INPUT = @top_srcdir@ @top_builddir@
-# This tag can be used to specify the character encoding of the source files
-# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
-# also the default input encoding. Doxygen uses libiconv (or the iconv built
-# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for
+# This tag can be used to specify the character encoding of the source files
+# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
+# also the default input encoding. Doxygen uses libiconv (or the iconv built
+# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for
# the list of possible encodings.
INPUT_ENCODING = UTF-8
-# If the value of the INPUT tag contains directories, you can use the
-# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
-# and *.h) to filter out the source-files in the directories. If left
-# blank the following patterns are tested:
-# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx
+# If the value of the INPUT tag contains directories, you can use the
+# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
+# and *.h) to filter out the source-files in the directories. If left
+# blank the following patterns are tested:
+# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx
# *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py *.f90
FILE_PATTERNS = *.h \
*.dox
-# The RECURSIVE tag can be used to turn specify whether or not subdirectories
-# should be searched for input files as well. Possible values are YES and NO.
+# The RECURSIVE tag can be used to turn specify whether or not subdirectories
+# should be searched for input files as well. Possible values are YES and NO.
# If left blank NO is used.
RECURSIVE = YES
-# The EXCLUDE tag can be used to specify files and/or directories that should
-# excluded from the INPUT source files. This way you can easily exclude a
+# The EXCLUDE tag can be used to specify files and/or directories that should
+# excluded from the INPUT source files. This way you can easily exclude a
# subdirectory from a directory tree whose root is specified with the INPUT tag.
EXCLUDE = @abs_top_builddir@/docs/doxygen/html \
@@ -642,16 +642,16 @@ EXCLUDE = @abs_top_builddir@/docs/doxygen/html \
@abs_top_srcdir@/gr-qtgui/lib \
@abs_top_srcdir@/gr-howto-write-a-block-cmake
-# The EXCLUDE_SYMLINKS tag can be used select whether or not files or
-# directories that are symbolic links (a Unix filesystem feature) are excluded
+# The EXCLUDE_SYMLINKS tag can be used select whether or not files or
+# directories that are symbolic links (a Unix filesystem feature) are excluded
# from the input.
EXCLUDE_SYMLINKS = NO
-# If the value of the INPUT tag contains directories, you can use the
-# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude
-# certain files from those directories. Note that the wildcards are matched
-# against the file with absolute path, so to exclude all test directories
+# If the value of the INPUT tag contains directories, you can use the
+# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude
+# certain files from those directories. Note that the wildcards are matched
+# against the file with absolute path, so to exclude all test directories
# for example use the pattern */test/*
EXCLUDE_PATTERNS = */.deps/* \
@@ -665,10 +665,10 @@ EXCLUDE_PATTERNS = */.deps/* \
*/qa_*.h \
*/qa_*.py
-# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
-# (namespaces, classes, functions, etc.) that should be excluded from the
-# output. The symbol name can be a fully qualified name, a word, or if the
-# wildcard * is used, a substring. Examples: ANamespace, AClass,
+# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
+# (namespaces, classes, functions, etc.) that should be excluded from the
+# output. The symbol name can be a fully qualified name, a word, or if the
+# wildcard * is used, a substring. Examples: ANamespace, AClass,
# AClass::ANamespace, ANamespace::*Test
EXCLUDE_SYMBOLS = ad9862 \
@@ -692,53 +692,53 @@ EXCLUDE_SYMBOLS = ad9862 \
*wxapt_rx_block* \
*example_signal*
-# The EXAMPLE_PATH tag can be used to specify one or more files or
-# directories that contain example code fragments that are included (see
+# The EXAMPLE_PATH tag can be used to specify one or more files or
+# directories that contain example code fragments that are included (see
# the \include command).
EXAMPLE_PATH = @abs_top_srcdir@
-# If the value of the EXAMPLE_PATH tag contains directories, you can use the
-# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
-# and *.h) to filter out the source-files in the directories. If left
+# If the value of the EXAMPLE_PATH tag contains directories, you can use the
+# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
+# and *.h) to filter out the source-files in the directories. If left
# blank all files are included.
-EXAMPLE_PATTERNS =
+EXAMPLE_PATTERNS =
-# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be
-# searched for input files to be used with the \include or \dontinclude
-# commands irrespective of the value of the RECURSIVE tag.
+# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be
+# searched for input files to be used with the \include or \dontinclude
+# commands irrespective of the value of the RECURSIVE tag.
# Possible values are YES and NO. If left blank NO is used.
EXAMPLE_RECURSIVE = NO
-# The IMAGE_PATH tag can be used to specify one or more files or
-# directories that contain image that are included in the documentation (see
+# The IMAGE_PATH tag can be used to specify one or more files or
+# directories that contain image that are included in the documentation (see
# the \image command).
IMAGE_PATH = @abs_top_srcdir@/docs/doxygen/images/
-# The INPUT_FILTER tag can be used to specify a program that doxygen should
-# invoke to filter for each input file. Doxygen will invoke the filter program
-# by executing (via popen()) the command <filter> <input-file>, where <filter>
-# is the value of the INPUT_FILTER tag, and <input-file> is the name of an
-# input file. Doxygen will then use the output that the filter program writes
-# to standard output. If FILTER_PATTERNS is specified, this tag will be
+# The INPUT_FILTER tag can be used to specify a program that doxygen should
+# invoke to filter for each input file. Doxygen will invoke the filter program
+# by executing (via popen()) the command <filter> <input-file>, where <filter>
+# is the value of the INPUT_FILTER tag, and <input-file> is the name of an
+# input file. Doxygen will then use the output that the filter program writes
+# to standard output. If FILTER_PATTERNS is specified, this tag will be
# ignored.
-INPUT_FILTER =
+INPUT_FILTER =
-# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern
-# basis. Doxygen will compare the file name with each pattern and apply the
-# filter if there is a match. The filters are a list of the form:
-# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further
-# info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER
+# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern
+# basis. Doxygen will compare the file name with each pattern and apply the
+# filter if there is a match. The filters are a list of the form:
+# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further
+# info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER
# is applied to all files.
FILTER_PATTERNS = *.py=@top_srcdir@/gnuradio-core/doc/other/doxypy.py
-# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using
-# INPUT_FILTER) will be used to filter the input files when producing source
+# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using
+# INPUT_FILTER) will be used to filter the input files when producing source
# files to browse (i.e. when SOURCE_BROWSER is set to YES).
FILTER_SOURCE_FILES = NO
@@ -747,32 +747,32 @@ FILTER_SOURCE_FILES = NO
# configuration options related to source browsing
#---------------------------------------------------------------------------
-# If the SOURCE_BROWSER tag is set to YES then a list of source files will
-# be generated. Documented entities will be cross-referenced with these sources.
-# Note: To get rid of all source code in the generated output, make sure also
+# If the SOURCE_BROWSER tag is set to YES then a list of source files will
+# be generated. Documented entities will be cross-referenced with these sources.
+# Note: To get rid of all source code in the generated output, make sure also
# VERBATIM_HEADERS is set to NO.
SOURCE_BROWSER = NO
-# Setting the INLINE_SOURCES tag to YES will include the body
+# Setting the INLINE_SOURCES tag to YES will include the body
# of functions and classes directly in the documentation.
INLINE_SOURCES = NO
-# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct
-# doxygen to hide any special comment blocks from generated source code
+# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct
+# doxygen to hide any special comment blocks from generated source code
# fragments. Normal C and C++ comments will always remain visible.
STRIP_CODE_COMMENTS = NO
-# If the REFERENCED_BY_RELATION tag is set to YES
-# then for each documented function all documented
+# If the REFERENCED_BY_RELATION tag is set to YES
+# then for each documented function all documented
# functions referencing it will be listed.
REFERENCED_BY_RELATION = YES
-# If the REFERENCES_RELATION tag is set to YES
-# then for each documented function all documented entities
+# If the REFERENCES_RELATION tag is set to YES
+# then for each documented function all documented entities
# called/used by that function will be listed.
REFERENCES_RELATION = YES
@@ -784,16 +784,16 @@ REFERENCES_RELATION = YES
REFERENCES_LINK_SOURCE = YES
-# If the USE_HTAGS tag is set to YES then the references to source code
-# will point to the HTML generated by the htags(1) tool instead of doxygen
-# built-in source browser. The htags tool is part of GNU's global source
-# tagging system (see http://www.gnu.org/software/global/global.html). You
+# If the USE_HTAGS tag is set to YES then the references to source code
+# will point to the HTML generated by the htags(1) tool instead of doxygen
+# built-in source browser. The htags tool is part of GNU's global source
+# tagging system (see http://www.gnu.org/software/global/global.html). You
# will need version 4.8.6 or higher.
USE_HTAGS = NO
-# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen
-# will generate a verbatim copy of the header file for each class for
+# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen
+# will generate a verbatim copy of the header file for each class for
# which an include is specified. Set to NO to disable this.
VERBATIM_HEADERS = YES
@@ -802,130 +802,130 @@ VERBATIM_HEADERS = YES
# configuration options related to the alphabetical class index
#---------------------------------------------------------------------------
-# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index
-# of all compounds will be generated. Enable this if the project
+# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index
+# of all compounds will be generated. Enable this if the project
# contains a lot of classes, structs, unions or interfaces.
ALPHABETICAL_INDEX = YES
-# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then
-# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns
+# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then
+# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns
# in which this list will be split (can be a number in the range [1..20])
COLS_IN_ALPHA_INDEX = 5
-# In case all classes in a project start with a common prefix, all
-# classes will be put under the same header in the alphabetical index.
-# The IGNORE_PREFIX tag can be used to specify one or more prefixes that
+# In case all classes in a project start with a common prefix, all
+# classes will be put under the same header in the alphabetical index.
+# The IGNORE_PREFIX tag can be used to specify one or more prefixes that
# should be ignored while generating the index headers.
-IGNORE_PREFIX =
+IGNORE_PREFIX =
#---------------------------------------------------------------------------
# configuration options related to the HTML output
#---------------------------------------------------------------------------
-# If the GENERATE_HTML tag is set to YES (the default) Doxygen will
+# If the GENERATE_HTML tag is set to YES (the default) Doxygen will
# generate HTML output.
GENERATE_HTML = @enable_html_docs@
-# The HTML_OUTPUT tag is used to specify where the HTML docs will be put.
-# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# The HTML_OUTPUT tag is used to specify where the HTML docs will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
# put in front of it. If left blank `html' will be used as the default path.
HTML_OUTPUT = html
-# The HTML_FILE_EXTENSION tag can be used to specify the file extension for
-# each generated HTML page (for example: .htm,.php,.asp). If it is left blank
+# The HTML_FILE_EXTENSION tag can be used to specify the file extension for
+# each generated HTML page (for example: .htm,.php,.asp). If it is left blank
# doxygen will generate files with .html extension.
HTML_FILE_EXTENSION = .html
-# The HTML_HEADER tag can be used to specify a personal HTML header for
-# each generated HTML page. If it is left blank doxygen will generate a
+# The HTML_HEADER tag can be used to specify a personal HTML header for
+# each generated HTML page. If it is left blank doxygen will generate a
# standard header.
-HTML_HEADER =
+HTML_HEADER =
-# The HTML_FOOTER tag can be used to specify a personal HTML footer for
-# each generated HTML page. If it is left blank doxygen will generate a
+# The HTML_FOOTER tag can be used to specify a personal HTML footer for
+# each generated HTML page. If it is left blank doxygen will generate a
# standard footer.
-HTML_FOOTER =
+HTML_FOOTER =
-# The HTML_STYLESHEET tag can be used to specify a user-defined cascading
-# style sheet that is used by each HTML page. It can be used to
-# fine-tune the look of the HTML output. If the tag is left blank doxygen
-# will generate a default style sheet. Note that doxygen will try to copy
-# the style sheet file to the HTML output directory, so don't put your own
+# The HTML_STYLESHEET tag can be used to specify a user-defined cascading
+# style sheet that is used by each HTML page. It can be used to
+# fine-tune the look of the HTML output. If the tag is left blank doxygen
+# will generate a default style sheet. Note that doxygen will try to copy
+# the style sheet file to the HTML output directory, so don't put your own
# stylesheet in the HTML output directory as well, or it will be erased!
-HTML_STYLESHEET =
+HTML_STYLESHEET =
-# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes,
-# files or namespaces will be aligned in HTML using tables. If set to
+# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes,
+# files or namespaces will be aligned in HTML using tables. If set to
# NO a bullet list will be used.
HTML_ALIGN_MEMBERS = YES
-# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML
-# documentation will contain sections that can be hidden and shown after the
-# page has loaded. For this to work a browser that supports
-# JavaScript and DHTML is required (for instance Mozilla 1.0+, Firefox
+# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML
+# documentation will contain sections that can be hidden and shown after the
+# page has loaded. For this to work a browser that supports
+# JavaScript and DHTML is required (for instance Mozilla 1.0+, Firefox
# Netscape 6.0+, Internet explorer 5.0+, Konqueror, or Safari).
HTML_DYNAMIC_SECTIONS = NO
-# If the GENERATE_DOCSET tag is set to YES, additional index files
-# will be generated that can be used as input for Apple's Xcode 3
-# integrated development environment, introduced with OSX 10.5 (Leopard).
-# To create a documentation set, doxygen will generate a Makefile in the
-# HTML output directory. Running make will produce the docset in that
-# directory and running "make install" will install the docset in
-# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find
-# it at startup.
+# If the GENERATE_DOCSET tag is set to YES, additional index files
+# will be generated that can be used as input for Apple's Xcode 3
+# integrated development environment, introduced with OSX 10.5 (Leopard).
+# To create a documentation set, doxygen will generate a Makefile in the
+# HTML output directory. Running make will produce the docset in that
+# directory and running "make install" will install the docset in
+# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find
+# it at startup.
# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html for more information.
GENERATE_DOCSET = NO
-# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the
-# feed. A documentation feed provides an umbrella under which multiple
-# documentation sets from a single provider (such as a company or product suite)
+# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the
+# feed. A documentation feed provides an umbrella under which multiple
+# documentation sets from a single provider (such as a company or product suite)
# can be grouped.
DOCSET_FEEDNAME = "Doxygen generated docs"
-# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that
-# should uniquely identify the documentation set bundle. This should be a
-# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen
+# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that
+# should uniquely identify the documentation set bundle. This should be a
+# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen
# will append .docset to the name.
DOCSET_BUNDLE_ID = org.doxygen.Project
-# If the GENERATE_HTMLHELP tag is set to YES, additional index files
-# will be generated that can be used as input for tools like the
-# Microsoft HTML help workshop to generate a compiled HTML help file (.chm)
+# If the GENERATE_HTMLHELP tag is set to YES, additional index files
+# will be generated that can be used as input for tools like the
+# Microsoft HTML help workshop to generate a compiled HTML help file (.chm)
# of the generated HTML documentation.
GENERATE_HTMLHELP = NO
-# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can
-# be used to specify the file name of the resulting .chm file. You
-# can add a path in front of the file if the result should not be
+# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can
+# be used to specify the file name of the resulting .chm file. You
+# can add a path in front of the file if the result should not be
# written to the html output directory.
-CHM_FILE =
+CHM_FILE =
-# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can
-# be used to specify the location (absolute path including file name) of
-# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run
+# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can
+# be used to specify the location (absolute path including file name) of
+# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run
# the HTML help compiler on the generated index.hhp.
-HHC_LOCATION =
+HHC_LOCATION =
-# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag
-# controls if a separate .chi index file is generated (YES) or that
+# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag
+# controls if a separate .chi index file is generated (YES) or that
# it should be included in the master .chm file (NO).
GENERATE_CHI = NO
@@ -934,58 +934,58 @@ GENERATE_CHI = NO
# is used to encode HtmlHelp index (hhk), content (hhc) and project file
# content.
-CHM_INDEX_ENCODING =
+CHM_INDEX_ENCODING =
-# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag
-# controls whether a binary table of contents is generated (YES) or a
+# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag
+# controls whether a binary table of contents is generated (YES) or a
# normal table of contents (NO) in the .chm file.
BINARY_TOC = NO
-# The TOC_EXPAND flag can be set to YES to add extra items for group members
+# The TOC_EXPAND flag can be set to YES to add extra items for group members
# to the contents of the HTML help documentation and to the tree view.
TOC_EXPAND = YES
-# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and QHP_VIRTUAL_FOLDER
-# are set, an additional index file will be generated that can be used as input for
-# Qt's qhelpgenerator to generate a Qt Compressed Help (.qch) of the generated
+# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and QHP_VIRTUAL_FOLDER
+# are set, an additional index file will be generated that can be used as input for
+# Qt's qhelpgenerator to generate a Qt Compressed Help (.qch) of the generated
# HTML documentation.
GENERATE_QHP = NO
-# If the QHG_LOCATION tag is specified, the QCH_FILE tag can
-# be used to specify the file name of the resulting .qch file.
+# If the QHG_LOCATION tag is specified, the QCH_FILE tag can
+# be used to specify the file name of the resulting .qch file.
# The path specified is relative to the HTML output folder.
-QCH_FILE =
+QCH_FILE =
-# The QHP_NAMESPACE tag specifies the namespace to use when generating
-# Qt Help Project output. For more information please see
+# The QHP_NAMESPACE tag specifies the namespace to use when generating
+# Qt Help Project output. For more information please see
# <a href="http://doc.trolltech.com/qthelpproject.html#namespace">Qt Help Project / Namespace</a>.
QHP_NAMESPACE = org.doxygen.Project
-# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating
-# Qt Help Project output. For more information please see
+# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating
+# Qt Help Project output. For more information please see
# <a href="http://doc.trolltech.com/qthelpproject.html#virtual-folders">Qt Help Project / Virtual Folders</a>.
QHP_VIRTUAL_FOLDER = doc
-# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can
-# be used to specify the location of Qt's qhelpgenerator.
-# If non-empty doxygen will try to run qhelpgenerator on the generated
+# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can
+# be used to specify the location of Qt's qhelpgenerator.
+# If non-empty doxygen will try to run qhelpgenerator on the generated
# .qhp file .
-QHG_LOCATION =
+QHG_LOCATION =
-# The DISABLE_INDEX tag can be used to turn on/off the condensed index at
-# top of each HTML page. The value NO (the default) enables the index and
+# The DISABLE_INDEX tag can be used to turn on/off the condensed index at
+# top of each HTML page. The value NO (the default) enables the index and
# the value YES disables it.
DISABLE_INDEX = YES
-# This tag can be used to set the number of enum values (range [1..20])
+# This tag can be used to set the number of enum values (range [1..20])
# that doxygen will group on one line in the generated HTML documentation.
ENUM_VALUES_PER_LINE = 4
@@ -993,11 +993,11 @@ ENUM_VALUES_PER_LINE = 4
# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index
# structure should be generated to display hierarchical information.
# If the tag value is set to FRAME, a side panel will be generated
-# containing a tree-like index structure (just like the one that
-# is generated for HTML Help). For this to work a browser that supports
-# JavaScript, DHTML, CSS and frames is required (for instance Mozilla 1.0+,
-# Netscape 6.0+, Internet explorer 5.0+, or Konqueror). Windows users are
-# probably better off using the HTML help feature. Other possible values
+# containing a tree-like index structure (just like the one that
+# is generated for HTML Help). For this to work a browser that supports
+# JavaScript, DHTML, CSS and frames is required (for instance Mozilla 1.0+,
+# Netscape 6.0+, Internet explorer 5.0+, or Konqueror). Windows users are
+# probably better off using the HTML help feature. Other possible values
# for this tag are: HIERARCHIES, which will generate the Groups, Directories,
# and Class Hierarchy pages using a tree view instead of an ordered list;
# ALL, which combines the behavior of FRAME and HIERARCHIES; and NONE, which
@@ -1007,16 +1007,16 @@ ENUM_VALUES_PER_LINE = 4
GENERATE_TREEVIEW = YES
-# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be
-# used to set the initial width (in pixels) of the frame in which the tree
+# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be
+# used to set the initial width (in pixels) of the frame in which the tree
# is shown.
TREEVIEW_WIDTH = 180
-# Use this tag to change the font size of Latex formulas included
-# as images in the HTML documentation. The default is 10. Note that
-# when you change the font size after a successful doxygen run you need
-# to manually remove any form_*.png images from the HTML output directory
+# Use this tag to change the font size of Latex formulas included
+# as images in the HTML documentation. The default is 10. Note that
+# when you change the font size after a successful doxygen run you need
+# to manually remove any form_*.png images from the HTML output directory
# to force them to be regenerated.
FORMULA_FONTSIZE = 10
@@ -1025,74 +1025,74 @@ FORMULA_FONTSIZE = 10
# configuration options related to the LaTeX output
#---------------------------------------------------------------------------
-# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will
+# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will
# generate Latex output.
GENERATE_LATEX = @enable_latex_docs@
-# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put.
-# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
# put in front of it. If left blank `latex' will be used as the default path.
LATEX_OUTPUT = latex
-# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be
+# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be
# invoked. If left blank `latex' will be used as the default command name.
LATEX_CMD_NAME = latex
-# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to
-# generate index for LaTeX. If left blank `makeindex' will be used as the
+# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to
+# generate index for LaTeX. If left blank `makeindex' will be used as the
# default command name.
MAKEINDEX_CMD_NAME = makeindex
-# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact
-# LaTeX documents. This may be useful for small projects and may help to
+# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact
+# LaTeX documents. This may be useful for small projects and may help to
# save some trees in general.
COMPACT_LATEX = NO
-# The PAPER_TYPE tag can be used to set the paper type that is used
-# by the printer. Possible values are: a4, a4wide, letter, legal and
+# The PAPER_TYPE tag can be used to set the paper type that is used
+# by the printer. Possible values are: a4, a4wide, letter, legal and
# executive. If left blank a4wide will be used.
PAPER_TYPE = letter
-# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX
+# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX
# packages that should be included in the LaTeX output.
-EXTRA_PACKAGES =
+EXTRA_PACKAGES =
-# The LATEX_HEADER tag can be used to specify a personal LaTeX header for
-# the generated latex document. The header should contain everything until
-# the first chapter. If it is left blank doxygen will generate a
+# The LATEX_HEADER tag can be used to specify a personal LaTeX header for
+# the generated latex document. The header should contain everything until
+# the first chapter. If it is left blank doxygen will generate a
# standard header. Notice: only use this tag if you know what you are doing!
-LATEX_HEADER =
+LATEX_HEADER =
-# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated
-# is prepared for conversion to pdf (using ps2pdf). The pdf file will
-# contain links (just like the HTML output) instead of page references
+# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated
+# is prepared for conversion to pdf (using ps2pdf). The pdf file will
+# contain links (just like the HTML output) instead of page references
# This makes the output suitable for online browsing using a pdf viewer.
PDF_HYPERLINKS = YES
-# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of
-# plain latex in the generated Makefile. Set this option to YES to get a
+# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of
+# plain latex in the generated Makefile. Set this option to YES to get a
# higher quality PDF documentation.
USE_PDFLATEX = NO
-# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode.
-# command to the generated LaTeX files. This will instruct LaTeX to keep
-# running if errors occur, instead of asking the user for help.
+# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode.
+# command to the generated LaTeX files. This will instruct LaTeX to keep
+# running if errors occur, instead of asking the user for help.
# This option is also used when generating formulas in HTML.
LATEX_BATCHMODE = NO
-# If LATEX_HIDE_INDICES is set to YES then doxygen will not
-# include the index chapters (such as File Index, Compound Index, etc.)
+# If LATEX_HIDE_INDICES is set to YES then doxygen will not
+# include the index chapters (such as File Index, Compound Index, etc.)
# in the output.
LATEX_HIDE_INDICES = NO
@@ -1101,68 +1101,68 @@ LATEX_HIDE_INDICES = NO
# configuration options related to the RTF output
#---------------------------------------------------------------------------
-# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output
-# The RTF output is optimized for Word 97 and may not look very pretty with
+# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output
+# The RTF output is optimized for Word 97 and may not look very pretty with
# other RTF readers or editors.
GENERATE_RTF = NO
-# The RTF_OUTPUT tag is used to specify where the RTF docs will be put.
-# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# The RTF_OUTPUT tag is used to specify where the RTF docs will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
# put in front of it. If left blank `rtf' will be used as the default path.
RTF_OUTPUT = rtf
-# If the COMPACT_RTF tag is set to YES Doxygen generates more compact
-# RTF documents. This may be useful for small projects and may help to
+# If the COMPACT_RTF tag is set to YES Doxygen generates more compact
+# RTF documents. This may be useful for small projects and may help to
# save some trees in general.
COMPACT_RTF = NO
-# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated
-# will contain hyperlink fields. The RTF file will
-# contain links (just like the HTML output) instead of page references.
-# This makes the output suitable for online browsing using WORD or other
-# programs which support those fields.
+# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated
+# will contain hyperlink fields. The RTF file will
+# contain links (just like the HTML output) instead of page references.
+# This makes the output suitable for online browsing using WORD or other
+# programs which support those fields.
# Note: wordpad (write) and others do not support links.
RTF_HYPERLINKS = NO
-# Load stylesheet definitions from file. Syntax is similar to doxygen's
-# config file, i.e. a series of assignments. You only have to provide
+# Load stylesheet definitions from file. Syntax is similar to doxygen's
+# config file, i.e. a series of assignments. You only have to provide
# replacements, missing definitions are set to their default value.
-RTF_STYLESHEET_FILE =
+RTF_STYLESHEET_FILE =
-# Set optional variables used in the generation of an rtf document.
+# Set optional variables used in the generation of an rtf document.
# Syntax is similar to doxygen's config file.
-RTF_EXTENSIONS_FILE =
+RTF_EXTENSIONS_FILE =
#---------------------------------------------------------------------------
# configuration options related to the man page output
#---------------------------------------------------------------------------
-# If the GENERATE_MAN tag is set to YES (the default) Doxygen will
+# If the GENERATE_MAN tag is set to YES (the default) Doxygen will
# generate man pages
GENERATE_MAN = NO
-# The MAN_OUTPUT tag is used to specify where the man pages will be put.
-# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# The MAN_OUTPUT tag is used to specify where the man pages will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
# put in front of it. If left blank `man' will be used as the default path.
MAN_OUTPUT = man
-# The MAN_EXTENSION tag determines the extension that is added to
+# The MAN_EXTENSION tag determines the extension that is added to
# the generated man pages (default is the subroutine's section .3)
MAN_EXTENSION = .3
-# If the MAN_LINKS tag is set to YES and Doxygen generates man output,
-# then it will generate one additional man file for each entity
-# documented in the real man page(s). These additional files
-# only source the real man page, but without them the man command
+# If the MAN_LINKS tag is set to YES and Doxygen generates man output,
+# then it will generate one additional man file for each entity
+# documented in the real man page(s). These additional files
+# only source the real man page, but without them the man command
# would be unable to find the correct page. The default is NO.
MAN_LINKS = NO
@@ -1171,33 +1171,33 @@ MAN_LINKS = NO
# configuration options related to the XML output
#---------------------------------------------------------------------------
-# If the GENERATE_XML tag is set to YES Doxygen will
-# generate an XML file that captures the structure of
+# If the GENERATE_XML tag is set to YES Doxygen will
+# generate an XML file that captures the structure of
# the code including all documentation.
GENERATE_XML = @enable_xml_docs@
-# The XML_OUTPUT tag is used to specify where the XML pages will be put.
-# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# The XML_OUTPUT tag is used to specify where the XML pages will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
# put in front of it. If left blank `xml' will be used as the default path.
XML_OUTPUT = xml
-# The XML_SCHEMA tag can be used to specify an XML schema,
-# which can be used by a validating XML parser to check the
+# The XML_SCHEMA tag can be used to specify an XML schema,
+# which can be used by a validating XML parser to check the
# syntax of the XML files.
-XML_SCHEMA =
+XML_SCHEMA =
-# The XML_DTD tag can be used to specify an XML DTD,
-# which can be used by a validating XML parser to check the
+# The XML_DTD tag can be used to specify an XML DTD,
+# which can be used by a validating XML parser to check the
# syntax of the XML files.
-XML_DTD =
+XML_DTD =
-# If the XML_PROGRAMLISTING tag is set to YES Doxygen will
-# dump the program listings (including syntax highlighting
-# and cross-referencing information) to the XML output. Note that
+# If the XML_PROGRAMLISTING tag is set to YES Doxygen will
+# dump the program listings (including syntax highlighting
+# and cross-referencing information) to the XML output. Note that
# enabling this will significantly increase the size of the XML output.
XML_PROGRAMLISTING = NO
@@ -1206,10 +1206,10 @@ XML_PROGRAMLISTING = NO
# configuration options for the AutoGen Definitions output
#---------------------------------------------------------------------------
-# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will
-# generate an AutoGen Definitions (see autogen.sf.net) file
-# that captures the structure of the code including all
-# documentation. Note that this feature is still experimental
+# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will
+# generate an AutoGen Definitions (see autogen.sf.net) file
+# that captures the structure of the code including all
+# documentation. Note that this feature is still experimental
# and incomplete at the moment.
GENERATE_AUTOGEN_DEF = NO
@@ -1218,343 +1218,343 @@ GENERATE_AUTOGEN_DEF = NO
# configuration options related to the Perl module output
#---------------------------------------------------------------------------
-# If the GENERATE_PERLMOD tag is set to YES Doxygen will
-# generate a Perl module file that captures the structure of
-# the code including all documentation. Note that this
-# feature is still experimental and incomplete at the
+# If the GENERATE_PERLMOD tag is set to YES Doxygen will
+# generate a Perl module file that captures the structure of
+# the code including all documentation. Note that this
+# feature is still experimental and incomplete at the
# moment.
GENERATE_PERLMOD = NO
-# If the PERLMOD_LATEX tag is set to YES Doxygen will generate
-# the necessary Makefile rules, Perl scripts and LaTeX code to be able
+# If the PERLMOD_LATEX tag is set to YES Doxygen will generate
+# the necessary Makefile rules, Perl scripts and LaTeX code to be able
# to generate PDF and DVI output from the Perl module output.
PERLMOD_LATEX = NO
-# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be
-# nicely formatted so it can be parsed by a human reader. This is useful
-# if you want to understand what is going on. On the other hand, if this
-# tag is set to NO the size of the Perl module output will be much smaller
+# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be
+# nicely formatted so it can be parsed by a human reader. This is useful
+# if you want to understand what is going on. On the other hand, if this
+# tag is set to NO the size of the Perl module output will be much smaller
# and Perl will parse it just the same.
PERLMOD_PRETTY = YES
-# The names of the make variables in the generated doxyrules.make file
-# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX.
-# This is useful so different doxyrules.make files included by the same
+# The names of the make variables in the generated doxyrules.make file
+# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX.
+# This is useful so different doxyrules.make files included by the same
# Makefile don't overwrite each other's variables.
-PERLMOD_MAKEVAR_PREFIX =
+PERLMOD_MAKEVAR_PREFIX =
#---------------------------------------------------------------------------
-# Configuration options related to the preprocessor
+# Configuration options related to the preprocessor
#---------------------------------------------------------------------------
-# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will
-# evaluate all C-preprocessor directives found in the sources and include
+# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will
+# evaluate all C-preprocessor directives found in the sources and include
# files.
ENABLE_PREPROCESSING = YES
-# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro
-# names in the source code. If set to NO (the default) only conditional
-# compilation will be performed. Macro expansion can be done in a controlled
+# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro
+# names in the source code. If set to NO (the default) only conditional
+# compilation will be performed. Macro expansion can be done in a controlled
# way by setting EXPAND_ONLY_PREDEF to YES.
MACRO_EXPANSION = NO
-# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES
-# then the macro expansion is limited to the macros specified with the
+# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES
+# then the macro expansion is limited to the macros specified with the
# PREDEFINED and EXPAND_AS_DEFINED tags.
EXPAND_ONLY_PREDEF = NO
-# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files
+# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files
# in the INCLUDE_PATH (see below) will be search if a #include is found.
SEARCH_INCLUDES = YES
-# The INCLUDE_PATH tag can be used to specify one or more directories that
-# contain include files that are not input files but should be processed by
+# The INCLUDE_PATH tag can be used to specify one or more directories that
+# contain include files that are not input files but should be processed by
# the preprocessor.
INCLUDE_PATH = @abs_top_builddir@/gruel/src/lib/pmt/
-# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard
-# patterns (like *.h and *.hpp) to filter out the header-files in the
-# directories. If left blank, the patterns specified with FILE_PATTERNS will
+# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard
+# patterns (like *.h and *.hpp) to filter out the header-files in the
+# directories. If left blank, the patterns specified with FILE_PATTERNS will
# be used.
-INCLUDE_FILE_PATTERNS =
+INCLUDE_FILE_PATTERNS =
-# The PREDEFINED tag can be used to specify one or more macro names that
-# are defined before the preprocessor is started (similar to the -D option of
-# gcc). The argument of the tag is a list of macros of the form: name
-# or name=definition (no spaces). If the definition and the = are
-# omitted =1 is assumed. To prevent a macro definition from being
-# undefined via #undef or recursively expanded use the := operator
+# The PREDEFINED tag can be used to specify one or more macro names that
+# are defined before the preprocessor is started (similar to the -D option of
+# gcc). The argument of the tag is a list of macros of the form: name
+# or name=definition (no spaces). If the definition and the = are
+# omitted =1 is assumed. To prevent a macro definition from being
+# undefined via #undef or recursively expanded use the := operator
# instead of the = operator.
-PREDEFINED =
+PREDEFINED =
-# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then
-# this tag can be used to specify a list of macro names that should be expanded.
-# The macro definition that is found in the sources will be used.
+# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then
+# this tag can be used to specify a list of macro names that should be expanded.
+# The macro definition that is found in the sources will be used.
# Use the PREDEFINED tag if you want to use a different macro definition.
-EXPAND_AS_DEFINED =
+EXPAND_AS_DEFINED =
-# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then
-# doxygen's preprocessor will remove all function-like macros that are alone
-# on a line, have an all uppercase name, and do not end with a semicolon. Such
-# function macros are typically used for boiler-plate code, and will confuse
+# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then
+# doxygen's preprocessor will remove all function-like macros that are alone
+# on a line, have an all uppercase name, and do not end with a semicolon. Such
+# function macros are typically used for boiler-plate code, and will confuse
# the parser if not removed.
SKIP_FUNCTION_MACROS = YES
#---------------------------------------------------------------------------
-# Configuration::additions related to external references
+# Configuration::additions related to external references
#---------------------------------------------------------------------------
-# The TAGFILES option can be used to specify one or more tagfiles.
-# Optionally an initial location of the external documentation
-# can be added for each tagfile. The format of a tag file without
-# this location is as follows:
-# TAGFILES = file1 file2 ...
-# Adding location for the tag files is done as follows:
-# TAGFILES = file1=loc1 "file2 = loc2" ...
-# where "loc1" and "loc2" can be relative or absolute paths or
-# URLs. If a location is present for each tag, the installdox tool
+# The TAGFILES option can be used to specify one or more tagfiles.
+# Optionally an initial location of the external documentation
+# can be added for each tagfile. The format of a tag file without
+# this location is as follows:
+# TAGFILES = file1 file2 ...
+# Adding location for the tag files is done as follows:
+# TAGFILES = file1=loc1 "file2 = loc2" ...
+# where "loc1" and "loc2" can be relative or absolute paths or
+# URLs. If a location is present for each tag, the installdox tool
# does not have to be run to correct the links.
# Note that each tag file must have a unique name
# (where the name does NOT include the path)
-# If a tag file is not located in the directory in which doxygen
+# If a tag file is not located in the directory in which doxygen
# is run, you must also specify the path to the tagfile here.
-TAGFILES =
+TAGFILES =
-# When a file name is specified after GENERATE_TAGFILE, doxygen will create
+# When a file name is specified after GENERATE_TAGFILE, doxygen will create
# a tag file that is based on the input files it reads.
-GENERATE_TAGFILE =
+GENERATE_TAGFILE =
-# If the ALLEXTERNALS tag is set to YES all external classes will be listed
-# in the class index. If set to NO only the inherited external classes
+# If the ALLEXTERNALS tag is set to YES all external classes will be listed
+# in the class index. If set to NO only the inherited external classes
# will be listed.
ALLEXTERNALS = NO
-# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed
-# in the modules index. If set to NO, only the current project's groups will
+# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed
+# in the modules index. If set to NO, only the current project's groups will
# be listed.
EXTERNAL_GROUPS = YES
-# The PERL_PATH should be the absolute path and name of the perl script
+# The PERL_PATH should be the absolute path and name of the perl script
# interpreter (i.e. the result of `which perl').
PERL_PATH = /usr/bin/perl
#---------------------------------------------------------------------------
-# Configuration options related to the dot tool
+# Configuration options related to the dot tool
#---------------------------------------------------------------------------
-# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will
-# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base
-# or super classes. Setting the tag to NO turns the diagrams off. Note that
-# this option is superseded by the HAVE_DOT option below. This is only a
-# fallback. It is recommended to install and use dot, since it yields more
+# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will
+# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base
+# or super classes. Setting the tag to NO turns the diagrams off. Note that
+# this option is superseded by the HAVE_DOT option below. This is only a
+# fallback. It is recommended to install and use dot, since it yields more
# powerful graphs.
CLASS_DIAGRAMS = YES
-# You can define message sequence charts within doxygen comments using the \msc
-# command. Doxygen will then run the mscgen tool (see
-# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the
-# documentation. The MSCGEN_PATH tag allows you to specify the directory where
-# the mscgen tool resides. If left empty the tool is assumed to be found in the
+# You can define message sequence charts within doxygen comments using the \msc
+# command. Doxygen will then run the mscgen tool (see
+# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the
+# documentation. The MSCGEN_PATH tag allows you to specify the directory where
+# the mscgen tool resides. If left empty the tool is assumed to be found in the
# default search path.
-MSCGEN_PATH =
+MSCGEN_PATH =
-# If set to YES, the inheritance and collaboration graphs will hide
-# inheritance and usage relations if the target is undocumented
+# If set to YES, the inheritance and collaboration graphs will hide
+# inheritance and usage relations if the target is undocumented
# or is not a class.
HIDE_UNDOC_RELATIONS = YES
-# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is
-# available from the path. This tool is part of Graphviz, a graph visualization
-# toolkit from AT&T and Lucent Bell Labs. The other options in this section
+# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is
+# available from the path. This tool is part of Graphviz, a graph visualization
+# toolkit from AT&T and Lucent Bell Labs. The other options in this section
# have no effect if this option is set to NO (the default)
HAVE_DOT = @HAVE_DOT@
-# By default doxygen will write a font called FreeSans.ttf to the output
-# directory and reference it in all dot files that doxygen generates. This
-# font does not include all possible unicode characters however, so when you need
-# these (or just want a differently looking font) you can specify the font name
-# using DOT_FONTNAME. You need need to make sure dot is able to find the font,
-# which can be done by putting it in a standard location or by setting the
-# DOTFONTPATH environment variable or by setting DOT_FONTPATH to the directory
+# By default doxygen will write a font called FreeSans.ttf to the output
+# directory and reference it in all dot files that doxygen generates. This
+# font does not include all possible unicode characters however, so when you need
+# these (or just want a differently looking font) you can specify the font name
+# using DOT_FONTNAME. You need need to make sure dot is able to find the font,
+# which can be done by putting it in a standard location or by setting the
+# DOTFONTPATH environment variable or by setting DOT_FONTPATH to the directory
# containing the font.
DOT_FONTNAME = FreeSans
-# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs.
+# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs.
# The default size is 10pt.
DOT_FONTSIZE = 10
-# By default doxygen will tell dot to use the output directory to look for the
-# FreeSans.ttf font (which doxygen will put there itself). If you specify a
-# different font using DOT_FONTNAME you can set the path where dot
+# By default doxygen will tell dot to use the output directory to look for the
+# FreeSans.ttf font (which doxygen will put there itself). If you specify a
+# different font using DOT_FONTNAME you can set the path where dot
# can find it using this tag.
-DOT_FONTPATH =
+DOT_FONTPATH =
-# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen
-# will generate a graph for each documented class showing the direct and
-# indirect inheritance relations. Setting this tag to YES will force the
+# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen
+# will generate a graph for each documented class showing the direct and
+# indirect inheritance relations. Setting this tag to YES will force the
# the CLASS_DIAGRAMS tag to NO.
CLASS_GRAPH = YES
-# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen
-# will generate a graph for each documented class showing the direct and
-# indirect implementation dependencies (inheritance, containment, and
+# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen
+# will generate a graph for each documented class showing the direct and
+# indirect implementation dependencies (inheritance, containment, and
# class references variables) of the class with other documented classes.
COLLABORATION_GRAPH = NO
-# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen
+# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen
# will generate a graph for groups, showing the direct groups dependencies
GROUP_GRAPHS = YES
-# If the UML_LOOK tag is set to YES doxygen will generate inheritance and
-# collaboration diagrams in a style similar to the OMG's Unified Modeling
+# If the UML_LOOK tag is set to YES doxygen will generate inheritance and
+# collaboration diagrams in a style similar to the OMG's Unified Modeling
# Language.
UML_LOOK = NO
-# If set to YES, the inheritance and collaboration graphs will show the
+# If set to YES, the inheritance and collaboration graphs will show the
# relations between templates and their instances.
TEMPLATE_RELATIONS = NO
-# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT
-# tags are set to YES then doxygen will generate a graph for each documented
-# file showing the direct and indirect include dependencies of the file with
+# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT
+# tags are set to YES then doxygen will generate a graph for each documented
+# file showing the direct and indirect include dependencies of the file with
# other documented files.
INCLUDE_GRAPH = YES
-# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and
-# HAVE_DOT tags are set to YES then doxygen will generate a graph for each
-# documented header file showing the documented files that directly or
+# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and
+# HAVE_DOT tags are set to YES then doxygen will generate a graph for each
+# documented header file showing the documented files that directly or
# indirectly include this file.
INCLUDED_BY_GRAPH = YES
-# If the CALL_GRAPH and HAVE_DOT options are set to YES then
-# doxygen will generate a call dependency graph for every global function
-# or class method. Note that enabling this option will significantly increase
-# the time of a run. So in most cases it will be better to enable call graphs
+# If the CALL_GRAPH and HAVE_DOT options are set to YES then
+# doxygen will generate a call dependency graph for every global function
+# or class method. Note that enabling this option will significantly increase
+# the time of a run. So in most cases it will be better to enable call graphs
# for selected functions only using the \callgraph command.
CALL_GRAPH = NO
-# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then
-# doxygen will generate a caller dependency graph for every global function
-# or class method. Note that enabling this option will significantly increase
-# the time of a run. So in most cases it will be better to enable caller
+# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then
+# doxygen will generate a caller dependency graph for every global function
+# or class method. Note that enabling this option will significantly increase
+# the time of a run. So in most cases it will be better to enable caller
# graphs for selected functions only using the \callergraph command.
CALLER_GRAPH = NO
-# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen
+# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen
# will graphical hierarchy of all classes instead of a textual one.
GRAPHICAL_HIERARCHY = YES
-# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES
-# then doxygen will show the dependencies a directory has on other directories
+# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES
+# then doxygen will show the dependencies a directory has on other directories
# in a graphical way. The dependency relations are determined by the #include
# relations between the files in the directories.
DIRECTORY_GRAPH = YES
-# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images
+# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images
# generated by dot. Possible values are png, jpg, or gif
# If left blank png will be used.
DOT_IMAGE_FORMAT = png
-# The tag DOT_PATH can be used to specify the path where the dot tool can be
+# The tag DOT_PATH can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found in the path.
-DOT_PATH =
+DOT_PATH =
-# The DOTFILE_DIRS tag can be used to specify one or more directories that
-# contain dot files that are included in the documentation (see the
+# The DOTFILE_DIRS tag can be used to specify one or more directories that
+# contain dot files that are included in the documentation (see the
# \dotfile command).
-DOTFILE_DIRS =
+DOTFILE_DIRS =
-# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of
-# nodes that will be shown in the graph. If the number of nodes in a graph
-# becomes larger than this value, doxygen will truncate the graph, which is
-# visualized by representing a node as a red box. Note that doxygen if the
-# number of direct children of the root node in a graph is already larger than
-# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note
+# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of
+# nodes that will be shown in the graph. If the number of nodes in a graph
+# becomes larger than this value, doxygen will truncate the graph, which is
+# visualized by representing a node as a red box. Note that doxygen if the
+# number of direct children of the root node in a graph is already larger than
+# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note
# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH.
DOT_GRAPH_MAX_NODES = 50
-# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the
-# graphs generated by dot. A depth value of 3 means that only nodes reachable
-# from the root by following a path via at most 3 edges will be shown. Nodes
-# that lay further from the root node will be omitted. Note that setting this
-# option to 1 or 2 may greatly reduce the computation time needed for large
-# code bases. Also note that the size of a graph can be further restricted by
+# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the
+# graphs generated by dot. A depth value of 3 means that only nodes reachable
+# from the root by following a path via at most 3 edges will be shown. Nodes
+# that lay further from the root node will be omitted. Note that setting this
+# option to 1 or 2 may greatly reduce the computation time needed for large
+# code bases. Also note that the size of a graph can be further restricted by
# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction.
MAX_DOT_GRAPH_DEPTH = 0
-# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent
-# background. This is disabled by default, because dot on Windows does not
-# seem to support this out of the box. Warning: Depending on the platform used,
-# enabling this option may lead to badly anti-aliased labels on the edges of
+# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent
+# background. This is disabled by default, because dot on Windows does not
+# seem to support this out of the box. Warning: Depending on the platform used,
+# enabling this option may lead to badly anti-aliased labels on the edges of
# a graph (i.e. they become hard to read).
DOT_TRANSPARENT = NO
-# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output
-# files in one run (i.e. multiple -o and -T options on the command line). This
-# makes dot run faster, but since only newer versions of dot (>1.8.10)
+# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output
+# files in one run (i.e. multiple -o and -T options on the command line). This
+# makes dot run faster, but since only newer versions of dot (>1.8.10)
# support this, this feature is disabled by default.
DOT_MULTI_TARGETS = YES
-# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will
-# generate a legend page explaining the meaning of the various boxes and
+# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will
+# generate a legend page explaining the meaning of the various boxes and
# arrows in the dot generated graphs.
GENERATE_LEGEND = YES
-# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will
-# remove the intermediate dot files that are used to generate
+# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will
+# remove the intermediate dot files that are used to generate
# the various graphs.
DOT_CLEANUP = YES
#---------------------------------------------------------------------------
-# Configuration::additions related to the search engine
+# Configuration::additions related to the search engine
#---------------------------------------------------------------------------
-# The SEARCHENGINE tag specifies whether or not a search engine should be
+# The SEARCHENGINE tag specifies whether or not a search engine should be
# used. If set to NO the values of all tags below this one will be ignored.
SEARCHENGINE = NO
diff --git a/docs/doxygen/doxyxml/__init__.py b/docs/doxygen/doxyxml/__init__.py
index c9786c3f8..5cd0b3c6c 100644
--- a/docs/doxygen/doxyxml/__init__.py
+++ b/docs/doxygen/doxyxml/__init__.py
@@ -1,23 +1,23 @@
#
# Copyright 2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
"""
Python interface to contents of doxygen xml documentation.
@@ -27,7 +27,7 @@ doxygen-generated xml used in this example.
>>> # Parse the doxygen docs.
>>> import os
->>> this_dir = os.path.dirname(globals()['__file__'])
+>>> this_dir = os.path.dirname(globals()['__file__'])
>>> xml_path = this_dir + "/example/xml/"
>>> di = DoxyIndex(xml_path)
@@ -68,7 +68,7 @@ from doxyindex import DoxyIndex, DoxyFunction, DoxyParam, DoxyClass, DoxyFile, D
def _test():
import os
- this_dir = os.path.dirname(globals()['__file__'])
+ this_dir = os.path.dirname(globals()['__file__'])
xml_path = this_dir + "/example/xml/"
di = DoxyIndex(xml_path)
# Get the Aadvark class
diff --git a/docs/doxygen/doxyxml/base.py b/docs/doxygen/doxyxml/base.py
index 097e3f15b..e8f026ab9 100644
--- a/docs/doxygen/doxyxml/base.py
+++ b/docs/doxygen/doxyxml/base.py
@@ -1,23 +1,23 @@
#
# Copyright 2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
"""
A base class is created.
@@ -144,7 +144,7 @@ class Base(object):
self._in_category[cat] = [mem for mem in self._members
if cat.includes(mem)]
return self._in_category[cat]
-
+
def get_member(self, name, cat=None):
self.confirm_no_error()
# Check if it's in a namespace or class.
@@ -173,7 +173,7 @@ class Base(object):
def members(self):
self.confirm_no_error()
return self._members
-
+
def process_memberdefs(self):
mdtss = []
for sec in self._retrieved_data.compounddef.sectiondef:
@@ -188,7 +188,7 @@ class Base(object):
if pair not in uniques:
uniques.add(pair)
self._members.append(converted)
-
+
def retrieve_data(self):
filename = os.path.join(self._xml_path, self.refid + '.xml')
try:
@@ -197,7 +197,7 @@ class Base(object):
print('Error in xml in file %s' % filename)
self._error = True
self._retrieved_data = None
-
+
def check_parsed(self):
if not self._parsed:
self._parse()
diff --git a/docs/doxygen/doxyxml/doxyindex.py b/docs/doxygen/doxyxml/doxyindex.py
index 42aa4ca58..0132ab86f 100644
--- a/docs/doxygen/doxyxml/doxyindex.py
+++ b/docs/doxygen/doxyxml/doxyindex.py
@@ -1,23 +1,23 @@
#
# Copyright 2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
"""
Classes providing more user-friendly interfaces to the doxygen xml
docs than the generated classes provide.
@@ -40,7 +40,7 @@ class DoxyIndex(Base):
if self._parsed:
return
super(DoxyIndex, self)._parse()
- self._root = index.parse(os.path.join(self._xml_path, 'index.xml'))
+ self._root = index.parse(os.path.join(self._xml_path, 'index.xml'))
for mem in self._root.compound:
converted = self.convert_mem(mem)
# For files we want the contents to be accessible directly
@@ -78,14 +78,14 @@ class DoxyCompMem(Base):
bd = description(getattr(parse_data, 'briefdescription', None))
dd = description(getattr(parse_data, 'detaileddescription', None))
self._data['brief_description'] = bd
- self._data['detailed_description'] = dd
+ self._data['detailed_description'] = dd
class DoxyCompound(DoxyCompMem):
pass
class DoxyMember(DoxyCompMem):
pass
-
+
class DoxyFunction(DoxyMember):
@@ -111,7 +111,7 @@ Base.mem_classes.append(DoxyFunction)
class DoxyParam(DoxyMember):
-
+
__module__ = "gnuradio.utils.doxyxml"
def _parse(self):
@@ -126,11 +126,11 @@ class DoxyParam(DoxyMember):
declname = property(lambda self: self.data()['declname'])
class DoxyClass(DoxyCompound):
-
+
__module__ = "gnuradio.utils.doxyxml"
kind = 'class'
-
+
def _parse(self):
if self._parsed:
return
@@ -147,14 +147,14 @@ class DoxyClass(DoxyCompound):
detailed_description = property(lambda self: self.data()['detailed_description'])
Base.mem_classes.append(DoxyClass)
-
+
class DoxyFile(DoxyCompound):
-
+
__module__ = "gnuradio.utils.doxyxml"
kind = 'file'
-
+
def _parse(self):
if self._parsed:
return
@@ -164,7 +164,7 @@ class DoxyFile(DoxyCompound):
if self._error:
return
self.process_memberdefs()
-
+
brief_description = property(lambda self: self.data()['brief_description'])
detailed_description = property(lambda self: self.data()['detailed_description'])
@@ -172,16 +172,16 @@ Base.mem_classes.append(DoxyFile)
class DoxyNamespace(DoxyCompound):
-
+
__module__ = "gnuradio.utils.doxyxml"
kind = 'namespace'
-
+
Base.mem_classes.append(DoxyNamespace)
class DoxyGroup(DoxyCompound):
-
+
__module__ = "gnuradio.utils.doxyxml"
kind = 'group'
@@ -209,7 +209,7 @@ class DoxyGroup(DoxyCompound):
self.process_memberdefs()
title = property(lambda self: self.data()['title'])
-
+
Base.mem_classes.append(DoxyGroup)
@@ -224,7 +224,7 @@ Base.mem_classes.append(DoxyFriend)
class DoxyOther(Base):
-
+
__module__ = "gnuradio.utils.doxyxml"
kinds = set(['variable', 'struct', 'union', 'define', 'typedef', 'enum', 'dir', 'page'])
@@ -232,6 +232,6 @@ class DoxyOther(Base):
@classmethod
def can_parse(cls, obj):
return obj.kind in cls.kinds
-
+
Base.mem_classes.append(DoxyOther)
diff --git a/docs/doxygen/doxyxml/example/aadvark.cc b/docs/doxygen/doxyxml/example/aadvark.cc
index 5744c428a..f91c1ba56 100644
--- a/docs/doxygen/doxyxml/example/aadvark.cc
+++ b/docs/doxygen/doxyxml/example/aadvark.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010 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,
diff --git a/docs/doxygen/doxyxml/example/aadvark.h b/docs/doxygen/doxyxml/example/aadvark.h
index 7b8f29c98..d3c17445e 100644
--- a/docs/doxygen/doxyxml/example/aadvark.h
+++ b/docs/doxygen/doxyxml/example/aadvark.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010 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,
diff --git a/docs/doxygen/doxyxml/example/xml/combine.xslt b/docs/doxygen/doxyxml/example/xml/combine.xslt
index abdd9ac75..6de203a2b 100644
--- a/docs/doxygen/doxyxml/example/xml/combine.xslt
+++ b/docs/doxygen/doxyxml/example/xml/combine.xslt
@@ -1,4 +1,4 @@
-<!-- XSLT script to combine the generated output into a single file.
+<!-- XSLT script to combine the generated output into a single file.
If you have xsltproc you could use:
xsltproc combine.xslt index.xml >all.xml
-->
diff --git a/docs/doxygen/doxyxml/example/xml/compound.xsd b/docs/doxygen/doxyxml/example/xml/compound.xsd
index 369e2300f..5bb567052 100644
--- a/docs/doxygen/doxyxml/example/xml/compound.xsd
+++ b/docs/doxygen/doxyxml/example/xml/compound.xsd
@@ -173,7 +173,7 @@
<xsd:complexType name="descriptionType" mixed="true">
<xsd:sequence>
- <xsd:element name="title" type="xsd:string" minOccurs="0"/>
+ <xsd:element name="title" type="xsd:string" minOccurs="0"/>
<xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="sect1" type="docSect1Type" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="internal" type="docInternalType" minOccurs="0" />
@@ -283,7 +283,7 @@
<xsd:complexType name="docSect1Type" mixed="true">
<xsd:sequence>
- <xsd:element name="title" type="xsd:string" />
+ <xsd:element name="title" type="xsd:string" />
<xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="sect2" type="docSect2Type" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="internal" type="docInternalS1Type" minOccurs="0" />
@@ -293,7 +293,7 @@
<xsd:complexType name="docSect2Type" mixed="true">
<xsd:sequence>
- <xsd:element name="title" type="xsd:string" />
+ <xsd:element name="title" type="xsd:string" />
<xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="sect3" type="docSect3Type" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="internal" type="docInternalS2Type" minOccurs="0" />
@@ -303,7 +303,7 @@
<xsd:complexType name="docSect3Type" mixed="true">
<xsd:sequence>
- <xsd:element name="title" type="xsd:string" />
+ <xsd:element name="title" type="xsd:string" />
<xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="sect4" type="docSect4Type" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="internal" type="docInternalS3Type" minOccurs="0" />
@@ -313,7 +313,7 @@
<xsd:complexType name="docSect4Type" mixed="true">
<xsd:sequence>
- <xsd:element name="title" type="xsd:string" />
+ <xsd:element name="title" type="xsd:string" />
<xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="internal" type="docInternalS4Type" minOccurs="0" />
</xsd:sequence>
@@ -353,7 +353,7 @@
<xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
</xsd:complexType>
-
+
<xsd:group name="docTitleCmdGroup">
<xsd:choice>
<xsd:element name="ulink" type="docURLLink" />
@@ -532,20 +532,20 @@
<xsd:complexType name="docImageType" mixed="true">
<xsd:group ref="docTitleCmdGroup" minOccurs="0" maxOccurs="unbounded" />
- <xsd:attribute name="type" type="DoxImageKind" />
- <xsd:attribute name="name" type="xsd:string" />
- <xsd:attribute name="width" type="xsd:string" />
- <xsd:attribute name="height" type="xsd:string" />
+ <xsd:attribute name="type" type="DoxImageKind" />
+ <xsd:attribute name="name" type="xsd:string" />
+ <xsd:attribute name="width" type="xsd:string" />
+ <xsd:attribute name="height" type="xsd:string" />
</xsd:complexType>
<xsd:complexType name="docDotFileType" mixed="true">
<xsd:group ref="docTitleCmdGroup" minOccurs="0" maxOccurs="unbounded" />
- <xsd:attribute name="name" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
<xsd:complexType name="docTocItemType" mixed="true">
<xsd:group ref="docTitleCmdGroup" minOccurs="0" maxOccurs="unbounded" />
- <xsd:attribute name="id" type="xsd:string" />
+ <xsd:attribute name="id" type="xsd:string" />
</xsd:complexType>
<xsd:complexType name="docTocListType">
@@ -558,14 +558,14 @@
<xsd:sequence>
<xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
- <xsd:attribute name="langid" type="xsd:string" />
+ <xsd:attribute name="langid" type="xsd:string" />
</xsd:complexType>
<xsd:complexType name="docParamListType">
<xsd:sequence>
<xsd:element name="parameteritem" type="docParamListItem" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
- <xsd:attribute name="kind" type="DoxParamListKind" />
+ <xsd:attribute name="kind" type="DoxParamListKind" />
</xsd:complexType>
<xsd:complexType name="docParamListItem">
@@ -593,7 +593,7 @@
<xsd:element name="xreftitle" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="xrefdescription" type="descriptionType" />
</xsd:sequence>
- <xsd:attribute name="id" type="xsd:string" />
+ <xsd:attribute name="id" type="xsd:string" />
</xsd:complexType>
<xsd:complexType name="docCopyType">
@@ -602,11 +602,11 @@
<xsd:element name="sect1" type="docSect1Type" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="internal" type="docInternalType" minOccurs="0" />
</xsd:sequence>
- <xsd:attribute name="link" type="xsd:string" />
+ <xsd:attribute name="link" type="xsd:string" />
</xsd:complexType>
<xsd:complexType name="docCharType">
- <xsd:attribute name="char" type="DoxCharRange"/>
+ <xsd:attribute name="char" type="DoxCharRange"/>
</xsd:complexType>
<xsd:complexType name="docEmptyType"/>
diff --git a/docs/doxygen/doxyxml/example/xml/index.xsd b/docs/doxygen/doxyxml/example/xml/index.xsd
index d7ab2a906..bfe960c0f 100644
--- a/docs/doxygen/doxyxml/example/xml/index.xsd
+++ b/docs/doxygen/doxyxml/example/xml/index.xsd
@@ -25,7 +25,7 @@
<xsd:attribute name="refid" type="xsd:string" use="required"/>
<xsd:attribute name="kind" type="MemberKind" use="required"/>
</xsd:complexType>
-
+
<xsd:simpleType name="CompoundKind">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="class"/>
diff --git a/docs/doxygen/doxyxml/text.py b/docs/doxygen/doxyxml/text.py
index ddf2c36e2..629edd180 100644
--- a/docs/doxygen/doxyxml/text.py
+++ b/docs/doxygen/doxyxml/text.py
@@ -1,23 +1,23 @@
#
# Copyright 2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
"""
Utilities for extracting text from generated classes.
"""
diff --git a/docs/doxygen/other/build_guide.dox b/docs/doxygen/other/build_guide.dox
index 734fb9e25..780976d62 100644
--- a/docs/doxygen/other/build_guide.dox
+++ b/docs/doxygen/other/build_guide.dox
@@ -61,7 +61,7 @@ about building gr-comedi.
\li uhd (>= 3.0.0) http://code.ettus.com/redmine/ettus/projects/uhd/wiki
\subsection dep_shd shd: The Symplex Hardware Driver Interface
-\li shd (>= 3.0.0)
+\li shd (>= 3.0.0)
\subsection dep_gr_video_sdl gr-video-sdl: PAL and NTSC display
\li SDL (>= 1.2.0) http://www.libsdl.org/download-1.2.php
diff --git a/docs/doxygen/other/doxypy.py b/docs/doxygen/other/doxypy.py
index 82fdb6bea..15d3e0824 100755
--- a/docs/doxygen/other/doxypy.py
+++ b/docs/doxygen/other/doxypy.py
@@ -21,7 +21,7 @@ __website__ = "http://code.foosel.org/doxypy"
__author__ = (
"Philippe 'demod' Neumann (doxypy at demod dot org)",
- "Gina 'foosel' Haeussge (gina at foosel dot net)"
+ "Gina 'foosel' Haeussge (gina at foosel dot net)"
)
__licenseName__ = "GPL v2"
@@ -46,32 +46,32 @@ from optparse import OptionParser, OptionGroup
class FSM(object):
"""Implements a finite state machine.
-
+
Transitions are given as 4-tuples, consisting of an origin state, a target
state, a condition for the transition (given as a reference to a function
which gets called with a given piece of input) and a pointer to a function
- to be called upon the execution of the given transition.
+ to be called upon the execution of the given transition.
"""
-
+
"""
@var transitions holds the transitions
@var current_state holds the current state
@var current_input holds the current input
@var current_transition hold the currently active transition
"""
-
+
def __init__(self, start_state=None, transitions=[]):
self.transitions = transitions
self.current_state = start_state
self.current_input = None
self.current_transition = None
-
+
def setStartState(self, state):
self.current_state = state
def addTransition(self, from_state, to_state, condition, callback):
self.transitions.append([from_state, to_state, condition, callback])
-
+
def makeTransition(self, input):
""" Makes a transition based on the given input.
@@ -93,16 +93,16 @@ class FSM(object):
class Doxypy(object):
def __init__(self):
string_prefixes = "[uU]?[rR]?"
-
+
self.start_single_comment_re = re.compile("^\s*%s(''')" % string_prefixes)
self.end_single_comment_re = re.compile("(''')\s*$")
-
+
self.start_double_comment_re = re.compile("^\s*%s(\"\"\")" % string_prefixes)
self.end_double_comment_re = re.compile("(\"\"\")\s*$")
-
+
self.single_comment_re = re.compile("^\s*%s(''').*(''')\s*$" % string_prefixes)
self.double_comment_re = re.compile("^\s*%s(\"\"\").*(\"\"\")\s*$" % string_prefixes)
-
+
self.defclass_re = re.compile("^(\s*)(def .+:|class .+:)")
self.empty_re = re.compile("^\s*$")
self.hashline_re = re.compile("^\s*#.*$")
@@ -110,16 +110,16 @@ class Doxypy(object):
self.multiline_defclass_start_re = re.compile("^(\s*)(def|class)(\s.*)?$")
self.multiline_defclass_end_re = re.compile(":\s*$")
-
+
## Transition list format
# ["FROM", "TO", condition, action]
transitions = [
### FILEHEAD
-
+
# single line comments
["FILEHEAD", "FILEHEAD", self.single_comment_re.search, self.appendCommentLine],
["FILEHEAD", "FILEHEAD", self.double_comment_re.search, self.appendCommentLine],
-
+
# multiline comments
["FILEHEAD", "FILEHEAD_COMMENT_SINGLE", self.start_single_comment_re.search, self.appendCommentLine],
["FILEHEAD_COMMENT_SINGLE", "FILEHEAD", self.end_single_comment_re.search, self.appendCommentLine],
@@ -127,21 +127,21 @@ class Doxypy(object):
["FILEHEAD", "FILEHEAD_COMMENT_DOUBLE", self.start_double_comment_re.search, self.appendCommentLine],
["FILEHEAD_COMMENT_DOUBLE", "FILEHEAD", self.end_double_comment_re.search, self.appendCommentLine],
["FILEHEAD_COMMENT_DOUBLE", "FILEHEAD_COMMENT_DOUBLE", self.catchall, self.appendCommentLine],
-
+
# other lines
["FILEHEAD", "FILEHEAD", self.empty_re.search, self.appendFileheadLine],
["FILEHEAD", "FILEHEAD", self.hashline_re.search, self.appendFileheadLine],
["FILEHEAD", "FILEHEAD", self.importline_re.search, self.appendFileheadLine],
["FILEHEAD", "DEFCLASS", self.defclass_re.search, self.resetCommentSearch],
- ["FILEHEAD", "DEFCLASS_MULTI", self.multiline_defclass_start_re.search, self.resetCommentSearch],
+ ["FILEHEAD", "DEFCLASS_MULTI", self.multiline_defclass_start_re.search, self.resetCommentSearch],
["FILEHEAD", "DEFCLASS_BODY", self.catchall, self.appendFileheadLine],
### DEFCLASS
-
+
# single line comments
["DEFCLASS", "DEFCLASS_BODY", self.single_comment_re.search, self.appendCommentLine],
["DEFCLASS", "DEFCLASS_BODY", self.double_comment_re.search, self.appendCommentLine],
-
+
# multiline comments
["DEFCLASS", "COMMENT_SINGLE", self.start_single_comment_re.search, self.appendCommentLine],
["COMMENT_SINGLE", "DEFCLASS_BODY", self.end_single_comment_re.search, self.appendCommentLine],
@@ -155,9 +155,9 @@ class Doxypy(object):
["DEFCLASS", "DEFCLASS", self.defclass_re.search, self.resetCommentSearch],
["DEFCLASS", "DEFCLASS_MULTI", self.multiline_defclass_start_re.search, self.resetCommentSearch],
["DEFCLASS", "DEFCLASS_BODY", self.catchall, self.stopCommentSearch],
-
+
### DEFCLASS_BODY
-
+
["DEFCLASS_BODY", "DEFCLASS", self.defclass_re.search, self.startCommentSearch],
["DEFCLASS_BODY", "DEFCLASS_MULTI", self.multiline_defclass_start_re.search, self.startCommentSearch],
["DEFCLASS_BODY", "DEFCLASS_BODY", self.catchall, self.appendNormalLine],
@@ -166,10 +166,10 @@ class Doxypy(object):
["DEFCLASS_MULTI", "DEFCLASS", self.multiline_defclass_end_re.search, self.appendDefclassLine],
["DEFCLASS_MULTI", "DEFCLASS_MULTI", self.catchall, self.appendDefclassLine],
]
-
+
self.fsm = FSM("FILEHEAD", transitions)
self.outstream = sys.stdout
-
+
self.output = []
self.comment = []
self.filehead = []
@@ -178,22 +178,22 @@ class Doxypy(object):
def __closeComment(self):
"""Appends any open comment block and triggering block to the output."""
-
+
if options.autobrief:
if len(self.comment) == 1 \
or (len(self.comment) > 2 and self.comment[1].strip() == ''):
self.comment[0] = self.__docstringSummaryToBrief(self.comment[0])
-
+
if self.comment:
block = self.makeCommentBlock()
self.output.extend(block)
-
+
if self.defclass:
self.output.extend(self.defclass)
def __docstringSummaryToBrief(self, line):
"""Adds \\brief to the docstrings summary line.
-
+
A \\brief is prepended, provided no other doxygen command is at the
start of the line.
"""
@@ -202,7 +202,7 @@ class Doxypy(object):
return "\\brief " + line
else:
return line
-
+
def __flushBuffer(self):
"""Flushes the current outputbuffer to the outstream."""
if self.output:
@@ -212,8 +212,8 @@ class Doxypy(object):
print >>self.outstream, "\n".join(self.output)
self.outstream.flush()
except IOError:
- # Fix for FS#33. Catches "broken pipe" when doxygen closes
- # stdout prematurely upon usage of INPUT_FILTER, INLINE_SOURCES
+ # Fix for FS#33. Catches "broken pipe" when doxygen closes
+ # stdout prematurely upon usage of INPUT_FILTER, INLINE_SOURCES
# and FILTER_SOURCE_FILES.
pass
self.output = []
@@ -221,20 +221,20 @@ class Doxypy(object):
def catchall(self, input):
"""The catchall-condition, always returns true."""
return True
-
+
def resetCommentSearch(self, match):
"""Restarts a new comment search for a different triggering line.
-
+
Closes the current commentblock and starts a new comment search.
"""
if options.debug:
- print >>sys.stderr, "# CALLBACK: resetCommentSearch"
+ print >>sys.stderr, "# CALLBACK: resetCommentSearch"
self.__closeComment()
self.startCommentSearch(match)
-
+
def startCommentSearch(self, match):
"""Starts a new comment search.
-
+
Saves the triggering line, resets the current comment and saves
the current indentation.
"""
@@ -243,41 +243,41 @@ class Doxypy(object):
self.defclass = [self.fsm.current_input]
self.comment = []
self.indent = match.group(1)
-
+
def stopCommentSearch(self, match):
"""Stops a comment search.
-
+
Closes the current commentblock, resets the triggering line and
appends the current line to the output.
"""
if options.debug:
- print >>sys.stderr, "# CALLBACK: stopCommentSearch"
+ print >>sys.stderr, "# CALLBACK: stopCommentSearch"
self.__closeComment()
-
+
self.defclass = []
self.output.append(self.fsm.current_input)
-
+
def appendFileheadLine(self, match):
"""Appends a line in the FILEHEAD state.
-
+
Closes the open comment block, resets it and appends the current line.
- """
+ """
if options.debug:
- print >>sys.stderr, "# CALLBACK: appendFileheadLine"
+ print >>sys.stderr, "# CALLBACK: appendFileheadLine"
self.__closeComment()
self.comment = []
self.output.append(self.fsm.current_input)
def appendCommentLine(self, match):
"""Appends a comment line.
-
+
The comment delimiter is removed from multiline start and ends as
well as singleline comments.
"""
if options.debug:
- print >>sys.stderr, "# CALLBACK: appendCommentLine"
+ print >>sys.stderr, "# CALLBACK: appendCommentLine"
(from_state, to_state, condition, callback) = self.fsm.current_transition
-
+
# single line comment
if (from_state == "DEFCLASS" and to_state == "DEFCLASS_BODY") \
or (from_state == "FILEHEAD" and to_state == "FILEHEAD"):
@@ -308,19 +308,19 @@ class Doxypy(object):
else:
# just append the comment line
self.comment.append(self.fsm.current_input)
-
+
def appendNormalLine(self, match):
"""Appends a line to the output."""
if options.debug:
- print >>sys.stderr, "# CALLBACK: appendNormalLine"
+ print >>sys.stderr, "# CALLBACK: appendNormalLine"
self.output.append(self.fsm.current_input)
-
+
def appendDefclassLine(self, match):
"""Appends a line to the triggering block."""
if options.debug:
- print >>sys.stderr, "# CALLBACK: appendDefclassLine"
+ print >>sys.stderr, "# CALLBACK: appendDefclassLine"
self.defclass.append(self.fsm.current_input)
-
+
def makeCommentBlock(self):
"""Indents the current comment block with respect to the current
indentation level.
@@ -329,59 +329,59 @@ class Doxypy(object):
"""
doxyStart = "##"
commentLines = self.comment
-
+
commentLines = map(lambda x: "%s# %s" % (self.indent, x), commentLines)
l = [self.indent + doxyStart]
l.extend(commentLines)
-
+
return l
-
+
def parse(self, input):
"""Parses a python file given as input string and returns the doxygen-
compatible representation.
-
+
@param input the python code to parse
@returns the modified python code
- """
+ """
lines = input.split("\n")
-
+
for line in lines:
self.fsm.makeTransition(line)
-
+
if self.fsm.current_state == "DEFCLASS":
self.__closeComment()
-
+
return "\n".join(self.output)
-
+
def parseFile(self, filename):
"""Parses a python file given as input string and returns the doxygen-
compatible representation.
-
+
@param input the python code to parse
@returns the modified python code
- """
+ """
f = open(filename, 'r')
-
+
for line in f:
self.parseLine(line.rstrip('\r\n'))
if self.fsm.current_state == "DEFCLASS":
self.__closeComment()
self.__flushBuffer()
f.close()
-
+
def parseLine(self, line):
- """Parse one line of python and flush the resulting output to the
+ """Parse one line of python and flush the resulting output to the
outstream.
-
+
@param line the python code line to parse
"""
self.fsm.makeTransition(line)
self.__flushBuffer()
-
+
def optParse():
"""Parses commandline options."""
parser = OptionParser(prog=__applicationName__, version="%prog " + __version__)
-
+
parser.set_usage("%prog [options] filename")
parser.add_option("--autobrief",
action="store_true", dest="autobrief",
@@ -391,19 +391,19 @@ def optParse():
action="store_true", dest="debug",
help="enable debug output on stderr"
)
-
+
## parse options
global options
(options, filename) = parser.parse_args()
-
+
if not filename:
print >>sys.stderr, "No filename given."
sys.exit(-1)
-
+
return filename[0]
def main():
- """Starts the parser on the file given by the filename as the first
+ """Starts the parser on the file given by the filename as the first
argument on the commandline.
"""
filename = optParse()
diff --git a/docs/doxygen/other/group_defs.dox b/docs/doxygen/other/group_defs.dox
index 285fbd1a5..213486b7a 100644
--- a/docs/doxygen/other/group_defs.dox
+++ b/docs/doxygen/other/group_defs.dox
@@ -1,7 +1,7 @@
/*!
* \defgroup block GNU Radio C++ Signal Processing Blocks
* \brief All C++ blocks that can be used in GR graphs are listed here or in
- * the subcategories below.
+ * the subcategories below.
*
* Sorry, at this time the Python hierarchical blocks are not included
* in this index.
@@ -34,7 +34,7 @@
/*! \defgroup pfb_blk Polyphase Filterbank */
/*! \defgroup snr_blk SNR estimators */
-/*!
+/*!
* \defgroup base_blk Base classes for GR Blocks
* \brief All C++ blocks are derived from these base classes
*/
@@ -58,7 +58,7 @@
*/
/*!
- * \defgroup pager Pager
+ * \defgroup pager Pager
* Pager Applications
*/
diff --git a/docs/doxygen/other/tv-channel-frequencies b/docs/doxygen/other/tv-channel-frequencies
index e2780eca9..8613124f7 100644
--- a/docs/doxygen/other/tv-channel-frequencies
+++ b/docs/doxygen/other/tv-channel-frequencies
@@ -1,13 +1,13 @@
# These are the center frequencies in MHz for North American broadcast
# TV channels. Each channel is 6 MHz wide, hence the bottom edge of the
# channel is 3 MHz below the value in this table.
-#
+#
# For NTSC (Analog) TV, the picture carrier is 1.25 MHz up from the
# bottom edge. NTSC has the FM audio at bottom + 5.75 and the spike is easily
# visible.
-#
+#
# For ATSC, the pilot tone is 0.31 MHz up from the bottom.
-#
+#
#
2 57.00
3 63.00
diff --git a/docs/doxygen/other/vector_docstub.h b/docs/doxygen/other/vector_docstub.h
index 139ce651d..062e08d30 100644
--- a/docs/doxygen/other/vector_docstub.h
+++ b/docs/doxygen/other/vector_docstub.h
@@ -12,5 +12,5 @@ namespace std
public:
T *p;
};
-
+
} // namespace std
diff --git a/docs/doxygen/other/volk_guide.dox b/docs/doxygen/other/volk_guide.dox
index d898f3864..24882ed1a 100644
--- a/docs/doxygen/other/volk_guide.dox
+++ b/docs/doxygen/other/volk_guide.dox
@@ -24,7 +24,7 @@ multiplication of a vector of floating point numbers (each item in the
vector is multiplied by the same value). This kernel has the following
proto-kernels that are defined for 'generic,' 'avx,' 'sse,' and 'orc.'
-\code
+\code
void volk_32f_s32f_multiply_32f_a_generic
void volk_32f_s32f_multiply_32f_a_sse
void volk_32f_s32f_multiply_32f_a_avx
diff --git a/docs/doxygen/swig_doc.py b/docs/doxygen/swig_doc.py
index cac784cfe..bd35b8efd 100644
--- a/docs/doxygen/swig_doc.py
+++ b/docs/doxygen/swig_doc.py
@@ -1,23 +1,23 @@
#
# Copyright 2010,2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
"""
Creates the swig_doc.i SWIG interface file.
Execute using: python swig_doc.py xml_path outputfilename
@@ -82,13 +82,13 @@ def combine_descriptions(obj):
if dd:
description.append(dd)
return utoascii('\n\n'.join(description)).strip()
-
+
entry_templ = '%feature("docstring") {name} "{docstring}"'
def make_entry(obj, name=None, templ="{description}", description=None):
"""
Create a docstring entry for a swig interface file.
-
+
obj - a doxyxml object from which documentation will be extracted.
name - the name of the C object (defaults to obj.name())
templ - an optional template for the docstring containing only one
@@ -182,11 +182,11 @@ def make_block_entry(di, block):
def make_swig_interface_file(di, swigdocfilename, custom_output=None):
-
+
output = ["""
/*
* This file was automatically generated using swig_doc.py.
- *
+ *
* Any changes to it will be lost next time it is regenerated.
*/
"""]
@@ -306,4 +306,4 @@ if __name__ == "__main__":
raise
else:
break
-
+
diff --git a/docs/exploring-gnuradio/Makefile b/docs/exploring-gnuradio/Makefile
index b36ce1f6d..cd5da8523 100644
--- a/docs/exploring-gnuradio/Makefile
+++ b/docs/exploring-gnuradio/Makefile
@@ -1,23 +1,23 @@
#
# Copyright 2004 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,
# Boston, MA 02110-1301, USA.
-#
+#
TARGETS = exploring-gnuradio.html
diff --git a/docs/exploring-gnuradio/dial_tone.py b/docs/exploring-gnuradio/dial_tone.py
index 9cc05baa3..cabfa0864 100755
--- a/docs/exploring-gnuradio/dial_tone.py
+++ b/docs/exploring-gnuradio/dial_tone.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2007 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
from gnuradio import audio
diff --git a/docs/exploring-gnuradio/exploring-gnuradio.xml b/docs/exploring-gnuradio/exploring-gnuradio.xml
index 9d471f663..286ca8609 100644
--- a/docs/exploring-gnuradio/exploring-gnuradio.xml
+++ b/docs/exploring-gnuradio/exploring-gnuradio.xml
@@ -148,7 +148,7 @@ end may be eliminated altogether. One GNU Radio experimenter has
listened to AM and shortwave broadcasts by connecting a 100-foot piece
of wire directly to his 20M sample/sec ADC.</para>
-</sect1>
+</sect1>
<sect1 id="software"><title>On to the Software</title>
@@ -186,7 +186,7 @@ floats. One sine wave is at 350 Hz, and the other is at
<para>audio.sink is a sink that writes its input to the sound card. It
takes one or more streams of floats in the range -1 to +1 as its
-input. We connect the three blocks together using the
+input. We connect the three blocks together using the
<methodname>connect</methodname> method of the flow graph.</para>
<para><methodname>connect</methodname> takes two parameters, the
diff --git a/docs/exploring-gnuradio/fm_demod.py b/docs/exploring-gnuradio/fm_demod.py
index e58407f73..0071fd751 100755
--- a/docs/exploring-gnuradio/fm_demod.py
+++ b/docs/exploring-gnuradio/fm_demod.py
@@ -21,10 +21,10 @@ def build_graph (freq1, freq2):
audio_rate = quad_rate / audio_decimation
fg = gr.flow_graph ()
-
+
# use high speed ADC as input source
src = high_speed_adc (fg, input_rate)
-
+
# compute FIR filter taps for channel selection
channel_coeffs = \
gr.firdes.low_pass (1.0, # gain
@@ -39,9 +39,9 @@ def build_graph (freq1, freq2):
channel_coeffs,
freq1, # 1st station freq
input_rate)
-
+
(head1, tail1) = build_pipeline (fg, quad_rate, audio_decimation)
-
+
# sound card as final sink
audio_sink = audio.sink (int (audio_rate))
@@ -67,7 +67,7 @@ def build_graph (freq1, freq2):
fg.connect (src, chan_filter2)
fg.connect (chan_filter2, head2)
fg.connect (tail2, (audio_sink, 1))
-
+
return fg
def build_pipeline (fg, quad_rate, audio_decimation):
@@ -99,7 +99,7 @@ def build_pipeline (fg, quad_rate, audio_decimation):
fg.connect (fm_demod, audio_filter)
return ((fm_demod, 0), (audio_filter, 0))
-
+
def main (args):
nargs = len (args)
@@ -136,10 +136,10 @@ def main (args):
target_freq = (freq1 + freq2) / 2
actual_freq = rf_front_end.set_RF_freq (target_freq)
#actual_freq = target_freq
-
+
fg = build_graph (IF_freq + freq1 - actual_freq,
IF_freq + freq2 - actual_freq)
-
+
fg.start () # fork thread(s) and return
raw_input ('Press Enter to quit: ')
fg.stop ()
diff --git a/docs/exploring-gnuradio/fm_demod_example.xml b/docs/exploring-gnuradio/fm_demod_example.xml
index 3036f88ba..b417da0a8 100644
--- a/docs/exploring-gnuradio/fm_demod_example.xml
+++ b/docs/exploring-gnuradio/fm_demod_example.xml
@@ -24,10 +24,10 @@ def build_graph (freq1, freq2):
audio_rate = quad_rate / audio_decimation
fg = gr.flow_graph ()
-
+
# use high speed ADC as input source
src = high_speed_adc (fg, input_rate)
-
+
# compute FIR filter taps for channel selection
channel_coeffs = \
gr.firdes.low_pass (1.0, # gain
@@ -42,9 +42,9 @@ def build_graph (freq1, freq2):
channel_coeffs,
freq1, # 1st station freq
input_rate)
-
+
(head1, tail1) = build_pipeline (fg, quad_rate, audio_decimation)
-
+
# sound card as final sink
audio_sink = audio.sink (int (audio_rate))
@@ -84,7 +84,7 @@ def build_pipeline (fg, quad_rate, audio_decimation):
fg.connect (fm_demod, audio_filter)
return ((fm_demod, 0), (audio_filter, 0))
-
+
def main (args):
nargs = len (args)
@@ -106,13 +106,13 @@ def main (args):
# determine the front end's "Intermediate Frequency"
IF_freq = rf_front_end.get_output_freq () # 5.75e6
- # Tell the front end to tune to freq1.
+ # Tell the front end to tune to freq1.
# I.e., freq1 is translated down to the IF frequency
rf_front_end.set_RF_freq (freq1)
# build the flow graph
fg = build_graph (IF_freq, None)
-
+
fg.start () # fork thread(s) and return
raw_input ('Press Enter to quit: ')
fg.stop ()
diff --git a/dtools/README b/dtools/README
index 938ef6dd5..280b19bbd 100644
--- a/dtools/README
+++ b/dtools/README
@@ -1,23 +1,23 @@
#
# Copyright 2006 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,
# Boston, MA 02110-1301, USA.
-#
+#
This is a collection of tools that are useful for building tarball
distributions of GNU Radio. They're probably not of general interest.
diff --git a/dtools/bin/check-imports b/dtools/bin/check-imports
index 75ca547d6..fe4bf2302 100755
--- a/dtools/bin/check-imports
+++ b/dtools/bin/check-imports
@@ -1,4 +1,4 @@
#!/bin/bash
-find . -name '*.py' | xargs grep -h -E '^(from|import)' | sort -u
+find . -name '*.py' | xargs grep -h -E '^(from|import)' | sort -u
diff --git a/dtools/bin/install-tbb b/dtools/bin/install-tbb
index 95ffbedd7..8ff216da4 100755
--- a/dtools/bin/install-tbb
+++ b/dtools/bin/install-tbb
@@ -20,7 +20,7 @@ includedir=${prefix}/include
Name: tbb
Description: Intel Threading Building Blocks
-Requires:
+Requires:
Version: 2.0
Libs: -L${libdir} -ltbb -ltbbmalloc
Cflags: -I${includedir}
@@ -35,7 +35,7 @@ includedir=${prefix}/include
Name: tbb
Description: Intel Threading Building Blocks
-Requires:
+Requires:
Version: 2.0
Libs: -L${libdir} -ltbb_debug -ltbbmalloc_debug
Cflags: -I${includedir}
@@ -51,7 +51,7 @@ def main():
raise SystemExit, 1
prefix = options.prefix
-
+
# are we installing 64-bit libs?
is_64bit = False
@@ -66,7 +66,7 @@ def main():
lib = 'lib64'
else:
lib = 'lib'
-
+
os.system('install -d ' + os.path.join(prefix, 'include/tbb'))
os.system('install -d ' + os.path.join(prefix, 'include/tbb/machine'))
os.system('install -d ' + os.path.join(prefix, lib))
@@ -79,10 +79,10 @@ def main():
f = open(os.path.join(prefix, lib, 'pkgconfig', pkgconfig_filename), 'w')
f.write(pkgconfig_file_contents % (prefix,))
f.close()
-
+
f = open(os.path.join(prefix, lib, 'pkgconfig', debug_pkgconfig_filename), 'w')
f.write(debug_pkgconfig_file_contents % (prefix,))
f.close()
-
+
if __name__ == "__main__":
main()
diff --git a/dtools/bin/remove-whitespace b/dtools/bin/remove-whitespace
new file mode 100755
index 000000000..9f011be3b
--- /dev/null
+++ b/dtools/bin/remove-whitespace
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+sed -i -e 's/\s\+$//g' $(find . -type f | grep -v '.git' | grep -v 'png' | grep -v 'eps') \ No newline at end of file
diff --git a/dtools/bin/update_fsf_address b/dtools/bin/update_fsf_address
index ec67ef076..608ba0a8e 100755
--- a/dtools/bin/update_fsf_address
+++ b/dtools/bin/update_fsf_address
@@ -1,19 +1,19 @@
#!/usr/bin/env python
#
# Copyright 2006 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 this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -108,7 +108,7 @@ def handle_file_or_dir(file_or_dir):
def main():
global dry_run
-
+
usage = '%prog: [options] [file_or_dir...]'
parser = OptionParser (usage=usage)
parser.add_option('-l', '--list-modified-files', action='store_true', default=False,
@@ -120,7 +120,7 @@ def main():
dry_run = options.dry_run
if options.dry_run:
options.list_modified_files = True
-
+
for file_or_dir in args:
handle_file_or_dir(file_or_dir)
@@ -128,7 +128,7 @@ def main():
for f in modified_files:
sys.stdout.write(f + '\n')
-
+
if __name__ == '__main__':
main()
-
+
diff --git a/gnuradio-core/CMakeLists.txt b/gnuradio-core/CMakeLists.txt
index 13965f3db..022710844 100644
--- a/gnuradio-core/CMakeLists.txt
+++ b/gnuradio-core/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2010-2011 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,
diff --git a/gnuradio-core/src/examples/CMakeLists.txt b/gnuradio-core/src/examples/CMakeLists.txt
index 4bdc463e4..c2b847c91 100644
--- a/gnuradio-core/src/examples/CMakeLists.txt
+++ b/gnuradio-core/src/examples/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gnuradio-core/src/examples/mp-sched/CMakeLists.txt b/gnuradio-core/src/examples/mp-sched/CMakeLists.txt
index 2bf70d464..dc47d17f9 100644
--- a/gnuradio-core/src/examples/mp-sched/CMakeLists.txt
+++ b/gnuradio-core/src/examples/mp-sched/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gnuradio-core/src/examples/mp-sched/plot_flops.py b/gnuradio-core/src/examples/mp-sched/plot_flops.py
index b3f819397..d9d810ae2 100755
--- a/gnuradio-core/src/examples/mp-sched/plot_flops.py
+++ b/gnuradio-core/src/examples/mp-sched/plot_flops.py
@@ -1,19 +1,19 @@
#!/usr/bin/env python
#
# Copyright 2008 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 this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -38,7 +38,7 @@ def parse_file(input_filename, output):
s = line.strip()
if s.startswith('>>>'): # ignore ">>> using SSE cruft"
continue
-
+
if s.startswith('#D'): # machine description
desc = s[2:].strip()
continue
@@ -78,7 +78,7 @@ def handle_file(input_filename):
data_file.flush()
os.system("gnuplot " + cmd_file_name + " -")
-
+
#sys.stdout.write(open(cmd_file_name,'r').read())
#sys.stdout.write(open(data_file_name,'r').read())
diff --git a/gnuradio-core/src/examples/mp-sched/run_synthetic.py b/gnuradio-core/src/examples/mp-sched/run_synthetic.py
index 565e6c5c7..4896bca46 100755
--- a/gnuradio-core/src/examples/mp-sched/run_synthetic.py
+++ b/gnuradio-core/src/examples/mp-sched/run_synthetic.py
@@ -1,19 +1,19 @@
#!/usr/bin/env python
#
# Copyright 2008 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 this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -58,8 +58,8 @@ def write_shell_script(f, data_filename, description, ncores, gflops, max_pipes_
f.write(") 2>&1 | grep --line-buffered -v '^>>>' | tee %s\n" % (data_filename,))
f.flush()
-
-
+
+
def main():
description = """%prog gathers multiprocessor scaling data using the ./synthetic.py benchmark.
@@ -88,14 +88,14 @@ plot_flops.py will make pretty graphs from the output data generated by %prog.
output_filename = args[0]
shell = os.popen("/bin/sh", "w")
-
+
write_shell_script(shell,
output_filename,
options.description,
options.ncores,
options.gflops,
options.max_pipes_and_stages)
-
+
if __name__ == '__main__':
main()
diff --git a/gnuradio-core/src/examples/mp-sched/synthetic.py b/gnuradio-core/src/examples/mp-sched/synthetic.py
index e1fcb20bd..5ce1b5eb8 100755
--- a/gnuradio-core/src/examples/mp-sched/synthetic.py
+++ b/gnuradio-core/src/examples/mp-sched/synthetic.py
@@ -1,19 +1,19 @@
#!/usr/bin/env python
#
# Copyright 2008 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 this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -42,7 +42,7 @@ class pipeline(gr.hier_block2):
upstream = op
self.connect(upstream, gr.null_sink(gr.sizeof_float))
-
+
class top(gr.top_block):
def __init__(self):
@@ -112,7 +112,7 @@ if __name__ == "__main__":
time_it(tb)
except KeyboardInterrupt:
raise SystemExit, 128
-
-
-
+
+
+
diff --git a/gnuradio-core/src/examples/mp-sched/wfm_rcv_pll_to_wav.py b/gnuradio-core/src/examples/mp-sched/wfm_rcv_pll_to_wav.py
index 3971d8b73..81613922b 100755
--- a/gnuradio-core/src/examples/mp-sched/wfm_rcv_pll_to_wav.py
+++ b/gnuradio-core/src/examples/mp-sched/wfm_rcv_pll_to_wav.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2005,2006,2007 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gru, eng_notation, optfir
from gnuradio import audio
@@ -41,14 +41,14 @@ class wfm_rx_block (gr.top_block):
if len(args) != 2:
parser.print_help()
sys.exit(1)
-
+
input_filename = args[0]
output_filename = args[1]
self.vol = 0
-
+
# build graph
-
+
self.src = gr.file_source(gr.sizeof_gr_complex, input_filename, False)
adc_rate = 64e6 # 64 MS/s
@@ -84,7 +84,7 @@ class wfm_rx_block (gr.top_block):
sink = audio.sink (int (audio_rate),
options.audio_output,
False) # ok_to_block
-
+
# now wire it all together
self.connect (self.src, chan_filt, self.guts)
self.connect ((self.guts, 0), self.volume_control_l, (sink, 0))
@@ -117,7 +117,7 @@ class wfm_rx_block (gr.top_block):
def volume_range(self):
return (-20.0, 0.0, 0.5)
-
+
if __name__ == '__main__':
tb = wfm_rx_block()
diff --git a/gnuradio-core/src/examples/network/CMakeLists.txt b/gnuradio-core/src/examples/network/CMakeLists.txt
index 33e7cb7d0..902933e29 100644
--- a/gnuradio-core/src/examples/network/CMakeLists.txt
+++ b/gnuradio-core/src/examples/network/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gnuradio-core/src/examples/network/audio_sink.py b/gnuradio-core/src/examples/network/audio_sink.py
index 48b643578..72a678816 100755
--- a/gnuradio-core/src/examples/network/audio_sink.py
+++ b/gnuradio-core/src/examples/network/audio_sink.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2006,2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
from gnuradio.eng_option import eng_option
@@ -38,7 +38,7 @@ class audio_sink(gr.top_block):
eof=eof, wait=wait)
dst = audio.sink(sample_rate)
self.connect(src, dst)
-
+
if __name__ == '__main__':
parser = OptionParser(option_class=eng_option)
parser.add_option("", "--host", type="string", default="0.0.0.0",
@@ -62,11 +62,11 @@ if __name__ == '__main__':
top_block = audio_sink(options.host, options.port,
options.packet_size, options.sample_rate,
not options.no_eof, not options.no_wait)
-
- try:
+
+ try:
# Run forever
top_block.run()
except KeyboardInterrupt:
# Ctrl-C exits
pass
-
+
diff --git a/gnuradio-core/src/examples/network/audio_source.py b/gnuradio-core/src/examples/network/audio_source.py
index ef0dc13ba..0baf7d2e9 100755
--- a/gnuradio-core/src/examples/network/audio_source.py
+++ b/gnuradio-core/src/examples/network/audio_source.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2006,2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
from gnuradio.eng_option import eng_option
@@ -59,11 +59,11 @@ if __name__ == '__main__':
top_block = audio_source(options.host, options.port,
options.packet_size, options.sample_rate,
not options.no_eof)
-
- try:
+
+ try:
# Run forever
top_block.run()
except KeyboardInterrupt:
# Ctrl-C exits
pass
-
+
diff --git a/gnuradio-core/src/examples/network/dial_tone_sink.py b/gnuradio-core/src/examples/network/dial_tone_sink.py
index 1b9009552..83ad376c0 100755
--- a/gnuradio-core/src/examples/network/dial_tone_sink.py
+++ b/gnuradio-core/src/examples/network/dial_tone_sink.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2006,2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, audio
from gnuradio.eng_option import eng_option
@@ -31,7 +31,7 @@ class dial_tone_sink(gr.top_block):
eof=eof, wait=wait)
sink = audio.sink(sample_rate)
self.connect(udp, sink)
-
+
if __name__ == '__main__':
parser = OptionParser(option_class=eng_option)
parser.add_option("", "--host", type="string", default="0.0.0.0",
@@ -55,11 +55,11 @@ if __name__ == '__main__':
top_block = dial_tone_sink(options.host, options.port,
options.packet_size, options.sample_rate,
not options.no_eof, not options.no_wait)
-
- try:
+
+ try:
# Run forever
top_block.run()
except KeyboardInterrupt:
# Ctrl-C exits
pass
-
+
diff --git a/gnuradio-core/src/examples/network/dial_tone_source.py b/gnuradio-core/src/examples/network/dial_tone_source.py
index 766ecf16d..232a06de8 100755
--- a/gnuradio-core/src/examples/network/dial_tone_source.py
+++ b/gnuradio-core/src/examples/network/dial_tone_source.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2006,2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
from gnuradio.eng_option import eng_option
@@ -61,8 +61,8 @@ if __name__ == '__main__':
top_block = dial_tone_source(options.host, options.port,
options.packet_size, options.sample_rate,
not options.no_eof)
-
- try:
+
+ try:
# Run forever
top_block.run()
except KeyboardInterrupt:
diff --git a/gnuradio-core/src/examples/network/vector_sink.py b/gnuradio-core/src/examples/network/vector_sink.py
index 5d73858a3..e84a27d9f 100755
--- a/gnuradio-core/src/examples/network/vector_sink.py
+++ b/gnuradio-core/src/examples/network/vector_sink.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2006,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
from gnuradio.eng_option import eng_option
@@ -49,16 +49,16 @@ if __name__ == "__main__":
if len(args) != 0:
parser.print_help()
raise SystemExit, 1
-
+
# Create an instance of a hierarchical block
top_block = vector_sink(options.host, options.port,
options.packet_size,
not options.no_eof, not options.no_wait)
-
- try:
+
+ try:
# Run forever
top_block.run()
except KeyboardInterrupt:
# Ctrl-C exits
pass
-
+
diff --git a/gnuradio-core/src/examples/network/vector_source.py b/gnuradio-core/src/examples/network/vector_source.py
index 0e7d67844..d322dda3b 100755
--- a/gnuradio-core/src/examples/network/vector_source.py
+++ b/gnuradio-core/src/examples/network/vector_source.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2006,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
from gnuradio.eng_option import eng_option
@@ -50,11 +50,11 @@ if __name__ == '__main__':
# Create an instance of a hierarchical block
top_block = vector_source(options.host, options.port, options.packet_size,
not options.no_eof)
-
- try:
+
+ try:
# Run forever
top_block.run()
except KeyboardInterrupt:
# Ctrl-C exits
pass
-
+
diff --git a/gnuradio-core/src/examples/pfb/CMakeLists.txt b/gnuradio-core/src/examples/pfb/CMakeLists.txt
index 899c47b90..6bb25568c 100644
--- a/gnuradio-core/src/examples/pfb/CMakeLists.txt
+++ b/gnuradio-core/src/examples/pfb/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gnuradio-core/src/examples/pfb/channelize.py b/gnuradio-core/src/examples/pfb/channelize.py
index 2fcb14a36..442f263f4 100755
--- a/gnuradio-core/src/examples/pfb/channelize.py
+++ b/gnuradio-core/src/examples/pfb/channelize.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2009 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, blks2
import sys, time
@@ -46,7 +46,7 @@ class pfb_top_block(gr.top_block):
self._M = 9 # Number of channels to channelize
# Create a set of taps for the PFB channelizer
- self._taps = gr.firdes.low_pass_2(1, self._fs, 475.50, 50,
+ self._taps = gr.firdes.low_pass_2(1, self._fs, 475.50, 50,
attenuation_dB=100, window=gr.firdes.WIN_BLACKMAN_hARRIS)
# Calculate the number of taps per channel for our own information
@@ -54,9 +54,9 @@ class pfb_top_block(gr.top_block):
print "Number of taps: ", len(self._taps)
print "Number of channels: ", self._M
print "Taps per channel: ", tpc
-
+
# Create a set of signals at different frequencies
- # freqs lists the frequencies of the signals that get stored
+ # freqs lists the frequencies of the signals that get stored
# in the list "signals", which then get summed together
self.signals = list()
self.add = gr.add_cc()
@@ -79,17 +79,17 @@ class pfb_top_block(gr.top_block):
# Use this to play with the channel mapping
#self.pfb.set_channel_map([5,6,7,8,0,1,2,3,4])
-
+
# Create a vector sink for each of M output channels of the filter and connect it
self.snks = list()
for i in xrange(self._M):
self.snks.append(gr.vector_sink_c())
self.connect((self.pfb, i), self.snks[i])
-
+
def main():
tstart = time.time()
-
+
tb = pfb_top_block()
tb.run()
@@ -100,7 +100,7 @@ def main():
fig_in = pylab.figure(1, figsize=(16,9), facecolor="w")
fig1 = pylab.figure(2, figsize=(16,9), facecolor="w")
fig2 = pylab.figure(3, figsize=(16,9), facecolor="w")
-
+
Ns = 1000
Ne = 10000
@@ -118,8 +118,8 @@ def main():
X_in = 10.0*scipy.log10(abs(X))
f_in = scipy.arange(-fs/2.0, fs/2.0, fs/float(X_in.size))
pin_f = spin_f.plot(f_in, X_in, "b")
- spin_f.set_xlim([min(f_in), max(f_in)+1])
- spin_f.set_ylim([-200.0, 50.0])
+ spin_f.set_xlim([min(f_in), max(f_in)+1])
+ spin_f.set_ylim([-200.0, 50.0])
spin_f.set_title("Input Signal", weight="bold")
spin_f.set_xlabel("Frequency (Hz)")
@@ -128,7 +128,7 @@ def main():
Ts = 1.0/fs
Tmax = len(d)*Ts
-
+
t_in = scipy.arange(0, Tmax, Ts)
x_in = scipy.array(d)
spin_t = fig_in.add_subplot(2, 1, 2)
@@ -161,8 +161,8 @@ def main():
X_o = 10.0*scipy.log10(abs(X))
f_o = scipy.arange(-fs_o/2.0, fs_o/2.0, fs_o/float(X_o.size))
p2_f = sp1_f.plot(f_o, X_o, "b")
- sp1_f.set_xlim([min(f_o), max(f_o)+1])
- sp1_f.set_ylim([-200.0, 50.0])
+ sp1_f.set_xlim([min(f_o), max(f_o)+1])
+ sp1_f.set_ylim([-200.0, 50.0])
sp1_f.set_title(("Channel %d" % i), weight="bold")
sp1_f.set_xlabel("Frequency (Hz)")
@@ -173,8 +173,8 @@ def main():
sp2_o = fig2.add_subplot(Nrows, Ncols, 1+i)
p2_o = sp2_o.plot(t_o, x_o.real, "b")
p2_o = sp2_o.plot(t_o, x_o.imag, "r")
- sp2_o.set_xlim([min(t_o), max(t_o)+1])
- sp2_o.set_ylim([-2, 2])
+ sp2_o.set_xlim([min(t_o), max(t_o)+1])
+ sp2_o.set_ylim([-2, 2])
sp2_o.set_title(("Channel %d" % i), weight="bold")
sp2_o.set_xlabel("Time (s)")
@@ -188,4 +188,4 @@ if __name__ == "__main__":
main()
except KeyboardInterrupt:
pass
-
+
diff --git a/gnuradio-core/src/examples/pfb/chirp_channelize.py b/gnuradio-core/src/examples/pfb/chirp_channelize.py
index 951255d3b..1c485ea9d 100755
--- a/gnuradio-core/src/examples/pfb/chirp_channelize.py
+++ b/gnuradio-core/src/examples/pfb/chirp_channelize.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2009 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, blks2
import sys, time
@@ -46,7 +46,7 @@ class pfb_top_block(gr.top_block):
self._M = 9 # Number of channels to channelize
# Create a set of taps for the PFB channelizer
- self._taps = gr.firdes.low_pass_2(1, self._fs, 500, 20,
+ self._taps = gr.firdes.low_pass_2(1, self._fs, 500, 20,
attenuation_dB=10, window=gr.firdes.WIN_BLACKMAN_hARRIS)
# Calculate the number of taps per channel for our own information
@@ -62,7 +62,7 @@ class pfb_top_block(gr.top_block):
amp = 100
data = scipy.arange(0, amp, amp/float(self._N))
self.vco_input = gr.vector_source_f(data, False)
-
+
# Build a VCO controlled by either the sinusoid or single chirp tone
# Then convert this to a complex signal
self.vco = gr.vco_f(self._fs, 225, 1)
@@ -86,11 +86,11 @@ class pfb_top_block(gr.top_block):
for i in xrange(self._M):
self.snks.append(gr.vector_sink_c())
self.connect((self.pfb, i), self.snks[i])
-
+
def main():
tstart = time.time()
-
+
tb = pfb_top_block()
tb.run()
@@ -102,7 +102,7 @@ def main():
fig1 = pylab.figure(2, figsize=(16,9), facecolor="w")
fig2 = pylab.figure(3, figsize=(16,9), facecolor="w")
fig3 = pylab.figure(4, figsize=(16,9), facecolor="w")
-
+
Ns = 650
Ne = 20000
@@ -120,8 +120,8 @@ def main():
X_in = 10.0*scipy.log10(abs(fftpack.fftshift(X)))
f_in = scipy.arange(-fs/2.0, fs/2.0, fs/float(X_in.size))
pin_f = spin_f.plot(f_in, X_in, "b")
- spin_f.set_xlim([min(f_in), max(f_in)+1])
- spin_f.set_ylim([-200.0, 50.0])
+ spin_f.set_xlim([min(f_in), max(f_in)+1])
+ spin_f.set_ylim([-200.0, 50.0])
spin_f.set_title("Input Signal", weight="bold")
spin_f.set_xlabel("Frequency (Hz)")
@@ -130,7 +130,7 @@ def main():
Ts = 1.0/fs
Tmax = len(d)*Ts
-
+
t_in = scipy.arange(0, Tmax, Ts)
x_in = scipy.array(d)
spin_t = fig_in.add_subplot(2, 1, 2)
@@ -163,8 +163,8 @@ def main():
X_o = 10.0*scipy.log10(abs(X))
f_o = freq
p2_f = sp1_f.plot(f_o, X_o, "b")
- sp1_f.set_xlim([min(f_o), max(f_o)+1])
- sp1_f.set_ylim([-200.0, 50.0])
+ sp1_f.set_xlim([min(f_o), max(f_o)+1])
+ sp1_f.set_ylim([-200.0, 50.0])
sp1_f.set_title(("Channel %d" % i), weight="bold")
sp1_f.set_xlabel("Frequency (Hz)")
@@ -175,8 +175,8 @@ def main():
sp2_o = fig2.add_subplot(Nrows, Ncols, 1+i)
p2_o = sp2_o.plot(t_o, x_o.real, "b")
p2_o = sp2_o.plot(t_o, x_o.imag, "r")
- sp2_o.set_xlim([min(t_o), max(t_o)+1])
- sp2_o.set_ylim([-2, 2])
+ sp2_o.set_xlim([min(t_o), max(t_o)+1])
+ sp2_o.set_ylim([-2, 2])
sp2_o.set_title(("Channel %d" % i), weight="bold")
sp2_o.set_xlabel("Time (s)")
@@ -185,12 +185,12 @@ def main():
sp3 = fig3.add_subplot(1,1,1)
p3 = sp3.plot(t_o, x_o.real)
- sp3.set_xlim([min(t_o), max(t_o)+1])
- sp3.set_ylim([-2, 2])
+ sp3.set_xlim([min(t_o), max(t_o)+1])
+ sp3.set_ylim([-2, 2])
sp3.set_title("All Channels")
sp3.set_xlabel("Time (s)")
- sp3.set_ylabel("Amplitude")
+ sp3.set_ylabel("Amplitude")
pylab.show()
@@ -200,4 +200,4 @@ if __name__ == "__main__":
main()
except KeyboardInterrupt:
pass
-
+
diff --git a/gnuradio-core/src/examples/pfb/decimate.py b/gnuradio-core/src/examples/pfb/decimate.py
index 643a2c241..5322d746d 100755
--- a/gnuradio-core/src/examples/pfb/decimate.py
+++ b/gnuradio-core/src/examples/pfb/decimate.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2009 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, blks2
import sys, time
@@ -44,7 +44,7 @@ class pfb_top_block(gr.top_block):
self._N = 10000000 # number of samples to use
self._fs = 10000 # initial sampling rate
self._decim = 20 # Decimation rate
-
+
# Generate the prototype filter taps for the decimators with a 200 Hz bandwidth
self._taps = gr.firdes.low_pass_2(1, self._fs, 200, 150,
attenuation_dB=120, window=gr.firdes.WIN_BLACKMAN_hARRIS)
@@ -54,7 +54,7 @@ class pfb_top_block(gr.top_block):
print "Number of taps: ", len(self._taps)
print "Number of filters: ", self._decim
print "Taps per channel: ", tpc
-
+
# Build the input signal source
# We create a list of freqs, and a sine wave is generated and added to the source
# for each one of these frequencies.
@@ -66,7 +66,7 @@ class pfb_top_block(gr.top_block):
self.connect(self.signals[i], (self.add,i))
self.head = gr.head(gr.sizeof_gr_complex, self._N)
-
+
# Construct a PFB decimator filter
self.pfb = blks2.pfb_decimator_ccf(self._decim, self._taps, 0)
@@ -82,12 +82,12 @@ class pfb_top_block(gr.top_block):
# Create the sink for the decimated siganl
self.snk = gr.vector_sink_c()
self.connect(self.pfb, self.snk)
-
+
def main():
tb = pfb_top_block()
- tstart = time.time()
+ tstart = time.time()
tb.run()
tend = time.time()
print "Run time: %f" % (tend - tstart)
@@ -95,7 +95,7 @@ def main():
if 1:
fig1 = pylab.figure(1, figsize=(16,9))
fig2 = pylab.figure(2, figsize=(16,9))
-
+
Ns = 10000
Ne = 10000
@@ -114,13 +114,13 @@ def main():
X_in = 10.0*scipy.log10(abs(fftpack.fftshift(X)))
f_in = scipy.arange(-fs/2.0, fs/2.0, fs/float(X_in.size))
p1_f = sp1_f.plot(f_in, X_in, "b")
- sp1_f.set_xlim([min(f_in), max(f_in)+1])
- sp1_f.set_ylim([-200.0, 50.0])
+ sp1_f.set_xlim([min(f_in), max(f_in)+1])
+ sp1_f.set_ylim([-200.0, 50.0])
sp1_f.set_title("Input Signal", weight="bold")
sp1_f.set_xlabel("Frequency (Hz)")
sp1_f.set_ylabel("Power (dBW)")
-
+
Ts = 1.0/fs
Tmax = len(d)*Ts
@@ -134,7 +134,7 @@ def main():
sp1_t.set_xlabel("Time (s)")
sp1_t.set_ylabel("Amplitude")
-
+
# Plot the output of the decimator
fs_o = tb._fs / tb._decim
@@ -146,13 +146,13 @@ def main():
X_o = 10.0*scipy.log10(abs(fftpack.fftshift(X)))
f_o = scipy.arange(-fs_o/2.0, fs_o/2.0, fs_o/float(X_o.size))
p2_f = sp2_f.plot(f_o, X_o, "b")
- sp2_f.set_xlim([min(f_o), max(f_o)+1])
- sp2_f.set_ylim([-200.0, 50.0])
+ sp2_f.set_xlim([min(f_o), max(f_o)+1])
+ sp2_f.set_ylim([-200.0, 50.0])
sp2_f.set_title("PFB Decimated Signal", weight="bold")
sp2_f.set_xlabel("Frequency (Hz)")
sp2_f.set_ylabel("Power (dBW)")
-
+
Ts_o = 1.0/fs_o
Tmax_o = len(d)*Ts_o
@@ -175,4 +175,4 @@ if __name__ == "__main__":
main()
except KeyboardInterrupt:
pass
-
+
diff --git a/gnuradio-core/src/examples/pfb/fmtest.py b/gnuradio-core/src/examples/pfb/fmtest.py
index 635ee4e9e..b9dd9b382 100755
--- a/gnuradio-core/src/examples/pfb/fmtest.py
+++ b/gnuradio-core/src/examples/pfb/fmtest.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2009 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, blks2
import sys, math, time
@@ -45,7 +45,7 @@ class fmtx(gr.hier_block2):
gr.io_signature(1, 1, gr.sizeof_gr_complex)) # Output signature
fmtx = blks2.nbfm_tx (audio_rate, if_rate, max_dev=5e3, tau=75e-6)
-
+
# Local oscillator
lo = gr.sig_source_c (if_rate, # sample rate
gr.GR_SIN_WAVE, # waveform type
@@ -53,7 +53,7 @@ class fmtx(gr.hier_block2):
1.0, # amplitude
0) # DC Offset
mixer = gr.multiply_cc ()
-
+
self.connect (self, fmtx, (mixer, 0))
self.connect (lo, (mixer, 1))
self.connect (mixer, self)
@@ -93,7 +93,7 @@ class fmtest(gr.top_block):
bw = chspacing/2.0
t_bw = chspacing/10.0
self._chan_rate = self._if_rate / self._M
- self._taps = gr.firdes.low_pass_2(1, self._if_rate, bw, t_bw,
+ self._taps = gr.firdes.low_pass_2(1, self._if_rate, bw, t_bw,
attenuation_dB=100,
window=gr.firdes.WIN_BLACKMAN_hARRIS)
tpc = math.ceil(float(len(self._taps)) / float(self._M))
@@ -101,11 +101,11 @@ class fmtest(gr.top_block):
print "Number of taps: ", len(self._taps)
print "Number of channels: ", self._M
print "Taps per channel: ", tpc
-
+
self.pfb = blks2.pfb_channelizer_ccf(self._M, self._taps)
-
+
self.connect(self.channel, self.pfb)
-
+
# Create a file sink for each of M output channels of the filter and connect it
self.fmdet = list()
self.squelch = list()
@@ -153,8 +153,8 @@ def main():
X_in = 10.0*scipy.log10(abs(fftpack.fftshift(X)))
f_in = scipy.arange(-fs/2.0, fs/2.0, fs/float(X_in.size))
p1_f = sp1_f.plot(f_in, X_in, "b")
- sp1_f.set_xlim([min(f_in), max(f_in)+1])
- sp1_f.set_ylim([-120.0, 20.0])
+ sp1_f.set_xlim([min(f_in), max(f_in)+1])
+ sp1_f.set_ylim([-120.0, 20.0])
sp1_f.set_title("Input Signal", weight="bold")
sp1_f.set_xlabel("Frequency (Hz)")
@@ -162,7 +162,7 @@ def main():
Ts = 1.0/fs
Tmax = len(d)*Ts
-
+
t_in = scipy.arange(0, Tmax, Ts)
x_in = scipy.array(d)
sp1_t = fig1.add_subplot(2, 1, 2)
@@ -194,8 +194,8 @@ def main():
#f_o = scipy.arange(-fs_o/2.0, fs_o/2.0, fs_o/float(X_o.size))
f_o = scipy.arange(0, fs_o/2.0, fs_o/2.0/float(X_o.size))
p2_f = sp2_f.plot(f_o, X_o, "b")
- sp2_f.set_xlim([min(f_o), max(f_o)+0.1])
- sp2_f.set_ylim([-120.0, 20.0])
+ sp2_f.set_xlim([min(f_o), max(f_o)+0.1])
+ sp2_f.set_ylim([-120.0, 20.0])
sp2_f.grid(True)
sp2_f.set_title(("Channel %d" % i), weight="bold")
@@ -211,8 +211,8 @@ def main():
sp2_t = fig3.add_subplot(Nrows, Ncols, 1+i)
p2_t = sp2_t.plot(t_o, x_t.real, "b")
p2_t = sp2_t.plot(t_o, x_t.imag, "r")
- sp2_t.set_xlim([min(t_o), max(t_o)+1])
- sp2_t.set_ylim([-1, 1])
+ sp2_t.set_xlim([min(t_o), max(t_o)+1])
+ sp2_t.set_ylim([-1, 1])
sp2_t.set_xlabel("Time (s)")
sp2_t.set_ylabel("Amplitude")
diff --git a/gnuradio-core/src/examples/pfb/interpolate.py b/gnuradio-core/src/examples/pfb/interpolate.py
index 370cf26a7..98068f220 100755
--- a/gnuradio-core/src/examples/pfb/interpolate.py
+++ b/gnuradio-core/src/examples/pfb/interpolate.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2009 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, blks2
import sys, time
@@ -46,13 +46,13 @@ class pfb_top_block(gr.top_block):
self._interp = 5 # Interpolation rate for PFB interpolator
self._ainterp = 5.5 # Resampling rate for the PFB arbitrary resampler
- # Frequencies of the signals we construct
+ # Frequencies of the signals we construct
freq1 = 100
freq2 = 200
# Create a set of taps for the PFB interpolator
# This is based on the post-interpolation sample rate
- self._taps = gr.firdes.low_pass_2(self._interp, self._interp*self._fs, freq2+50, 50,
+ self._taps = gr.firdes.low_pass_2(self._interp, self._interp*self._fs, freq2+50, 50,
attenuation_dB=120, window=gr.firdes.WIN_BLACKMAN_hARRIS)
# Create a set of taps for the PFB arbitrary resampler
@@ -61,7 +61,7 @@ class pfb_top_block(gr.top_block):
# The taps in this filter are based on a sampling rate of the filter size since it acts
# internally as an interpolator.
flt_size = 32
- self._taps2 = gr.firdes.low_pass_2(flt_size, flt_size*self._fs, freq2+50, 150,
+ self._taps2 = gr.firdes.low_pass_2(flt_size, flt_size*self._fs, freq2+50, 150,
attenuation_dB=120, window=gr.firdes.WIN_BLACKMAN_hARRIS)
# Calculate the number of taps per channel for our own information
@@ -74,7 +74,7 @@ class pfb_top_block(gr.top_block):
self.signal1 = gr.sig_source_c(self._fs, gr.GR_SIN_WAVE, freq1, 0.5)
self.signal2 = gr.sig_source_c(self._fs, gr.GR_SIN_WAVE, freq2, 0.5)
self.signal = gr.add_cc()
-
+
self.head = gr.head(gr.sizeof_gr_complex, self._N)
# Construct the PFB interpolator filter
@@ -86,7 +86,7 @@ class pfb_top_block(gr.top_block):
#self.pfb_ar.pfb.print_taps()
#self.pfb.pfb.print_taps()
-
+
# Connect the blocks
self.connect(self.signal1, self.head, (self.signal,0))
self.connect(self.signal2, (self.signal,1))
@@ -99,7 +99,7 @@ class pfb_top_block(gr.top_block):
self.snk2 = gr.vector_sink_c()
self.connect(self.pfb, self.snk1)
self.connect(self.pfb_ar, self.snk2)
-
+
def main():
tb = pfb_top_block()
@@ -114,7 +114,7 @@ def main():
fig1 = pylab.figure(1, figsize=(12,10), facecolor="w")
fig2 = pylab.figure(2, figsize=(12,10), facecolor="w")
fig3 = pylab.figure(3, figsize=(12,10), facecolor="w")
-
+
Ns = 10000
Ne = 10000
@@ -133,8 +133,8 @@ def main():
X_in = 10.0*scipy.log10(abs(fftpack.fftshift(X)))
f_in = scipy.arange(-fs/2.0, fs/2.0, fs/float(X_in.size))
p1_f = sp1_f.plot(f_in, X_in, "b")
- sp1_f.set_xlim([min(f_in), max(f_in)+1])
- sp1_f.set_ylim([-200.0, 50.0])
+ sp1_f.set_xlim([min(f_in), max(f_in)+1])
+ sp1_f.set_ylim([-200.0, 50.0])
sp1_f.set_title("Input Signal", weight="bold")
@@ -143,7 +143,7 @@ def main():
Ts = 1.0/fs
Tmax = len(d)*Ts
-
+
t_in = scipy.arange(0, Tmax, Ts)
x_in = scipy.array(d)
sp1_t = fig1.add_subplot(2, 1, 2)
@@ -167,8 +167,8 @@ def main():
X_o = 10.0*scipy.log10(abs(fftpack.fftshift(X)))
f_o = scipy.arange(-fs_int/2.0, fs_int/2.0, fs_int/float(X_o.size))
p2_f = sp2_f.plot(f_o, X_o, "b")
- sp2_f.set_xlim([min(f_o), max(f_o)+1])
- sp2_f.set_ylim([-200.0, 50.0])
+ sp2_f.set_xlim([min(f_o), max(f_o)+1])
+ sp2_f.set_ylim([-200.0, 50.0])
sp2_f.set_title("Output Signal from PFB Interpolator", weight="bold")
sp2_f.set_xlabel("Frequency (Hz)")
@@ -200,8 +200,8 @@ def main():
X_o = 10.0*scipy.log10(abs(fftpack.fftshift(X)))
f_o = scipy.arange(-fs_aint/2.0, fs_aint/2.0, fs_aint/float(X_o.size))
p3_f = sp3_f.plot(f_o, X_o, "b")
- sp3_f.set_xlim([min(f_o), max(f_o)+1])
- sp3_f.set_ylim([-200.0, 50.0])
+ sp3_f.set_xlim([min(f_o), max(f_o)+1])
+ sp3_f.set_ylim([-200.0, 50.0])
sp3_f.set_title("Output Signal from PFB Arbitrary Resampler", weight="bold")
sp3_f.set_xlabel("Frequency (Hz)")
@@ -217,7 +217,7 @@ def main():
p3_f = sp3_f.plot(t_o, x_o1.real, "m-o")
#p3_f = sp3_f.plot(t_o, x_o2.imag, "r-o")
sp3_f.set_ylim([-2.5, 2.5])
-
+
sp3_f.set_title("Output Signal from PFB Arbitrary Resampler", weight="bold")
sp3_f.set_xlabel("Time (s)")
sp3_f.set_ylabel("Amplitude")
@@ -230,4 +230,4 @@ if __name__ == "__main__":
main()
except KeyboardInterrupt:
pass
-
+
diff --git a/gnuradio-core/src/examples/pfb/reconstruction.py b/gnuradio-core/src/examples/pfb/reconstruction.py
index c7909f7a5..59910e4d6 100755
--- a/gnuradio-core/src/examples/pfb/reconstruction.py
+++ b/gnuradio-core/src/examples/pfb/reconstruction.py
@@ -36,7 +36,7 @@ def main():
# Split it up into pieces
channelizer = blks2.pfb_channelizer_ccf(nchans, proto_taps, 2)
-
+
# Put the pieces back together again
syn_taps = [nchans*t for t in proto_taps]
synthesizer = gr.pfb_synthesizer_ccf(nchans, syn_taps, True)
@@ -48,7 +48,7 @@ def main():
# the channelizer)
synthesizer.set_channel_map([ 0, 1, 2, 3, 4,
15, 16, 17, 18, 19])
-
+
tb = gr.top_block()
tb.connect(src, mod, chan, rrc, channelizer)
tb.connect(rrc, src_snk)
@@ -59,14 +59,14 @@ def main():
vsnk.append(gr.vector_sink_c())
tb.connect((channelizer,i), vsnk[i])
-
+
tb.connect(synthesizer, snk)
tb.run()
-
+
sin = scipy.array(src_snk.data()[1000:])
sout = scipy.array(snk.data()[1000:])
-
+
# Plot original signal
fs_in = nchans*fs
f1 = pylab.figure(1, figsize=(16,12), facecolor='w')
@@ -87,7 +87,7 @@ def main():
s13.set_title("Constellation")
s13.set_xlim([-2, 2])
s13.set_ylim([-2, 2])
-
+
# Plot channels
nrows = int(scipy.sqrt(nchans))
ncols = int(scipy.ceil(float(nchans)/float(nrows)))
@@ -122,7 +122,7 @@ def main():
pylab.show()
-
+
if __name__ == "__main__":
try:
main()
diff --git a/gnuradio-core/src/examples/pfb/resampler.py b/gnuradio-core/src/examples/pfb/resampler.py
index 7b296ca71..555938d28 100755
--- a/gnuradio-core/src/examples/pfb/resampler.py
+++ b/gnuradio-core/src/examples/pfb/resampler.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2009 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, blks2
import sys
@@ -38,7 +38,7 @@ except ImportError:
class mytb(gr.top_block):
def __init__(self, fs_in, fs_out, fc, N=10000):
gr.top_block.__init__(self)
-
+
rerate = float(fs_out) / float(fs_in)
print "Resampling from %f to %f by %f " %(fs_in, fs_out, rerate)
@@ -56,7 +56,7 @@ class mytb(gr.top_block):
# A resampler that just needs a resampling rate.
# Filter is created for us and designed to cover
# entire bandwidth of the input signal.
- # An optional atten=XX rate can be used here to
+ # An optional atten=XX rate can be used here to
# specify the out-of-band rejection (default=80).
self.resamp_1 = blks2.pfb_arb_resampler_ccf(rerate)
diff --git a/gnuradio-core/src/examples/pfb/synth_filter.py b/gnuradio-core/src/examples/pfb/synth_filter.py
index a91edfebf..c0f7376ec 100755
--- a/gnuradio-core/src/examples/pfb/synth_filter.py
+++ b/gnuradio-core/src/examples/pfb/synth_filter.py
@@ -1,27 +1,27 @@
#!/usr/bin/env python
#
# Copyright 2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, blks2
-import sys
+import sys
try:
import scipy
@@ -48,7 +48,7 @@ def main():
sigs.append(s)
taps = gr.firdes.low_pass_2(len(freqs), fs, fs/float(nchans)/2, 100, 100)
- print "Num. Taps = %d (taps per filter = %d)" % (len(taps),
+ print "Num. Taps = %d (taps per filter = %d)" % (len(taps),
len(taps)/nchans)
filtbank = gr.pfb_synthesizer_ccf(nchans, taps)
@@ -60,14 +60,14 @@ def main():
for i,si in enumerate(sigs):
tb.connect(si, (filtbank, i))
-
+
tb.run()
if 1:
f1 = pylab.figure(1)
s1 = f1.add_subplot(1,1,1)
s1.plot(snk.data()[1000:])
-
+
fftlen = 2048
f2 = pylab.figure(2)
s2 = f2.add_subplot(1,1,1)
diff --git a/gnuradio-core/src/examples/pfb/synth_to_chan.py b/gnuradio-core/src/examples/pfb/synth_to_chan.py
index c6c80b2f8..18b2e7b53 100755
--- a/gnuradio-core/src/examples/pfb/synth_to_chan.py
+++ b/gnuradio-core/src/examples/pfb/synth_to_chan.py
@@ -1,27 +1,27 @@
#!/usr/bin/env python
#
# Copyright 2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, blks2
-import sys
+import sys
try:
import scipy
@@ -51,10 +51,10 @@ def main():
fmtx.append(fm)
syntaps = gr.firdes.low_pass_2(len(freqs), fs, fs/float(nchans)/2, 100, 100)
- print "Synthesis Num. Taps = %d (taps per filter = %d)" % (len(syntaps),
+ print "Synthesis Num. Taps = %d (taps per filter = %d)" % (len(syntaps),
len(syntaps)/nchans)
chtaps = gr.firdes.low_pass_2(len(freqs), fs, fs/float(nchans)/2, 100, 100)
- print "Channelizer Num. Taps = %d (taps per filter = %d)" % (len(chtaps),
+ print "Channelizer Num. Taps = %d (taps per filter = %d)" % (len(chtaps),
len(chtaps)/nchans)
filtbank = gr.pfb_synthesizer_ccf(nchans, syntaps)
channelizer = blks2.pfb_channelizer_ccf(nchans, chtaps)
@@ -79,7 +79,7 @@ def main():
for i in xrange(nchans):
snk.append(gr.vector_sink_c())
tb.connect((channelizer, i), snk[i])
-
+
tb.run()
if 1:
@@ -90,7 +90,7 @@ def main():
s1 = f1.add_subplot(1,1,1)
s1.plot(data[10000:10200] )
s1.set_title(("Output Signal from Channel %d" % channel))
-
+
fftlen = 2048
winfunc = scipy.blackman
#winfunc = scipy.hamming
diff --git a/gnuradio-core/src/examples/tags/CMakeLists.txt b/gnuradio-core/src/examples/tags/CMakeLists.txt
index 0ba1a4dd9..2d9dc2083 100644
--- a/gnuradio-core/src/examples/tags/CMakeLists.txt
+++ b/gnuradio-core/src/examples/tags/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gnuradio-core/src/examples/tags/test_file_tags.py b/gnuradio-core/src/examples/tags/test_file_tags.py
index 446986cd7..135626d2c 100755
--- a/gnuradio-core/src/examples/tags/test_file_tags.py
+++ b/gnuradio-core/src/examples/tags/test_file_tags.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
import sys
@@ -52,4 +52,4 @@ def main():
if __name__ == "__main__":
main()
-
+
diff --git a/gnuradio-core/src/examples/tags/uhd_burst_detector.py b/gnuradio-core/src/examples/tags/uhd_burst_detector.py
index 7411ab06e..512fc715d 100755
--- a/gnuradio-core/src/examples/tags/uhd_burst_detector.py
+++ b/gnuradio-core/src/examples/tags/uhd_burst_detector.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import eng_notation
from gnuradio import gr
@@ -39,11 +39,11 @@ class uhd_burst_detector(gr.top_block):
self.gain = options.gain
self.threshold = options.threshold
self.trigger = options.trigger
-
+
self.uhd_src = uhd.single_usrp_source(
device_addr=self.uhd_addr,
stream_args=uhd.stream_args('fc32'))
-
+
self.uhd_src.set_samp_rate(self.samp_rate)
self.uhd_src.set_center_freq(self.freq, 0)
self.uhd_src.set_gain(self.gain, 0)
@@ -70,7 +70,7 @@ class uhd_burst_detector(gr.top_block):
# Use file sink burst tagger to capture bursts
self.fsnk = gr.tagged_file_sink(gr.sizeof_gr_complex, self.samp_rate)
-
+
##################################################
# Connections
@@ -87,11 +87,11 @@ class uhd_burst_detector(gr.top_block):
self.connect(self.uhd_src, self.det)
self.connect(self.det, self.c2m, self.avg, self.scale, self.f2s)
self.connect(self.f2s, (self.tagger, 1))
-
+
def set_samp_rate(self, samp_rate):
self.samp_rate = samp_rate
self.uhd_src_0.set_samp_rate(self.samp_rate)
-
+
if __name__ == '__main__':
parser = OptionParser(option_class=eng_option, usage="%prog: [options]")
parser.add_option("-a", "--address", type="string", default="addr=192.168.10.2",
@@ -109,7 +109,7 @@ if __name__ == '__main__':
parser.add_option("-T", "--trigger", action="store_true", default=False,
help="Use internal trigger instead of detector [default=%default]")
(options, args) = parser.parse_args()
-
+
uhd_addr = options.address
tb = uhd_burst_detector(uhd_addr, options)
diff --git a/gnuradio-core/src/examples/volk_benchmark/CMakeLists.txt b/gnuradio-core/src/examples/volk_benchmark/CMakeLists.txt
index dfae03f83..255d9bf5c 100644
--- a/gnuradio-core/src/examples/volk_benchmark/CMakeLists.txt
+++ b/gnuradio-core/src/examples/volk_benchmark/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2012 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,
diff --git a/gnuradio-core/src/examples/volk_benchmark/README b/gnuradio-core/src/examples/volk_benchmark/README
index 516fc15bd..c58b40d11 100644
--- a/gnuradio-core/src/examples/volk_benchmark/README
+++ b/gnuradio-core/src/examples/volk_benchmark/README
@@ -221,7 +221,7 @@ variables to point to the v3.5.1 installation:
And when we run the test, we use the same command line, but the GNU
Radio libraries and Python files used come from v3.5.1. We also change
the label to indicate the different version to store.
-
+
./volk_math.py -D volk_results_math.db --all -L v3_5_1
We now have a database populated with three tables for the three
diff --git a/gnuradio-core/src/examples/volk_benchmark/volk_math.py b/gnuradio-core/src/examples/volk_benchmark/volk_math.py
index 8bf9ed6f3..1d8bf04cc 100755
--- a/gnuradio-core/src/examples/volk_benchmark/volk_math.py
+++ b/gnuradio-core/src/examples/volk_benchmark/volk_math.py
@@ -125,7 +125,7 @@ def main():
if(args.list):
print "Available Tests to Run:"
print "\n".join(["\t{0}: {1}".format(i,f.__name__) for i,f in enumerate(avail_tests)])
- sys.exit(0)
+ sys.exit(0)
N = int(args.nitems)
iters = args.iterations
@@ -143,7 +143,7 @@ def main():
res = run_tests(avail_tests[test], N, iters)
if res is not None:
replace_results(conn, label, N, iters, res)
-
+
if __name__ == "__main__":
try:
main()
diff --git a/gnuradio-core/src/examples/volk_benchmark/volk_plot.py b/gnuradio-core/src/examples/volk_benchmark/volk_plot.py
index 823dfbf64..48f992205 100755
--- a/gnuradio-core/src/examples/volk_benchmark/volk_plot.py
+++ b/gnuradio-core/src/examples/volk_benchmark/volk_plot.py
@@ -29,7 +29,7 @@ def main():
default=None, metavar="table",
help='Show percent difference to the given type [default: %(default)s]')
args = parser.parse_args()
-
+
# Set up global plotting properties
matplotlib.rcParams['figure.subplot.bottom'] = 0.2
matplotlib.rcParams['figure.subplot.top'] = 0.95
@@ -37,7 +37,7 @@ def main():
matplotlib.rcParams['ytick.labelsize'] = 16
matplotlib.rcParams['xtick.labelsize'] = 16
matplotlib.rcParams['legend.fontsize'] = 18
-
+
# Get list of tables to compare
conn = create_connection(args.database)
tables = list_tables(conn)
@@ -64,7 +64,7 @@ def main():
except ValueError:
tmp_regs[-1].append(r['kernel'])
- # Get only those names that are common in all tables
+ # Get only those names that are common in all tables
name_reg = tmp_regs[0]
for t in tmp_regs[1:]:
name_reg = list(set(name_reg) & set(t))
@@ -97,7 +97,7 @@ def main():
norm_data.append(table_data[t][name]['min'])
elif(args.plot == 'mean'):
norm_data.append(table_data[t][name]['avg'])
-
+
# Plot the results
x0 = xrange(len(name_reg))
diff --git a/gnuradio-core/src/examples/volk_benchmark/volk_test_funcs.py b/gnuradio-core/src/examples/volk_benchmark/volk_test_funcs.py
index 4f4e4afd3..0ce25fcc6 100644
--- a/gnuradio-core/src/examples/volk_benchmark/volk_test_funcs.py
+++ b/gnuradio-core/src/examples/volk_benchmark/volk_test_funcs.py
@@ -56,7 +56,7 @@ def insert_results(conn, tablename, nitems, iters, res):
'''
cols = "kernel, nitems, iters, avg, var, max, min"
cmd = "INSERT INTO {0} ({1}) VALUES ('{2}', {3}, {4}, {5}, {6}, {7}, {8})".format(
- tablename, cols, res["kernel"], nitems, iters,
+ tablename, cols, res["kernel"], nitems, iters,
res["avg"], res["var"], res["max"], res["min"])
execute(conn, cmd)
@@ -71,7 +71,7 @@ def list_tables(conn):
c.close()
return t
-
+
def get_results(conn, tablename):
'''
Gets all results in tablename.
@@ -95,7 +95,7 @@ def get_results(conn, tablename):
res.append(r)
return res
-
+
class helper(gr.top_block):
'''
diff --git a/gnuradio-core/src/examples/volk_benchmark/volk_types.py b/gnuradio-core/src/examples/volk_benchmark/volk_types.py
index 3bc5a22ae..5dac23c53 100755
--- a/gnuradio-core/src/examples/volk_benchmark/volk_types.py
+++ b/gnuradio-core/src/examples/volk_benchmark/volk_types.py
@@ -156,7 +156,7 @@ def main():
if(args.list):
print "Available Tests to Run:"
print "\n".join(["\t{0}: {1}".format(i,f.__name__) for i,f in enumerate(avail_tests)])
- sys.exit(0)
+ sys.exit(0)
N = int(args.nitems)
iters = args.iterations
@@ -174,7 +174,7 @@ def main():
res = run_tests(avail_tests[test], N, iters)
if res is not None:
replace_results(conn, label, N, iters, res)
-
+
if __name__ == "__main__":
try:
main()
diff --git a/gnuradio-core/src/gen_interpolator_taps/Makefile.am.obsolete b/gnuradio-core/src/gen_interpolator_taps/Makefile.am.obsolete
index 1b54af5e7..cd0edaf5c 100644
--- a/gnuradio-core/src/gen_interpolator_taps/Makefile.am.obsolete
+++ b/gnuradio-core/src/gen_interpolator_taps/Makefile.am.obsolete
@@ -1,23 +1,23 @@
#
# 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,
# Boston, MA 02110-1301, USA.
-#
+#
include $(top_srcdir)/Makefile.common
@@ -32,7 +32,7 @@ EXTRA_DIST += \
# if ENABLE_FORTRAN
# noinst_PROGRAMS = gen_interpolator_taps
# noinst_HEADERS = simpson.h
-#
+#
# gen_interpolator_taps_SOURCES = gen_interpolator_taps.c objective_fct.c simpson.c praxis.f
# gen_interpolator_taps_LDADD = $(FLIBS) -lm
#
diff --git a/gnuradio-core/src/gen_interpolator_taps/README b/gnuradio-core/src/gen_interpolator_taps/README
index 0bc547d3f..8fe3e2ba3 100644
--- a/gnuradio-core/src/gen_interpolator_taps/README
+++ b/gnuradio-core/src/gen_interpolator_taps/README
@@ -1,28 +1,28 @@
#
# 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,
# Boston, MA 02110-1301, USA.
-#
+#
This file contains the source for gen_interpolator_taps, a program
which generates optimal interpolator taps for a fractional
-interpolator.
+interpolator.
The ideal interpolator requires an infinite tap FIR filter to
realize. We design a separate 8 tap filter for each value of mu,
diff --git a/gnuradio-core/src/gen_interpolator_taps/gen_interpolator_taps.c b/gnuradio-core/src/gen_interpolator_taps/gen_interpolator_taps.c
index d588868b2..2f359102c 100644
--- a/gnuradio-core/src/gen_interpolator_taps/gen_interpolator_taps.c
+++ b/gnuradio-core/src/gen_interpolator_taps/gen_interpolator_taps.c
@@ -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,
@@ -38,7 +38,7 @@ extern double global_B;
extern double prax2_ (double (fct)(double x[], int *ntaps),
double initv[], int *ntaps, double result[]);
-static void
+static void
usage (char *name)
{
fprintf (stderr, "usage: %s [-v] [-n <nsteps>] [-t <ntaps>] [-B <bw>]\n", name);
@@ -49,7 +49,7 @@ static void
printline (double x[], int ntaps, int imu, int nsteps)
{
int i;
-
+
printf (" { ");
for (i = 0; i < ntaps; i++){
printf ("%12.5e", x[i]);
@@ -60,7 +60,7 @@ printline (double x[], int ntaps, int imu, int nsteps)
}
}
-int
+int
main (int argc, char **argv)
{
double xx[MAX_NSTEPS+1][MAX_NTAPS];
@@ -87,11 +87,11 @@ main (int argc, char **argv)
case 'B':
global_B = strtod (optarg, 0);
break;
-
+
case 'v':
verbose = 1;
break;
-
+
default:
usage (argv[0]);
break;
@@ -107,7 +107,7 @@ main (int argc, char **argv)
fprintf (stderr, "%s: nsteps must be < %d\n", argv[0], MAX_NSTEPS);
exit (1);
}
-
+
if ((ntaps & 1) != 0){
fprintf (stderr, "%s: ntaps must be even\n", argv[0]);
exit (1);
@@ -122,9 +122,9 @@ main (int argc, char **argv)
fprintf (stderr, "%s: bandwidth must be in the range (0, 0.5)\n", argv[0]);
exit (1);
}
-
+
step_size = 1.0/nsteps;
-
+
// the optimizer chokes on the two easy cases (0/N and N/N). We do them by hand...
for (i = 0; i < ntaps; i++)
@@ -172,14 +172,14 @@ main (int argc, char **argv)
printf ("static const int NTAPS = %4d;\n", ntaps);
printf ("static const int NSTEPS = %4d;\n", nsteps);
printf ("static const double BANDWIDTH = %g;\n\n", global_B);
-
+
printf ("static const float taps[NSTEPS+1][NTAPS] = {\n");
printf (" // -4 -3 -2 -1 0 1 2 3 mu\n");
for (i = 0; i <= nsteps; i++)
printline (xx[i], ntaps, i, nsteps);
-
+
printf ("};\n\n");
return 0;
diff --git a/gnuradio-core/src/gen_interpolator_taps/objective_fct.c b/gnuradio-core/src/gen_interpolator_taps/objective_fct.c
index cb15be74e..129486d63 100644
--- a/gnuradio-core/src/gen_interpolator_taps/objective_fct.c
+++ b/gnuradio-core/src/gen_interpolator_taps/objective_fct.c
@@ -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,
@@ -48,7 +48,7 @@ double global_B = B;
* and Fechtel, Wiley, 1998.
*/
-static double
+static double
integrand (double omega)
{
double real_ideal;
@@ -103,7 +103,7 @@ objective (double x[], int *ndim)
return c_fcn (x, *ndim);
}
-static double
+static double
si (double x)
{
if (fabs (x) < 1e-9)
diff --git a/gnuradio-core/src/gen_interpolator_taps/praxis.txt b/gnuradio-core/src/gen_interpolator_taps/praxis.txt
index 5c4b81556..9d0606566 100644
--- a/gnuradio-core/src/gen_interpolator_taps/praxis.txt
+++ b/gnuradio-core/src/gen_interpolator_taps/praxis.txt
@@ -18,8 +18,8 @@ and FORTRAN by Brent, and have been used fairly widely.
Brent also gave a multi-dimensional minimization algorithm,
PRAXIS, but only shows an implementation in ALGOL W.
This routine has not been widely used, at least in the U.S.
-The PRAXIS package has been translated into FORTRAN
-by Rosalee Taylor, Sue Pinski, and me, and
+The PRAXIS package has been translated into FORTRAN
+by Rosalee Taylor, Sue Pinski, and me, and
I am making it available via anonymous ftp for use as
freeware (please do not remove our names).
@@ -30,7 +30,7 @@ freeware (please do not remove our names).
get praxis.f
quit
-
+
Brent's method and its performance
Newton's method for minimization can find the minimum of a
@@ -51,7 +51,7 @@ and is available as file va04a.f in the same directory as praxis.f.
VA04A is not extremely robust, and can give underflow, overflow,
or division by zero. va04a.f has several documented patches in it
where I tried to get around various abnormal terminations.
-I do not recommend VA04A very strongly.
+I do not recommend VA04A very strongly.
Brent's PRAXIS added orthogonalization and several other features
to Powell's method. Brent also dealt carefully with roundoff.
@@ -75,13 +75,13 @@ The methods of Powell, Brent, et al. require that the function
for which a local minimum is sought must be smooth;
that is, the function and all of its first partial derivatives
must be continuous.
-
+
Brent compared his method to the methods of Powell, of Stewart,
and of Davies, Swann, and Campey. Indirectly, he compared it
also to the Davidon-Fletcher-Powell quasi-Newton method.
He found that his method was about as efficient as the best
of these in most cases, and that it was more robust than others
-in some cases. (Pages 139-155 in Brent's book give fair
+in some cases. (Pages 139-155 in Brent's book give fair
comparisons to other methods. The results in Table 7.1 on
page 138 are correct, but do not include progress all the way
to convergence, and are therefore not too useful.)
@@ -89,7 +89,7 @@ to convergence, and are therefore not too useful.)
On least squares problems, all of these general minimization
methods are likely to be inefficient compared to least squares
methods such as the Gauss-Newton or Marquardt methods.
-
+
In addition to the scale dependence that Fletcher deplored,
PRAXIS also had the disadvantage that it required N, the number
of parameters, to be greater than or equal to two.
@@ -134,18 +134,18 @@ except possibly Cray computers, in which REAL is reasonably precise.
The value of "machine epsilon" is computed in subroutine PRASET
using bisection, and is called EPSMCH.
Brent computes EPSMCH**4 and 1/EPSMCH**4 in PRAXIS,
-and uses these quantities later.
+and uses these quantities later.
Because EPSMCH in DOUBLE PRECISION is less than 1E-16,
these fourth powers of EPSMCH and 1/EPSMCH will underflow
and overflow on such machines as VAXs and PCs,
which have a range of only about 1E38, grossly insufficient
for scientific computation. For such machines, Brent recommends
-increasing the value of EPSMCH.
+increasing the value of EPSMCH.
EPSMCH=1E-9 or possibly even 1E-8 might be necessary.
A better solution would be to eliminate the explicit use of
these fourth powers, accomplishing the same result implicitly.
-A "bug bounty" of $10 U.S. will be paid by me for the first
+A "bug bounty" of $10 U.S. will be paid by me for the first
notification of any error in PRAXIS.
The same bounty also applies to any substantive poor design
choice (having no redeeming advantages whatever) in the FORTRAN
@@ -154,7 +154,7 @@ suggested improvements in that will be considered carefully.)
praxis.f includes test software to run any of the test problems
that Brent ran, and is set to run at least one case of each problem.
-I have run these on an IBM 3090, essentially the same
+I have run these on an IBM 3090, essentially the same
architecture that Brent used, and obtained essentially the same
results that Brent shows on pages 140-155. The Hilbert problem with
N=12, for which Brent shows no termination results and for which
diff --git a/gnuradio-core/src/gen_interpolator_taps/simpson.c b/gnuradio-core/src/gen_interpolator_taps/simpson.c
index fc6dd6c27..31aaae4ae 100644
--- a/gnuradio-core/src/gen_interpolator_taps/simpson.c
+++ b/gnuradio-core/src/gen_interpolator_taps/simpson.c
@@ -18,7 +18,7 @@
* NOR THREAD SAFE!
*/
-double
+double
trapzd (double (*func)(double),
double a, double b,
int n)
diff --git a/gnuradio-core/src/lib/CMakeLists.txt b/gnuradio-core/src/lib/CMakeLists.txt
index 73002ec7b..9c980157d 100644
--- a/gnuradio-core/src/lib/CMakeLists.txt
+++ b/gnuradio-core/src/lib/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2010-2011 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,
diff --git a/gnuradio-core/src/lib/ConfigChecks.cmake b/gnuradio-core/src/lib/ConfigChecks.cmake
index 30a1011e4..26b778a7a 100644
--- a/gnuradio-core/src/lib/ConfigChecks.cmake
+++ b/gnuradio-core/src/lib/ConfigChecks.cmake
@@ -1,17 +1,17 @@
# Copyright 2010-2011 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,
diff --git a/gnuradio-core/src/lib/filter/3dnow_float_dotprod_really_simple.S b/gnuradio-core/src/lib/filter/3dnow_float_dotprod_really_simple.S
index 6050425ac..0cd686736 100644
--- a/gnuradio-core/src/lib/filter/3dnow_float_dotprod_really_simple.S
+++ b/gnuradio-core/src/lib/filter/3dnow_float_dotprod_really_simple.S
@@ -1,30 +1,30 @@
#
# 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,
# Boston, MA 02110-1301, USA.
-#
+#
# input and taps are guarenteed to be 16 byte aligned.
# n_4_float_blocks is != 0
-#
#
-# float
+#
+# float
# sse_float_dotprod (const float *input,
# const float *taps, unsigned n_4_float_blocks)
# {
@@ -32,23 +32,23 @@
# float sum1 = 0;
# float sum2 = 0;
# float sum3 = 0;
-#
+#
# do {
-#
+#
# sum0 += input[0] * taps[0];
# sum1 += input[1] * taps[1];
# sum2 += input[2] * taps[2];
# sum3 += input[3] * taps[3];
-#
+#
# input += 4;
# taps += 4;
-#
+#
# } while (--n_4_float_blocks != 0);
-#
-#
+#
+#
# return sum0 + sum1 + sum2 + sum3;
# }
-#
+#
.file "3dnow_float_dotprod_really_simple.s"
@@ -64,7 +64,7 @@ sse_float_dotprod:
movl 12(%ebp), %eax
movl 16(%ebp), %ecx
-
+
# The plan is to get it computing the correct answer, and
# then to unroll and schedule the inner loop.
@@ -80,7 +80,7 @@ sse_float_dotprod:
addl $8, %eax
decl %ecx
jne .Loop1
-
+
# at this point mm4 contains partial sums
pfacc %mm4, %mm4
diff --git a/gnuradio-core/src/lib/filter/3dnow_float_dotprod_simple.S b/gnuradio-core/src/lib/filter/3dnow_float_dotprod_simple.S
index 1097728cb..5af3fc5c9 100644
--- a/gnuradio-core/src/lib/filter/3dnow_float_dotprod_simple.S
+++ b/gnuradio-core/src/lib/filter/3dnow_float_dotprod_simple.S
@@ -1,30 +1,30 @@
#
# 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,
# Boston, MA 02110-1301, USA.
-#
+#
# input and taps are guarenteed to be 16 byte aligned.
# n_4_float_blocks is != 0
-#
#
-# float
+#
+# float
# sse_float_dotprod (const float *input,
# const float *taps, unsigned n_4_float_blocks)
# {
@@ -32,23 +32,23 @@
# float sum1 = 0;
# float sum2 = 0;
# float sum3 = 0;
-#
+#
# do {
-#
+#
# sum0 += input[0] * taps[0];
# sum1 += input[1] * taps[1];
# sum2 += input[2] * taps[2];
# sum3 += input[3] * taps[3];
-#
+#
# input += 4;
# taps += 4;
-#
+#
# } while (--n_4_float_blocks != 0);
-#
-#
+#
+#
# return sum0 + sum1 + sum2 + sum3;
# }
-#
+#
.file "3dnow_float_dotprod_simple.s"
@@ -64,21 +64,21 @@ sse_float_dotprod:
movl 12(%ebp), %eax
movl 16(%ebp), %ecx
-
+
# The plan is to get it computing the correct answer, and
# then to unroll and schedule the inner loop.
pxor %mm4, %mm4 # mm4 = 0 0
- pxor %mm5, %mm5 # mm5 = 0 0
+ pxor %mm5, %mm5 # mm5 = 0 0
.p2align 4
.Loop1:
movq 0(%eax), %mm0
movq 8(%eax), %mm1
-
+
pfmul 0(%edx), %mm0
pfadd %mm0, %mm4
-
+
pfmul 8(%edx), %mm1
pfadd %mm1, %mm5
@@ -86,7 +86,7 @@ sse_float_dotprod:
addl $16, %eax
decl %ecx
jne .Loop1
-
+
# at this point mm4 and mm5 contain partial sums
pfadd %mm5, %mm4
diff --git a/gnuradio-core/src/lib/filter/README b/gnuradio-core/src/lib/filter/README
index a68e32a4e..90c1584fc 100644
--- a/gnuradio-core/src/lib/filter/README
+++ b/gnuradio-core/src/lib/filter/README
@@ -1,23 +1,23 @@
#
# Copyright 2004 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,
# Boston, MA 02110-1301, USA.
-#
+#
This directory holds filtering code, some of which is machine
generated. Which variations are generated is controlled by two
diff --git a/gnuradio-core/src/lib/filter/assembly.h b/gnuradio-core/src/lib/filter/assembly.h
index 8a99aa07c..32477dfd7 100644
--- a/gnuradio-core/src/lib/filter/assembly.h
+++ b/gnuradio-core/src/lib/filter/assembly.h
@@ -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,
diff --git a/gnuradio-core/src/lib/filter/ccomplex_dotprod_3dnow.S b/gnuradio-core/src/lib/filter/ccomplex_dotprod_3dnow.S
index 26f5830f9..8844e5108 100644
--- a/gnuradio-core/src/lib/filter/ccomplex_dotprod_3dnow.S
+++ b/gnuradio-core/src/lib/filter/ccomplex_dotprod_3dnow.S
@@ -1,28 +1,28 @@
#
# 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,
# Boston, MA 02110-1301, USA.
-#
+#
# input and taps are guarenteed to be 16 byte aligned.
# n_2_ccomplex_blocks is != 0
-#
+#
#
# ccomplex_dotprod_generic (const float *input,
# const float *taps, unsigned n_2_ccomplex_blocks, float *result)
@@ -31,24 +31,24 @@
# float sum1 = 0;
# float sum2 = 0;
# float sum3 = 0;
-#
+#
# do {
-#
+#
# sum0 += input[0] * taps[0] - input[1] * taps[1];
# sum1 += input[0] * taps[1] + input[1] * taps[0];
# sum2 += input[2] * taps[2] - input[3] * taps[3];
# sum3 += input[2] * taps[3] + input[3] * taps[2];
-#
+#
# input += 4;
# taps += 4;
-#
+#
# } while (--n_2_ccomplex_blocks != 0);
-#
-#
+#
+#
# result[0] = sum0 + sum2;
# result[1] = sum1 + sum3;
# }
-#
+#
# TODO: prefetch and better scheduling
@@ -68,12 +68,12 @@ GLOB_SYMB(ccomplex_dotprod_3dnow):
movl 16(%ebp), %ecx # n_2_ccomplex_blocks
# zero accumulators
-
- pxor %mm6, %mm6 # mm6 = 0 0
+
+ pxor %mm6, %mm6 # mm6 = 0 0
movq 0(%eax), %mm0
- pxor %mm7, %mm7 # mm7 = 0 0
+ pxor %mm7, %mm7 # mm7 = 0 0
movq 0(%edx), %mm2
@@ -89,9 +89,9 @@ GLOB_SYMB(ccomplex_dotprod_3dnow):
# 4 taps / loop
# something like ?? cycles / loop
#
-
+
.p2align 4
-.Loop1:
+.Loop1:
# complex prod: C += A * B, w/ temp Z, mmPN=$80000000
#
@@ -170,11 +170,11 @@ GLOB_SYMB(ccomplex_dotprod_3dnow):
# We've handled the bulk of multiplies up to here.
# Let's see if original n_2_ccomplex_blocks was odd.
# If so, we've got 2 more taps to do.
-
+
movl 16(%ebp), %ecx # n_2_ccomplex_blocks
andl $1, %ecx
je .Leven
-
+
# The count was odd, do 2 more taps.
# Note that we've already got mm0/mm2 & mm1/mm3 preloaded
# from the main loop.
diff --git a/gnuradio-core/src/lib/filter/ccomplex_dotprod_3dnow64.S b/gnuradio-core/src/lib/filter/ccomplex_dotprod_3dnow64.S
index feaf1cb03..d92fe17a3 100644
--- a/gnuradio-core/src/lib/filter/ccomplex_dotprod_3dnow64.S
+++ b/gnuradio-core/src/lib/filter/ccomplex_dotprod_3dnow64.S
@@ -1,28 +1,28 @@
#
# Copyright 2002,2005 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,
# Boston, MA 02110-1301, USA.
-#
+#
# input and taps are guarenteed to be 16 byte aligned.
# n_2_ccomplex_blocks is != 0
-#
+#
#
# ccomplex_dotprod_generic (const float *input,
# const float *taps, unsigned n_2_ccomplex_blocks, float *result)
@@ -31,24 +31,24 @@
# float sum1 = 0;
# float sum2 = 0;
# float sum3 = 0;
-#
+#
# do {
-#
+#
# sum0 += input[0] * taps[0] - input[1] * taps[1];
# sum1 += input[0] * taps[1] + input[1] * taps[0];
# sum2 += input[2] * taps[2] - input[3] * taps[3];
# sum3 += input[2] * taps[3] + input[3] * taps[2];
-#
+#
# input += 4;
# taps += 4;
-#
+#
# } while (--n_2_ccomplex_blocks != 0);
-#
-#
+#
+#
# result[0] = sum0 + sum2;
# result[1] = sum1 + sum3;
# }
-#
+#
# TODO: prefetch and better scheduling
@@ -68,12 +68,12 @@ GLOB_SYMB(ccomplex_dotprod_3dnow):
mov %rdx, %rax
# zero accumulators
-
- pxor %mm6, %mm6 # mm6 = 0 0
+
+ pxor %mm6, %mm6 # mm6 = 0 0
movq 0(%rdi), %mm0
- pxor %mm7, %mm7 # mm7 = 0 0
+ pxor %mm7, %mm7 # mm7 = 0 0
movq 0(%rsi), %mm2
@@ -89,9 +89,9 @@ GLOB_SYMB(ccomplex_dotprod_3dnow):
# 4 taps / loop
# something like ?? cycles / loop
#
-
+
.p2align 4
-.Loop1:
+.Loop1:
# complex prod: C += A * B, w/ temp Z, mmPN=$80000000
#
@@ -170,10 +170,10 @@ GLOB_SYMB(ccomplex_dotprod_3dnow):
# We've handled the bulk of multiplies up to here.
# Let's see if original n_2_ccomplex_blocks was odd.
# If so, we've got 2 more taps to do.
-
+
and $1, %rdx
je .Leven
-
+
# The count was odd, do 2 more taps.
# Note that we've already got mm0/mm2 & mm1/mm3 preloaded
# from the main loop.
diff --git a/gnuradio-core/src/lib/filter/ccomplex_dotprod_3dnowext.S b/gnuradio-core/src/lib/filter/ccomplex_dotprod_3dnowext.S
index 1a09cc3e9..c4a02d7fb 100644
--- a/gnuradio-core/src/lib/filter/ccomplex_dotprod_3dnowext.S
+++ b/gnuradio-core/src/lib/filter/ccomplex_dotprod_3dnowext.S
@@ -1,28 +1,28 @@
#
# 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,
# Boston, MA 02110-1301, USA.
-#
+#
# input and taps are guarenteed to be 16 byte aligned.
# n_2_ccomplex_blocks is != 0
-#
+#
#
# ccomplex_dotprod_generic (const float *input,
# const float *taps, unsigned n_2_ccomplex_blocks, float *result)
@@ -31,24 +31,24 @@
# float sum1 = 0;
# float sum2 = 0;
# float sum3 = 0;
-#
+#
# do {
-#
+#
# sum0 += input[0] * taps[0] - input[1] * taps[1];
# sum1 += input[0] * taps[1] + input[1] * taps[0];
# sum2 += input[2] * taps[2] - input[3] * taps[3];
# sum3 += input[2] * taps[3] + input[3] * taps[2];
-#
+#
# input += 4;
# taps += 4;
-#
+#
# } while (--n_2_ccomplex_blocks != 0);
-#
-#
+#
+#
# result[0] = sum0 + sum2;
# result[1] = sum1 + sum3;
# }
-#
+#
# TODO: prefetch and better scheduling
@@ -68,8 +68,8 @@ GLOB_SYMB(ccomplex_dotprod_3dnowext):
movl 16(%ebp), %ecx # n_2_ccomplex_blocks
# zero accumulators
-
- pxor %mm6, %mm6 # mm6 = 0 0
+
+ pxor %mm6, %mm6 # mm6 = 0 0
pxor %mm7, %mm7 # mm7 = 0 0
movq 0(%eax), %mm0
@@ -79,7 +79,7 @@ GLOB_SYMB(ccomplex_dotprod_3dnowext):
movq 8(%eax), %mm1
movq 8(%edx), %mm3
-
+
jmp .L1_test
@@ -87,9 +87,9 @@ GLOB_SYMB(ccomplex_dotprod_3dnowext):
# 4 taps / loop
# something like ?? cycles / loop
#
-
+
.p2align 4
-.Loop1:
+.Loop1:
# complex prod: C += A * B, w/ temp Z
#
@@ -149,15 +149,15 @@ GLOB_SYMB(ccomplex_dotprod_3dnowext):
# We've handled the bulk of multiplies up to here.
# Let's see if original n_2_ccomplex_blocks was odd.
# If so, we've got 2 more taps to do.
-
+
movl 16(%ebp), %ecx # n_2_ccomplex_blocks
andl $1, %ecx
je .Leven
-
+
# The count was odd, do 2 more taps.
# Note that we've already got mm0/mm2 & mm1/mm3 preloaded
# from the main loop.
-
+
# A=mm0, B=mm2, Z=mm4
# A'=mm1, B'=mm3, Z'=mm5
@@ -175,7 +175,7 @@ GLOB_SYMB(ccomplex_dotprod_3dnowext):
.Leven:
# at this point mm6 and mm7 contain partial sums
-
+
pfadd %mm7, %mm6
movl 20(%ebp), %eax # result
diff --git a/gnuradio-core/src/lib/filter/ccomplex_dotprod_3dnowext64.S b/gnuradio-core/src/lib/filter/ccomplex_dotprod_3dnowext64.S
index 75f5af280..c4f9e1970 100644
--- a/gnuradio-core/src/lib/filter/ccomplex_dotprod_3dnowext64.S
+++ b/gnuradio-core/src/lib/filter/ccomplex_dotprod_3dnowext64.S
@@ -1,28 +1,28 @@
#
# Copyright 2002,2005 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,
# Boston, MA 02110-1301, USA.
-#
+#
# input and taps are guarenteed to be 16 byte aligned.
# n_2_ccomplex_blocks is != 0
-#
+#
#
# ccomplex_dotprod_generic (const float *input,
# const float *taps, unsigned n_2_ccomplex_blocks, float *result)
@@ -31,24 +31,24 @@
# float sum1 = 0;
# float sum2 = 0;
# float sum3 = 0;
-#
+#
# do {
-#
+#
# sum0 += input[0] * taps[0] - input[1] * taps[1];
# sum1 += input[0] * taps[1] + input[1] * taps[0];
# sum2 += input[2] * taps[2] - input[3] * taps[3];
# sum3 += input[2] * taps[3] + input[3] * taps[2];
-#
+#
# input += 4;
# taps += 4;
-#
+#
# } while (--n_2_ccomplex_blocks != 0);
-#
-#
+#
+#
# result[0] = sum0 + sum2;
# result[1] = sum1 + sum3;
# }
-#
+#
# TODO: prefetch and better scheduling
@@ -68,8 +68,8 @@ GLOB_SYMB(ccomplex_dotprod_3dnowext):
# zero accumulators
-
- pxor %mm6, %mm6 # mm6 = 0 0
+
+ pxor %mm6, %mm6 # mm6 = 0 0
pxor %mm7, %mm7 # mm7 = 0 0
movq 0(%rdi), %mm0
@@ -79,7 +79,7 @@ GLOB_SYMB(ccomplex_dotprod_3dnowext):
movq 8(%rdi), %mm1
movq 8(%rsi), %mm3
-
+
jmp .L1_test
@@ -87,9 +87,9 @@ GLOB_SYMB(ccomplex_dotprod_3dnowext):
# 4 taps / loop
# something like ?? cycles / loop
#
-
+
.p2align 4
-.Loop1:
+.Loop1:
# complex prod: C += A * B, w/ temp Z
#
@@ -149,14 +149,14 @@ GLOB_SYMB(ccomplex_dotprod_3dnowext):
# We've handled the bulk of multiplies up to here.
# Let's see if original n_2_ccomplex_blocks was odd.
# If so, we've got 2 more taps to do.
-
+
and $1, %rdx
je .Leven
-
+
# The count was odd, do 2 more taps.
# Note that we've already got mm0/mm2 & mm1/mm3 preloaded
# from the main loop.
-
+
# A=mm0, B=mm2, Z=mm4
# A'=mm1, B'=mm3, Z'=mm5
@@ -174,7 +174,7 @@ GLOB_SYMB(ccomplex_dotprod_3dnowext):
.Leven:
# at this point mm6 and mm7 contain partial sums
-
+
pfadd %mm7, %mm6
movq %mm6, (%rcx) # result
diff --git a/gnuradio-core/src/lib/filter/ccomplex_dotprod_generic.cc b/gnuradio-core/src/lib/filter/ccomplex_dotprod_generic.cc
index 0dc0c38b7..a6f392211 100644
--- a/gnuradio-core/src/lib/filter/ccomplex_dotprod_generic.cc
+++ b/gnuradio-core/src/lib/filter/ccomplex_dotprod_generic.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,
diff --git a/gnuradio-core/src/lib/filter/ccomplex_dotprod_generic.h b/gnuradio-core/src/lib/filter/ccomplex_dotprod_generic.h
index c03743776..c7d761c07 100644
--- a/gnuradio-core/src/lib/filter/ccomplex_dotprod_generic.h
+++ b/gnuradio-core/src/lib/filter/ccomplex_dotprod_generic.h
@@ -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,
diff --git a/gnuradio-core/src/lib/filter/ccomplex_dotprod_sse.S b/gnuradio-core/src/lib/filter/ccomplex_dotprod_sse.S
index a06ce4d36..b50a3690d 100644
--- a/gnuradio-core/src/lib/filter/ccomplex_dotprod_sse.S
+++ b/gnuradio-core/src/lib/filter/ccomplex_dotprod_sse.S
@@ -1,28 +1,28 @@
#
# 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,
# Boston, MA 02110-1301, USA.
-#
+#
# input and taps are guarenteed to be 16 byte aligned.
# n_2_ccomplex_blocks is != 0
-#
+#
#
# ccomplex_dotprod_generic (const float *input,
# const float *taps, unsigned n_2_ccomplex_blocks, float *result)
@@ -31,20 +31,20 @@
# float sum1 = 0;
# float sum2 = 0;
# float sum3 = 0;
-#
+#
# do {
#
# sum0 += input[0] * taps[0] - input[1] * taps[1];
# sum1 += input[0] * taps[1] + input[1] * taps[0];
# sum2 += input[2] * taps[2] - input[3] * taps[3];
# sum3 += input[2] * taps[3] + input[3] * taps[2];
-#
+#
# input += 4;
-# taps += 4;
-#
+# taps += 4;
+#
# } while (--n_2_ccomplex_blocks != 0);
-#
-#
+#
+#
# result[0] = sum0 + sum2;
# result[1] = sum1 + sum3;
# }
@@ -68,7 +68,7 @@ GLOB_SYMB(ccomplex_dotprod_sse):
movl 16(%ebp), %ecx # n_2_ccomplex_blocks
xorps %xmm6, %xmm6 # zero accumulators
-
+
movaps 0(%eax), %xmm0
xorps %xmm7, %xmm7 # zero accumulators
@@ -83,9 +83,9 @@ GLOB_SYMB(ccomplex_dotprod_sse):
# 4 taps / loop
# something like ?? cycles / loop
#
-
+
.p2align 4
-.Loop1:
+.Loop1:
# complex prod: C += A * B, w/ temp Z & Y (or B), xmmPN=$0x8000000080000000
#
@@ -146,11 +146,11 @@ GLOB_SYMB(ccomplex_dotprod_sse):
# We've handled the bulk of multiplies up to here.
# Let's sse if original n_2_ccomplex_blocks was odd.
# If so, we've got 2 more taps to do.
-
+
movl 16(%ebp), %ecx # n_2_ccomplex_blocks
andl $1, %ecx
je .Leven
-
+
# The count was odd, do 2 more taps.
# Note that we've already got mm0/mm2 preloaded
# from the main loop.
diff --git a/gnuradio-core/src/lib/filter/ccomplex_dotprod_sse64.S b/gnuradio-core/src/lib/filter/ccomplex_dotprod_sse64.S
index 6da4f2eb4..ef89ae638 100644
--- a/gnuradio-core/src/lib/filter/ccomplex_dotprod_sse64.S
+++ b/gnuradio-core/src/lib/filter/ccomplex_dotprod_sse64.S
@@ -1,28 +1,28 @@
#
# Copyright 2002,2005 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,
# Boston, MA 02110-1301, USA.
-#
+#
# input and taps are guarenteed to be 16 byte aligned.
# n_2_ccomplex_blocks is != 0
-#
+#
#
# ccomplex_dotprod_generic (const float *input,
# const float *taps, unsigned n_2_ccomplex_blocks, float *result)
@@ -31,20 +31,20 @@
# float sum1 = 0;
# float sum2 = 0;
# float sum3 = 0;
-#
+#
# do {
#
# sum0 += input[0] * taps[0] - input[1] * taps[1];
# sum1 += input[0] * taps[1] + input[1] * taps[0];
# sum2 += input[2] * taps[2] - input[3] * taps[3];
# sum3 += input[2] * taps[3] + input[3] * taps[2];
-#
+#
# input += 4;
-# taps += 4;
-#
+# taps += 4;
+#
# } while (--n_2_ccomplex_blocks != 0);
-#
-#
+#
+#
# result[0] = sum0 + sum2;
# result[1] = sum1 + sum3;
# }
@@ -68,7 +68,7 @@ GLOB_SYMB(ccomplex_dotprod_sse):
mov %rdx, %rax
xorps %xmm6, %xmm6 # zero accumulators
-
+
movaps 0(%rdi), %xmm0
xorps %xmm7, %xmm7 # zero accumulators
@@ -83,9 +83,9 @@ GLOB_SYMB(ccomplex_dotprod_sse):
# 4 taps / loop
# something like ?? cycles / loop
#
-
+
.p2align 4
-.Loop1:
+.Loop1:
# complex prod: C += A * B, w/ temp Z & Y (or B), xmmPN=$0x8000000080000000
#
@@ -146,10 +146,10 @@ GLOB_SYMB(ccomplex_dotprod_sse):
# We've handled the bulk of multiplies up to here.
# Let's sse if original n_2_ccomplex_blocks was odd.
# If so, we've got 2 more taps to do.
-
+
and $1, %rdx
je .Leven
-
+
# The count was odd, do 2 more taps.
# Note that we've already got mm0/mm2 preloaded
# from the main loop.
diff --git a/gnuradio-core/src/lib/filter/ccomplex_dotprod_x86.h b/gnuradio-core/src/lib/filter/ccomplex_dotprod_x86.h
index 5aed21800..ebb63c258 100644
--- a/gnuradio-core/src/lib/filter/ccomplex_dotprod_x86.h
+++ b/gnuradio-core/src/lib/filter/ccomplex_dotprod_x86.h
@@ -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,
diff --git a/gnuradio-core/src/lib/filter/complex_dotprod_3dnow.S b/gnuradio-core/src/lib/filter/complex_dotprod_3dnow.S
index 6e46bf7b8..df7761c40 100644
--- a/gnuradio-core/src/lib/filter/complex_dotprod_3dnow.S
+++ b/gnuradio-core/src/lib/filter/complex_dotprod_3dnow.S
@@ -1,28 +1,28 @@
#
# 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,
# Boston, MA 02110-1301, USA.
-#
+#
# input and taps are guarenteed to be 16 byte aligned.
# n_2_complex_blocks is != 0
-#
+#
#
# complex_dotprod_generic (const short *input,
# const float *taps, unsigned n_2_complex_blocks, float *result)
@@ -31,24 +31,24 @@
# float sum1 = 0;
# float sum2 = 0;
# float sum3 = 0;
-#
+#
# do {
-#
+#
# sum0 += input[0] * taps[0];
# sum1 += input[0] * taps[1];
# sum2 += input[1] * taps[2];
# sum3 += input[1] * taps[3];
-#
+#
# input += 2;
# taps += 4;
-#
+#
# } while (--n_2_complex_blocks != 0);
-#
-#
+#
+#
# result[0] = sum0 + sum2;
# result[1] = sum1 + sum3;
# }
-#
+#
#include "assembly.h"
@@ -66,10 +66,10 @@ GLOB_SYMB(complex_dotprod_3dnow):
movl 16(%ebp), %ecx
# zero accumulators
-
+
pxor %mm4, %mm4 # mm4 = 0 0
- pxor %mm5, %mm5 # mm5 = 0 0
- pxor %mm6, %mm6 # mm6 = 0 0
+ pxor %mm5, %mm5 # mm5 = 0 0
+ pxor %mm6, %mm6 # mm6 = 0 0
pxor %mm7, %mm7 # mm7 = 0 0
@@ -98,9 +98,9 @@ GLOB_SYMB(complex_dotprod_3dnow):
# 4 taps / loop
# something like ?? cycles / loop
#
-
+
.p2align 4
-.Loop1:
+.Loop1:
pfmul 0(%edx), %mm0
pfadd %mm2, %mm6
@@ -151,17 +151,17 @@ GLOB_SYMB(complex_dotprod_3dnow):
# Now accumulate the final two additions and see if original
# n_2_complex_blocks was odd. If so, we've got 2 more
# taps to do.
-
+
movl 16(%ebp), %ecx
pfadd %mm2, %mm6
andl $1, %ecx
pfadd %mm3, %mm7
je .Leven
-
+
# The count was odd, do 2 more taps.
# Note that we've already got mm0 and mm1 preloaded
# from the main loop.
-
+
pfmul 0(%edx), %mm0
pfadd %mm0, %mm4
pfmul 8(%edx), %mm1
@@ -169,7 +169,7 @@ GLOB_SYMB(complex_dotprod_3dnow):
.Leven:
# at this point mm4, mm5, mm6 and mm7 contain partial sums
-
+
pfadd %mm7, %mm6
pfadd %mm5, %mm4
diff --git a/gnuradio-core/src/lib/filter/complex_dotprod_3dnow64.S b/gnuradio-core/src/lib/filter/complex_dotprod_3dnow64.S
index fe9784550..ac5a7d1be 100644
--- a/gnuradio-core/src/lib/filter/complex_dotprod_3dnow64.S
+++ b/gnuradio-core/src/lib/filter/complex_dotprod_3dnow64.S
@@ -1,28 +1,28 @@
#
# Copyright 2002,2005 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,
# Boston, MA 02110-1301, USA.
-#
+#
# input and taps are guarenteed to be 16 byte aligned.
# n_2_complex_blocks is != 0
-#
+#
#
# complex_dotprod_generic (const short *input,
# const float *taps, unsigned n_2_complex_blocks, float *result)
@@ -31,24 +31,24 @@
# float sum1 = 0;
# float sum2 = 0;
# float sum3 = 0;
-#
+#
# do {
-#
+#
# sum0 += input[0] * taps[0];
# sum1 += input[0] * taps[1];
# sum2 += input[1] * taps[2];
# sum3 += input[1] * taps[3];
-#
+#
# input += 2;
# taps += 4;
-#
+#
# } while (--n_2_complex_blocks != 0);
-#
-#
+#
+#
# result[0] = sum0 + sum2;
# result[1] = sum1 + sum3;
# }
-#
+#
#include "assembly.h"
@@ -66,10 +66,10 @@ GLOB_SYMB(complex_dotprod_3dnow):
mov %rdx, %rax
# zero accumulators
-
+
pxor %mm4, %mm4 # mm4 = 0 0
- pxor %mm5, %mm5 # mm5 = 0 0
- pxor %mm6, %mm6 # mm6 = 0 0
+ pxor %mm5, %mm5 # mm5 = 0 0
+ pxor %mm6, %mm6 # mm6 = 0 0
pxor %mm7, %mm7 # mm7 = 0 0
@@ -98,9 +98,9 @@ GLOB_SYMB(complex_dotprod_3dnow):
# 4 taps / loop
# something like ?? cycles / loop
#
-
+
.p2align 4
-.Loop1:
+.Loop1:
pfmul 0(%rsi), %mm0
pfadd %mm2, %mm6
@@ -151,16 +151,16 @@ GLOB_SYMB(complex_dotprod_3dnow):
# Now accumulate the final two additions and see if original
# n_2_complex_blocks was odd. If so, we've got 2 more
# taps to do.
-
+
pfadd %mm2, %mm6
and $1, %rdx
pfadd %mm3, %mm7
je .Leven
-
+
# The count was odd, do 2 more taps.
# Note that we've already got mm0 and mm1 preloaded
# from the main loop.
-
+
pfmul 0(%rsi), %mm0
pfadd %mm0, %mm4
pfmul 8(%rsi), %mm1
@@ -168,7 +168,7 @@ GLOB_SYMB(complex_dotprod_3dnow):
.Leven:
# at this point mm4, mm5, mm6 and mm7 contain partial sums
-
+
pfadd %mm7, %mm6
pfadd %mm5, %mm4
pfadd %mm6, %mm4
diff --git a/gnuradio-core/src/lib/filter/complex_dotprod_3dnowext.S b/gnuradio-core/src/lib/filter/complex_dotprod_3dnowext.S
index 122fd2b59..1d4be32c3 100644
--- a/gnuradio-core/src/lib/filter/complex_dotprod_3dnowext.S
+++ b/gnuradio-core/src/lib/filter/complex_dotprod_3dnowext.S
@@ -1,28 +1,28 @@
#
# 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,
# Boston, MA 02110-1301, USA.
-#
+#
# input and taps are guarenteed to be 16 byte aligned.
# n_2_complex_blocks is != 0
-#
+#
#
# complex_dotprod_generic (const short *input,
# const float *taps, unsigned n_2_complex_blocks, float *result)
@@ -31,24 +31,24 @@
# float sum1 = 0;
# float sum2 = 0;
# float sum3 = 0;
-#
+#
# do {
-#
+#
# sum0 += input[0] * taps[0];
# sum1 += input[0] * taps[1];
# sum2 += input[1] * taps[2];
# sum3 += input[1] * taps[3];
-#
+#
# input += 2;
# taps += 4;
-#
+#
# } while (--n_2_complex_blocks != 0);
-#
-#
+#
+#
# result[0] = sum0 + sum2;
# result[1] = sum1 + sum3;
# }
-#
+#
#include "assembly.h"
@@ -66,10 +66,10 @@ GLOB_SYMB(complex_dotprod_3dnowext):
movl 16(%ebp), %ecx
# zero accumulators
-
+
pxor %mm4, %mm4 # mm4 = 0 0
- pxor %mm5, %mm5 # mm5 = 0 0
- pxor %mm6, %mm6 # mm6 = 0 0
+ pxor %mm5, %mm5 # mm5 = 0 0
+ pxor %mm6, %mm6 # mm6 = 0 0
pxor %mm7, %mm7 # mm7 = 0 0
@@ -91,9 +91,9 @@ GLOB_SYMB(complex_dotprod_3dnowext):
# 4 taps / loop
# something like ?? cycles / loop
#
-
+
.p2align 4
-.Loop1:
+.Loop1:
pfmul 0(%edx), %mm0
pfadd %mm2, %mm6
@@ -131,17 +131,17 @@ GLOB_SYMB(complex_dotprod_3dnowext):
# Now accumulate the final two additions and see if original
# n_2_complex_blocks was odd. If so, we've got 2 more
# taps to do.
-
+
movl 16(%ebp), %ecx
pfadd %mm2, %mm6
andl $1, %ecx
pfadd %mm3, %mm7
je .Leven
-
+
# The count was odd, do 2 more taps.
# Note that we've already got mm0 and mm1 preloaded
# from the main loop.
-
+
pfmul 0(%edx), %mm0
pfadd %mm0, %mm4
pfmul 8(%edx), %mm1
@@ -149,7 +149,7 @@ GLOB_SYMB(complex_dotprod_3dnowext):
.Leven:
# at this point mm4, mm5, mm6 and mm7 contain partial sums
-
+
pfadd %mm7, %mm6
pfadd %mm5, %mm4
diff --git a/gnuradio-core/src/lib/filter/complex_dotprod_3dnowext64.S b/gnuradio-core/src/lib/filter/complex_dotprod_3dnowext64.S
index 94905497b..018fefe28 100644
--- a/gnuradio-core/src/lib/filter/complex_dotprod_3dnowext64.S
+++ b/gnuradio-core/src/lib/filter/complex_dotprod_3dnowext64.S
@@ -1,28 +1,28 @@
#
# Copyright 2002,2005 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,
# Boston, MA 02110-1301, USA.
-#
+#
# input and taps are guarenteed to be 16 byte aligned.
# n_2_complex_blocks is != 0
-#
+#
#
# complex_dotprod_generic (const short *input,
# const float *taps, unsigned n_2_complex_blocks, float *result)
@@ -31,24 +31,24 @@
# float sum1 = 0;
# float sum2 = 0;
# float sum3 = 0;
-#
+#
# do {
-#
+#
# sum0 += input[0] * taps[0];
# sum1 += input[0] * taps[1];
# sum2 += input[1] * taps[2];
# sum3 += input[1] * taps[3];
-#
+#
# input += 2;
# taps += 4;
-#
+#
# } while (--n_2_complex_blocks != 0);
-#
-#
+#
+#
# result[0] = sum0 + sum2;
# result[1] = sum1 + sum3;
# }
-#
+#
#include "assembly.h"
@@ -66,10 +66,10 @@ GLOB_SYMB(complex_dotprod_3dnowext):
mov %rdx, %rax
# zero accumulators
-
+
pxor %mm4, %mm4 # mm4 = 0 0
- pxor %mm5, %mm5 # mm5 = 0 0
- pxor %mm6, %mm6 # mm6 = 0 0
+ pxor %mm5, %mm5 # mm5 = 0 0
+ pxor %mm6, %mm6 # mm6 = 0 0
pxor %mm7, %mm7 # mm7 = 0 0
@@ -91,9 +91,9 @@ GLOB_SYMB(complex_dotprod_3dnowext):
# 4 taps / loop
# something like ?? cycles / loop
#
-
+
.p2align 4
-.Loop1:
+.Loop1:
pfmul 0(%rsi), %mm0
pfadd %mm2, %mm6
@@ -131,16 +131,16 @@ GLOB_SYMB(complex_dotprod_3dnowext):
# Now accumulate the final two additions and see if original
# n_2_complex_blocks was odd. If so, we've got 2 more
# taps to do.
-
+
pfadd %mm2, %mm6
and $1, %rdx
pfadd %mm3, %mm7
je .Leven
-
+
# The count was odd, do 2 more taps.
# Note that we've already got mm0 and mm1 preloaded
# from the main loop.
-
+
pfmul 0(%rsi), %mm0
pfadd %mm0, %mm4
pfmul 8(%rsi), %mm1
@@ -148,7 +148,7 @@ GLOB_SYMB(complex_dotprod_3dnowext):
.Leven:
# at this point mm4, mm5, mm6 and mm7 contain partial sums
-
+
pfadd %mm7, %mm6
pfadd %mm5, %mm4
diff --git a/gnuradio-core/src/lib/filter/complex_dotprod_generic.cc b/gnuradio-core/src/lib/filter/complex_dotprod_generic.cc
index 8cbc4aa70..229cbe978 100644
--- a/gnuradio-core/src/lib/filter/complex_dotprod_generic.cc
+++ b/gnuradio-core/src/lib/filter/complex_dotprod_generic.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,
diff --git a/gnuradio-core/src/lib/filter/complex_dotprod_generic.h b/gnuradio-core/src/lib/filter/complex_dotprod_generic.h
index aed82179e..152f6e459 100644
--- a/gnuradio-core/src/lib/filter/complex_dotprod_generic.h
+++ b/gnuradio-core/src/lib/filter/complex_dotprod_generic.h
@@ -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,
diff --git a/gnuradio-core/src/lib/filter/complex_dotprod_sse.S b/gnuradio-core/src/lib/filter/complex_dotprod_sse.S
index ff5ef5d0c..fff1057dd 100644
--- a/gnuradio-core/src/lib/filter/complex_dotprod_sse.S
+++ b/gnuradio-core/src/lib/filter/complex_dotprod_sse.S
@@ -1,28 +1,28 @@
#
# 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,
# Boston, MA 02110-1301, USA.
-#
+#
# input and taps are guarenteed to be 16 byte aligned.
# n_2_complex_blocks is != 0
-#
+#
#
# complex_dotprod_generic (const short *input,
# const float *taps, unsigned n_2_complex_blocks, float *result)
@@ -31,20 +31,20 @@
# float sum1 = 0;
# float sum2 = 0;
# float sum3 = 0;
-#
+#
# do {
-#
+#
# sum0 += input[0] * taps[0];
# sum1 += input[0] * taps[1];
# sum2 += input[1] * taps[2];
# sum3 += input[1] * taps[3];
-#
+#
# input += 2;
# taps += 4;
-#
+#
# } while (--n_2_complex_blocks != 0);
-#
-#
+#
+#
# result[0] = sum0 + sum2;
# result[1] = sum1 + sum3;
# }
@@ -68,7 +68,7 @@ GLOB_SYMB(complex_dotprod_sse):
movl 12(%ebp), %edx # taps
movl 16(%ebp), %ecx
-
+
# xmm0 xmm1 xmm2 xmm3 are used to hold taps and the result of mults
# xmm4 xmm5 xmm6 xmm7 are used to hold the accumulated results
@@ -81,7 +81,7 @@ GLOB_SYMB(complex_dotprod_sse):
jmp .L1_test
.p2align 4
-.Loop1:
+.Loop1:
pxor %mm0, %mm0
punpcklwd 0(%eax), %mm0
@@ -93,16 +93,16 @@ GLOB_SYMB(complex_dotprod_sse):
addl $0x10, %edx
addl $4, %eax
addps %xmm0, %xmm4
-.L1_test:
+.L1_test:
decl %ecx
jge .Loop1
-
+
# set up for primary loop which is unrolled 4 times
-
+
movl 16(%ebp), %ecx
movaps %xmm5, %xmm6 # zero remaining accumulators
- movaps %xmm5, %xmm7
+ movaps %xmm5, %xmm7
shrl $2, %ecx # n_2_complex_blocks / 4
je .Lcleanup # if zero, take short path
@@ -184,10 +184,10 @@ GLOB_SYMB(complex_dotprod_sse):
addps %xmm6, %xmm7
addps %xmm7, %xmm4
-
+
# At this point, xmm4 contains 2x2 partial sums. We need
- # to compute a "horizontal complex add" across xmm4.
-
+ # to compute a "horizontal complex add" across xmm4.
+
.Lcleanup: # xmm4 = r1 i2 r3 i4
movl 20(%ebp), %eax # @result
movhlps %xmm4, %xmm0 # xmm0 = ?? ?? r1 r2
diff --git a/gnuradio-core/src/lib/filter/complex_dotprod_sse64.S b/gnuradio-core/src/lib/filter/complex_dotprod_sse64.S
index 2e9456547..77f0c3178 100644
--- a/gnuradio-core/src/lib/filter/complex_dotprod_sse64.S
+++ b/gnuradio-core/src/lib/filter/complex_dotprod_sse64.S
@@ -1,28 +1,28 @@
#
# Copyright 2002,2005 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,
# Boston, MA 02110-1301, USA.
-#
+#
# input and taps are guarenteed to be 16 byte aligned.
# n_2_complex_blocks is != 0
-#
+#
#
# complex_dotprod_generic (const short *input,
# const float *taps, unsigned n_2_complex_blocks, float *result)
@@ -31,20 +31,20 @@
# float sum1 = 0;
# float sum2 = 0;
# float sum3 = 0;
-#
+#
# do {
-#
+#
# sum0 += input[0] * taps[0];
# sum1 += input[0] * taps[1];
# sum2 += input[1] * taps[2];
# sum3 += input[1] * taps[3];
-#
+#
# input += 2;
# taps += 4;
-#
+#
# } while (--n_2_complex_blocks != 0);
-#
-#
+#
+#
# result[0] = sum0 + sum2;
# result[1] = sum1 + sum3;
# }
@@ -67,7 +67,7 @@ GLOB_SYMB(complex_dotprod_sse):
mov %rdx, %rax
-
+
# xmm0 xmm1 xmm2 xmm3 are used to hold taps and the result of mults
# xmm4 xmm5 xmm6 xmm7 are used to hold the accumulated results
@@ -80,7 +80,7 @@ GLOB_SYMB(complex_dotprod_sse):
jmp .L1_test
.p2align 4
-.Loop1:
+.Loop1:
pxor %mm0, %mm0
punpcklwd 0(%rdi), %mm0
@@ -92,16 +92,16 @@ GLOB_SYMB(complex_dotprod_sse):
add $0x10, %rsi
add $4, %rdi
addps %xmm0, %xmm4
-.L1_test:
+.L1_test:
dec %rax
jge .Loop1
-
+
# set up for primary loop which is unrolled 4 times
-
+
movaps %xmm5, %xmm6 # zero remaining accumulators
shr $2, %rdx # n_2_complex_blocks / 4
- movaps %xmm5, %xmm7
+ movaps %xmm5, %xmm7
je .Lcleanup # if zero, take short path
@@ -182,10 +182,10 @@ GLOB_SYMB(complex_dotprod_sse):
addps %xmm6, %xmm7
addps %xmm7, %xmm4
-
+
# At this point, xmm4 contains 2x2 partial sums. We need
- # to compute a "horizontal complex add" across xmm4.
-
+ # to compute a "horizontal complex add" across xmm4.
+
.Lcleanup: # xmm4 = r1 i2 r3 i4
movhlps %xmm4, %xmm0 # xmm0 = ?? ?? r1 r2
addps %xmm4, %xmm0 # xmm0 = ?? ?? r1+r3 i2+i4
diff --git a/gnuradio-core/src/lib/filter/complex_dotprod_x86.h b/gnuradio-core/src/lib/filter/complex_dotprod_x86.h
index e2489edcf..aad9fb5e9 100644
--- a/gnuradio-core/src/lib/filter/complex_dotprod_x86.h
+++ b/gnuradio-core/src/lib/filter/complex_dotprod_x86.h
@@ -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,
diff --git a/gnuradio-core/src/lib/filter/dotprod_ccf_armv7_a.c b/gnuradio-core/src/lib/filter/dotprod_ccf_armv7_a.c
index 90bd2ee10..e7c6b266e 100644
--- a/gnuradio-core/src/lib/filter/dotprod_ccf_armv7_a.c
+++ b/gnuradio-core/src/lib/filter/dotprod_ccf_armv7_a.c
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2009,2011 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
diff --git a/gnuradio-core/src/lib/filter/dotprod_ccf_armv7_a.h b/gnuradio-core/src/lib/filter/dotprod_ccf_armv7_a.h
index 7ee728ac4..e42d6d10b 100644
--- a/gnuradio-core/src/lib/filter/dotprod_ccf_armv7_a.h
+++ b/gnuradio-core/src/lib/filter/dotprod_ccf_armv7_a.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2009,2011 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
diff --git a/gnuradio-core/src/lib/filter/dotprod_fff_altivec.c b/gnuradio-core/src/lib/filter/dotprod_fff_altivec.c
index bebf7e401..53d6df714 100644
--- a/gnuradio-core/src/lib/filter/dotprod_fff_altivec.c
+++ b/gnuradio-core/src/lib/filter/dotprod_fff_altivec.c
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -129,7 +129,7 @@ dotprod_fff_altivec(const float *_a, const float *_b, size_t n)
switch (nleft){
case 0:
break;
-
+
case 4:
acc0 = vec_madd(a0, b0, acc0);
break;
@@ -151,7 +151,7 @@ dotprod_fff_altivec(const float *_a, const float *_b, size_t n)
acc2 = vec_madd(a2, b2, acc2);
break;
}
-
+
acc0 = acc0 + acc1;
acc2 = acc2 + acc3;
acc0 = acc0 + acc2;
diff --git a/gnuradio-core/src/lib/filter/dotprod_fff_altivec.h b/gnuradio-core/src/lib/filter/dotprod_fff_altivec.h
index af9210382..a52370d56 100644
--- a/gnuradio-core/src/lib/filter/dotprod_fff_altivec.h
+++ b/gnuradio-core/src/lib/filter/dotprod_fff_altivec.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -39,7 +39,7 @@ extern "C" {
*
* </pre>
*/
-float
+float
dotprod_fff_altivec(const float *a, const float *b, size_t n);
#ifdef __cplusplus
diff --git a/gnuradio-core/src/lib/filter/dotprod_fff_armv7_a.c b/gnuradio-core/src/lib/filter/dotprod_fff_armv7_a.c
index c3275c331..68c448b35 100644
--- a/gnuradio-core/src/lib/filter/dotprod_fff_armv7_a.c
+++ b/gnuradio-core/src/lib/filter/dotprod_fff_armv7_a.c
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2009 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
diff --git a/gnuradio-core/src/lib/filter/dotprod_fff_armv7_a.h b/gnuradio-core/src/lib/filter/dotprod_fff_armv7_a.h
index 667ee5fb6..6cea45cea 100644
--- a/gnuradio-core/src/lib/filter/dotprod_fff_armv7_a.h
+++ b/gnuradio-core/src/lib/filter/dotprod_fff_armv7_a.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2009 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -39,7 +39,7 @@ extern "C" {
*
* </pre>
*/
-float
+float
dotprod_fff_armv7_a(const float *a, const float *b, size_t n);
#ifdef __cplusplus
diff --git a/gnuradio-core/src/lib/filter/fcomplex_dotprod_3dnow.S b/gnuradio-core/src/lib/filter/fcomplex_dotprod_3dnow.S
index 8c49909c5..a4e69461e 100644
--- a/gnuradio-core/src/lib/filter/fcomplex_dotprod_3dnow.S
+++ b/gnuradio-core/src/lib/filter/fcomplex_dotprod_3dnow.S
@@ -1,27 +1,27 @@
#
# 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,
# Boston, MA 02110-1301, USA.
-#
+#
# input and taps are guarenteed to be 16 byte aligned.
# n_2_complex_blocks is != 0
-#
+#
#
# fcomplex_dotprod_generic (const float *input,
# const float *taps, unsigned n_2_complex_blocks, float *result)
@@ -30,24 +30,24 @@
# float sum1 = 0;
# float sum2 = 0;
# float sum3 = 0;
-#
+#
# do {
-#
+#
# sum0 += input[0] * taps[0];
# sum1 += input[0] * taps[1];
# sum2 += input[1] * taps[2];
# sum3 += input[1] * taps[3];
-#
+#
# input += 2;
# taps += 4;
-#
+#
# } while (--n_2_complex_blocks != 0);
-#
-#
+#
+#
# result[0] = sum0 + sum2;
# result[1] = sum1 + sum3;
# }
-#
+#
#include "assembly.h"
@@ -66,10 +66,10 @@ GLOB_SYMB(fcomplex_dotprod_3dnow):
movl 16(%ebp), %ecx
# zero accumulators
-
+
pxor %mm4, %mm4 # mm4 = 0 0
- pxor %mm5, %mm5 # mm5 = 0 0
- pxor %mm6, %mm6 # mm6 = 0 0
+ pxor %mm5, %mm5 # mm5 = 0 0
+ pxor %mm6, %mm6 # mm6 = 0 0
pxor %mm7, %mm7 # mm7 = 0 0
shrl $1, %ecx # ecx = n_2_complex_blocks / 2
@@ -90,9 +90,9 @@ GLOB_SYMB(fcomplex_dotprod_3dnow):
# 4 taps / loop
# something like ?? cycles / loop
#
-
+
.p2align 4
-.Loop1:
+.Loop1:
pfmul 0(%edx), %mm0
pfadd %mm2, %mm6
@@ -135,17 +135,17 @@ GLOB_SYMB(fcomplex_dotprod_3dnow):
# Now accumulate the final two additions and see if original
# n_2_complex_blocks was odd. If so, we've got 2 more
# taps to do.
-
+
movl 16(%ebp), %ecx
pfadd %mm2, %mm6
andl $1, %ecx
pfadd %mm3, %mm7
je .Leven
-
+
# The count was odd, do 2 more taps.
# Note that we've already got mm0 and mm1 preloaded
# from the main loop.
-
+
pfmul 0(%edx), %mm0
pfadd %mm0, %mm4
pfmul 8(%edx), %mm1
@@ -154,7 +154,7 @@ GLOB_SYMB(fcomplex_dotprod_3dnow):
.Leven:
# at this point mm4, mm5, mm6 and mm7 contain partial sums
-
+
pfadd %mm7, %mm6
pfadd %mm5, %mm4
diff --git a/gnuradio-core/src/lib/filter/fcomplex_dotprod_3dnow64.S b/gnuradio-core/src/lib/filter/fcomplex_dotprod_3dnow64.S
index 2924d91a1..9bbf56301 100644
--- a/gnuradio-core/src/lib/filter/fcomplex_dotprod_3dnow64.S
+++ b/gnuradio-core/src/lib/filter/fcomplex_dotprod_3dnow64.S
@@ -1,27 +1,27 @@
#
# Copyright 2002,2005 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,
# Boston, MA 02110-1301, USA.
-#
+#
# input and taps are guarenteed to be 16 byte aligned.
# n_2_complex_blocks is != 0
-#
+#
#
# fcomplex_dotprod_generic (const float *input,
# const float *taps, unsigned n_2_complex_blocks, float *result)
@@ -30,24 +30,24 @@
# float sum1 = 0;
# float sum2 = 0;
# float sum3 = 0;
-#
+#
# do {
-#
+#
# sum0 += input[0] * taps[0];
# sum1 += input[0] * taps[1];
# sum2 += input[1] * taps[2];
# sum3 += input[1] * taps[3];
-#
+#
# input += 2;
# taps += 4;
-#
+#
# } while (--n_2_complex_blocks != 0);
-#
-#
+#
+#
# result[0] = sum0 + sum2;
# result[1] = sum1 + sum3;
# }
-#
+#
#include "assembly.h"
@@ -65,10 +65,10 @@ GLOB_SYMB(fcomplex_dotprod_3dnow):
mov %rdx, %rax
# zero accumulators
-
+
pxor %mm4, %mm4 # mm4 = 0 0
- pxor %mm5, %mm5 # mm5 = 0 0
- pxor %mm6, %mm6 # mm6 = 0 0
+ pxor %mm5, %mm5 # mm5 = 0 0
+ pxor %mm6, %mm6 # mm6 = 0 0
pxor %mm7, %mm7 # mm7 = 0 0
shr $1, %rax # rax = n_2_complex_blocks / 2
@@ -89,9 +89,9 @@ GLOB_SYMB(fcomplex_dotprod_3dnow):
# 4 taps / loop
# something like ?? cycles / loop
#
-
+
.p2align 4
-.Loop1:
+.Loop1:
pfmul 0(%rsi), %mm0
pfadd %mm2, %mm6
@@ -134,16 +134,16 @@ GLOB_SYMB(fcomplex_dotprod_3dnow):
# Now accumulate the final two additions and see if original
# n_2_complex_blocks was odd. If so, we've got 2 more
# taps to do.
-
+
pfadd %mm2, %mm6
and $1, %rdx
pfadd %mm3, %mm7
je .Leven
-
+
# The count was odd, do 2 more taps.
# Note that we've already got mm0 and mm1 preloaded
# from the main loop.
-
+
pfmul 0(%rsi), %mm0
pfadd %mm0, %mm4
pfmul 8(%rsi), %mm1
@@ -152,7 +152,7 @@ GLOB_SYMB(fcomplex_dotprod_3dnow):
.Leven:
# at this point mm4, mm5, mm6 and mm7 contain partial sums
-
+
pfadd %mm7, %mm6
pfadd %mm5, %mm4
pfadd %mm6, %mm4
diff --git a/gnuradio-core/src/lib/filter/fcomplex_dotprod_sse.S b/gnuradio-core/src/lib/filter/fcomplex_dotprod_sse.S
index e390c275c..e516f0a61 100644
--- a/gnuradio-core/src/lib/filter/fcomplex_dotprod_sse.S
+++ b/gnuradio-core/src/lib/filter/fcomplex_dotprod_sse.S
@@ -1,28 +1,28 @@
#
# 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,
# Boston, MA 02110-1301, USA.
-#
+#
# input and taps are guarenteed to be 16 byte aligned.
# n_2_complex_blocks is != 0
-#
+#
#
# fcomplex_dotprod_generic (const float *input,
# const float *taps, unsigned n_2_complex_blocks, float *result)
@@ -31,20 +31,20 @@
# float sum1 = 0;
# float sum2 = 0;
# float sum3 = 0;
-#
+#
# do {
-#
+#
# sum0 += input[0] * taps[0];
# sum1 += input[0] * taps[1];
# sum2 += input[1] * taps[2];
# sum3 += input[1] * taps[3];
-#
+#
# input += 2;
# taps += 4;
-#
+#
# } while (--n_2_complex_blocks != 0);
-#
-#
+#
+#
# result[0] = sum0 + sum2;
# result[1] = sum1 + sum3;
# }
@@ -68,7 +68,7 @@ GLOB_SYMB(fcomplex_dotprod_sse):
movl 12(%ebp), %edx # taps
movl 16(%ebp), %ecx
-
+
# xmm0 xmm1 xmm2 xmm3 are used to hold taps and the result of mults
# xmm4 xmm5 xmm6 xmm7 are used to hold the accumulated results
@@ -81,7 +81,7 @@ GLOB_SYMB(fcomplex_dotprod_sse):
jmp .L1_test
.p2align 4
-.Loop1:
+.Loop1:
movlps 0(%eax), %xmm0
shufps $0x50, %xmm0, %xmm0 # b01010000
@@ -90,16 +90,16 @@ GLOB_SYMB(fcomplex_dotprod_sse):
addl $0x10, %edx
addl $8, %eax
addps %xmm0, %xmm4
-.L1_test:
+.L1_test:
decl %ecx
jge .Loop1
-
+
# set up for primary loop which is unrolled 4 times
-
+
movl 16(%ebp), %ecx
movaps %xmm5, %xmm6 # zero remaining accumulators
- movaps %xmm5, %xmm7
+ movaps %xmm5, %xmm7
shrl $2, %ecx # n_2_complex_blocks / 4
je .Lcleanup # if zero, take short path
@@ -141,7 +141,7 @@ GLOB_SYMB(fcomplex_dotprod_sse):
addps %xmm1, %xmm5
mulps 0x20(%edx), %xmm2
-
+
movlps 0x28(%eax), %xmm1
shufps $0x50, %xmm0, %xmm0
@@ -167,10 +167,10 @@ GLOB_SYMB(fcomplex_dotprod_sse):
addps %xmm6, %xmm7
addps %xmm7, %xmm4
-
+
# At this point, xmm4 contains 2x2 partial sums. We need
- # to compute a "horizontal complex add" across xmm4.
-
+ # to compute a "horizontal complex add" across xmm4.
+
.Lcleanup: # xmm4 = r1 i2 r3 i4
movl 20(%ebp), %eax # @result
movhlps %xmm4, %xmm0 # xmm0 = ?? ?? r1 r2
diff --git a/gnuradio-core/src/lib/filter/fcomplex_dotprod_sse64.S b/gnuradio-core/src/lib/filter/fcomplex_dotprod_sse64.S
index 9d985a19e..605d87130 100644
--- a/gnuradio-core/src/lib/filter/fcomplex_dotprod_sse64.S
+++ b/gnuradio-core/src/lib/filter/fcomplex_dotprod_sse64.S
@@ -1,28 +1,28 @@
#
# Copyright 2002,2005 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,
# Boston, MA 02110-1301, USA.
-#
+#
# input and taps are guarenteed to be 16 byte aligned.
# n_2_complex_blocks is != 0
-#
+#
#
# fcomplex_dotprod_generic (const float *input,
# const float *taps, unsigned n_2_complex_blocks, float *result)
@@ -31,20 +31,20 @@
# float sum1 = 0;
# float sum2 = 0;
# float sum3 = 0;
-#
+#
# do {
-#
+#
# sum0 += input[0] * taps[0];
# sum1 += input[0] * taps[1];
# sum2 += input[1] * taps[2];
# sum3 += input[1] * taps[3];
-#
+#
# input += 2;
# taps += 4;
-#
+#
# } while (--n_2_complex_blocks != 0);
-#
-#
+#
+#
# result[0] = sum0 + sum2;
# result[1] = sum1 + sum3;
# }
@@ -66,7 +66,7 @@ GLOB_SYMB(fcomplex_dotprod_sse):
# intput: rdi, taps: rsi, n_2_ccomplex_blocks: rdx, result: rcx
mov %rdx, %rax
-
+
# xmm0 xmm1 xmm2 xmm3 are used to hold taps and the result of mults
# xmm4 xmm5 xmm6 xmm7 are used to hold the accumulated results
@@ -79,7 +79,7 @@ GLOB_SYMB(fcomplex_dotprod_sse):
jmp .L1_test
.p2align 4
-.Loop1:
+.Loop1:
movlps 0(%rdi), %xmm0
shufps $0x50, %xmm0, %xmm0 # b01010000
@@ -88,15 +88,15 @@ GLOB_SYMB(fcomplex_dotprod_sse):
add $0x10, %rsi
add $8, %rdi
addps %xmm0, %xmm4
-.L1_test:
+.L1_test:
dec %rax
jge .Loop1
-
+
# set up for primary loop which is unrolled 4 times
-
+
movaps %xmm5, %xmm6 # zero remaining accumulators
- movaps %xmm5, %xmm7
+ movaps %xmm5, %xmm7
shr $2, %rdx # n_2_complex_blocks / 4
je .Lcleanup # if zero, take short path
@@ -138,7 +138,7 @@ GLOB_SYMB(fcomplex_dotprod_sse):
addps %xmm1, %xmm5
mulps 0x20(%rsi), %xmm2
-
+
movlps 0x28(%rdi), %xmm1
shufps $0x50, %xmm0, %xmm0
@@ -164,10 +164,10 @@ GLOB_SYMB(fcomplex_dotprod_sse):
addps %xmm6, %xmm7
addps %xmm7, %xmm4
-
+
# At this point, xmm4 contains 2x2 partial sums. We need
- # to compute a "horizontal complex add" across xmm4.
-
+ # to compute a "horizontal complex add" across xmm4.
+
.Lcleanup: # xmm4 = r1 i2 r3 i4
movhlps %xmm4, %xmm0 # xmm0 = ?? ?? r1 r2
addps %xmm4, %xmm0 # xmm0 = ?? ?? r1+r3 i2+i4
diff --git a/gnuradio-core/src/lib/filter/fcomplex_dotprod_x86.h b/gnuradio-core/src/lib/filter/fcomplex_dotprod_x86.h
index 39e986f81..b7eddf936 100644
--- a/gnuradio-core/src/lib/filter/fcomplex_dotprod_x86.h
+++ b/gnuradio-core/src/lib/filter/fcomplex_dotprod_x86.h
@@ -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,
diff --git a/gnuradio-core/src/lib/filter/filter.i b/gnuradio-core/src/lib/filter/filter.i
index 2b7d9d0b7..12580aa10 100644
--- a/gnuradio-core/src/lib/filter/filter.i
+++ b/gnuradio-core/src/lib/filter/filter.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2005,2006,2007,2009 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,
diff --git a/gnuradio-core/src/lib/filter/float_dotprod_3dnow.S b/gnuradio-core/src/lib/filter/float_dotprod_3dnow.S
index 9e2479cb6..914b652af 100644
--- a/gnuradio-core/src/lib/filter/float_dotprod_3dnow.S
+++ b/gnuradio-core/src/lib/filter/float_dotprod_3dnow.S
@@ -1,30 +1,30 @@
#
# 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,
# Boston, MA 02110-1301, USA.
-#
+#
# input and taps are guarenteed to be 16 byte aligned.
# n_4_float_blocks is != 0
-#
#
-# float
+#
+# float
# float_dotprod_generic (const float *input,
# const float *taps, unsigned n_4_float_blocks)
# {
@@ -32,23 +32,23 @@
# float sum1 = 0;
# float sum2 = 0;
# float sum3 = 0;
-#
+#
# do {
-#
+#
# sum0 += input[0] * taps[0];
# sum1 += input[1] * taps[1];
# sum2 += input[2] * taps[2];
# sum3 += input[3] * taps[3];
-#
+#
# input += 4;
# taps += 4;
-#
+#
# } while (--n_4_float_blocks != 0);
-#
-#
+#
+#
# return sum0 + sum1 + sum2 + sum3;
# }
-#
+#
#include "assembly.h"
@@ -67,10 +67,10 @@ GLOB_SYMB(float_dotprod_3dnow):
movl 16(%ebp), %ecx
# zero accumulators
-
+
pxor %mm4, %mm4 # mm4 = 0 0
- pxor %mm5, %mm5 # mm5 = 0 0
- pxor %mm6, %mm6 # mm6 = 0 0
+ pxor %mm5, %mm5 # mm5 = 0 0
+ pxor %mm6, %mm6 # mm6 = 0 0
pxor %mm7, %mm7 # mm7 = 0 0
shrl $1, %ecx # ecx = n_4_float_blocks / 2
@@ -84,13 +84,13 @@ GLOB_SYMB(float_dotprod_3dnow):
# 8 taps / loop
# something like 6 cycles / loop
#
-
+
.p2align 4
-.Loop1:
+.Loop1:
pfmul 0(%edx), %mm0
pfadd %mm2, %mm6
movq 16(%eax), %mm2
-
+
pfmul 8(%edx), %mm1
pfadd %mm3, %mm7
movq 24(%eax), %mm3
@@ -113,30 +113,30 @@ GLOB_SYMB(float_dotprod_3dnow):
# Now accumulate the final two additions and see if original
# n_4_float_blocks was odd. If so, we've got 4 more
# taps to do.
-
+
movl 16(%ebp), %ecx
pfadd %mm2, %mm6
andl $1, %ecx
pfadd %mm3, %mm7
je .Leven
-
+
# The count was odd, do 4 more taps.
# Note that we've already got mm0 and mm1 preloaded
# from the main loop.
-
+
pfmul 0(%edx), %mm0
pfadd %mm0, %mm4
pfmul 8(%edx), %mm1
pfadd %mm1, %mm5
-.Leven:
+.Leven:
# at this point mm4, mm5, mm6 and mm7 contain partial sums
-
+
pfadd %mm7, %mm6
pfadd %mm5, %mm4
pfadd %mm6, %mm4
pfacc %mm4, %mm4
-
+
movd %mm4, 16(%ebp)
femms
flds 16(%ebp)
diff --git a/gnuradio-core/src/lib/filter/float_dotprod_3dnow64.S b/gnuradio-core/src/lib/filter/float_dotprod_3dnow64.S
index 8558f564f..6670553a3 100644
--- a/gnuradio-core/src/lib/filter/float_dotprod_3dnow64.S
+++ b/gnuradio-core/src/lib/filter/float_dotprod_3dnow64.S
@@ -1,30 +1,30 @@
#
# Copyright 2002,2005 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,
# Boston, MA 02110-1301, USA.
-#
+#
# input and taps are guarenteed to be 16 byte aligned.
# n_4_float_blocks is != 0
-#
#
-# float
+#
+# float
# float_dotprod_generic (const float *input,
# const float *taps, unsigned n_4_float_blocks)
# {
@@ -32,23 +32,23 @@
# float sum1 = 0;
# float sum2 = 0;
# float sum3 = 0;
-#
+#
# do {
-#
+#
# sum0 += input[0] * taps[0];
# sum1 += input[1] * taps[1];
# sum2 += input[2] * taps[2];
# sum3 += input[3] * taps[3];
-#
+#
# input += 4;
# taps += 4;
-#
+#
# } while (--n_4_float_blocks != 0);
-#
-#
+#
+#
# return sum0 + sum1 + sum2 + sum3;
# }
-#
+#
#include "assembly.h"
@@ -66,10 +66,10 @@ GLOB_SYMB(float_dotprod_3dnow):
mov %rdx, %rax
# zero accumulators
-
+
pxor %mm4, %mm4 # mm4 = 0 0
- pxor %mm5, %mm5 # mm5 = 0 0
- pxor %mm6, %mm6 # mm6 = 0 0
+ pxor %mm5, %mm5 # mm5 = 0 0
+ pxor %mm6, %mm6 # mm6 = 0 0
pxor %mm7, %mm7 # mm7 = 0 0
shr $1, %rax # rax = n_4_float_blocks / 2
@@ -83,13 +83,13 @@ GLOB_SYMB(float_dotprod_3dnow):
# 8 taps / loop
# something like 6 cycles / loop
#
-
+
.p2align 4
-.Loop1:
+.Loop1:
pfmul 0(%rdi), %mm0
pfadd %mm2, %mm6
movq 16(%rsi), %mm2
-
+
pfmul 8(%rdi), %mm1
pfadd %mm3, %mm7
movq 24(%rsi), %mm3
@@ -112,29 +112,29 @@ GLOB_SYMB(float_dotprod_3dnow):
# Now accumulate the final two additions and see if original
# n_4_float_blocks was odd. If so, we've got 4 more
# taps to do.
-
+
pfadd %mm2, %mm6
and $1, %rdx
pfadd %mm3, %mm7
je .Leven
-
+
# The count was odd, do 4 more taps.
# Note that we've already got mm0 and mm1 preloaded
# from the main loop.
-
+
pfmul 0(%rdi), %mm0
pfadd %mm0, %mm4
pfmul 8(%rdi), %mm1
pfadd %mm1, %mm5
-.Leven:
+.Leven:
# at this point mm4, mm5, mm6 and mm7 contain partial sums
-
+
pfadd %mm7, %mm6
pfadd %mm5, %mm4
pfadd %mm6, %mm4
pfacc %mm4, %mm4
-
+
movd %mm4, -8(%rsp)
movss -8(%rsp), %xmm0
femms
diff --git a/gnuradio-core/src/lib/filter/float_dotprod_generic.c b/gnuradio-core/src/lib/filter/float_dotprod_generic.c
index 7379185fa..fb9139036 100644
--- a/gnuradio-core/src/lib/filter/float_dotprod_generic.c
+++ b/gnuradio-core/src/lib/filter/float_dotprod_generic.c
@@ -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,
@@ -23,7 +23,7 @@
#include "float_dotprod_generic.h"
-float
+float
float_dotprod_generic (const float *input,
const float *taps, unsigned n_4_float_blocks)
{
diff --git a/gnuradio-core/src/lib/filter/float_dotprod_generic.h b/gnuradio-core/src/lib/filter/float_dotprod_generic.h
index 1c93055ab..dee967642 100644
--- a/gnuradio-core/src/lib/filter/float_dotprod_generic.h
+++ b/gnuradio-core/src/lib/filter/float_dotprod_generic.h
@@ -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,
@@ -27,7 +27,7 @@
extern "C" {
#endif
-float
+float
float_dotprod_generic (const float *input,
const float *taps, unsigned n_4_float_blocks);
diff --git a/gnuradio-core/src/lib/filter/float_dotprod_sse.S b/gnuradio-core/src/lib/filter/float_dotprod_sse.S
index 31b0f3832..beddc75b0 100644
--- a/gnuradio-core/src/lib/filter/float_dotprod_sse.S
+++ b/gnuradio-core/src/lib/filter/float_dotprod_sse.S
@@ -1,30 +1,30 @@
#
# 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,
# Boston, MA 02110-1301, USA.
-#
+#
# input and taps are guarenteed to be 16 byte aligned.
# n_4_float_blocks is != 0
-#
#
-# float
+#
+# float
# float_dotprod_generic (const float *input,
# const float *taps, unsigned n_4_float_blocks)
# {
@@ -32,23 +32,23 @@
# float sum1 = 0;
# float sum2 = 0;
# float sum3 = 0;
-#
+#
# do {
-#
+#
# sum0 += input[0] * taps[0];
# sum1 += input[1] * taps[1];
# sum2 += input[2] * taps[2];
# sum3 += input[3] * taps[3];
-#
+#
# input += 4;
# taps += 4;
-#
+#
# } while (--n_4_float_blocks != 0);
-#
-#
+#
+#
# return sum0 + sum1 + sum2 + sum3;
# }
-#
+#
#include "assembly.h"
@@ -66,7 +66,7 @@ GLOB_SYMB(float_dotprod_sse):
movl 12(%ebp), %eax
movl 16(%ebp), %ecx
-
+
# xmm0 xmm1 xmm2 xmm3 are used to hold taps and the result of mults
# xmm4 xmm5 xmm6 xmm7 are used to hold the accumulated results
@@ -79,22 +79,22 @@ GLOB_SYMB(float_dotprod_sse):
jmp .L1_test
.p2align 4
-.Loop1:
+.Loop1:
movaps (%eax), %xmm0
mulps (%edx), %xmm0
addl $0x10, %edx
addl $0x10, %eax
addps %xmm0, %xmm4
-.L1_test:
+.L1_test:
decl %ecx
jge .Loop1
-
+
# set up for primary loop which is unrolled 4 times
-
+
movl 16(%ebp), %ecx
movaps %xmm5, %xmm6 # zero remaining accumulators
- movaps %xmm5, %xmm7
+ movaps %xmm5, %xmm7
shrl $2, %ecx # n_4_float_blocks / 4
je .Lcleanup # if zero, take short path
@@ -102,7 +102,7 @@ GLOB_SYMB(float_dotprod_sse):
# finish setup and loop priming
movaps 0x00(%eax), %xmm0
- movaps %xmm5, %xmm2
+ movaps %xmm5, %xmm2
movaps 0x10(%eax), %xmm1
movaps %xmm5, %xmm3
@@ -145,11 +145,11 @@ GLOB_SYMB(float_dotprod_sse):
addps %xmm6, %xmm7
addps %xmm7, %xmm4
-
+
# At this point, xmm4 contains 4 partial sums. We need
- # to compute a "horizontal add" across xmm4.
+ # to compute a "horizontal add" across xmm4.
# This is a fairly nasty operation...
-
+
.Lcleanup: # xmm4 = d1 d2 d3 d4
xorps %xmm0, %xmm0 # xmm0 = 0 0 0 0 (may be unnecessary)
movhlps %xmm4, %xmm0 # xmm0 = 0 0 d1 d2
diff --git a/gnuradio-core/src/lib/filter/float_dotprod_sse64.S b/gnuradio-core/src/lib/filter/float_dotprod_sse64.S
index 4c5ad95cd..3d425b26b 100644
--- a/gnuradio-core/src/lib/filter/float_dotprod_sse64.S
+++ b/gnuradio-core/src/lib/filter/float_dotprod_sse64.S
@@ -1,30 +1,30 @@
#
# Copyright 2002,2005 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,
# Boston, MA 02110-1301, USA.
-#
+#
# input and taps are guarenteed to be 16 byte aligned.
# n_4_float_blocks is != 0
-#
#
-# float
+#
+# float
# float_dotprod_generic (const float *input,
# const float *taps, unsigned n_4_float_blocks)
# {
@@ -32,23 +32,23 @@
# float sum1 = 0;
# float sum2 = 0;
# float sum3 = 0;
-#
+#
# do {
-#
+#
# sum0 += input[0] * taps[0];
# sum1 += input[1] * taps[1];
# sum2 += input[2] * taps[2];
# sum3 += input[3] * taps[3];
-#
+#
# input += 4;
# taps += 4;
-#
+#
# } while (--n_4_float_blocks != 0);
-#
-#
+#
+#
# return sum0 + sum1 + sum2 + sum3;
# }
-#
+#
#include "assembly.h"
@@ -77,21 +77,21 @@ GLOB_SYMB(float_dotprod_sse):
jmp .L1_test
.p2align 4
-.Loop1:
+.Loop1:
movaps (%rsi), %xmm0
mulps (%rdi), %xmm0
add $0x10, %rdi
add $0x10, %rsi
addps %xmm0, %xmm4
-.L1_test:
+.L1_test:
dec %rax
jge .Loop1
-
+
# set up for primary loop which is unrolled 4 times
-
+
movaps %xmm5, %xmm6 # zero remaining accumulators
- movaps %xmm5, %xmm7
+ movaps %xmm5, %xmm7
shr $2, %rdx # n_4_float_blocks / 4
je .Lcleanup # if zero, take short path
@@ -99,7 +99,7 @@ GLOB_SYMB(float_dotprod_sse):
# finish setup and loop priming
movaps 0x00(%rsi), %xmm0
- movaps %xmm5, %xmm2
+ movaps %xmm5, %xmm2
movaps 0x10(%rsi), %xmm1
movaps %xmm5, %xmm3
@@ -142,11 +142,11 @@ GLOB_SYMB(float_dotprod_sse):
addps %xmm6, %xmm7
addps %xmm7, %xmm4
-
+
# At this point, xmm4 contains 4 partial sums. We need
- # to compute a "horizontal add" across xmm4.
+ # to compute a "horizontal add" across xmm4.
# This is a fairly nasty operation...
-
+
.Lcleanup: # xmm4 = d1 d2 d3 d4
xorps %xmm0, %xmm0 # xmm0 = 0 0 0 0 (may be unnecessary)
movhlps %xmm4, %xmm0 # xmm0 = 0 0 d1 d2
diff --git a/gnuradio-core/src/lib/filter/float_dotprod_x86.h b/gnuradio-core/src/lib/filter/float_dotprod_x86.h
index 623048117..fd1a2cc93 100644
--- a/gnuradio-core/src/lib/filter/float_dotprod_x86.h
+++ b/gnuradio-core/src/lib/filter/float_dotprod_x86.h
@@ -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,
@@ -27,11 +27,11 @@
extern "C" {
#endif
-float
+float
float_dotprod_3dnow (const float *input,
const float *taps, unsigned n_4_float_blocks);
-float
+float
float_dotprod_sse (const float *input,
const float *taps, unsigned n_4_float_blocks);
diff --git a/gnuradio-core/src/lib/filter/gcc_x86_cpuid.h b/gnuradio-core/src/lib/filter/gcc_x86_cpuid.h
index 2d0916fb3..98eeb33a3 100644
--- a/gnuradio-core/src/lib/filter/gcc_x86_cpuid.h
+++ b/gnuradio-core/src/lib/filter/gcc_x86_cpuid.h
@@ -5,16 +5,16 @@
* 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.
- *
+ *
* This file 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.
- *
+ *
* Under Section 7 of GPL version 3, you are granted additional
* permissions described in the GCC Runtime Library Exception, version
* 3.1, as published by the Free Software Foundation.
- *
+ *
* You should have received a copy of the GNU General Public License and
* a copy of the GCC Runtime Library Exception along with this program;
* see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
diff --git a/gnuradio-core/src/lib/filter/generate_all.py b/gnuradio-core/src/lib/filter/generate_all.py
index ceed2b851..1da9f7209 100755
--- a/gnuradio-core/src/lib/filter/generate_all.py
+++ b/gnuradio-core/src/lib/filter/generate_all.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2003 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,
# Boston, MA 02110-1301, USA.
-#
+#
from build_utils import output_glue
diff --git a/gnuradio-core/src/lib/filter/generate_gr_fir_XXX.py b/gnuradio-core/src/lib/filter/generate_gr_fir_XXX.py
index 6b770a803..cf37fbb24 100755
--- a/gnuradio-core/src/lib/filter/generate_gr_fir_XXX.py
+++ b/gnuradio-core/src/lib/filter/generate_gr_fir_XXX.py
@@ -2,24 +2,24 @@
# -*- python -*-
#
# Copyright 2003 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,
# Boston, MA 02110-1301, USA.
-#
+#
import re
from generate_utils import *
@@ -63,7 +63,7 @@ def init_dict (root, code3):
d['N_UNROLL'] = '4'
d['VRCOMPLEX_INCLUDE'] = ''
return d
-
+
def generate ():
for r in roots:
diff --git a/gnuradio-core/src/lib/filter/generate_gr_fir_filter_XXX.py b/gnuradio-core/src/lib/filter/generate_gr_fir_filter_XXX.py
index b8994b7b6..50cc586e5 100755
--- a/gnuradio-core/src/lib/filter/generate_gr_fir_filter_XXX.py
+++ b/gnuradio-core/src/lib/filter/generate_gr_fir_filter_XXX.py
@@ -2,24 +2,24 @@
# -*- python -*-
#
# Copyright 2003,2004 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,
# Boston, MA 02110-1301, USA.
-#
+#
import re
from generate_utils import *
@@ -46,4 +46,4 @@ def generate ():
if __name__ == '__main__':
generate ()
-
+
diff --git a/gnuradio-core/src/lib/filter/generate_gr_fir_sysconfig.py b/gnuradio-core/src/lib/filter/generate_gr_fir_sysconfig.py
index b39672193..50d819fd1 100755
--- a/gnuradio-core/src/lib/filter/generate_gr_fir_sysconfig.py
+++ b/gnuradio-core/src/lib/filter/generate_gr_fir_sysconfig.py
@@ -2,24 +2,24 @@
# -*- python -*-
#
# Copyright 2003,2009 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,
# Boston, MA 02110-1301, USA.
-#
+#
from generate_utils import *
@@ -66,7 +66,7 @@ public:
virtual ~gr_fir_sysconfig ();
''')
-
+
for sig in fir_signatures:
out.write ((' virtual gr_fir_%s *create_gr_fir_%s (const std::vector<%s> &taps) = 0;\n' %
(sig, sig, tap_type (sig))))
@@ -83,7 +83,7 @@ public:
/*
* This returns the single instance of the appropriate derived class.
- * This function must be defined only once in the system, and should be defined
+ * This function must be defined only once in the system, and should be defined
* in the platform specific code.
*/
@@ -93,7 +93,7 @@ gr_fir_sysconfig *gr_fir_sysconfig_singleton ();
#endif /* INCLUDED_GR_FIR_SYSCONFIG_H */
''')
out.close ()
-
+
# ----------------------------------------------------------------
@@ -121,7 +121,7 @@ gr_fir_sysconfig::~gr_fir_sysconfig ()
}
''')
out.close ()
-
+
# ----------------------------------------------------------------
diff --git a/gnuradio-core/src/lib/filter/generate_gr_fir_sysconfig_generic.py b/gnuradio-core/src/lib/filter/generate_gr_fir_sysconfig_generic.py
index 03caadaf9..dcbadd30f 100755
--- a/gnuradio-core/src/lib/filter/generate_gr_fir_sysconfig_generic.py
+++ b/gnuradio-core/src/lib/filter/generate_gr_fir_sysconfig_generic.py
@@ -2,24 +2,24 @@
# -*- python -*-
#
# Copyright 2003,2009 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,
# Boston, MA 02110-1301, USA.
-#
+#
from generate_utils import *
@@ -53,7 +53,7 @@ def make_gr_fir_sysconfig_generic_h ():
class gr_fir_sysconfig_generic : public gr_fir_sysconfig {
public:
''')
-
+
for sig in fir_signatures:
out.write ((' virtual gr_fir_%s *create_gr_fir_%s (const std::vector<%s> &taps);\n' %
(sig, sig, tap_type (sig))))
@@ -72,7 +72,7 @@ public:
#endif /* _GR_FIR_SYSCONFIG_GENERIC_H_ */
''')
out.close ()
-
+
# ----------------------------------------------------------------
@@ -84,7 +84,7 @@ make_gr_fir_%s (const std::vector<%s> &taps)
return new gr_fir_%s_generic (taps);
}
''' % (sig, sig, tap_type (sig), sig))
-
+
def make_creator (sig, out):
out.write ('''
@@ -94,7 +94,7 @@ gr_fir_sysconfig_generic::create_gr_fir_%s (const std::vector<%s> &taps)
return make_gr_fir_%s (taps);
}
''' % (sig, sig, tap_type (sig), sig))
-
+
def make_info (sig, out):
out.write ('''
@@ -107,7 +107,7 @@ gr_fir_sysconfig_generic::get_gr_fir_%s_info (std::vector<gr_fir_%s_info> *info)
}
''' % (sig, sig, sig))
-
+
# ----------------------------------------------------------------
def make_gr_fir_sysconfig_generic_cc ():
@@ -131,7 +131,7 @@ def make_gr_fir_sysconfig_generic_cc ():
#include <gr_fir_sysconfig_generic.h>
''')
-
+
for sig in fir_signatures:
out.write ('#include <gr_fir_%s_generic.h>\n' % (sig))
diff --git a/gnuradio-core/src/lib/filter/generate_gr_fir_util.py b/gnuradio-core/src/lib/filter/generate_gr_fir_util.py
index 06001695e..79fa51c27 100755
--- a/gnuradio-core/src/lib/filter/generate_gr_fir_util.py
+++ b/gnuradio-core/src/lib/filter/generate_gr_fir_util.py
@@ -1,24 +1,24 @@
#!/bin/env python
#
# Copyright 2003,2009 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,
# Boston, MA 02110-1301, USA.
-#
+#
from generate_utils import *
@@ -34,11 +34,11 @@ struct GR_CORE_API gr_fir_%s_info {
def make_create (out, sig):
out.write (''' static gr_fir_%s *create_gr_fir_%s (const std::vector<%s> &taps);
''' % (sig, sig, tap_type (sig)))
-
+
def make_info (out, sig):
out.write (''' static void get_gr_fir_%s_info (std::vector<gr_fir_%s_info> *info);
''' % (sig, sig))
-
+
# ----------------------------------------------------------------
@@ -70,7 +70,7 @@ def make_gr_fir_util_h ():
*
* The trailing suffix has the form _IOT where I codes the input type,
* O codes the output type, and T codes the tap type.
- * I,O,T are elements of the set 's' (short), 'f' (float), 'c' (gr_complex),
+ * I,O,T are elements of the set 's' (short), 'f' (float), 'c' (gr_complex),
* 'i' (short)
*/
@@ -78,7 +78,7 @@ def make_gr_fir_util_h ():
#include <gr_types.h>
''')
-
+
for sig in fir_signatures:
out.write ('class gr_fir_%s;\n' % sig);
@@ -93,7 +93,7 @@ struct GR_CORE_API gr_fir_util {
// create a fast version of gr_fir_XXX.
''')
-
+
for sig in fir_signatures:
make_create (out, sig)
@@ -142,7 +142,7 @@ gr_fir_util::get_gr_fir_%s_info (std::vector<gr_fir_%s_info> *info)
}
''' % (sig, sig, sig))
-
+
def make_gr_fir_util_cc ():
out = open_and_log_name ('gr_fir_util.cc', 'w')
if not out:
@@ -172,12 +172,12 @@ def make_gr_fir_util_cc ():
// --- info gatherers ---
''')
-
+
for sig in fir_signatures:
make_info_cc (out, sig)
- out.close ()
-
+ out.close ()
+
# ----------------------------------------------------------------
@@ -187,4 +187,4 @@ def generate ():
if __name__ == '__main__':
generate ()
-
+
diff --git a/gnuradio-core/src/lib/filter/generate_gr_freq_xlating_fir_filter_XXX.py b/gnuradio-core/src/lib/filter/generate_gr_freq_xlating_fir_filter_XXX.py
index 56936bea5..41c0b2b70 100755
--- a/gnuradio-core/src/lib/filter/generate_gr_freq_xlating_fir_filter_XXX.py
+++ b/gnuradio-core/src/lib/filter/generate_gr_freq_xlating_fir_filter_XXX.py
@@ -2,24 +2,24 @@
# -*- python -*-
#
# Copyright 2003,2004 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,
# Boston, MA 02110-1301, USA.
-#
+#
import re
from generate_utils import *
diff --git a/gnuradio-core/src/lib/filter/generate_gr_interp_fir_filter_XXX.py b/gnuradio-core/src/lib/filter/generate_gr_interp_fir_filter_XXX.py
index f4ec2edfd..1dcfdaded 100644
--- a/gnuradio-core/src/lib/filter/generate_gr_interp_fir_filter_XXX.py
+++ b/gnuradio-core/src/lib/filter/generate_gr_interp_fir_filter_XXX.py
@@ -2,24 +2,24 @@
# -*- python -*-
#
# Copyright 2003,2004 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,
# Boston, MA 02110-1301, USA.
-#
+#
import re
from generate_utils import *
@@ -45,4 +45,4 @@ def generate ():
if __name__ == '__main__':
generate ()
-
+
diff --git a/gnuradio-core/src/lib/filter/generate_gr_rational_resampler_base_XXX.py b/gnuradio-core/src/lib/filter/generate_gr_rational_resampler_base_XXX.py
index a5eee9742..1dafec3fb 100644
--- a/gnuradio-core/src/lib/filter/generate_gr_rational_resampler_base_XXX.py
+++ b/gnuradio-core/src/lib/filter/generate_gr_rational_resampler_base_XXX.py
@@ -2,24 +2,24 @@
# -*- python -*-
#
# Copyright 2003,2004 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,
# Boston, MA 02110-1301, USA.
-#
+#
import re
from generate_utils import *
@@ -45,4 +45,4 @@ def generate ():
if __name__ == '__main__':
generate ()
-
+
diff --git a/gnuradio-core/src/lib/filter/generate_gri_fir_filter_with_buffer_XXX.py b/gnuradio-core/src/lib/filter/generate_gri_fir_filter_with_buffer_XXX.py
index f586b0c27..6442fb3dc 100755
--- a/gnuradio-core/src/lib/filter/generate_gri_fir_filter_with_buffer_XXX.py
+++ b/gnuradio-core/src/lib/filter/generate_gri_fir_filter_with_buffer_XXX.py
@@ -2,24 +2,24 @@
# -*- python -*-
#
# Copyright 2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
import re
from generate_utils import *
@@ -52,7 +52,7 @@ def init_dict (root, code3):
acc_code = code3_to_acc_code (code3)
d['ACC_TYPE'] = char_to_type[acc_code]
return d
-
+
def generate ():
for r in roots:
diff --git a/gnuradio-core/src/lib/filter/generate_utils.py b/gnuradio-core/src/lib/filter/generate_utils.py
index 489aba235..212ea95f9 100644
--- a/gnuradio-core/src/lib/filter/generate_utils.py
+++ b/gnuradio-core/src/lib/filter/generate_utils.py
@@ -1,23 +1,23 @@
#
# Copyright 2003,2005 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,
# Boston, MA 02110-1301, USA.
-#
+#
## -----------------------------------------------------------------------
## signatures defines which variations to generate (input, output, taps)
diff --git a/gnuradio-core/src/lib/filter/gr_adaptive_fir_ccc.cc b/gnuradio-core/src/lib/filter/gr_adaptive_fir_ccc.cc
index 3fed74641..da407caa0 100644
--- a/gnuradio-core/src/lib/filter/gr_adaptive_fir_ccc.cc
+++ b/gnuradio-core/src/lib/filter/gr_adaptive_fir_ccc.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
@@ -70,11 +70,11 @@ gr_adaptive_fir_ccc::work(int noutput_items,
d_updated = false;
return 0; // history requirements may have changed.
}
-
+
int j = 0, k, l = d_taps.size();
for (int i = 0; i < noutput_items; i++) {
out[i] = filter(&in[j]);
-
+
// Adjust taps
d_error = error(out[i]);
for (k = 0; k < l; k++) {
diff --git a/gnuradio-core/src/lib/filter/gr_adaptive_fir_ccc.h b/gnuradio-core/src/lib/filter/gr_adaptive_fir_ccc.h
index aa5422a07..d144c3eb4 100644
--- a/gnuradio-core/src/lib/filter/gr_adaptive_fir_ccc.h
+++ b/gnuradio-core/src/lib/filter/gr_adaptive_fir_ccc.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
@@ -41,7 +41,7 @@ protected:
std::vector<gr_complex> d_taps;
// Override to calculate error signal per output
- virtual gr_complex error(const gr_complex &out) = 0;
+ virtual gr_complex error(const gr_complex &out) = 0;
// Override to calculate new weight from old, corresponding input
virtual void update_tap(gr_complex &tap, const gr_complex &in) = 0;
diff --git a/gnuradio-core/src/lib/filter/gr_adaptive_fir_ccc.i b/gnuradio-core/src/lib/filter/gr_adaptive_fir_ccc.i
index 7e9a3fac3..a3c875a3d 100644
--- a/gnuradio-core/src/lib/filter/gr_adaptive_fir_ccc.i
+++ b/gnuradio-core/src/lib/filter/gr_adaptive_fir_ccc.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
diff --git a/gnuradio-core/src/lib/filter/gr_adaptive_fir_ccf.cc b/gnuradio-core/src/lib/filter/gr_adaptive_fir_ccf.cc
index 578506020..045d9faf9 100644
--- a/gnuradio-core/src/lib/filter/gr_adaptive_fir_ccf.cc
+++ b/gnuradio-core/src/lib/filter/gr_adaptive_fir_ccf.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2006 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,
@@ -65,7 +65,7 @@ int gr_adaptive_fir_ccf::work(int noutput_items,
for (k = 0; k < l; k++)
sum += d_taps[l-k-1]*in[j+k];
out[i] = sum;
-
+
// Adjust taps
d_error = error(sum);
for (k = 0; k < l; k++) {
@@ -73,7 +73,7 @@ int gr_adaptive_fir_ccf::work(int noutput_items,
update_tap(d_taps[l-k-1], in[j+k]);
}
//printf("\n");
-
+
j += decimation();
}
diff --git a/gnuradio-core/src/lib/filter/gr_adaptive_fir_ccf.h b/gnuradio-core/src/lib/filter/gr_adaptive_fir_ccf.h
index 87854201c..7ec78099f 100644
--- a/gnuradio-core/src/lib/filter/gr_adaptive_fir_ccf.h
+++ b/gnuradio-core/src/lib/filter/gr_adaptive_fir_ccf.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
@@ -41,7 +41,7 @@ protected:
std::vector<float> d_taps;
// Override to calculate error signal per output
- virtual float error(const gr_complex &out) = 0;
+ virtual float error(const gr_complex &out) = 0;
// Override to calculate new weight from old, corresponding input
virtual void update_tap(float &tap, const gr_complex &in) = 0;
diff --git a/gnuradio-core/src/lib/filter/gr_adaptive_fir_ccf.i b/gnuradio-core/src/lib/filter/gr_adaptive_fir_ccf.i
index c73c78045..346defd4d 100644
--- a/gnuradio-core/src/lib/filter/gr_adaptive_fir_ccf.i
+++ b/gnuradio-core/src/lib/filter/gr_adaptive_fir_ccf.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gnuradio-core/src/lib/filter/gr_altivec.c b/gnuradio-core/src/lib/filter/gr_altivec.c
index 416132748..22a67291d 100644
--- a/gnuradio-core/src/lib/filter/gr_altivec.c
+++ b/gnuradio-core/src/lib/filter/gr_altivec.c
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -28,7 +28,7 @@ gr_print_vector_float(FILE *fp, vec_float4 v)
u.v = v;
fprintf(fp, "{ %f, %f, %f, %f }", u.f[0], u.f[1], u.f[2], u.f[3]);
}
-
+
void
gr_pvf(FILE *fp, const char *label, vec_float4 v)
{
diff --git a/gnuradio-core/src/lib/filter/gr_altivec.h b/gnuradio-core/src/lib/filter/gr_altivec.h
index eb941ce42..ed11490f5 100644
--- a/gnuradio-core/src/lib/filter/gr_altivec.h
+++ b/gnuradio-core/src/lib/filter/gr_altivec.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
diff --git a/gnuradio-core/src/lib/filter/gr_cpu.h b/gnuradio-core/src/lib/filter/gr_cpu.h
index 149404082..35824ac1e 100644
--- a/gnuradio-core/src/lib/filter/gr_cpu.h
+++ b/gnuradio-core/src/lib/filter/gr_cpu.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2002,2008,2009 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,
diff --git a/gnuradio-core/src/lib/filter/gr_cpu_armv7_a.cc b/gnuradio-core/src/lib/filter/gr_cpu_armv7_a.cc
index e06d2697a..245049206 100644
--- a/gnuradio-core/src/lib/filter/gr_cpu_armv7_a.cc
+++ b/gnuradio-core/src/lib/filter/gr_cpu_armv7_a.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2002,2008,2009 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,
diff --git a/gnuradio-core/src/lib/filter/gr_cpu_powerpc.cc b/gnuradio-core/src/lib/filter/gr_cpu_powerpc.cc
index d253e4439..d613f0ae4 100644
--- a/gnuradio-core/src/lib/filter/gr_cpu_powerpc.cc
+++ b/gnuradio-core/src/lib/filter/gr_cpu_powerpc.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2002,2008 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,
diff --git a/gnuradio-core/src/lib/filter/gr_cpu_x86.cc b/gnuradio-core/src/lib/filter/gr_cpu_x86.cc
index da970e133..3acd694d5 100644
--- a/gnuradio-core/src/lib/filter/gr_cpu_x86.cc
+++ b/gnuradio-core/src/lib/filter/gr_cpu_x86.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2002,2009 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,
diff --git a/gnuradio-core/src/lib/filter/gr_dc_blocker_cc.cc b/gnuradio-core/src/lib/filter/gr_dc_blocker_cc.cc
index e7d5ced25..0438a193f 100644
--- a/gnuradio-core/src/lib/filter/gr_dc_blocker_cc.cc
+++ b/gnuradio-core/src/lib/filter/gr_dc_blocker_cc.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,11 +45,11 @@ moving_averager_c::filter(gr_complex x)
d_delay_line.push_back(x);
d_out = d_delay_line[0];
d_delay_line.pop_front();
-
+
gr_complex y = x - d_out_d1 + d_out_d2;
d_out_d2 = y;
-
- return (y / (float)(d_length));
+
+ return (y / (float)(d_length));
}
diff --git a/gnuradio-core/src/lib/filter/gr_dc_blocker_cc.h b/gnuradio-core/src/lib/filter/gr_dc_blocker_cc.h
index cb449f3ec..e4d89a775 100644
--- a/gnuradio-core/src/lib/filter/gr_dc_blocker_cc.h
+++ b/gnuradio-core/src/lib/filter/gr_dc_blocker_cc.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
@@ -52,7 +52,7 @@ GR_CORE_API gr_dc_blocker_cc_sptr gr_make_dc_blocker_cc (int D=32, bool long_for
* \brief a computationally efficient controllable DC blocker
*
* \ingroup filter_blk
- *
+ *
* This block implements a computationally efficient DC blocker that produces
* a tighter notch filter around DC for a smaller group delay than an
* equivalent FIR filter or using a single pole IIR filter (though the IIR
@@ -102,7 +102,7 @@ public:
int get_group_delay();
//int set_length(int D);
-
+
int work (int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items);
diff --git a/gnuradio-core/src/lib/filter/gr_dc_blocker_cc.i b/gnuradio-core/src/lib/filter/gr_dc_blocker_cc.i
index b88fecbde..83d05044b 100644
--- a/gnuradio-core/src/lib/filter/gr_dc_blocker_cc.i
+++ b/gnuradio-core/src/lib/filter/gr_dc_blocker_cc.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
diff --git a/gnuradio-core/src/lib/filter/gr_dc_blocker_ff.cc b/gnuradio-core/src/lib/filter/gr_dc_blocker_ff.cc
index d684bc7e8..04ee64879 100644
--- a/gnuradio-core/src/lib/filter/gr_dc_blocker_ff.cc
+++ b/gnuradio-core/src/lib/filter/gr_dc_blocker_ff.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,11 +45,11 @@ moving_averager_f::filter(float x)
d_delay_line.push_back(x);
d_out = d_delay_line[0];
d_delay_line.pop_front();
-
+
float y = x - d_out_d1 + d_out_d2;
d_out_d2 = y;
-
- return (y / (float)(d_length));
+
+ return (y / (float)(d_length));
}
diff --git a/gnuradio-core/src/lib/filter/gr_dc_blocker_ff.h b/gnuradio-core/src/lib/filter/gr_dc_blocker_ff.h
index a7e8f1c27..d69f24835 100644
--- a/gnuradio-core/src/lib/filter/gr_dc_blocker_ff.h
+++ b/gnuradio-core/src/lib/filter/gr_dc_blocker_ff.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
@@ -53,7 +53,7 @@ GR_CORE_API gr_dc_blocker_ff_sptr gr_make_dc_blocker_ff (int D=32, bool long_for
* \brief a computationally efficient controllable DC blocker
*
* \ingroup filter_blk
- *
+ *
* This block implements a computationally efficient DC blocker that produces
* a tighter notch filter around DC for a smaller group delay than an
* equivalent FIR filter or using a single pole IIR filter (though the IIR
@@ -103,7 +103,7 @@ public:
int get_group_delay();
//int set_length(int D);
-
+
int work (int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items);
diff --git a/gnuradio-core/src/lib/filter/gr_dc_blocker_ff.i b/gnuradio-core/src/lib/filter/gr_dc_blocker_ff.i
index 032145c9e..065eb441d 100644
--- a/gnuradio-core/src/lib/filter/gr_dc_blocker_ff.i
+++ b/gnuradio-core/src/lib/filter/gr_dc_blocker_ff.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
diff --git a/gnuradio-core/src/lib/filter/gr_fft_filter_ccc.cc b/gnuradio-core/src/lib/filter/gr_fft_filter_ccc.cc
index 5968e487e..08e231a44 100644
--- a/gnuradio-core/src/lib/filter/gr_fft_filter_ccc.cc
+++ b/gnuradio-core/src/lib/filter/gr_fft_filter_ccc.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2010 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,
diff --git a/gnuradio-core/src/lib/filter/gr_fft_filter_ccc.h b/gnuradio-core/src/lib/filter/gr_fft_filter_ccc.h
index d037597e8..4b478b65f 100644
--- a/gnuradio-core/src/lib/filter/gr_fft_filter_ccc.h
+++ b/gnuradio-core/src/lib/filter/gr_fft_filter_ccc.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
@@ -48,9 +48,9 @@ class GR_CORE_API gr_fft_filter_ccc : public gr_sync_decimator
int d_nsamples;
bool d_updated;
#if 1 // don't enable the sse version until handling it is worked out
- gri_fft_filter_ccc_generic *d_filter;
+ gri_fft_filter_ccc_generic *d_filter;
#else
- gri_fft_filter_ccc_sse *d_filter;
+ gri_fft_filter_ccc_sse *d_filter;
#endif
std::vector<gr_complex> d_new_taps;
diff --git a/gnuradio-core/src/lib/filter/gr_fft_filter_ccc.i b/gnuradio-core/src/lib/filter/gr_fft_filter_ccc.i
index acdc347a6..76837b582 100644
--- a/gnuradio-core/src/lib/filter/gr_fft_filter_ccc.i
+++ b/gnuradio-core/src/lib/filter/gr_fft_filter_ccc.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2005 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,
@@ -22,7 +22,7 @@
GR_SWIG_BLOCK_MAGIC(gr,fft_filter_ccc)
-gr_fft_filter_ccc_sptr
+gr_fft_filter_ccc_sptr
gr_make_fft_filter_ccc (int decimation,
const std::vector<gr_complex> &taps,
int nthreads=1
diff --git a/gnuradio-core/src/lib/filter/gr_fft_filter_fff.cc b/gnuradio-core/src/lib/filter/gr_fft_filter_fff.cc
index e4a669150..a09feb7f1 100644
--- a/gnuradio-core/src/lib/filter/gr_fft_filter_fff.cc
+++ b/gnuradio-core/src/lib/filter/gr_fft_filter_fff.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2010 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,
@@ -52,7 +52,7 @@ gr_fft_filter_fff::gr_fft_filter_fff (int decimation,
d_updated(false)
{
set_history(1);
-
+
#if 1 // don't enable the sse version until handling it is worked out
d_filter = new gri_fft_filter_fff_generic(decimation, taps, nthreads);
#else
@@ -114,7 +114,7 @@ gr_fft_filter_fff::work (int noutput_items,
}
assert(noutput_items % d_nsamples == 0);
-
+
d_filter->filter(noutput_items, in, out);
//assert((out - (float *) output_items[0]) == noutput_items);
diff --git a/gnuradio-core/src/lib/filter/gr_fft_filter_fff.h b/gnuradio-core/src/lib/filter/gr_fft_filter_fff.h
index 2eeb8c646..309a55135 100644
--- a/gnuradio-core/src/lib/filter/gr_fft_filter_fff.h
+++ b/gnuradio-core/src/lib/filter/gr_fft_filter_fff.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gnuradio-core/src/lib/filter/gr_fft_filter_fff.i b/gnuradio-core/src/lib/filter/gr_fft_filter_fff.i
index c8118e09e..86c554893 100644
--- a/gnuradio-core/src/lib/filter/gr_fft_filter_fff.i
+++ b/gnuradio-core/src/lib/filter/gr_fft_filter_fff.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2005 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,
@@ -22,7 +22,7 @@
GR_SWIG_BLOCK_MAGIC(gr,fft_filter_fff)
-gr_fft_filter_fff_sptr
+gr_fft_filter_fff_sptr
gr_make_fft_filter_fff (int decimation,
const std::vector<float> &taps,
int nthreads=1
diff --git a/gnuradio-core/src/lib/filter/gr_filter_delay_fc.cc b/gnuradio-core/src/lib/filter/gr_filter_delay_fc.cc
index 7974da934..af8a8e9e7 100644
--- a/gnuradio-core/src/lib/filter/gr_filter_delay_fc.cc
+++ b/gnuradio-core/src/lib/filter/gr_filter_delay_fc.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
@@ -29,8 +29,8 @@
#include <gr_fir_util.h>
// public constructor
-gr_filter_delay_fc_sptr
-gr_make_filter_delay_fc (const std::vector<float> &taps)
+gr_filter_delay_fc_sptr
+gr_make_filter_delay_fc (const std::vector<float> &taps)
{
return gnuradio::get_initial_sptr(new gr_filter_delay_fc (taps));
}
@@ -62,7 +62,7 @@ gr_filter_delay_fc::work (int noutput_items,
switch (input_items.size ()){
case 1:
for (int i = 0; i < noutput_items; i++)
- out[i] = gr_complex (in0[i + d_delay],
+ out[i] = gr_complex (in0[i + d_delay],
d_fir->filter (&in0[i]));
break;
diff --git a/gnuradio-core/src/lib/filter/gr_filter_delay_fc.h b/gnuradio-core/src/lib/filter/gr_filter_delay_fc.h
index e09e4f0df..fee11243a 100644
--- a/gnuradio-core/src/lib/filter/gr_filter_delay_fc.h
+++ b/gnuradio-core/src/lib/filter/gr_filter_delay_fc.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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 @@ class gr_fir_fff;
* a delayed version of this input and the imaginary output is the
* filtered output. If two floats are connected to the input, then
* the real output is the delayed version of the first input, and
- * the imaginary output is the filtered output. The delay in the
+ * the imaginary output is the filtered output. The delay in the
* real path accounts for the group delay introduced by the filter
* in the imaginary path. The filter taps needs to be calculated
* before initializing this block.
diff --git a/gnuradio-core/src/lib/filter/gr_fir_XXX.cc.t b/gnuradio-core/src/lib/filter/gr_fir_XXX.cc.t
index 1ee27c728..2396f0fe6 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_XXX.cc.t
+++ b/gnuradio-core/src/lib/filter/gr_fir_XXX.cc.t
@@ -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,
diff --git a/gnuradio-core/src/lib/filter/gr_fir_XXX.h.t b/gnuradio-core/src/lib/filter/gr_fir_XXX.h.t
index f6019ea40..197bb3cd2 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_XXX.h.t
+++ b/gnuradio-core/src/lib/filter/gr_fir_XXX.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2002,2003 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,
@@ -37,7 +37,7 @@
/*!
* \brief Abstract class for FIR with @I_TYPE@ input, @O_TYPE@ output and @TAP_TYPE@ taps
* \ingroup filter_primitive
- *
+ *
* This is the abstract class for a Finite Impulse Response filter.
*
* The trailing suffix has the form _IOT where I codes the input type,
@@ -91,7 +91,7 @@ public:
* \brief compute an array of N output values, decimating the input
*
* \p input must have (decimate * (n - 1) + ntaps()) valid entries.
- * input[0] .. input[decimate * (n - 1) + ntaps() - 1] are referenced to
+ * input[0] .. input[decimate * (n - 1) + ntaps() - 1] are referenced to
* compute the output values.
*/
virtual void filterNdec (@O_TYPE@ output[], const @I_TYPE@ input[],
diff --git a/gnuradio-core/src/lib/filter/gr_fir_XXX_generic.cc.t b/gnuradio-core/src/lib/filter/gr_fir_XXX_generic.cc.t
index 5a672eecd..11b4fd50f 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_XXX_generic.cc.t
+++ b/gnuradio-core/src/lib/filter/gr_fir_XXX_generic.cc.t
@@ -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,
@@ -54,7 +54,7 @@
return (@O_TYPE@) (acc0 + acc1 + acc2 + acc3);
}
-#else
+#else
@O_TYPE@
@FIR_TYPE@_generic::filter (const @I_TYPE@ input[])
@@ -80,7 +80,7 @@
#endif // N_UNROLL
-void
+void
@FIR_TYPE@_generic::filterN (@O_TYPE@ output[],
const @I_TYPE@ input[],
unsigned long n)
@@ -89,7 +89,7 @@ void
output[i] = filter (&input[i]);
}
-void
+void
@FIR_TYPE@_generic::filterNdec (@O_TYPE@ output[],
const @I_TYPE@ input[],
unsigned long n,
diff --git a/gnuradio-core/src/lib/filter/gr_fir_XXX_generic.h.t b/gnuradio-core/src/lib/filter/gr_fir_XXX_generic.h.t
index b3594b7ad..f7382d739 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_XXX_generic.h.t
+++ b/gnuradio-core/src/lib/filter/gr_fir_XXX_generic.h.t
@@ -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,
@@ -38,7 +38,7 @@ class GR_CORE_API @FIR_TYPE@_generic : public @FIR_TYPE@ {
public:
// CREATORS
-
+
@FIR_TYPE@_generic () {}
@FIR_TYPE@_generic (const std::vector<@TAP_TYPE@> &taps) : @FIR_TYPE@ (taps) {}
@@ -67,7 +67,7 @@ public:
* \brief compute an array of N output values, decimating the input
*
* \p input must have (decimate * (n - 1) + ntaps()) valid entries.
- * input[0] .. input[decimate * (n - 1) + ntaps() - 1] are referenced to
+ * input[0] .. input[decimate * (n - 1) + ntaps() - 1] are referenced to
* compute the output values.
*/
virtual void filterNdec (@O_TYPE@ output[], const @I_TYPE@ input[],
diff --git a/gnuradio-core/src/lib/filter/gr_fir_ccc_simd.cc b/gnuradio-core/src/lib/filter/gr_fir_ccc_simd.cc
index 44fdeacdf..d88b696c9 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_ccc_simd.cc
+++ b/gnuradio-core/src/lib/filter/gr_fir_ccc_simd.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2002,2007 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,
@@ -39,7 +39,7 @@ gr_fir_ccc_simd::gr_fir_ccc_simd ()
// cerr << "@@@ gr_fir_ccc_simd\n";
d_ccomplex_dotprod = 0;
-
+
d_aligned_taps[0] = 0;
d_aligned_taps[1] = 0;
d_aligned_taps[2] = 0;
@@ -52,7 +52,7 @@ gr_fir_ccc_simd::gr_fir_ccc_simd (const std::vector<gr_complex> &new_taps)
// cerr << "@@@ gr_fir_ccc_simd\n";
d_ccomplex_dotprod = 0;
-
+
d_aligned_taps[0] = 0;
d_aligned_taps[1] = 0;
d_aligned_taps[2] = 0;
@@ -78,14 +78,14 @@ gr_fir_ccc_simd::set_taps (const std::vector<gr_complex> &inew_taps)
// Make 4 copies of the coefficients, one for each data alignment
// Note use of special 16-byte-aligned version of calloc()
-
+
for (unsigned i = 0; i < 4; i++){
free16Align (d_aligned_taps[i]); // free old value
// this works because the bit representation of a IEEE floating point
// +zero is all zeros. If you're using a different representation,
// you'll need to explictly set the result to the appropriate 0.0 value.
-
+
d_aligned_taps[i] = (float *) calloc16Align (1 + (len + i - 1) / 2,
2 * 4 * sizeof (float));
if (d_aligned_taps[i] == 0){
@@ -100,7 +100,7 @@ gr_fir_ccc_simd::set_taps (const std::vector<gr_complex> &inew_taps)
}
}
-gr_complex
+gr_complex
gr_fir_ccc_simd::filter (const gr_complex input[])
{
if (ntaps () == 0)
@@ -111,11 +111,11 @@ gr_fir_ccc_simd::filter (const gr_complex input[])
// Round input data address down to 16 byte boundary
// NB: depending on the alignment of input[], memory
- // before input[] will be accessed. The contents don't matter since
+ // before input[] will be accessed. The contents don't matter since
// they'll be multiplied by zero coefficients. I can't conceive of any
// situation where this could cause a segfault since memory protection
// in the x86 machines is done on much larger boundaries.
-
+
const gr_complex *ar = (gr_complex *)((unsigned long) input & ~15);
// Choose one of 4 sets of pre-shifted coefficients. al is both the
diff --git a/gnuradio-core/src/lib/filter/gr_fir_ccc_simd.h b/gnuradio-core/src/lib/filter/gr_fir_ccc_simd.h
index af61ce274..ed7249c91 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_ccc_simd.h
+++ b/gnuradio-core/src/lib/filter/gr_fir_ccc_simd.h
@@ -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,
diff --git a/gnuradio-core/src/lib/filter/gr_fir_ccc_x86.cc b/gnuradio-core/src/lib/filter/gr_fir_ccc_x86.cc
index ba490f10a..28bc008e8 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_ccc_x86.cc
+++ b/gnuradio-core/src/lib/filter/gr_fir_ccc_x86.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,
@@ -29,9 +29,9 @@
/*
* --- 3DNow! version ---
*/
-
+
gr_fir_ccc_3dnow::gr_fir_ccc_3dnow ()
- : gr_fir_ccc_simd ()
+ : gr_fir_ccc_simd ()
{
d_ccomplex_dotprod = ccomplex_dotprod_3dnow;
}
@@ -46,9 +46,9 @@ gr_fir_ccc_3dnow::gr_fir_ccc_3dnow (const std::vector<gr_complex> &new_taps)
/*
* --- 3DNow!Ext version ---
*/
-
+
gr_fir_ccc_3dnowext::gr_fir_ccc_3dnowext ()
- : gr_fir_ccc_simd ()
+ : gr_fir_ccc_simd ()
{
d_ccomplex_dotprod = ccomplex_dotprod_3dnowext;
}
@@ -63,7 +63,7 @@ gr_fir_ccc_3dnowext::gr_fir_ccc_3dnowext (const std::vector<gr_complex> &new_tap
/*
* --- SSE version ---
*/
-
+
gr_fir_ccc_sse::gr_fir_ccc_sse ()
: gr_fir_ccc_simd ()
{
diff --git a/gnuradio-core/src/lib/filter/gr_fir_ccc_x86.h b/gnuradio-core/src/lib/filter/gr_fir_ccc_x86.h
index 262cc80e3..0a9d2c83c 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_ccc_x86.h
+++ b/gnuradio-core/src/lib/filter/gr_fir_ccc_x86.h
@@ -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,
diff --git a/gnuradio-core/src/lib/filter/gr_fir_ccf_armv7_a.cc b/gnuradio-core/src/lib/filter/gr_fir_ccf_armv7_a.cc
index ac42b57b7..d849c3dd5 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_ccf_armv7_a.cc
+++ b/gnuradio-core/src/lib/filter/gr_fir_ccf_armv7_a.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2009,2011 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
diff --git a/gnuradio-core/src/lib/filter/gr_fir_ccf_armv7_a.h b/gnuradio-core/src/lib/filter/gr_fir_ccf_armv7_a.h
index 719ff4010..e4844bae1 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_ccf_armv7_a.h
+++ b/gnuradio-core/src/lib/filter/gr_fir_ccf_armv7_a.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2009,2011 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
diff --git a/gnuradio-core/src/lib/filter/gr_fir_ccf_simd.cc b/gnuradio-core/src/lib/filter/gr_fir_ccf_simd.cc
index c20cd4e62..872415e8e 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_ccf_simd.cc
+++ b/gnuradio-core/src/lib/filter/gr_fir_ccf_simd.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2002,2007 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,
@@ -39,7 +39,7 @@ gr_fir_ccf_simd::gr_fir_ccf_simd ()
// cerr << "@@@ gr_fir_ccf_simd\n";
d_fcomplex_dotprod = 0;
-
+
d_aligned_taps[0] = 0;
d_aligned_taps[1] = 0;
d_aligned_taps[2] = 0;
@@ -52,7 +52,7 @@ gr_fir_ccf_simd::gr_fir_ccf_simd (const std::vector<float> &new_taps)
// cerr << "@@@ gr_fir_ccf_simd\n";
d_fcomplex_dotprod = 0;
-
+
d_aligned_taps[0] = 0;
d_aligned_taps[1] = 0;
d_aligned_taps[2] = 0;
@@ -78,14 +78,14 @@ gr_fir_ccf_simd::set_taps (const std::vector<float> &inew_taps)
// Make 4 copies of the coefficients, one for each data alignment
// Note use of special 16-byte-aligned version of calloc()
-
+
for (unsigned i = 0; i < 4; i++){
free16Align (d_aligned_taps[i]); // free old value
// this works because the bit representation of a IEEE floating point
// +zero is all zeros. If you're using a different representation,
// you'll need to explictly set the result to the appropriate 0.0 value.
-
+
d_aligned_taps[i] = (float *) calloc16Align (1 + (len + i - 1) / 4,
4 * sizeof (float));
if (d_aligned_taps[i] == 0){
@@ -97,8 +97,8 @@ gr_fir_ccf_simd::set_taps (const std::vector<float> &inew_taps)
d_aligned_taps[i][j+i] = new_taps[j];
}
}
-
-gr_complex
+
+gr_complex
gr_fir_ccf_simd::filter (const gr_complex input[])
{
if (ntaps () == 0)
@@ -109,11 +109,11 @@ gr_fir_ccf_simd::filter (const gr_complex input[])
// Round input data address down to 16 byte boundary
// NB: depending on the alignment of input[], memory
- // before input[] will be accessed. The contents don't matter since
+ // before input[] will be accessed. The contents don't matter since
// they'll be multiplied by zero coefficients. I can't conceive of any
// situation where this could cause a segfault since memory protection
// in the x86 machines is done on much larger boundaries.
-
+
const gr_complex *ar = (gr_complex *)((unsigned long) input & ~15);
// Choose one of 4 sets of pre-shifted coefficients. al is both the
diff --git a/gnuradio-core/src/lib/filter/gr_fir_ccf_simd.h b/gnuradio-core/src/lib/filter/gr_fir_ccf_simd.h
index 31d70288e..3c3e7e4f5 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_ccf_simd.h
+++ b/gnuradio-core/src/lib/filter/gr_fir_ccf_simd.h
@@ -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,
diff --git a/gnuradio-core/src/lib/filter/gr_fir_ccf_x86.cc b/gnuradio-core/src/lib/filter/gr_fir_ccf_x86.cc
index 53976d532..f26d4ecc2 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_ccf_x86.cc
+++ b/gnuradio-core/src/lib/filter/gr_fir_ccf_x86.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,
@@ -29,9 +29,9 @@
/*
* --- 3DNow! version ---
*/
-
+
gr_fir_ccf_3dnow::gr_fir_ccf_3dnow ()
- : gr_fir_ccf_simd ()
+ : gr_fir_ccf_simd ()
{
d_fcomplex_dotprod = fcomplex_dotprod_3dnow;
}
@@ -46,7 +46,7 @@ gr_fir_ccf_3dnow::gr_fir_ccf_3dnow (const std::vector<float> &new_taps)
/*
* --- SSE version ---
*/
-
+
gr_fir_ccf_sse::gr_fir_ccf_sse ()
: gr_fir_ccf_simd ()
{
diff --git a/gnuradio-core/src/lib/filter/gr_fir_ccf_x86.h b/gnuradio-core/src/lib/filter/gr_fir_ccf_x86.h
index 38d82060c..6b260c3db 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_ccf_x86.h
+++ b/gnuradio-core/src/lib/filter/gr_fir_ccf_x86.h
@@ -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,
diff --git a/gnuradio-core/src/lib/filter/gr_fir_fcc_simd.cc b/gnuradio-core/src/lib/filter/gr_fir_fcc_simd.cc
index 3441a50e6..5b75a43fd 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_fcc_simd.cc
+++ b/gnuradio-core/src/lib/filter/gr_fir_fcc_simd.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,
@@ -38,7 +38,7 @@ gr_fir_fcc_simd::gr_fir_fcc_simd ()
// cerr << "@@@ gr_fir_fcc_simd\n";
d_fcomplex_dotprod = 0;
-
+
d_aligned_taps[0] = 0;
d_aligned_taps[1] = 0;
d_aligned_taps[2] = 0;
@@ -51,7 +51,7 @@ gr_fir_fcc_simd::gr_fir_fcc_simd (const std::vector<gr_complex> &new_taps)
// cerr << "@@@ gr_fir_fcc_simd\n";
d_fcomplex_dotprod = 0;
-
+
d_aligned_taps[0] = 0;
d_aligned_taps[1] = 0;
d_aligned_taps[2] = 0;
@@ -77,14 +77,14 @@ gr_fir_fcc_simd::set_taps (const std::vector<gr_complex> &inew_taps)
// Make 4 copies of the coefficients, one for each data alignment
// Note use of special 16-byte-aligned version of calloc()
-
+
for (unsigned i = 0; i < 4; i++){
free16Align (d_aligned_taps[i]); // free old value
// this works because the bit representation of a IEEE floating point
// +zero is all zeros. If you're using a different representation,
// you'll need to explictly set the result to the appropriate 0.0 value.
-
+
d_aligned_taps[i] = (float *) calloc16Align (1 + (len + i - 1) / 2,
2 * 4 * sizeof (float));
if (d_aligned_taps[i] == 0){
@@ -99,7 +99,7 @@ gr_fir_fcc_simd::set_taps (const std::vector<gr_complex> &inew_taps)
}
}
-gr_complex
+gr_complex
gr_fir_fcc_simd::filter (const float input[])
{
if (ntaps () == 0)
@@ -108,11 +108,11 @@ gr_fir_fcc_simd::filter (const float input[])
// Round input data address down to 16 byte boundary
// NB: depending on the alignment of input[], memory
- // before input[] will be accessed. The contents don't matter since
+ // before input[] will be accessed. The contents don't matter since
// they'll be multiplied by zero coefficients. I can't conceive of any
// situation where this could cause a segfault since memory protection
// in the x86 machines is done on much larger boundaries.
-
+
const float *ar = (float *)((unsigned long) input & ~15);
// Choose one of 4 sets of pre-shifted coefficients. al is both the
diff --git a/gnuradio-core/src/lib/filter/gr_fir_fcc_simd.h b/gnuradio-core/src/lib/filter/gr_fir_fcc_simd.h
index 7be3776e3..b7463070b 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_fcc_simd.h
+++ b/gnuradio-core/src/lib/filter/gr_fir_fcc_simd.h
@@ -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,
diff --git a/gnuradio-core/src/lib/filter/gr_fir_fcc_x86.cc b/gnuradio-core/src/lib/filter/gr_fir_fcc_x86.cc
index 8179f56cd..d9904133c 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_fcc_x86.cc
+++ b/gnuradio-core/src/lib/filter/gr_fir_fcc_x86.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,
@@ -29,9 +29,9 @@
/*
* --- 3DNow! version ---
*/
-
+
gr_fir_fcc_3dnow::gr_fir_fcc_3dnow ()
- : gr_fir_fcc_simd ()
+ : gr_fir_fcc_simd ()
{
d_fcomplex_dotprod = fcomplex_dotprod_3dnow;
}
@@ -46,7 +46,7 @@ gr_fir_fcc_3dnow::gr_fir_fcc_3dnow (const std::vector<gr_complex> &new_taps)
/*
* --- SSE version ---
*/
-
+
gr_fir_fcc_sse::gr_fir_fcc_sse ()
: gr_fir_fcc_simd ()
{
diff --git a/gnuradio-core/src/lib/filter/gr_fir_fcc_x86.h b/gnuradio-core/src/lib/filter/gr_fir_fcc_x86.h
index 98ace66de..3fc6c4855 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_fcc_x86.h
+++ b/gnuradio-core/src/lib/filter/gr_fir_fcc_x86.h
@@ -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,
diff --git a/gnuradio-core/src/lib/filter/gr_fir_fff_altivec.cc b/gnuradio-core/src/lib/filter/gr_fir_fff_altivec.cc
index 996e80cd2..b81283ce5 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_fff_altivec.cc
+++ b/gnuradio-core/src/lib/filter/gr_fir_fff_altivec.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -74,11 +74,11 @@ gr_fir_fff_altivec::set_taps(const std::vector<float> &inew_taps)
}
-float
+float
gr_fir_fff_altivec::filter (const float input[])
{
if (d_naligned_taps == 0)
return 0.0;
-
+
return dotprod_fff_altivec(input, d_aligned_taps, d_naligned_taps);
}
diff --git a/gnuradio-core/src/lib/filter/gr_fir_fff_altivec.h b/gnuradio-core/src/lib/filter/gr_fir_fff_altivec.h
index 29bb3a899..a3d4a2aae 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_fff_altivec.h
+++ b/gnuradio-core/src/lib/filter/gr_fir_fff_altivec.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
diff --git a/gnuradio-core/src/lib/filter/gr_fir_fff_armv7_a.cc b/gnuradio-core/src/lib/filter/gr_fir_fff_armv7_a.cc
index 5a62b1049..b43725420 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_fff_armv7_a.cc
+++ b/gnuradio-core/src/lib/filter/gr_fir_fff_armv7_a.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2009 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -76,11 +76,11 @@ gr_fir_fff_armv7_a::set_taps(const std::vector<float> &inew_taps)
}
-float
+float
gr_fir_fff_armv7_a::filter (const float input[])
{
if (d_naligned_taps == 0)
return 0.0;
-
+
return dotprod_fff_armv7_a(input, d_aligned_taps, d_naligned_taps);
}
diff --git a/gnuradio-core/src/lib/filter/gr_fir_fff_armv7_a.h b/gnuradio-core/src/lib/filter/gr_fir_fff_armv7_a.h
index 5c80c930f..78863d286 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_fff_armv7_a.h
+++ b/gnuradio-core/src/lib/filter/gr_fir_fff_armv7_a.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2009 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
diff --git a/gnuradio-core/src/lib/filter/gr_fir_fff_simd.cc b/gnuradio-core/src/lib/filter/gr_fir_fff_simd.cc
index adccc7b52..d6c28ed45 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_fff_simd.cc
+++ b/gnuradio-core/src/lib/filter/gr_fir_fff_simd.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,
@@ -37,7 +37,7 @@ gr_fir_fff_simd::gr_fir_fff_simd ()
// cerr << "@@@ gr_fir_fff_simd\n";
d_float_dotprod = 0;
-
+
d_aligned_taps[0] = 0;
d_aligned_taps[1] = 0;
d_aligned_taps[2] = 0;
@@ -50,7 +50,7 @@ gr_fir_fff_simd::gr_fir_fff_simd (const std::vector<float> &new_taps)
// cerr << "@@@ gr_fir_fff_simd\n";
d_float_dotprod = 0;
-
+
d_aligned_taps[0] = 0;
d_aligned_taps[1] = 0;
d_aligned_taps[2] = 0;
@@ -76,14 +76,14 @@ gr_fir_fff_simd::set_taps (const std::vector<float> &inew_taps)
// Make 4 copies of the coefficients, one for each data alignment
// Note use of special 16-byte-aligned version of calloc()
-
+
for (unsigned i = 0; i < 4; i++){
free16Align (d_aligned_taps[i]); // free old value
// this works because the bit representation of a IEEE floating point
// +zero is all zeros. If you're using a different representation,
// you'll need to explictly set the result to the appropriate 0.0 value.
-
+
d_aligned_taps[i] = (float *) calloc16Align (1 + (len + i - 1) / 4,
4 * sizeof (float));
if (d_aligned_taps[i] == 0){
@@ -96,7 +96,7 @@ gr_fir_fff_simd::set_taps (const std::vector<float> &inew_taps)
}
}
-float
+float
gr_fir_fff_simd::filter (const float input[])
{
if (ntaps () == 0)
@@ -105,11 +105,11 @@ gr_fir_fff_simd::filter (const float input[])
// Round input data address down to 16 byte boundary
// NB: depending on the alignment of input[], memory
- // before input[] will be accessed. The contents don't matter since
+ // before input[] will be accessed. The contents don't matter since
// they'll be multiplied by zero coefficients. I can't conceive of any
// situation where this could cause a segfault since memory protection
// in the x86 machines is done on much larger boundaries.
-
+
const float *ar = (float *)((unsigned long) input & ~15);
// Choose one of 4 sets of pre-shifted coefficients. al is both the
@@ -125,7 +125,7 @@ gr_fir_fff_simd::filter (const float input[])
// cerr << "ar: " << ar << " d_aligned_taps[ar]: " << d_aligned_taps[al]
// << " (ntaps() + al - 1)/4 + 1: " << (ntaps() + al -1) / 4 + 1 << endl;
-
+
float r = d_float_dotprod (ar, d_aligned_taps[al], (ntaps() + al - 1) / 4 + 1);
// cerr << "result = " << r << endl;
diff --git a/gnuradio-core/src/lib/filter/gr_fir_fff_simd.h b/gnuradio-core/src/lib/filter/gr_fir_fff_simd.h
index 781e4e7b9..9d6106266 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_fff_simd.h
+++ b/gnuradio-core/src/lib/filter/gr_fir_fff_simd.h
@@ -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,
diff --git a/gnuradio-core/src/lib/filter/gr_fir_fff_x86.cc b/gnuradio-core/src/lib/filter/gr_fir_fff_x86.cc
index 9d8575f0b..40ac266be 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_fff_x86.cc
+++ b/gnuradio-core/src/lib/filter/gr_fir_fff_x86.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,
@@ -29,9 +29,9 @@
/*
* --- 3DNow! version ---
*/
-
+
gr_fir_fff_3dnow::gr_fir_fff_3dnow ()
- : gr_fir_fff_simd ()
+ : gr_fir_fff_simd ()
{
d_float_dotprod = float_dotprod_3dnow;
}
@@ -46,7 +46,7 @@ gr_fir_fff_3dnow::gr_fir_fff_3dnow (const std::vector<float> &new_taps)
/*
* --- SSE version ---
*/
-
+
gr_fir_fff_sse::gr_fir_fff_sse ()
: gr_fir_fff_simd ()
{
diff --git a/gnuradio-core/src/lib/filter/gr_fir_fff_x86.h b/gnuradio-core/src/lib/filter/gr_fir_fff_x86.h
index 4e2f33181..8d451f0c9 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_fff_x86.h
+++ b/gnuradio-core/src/lib/filter/gr_fir_fff_x86.h
@@ -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,
diff --git a/gnuradio-core/src/lib/filter/gr_fir_filter_XXX.cc.t b/gnuradio-core/src/lib/filter/gr_fir_filter_XXX.cc.t
index f7458e743..39bc75630 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_filter_XXX.cc.t
+++ b/gnuradio-core/src/lib/filter/gr_fir_filter_XXX.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
diff --git a/gnuradio-core/src/lib/filter/gr_fir_filter_XXX.h.t b/gnuradio-core/src/lib/filter/gr_fir_filter_XXX.h.t
index f638e7bb5..b32e04bd3 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_filter_XXX.h.t
+++ b/gnuradio-core/src/lib/filter/gr_fir_filter_XXX.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/filter/gr_fir_filter_XXX.i.t b/gnuradio-core/src/lib/filter/gr_fir_filter_XXX.i.t
index fb4ff95af..d9dc86180 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_filter_XXX.i.t
+++ b/gnuradio-core/src/lib/filter/gr_fir_filter_XXX.i.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/filter/gr_fir_fsf_simd.cc b/gnuradio-core/src/lib/filter/gr_fir_fsf_simd.cc
index f6c53f4a2..a49503e6a 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_fsf_simd.cc
+++ b/gnuradio-core/src/lib/filter/gr_fir_fsf_simd.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,
@@ -37,7 +37,7 @@ gr_fir_fsf_simd::gr_fir_fsf_simd ()
// cerr << "@@@ gr_fir_fsf_simd\n";
d_float_dotprod = 0;
-
+
d_aligned_taps[0] = 0;
d_aligned_taps[1] = 0;
d_aligned_taps[2] = 0;
@@ -50,7 +50,7 @@ gr_fir_fsf_simd::gr_fir_fsf_simd (const std::vector<float> &new_taps)
// cerr << "@@@ gr_fir_fsf_simd\n";
d_float_dotprod = 0;
-
+
d_aligned_taps[0] = 0;
d_aligned_taps[1] = 0;
d_aligned_taps[2] = 0;
@@ -75,14 +75,14 @@ gr_fir_fsf_simd::set_taps (const std::vector<float> &inew_taps)
// Make 4 copies of the coefficients, one for each data alignment
// Note use of special 16-byte-aligned version of calloc()
-
+
for (unsigned i = 0; i < 4; i++){
free16Align (d_aligned_taps[i]); // free old value
// this works because the bit representation of a IEEE floating point
// +zero is all zeros. If you're using a different representation,
// you'll need to explictly set the result to the appropriate 0.0 value.
-
+
d_aligned_taps[i] = (float *) calloc16Align (1 + (len + i - 1) / 4,
4 * sizeof (float));
if (d_aligned_taps[i] == 0){
@@ -95,7 +95,7 @@ gr_fir_fsf_simd::set_taps (const std::vector<float> &inew_taps)
}
}
-short
+short
gr_fir_fsf_simd::filter (const float input[])
{
if (ntaps () == 0)
@@ -104,11 +104,11 @@ gr_fir_fsf_simd::filter (const float input[])
// Round input data address down to 16 byte boundary
// NB: depending on the alignment of input[], memory
- // before input[] will be accessed. The contents don't matter since
+ // before input[] will be accessed. The contents don't matter since
// they'll be multiplied by zero coefficients. I can't conceive of any
// situation where this could cause a segfault since memory protection
// in the x86 machines is done on much larger boundaries.
-
+
const float *ar = (float *)((unsigned long) input & ~15);
// Choose one of 4 sets of pre-shifted coefficients. al is both the
@@ -124,7 +124,7 @@ gr_fir_fsf_simd::filter (const float input[])
// cerr << "ar: " << ar << " d_aligned_taps[ar]: " << d_aligned_taps[al]
// << " (ntaps() + al - 1)/4 + 1: " << (ntaps() + al -1) / 4 + 1 << endl;
-
+
float r = d_float_dotprod (ar, d_aligned_taps[al], (ntaps() + al - 1) / 4 + 1);
// cerr << "result = " << r << endl;
diff --git a/gnuradio-core/src/lib/filter/gr_fir_fsf_simd.h b/gnuradio-core/src/lib/filter/gr_fir_fsf_simd.h
index 6fcb6bd35..d63e9dd17 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_fsf_simd.h
+++ b/gnuradio-core/src/lib/filter/gr_fir_fsf_simd.h
@@ -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,
diff --git a/gnuradio-core/src/lib/filter/gr_fir_fsf_x86.cc b/gnuradio-core/src/lib/filter/gr_fir_fsf_x86.cc
index 291bf3136..40ba17d3a 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_fsf_x86.cc
+++ b/gnuradio-core/src/lib/filter/gr_fir_fsf_x86.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,
@@ -29,9 +29,9 @@
/*
* --- 3DNow! version ---
*/
-
+
gr_fir_fsf_3dnow::gr_fir_fsf_3dnow ()
- : gr_fir_fsf_simd ()
+ : gr_fir_fsf_simd ()
{
d_float_dotprod = float_dotprod_3dnow;
}
@@ -46,7 +46,7 @@ gr_fir_fsf_3dnow::gr_fir_fsf_3dnow (const std::vector<float> &new_taps)
/*
* --- SSE version ---
*/
-
+
gr_fir_fsf_sse::gr_fir_fsf_sse ()
: gr_fir_fsf_simd ()
{
diff --git a/gnuradio-core/src/lib/filter/gr_fir_fsf_x86.h b/gnuradio-core/src/lib/filter/gr_fir_fsf_x86.h
index 0e11059b3..df664d5e2 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_fsf_x86.h
+++ b/gnuradio-core/src/lib/filter/gr_fir_fsf_x86.h
@@ -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,
diff --git a/gnuradio-core/src/lib/filter/gr_fir_scc_simd.cc b/gnuradio-core/src/lib/filter/gr_fir_scc_simd.cc
index 1a5569306..0b2dd7e61 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_scc_simd.cc
+++ b/gnuradio-core/src/lib/filter/gr_fir_scc_simd.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,
@@ -38,7 +38,7 @@ gr_fir_scc_simd::gr_fir_scc_simd ()
// cerr << "@@@ gr_fir_scc_simd\n";
d_complex_dotprod = 0;
-
+
d_aligned_taps[0] = 0;
d_aligned_taps[1] = 0;
d_aligned_taps[2] = 0;
@@ -51,7 +51,7 @@ gr_fir_scc_simd::gr_fir_scc_simd (const std::vector<gr_complex> &new_taps)
// cerr << "@@@ gr_fir_scc_simd\n";
d_complex_dotprod = 0;
-
+
d_aligned_taps[0] = 0;
d_aligned_taps[1] = 0;
d_aligned_taps[2] = 0;
@@ -78,14 +78,14 @@ gr_fir_scc_simd::set_taps (const std::vector<gr_complex> &inew_taps)
// Make 4 copies of the coefficients, one for each data alignment
// Note use of special 16-byte-aligned version of calloc()
-
+
for (unsigned i = 0; i < 4; i++){
free16Align (d_aligned_taps[i]); // free old value
// this works because the bit representation of a IEEE floating point
// +zero is all zeros. If you're using a different representation,
// you'll need to explictly set the result to the appropriate 0.0 value.
-
+
d_aligned_taps[i] = (float *) calloc16Align (1 + (len + i - 1) / 2,
2 * 4 * sizeof (float));
if (d_aligned_taps[i] == 0){
@@ -100,7 +100,7 @@ gr_fir_scc_simd::set_taps (const std::vector<gr_complex> &inew_taps)
}
}
-gr_complex
+gr_complex
gr_fir_scc_simd::filter (const short input[])
{
if (ntaps () == 0)
@@ -109,11 +109,11 @@ gr_fir_scc_simd::filter (const short input[])
// Round input data address down to 8 byte boundary
// NB: depending on the alignment of input[], memory
- // before input[] will be accessed. The contents don't matter since
+ // before input[] will be accessed. The contents don't matter since
// they'll be multiplied by zero coefficients. I can't conceive of any
// situation where this could cause a segfault since memory protection
// in the x86 machines is done on much larger boundaries.
-
+
const short *ar = (short *)((unsigned long) input & ~7);
// Choose one of 4 sets of pre-shifted coefficients. al is both the
diff --git a/gnuradio-core/src/lib/filter/gr_fir_scc_simd.h b/gnuradio-core/src/lib/filter/gr_fir_scc_simd.h
index 9dced1578..72c15f93b 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_scc_simd.h
+++ b/gnuradio-core/src/lib/filter/gr_fir_scc_simd.h
@@ -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,
diff --git a/gnuradio-core/src/lib/filter/gr_fir_scc_x86.cc b/gnuradio-core/src/lib/filter/gr_fir_scc_x86.cc
index 0800ae43c..ab0668c63 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_scc_x86.cc
+++ b/gnuradio-core/src/lib/filter/gr_fir_scc_x86.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,
@@ -29,9 +29,9 @@
/*
* --- 3DNow! version ---
*/
-
+
gr_fir_scc_3dnow::gr_fir_scc_3dnow ()
- : gr_fir_scc_simd ()
+ : gr_fir_scc_simd ()
{
d_complex_dotprod = complex_dotprod_3dnow;
}
@@ -46,9 +46,9 @@ gr_fir_scc_3dnow::gr_fir_scc_3dnow (const std::vector<gr_complex> &new_taps)
/*
* --- 3DNow! Ext version ---
*/
-
+
gr_fir_scc_3dnowext::gr_fir_scc_3dnowext ()
- : gr_fir_scc_simd ()
+ : gr_fir_scc_simd ()
{
d_complex_dotprod = complex_dotprod_3dnowext;
}
@@ -63,7 +63,7 @@ gr_fir_scc_3dnowext::gr_fir_scc_3dnowext (const std::vector<gr_complex> &new_tap
/*
* --- SSE version ---
*/
-
+
gr_fir_scc_sse::gr_fir_scc_sse ()
: gr_fir_scc_simd ()
{
diff --git a/gnuradio-core/src/lib/filter/gr_fir_scc_x86.h b/gnuradio-core/src/lib/filter/gr_fir_scc_x86.h
index 484bdc5a0..85a63251b 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_scc_x86.h
+++ b/gnuradio-core/src/lib/filter/gr_fir_scc_x86.h
@@ -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,
diff --git a/gnuradio-core/src/lib/filter/gr_fir_sysconfig_armv7_a.cc b/gnuradio-core/src/lib/filter/gr_fir_sysconfig_armv7_a.cc
index 71e622d37..70adbc092 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_sysconfig_armv7_a.cc
+++ b/gnuradio-core/src/lib/filter/gr_fir_sysconfig_armv7_a.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2002,2008,2009,2011 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,
@@ -97,7 +97,7 @@ make_gr_fir_scc_altivec(const std::vector<gr_complex> &taps)
* Return instances of the fastest arm versions of these classes.
*
* check CPUID, if has armv7-a, return armv7-a version,
- * else return generic version. This will break
+ * else return generic version. This will break
* when someone makes an armv7-a without a NEON
* coprocessor.
* ----------------------------------------------------------------
@@ -159,7 +159,7 @@ gr_fir_sysconfig_armv7_a::create_gr_fir_ccc (const std::vector<gr_complex> &taps
return make_gr_fir_ccc_altivec (taps);
}
#endif
-
+
if (0 && first){
cerr << ">>> gr_fir_ccc: handing off to parent class\n";
first = false;
@@ -179,7 +179,7 @@ gr_fir_sysconfig_armv7_a::create_gr_fir_fff (const std::vector<float> &taps)
}
return make_gr_fir_fff_armv7_a (taps);
}
-
+
if (0 && first){
cerr << ">>> gr_fir_fff: handing off to parent class\n";
first = false;
@@ -201,7 +201,7 @@ gr_fir_sysconfig_armv7_a::create_gr_fir_fsf (const std::vector<float> &taps)
return make_gr_fir_fsf_altivec (taps);
}
#endif
-
+
if (0 && first){
cerr << ">>> gr_fir_fsf: handing off to parent class\n";
first = false;
@@ -238,7 +238,7 @@ gr_fir_sysconfig_armv7_a::create_gr_fir_scc (const std::vector<gr_complex> &taps
* ----------------------------------------------------------------
*/
-void
+void
gr_fir_sysconfig_armv7_a::get_gr_fir_ccf_info (std::vector<gr_fir_ccf_info> *info)
{
// invoke parent..
@@ -253,7 +253,7 @@ gr_fir_sysconfig_armv7_a::get_gr_fir_ccf_info (std::vector<gr_fir_ccf_info> *inf
}
}
-void
+void
gr_fir_sysconfig_armv7_a::get_gr_fir_fcc_info (std::vector<gr_fir_fcc_info> *info)
{
// invoke parent..
@@ -270,7 +270,7 @@ gr_fir_sysconfig_armv7_a::get_gr_fir_fcc_info (std::vector<gr_fir_fcc_info> *inf
#endif
}
-void
+void
gr_fir_sysconfig_armv7_a::get_gr_fir_ccc_info (std::vector<gr_fir_ccc_info> *info)
{
// invoke parent..
@@ -287,7 +287,7 @@ gr_fir_sysconfig_armv7_a::get_gr_fir_ccc_info (std::vector<gr_fir_ccc_info> *inf
#endif
}
-void
+void
gr_fir_sysconfig_armv7_a::get_gr_fir_fff_info (std::vector<gr_fir_fff_info> *info)
{
// invoke parent..
@@ -302,7 +302,7 @@ gr_fir_sysconfig_armv7_a::get_gr_fir_fff_info (std::vector<gr_fir_fff_info> *inf
}
}
-void
+void
gr_fir_sysconfig_armv7_a::get_gr_fir_fsf_info (std::vector<gr_fir_fsf_info> *info)
{
// invoke parent..
@@ -319,7 +319,7 @@ gr_fir_sysconfig_armv7_a::get_gr_fir_fsf_info (std::vector<gr_fir_fsf_info> *inf
#endif
}
-void
+void
gr_fir_sysconfig_armv7_a::get_gr_fir_scc_info (std::vector<gr_fir_scc_info> *info)
{
// invoke parent..
diff --git a/gnuradio-core/src/lib/filter/gr_fir_sysconfig_armv7_a.h b/gnuradio-core/src/lib/filter/gr_fir_sysconfig_armv7_a.h
index 69ee46019..7295475f6 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_sysconfig_armv7_a.h
+++ b/gnuradio-core/src/lib/filter/gr_fir_sysconfig_armv7_a.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2002,2008,2009 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,
diff --git a/gnuradio-core/src/lib/filter/gr_fir_sysconfig_powerpc.cc b/gnuradio-core/src/lib/filter/gr_fir_sysconfig_powerpc.cc
index 34d3f8135..f706bd5bf 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_sysconfig_powerpc.cc
+++ b/gnuradio-core/src/lib/filter/gr_fir_sysconfig_powerpc.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2002,2008 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,
@@ -160,7 +160,7 @@ gr_fir_sysconfig_powerpc::create_gr_fir_ccc (const std::vector<gr_complex> &taps
return make_gr_fir_ccc_altivec (taps);
}
#endif
-
+
if (0 && first){
cerr << ">>> gr_fir_ccc: handing off to parent class\n";
first = false;
@@ -180,7 +180,7 @@ gr_fir_sysconfig_powerpc::create_gr_fir_fff (const std::vector<float> &taps)
}
return make_gr_fir_fff_altivec (taps);
}
-
+
if (0 && first){
cerr << ">>> gr_fir_fff: handing off to parent class\n";
first = false;
@@ -202,7 +202,7 @@ gr_fir_sysconfig_powerpc::create_gr_fir_fsf (const std::vector<float> &taps)
return make_gr_fir_fsf_altivec (taps);
}
#endif
-
+
if (0 && first){
cerr << ">>> gr_fir_fsf: handing off to parent class\n";
first = false;
@@ -239,13 +239,13 @@ gr_fir_sysconfig_powerpc::create_gr_fir_scc (const std::vector<gr_complex> &taps
* ----------------------------------------------------------------
*/
-void
+void
gr_fir_sysconfig_powerpc::get_gr_fir_ccf_info (std::vector<gr_fir_ccf_info> *info)
{
// invoke parent..
gr_fir_sysconfig_generic::get_gr_fir_ccf_info (info);
-#if 0
+#if 0
// add our stuff...
gr_fir_ccf_info t;
if (gr_cpu::has_altivec ()){
@@ -256,7 +256,7 @@ gr_fir_sysconfig_powerpc::get_gr_fir_ccf_info (std::vector<gr_fir_ccf_info> *inf
#endif
}
-void
+void
gr_fir_sysconfig_powerpc::get_gr_fir_fcc_info (std::vector<gr_fir_fcc_info> *info)
{
// invoke parent..
@@ -273,7 +273,7 @@ gr_fir_sysconfig_powerpc::get_gr_fir_fcc_info (std::vector<gr_fir_fcc_info> *inf
#endif
}
-void
+void
gr_fir_sysconfig_powerpc::get_gr_fir_ccc_info (std::vector<gr_fir_ccc_info> *info)
{
// invoke parent..
@@ -290,7 +290,7 @@ gr_fir_sysconfig_powerpc::get_gr_fir_ccc_info (std::vector<gr_fir_ccc_info> *inf
#endif
}
-void
+void
gr_fir_sysconfig_powerpc::get_gr_fir_fff_info (std::vector<gr_fir_fff_info> *info)
{
// invoke parent..
@@ -305,7 +305,7 @@ gr_fir_sysconfig_powerpc::get_gr_fir_fff_info (std::vector<gr_fir_fff_info> *inf
}
}
-void
+void
gr_fir_sysconfig_powerpc::get_gr_fir_fsf_info (std::vector<gr_fir_fsf_info> *info)
{
// invoke parent..
@@ -322,7 +322,7 @@ gr_fir_sysconfig_powerpc::get_gr_fir_fsf_info (std::vector<gr_fir_fsf_info> *inf
#endif
}
-void
+void
gr_fir_sysconfig_powerpc::get_gr_fir_scc_info (std::vector<gr_fir_scc_info> *info)
{
// invoke parent..
diff --git a/gnuradio-core/src/lib/filter/gr_fir_sysconfig_powerpc.h b/gnuradio-core/src/lib/filter/gr_fir_sysconfig_powerpc.h
index d6be7653f..09a7a0ba0 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_sysconfig_powerpc.h
+++ b/gnuradio-core/src/lib/filter/gr_fir_sysconfig_powerpc.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2002,2008 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,
diff --git a/gnuradio-core/src/lib/filter/gr_fir_sysconfig_x86.cc b/gnuradio-core/src/lib/filter/gr_fir_sysconfig_x86.cc
index 35fd08661..97b810699 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_sysconfig_x86.cc
+++ b/gnuradio-core/src/lib/filter/gr_fir_sysconfig_x86.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,
@@ -256,7 +256,7 @@ gr_fir_sysconfig_x86::create_gr_fir_ccc (const std::vector<gr_complex> &taps)
}
return make_gr_fir_ccc_sse (taps);
}
-
+
if (first){
cerr << ">>> gr_fir_ccc: handing off to parent class\n";
first = false;
@@ -284,7 +284,7 @@ gr_fir_sysconfig_x86::create_gr_fir_fff (const std::vector<float> &taps)
}
return make_gr_fir_fff_sse (taps);
}
-
+
if (first){
cerr << ">>> gr_fir_fff: handing off to parent class\n";
first = false;
@@ -312,7 +312,7 @@ gr_fir_sysconfig_x86::create_gr_fir_fsf (const std::vector<float> &taps)
}
return make_gr_fir_fsf_sse (taps);
}
-
+
if (first){
cerr << ">>> gr_fir_fsf: handing off to parent class\n";
first = false;
@@ -331,12 +331,12 @@ gr_fir_sysconfig_x86::create_gr_fir_sss (const std::vector<short> &taps)
cerr << ">>> gr_fir_sss: using SSE2\n";
return make_gr_fir_sss_sse2 (taps);
}
-
+
if (gr_cpu::has_mmx ()){
cerr << ">>> gr_fir_sss: using MMX\n";
return make_gr_fir_sss_mmx (taps);
}
-
+
cerr << ">>> gr_fir_sss: handing off to parent class\n";
return gr_fir_sysconfig_generic::create_gr_fir_sss (taps);
}
@@ -384,7 +384,7 @@ gr_fir_sysconfig_x86::create_gr_fir_scc (const std::vector<gr_complex> &taps)
* ----------------------------------------------------------------
*/
-void
+void
gr_fir_sysconfig_x86::get_gr_fir_ccf_info (std::vector<gr_fir_ccf_info> *info)
{
gr_fir_ccf_info t;
@@ -406,7 +406,7 @@ gr_fir_sysconfig_x86::get_gr_fir_ccf_info (std::vector<gr_fir_ccf_info> *info)
}
}
-void
+void
gr_fir_sysconfig_x86::get_gr_fir_fcc_info (std::vector<gr_fir_fcc_info> *info)
{
gr_fir_fcc_info t;
@@ -428,11 +428,11 @@ gr_fir_sysconfig_x86::get_gr_fir_fcc_info (std::vector<gr_fir_fcc_info> *info)
}
}
-void
+void
gr_fir_sysconfig_x86::get_gr_fir_ccc_info (std::vector<gr_fir_ccc_info> *info)
{
gr_fir_ccc_info t;
-
+
// invoke parent..
gr_fir_sysconfig_generic::get_gr_fir_ccc_info (info);
@@ -456,11 +456,11 @@ gr_fir_sysconfig_x86::get_gr_fir_ccc_info (std::vector<gr_fir_ccc_info> *info)
}
}
-void
+void
gr_fir_sysconfig_x86::get_gr_fir_fff_info (std::vector<gr_fir_fff_info> *info)
{
gr_fir_fff_info t;
-
+
// invoke parent..
gr_fir_sysconfig_generic::get_gr_fir_fff_info (info);
@@ -478,11 +478,11 @@ gr_fir_sysconfig_x86::get_gr_fir_fff_info (std::vector<gr_fir_fff_info> *info)
}
}
-void
+void
gr_fir_sysconfig_x86::get_gr_fir_fsf_info (std::vector<gr_fir_fsf_info> *info)
{
gr_fir_fsf_info t;
-
+
// invoke parent..
gr_fir_sysconfig_generic::get_gr_fir_fsf_info (info);
@@ -500,7 +500,7 @@ gr_fir_sysconfig_x86::get_gr_fir_fsf_info (std::vector<gr_fir_fsf_info> *info)
}
}
-void
+void
gr_fir_sysconfig_x86::get_gr_fir_scc_info (std::vector<gr_fir_scc_info> *info)
{
gr_fir_scc_info t;
@@ -529,11 +529,11 @@ gr_fir_sysconfig_x86::get_gr_fir_scc_info (std::vector<gr_fir_scc_info> *info)
}
#if 0
-void
+void
gr_fir_sysconfig_x86::get_gr_fir_sss_info (std::vector<gr_fir_sss_info> *info)
{
gr_fir_sss_info t;
-
+
// invoke parent..
gr_fir_sysconfig_generic::get_gr_fir_sss_info (info);
diff --git a/gnuradio-core/src/lib/filter/gr_fir_sysconfig_x86.h b/gnuradio-core/src/lib/filter/gr_fir_sysconfig_x86.h
index 49899d895..ebb399c8b 100644
--- a/gnuradio-core/src/lib/filter/gr_fir_sysconfig_x86.h
+++ b/gnuradio-core/src/lib/filter/gr_fir_sysconfig_x86.h
@@ -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,
diff --git a/gnuradio-core/src/lib/filter/gr_fractional_interpolator_cc.i b/gnuradio-core/src/lib/filter/gr_fractional_interpolator_cc.i
index 2803aae13..d7341176a 100644
--- a/gnuradio-core/src/lib/filter/gr_fractional_interpolator_cc.i
+++ b/gnuradio-core/src/lib/filter/gr_fractional_interpolator_cc.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007 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,
diff --git a/gnuradio-core/src/lib/filter/gr_fractional_interpolator_ff.i b/gnuradio-core/src/lib/filter/gr_fractional_interpolator_ff.i
index 9ae3e2ad4..4ec7c85cf 100644
--- a/gnuradio-core/src/lib/filter/gr_fractional_interpolator_ff.i
+++ b/gnuradio-core/src/lib/filter/gr_fractional_interpolator_ff.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007 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,
diff --git a/gnuradio-core/src/lib/filter/gr_freq_xlating_fir_filter_XXX.cc.t b/gnuradio-core/src/lib/filter/gr_freq_xlating_fir_filter_XXX.cc.t
index 656b3402a..3d65f872e 100644
--- a/gnuradio-core/src/lib/filter/gr_freq_xlating_fir_filter_XXX.cc.t
+++ b/gnuradio-core/src/lib/filter/gr_freq_xlating_fir_filter_XXX.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2003,2010 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,
@@ -22,7 +22,7 @@
/*
* WARNING: This file is automatically generated by
- * generate_gr_freq_xlating_fir_filter_XXX.py
+ * generate_gr_freq_xlating_fir_filter_XXX.py
* Any changes made to this file will be overwritten.
*/
@@ -35,7 +35,7 @@
#include <gr_fir_util.h>
#include <gr_io_signature.h>
-@SPTR_NAME@
+@SPTR_NAME@
gr_make_@BASE_NAME@ (int decimation, const std::vector<@TAP_TYPE@> &taps,
double center_freq, double sampling_freq)
{
@@ -118,6 +118,6 @@ int
out[i] = d_r.rotate (d_composite_fir->filter (&in[j]));
j += decimation ();
}
-
+
return noutput_items;
}
diff --git a/gnuradio-core/src/lib/filter/gr_freq_xlating_fir_filter_XXX.h.t b/gnuradio-core/src/lib/filter/gr_freq_xlating_fir_filter_XXX.h.t
index bb05c138b..97d20e04f 100644
--- a/gnuradio-core/src/lib/filter/gr_freq_xlating_fir_filter_XXX.h.t
+++ b/gnuradio-core/src/lib/filter/gr_freq_xlating_fir_filter_XXX.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2002,2004 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,
@@ -38,10 +38,10 @@ typedef boost::shared_ptr<@NAME@> @SPTR_NAME@;
/*!
* Construct a FIR filter with the given taps and a composite frequency
- * translation that shifts center_freq down to zero Hz. The frequency
+ * translation that shifts center_freq down to zero Hz. The frequency
* translation logically comes before the filtering operation.
*/
-GR_CORE_API @SPTR_NAME@
+GR_CORE_API @SPTR_NAME@
gr_make_@BASE_NAME@ (int decimation, const std::vector<@TAP_TYPE@> &taps,
double center_freq, double sampling_freq);
@@ -74,7 +74,7 @@ class GR_CORE_API @NAME@ : public gr_sync_decimator
gr_vector_void_star &output_items);
private:
- friend GR_CORE_API @SPTR_NAME@
+ friend GR_CORE_API @SPTR_NAME@
gr_make_@BASE_NAME@ (int decimation, const std::vector<@TAP_TYPE@> &taps,
double center_freq, double sampling_freq);
@@ -90,7 +90,7 @@ class GR_CORE_API @NAME@ : public gr_sync_decimator
/*!
* Construct a FIR filter with the given taps and a composite frequency
- * translation that shifts center_freq down to zero Hz. The frequency
+ * translation that shifts center_freq down to zero Hz. The frequency
* translation logically comes before the filtering operation.
*/
@NAME@ (int decimation,
diff --git a/gnuradio-core/src/lib/filter/gr_freq_xlating_fir_filter_XXX.i.t b/gnuradio-core/src/lib/filter/gr_freq_xlating_fir_filter_XXX.i.t
index bfdca3b72..ac6c8c9e1 100644
--- a/gnuradio-core/src/lib/filter/gr_freq_xlating_fir_filter_XXX.i.t
+++ b/gnuradio-core/src/lib/filter/gr_freq_xlating_fir_filter_XXX.i.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2003,2004 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,
@@ -28,7 +28,7 @@
GR_SWIG_BLOCK_MAGIC(gr,@BASE_NAME@)
-@SPTR_NAME@
+@SPTR_NAME@
gr_make_@BASE_NAME@ (int decimation, const std::vector<@TAP_TYPE@> &taps,
double center_freq, double sampling_freq);
diff --git a/gnuradio-core/src/lib/filter/gr_goertzel_fc.cc b/gnuradio-core/src/lib/filter/gr_goertzel_fc.cc
index 938a522f4..07bed8157 100644
--- a/gnuradio-core/src/lib/filter/gr_goertzel_fc.cc
+++ b/gnuradio-core/src/lib/filter/gr_goertzel_fc.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2010,2011 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,
@@ -28,8 +28,8 @@
#include <gr_io_signature.h>
// public constructor
-gr_goertzel_fc_sptr
-gr_make_goertzel_fc(int rate, int len, float freq)
+gr_goertzel_fc_sptr
+gr_make_goertzel_fc(int rate, int len, float freq)
{
return gnuradio::get_initial_sptr(new gr_goertzel_fc(rate, len, freq));
}
diff --git a/gnuradio-core/src/lib/filter/gr_goertzel_fc.h b/gnuradio-core/src/lib/filter/gr_goertzel_fc.h
index 6b5d8527c..5fb6e0ee0 100644
--- a/gnuradio-core/src/lib/filter/gr_goertzel_fc.h
+++ b/gnuradio-core/src/lib/filter/gr_goertzel_fc.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2011 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,
diff --git a/gnuradio-core/src/lib/filter/gr_hilbert_fc.cc b/gnuradio-core/src/lib/filter/gr_hilbert_fc.cc
index 7445f051e..385e24ad2 100644
--- a/gnuradio-core/src/lib/filter/gr_hilbert_fc.cc
+++ b/gnuradio-core/src/lib/filter/gr_hilbert_fc.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
@@ -30,7 +30,7 @@
#include <gr_fir_util.h>
// public constructor
-gr_hilbert_fc_sptr
+gr_hilbert_fc_sptr
gr_make_hilbert_fc (unsigned int ntaps)
{
return gnuradio::get_initial_sptr(new gr_hilbert_fc (ntaps));
diff --git a/gnuradio-core/src/lib/filter/gr_hilbert_fc.h b/gnuradio-core/src/lib/filter/gr_hilbert_fc.h
index ba73324ee..2bb5ff9e3 100644
--- a/gnuradio-core/src/lib/filter/gr_hilbert_fc.h
+++ b/gnuradio-core/src/lib/filter/gr_hilbert_fc.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/filter/gr_hilbert_fc.i b/gnuradio-core/src/lib/filter/gr_hilbert_fc.i
index 92da87031..91d4e23eb 100644
--- a/gnuradio-core/src/lib/filter/gr_hilbert_fc.i
+++ b/gnuradio-core/src/lib/filter/gr_hilbert_fc.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/filter/gr_iir_filter_ffd.cc b/gnuradio-core/src/lib/filter/gr_iir_filter_ffd.cc
index a41a4f7db..4da2aa310 100644
--- a/gnuradio-core/src/lib/filter/gr_iir_filter_ffd.cc
+++ b/gnuradio-core/src/lib/filter/gr_iir_filter_ffd.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
@@ -29,7 +29,7 @@
#include <stdio.h>
-gr_iir_filter_ffd_sptr
+gr_iir_filter_ffd_sptr
gr_make_iir_filter_ffd (const std::vector<double> &fftaps,
const std::vector<double> &fbtaps) throw (std::invalid_argument)
{
@@ -57,7 +57,7 @@ void
gr_iir_filter_ffd::set_taps (const std::vector<double> &fftaps,
const std::vector<double> &fbtaps) throw (std::invalid_argument)
{
-
+
d_new_fftaps = fftaps;
d_new_fbtaps = fbtaps;
d_updated = true;
diff --git a/gnuradio-core/src/lib/filter/gr_iir_filter_ffd.h b/gnuradio-core/src/lib/filter/gr_iir_filter_ffd.h
index 84be57768..ab7065e92 100644
--- a/gnuradio-core/src/lib/filter/gr_iir_filter_ffd.h
+++ b/gnuradio-core/src/lib/filter/gr_iir_filter_ffd.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -30,7 +30,7 @@
class gr_iir_filter_ffd;
typedef boost::shared_ptr<gr_iir_filter_ffd> gr_iir_filter_ffd_sptr;
-GR_CORE_API gr_iir_filter_ffd_sptr
+GR_CORE_API gr_iir_filter_ffd_sptr
gr_make_iir_filter_ffd (const std::vector<double> &fftaps,
const std::vector<double> &fbtaps) throw (std::invalid_argument);
@@ -41,7 +41,7 @@ gr_make_iir_filter_ffd (const std::vector<double> &fftaps,
* This filter uses the Direct Form I implementation, where
* \p fftaps contains the feed-forward taps, and \p fbtaps the feedback ones.
*
- *
+ *
* The input and output satisfy a difference equation of the form
\htmlonly
\f{
@@ -70,7 +70,7 @@ gr_make_iir_filter_ffd (const std::vector<double> &fftaps,
class GR_CORE_API gr_iir_filter_ffd : public gr_sync_block
{
private:
- friend GR_CORE_API gr_iir_filter_ffd_sptr
+ friend GR_CORE_API gr_iir_filter_ffd_sptr
gr_make_iir_filter_ffd (const std::vector<double> &fftaps,
const std::vector<double> &fbtaps) throw (std::invalid_argument);
diff --git a/gnuradio-core/src/lib/filter/gr_iir_filter_ffd.i b/gnuradio-core/src/lib/filter/gr_iir_filter_ffd.i
index b2af1bbf2..0a35ad89e 100644
--- a/gnuradio-core/src/lib/filter/gr_iir_filter_ffd.i
+++ b/gnuradio-core/src/lib/filter/gr_iir_filter_ffd.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -22,7 +22,7 @@
GR_SWIG_BLOCK_MAGIC(gr,iir_filter_ffd);
-gr_iir_filter_ffd_sptr
+gr_iir_filter_ffd_sptr
gr_make_iir_filter_ffd (const std::vector<double> &fftaps,
const std::vector<double> &fbtaps) throw (std::invalid_argument);
diff --git a/gnuradio-core/src/lib/filter/gr_interp_fir_filter_XXX.cc.t b/gnuradio-core/src/lib/filter/gr_interp_fir_filter_XXX.cc.t
index b90450c65..55297d1eb 100644
--- a/gnuradio-core/src/lib/filter/gr_interp_fir_filter_XXX.cc.t
+++ b/gnuradio-core/src/lib/filter/gr_interp_fir_filter_XXX.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
@@ -53,7 +53,7 @@
throw std::out_of_range ("interpolation must be > 0");
std::vector<@TAP_TYPE@> dummy_taps;
-
+
for (unsigned i = 0; i < interpolation; i++)
d_firs[i] = gr_fir_util::create_@FIR_TYPE@ (dummy_taps);
@@ -97,14 +97,14 @@ void
std::vector< std::vector <@TAP_TYPE@> > xtaps (nfilters);
for (int n = 0; n < nfilters; n++)
- xtaps[n].resize (nt);
+ xtaps[n].resize (nt);
for (int i = 0; i < (int) taps.size(); i++)
xtaps[i % nfilters][i / nfilters] = taps[i];
for (int n = 0; n < nfilters; n++)
d_firs[n]->set_taps (xtaps[n]);
-
+
set_history (nt);
d_updated = false;
@@ -135,7 +135,7 @@ int
int nfilters = interpolation ();
int ni = noutput_items / interpolation ();
-
+
for (int i = 0; i < ni; i++){
for (int nf = 0; nf < nfilters; nf++)
out[nf] = d_firs[nf]->filter (&in[i]);
diff --git a/gnuradio-core/src/lib/filter/gr_interp_fir_filter_XXX.h.t b/gnuradio-core/src/lib/filter/gr_interp_fir_filter_XXX.h.t
index 4a3590fc7..83904dce2 100644
--- a/gnuradio-core/src/lib/filter/gr_interp_fir_filter_XXX.h.t
+++ b/gnuradio-core/src/lib/filter/gr_interp_fir_filter_XXX.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/filter/gr_interp_fir_filter_XXX.i.t b/gnuradio-core/src/lib/filter/gr_interp_fir_filter_XXX.i.t
index c03b6e7ad..274753001 100644
--- a/gnuradio-core/src/lib/filter/gr_interp_fir_filter_XXX.i.t
+++ b/gnuradio-core/src/lib/filter/gr_interp_fir_filter_XXX.i.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/filter/gr_pfb_arb_resampler_ccf.cc b/gnuradio-core/src/lib/filter/gr_pfb_arb_resampler_ccf.cc
index 834450436..06e98447e 100644
--- a/gnuradio-core/src/lib/filter/gr_pfb_arb_resampler_ccf.cc
+++ b/gnuradio-core/src/lib/filter/gr_pfb_arb_resampler_ccf.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009,2010 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,
@@ -30,7 +30,7 @@
#include <gr_io_signature.h>
#include <cstdio>
-gr_pfb_arb_resampler_ccf_sptr gr_make_pfb_arb_resampler_ccf (float rate,
+gr_pfb_arb_resampler_ccf_sptr gr_make_pfb_arb_resampler_ccf (float rate,
const std::vector<float> &taps,
unsigned int filter_size)
{
@@ -39,7 +39,7 @@ gr_pfb_arb_resampler_ccf_sptr gr_make_pfb_arb_resampler_ccf (float rate,
}
-gr_pfb_arb_resampler_ccf::gr_pfb_arb_resampler_ccf (float rate,
+gr_pfb_arb_resampler_ccf::gr_pfb_arb_resampler_ccf (float rate,
const std::vector<float> &taps,
unsigned int filter_size)
: gr_block ("pfb_arb_resampler_ccf",
@@ -64,7 +64,7 @@ gr_pfb_arb_resampler_ccf::gr_pfb_arb_resampler_ccf (float rate,
d_last_filter = 0;
d_start_index = 0;
-
+
d_filters = std::vector<gr_fir_ccf*>(d_int_rate);
d_diff_filters = std::vector<gr_fir_ccf*>(d_int_rate);
@@ -99,7 +99,7 @@ gr_pfb_arb_resampler_ccf::create_taps (const std::vector<float> &newtaps,
// Create d_numchan vectors to store each channel's taps
ourtaps.resize(d_int_rate);
-
+
// Make a vector of the taps plus fill it out with 0's to fill
// each polyphase filter with exactly d_taps_per_filter
std::vector<float> tmp_taps;
@@ -107,7 +107,7 @@ gr_pfb_arb_resampler_ccf::create_taps (const std::vector<float> &newtaps,
while((float)(tmp_taps.size()) < d_int_rate*d_taps_per_filter) {
tmp_taps.push_back(0.0);
}
-
+
// Partition the filter
for(unsigned int i = 0; i < d_int_rate; i++) {
// Each channel uses all d_taps_per_filter with 0's if not enough taps to fill out
@@ -115,7 +115,7 @@ gr_pfb_arb_resampler_ccf::create_taps (const std::vector<float> &newtaps,
for(unsigned int j = 0; j < d_taps_per_filter; j++) {
ourtaps[d_int_rate - 1 - i][j] = tmp_taps[i + j*d_int_rate];
}
-
+
// Build a filter for each channel and add it's taps to it
ourfilter[i]->set_taps(ourtaps[d_int_rate-1-i]);
}
diff --git a/gnuradio-core/src/lib/filter/gr_pfb_arb_resampler_ccf.h b/gnuradio-core/src/lib/filter/gr_pfb_arb_resampler_ccf.h
index 749db937e..d92898a23 100644
--- a/gnuradio-core/src/lib/filter/gr_pfb_arb_resampler_ccf.h
+++ b/gnuradio-core/src/lib/filter/gr_pfb_arb_resampler_ccf.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009,2010 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,
@@ -38,12 +38,12 @@ class gr_fir_ccf;
/*!
* \class gr_pfb_arb_resampler_ccf
*
- * \brief Polyphase filterbank arbitrary resampler with
+ * \brief Polyphase filterbank arbitrary resampler with
* gr_complex input, gr_complex output and float taps
*
* \ingroup filter_blk
* \ingroup pfb_blk
- *
+ *
* This block takes in a signal stream and performs arbitrary
* resampling. The resampling rate can be any real
* number <EM>r</EM>. The resampling is done by constructing
@@ -87,13 +87,13 @@ class gr_fir_ccf;
* first input is the gain of the filter, which we specify here as the
* interpolation rate (<EM>32</EM>).
*
- * <B><EM>self._taps = gr.firdes.low_pass_2(32, 32*fs, BW, TB,
+ * <B><EM>self._taps = gr.firdes.low_pass_2(32, 32*fs, BW, TB,
* attenuation_dB=ATT, window=gr.firdes.WIN_BLACKMAN_hARRIS)</EM></B>
*
- * The theory behind this block can be found in Chapter 7.5 of
+ * The theory behind this block can be found in Chapter 7.5 of
* the following book.
*
- * <B><EM>f. harris, "Multirate Signal Processing for Communication
+ * <B><EM>f. harris, "Multirate Signal Processing for Communication
* Systems", Upper Saddle River, NJ: Prentice Hall, Inc. 2004.</EM></B>
*/
@@ -135,7 +135,7 @@ class GR_CORE_API gr_pfb_arb_resampler_ccf : public gr_block
related to quantization noise introduced during the resampling.
Defaults to 32 filters.
*/
- gr_pfb_arb_resampler_ccf (float rate,
+ gr_pfb_arb_resampler_ccf (float rate,
const std::vector<float> &taps,
unsigned int filter_size);
@@ -144,7 +144,7 @@ class GR_CORE_API gr_pfb_arb_resampler_ccf : public gr_block
/*!
* Resets the filterbank's filter taps with the new prototype filter
- * \param newtaps (vector of floats) The prototype filter to populate the filterbank.
+ * \param newtaps (vector of floats) The prototype filter to populate the filterbank.
* The taps should be generated at the interpolated sampling rate.
* \param ourtaps (vector of floats) Reference to our internal member of holding the taps.
* \param ourfilter (vector of filters) Reference to our internal filter to set the taps for.
@@ -153,7 +153,7 @@ class GR_CORE_API gr_pfb_arb_resampler_ccf : public gr_block
std::vector< std::vector<float> > &ourtaps,
std::vector<gr_fir_ccf*> &ourfilter);
-
+
public:
~gr_pfb_arb_resampler_ccf ();
@@ -163,7 +163,7 @@ public:
* Print all of the filterbank taps to screen.
*/
void print_taps();
- void set_rate (float rate) {
+ void set_rate (float rate) {
d_dec_rate = (unsigned int)floor(d_int_rate/rate);
d_flt_rate = (d_int_rate/rate) - d_dec_rate;
set_relative_rate(rate);
diff --git a/gnuradio-core/src/lib/filter/gr_pfb_arb_resampler_ccf.i b/gnuradio-core/src/lib/filter/gr_pfb_arb_resampler_ccf.i
index 77f28acdf..da58947e9 100644
--- a/gnuradio-core/src/lib/filter/gr_pfb_arb_resampler_ccf.i
+++ b/gnuradio-core/src/lib/filter/gr_pfb_arb_resampler_ccf.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009 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,
diff --git a/gnuradio-core/src/lib/filter/gr_pfb_arb_resampler_fff.cc b/gnuradio-core/src/lib/filter/gr_pfb_arb_resampler_fff.cc
index 9035e67f4..9a9b86992 100644
--- a/gnuradio-core/src/lib/filter/gr_pfb_arb_resampler_fff.cc
+++ b/gnuradio-core/src/lib/filter/gr_pfb_arb_resampler_fff.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009-2011 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,
@@ -30,7 +30,7 @@
#include <gr_io_signature.h>
#include <cstdio>
-gr_pfb_arb_resampler_fff_sptr gr_make_pfb_arb_resampler_fff (float rate,
+gr_pfb_arb_resampler_fff_sptr gr_make_pfb_arb_resampler_fff (float rate,
const std::vector<float> &taps,
unsigned int filter_size)
{
@@ -39,7 +39,7 @@ gr_pfb_arb_resampler_fff_sptr gr_make_pfb_arb_resampler_fff (float rate,
}
-gr_pfb_arb_resampler_fff::gr_pfb_arb_resampler_fff (float rate,
+gr_pfb_arb_resampler_fff::gr_pfb_arb_resampler_fff (float rate,
const std::vector<float> &taps,
unsigned int filter_size)
: gr_block ("pfb_arb_resampler_fff",
@@ -64,7 +64,7 @@ gr_pfb_arb_resampler_fff::gr_pfb_arb_resampler_fff (float rate,
d_last_filter = 0;
d_start_index = 0;
-
+
d_filters = std::vector<gr_fir_fff*>(d_int_rate);
d_diff_filters = std::vector<gr_fir_fff*>(d_int_rate);
@@ -99,7 +99,7 @@ gr_pfb_arb_resampler_fff::create_taps (const std::vector<float> &newtaps,
// Create d_numchan vectors to store each channel's taps
ourtaps.resize(d_int_rate);
-
+
// Make a vector of the taps plus fill it out with 0's to fill
// each polyphase filter with exactly d_taps_per_filter
std::vector<float> tmp_taps;
@@ -107,7 +107,7 @@ gr_pfb_arb_resampler_fff::create_taps (const std::vector<float> &newtaps,
while((float)(tmp_taps.size()) < d_int_rate*d_taps_per_filter) {
tmp_taps.push_back(0.0);
}
-
+
// Partition the filter
for(unsigned int i = 0; i < d_int_rate; i++) {
// Each channel uses all d_taps_per_filter with 0's if not enough taps to fill out
@@ -115,7 +115,7 @@ gr_pfb_arb_resampler_fff::create_taps (const std::vector<float> &newtaps,
for(unsigned int j = 0; j < d_taps_per_filter; j++) {
ourtaps[d_int_rate - 1 - i][j] = tmp_taps[i + j*d_int_rate];
}
-
+
// Build a filter for each channel and add it's taps to it
ourfilter[i]->set_taps(ourtaps[d_int_rate-1-i]);
}
diff --git a/gnuradio-core/src/lib/filter/gr_pfb_arb_resampler_fff.h b/gnuradio-core/src/lib/filter/gr_pfb_arb_resampler_fff.h
index 7fef06143..d2e375210 100644
--- a/gnuradio-core/src/lib/filter/gr_pfb_arb_resampler_fff.h
+++ b/gnuradio-core/src/lib/filter/gr_pfb_arb_resampler_fff.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009-2011 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,
@@ -38,12 +38,12 @@ class gr_fir_fff;
/*!
* \class gr_pfb_arb_resampler_fff
*
- * \brief Polyphase filterbank arbitrary resampler with
+ * \brief Polyphase filterbank arbitrary resampler with
* float input, float output and float taps
*
* \ingroup filter_blk
* \ingroup pfb_blk
- *
+ *
* This block takes in a signal stream and performs arbitrary
* resampling. The resampling rate can be any real
* number <EM>r</EM>. The resampling is done by constructing
@@ -87,13 +87,13 @@ class gr_fir_fff;
* first input is the gain of the filter, which we specify here as the
* interpolation rate (<EM>32</EM>).
*
- * <B><EM>self._taps = gr.firdes.low_pass_2(32, 32*fs, BW, TB,
+ * <B><EM>self._taps = gr.firdes.low_pass_2(32, 32*fs, BW, TB,
* attenuation_dB=ATT, window=gr.firdes.WIN_BLACKMAN_hARRIS)</EM></B>
*
- * The theory behind this block can be found in Chapter 7.5 of
+ * The theory behind this block can be found in Chapter 7.5 of
* the following book.
*
- * <B><EM>f. harris, "Multirate Signal Processing for Communication
+ * <B><EM>f. harris, "Multirate Signal Processing for Communication
* Systems", Upper Saddle River, NJ: Prentice Hall, Inc. 2004.</EM></B>
*/
@@ -135,7 +135,7 @@ class GR_CORE_API gr_pfb_arb_resampler_fff : public gr_block
related to quantization noise introduced during the resampling.
Defaults to 32 filters.
*/
- gr_pfb_arb_resampler_fff (float rate,
+ gr_pfb_arb_resampler_fff (float rate,
const std::vector<float> &taps,
unsigned int filter_size);
@@ -144,7 +144,7 @@ class GR_CORE_API gr_pfb_arb_resampler_fff : public gr_block
/*!
* Resets the filterbank's filter taps with the new prototype filter
- * \param newtaps (vector of floats) The prototype filter to populate the filterbank.
+ * \param newtaps (vector of floats) The prototype filter to populate the filterbank.
* The taps should be generated at the interpolated sampling rate.
* \param ourtaps (vector of floats) Reference to our internal member of holding the taps.
* \param ourfilter (vector of filters) Reference to our internal filter to set the taps for.
@@ -153,7 +153,7 @@ class GR_CORE_API gr_pfb_arb_resampler_fff : public gr_block
std::vector< std::vector<float> > &ourtaps,
std::vector<gr_fir_fff*> &ourfilter);
-
+
public:
~gr_pfb_arb_resampler_fff ();
@@ -163,7 +163,7 @@ public:
* Print all of the filterbank taps to screen.
*/
void print_taps();
- void set_rate (float rate) {
+ void set_rate (float rate) {
d_dec_rate = (unsigned int)floor(d_int_rate/rate);
d_flt_rate = (d_int_rate/rate) - d_dec_rate;
set_relative_rate(rate);
diff --git a/gnuradio-core/src/lib/filter/gr_pfb_arb_resampler_fff.i b/gnuradio-core/src/lib/filter/gr_pfb_arb_resampler_fff.i
index 8c1db22c3..ad0905361 100644
--- a/gnuradio-core/src/lib/filter/gr_pfb_arb_resampler_fff.i
+++ b/gnuradio-core/src/lib/filter/gr_pfb_arb_resampler_fff.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009,2011 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,
diff --git a/gnuradio-core/src/lib/filter/gr_pfb_channelizer_ccf.cc b/gnuradio-core/src/lib/filter/gr_pfb_channelizer_ccf.cc
index a82d3901c..cb7c93962 100644
--- a/gnuradio-core/src/lib/filter/gr_pfb_channelizer_ccf.cc
+++ b/gnuradio-core/src/lib/filter/gr_pfb_channelizer_ccf.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009,2010 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,
@@ -32,7 +32,7 @@
#include <cstdio>
#include <cstring>
-gr_pfb_channelizer_ccf_sptr gr_make_pfb_channelizer_ccf (unsigned int numchans,
+gr_pfb_channelizer_ccf_sptr gr_make_pfb_channelizer_ccf (unsigned int numchans,
const std::vector<float> &taps,
float oversample_rate)
{
@@ -41,7 +41,7 @@ gr_pfb_channelizer_ccf_sptr gr_make_pfb_channelizer_ccf (unsigned int numchans,
}
-gr_pfb_channelizer_ccf::gr_pfb_channelizer_ccf (unsigned int numchans,
+gr_pfb_channelizer_ccf::gr_pfb_channelizer_ccf (unsigned int numchans,
const std::vector<float> &taps,
float oversample_rate)
: gr_block ("pfb_channelizer_ccf",
@@ -50,14 +50,14 @@ gr_pfb_channelizer_ccf::gr_pfb_channelizer_ccf (unsigned int numchans,
d_updated (false), d_numchans(numchans), d_oversample_rate(oversample_rate)
{
// The over sampling rate must be rationally related to the number of channels
- // in that it must be N/i for i in [1,N], which gives an outputsample rate
+ // in that it must be N/i for i in [1,N], which gives an outputsample rate
// of [fs/N, fs] where fs is the input sample rate.
// This tests the specified input sample rate to see if it conforms to this
// requirement within a few significant figures.
double intp = 0;
double fltp = modf(numchans / oversample_rate, &intp);
if(fltp != 0.0)
- throw std::invalid_argument("gr_pfb_channelizer: oversample rate must be N/i for i in [1, N]");
+ throw std::invalid_argument("gr_pfb_channelizer: oversample rate must be N/i for i in [1, N]");
set_relative_rate(1.0/intp);
@@ -96,8 +96,8 @@ gr_pfb_channelizer_ccf::gr_pfb_channelizer_ccf (unsigned int numchans,
gr_pfb_channelizer_ccf::~gr_pfb_channelizer_ccf ()
{
- delete [] d_idxlut;
-
+ delete [] d_idxlut;
+
for(unsigned int i = 0; i < d_numchans; i++) {
delete d_filters[i];
}
@@ -122,7 +122,7 @@ gr_pfb_channelizer_ccf::set_taps (const std::vector<float> &taps)
while((float)(tmp_taps.size()) < d_numchans*d_taps_per_filter) {
tmp_taps.push_back(0.0);
}
-
+
// Partition the filter
for(i = 0; i < d_numchans; i++) {
// Each channel uses all d_taps_per_filter with 0's if not enough taps to fill out
@@ -130,7 +130,7 @@ gr_pfb_channelizer_ccf::set_taps (const std::vector<float> &taps)
for(j = 0; j < d_taps_per_filter; j++) {
d_taps[i][j] = tmp_taps[i + j*d_numchans]; // add taps to channels in reverse order
}
-
+
// Build a filter for each channel and add it's taps to it
d_filters[i]->set_taps(d_taps[i]);
}
diff --git a/gnuradio-core/src/lib/filter/gr_pfb_channelizer_ccf.h b/gnuradio-core/src/lib/filter/gr_pfb_channelizer_ccf.h
index 040b93e73..79ad322f9 100644
--- a/gnuradio-core/src/lib/filter/gr_pfb_channelizer_ccf.h
+++ b/gnuradio-core/src/lib/filter/gr_pfb_channelizer_ccf.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009,2010 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,
@@ -30,7 +30,7 @@
class gr_pfb_channelizer_ccf;
typedef boost::shared_ptr<gr_pfb_channelizer_ccf> gr_pfb_channelizer_ccf_sptr;
-GR_CORE_API gr_pfb_channelizer_ccf_sptr gr_make_pfb_channelizer_ccf (unsigned int numchans,
+GR_CORE_API gr_pfb_channelizer_ccf_sptr gr_make_pfb_channelizer_ccf (unsigned int numchans,
const std::vector<float> &taps,
float oversample_rate=1);
@@ -41,7 +41,7 @@ class gri_fft_complex;
/*!
* \class gr_pfb_channelizer_ccf
*
- * \brief Polyphase filterbank channelizer with
+ * \brief Polyphase filterbank channelizer with
* gr_complex input, gr_complex output and float taps
*
* \ingroup filter_blk
@@ -82,33 +82,33 @@ class gri_fft_complex;
* The filter's taps should be based on the input sampling rate.
*
* For example, using the GNU Radio's firdes utility to building
- * filters, we build a low-pass filter with a sampling rate of
+ * filters, we build a low-pass filter with a sampling rate of
* <EM>fs</EM>, a 3-dB bandwidth of <EM>BW</EM> and a transition
* bandwidth of <EM>TB</EM>. We can also specify the out-of-band
* attenuation to use, <EM>ATT</EM>, and the filter window
* function (a Blackman-harris window in this case). The first input
* is the gain of the filter, which we specify here as unity.
*
- * <B><EM>self._taps = gr.firdes.low_pass_2(1, fs, BW, TB,
+ * <B><EM>self._taps = gr.firdes.low_pass_2(1, fs, BW, TB,
* attenuation_dB=ATT, window=gr.firdes.WIN_BLACKMAN_hARRIS)</EM></B>
*
- * The filter output can also be overs ampled. The over sampling rate
- * is the ratio of the the actual output sampling rate to the normal
- * output sampling rate. It must be rationally related to the number
+ * The filter output can also be overs ampled. The over sampling rate
+ * is the ratio of the the actual output sampling rate to the normal
+ * output sampling rate. It must be rationally related to the number
* of channels as N/i for i in [1,N], which gives an outputsample rate
* of [fs/N, fs] where fs is the input sample rate and N is the number
* of channels.
*
- * For example, for 6 channels with fs = 6000 Hz, the normal rate is
- * 6000/6 = 1000 Hz. Allowable oversampling rates are 6/6, 6/5, 6/4,
+ * For example, for 6 channels with fs = 6000 Hz, the normal rate is
+ * 6000/6 = 1000 Hz. Allowable oversampling rates are 6/6, 6/5, 6/4,
* 6/3, 6/2, and 6/1 where the output sample rate of a 6/1 oversample
* ratio is 6000 Hz, or 6 times the normal 1000 Hz. A rate of 6/5 = 1.2,
* so the output rate would be 1200 Hz.
*
- * The theory behind this block can be found in Chapter 6 of
+ * The theory behind this block can be found in Chapter 6 of
* the following book.
*
- * <B><EM>f. harris, "Multirate Signal Processing for Communication
+ * <B><EM>f. harris, "Multirate Signal Processing for Communication
* Systems," Upper Saddle River, NJ: Prentice Hall, Inc. 2004.</EM></B>
*
*/
@@ -123,10 +123,10 @@ class GR_CORE_API gr_pfb_channelizer_ccf : public gr_block
* \param oversample_rate (float) The over sampling rate is the ratio of the the actual
* output sampling rate to the normal output sampling rate.
* It must be rationally related to the number of channels
- * as N/i for i in [1,N], which gives an outputsample rate
+ * as N/i for i in [1,N], which gives an outputsample rate
* of [fs/N, fs] where fs is the input sample rate and N is
* the number of channels.
- *
+ *
* For example, for 6 channels with fs = 6000 Hz, the normal
* rate is 6000/6 = 1000 Hz. Allowable oversampling rates
* are 6/6, 6/5, 6/4, 6/3, 6/2, and 6/1 where the output
@@ -156,13 +156,13 @@ class GR_CORE_API gr_pfb_channelizer_ccf : public gr_block
* \param taps (vector/list of floats) The prototype filter to populate the filterbank.
* \param oversample_rate (float) The output over sampling rate.
*/
- gr_pfb_channelizer_ccf (unsigned int numchans,
+ gr_pfb_channelizer_ccf (unsigned int numchans,
const std::vector<float> &taps,
float oversample_rate);
public:
~gr_pfb_channelizer_ccf ();
-
+
/*!
* Resets the filterbank's filter taps with the new prototype filter
* \param taps (vector/list of floats) The prototype filter to populate the filterbank.
@@ -184,7 +184,7 @@ public:
*
* N/2+1 | ... | N-1 | 0 | 1 | 2 | ... | N/2
* <------------------- 0 -------------------->
- * freq
+ * freq
*
* So output stream 0 comes from channel 0, etc. Setting a new
* channel map allows the user to specify which channel in frequency
@@ -216,7 +216,7 @@ public:
* Gets the current channel map.
*/
std::vector<int> channel_map() const;
-
+
int general_work (int noutput_items,
gr_vector_int &ninput_items,
gr_vector_const_void_star &input_items,
diff --git a/gnuradio-core/src/lib/filter/gr_pfb_channelizer_ccf.i b/gnuradio-core/src/lib/filter/gr_pfb_channelizer_ccf.i
index f5edba5b7..1f2b49452 100644
--- a/gnuradio-core/src/lib/filter/gr_pfb_channelizer_ccf.i
+++ b/gnuradio-core/src/lib/filter/gr_pfb_channelizer_ccf.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009,2010 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,
diff --git a/gnuradio-core/src/lib/filter/gr_pfb_clock_sync_ccf.cc b/gnuradio-core/src/lib/filter/gr_pfb_clock_sync_ccf.cc
index 9297b6587..efe417918 100644
--- a/gnuradio-core/src/lib/filter/gr_pfb_clock_sync_ccf.cc
+++ b/gnuradio-core/src/lib/filter/gr_pfb_clock_sync_ccf.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009-2011 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,
@@ -67,10 +67,10 @@ gr_pfb_clock_sync_ccf::gr_pfb_clock_sync_ccf (double sps, float loop_bw,
// Set the damping factor for a critically damped system
d_damping = sqrtf(2.0f)/2.0f;
-
+
// Set the bandwidth, which will then call update_gains()
set_loop_bandwidth(loop_bw);
-
+
// Store the last filter between calls to work
// The accumulator keeps track of overflow to increment the stride correctly.
// set it here to the fractional difference based on the initial phaes
@@ -119,23 +119,23 @@ gr_pfb_clock_sync_ccf::check_topology(int ninputs, int noutputs)
void
-gr_pfb_clock_sync_ccf::set_loop_bandwidth(float bw)
+gr_pfb_clock_sync_ccf::set_loop_bandwidth(float bw)
{
if(bw < 0) {
throw std::out_of_range ("gr_pfb_clock_sync_cc: invalid bandwidth. Must be >= 0.");
}
-
+
d_loop_bw = bw;
update_gains();
}
void
-gr_pfb_clock_sync_ccf::set_damping_factor(float df)
+gr_pfb_clock_sync_ccf::set_damping_factor(float df)
{
if(df < 0 || df > 1.0) {
throw std::out_of_range ("gr_pfb_clock_sync_cc: invalid damping factor. Must be in [0,1].");
}
-
+
d_damping = df;
update_gains();
}
@@ -217,7 +217,7 @@ gr_pfb_clock_sync_ccf::set_taps (const std::vector<float> &newtaps,
// Create d_numchan vectors to store each channel's taps
ourtaps.resize(d_nfilters);
-
+
// Make a vector of the taps plus fill it out with 0's to fill
// each polyphase filter with exactly d_taps_per_filter
std::vector<float> tmp_taps;
@@ -225,7 +225,7 @@ gr_pfb_clock_sync_ccf::set_taps (const std::vector<float> &newtaps,
while((float)(tmp_taps.size()) < d_nfilters*d_taps_per_filter) {
tmp_taps.push_back(0.0);
}
-
+
// Partition the filter
for(i = 0; i < d_nfilters; i++) {
// Each channel uses all d_taps_per_filter with 0's if not enough taps to fill out
@@ -235,7 +235,7 @@ gr_pfb_clock_sync_ccf::set_taps (const std::vector<float> &newtaps,
//ourtaps[d_nfilters - 1 - i][j] = tmp_taps[i + j*d_nfilters];
ourtaps[i][j] = tmp_taps[i + j*d_nfilters];
}
-
+
// Build a filter for each channel and add it's taps to it
//ourfilter[i]->set_taps(ourtaps[d_nfilters-1-i]);
ourfilter[i]->set_taps(ourtaps[i]);
@@ -293,7 +293,7 @@ gr_pfb_clock_sync_ccf::get_taps_as_string()
str << d_taps[i][j] << "],";
}
str << " ]" << std::endl;
-
+
return str.str();
}
@@ -318,13 +318,13 @@ gr_pfb_clock_sync_ccf::get_diff_taps_as_string()
return str.str();
}
-std::vector< std::vector<float> >
+std::vector< std::vector<float> >
gr_pfb_clock_sync_ccf::get_taps()
{
return d_taps;
}
-std::vector< std::vector<float> >
+std::vector< std::vector<float> >
gr_pfb_clock_sync_ccf::get_diff_taps()
{
return d_dtaps;
@@ -366,7 +366,7 @@ gr_pfb_clock_sync_ccf::general_work (int noutput_items,
outrate = (float*)output_items[2];
outk = (float*)output_items[3];
}
-
+
if (d_updated) {
d_updated = false;
return 0; // history requirements may have changed.
@@ -382,7 +382,7 @@ gr_pfb_clock_sync_ccf::general_work (int noutput_items,
while((i < noutput_items) && (count < nrequired)) {
while(d_out_idx < d_osps) {
d_filtnum = (int)floor(d_k);
-
+
// Keep the current filter number in [0, d_nfilters]
// If we've run beyond the last filter, wrap around and go to next sample
// If we've go below 0, wrap around and go to previous sample
@@ -396,11 +396,11 @@ gr_pfb_clock_sync_ccf::general_work (int noutput_items,
d_filtnum += d_nfilters;
count -= 1;
}
-
+
out[i+d_out_idx] = d_filters[d_filtnum]->filter(&in[count+d_out_idx]);
d_k = d_k + d_rate_i + d_rate_f; // update phase
d_out_idx++;
-
+
if(output_items.size() == 4) {
err[i] = d_error;
outrate[i] = d_rate_f;
@@ -423,12 +423,12 @@ gr_pfb_clock_sync_ccf::general_work (int noutput_items,
error_r = out[i].real() * diff.real();
error_i = out[i].imag() * diff.imag();
d_error = (error_i + error_r) / 2.0; // average error from I&Q channel
-
+
// Run the control loop to update the current phase (k) and
// tracking rate estimates based on the error value
d_rate_f = d_rate_f + d_beta*d_error;
- d_k = d_k + d_alpha*d_error;
-
+ d_k = d_k + d_alpha*d_error;
+
// Keep our rate within a good range
d_rate_f = gr_branchless_clip(d_rate_f, d_max_dev);
diff --git a/gnuradio-core/src/lib/filter/gr_pfb_clock_sync_ccf.h b/gnuradio-core/src/lib/filter/gr_pfb_clock_sync_ccf.h
index 1e1bbca10..8715b4b10 100644
--- a/gnuradio-core/src/lib/filter/gr_pfb_clock_sync_ccf.h
+++ b/gnuradio-core/src/lib/filter/gr_pfb_clock_sync_ccf.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009,2010 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 @@ class gr_fir_ccf;
*
* \ingroup filter_blk
* \ingroup pfb_blk
- *
+ *
* This block performs timing synchronization for PAM signals by
* minimizing the derivative of the filtered signal, which in turn
* maximizes the SNR and minimizes ISI.
@@ -160,7 +160,7 @@ class GR_CORE_API gr_pfb_clock_sync_ccf : public gr_block
* \param loop_bw (float) The bandwidth of the control loop; set's alpha and beta.
* \param taps (vector<int>) The filter taps.
* \param filter_size (uint) The number of filters in the filterbank (default = 32).
- * \param init_phase (float) The initial phase to look at, or which filter to start
+ * \param init_phase (float) The initial phase to look at, or which filter to start
* with (default = 0).
* \param max_rate_deviation (float) Distance from 0 d_rate can get (default = 1.5).
* \param osps (int) The number of output samples per symbol (default=1).
@@ -198,7 +198,7 @@ class GR_CORE_API gr_pfb_clock_sync_ccf : public gr_block
int d_osps;
float d_error;
int d_out_idx;
-
+
/*!
* Build the polyphase filterbank timing synchronizer.
*/
@@ -208,7 +208,7 @@ class GR_CORE_API gr_pfb_clock_sync_ccf : public gr_block
float init_phase,
float max_rate_deviation,
int osps);
-
+
void create_diff_taps(const std::vector<float> &newtaps,
std::vector<float> &difftaps);
@@ -223,7 +223,7 @@ public:
* set functions.
*/
void update_gains();
-
+
/*!
* Resets the filterbank's filter taps with the new prototype filter
*/
@@ -265,12 +265,12 @@ public:
/*******************************************************************
SET FUNCTIONS
*******************************************************************/
-
+
/*!
* \brief Set the loop bandwidth
*
- * Set the loop filter's bandwidth to \p bw. This should be between
+ * Set the loop filter's bandwidth to \p bw. This should be between
* 2*pi/200 and 2*pi/100 (in rads/samp). It must also be a positive
* number.
*
@@ -326,12 +326,12 @@ public:
/*!
* Set the maximum deviation from 0 d_rate can have
- */
+ */
void set_max_rate_deviation(float m)
{
d_max_dev = m;
}
-
+
/*******************************************************************
GET FUNCTIONS
*******************************************************************/
diff --git a/gnuradio-core/src/lib/filter/gr_pfb_clock_sync_ccf.i b/gnuradio-core/src/lib/filter/gr_pfb_clock_sync_ccf.i
index 92ad1661a..85915196f 100644
--- a/gnuradio-core/src/lib/filter/gr_pfb_clock_sync_ccf.i
+++ b/gnuradio-core/src/lib/filter/gr_pfb_clock_sync_ccf.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009 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,
diff --git a/gnuradio-core/src/lib/filter/gr_pfb_clock_sync_fff.cc b/gnuradio-core/src/lib/filter/gr_pfb_clock_sync_fff.cc
index 5d7f7a0d0..886f98913 100644
--- a/gnuradio-core/src/lib/filter/gr_pfb_clock_sync_fff.cc
+++ b/gnuradio-core/src/lib/filter/gr_pfb_clock_sync_fff.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009,2010 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,
@@ -115,7 +115,7 @@ gr_pfb_clock_sync_fff::set_taps (const std::vector<float> &newtaps,
// Create d_numchan vectors to store each channel's taps
ourtaps.resize(d_nfilters);
-
+
// Make a vector of the taps plus fill it out with 0's to fill
// each polyphase filter with exactly d_taps_per_filter
std::vector<float> tmp_taps;
@@ -123,7 +123,7 @@ gr_pfb_clock_sync_fff::set_taps (const std::vector<float> &newtaps,
while((float)(tmp_taps.size()) < d_nfilters*d_taps_per_filter) {
tmp_taps.push_back(0.0);
}
-
+
// Partition the filter
for(i = 0; i < d_nfilters; i++) {
// Each channel uses all d_taps_per_filter with 0's if not enough taps to fill out
@@ -131,7 +131,7 @@ gr_pfb_clock_sync_fff::set_taps (const std::vector<float> &newtaps,
for(j = 0; j < d_taps_per_filter; j++) {
ourtaps[d_nfilters - 1 - i][j] = tmp_taps[i + j*d_nfilters];
}
-
+
// Build a filter for each channel and add it's taps to it
ourfilter[i]->set_taps(ourtaps[d_nfilters-1-i]);
}
@@ -232,7 +232,7 @@ gr_pfb_clock_sync_fff::general_work (int noutput_items,
outrate = (float*)output_items[2];
outk = (float*)output_items[3];
}
-
+
if (d_updated) {
d_updated = false;
return 0; // history requirements may have changed.
@@ -269,7 +269,7 @@ gr_pfb_clock_sync_fff::general_work (int noutput_items,
// Run the control loop to update the current phase (k) and tracking rate
d_k = d_k + d_alpha*error + d_rate_i + d_rate_f;
d_rate_f = d_rate_f + d_beta*error;
-
+
// Keep our rate within a good range
d_rate_f = gr_branchless_clip(d_rate_f, d_max_dev);
diff --git a/gnuradio-core/src/lib/filter/gr_pfb_clock_sync_fff.h b/gnuradio-core/src/lib/filter/gr_pfb_clock_sync_fff.h
index 43d382713..4909d556b 100644
--- a/gnuradio-core/src/lib/filter/gr_pfb_clock_sync_fff.h
+++ b/gnuradio-core/src/lib/filter/gr_pfb_clock_sync_fff.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009,2010 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,
@@ -44,7 +44,7 @@ class gr_fir_fff;
*
* \ingroup filter_blk
* \ingroup pfb_blk
- *
+ *
* This block performs timing synchronization for PAM signals by
* minimizing the derivative of the filtered signal, which in turn
* maximizes the SNR and minimizes ISI.
@@ -160,7 +160,7 @@ class GR_CORE_API gr_pfb_clock_sync_fff : public gr_block
* \param gain (float) The alpha gain of the control loop; beta = (gain^2)/4 by default.
* \param taps (vector<int>) The filter taps.
* \param filter_size (uint) The number of filters in the filterbank (default = 32).
- * \param init_phase (float) The initial phase to look at, or which filter to start
+ * \param init_phase (float) The initial phase to look at, or which filter to start
* with (default = 0).
* \param max_rate_deviation (float) Distance from 0 d_rate can get (default = 1.5).
*
@@ -197,13 +197,13 @@ class GR_CORE_API gr_pfb_clock_sync_fff : public gr_block
unsigned int filter_size,
float init_phase,
float max_rate_deviation);
-
+
void create_diff_taps(const std::vector<float> &newtaps,
std::vector<float> &difftaps);
public:
~gr_pfb_clock_sync_fff ();
-
+
/*!
* Resets the filterbank's filter taps with the new prototype filter
*/
@@ -233,7 +233,7 @@ public:
/*!
* Set the gain value alpha for the control loop
- */
+ */
void set_alpha(float alpha)
{
d_alpha = alpha;
@@ -241,7 +241,7 @@ public:
/*!
* Set the gain value beta for the control loop
- */
+ */
void set_beta(float beta)
{
d_beta = beta;
@@ -249,7 +249,7 @@ public:
/*!
* Set the maximum deviation from 0 d_rate can have
- */
+ */
void set_max_rate_deviation(float m)
{
d_max_dev = m;
diff --git a/gnuradio-core/src/lib/filter/gr_pfb_clock_sync_fff.i b/gnuradio-core/src/lib/filter/gr_pfb_clock_sync_fff.i
index d6bb7873c..754af1a87 100644
--- a/gnuradio-core/src/lib/filter/gr_pfb_clock_sync_fff.i
+++ b/gnuradio-core/src/lib/filter/gr_pfb_clock_sync_fff.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009 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,
diff --git a/gnuradio-core/src/lib/filter/gr_pfb_decimator_ccf.cc b/gnuradio-core/src/lib/filter/gr_pfb_decimator_ccf.cc
index 28c6a611a..c973daf82 100644
--- a/gnuradio-core/src/lib/filter/gr_pfb_decimator_ccf.cc
+++ b/gnuradio-core/src/lib/filter/gr_pfb_decimator_ccf.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009,2010 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,
@@ -32,7 +32,7 @@
#include <gr_expj.h>
#include <cstdio>
-gr_pfb_decimator_ccf_sptr gr_make_pfb_decimator_ccf (unsigned int decim,
+gr_pfb_decimator_ccf_sptr gr_make_pfb_decimator_ccf (unsigned int decim,
const std::vector<float> &taps,
unsigned int channel)
{
@@ -40,7 +40,7 @@ gr_pfb_decimator_ccf_sptr gr_make_pfb_decimator_ccf (unsigned int decim,
}
-gr_pfb_decimator_ccf::gr_pfb_decimator_ccf (unsigned int decim,
+gr_pfb_decimator_ccf::gr_pfb_decimator_ccf (unsigned int decim,
const std::vector<float> &taps,
unsigned int channel)
: gr_sync_block ("pfb_decimator_ccf",
@@ -92,7 +92,7 @@ gr_pfb_decimator_ccf::set_taps (const std::vector<float> &taps)
while((float)(tmp_taps.size()) < d_rate*d_taps_per_filter) {
tmp_taps.push_back(0.0);
}
-
+
// Partition the filter
for(i = 0; i < d_rate; i++) {
// Each channel uses all d_taps_per_filter with 0's if not enough taps to fill out
@@ -100,7 +100,7 @@ gr_pfb_decimator_ccf::set_taps (const std::vector<float> &taps)
for(j = 0; j < d_taps_per_filter; j++) {
d_taps[i][j] = tmp_taps[i + j*d_rate]; // add taps to channels in reverse order
}
-
+
// Build a filter for each channel and add it's taps to it
d_filters[i]->set_taps(d_taps[i]);
}
@@ -150,7 +150,7 @@ gr_pfb_decimator_ccf::work (int noutput_items,
// Filter current input stream from bottom filter to top
// The rotate them by expj(j*k*2pi/M) where M is the number of filters
// (the decimation rate) and k is the channel number to extract
-
+
// This is the real math that goes on; we abuse the FFT to do this quickly
// for decimation rates > N where N is a small number (~5):
// out[i] += d_filters[j]->filter(&in[i])*gr_expj(j*d_chan*2*M_PI/d_rate);
@@ -168,8 +168,8 @@ gr_pfb_decimator_ccf::work (int noutput_items,
// Select only the desired channel out
out[i] = d_fft->get_outbuf()[d_chan];
#endif
-
+
}
-
+
return noutput_items;
}
diff --git a/gnuradio-core/src/lib/filter/gr_pfb_decimator_ccf.h b/gnuradio-core/src/lib/filter/gr_pfb_decimator_ccf.h
index 0ae054685..a2b347ae2 100644
--- a/gnuradio-core/src/lib/filter/gr_pfb_decimator_ccf.h
+++ b/gnuradio-core/src/lib/filter/gr_pfb_decimator_ccf.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009 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,
@@ -29,7 +29,7 @@
class gr_pfb_decimator_ccf;
typedef boost::shared_ptr<gr_pfb_decimator_ccf> gr_pfb_decimator_ccf_sptr;
-GR_CORE_API gr_pfb_decimator_ccf_sptr gr_make_pfb_decimator_ccf (unsigned int decim,
+GR_CORE_API gr_pfb_decimator_ccf_sptr gr_make_pfb_decimator_ccf (unsigned int decim,
const std::vector<float> &taps,
unsigned int channel=0);
@@ -38,45 +38,45 @@ class gri_fft_complex;
/*!
* \class gr_pfb_decimator_ccf
- * \brief Polyphase filterbank bandpass decimator with gr_complex
+ * \brief Polyphase filterbank bandpass decimator with gr_complex
* input, gr_complex output and float taps
*
* \ingroup filter_blk
* \ingroup pfb_blk
- *
+ *
* This block takes in a signal stream and performs interger down-
* sampling (decimation) with a polyphase filterbank. The first input
* is the integer specifying how much to decimate by. The second
- * input is a vector (Python list) of floating-point taps of the
+ * input is a vector (Python list) of floating-point taps of the
* prototype filter. The third input specifies the channel to extract.
- * By default, the zeroth channel is used, which is the baseband
+ * By default, the zeroth channel is used, which is the baseband
* channel (first Nyquist zone).
*
* The <EM>channel</EM> parameter specifies which channel to use since
* this class is capable of bandpass decimation. Given a complex input
* stream at a sampling rate of <EM>fs</EM> and a decimation rate of
- * <EM>decim</EM>, the input frequency domain is split into
+ * <EM>decim</EM>, the input frequency domain is split into
* <EM>decim</EM> channels that represent the Nyquist zones. Using the
* polyphase filterbank, we can select any one of these channels to
* decimate.
*
* The output signal will be the basebanded and decimated signal from
* that channel. This concept is very similar to the PFB channelizer
- * (see #gr_pfb_channelizer_ccf) where only a single channel is
+ * (see #gr_pfb_channelizer_ccf) where only a single channel is
* extracted at a time.
*
* The filter's taps should be based on the sampling rate before
* decimation.
*
* For example, using the GNU Radio's firdes utility to building
- * filters, we build a low-pass filter with a sampling rate of
+ * filters, we build a low-pass filter with a sampling rate of
* <EM>fs</EM>, a 3-dB bandwidth of <EM>BW</EM> and a transition
* bandwidth of <EM>TB</EM>. We can also specify the out-of-band
* attenuation to use, <EM>ATT</EM>, and the filter window
* function (a Blackman-harris window in this case). The first input
* is the gain of the filter, which we specify here as unity.
*
- * <B><EM>self._taps = gr.firdes.low_pass_2(1, fs, BW, TB,
+ * <B><EM>self._taps = gr.firdes.low_pass_2(1, fs, BW, TB,
* attenuation_dB=ATT, window=gr.firdes.WIN_BLACKMAN_hARRIS)</EM></B>
*
* The PFB decimator code takes the taps generated above and builds a
@@ -84,13 +84,13 @@ class gri_fft_complex;
* and each filter contains ceil(taps.size()/decim) number of taps.
* Each tap from the filter prototype is sequentially inserted into
* the next filter. When all of the input taps are used, the remaining
- * filters in the filterbank are filled out with 0's to make sure each
+ * filters in the filterbank are filled out with 0's to make sure each
* filter has the same number of taps.
*
- * The theory behind this block can be found in Chapter 6 of
+ * The theory behind this block can be found in Chapter 6 of
* the following book.
*
- * <B><EM>f. harris, "Multirate Signal Processing for Communication
+ * <B><EM>f. harris, "Multirate Signal Processing for Communication
* Systems," Upper Saddle River, NJ: Prentice Hall, Inc. 2004.</EM></B>
*/
@@ -122,13 +122,13 @@ class GR_CORE_API gr_pfb_decimator_ccf : public gr_sync_block
* \param taps (vector/list of floats) The prototype filter to populate the filterbank.
* \param channel (unsigned integer) Selects the channel to return [default=0].
*/
- gr_pfb_decimator_ccf (unsigned int decim,
+ gr_pfb_decimator_ccf (unsigned int decim,
const std::vector<float> &taps,
unsigned int channel);
public:
~gr_pfb_decimator_ccf ();
-
+
/*!
* Resets the filterbank's filter taps with the new prototype filter
* \param taps (vector/list of floats) The prototype filter to populate the filterbank.
@@ -139,7 +139,7 @@ public:
* Print all of the filterbank taps to screen.
*/
void print_taps();
-
+
//void set_channel (unsigned int channel);
int work (int noutput_items,
diff --git a/gnuradio-core/src/lib/filter/gr_pfb_decimator_ccf.i b/gnuradio-core/src/lib/filter/gr_pfb_decimator_ccf.i
index c4215fce1..e40d00fa9 100644
--- a/gnuradio-core/src/lib/filter/gr_pfb_decimator_ccf.i
+++ b/gnuradio-core/src/lib/filter/gr_pfb_decimator_ccf.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009 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,
diff --git a/gnuradio-core/src/lib/filter/gr_pfb_interpolator_ccf.cc b/gnuradio-core/src/lib/filter/gr_pfb_interpolator_ccf.cc
index e20bc38bb..9c8e734ea 100644
--- a/gnuradio-core/src/lib/filter/gr_pfb_interpolator_ccf.cc
+++ b/gnuradio-core/src/lib/filter/gr_pfb_interpolator_ccf.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009,2010 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,
@@ -30,14 +30,14 @@
#include <gr_io_signature.h>
#include <cstdio>
-gr_pfb_interpolator_ccf_sptr gr_make_pfb_interpolator_ccf (unsigned int interp,
+gr_pfb_interpolator_ccf_sptr gr_make_pfb_interpolator_ccf (unsigned int interp,
const std::vector<float> &taps)
{
return gnuradio::get_initial_sptr(new gr_pfb_interpolator_ccf (interp, taps));
}
-gr_pfb_interpolator_ccf::gr_pfb_interpolator_ccf (unsigned int interp,
+gr_pfb_interpolator_ccf::gr_pfb_interpolator_ccf (unsigned int interp,
const std::vector<float> &taps)
: gr_sync_interpolator ("pfb_interpolator_ccf",
gr_make_io_signature (1, 1, sizeof(gr_complex)),
@@ -84,7 +84,7 @@ gr_pfb_interpolator_ccf::set_taps (const std::vector<float> &taps)
while((float)(tmp_taps.size()) < d_rate*d_taps_per_filter) {
tmp_taps.push_back(0.0);
}
-
+
// Partition the filter
for(i = 0; i < d_rate; i++) {
// Each channel uses all d_taps_per_filter with 0's if not enough taps to fill out
@@ -92,7 +92,7 @@ gr_pfb_interpolator_ccf::set_taps (const std::vector<float> &taps)
for(j = 0; j < d_taps_per_filter; j++) {
d_taps[i][j] = tmp_taps[i + j*d_rate]; // add taps to channels in reverse order
}
-
+
// Build a filter for each channel and add it's taps to it
d_filters[i]->set_taps(d_taps[i]);
}
@@ -138,6 +138,6 @@ gr_pfb_interpolator_ccf::work (int noutput_items,
}
count++;
}
-
+
return i;
}
diff --git a/gnuradio-core/src/lib/filter/gr_pfb_interpolator_ccf.h b/gnuradio-core/src/lib/filter/gr_pfb_interpolator_ccf.h
index 6885881e9..aeae86e40 100644
--- a/gnuradio-core/src/lib/filter/gr_pfb_interpolator_ccf.h
+++ b/gnuradio-core/src/lib/filter/gr_pfb_interpolator_ccf.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009 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,
@@ -29,7 +29,7 @@
class gr_pfb_interpolator_ccf;
typedef boost::shared_ptr<gr_pfb_interpolator_ccf> gr_pfb_interpolator_ccf_sptr;
-GR_CORE_API gr_pfb_interpolator_ccf_sptr gr_make_pfb_interpolator_ccf (unsigned int interp,
+GR_CORE_API gr_pfb_interpolator_ccf_sptr gr_make_pfb_interpolator_ccf (unsigned int interp,
const std::vector<float> &taps);
class gr_fir_ccf;
@@ -41,7 +41,7 @@ class gr_fir_ccf;
*
* \ingroup filter_blk
* \ingroup pfb_blk
- *
+ *
* This block takes in a signal stream and performs interger up-
* sampling (interpolation) with a polyphase filterbank. The first
* input is the integer specifying how much to interpolate by. The
@@ -62,7 +62,7 @@ class gr_fir_ccf;
* output levels are the same as the input (this creates an overall
* increase in power).
*
- * <B><EM>self._taps = gr.firdes.low_pass_2(interp, interp*fs, BW, TB,
+ * <B><EM>self._taps = gr.firdes.low_pass_2(interp, interp*fs, BW, TB,
* attenuation_dB=ATT, window=gr.firdes.WIN_BLACKMAN_hARRIS)</EM></B>
*
* The PFB interpolator code takes the taps generated above and builds
@@ -105,12 +105,12 @@ class GR_CORE_API gr_pfb_interpolator_ccf : public gr_sync_interpolator
* \param taps (vector/list of floats) The prototype filter to populate the filterbank. The taps
* should be generated at the interpolated sampling rate.
*/
- gr_pfb_interpolator_ccf (unsigned int interp,
+ gr_pfb_interpolator_ccf (unsigned int interp,
const std::vector<float> &taps);
-
+
public:
~gr_pfb_interpolator_ccf ();
-
+
/*!
* Resets the filterbank's filter taps with the new prototype filter
* \param taps (vector/list of floats) The prototype filter to populate the filterbank. The taps
@@ -122,7 +122,7 @@ public:
* Print all of the filterbank taps to screen.
*/
void print_taps();
-
+
int work (int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items);
diff --git a/gnuradio-core/src/lib/filter/gr_pfb_interpolator_ccf.i b/gnuradio-core/src/lib/filter/gr_pfb_interpolator_ccf.i
index cf4302d45..427f1b913 100644
--- a/gnuradio-core/src/lib/filter/gr_pfb_interpolator_ccf.i
+++ b/gnuradio-core/src/lib/filter/gr_pfb_interpolator_ccf.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009 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,
diff --git a/gnuradio-core/src/lib/filter/gr_pfb_synthesizer_ccf.cc b/gnuradio-core/src/lib/filter/gr_pfb_synthesizer_ccf.cc
index 08fbd3df7..9910a1851 100644
--- a/gnuradio-core/src/lib/filter/gr_pfb_synthesizer_ccf.cc
+++ b/gnuradio-core/src/lib/filter/gr_pfb_synthesizer_ccf.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010,2012 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,
@@ -30,10 +30,10 @@
#include <cstdio>
#include <cstring>
-gr_pfb_synthesizer_ccf_sptr gr_make_pfb_synthesizer_ccf
+gr_pfb_synthesizer_ccf_sptr gr_make_pfb_synthesizer_ccf
(unsigned int numchans, const std::vector<float> &taps, bool twox)
{
- return gr_pfb_synthesizer_ccf_sptr
+ return gr_pfb_synthesizer_ccf_sptr
(new gr_pfb_synthesizer_ccf (numchans, taps, twox));
}
@@ -107,7 +107,7 @@ gr_pfb_synthesizer_ccf::set_taps1(const std::vector<float> &taps)
while((float)(tmp_taps.size()) < d_numchans*d_taps_per_filter) {
tmp_taps.push_back(0.0);
}
-
+
// Partition the filter
for(i = 0; i < d_numchans; i++) {
// Each channel uses all d_taps_per_filter with 0's if not enough taps to fill out
@@ -115,7 +115,7 @@ gr_pfb_synthesizer_ccf::set_taps1(const std::vector<float> &taps)
for(j = 0; j < d_taps_per_filter; j++) {
d_taps[i][j] = tmp_taps[i + j*d_numchans]; // add taps to channels in reverse order
}
-
+
// Build a filter for each channel and add it's taps to it
d_filters[i]->set_taps(d_taps[i]);
}
@@ -145,7 +145,7 @@ gr_pfb_synthesizer_ccf::set_taps2 (const std::vector<float> &taps)
while((float)(tmp_taps.size()) < d_numchans*d_taps_per_filter) {
tmp_taps.push_back(0.0);
}
-
+
// Partition the filter
for(i = 0; i < d_numchans; i++) {
// Each channel uses all d_taps_per_filter with 0's if not enough taps to fill out
@@ -156,7 +156,7 @@ gr_pfb_synthesizer_ccf::set_taps2 (const std::vector<float> &taps)
// add taps to channels in reverse order
// Zero out every other tap
if(state == 0) {
- d_taps[i][j] = tmp_taps[i + j*d_numchans];
+ d_taps[i][j] = tmp_taps[i + j*d_numchans];
d_taps[d_numchans + i][j] = 0;
state = 1;
}
@@ -166,7 +166,7 @@ gr_pfb_synthesizer_ccf::set_taps2 (const std::vector<float> &taps)
state = 0;
}
}
-
+
// Build a filter for each channel and add it's taps to it
d_filters[i]->set_taps(d_taps[i]);
d_filters[d_numchans + i]->set_taps(d_taps[d_numchans + i]);
@@ -247,17 +247,17 @@ gr_pfb_synthesizer_ccf::work (int noutput_items,
in = (gr_complex*)input_items[i];
d_fft->get_inbuf()[d_channel_map[i]] = in[n];
}
-
+
// spin through IFFT
d_fft->execute();
-
+
for(i = 0; i < d_numchans; i++) {
out[i] = d_filters[i]->filter(d_fft->get_outbuf()[i]);
}
out += d_numchans;
}
}
-
+
// Algorithm for oversampling by 2x
else {
for(n = 0; n < noutput_items/d_numchans; n++) {
@@ -265,10 +265,10 @@ gr_pfb_synthesizer_ccf::work (int noutput_items,
in = (gr_complex*)input_items[i];
d_fft->get_inbuf()[d_channel_map[i]] = in[n];
}
-
+
// spin through IFFT
d_fft->execute();
-
+
// Output is sum of two filters, but the input buffer to the filters must be circularly
// shifted by numchans every time through, done by using d_state to determine which IFFT
// buffer position to pull from.
@@ -277,7 +277,7 @@ gr_pfb_synthesizer_ccf::work (int noutput_items,
out[i] += d_filters[d_numchans+i]->filter(d_fft->get_outbuf()[(d_state^1)*d_numchans+i]);
}
d_state ^= 1;
-
+
out += d_numchans;
}
}
diff --git a/gnuradio-core/src/lib/filter/gr_pfb_synthesizer_ccf.h b/gnuradio-core/src/lib/filter/gr_pfb_synthesizer_ccf.h
index 4c127b22f..9e4f85497 100644
--- a/gnuradio-core/src/lib/filter/gr_pfb_synthesizer_ccf.h
+++ b/gnuradio-core/src/lib/filter/gr_pfb_synthesizer_ccf.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010,2012 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,
@@ -31,7 +31,7 @@
class gr_pfb_synthesizer_ccf;
typedef boost::shared_ptr<gr_pfb_synthesizer_ccf> gr_pfb_synthesizer_ccf_sptr;
-GR_CORE_API gr_pfb_synthesizer_ccf_sptr gr_make_pfb_synthesizer_ccf
+GR_CORE_API gr_pfb_synthesizer_ccf_sptr gr_make_pfb_synthesizer_ccf
(unsigned int numchans, const std::vector<float> &taps, bool twox=false);
class gri_fft_complex;
@@ -40,7 +40,7 @@ class gri_fft_complex;
/*!
* \class gr_pfb_synthesizer_ccf
*
- * \brief Polyphase synthesis filterbank with
+ * \brief Polyphase synthesis filterbank with
* gr_complex input, gr_complex output and float taps
*
* \ingroup filter_blk
@@ -52,13 +52,13 @@ class GR_CORE_API gr_pfb_synthesizer_ccf : public gr_sync_interpolator
private:
/*!
* Build the polyphase synthesis filterbank.
- * \param numchans (unsigned integer) Specifies the number of
+ * \param numchans (unsigned integer) Specifies the number of
channels <EM>M</EM>
* \param taps (vector/list of floats) The prototype filter to
populate the filterbank.
* \param twox (bool) use 2x oversampling or not (default is no)
*/
- friend GR_CORE_API gr_pfb_synthesizer_ccf_sptr gr_make_pfb_synthesizer_ccf
+ friend GR_CORE_API gr_pfb_synthesizer_ccf_sptr gr_make_pfb_synthesizer_ccf
(unsigned int numchans, const std::vector<float> &taps, bool twox);
bool d_updated;
@@ -90,13 +90,13 @@ class GR_CORE_API gr_pfb_synthesizer_ccf : public gr_sync_interpolator
to populate the filterbank.
* \param twox (bool) use 2x oversampling or not (default is no)
*/
- gr_pfb_synthesizer_ccf (unsigned int numchans,
+ gr_pfb_synthesizer_ccf (unsigned int numchans,
const std::vector<float> &taps,
bool twox);
-
+
public:
~gr_pfb_synthesizer_ccf ();
-
+
/*!
* Resets the filterbank's filter taps with the new prototype filter
* \param taps (vector/list of floats) The prototype filter to
@@ -118,7 +118,7 @@ public:
* Set the channel map. Channels are numbers as:
* N/2+1 | ... | N-1 | 0 | 1 | 2 | ... | N/2
* <------------------- 0 -------------------->
- * freq
+ * freq
*
* So input stream 0 goes to channel 0, etc. Setting a new channel
* map allows the user to specify where in frequency he/she wants
@@ -138,7 +138,7 @@ public:
* Gets the current channel map.
*/
std::vector<int> channel_map() const;
-
+
int work (int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items);
diff --git a/gnuradio-core/src/lib/filter/gr_pfb_synthesizer_ccf.i b/gnuradio-core/src/lib/filter/gr_pfb_synthesizer_ccf.i
index 1e2c057ba..c186ae355 100644
--- a/gnuradio-core/src/lib/filter/gr_pfb_synthesizer_ccf.i
+++ b/gnuradio-core/src/lib/filter/gr_pfb_synthesizer_ccf.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010,2012 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,
@@ -22,7 +22,7 @@
GR_SWIG_BLOCK_MAGIC(gr,pfb_synthesizer_ccf);
-gr_pfb_synthesizer_ccf_sptr gr_make_pfb_synthesizer_ccf
+gr_pfb_synthesizer_ccf_sptr gr_make_pfb_synthesizer_ccf
(unsigned int numchans, const std::vector<float> &taps, bool twox=false);
class gr_pfb_synthesizer_ccf : public gr_sync_interpolator
@@ -31,7 +31,7 @@ class gr_pfb_synthesizer_ccf : public gr_sync_interpolator
gr_pfb_synthesizer_ccf (unsigned int numchans,
const std::vector<float> &taps,
bool twox=false);
-
+
public:
~gr_pfb_synthesizer_ccf ();
diff --git a/gnuradio-core/src/lib/filter/gr_rational_resampler_base_XXX.cc.t b/gnuradio-core/src/lib/filter/gr_rational_resampler_base_XXX.cc.t
index 3e9a34cdc..445834dda 100644
--- a/gnuradio-core/src/lib/filter/gr_rational_resampler_base_XXX.cc.t
+++ b/gnuradio-core/src/lib/filter/gr_rational_resampler_base_XXX.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
@@ -37,9 +37,9 @@
#include <stdexcept>
#include <iostream>
-@SPTR_NAME@
+@SPTR_NAME@
gr_make_@BASE_NAME@ (unsigned interpolation,
- unsigned decimation,
+ unsigned decimation,
const std::vector<@TAP_TYPE@> &taps)
{
return gnuradio::get_initial_sptr (new @NAME@ (interpolation, decimation, taps));
@@ -64,7 +64,7 @@ gr_make_@BASE_NAME@ (unsigned interpolation,
set_output_multiple (1);
std::vector<@TAP_TYPE@> dummy_taps;
-
+
for (unsigned i = 0; i < interpolation; i++)
d_firs[i] = gr_fir_util::create_@FIR_TYPE@ (dummy_taps);
@@ -108,14 +108,14 @@ void
std::vector< std::vector <@TAP_TYPE@> > xtaps (nfilters);
for (int n = 0; n < nfilters; n++)
- xtaps[n].resize (nt);
+ xtaps[n].resize (nt);
for (int i = 0; i < (int) taps.size(); i++)
xtaps[i % nfilters][i / nfilters] = taps[i];
for (int n = 0; n < nfilters; n++)
d_firs[n]->set_taps (xtaps[n]);
-
+
set_history (nt);
d_updated = false;
diff --git a/gnuradio-core/src/lib/filter/gr_rational_resampler_base_XXX.h.t b/gnuradio-core/src/lib/filter/gr_rational_resampler_base_XXX.h.t
index 8f50acc72..3eb85a979 100644
--- a/gnuradio-core/src/lib/filter/gr_rational_resampler_base_XXX.h.t
+++ b/gnuradio-core/src/lib/filter/gr_rational_resampler_base_XXX.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
@@ -55,7 +55,7 @@ class GR_CORE_API @NAME@ : public gr_block
bool d_updated;
std::vector<@FIR_TYPE@ *> d_firs;
- friend GR_CORE_API @SPTR_NAME@
+ friend GR_CORE_API @SPTR_NAME@
gr_make_@BASE_NAME@ (unsigned interpolation, unsigned decimation, const std::vector<@TAP_TYPE@> &taps);
@@ -83,6 +83,6 @@ class GR_CORE_API @NAME@ : public gr_block
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items);
};
-
+
#endif
diff --git a/gnuradio-core/src/lib/filter/gr_rational_resampler_base_XXX.i.t b/gnuradio-core/src/lib/filter/gr_rational_resampler_base_XXX.i.t
index 1416933e2..1f789b0a3 100644
--- a/gnuradio-core/src/lib/filter/gr_rational_resampler_base_XXX.i.t
+++ b/gnuradio-core/src/lib/filter/gr_rational_resampler_base_XXX.i.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gnuradio-core/src/lib/filter/gr_rotator.h b/gnuradio-core/src/lib/filter/gr_rotator.h
index 23c7a2830..e31be6ee6 100644
--- a/gnuradio-core/src/lib/filter/gr_rotator.h
+++ b/gnuradio-core/src/lib/filter/gr_rotator.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2003,2008 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,
diff --git a/gnuradio-core/src/lib/filter/gr_sincos.c b/gnuradio-core/src/lib/filter/gr_sincos.c
index 57b26b22f..a8d01b0da 100644
--- a/gnuradio-core/src/lib/filter/gr_sincos.c
+++ b/gnuradio-core/src/lib/filter/gr_sincos.c
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
diff --git a/gnuradio-core/src/lib/filter/gr_sincos.h b/gnuradio-core/src/lib/filter/gr_sincos.h
index 3d5c99083..516f43437 100644
--- a/gnuradio-core/src/lib/filter/gr_sincos.h
+++ b/gnuradio-core/src/lib/filter/gr_sincos.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2002,2004 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,
@@ -28,7 +28,7 @@
#ifdef __cplusplus
extern "C" {
#endif
-
+
// compute sine and cosine at the same time
GR_CORE_API void gr_sincos (double x, double *sin, double *cos);
diff --git a/gnuradio-core/src/lib/filter/gr_single_pole_iir.h b/gnuradio-core/src/lib/filter/gr_single_pole_iir.h
index fb52e29e9..d73ee857d 100644
--- a/gnuradio-core/src/lib/filter/gr_single_pole_iir.h
+++ b/gnuradio-core/src/lib/filter/gr_single_pole_iir.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2002,2006 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,
@@ -28,7 +28,7 @@
/*!
* \brief class template for single pole IIR filter
*/
-template<class o_type, class i_type, class tap_type>
+template<class o_type, class i_type, class tap_type>
class gr_single_pole_iir {
public:
/*!
@@ -58,7 +58,7 @@ public:
* \brief install \p alpha as the current taps.
*/
void set_taps (tap_type alpha)
- {
+ {
if (alpha < 0 || alpha > 1)
throw std::out_of_range ("Alpha must be in [0, 1]\n");
@@ -73,7 +73,7 @@ public:
}
o_type prev_output () const { return d_prev_output; }
-
+
protected:
tap_type d_alpha;
tap_type d_one_minus_alpha;
@@ -84,7 +84,7 @@ protected:
//
// general case. We may want to specialize this
//
-template<class o_type, class i_type, class tap_type>
+template<class o_type, class i_type, class tap_type>
o_type
gr_single_pole_iir<o_type, i_type, tap_type>::filter (const i_type input)
{
@@ -97,8 +97,8 @@ gr_single_pole_iir<o_type, i_type, tap_type>::filter (const i_type input)
}
-template<class o_type, class i_type, class tap_type>
-void
+template<class o_type, class i_type, class tap_type>
+void
gr_single_pole_iir<o_type, i_type, tap_type>::filterN (o_type output[],
const i_type input[],
unsigned long n)
@@ -112,7 +112,7 @@ gr_single_pole_iir<o_type, i_type, tap_type>::filterN (o_type output[],
// Specialized case for gr_complex output and double taps
// We need to have a gr_complexd type for the calculations and prev_output variable (in stead of double)
-template<class i_type>
+template<class i_type>
class gr_single_pole_iir<gr_complex, i_type, double> {
public:
/*!
@@ -142,7 +142,7 @@ public:
* \brief install \p alpha as the current taps.
*/
void set_taps (double alpha)
- {
+ {
if (alpha < 0 || alpha > 1)
throw std::out_of_range ("Alpha must be in [0, 1]\n");
@@ -157,14 +157,14 @@ public:
}
gr_complexd prev_output () const { return d_prev_output; }
-
+
protected:
double d_alpha;
double d_one_minus_alpha;
gr_complexd d_prev_output;
};
-template< class i_type>
+template< class i_type>
gr_complex
gr_single_pole_iir<gr_complex, i_type, double>::filter (const i_type input)
{
@@ -178,8 +178,8 @@ gr_single_pole_iir<gr_complex, i_type, double>::filter (const i_type input)
//Do we need to specialize this, although it is the same as the general case?
-template<class i_type>
-void
+template<class i_type>
+void
gr_single_pole_iir<gr_complex, i_type, double>::filterN (gr_complex output[],
const i_type input[],
unsigned long n)
diff --git a/gnuradio-core/src/lib/filter/gr_single_pole_iir_filter_cc.cc b/gnuradio-core/src/lib/filter/gr_single_pole_iir_filter_cc.cc
index 8f8efb7e6..ae4f654dd 100644
--- a/gnuradio-core/src/lib/filter/gr_single_pole_iir_filter_cc.cc
+++ b/gnuradio-core/src/lib/filter/gr_single_pole_iir_filter_cc.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2006,2010 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,
@@ -29,7 +29,7 @@
#include <stdio.h>
-gr_single_pole_iir_filter_cc_sptr
+gr_single_pole_iir_filter_cc_sptr
gr_make_single_pole_iir_filter_cc (double alpha, unsigned int vlen)
{
return gnuradio::get_initial_sptr(new gr_single_pole_iir_filter_cc(alpha, vlen));
diff --git a/gnuradio-core/src/lib/filter/gr_single_pole_iir_filter_cc.h b/gnuradio-core/src/lib/filter/gr_single_pole_iir_filter_cc.h
index 78fa25393..13c595826 100644
--- a/gnuradio-core/src/lib/filter/gr_single_pole_iir_filter_cc.h
+++ b/gnuradio-core/src/lib/filter/gr_single_pole_iir_filter_cc.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2005,2006 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,
@@ -32,7 +32,7 @@
class gr_single_pole_iir_filter_cc;
typedef boost::shared_ptr<gr_single_pole_iir_filter_cc> gr_single_pole_iir_filter_cc_sptr;
-GR_CORE_API gr_single_pole_iir_filter_cc_sptr
+GR_CORE_API gr_single_pole_iir_filter_cc_sptr
gr_make_single_pole_iir_filter_cc (double alpha, unsigned int vlen=1);
/*!
@@ -67,7 +67,7 @@ gr_make_single_pole_iir_filter_cc (double alpha, unsigned int vlen=1);
class GR_CORE_API gr_single_pole_iir_filter_cc : public gr_sync_block
{
private:
- friend GR_CORE_API gr_single_pole_iir_filter_cc_sptr
+ friend GR_CORE_API gr_single_pole_iir_filter_cc_sptr
gr_make_single_pole_iir_filter_cc (double alpha, unsigned int vlen);
unsigned int d_vlen;
diff --git a/gnuradio-core/src/lib/filter/gr_single_pole_iir_filter_cc.i b/gnuradio-core/src/lib/filter/gr_single_pole_iir_filter_cc.i
index 2a7c0efe5..2f1f285de 100644
--- a/gnuradio-core/src/lib/filter/gr_single_pole_iir_filter_cc.i
+++ b/gnuradio-core/src/lib/filter/gr_single_pole_iir_filter_cc.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2006 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,
@@ -22,7 +22,7 @@
GR_SWIG_BLOCK_MAGIC(gr,single_pole_iir_filter_cc);
-gr_single_pole_iir_filter_cc_sptr
+gr_single_pole_iir_filter_cc_sptr
gr_make_single_pole_iir_filter_cc (double alpha, unsigned int vlen=1);
class gr_single_pole_iir_filter_cc : public gr_sync_block
diff --git a/gnuradio-core/src/lib/filter/gr_single_pole_iir_filter_ff.cc b/gnuradio-core/src/lib/filter/gr_single_pole_iir_filter_ff.cc
index 3282f1fc3..047b2ba25 100644
--- a/gnuradio-core/src/lib/filter/gr_single_pole_iir_filter_ff.cc
+++ b/gnuradio-core/src/lib/filter/gr_single_pole_iir_filter_ff.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
@@ -29,7 +29,7 @@
#include <stdio.h>
-gr_single_pole_iir_filter_ff_sptr
+gr_single_pole_iir_filter_ff_sptr
gr_make_single_pole_iir_filter_ff (double alpha, unsigned int vlen)
{
return gnuradio::get_initial_sptr(new gr_single_pole_iir_filter_ff(alpha, vlen));
diff --git a/gnuradio-core/src/lib/filter/gr_single_pole_iir_filter_ff.h b/gnuradio-core/src/lib/filter/gr_single_pole_iir_filter_ff.h
index d2bae5c26..8dcdad2c9 100644
--- a/gnuradio-core/src/lib/filter/gr_single_pole_iir_filter_ff.h
+++ b/gnuradio-core/src/lib/filter/gr_single_pole_iir_filter_ff.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2005 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,
@@ -31,7 +31,7 @@
class gr_single_pole_iir_filter_ff;
typedef boost::shared_ptr<gr_single_pole_iir_filter_ff> gr_single_pole_iir_filter_ff_sptr;
-GR_CORE_API gr_single_pole_iir_filter_ff_sptr
+GR_CORE_API gr_single_pole_iir_filter_ff_sptr
gr_make_single_pole_iir_filter_ff (double alpha, unsigned int vlen=1);
/*!
@@ -66,7 +66,7 @@ H(z) = \ frac{alpha}{1 - (1-alpha) z^{-1}}
class GR_CORE_API gr_single_pole_iir_filter_ff : public gr_sync_block
{
private:
- friend GR_CORE_API gr_single_pole_iir_filter_ff_sptr
+ friend GR_CORE_API gr_single_pole_iir_filter_ff_sptr
gr_make_single_pole_iir_filter_ff (double alpha, unsigned int vlen);
unsigned int d_vlen;
diff --git a/gnuradio-core/src/lib/filter/gr_single_pole_iir_filter_ff.i b/gnuradio-core/src/lib/filter/gr_single_pole_iir_filter_ff.i
index 1acecac72..a835fabb2 100644
--- a/gnuradio-core/src/lib/filter/gr_single_pole_iir_filter_ff.i
+++ b/gnuradio-core/src/lib/filter/gr_single_pole_iir_filter_ff.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -22,7 +22,7 @@
GR_SWIG_BLOCK_MAGIC(gr,single_pole_iir_filter_ff);
-gr_single_pole_iir_filter_ff_sptr
+gr_single_pole_iir_filter_ff_sptr
gr_make_single_pole_iir_filter_ff (double alpha, unsigned int vlen=1);
class gr_single_pole_iir_filter_ff : public gr_sync_block
diff --git a/gnuradio-core/src/lib/filter/gr_vec_types.h b/gnuradio-core/src/lib/filter/gr_vec_types.h
index af05c7bba..2bcec44bf 100644
--- a/gnuradio-core/src/lib/filter/gr_vec_types.h
+++ b/gnuradio-core/src/lib/filter/gr_vec_types.h
@@ -3,7 +3,7 @@
This file 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 2 of the License, or (at your option)
+ Software Foundation; either version 2 of the License, or (at your option)
any later version.
This file is distributed in the hope that it will be useful, but WITHOUT
@@ -16,13 +16,13 @@
Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA. */
-/* As a special exception, if you include this header file into source files
- compiled by GCC, this header file does not by itself cause the resulting
- executable to be covered by the GNU General Public License. This exception
- does not however invalidate any other reasons why the executable file might be
- covered by the GNU General Public License. */
+/* As a special exception, if you include this header file into source files
+ compiled by GCC, this header file does not by itself cause the resulting
+ executable to be covered by the GNU General Public License. This exception
+ does not however invalidate any other reasons why the executable file might be
+ covered by the GNU General Public License. */
-/* Single token vector data types for the PowerPC SIMD/Vector Multi-media
+/* Single token vector data types for the PowerPC SIMD/Vector Multi-media
eXtension */
#ifndef INCLUDED_GR_VEC_TYPES_H
diff --git a/gnuradio-core/src/lib/filter/gri_fft_filter_ccc_generic.cc b/gnuradio-core/src/lib/filter/gri_fft_filter_ccc_generic.cc
index 1a9273af0..e958c5061 100644
--- a/gnuradio-core/src/lib/filter/gri_fft_filter_ccc_generic.cc
+++ b/gnuradio-core/src/lib/filter/gri_fft_filter_ccc_generic.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010 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,
@@ -33,7 +33,7 @@
#include <cstring>
#include <fftw3.h>
-gri_fft_filter_ccc_generic::gri_fft_filter_ccc_generic (int decimation,
+gri_fft_filter_ccc_generic::gri_fft_filter_ccc_generic (int decimation,
const std::vector<gr_complex> &taps,
int nthreads)
: d_fftsize(-1), d_decimation(decimation), d_fwdfft(0), d_invfft(0), d_nthreads(nthreads)
@@ -49,7 +49,7 @@ gri_fft_filter_ccc_generic::~gri_fft_filter_ccc_generic ()
}
#if 0
-static void
+static void
print_vector_complex(const std::string label, const std::vector<gr_complex> &x)
{
std::cout << label;
@@ -77,7 +77,7 @@ gri_fft_filter_ccc_generic::set_taps (const std::vector<gr_complex> &taps)
gr_complex *out = d_fwdfft->get_outbuf();
float scale = 1.0 / d_fftsize;
-
+
// Compute forward xform of taps.
// Copy taps into first ntaps slots, then pad with zeros
for (i = 0; i < d_ntaps; i++)
@@ -91,7 +91,7 @@ gri_fft_filter_ccc_generic::set_taps (const std::vector<gr_complex> &taps)
// now copy output to d_xformed_taps
for (i = 0; i < d_fftsize; i++)
d_xformed_taps[i] = out[i];
-
+
return d_nsamples;
}
@@ -144,20 +144,20 @@ gri_fft_filter_ccc_generic::filter (int nitems, const gr_complex *input, gr_comp
int ninput_items = nitems * d_decimation;
for (int i = 0; i < ninput_items; i += d_nsamples){
-
+
memcpy(d_fwdfft->get_inbuf(), &input[i], d_nsamples * sizeof(gr_complex));
for (j = d_nsamples; j < d_fftsize; j++)
d_fwdfft->get_inbuf()[j] = 0;
d_fwdfft->execute(); // compute fwd xform
-
+
gr_complex *a = d_fwdfft->get_outbuf();
gr_complex *b = d_xformed_taps;
gr_complex *c = d_invfft->get_inbuf();
volk_32fc_x2_multiply_32fc_a(c, a, b, d_fftsize);
-
+
d_invfft->execute(); // compute inv xform
// add in the overlapping tail
diff --git a/gnuradio-core/src/lib/filter/gri_fft_filter_ccc_generic.h b/gnuradio-core/src/lib/filter/gri_fft_filter_ccc_generic.h
index 899b59e03..648c2b8c5 100644
--- a/gnuradio-core/src/lib/filter/gri_fft_filter_ccc_generic.h
+++ b/gnuradio-core/src/lib/filter/gri_fft_filter_ccc_generic.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010 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,
@@ -49,7 +49,7 @@ class GR_CORE_API gri_fft_filter_ccc_generic
void compute_sizes(int ntaps);
int tailsize() const { return d_ntaps - 1; }
-
+
public:
/*!
* \brief Construct an FFT filter for complex vectors with the given taps and decimation rate.
@@ -81,7 +81,7 @@ class GR_CORE_API gri_fft_filter_ccc_generic
* \brief Get number of threads being used.
*/
int nthreads() const;
-
+
/*!
* \brief Perform the filter operation
*
diff --git a/gnuradio-core/src/lib/filter/gri_fft_filter_ccc_sse.cc b/gnuradio-core/src/lib/filter/gri_fft_filter_ccc_sse.cc
index b7d925ff3..bfc939869 100644
--- a/gnuradio-core/src/lib/filter/gri_fft_filter_ccc_sse.cc
+++ b/gnuradio-core/src/lib/filter/gri_fft_filter_ccc_sse.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010 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,
@@ -48,7 +48,7 @@ gri_fft_filter_ccc_sse::~gri_fft_filter_ccc_sse ()
}
#if 0
-static void
+static void
print_vector_complex(const std::string label, const std::vector<gr_complex> &x)
{
std::cout << label;
@@ -76,7 +76,7 @@ gri_fft_filter_ccc_sse::set_taps (const std::vector<gr_complex> &taps)
gr_complex *out = d_fwdfft->get_outbuf();
float scale = 1.0 / d_fftsize;
-
+
// Compute forward xform of taps.
// Copy taps into first ntaps slots, then pad with zeros
for (i = 0; i < d_ntaps; i++)
@@ -90,7 +90,7 @@ gri_fft_filter_ccc_sse::set_taps (const std::vector<gr_complex> &taps)
// now copy output to d_xformed_taps
for (i = 0; i < d_fftsize; i++)
d_xformed_taps[i] = out[i];
-
+
return d_nsamples;
}
@@ -115,7 +115,7 @@ gri_fft_filter_ccc_sse::compute_sizes(int ntaps)
delete d_invfft;
d_fwdfft = new gri_fft_complex(d_fftsize, true);
d_invfft = new gri_fft_complex(d_fftsize, false);
-
+
fftwf_free(d_xformed_taps);
d_xformed_taps = (gr_complex*)fftwf_malloc((d_fftsize)*sizeof(gr_complex));
}
@@ -129,14 +129,14 @@ gri_fft_filter_ccc_sse::filter (int nitems, const gr_complex *input, gr_complex
int ninput_items = nitems * d_decimation;
for (int i = 0; i < ninput_items; i += d_nsamples){
-
+
memcpy(d_fwdfft->get_inbuf(), &input[i], d_nsamples * sizeof(gr_complex));
for (j = d_nsamples; j < d_fftsize; j++)
d_fwdfft->get_inbuf()[j] = 0;
d_fwdfft->execute(); // compute fwd xform
-
+
float *a = (float*)(d_fwdfft->get_outbuf());
float *b = (float*)(&d_xformed_taps[0]);
float *c = (float*)(d_invfft->get_inbuf());
@@ -146,7 +146,7 @@ gri_fft_filter_ccc_sse::filter (int nitems, const gr_complex *input, gr_complex
for (j = 0; j < 2*d_fftsize; j+=4) { // filter in the freq domain
x0 = _mm_load_ps(&a[j]);
t0 = _mm_load_ps(&b[j]);
-
+
t1 = _mm_shuffle_ps(t0, t0, _MM_SHUFFLE(3, 3, 1, 1));
t0 = _mm_shuffle_ps(t0, t0, _MM_SHUFFLE(2, 2, 0, 0));
t1 = _mm_mul_ps(t1, m);
diff --git a/gnuradio-core/src/lib/filter/gri_fft_filter_ccc_sse.h b/gnuradio-core/src/lib/filter/gri_fft_filter_ccc_sse.h
index 6c96152c0..64b8c0c15 100644
--- a/gnuradio-core/src/lib/filter/gri_fft_filter_ccc_sse.h
+++ b/gnuradio-core/src/lib/filter/gri_fft_filter_ccc_sse.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010 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,
@@ -48,7 +48,7 @@ class GR_CORE_API gri_fft_filter_ccc_sse
void compute_sizes(int ntaps);
int tailsize() const { return d_ntaps - 1; }
-
+
public:
/*!
* \brief Construct an FFT filter for complex vectors with the given taps and decimation rate.
@@ -68,7 +68,7 @@ class GR_CORE_API gri_fft_filter_ccc_sse
* \param taps The filter taps (complex)
*/
int set_taps (const std::vector<gr_complex> &taps);
-
+
/*!
* \brief Perform the filter operation
*
diff --git a/gnuradio-core/src/lib/filter/gri_fft_filter_fff_generic.cc b/gnuradio-core/src/lib/filter/gri_fft_filter_fff_generic.cc
index 0989c9621..c6e923ee1 100644
--- a/gnuradio-core/src/lib/filter/gri_fft_filter_fff_generic.cc
+++ b/gnuradio-core/src/lib/filter/gri_fft_filter_fff_generic.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010 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,
@@ -32,7 +32,7 @@
#include <cstdio>
#include <cstring>
-gri_fft_filter_fff_generic::gri_fft_filter_fff_generic (int decimation,
+gri_fft_filter_fff_generic::gri_fft_filter_fff_generic (int decimation,
const std::vector<float> &taps,
int nthreads)
: d_fftsize(-1), d_decimation(decimation), d_fwdfft(0), d_invfft(0), d_nthreads(nthreads)
@@ -64,7 +64,7 @@ gri_fft_filter_fff_generic::set_taps (const std::vector<float> &taps)
gr_complex *out = d_fwdfft->get_outbuf();
float scale = 1.0 / d_fftsize;
-
+
// Compute forward xform of taps.
// Copy taps into first ntaps slots, then pad with zeros
for (i = 0; i < d_ntaps; i++)
@@ -78,7 +78,7 @@ gri_fft_filter_fff_generic::set_taps (const std::vector<float> &taps)
// now copy output to d_xformed_taps
for (i = 0; i < d_fftsize/2+1; i++)
d_xformed_taps[i] = out[i];
-
+
return d_nsamples;
}
@@ -131,7 +131,7 @@ gri_fft_filter_fff_generic::filter (int nitems, const float *input, float *outpu
int ninput_items = nitems * d_decimation;
for (int i = 0; i < ninput_items; i += d_nsamples){
-
+
memcpy(d_fwdfft->get_inbuf(), &input[i], d_nsamples * sizeof(float));
for (j = d_nsamples; j < d_fftsize; j++)
@@ -144,7 +144,7 @@ gri_fft_filter_fff_generic::filter (int nitems, const float *input, float *outpu
gr_complex *c = d_invfft->get_inbuf();
volk_32fc_x2_multiply_32fc_a(c, a, b, d_fftsize/2+1);
-
+
d_invfft->execute(); // compute inv xform
// add in the overlapping tail
diff --git a/gnuradio-core/src/lib/filter/gri_fft_filter_fff_generic.h b/gnuradio-core/src/lib/filter/gri_fft_filter_fff_generic.h
index 6ac30cef5..528bf5dd7 100644
--- a/gnuradio-core/src/lib/filter/gri_fft_filter_fff_generic.h
+++ b/gnuradio-core/src/lib/filter/gri_fft_filter_fff_generic.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010 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,
@@ -47,7 +47,7 @@ class GR_CORE_API gri_fft_filter_fff_generic
void compute_sizes(int ntaps);
int tailsize() const { return d_ntaps - 1; }
-
+
public:
/*!
* \brief Construct a FFT filter for float vectors with the given taps and decimation rate.
@@ -69,7 +69,7 @@ class GR_CORE_API gri_fft_filter_fff_generic
* \param taps The filter taps (float)
*/
int set_taps (const std::vector<float> &taps);
-
+
/*!
* \brief Set number of threads to use.
*/
@@ -79,7 +79,7 @@ class GR_CORE_API gri_fft_filter_fff_generic
* \brief Get number of threads being used.
*/
int nthreads() const;
-
+
/*!
* \brief Perform the filter operation
*
diff --git a/gnuradio-core/src/lib/filter/gri_fft_filter_fff_sse.cc b/gnuradio-core/src/lib/filter/gri_fft_filter_fff_sse.cc
index 2680e6594..84fcfa438 100644
--- a/gnuradio-core/src/lib/filter/gri_fft_filter_fff_sse.cc
+++ b/gnuradio-core/src/lib/filter/gri_fft_filter_fff_sse.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010 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,
@@ -32,7 +32,7 @@
#include <xmmintrin.h>
#include <fftw3.h>
-gri_fft_filter_fff_sse::gri_fft_filter_fff_sse (int decimation,
+gri_fft_filter_fff_sse::gri_fft_filter_fff_sse (int decimation,
const std::vector<float> &taps)
: d_fftsize(-1), d_decimation(decimation), d_fwdfft(0), d_invfft(0)
{
@@ -64,7 +64,7 @@ gri_fft_filter_fff_sse::set_taps (const std::vector<float> &taps)
gr_complex *out = d_fwdfft->get_outbuf();
float scale = 1.0 / d_fftsize;
-
+
// Compute forward xform of taps.
// Copy taps into first ntaps slots, then pad with zeros
for (i = 0; i < d_ntaps; i++)
@@ -78,7 +78,7 @@ gri_fft_filter_fff_sse::set_taps (const std::vector<float> &taps)
// now copy output to d_xformed_taps
for (i = 0; i < d_fftsize/2+1; i++)
d_xformed_taps[i] = out[i];
-
+
return d_nsamples;
}
@@ -118,7 +118,7 @@ gri_fft_filter_fff_sse::filter (int nitems, const float *input, float *output)
int ninput_items = nitems * d_decimation;
for (int i = 0; i < ninput_items; i += d_nsamples){
-
+
memcpy(d_fwdfft->get_inbuf(), &input[i], d_nsamples * sizeof(float));
for (j = d_nsamples; j < d_fftsize; j++)
@@ -135,7 +135,7 @@ gri_fft_filter_fff_sse::filter (int nitems, const float *input, float *output)
for (j = 0; j < d_fftsize; j+=4) { // filter in the freq domain
x0 = _mm_load_ps(&a[j]);
t0 = _mm_load_ps(&b[j]);
-
+
t1 = _mm_shuffle_ps(t0, t0, _MM_SHUFFLE(3, 3, 1, 1));
t0 = _mm_shuffle_ps(t0, t0, _MM_SHUFFLE(2, 2, 0, 0));
t1 = _mm_mul_ps(t1, m);
@@ -148,7 +148,7 @@ gri_fft_filter_fff_sse::filter (int nitems, const float *input, float *output)
_mm_store_ps(&c[j], x2);
}
-
+
// Finish off the last one; do the complex multiply as floats
j = d_fftsize/2;
c[j] = (a[j] * b[j]) - (a[j+1] * b[j+1]);
diff --git a/gnuradio-core/src/lib/filter/gri_fft_filter_fff_sse.h b/gnuradio-core/src/lib/filter/gri_fft_filter_fff_sse.h
index bd87358e2..b6086562d 100644
--- a/gnuradio-core/src/lib/filter/gri_fft_filter_fff_sse.h
+++ b/gnuradio-core/src/lib/filter/gri_fft_filter_fff_sse.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010 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,
@@ -47,7 +47,7 @@ class GR_CORE_API gri_fft_filter_fff_sse
void compute_sizes(int ntaps);
int tailsize() const { return d_ntaps - 1; }
-
+
public:
/*!
* \brief Construct a FFT filter for float vectors with the given taps and decimation rate.
@@ -67,7 +67,7 @@ class GR_CORE_API gri_fft_filter_fff_sse
* \param taps The filter taps (float)
*/
int set_taps (const std::vector<float> &taps);
-
+
/*!
* \brief Perform the filter operation
*
diff --git a/gnuradio-core/src/lib/filter/gri_fir_filter_with_buffer_XXX.cc.t b/gnuradio-core/src/lib/filter/gri_fir_filter_with_buffer_XXX.cc.t
index 154068840..0ae644cc6 100644
--- a/gnuradio-core/src/lib/filter/gri_fir_filter_with_buffer_XXX.cc.t
+++ b/gnuradio-core/src/lib/filter/gri_fir_filter_with_buffer_XXX.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010 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,
@@ -42,12 +42,12 @@ void
@NAME@::set_taps (const std::vector<@TAP_TYPE@> &taps)
{
d_taps = gr_reverse(taps);
-
+
if(d_buffer != NULL) {
free(d_buffer);
d_buffer = NULL;
}
-
+
// FIXME: memalign this to 16-byte boundaries for SIMD later
size_t t = sizeof(@I_TYPE@) * 2 * d_taps.size();
d_buffer = (@I_TYPE@*)malloc(t);
diff --git a/gnuradio-core/src/lib/filter/gri_fir_filter_with_buffer_XXX.h.t b/gnuradio-core/src/lib/filter/gri_fir_filter_with_buffer_XXX.h.t
index f209a8849..efb314bed 100644
--- a/gnuradio-core/src/lib/filter/gri_fir_filter_with_buffer_XXX.h.t
+++ b/gnuradio-core/src/lib/filter/gri_fir_filter_with_buffer_XXX.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010 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,
@@ -37,10 +37,10 @@
#include <cstdio>
/*!
- * \brief FIR with internal buffer for @I_TYPE@ input,
+ * \brief FIR with internal buffer for @I_TYPE@ input,
@O_TYPE@ output and @TAP_TYPE@ taps
* \ingroup filter
- *
+ *
*/
class GR_CORE_API @NAME@ {
@@ -76,7 +76,7 @@ public:
*/
@O_TYPE@ filter (@I_TYPE@ input);
-
+
/*!
* \brief compute a single output value; designed for decimating filters.
*
@@ -102,7 +102,7 @@ public:
* \brief compute an array of N output values, decimating the input
*
* \p input must have (decimate * (n - 1) + ntaps()) valid entries.
- * input[0] .. input[decimate * (n - 1) + ntaps() - 1] are referenced to
+ * input[0] .. input[decimate * (n - 1) + ntaps() - 1] are referenced to
* compute the output values.
*/
void filterNdec (@O_TYPE@ output[], const @I_TYPE@ input[],
diff --git a/gnuradio-core/src/lib/filter/gri_goertzel.cc b/gnuradio-core/src/lib/filter/gri_goertzel.cc
index 73b8366ab..2fbdd3b13 100644
--- a/gnuradio-core/src/lib/filter/gri_goertzel.cc
+++ b/gnuradio-core/src/lib/filter/gri_goertzel.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2002,2011 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,
diff --git a/gnuradio-core/src/lib/filter/gri_goertzel.h b/gnuradio-core/src/lib/filter/gri_goertzel.h
index 6fb64b942..e28cb21a8 100644
--- a/gnuradio-core/src/lib/filter/gri_goertzel.h
+++ b/gnuradio-core/src/lib/filter/gri_goertzel.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2011 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,
@@ -44,7 +44,7 @@ public:
void input(const float &in);
gr_complex output();
bool ready() const { return d_processed == d_len; }
-
+
private:
float d_d1;
float d_d2;
diff --git a/gnuradio-core/src/lib/filter/gri_iir.h b/gnuradio-core/src/lib/filter/gri_iir.h
index ddd8f9b81..86345f6c0 100644
--- a/gnuradio-core/src/lib/filter/gri_iir.h
+++ b/gnuradio-core/src/lib/filter/gri_iir.h
@@ -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,
@@ -30,7 +30,7 @@
/*!
* \brief base class template for Infinite Impulse Response filter (IIR)
*/
-template<class i_type, class o_type, class tap_type>
+template<class i_type, class o_type, class tap_type>
class gri_iir {
public:
/*!
@@ -87,15 +87,15 @@ public:
/*!
* \brief install new taps.
*/
- void set_taps (const std::vector<tap_type> &fftaps,
+ void set_taps (const std::vector<tap_type> &fftaps,
const std::vector<tap_type> &fbtaps) throw (std::invalid_argument)
- {
+ {
d_latest_n = 0;
d_latest_m = 0;
- d_fftaps = fftaps;
- d_fbtaps = fbtaps;
+ d_fftaps = fftaps;
+ d_fbtaps = fbtaps;
int n = fftaps.size ();
int m = fbtaps.size ();
@@ -123,7 +123,7 @@ protected:
//
// general case. We may want to specialize this
//
-template<class i_type, class o_type, class tap_type>
+template<class i_type, class o_type, class tap_type>
o_type
gri_iir<i_type, o_type, tap_type>::filter (const i_type input)
{
@@ -137,7 +137,7 @@ gri_iir<i_type, o_type, tap_type>::filter (const i_type input)
int latest_n = d_latest_n;
int latest_m = d_latest_m;
-
+
acc = d_fftaps[0] * input;
for (i = 1; i < n; i ++)
acc += (d_fftaps[i] * d_prev_input[latest_n + i]);
@@ -163,8 +163,8 @@ gri_iir<i_type, o_type, tap_type>::filter (const i_type input)
}
-template<class i_type, class o_type, class tap_type>
-void
+template<class i_type, class o_type, class tap_type>
+void
gri_iir<i_type, o_type, tap_type>::filter_n (o_type output[],
const i_type input[],
long n)
diff --git a/gnuradio-core/src/lib/filter/gri_mmse_fir_interpolator.cc b/gnuradio-core/src/lib/filter/gri_mmse_fir_interpolator.cc
index 76bffc378..52098bf1a 100644
--- a/gnuradio-core/src/lib/filter/gri_mmse_fir_interpolator.cc
+++ b/gnuradio-core/src/lib/filter/gri_mmse_fir_interpolator.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,
@@ -33,7 +33,7 @@
gri_mmse_fir_interpolator::gri_mmse_fir_interpolator ()
{
filters.resize (NSTEPS + 1);
-
+
for (int i = 0; i < NSTEPS + 1; i++){
std::vector<float> t (&taps[i][0], &taps[i][NTAPS]);
filters[i] = gr_fir_util::create_gr_fir_fff (t);
diff --git a/gnuradio-core/src/lib/filter/gri_mmse_fir_interpolator.h b/gnuradio-core/src/lib/filter/gri_mmse_fir_interpolator.h
index 673802dbb..f479169bc 100644
--- a/gnuradio-core/src/lib/filter/gri_mmse_fir_interpolator.h
+++ b/gnuradio-core/src/lib/filter/gri_mmse_fir_interpolator.h
@@ -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,
@@ -36,7 +36,7 @@ class gr_fir_fff;
* Where Ts is the time between samples.
*
* Although mu, the fractional delay, is specified as a float, it is actually
- * quantized. 0.0 <= mu <= 1.0. That is, mu is quantized in the interpolate
+ * quantized. 0.0 <= mu <= 1.0. That is, mu is quantized in the interpolate
* method to 32nd's of a sample.
*
* For more information, in the GNU Radio source code, see:
diff --git a/gnuradio-core/src/lib/filter/gri_mmse_fir_interpolator_cc.cc b/gnuradio-core/src/lib/filter/gri_mmse_fir_interpolator_cc.cc
index 998c0f6a5..174378c22 100644
--- a/gnuradio-core/src/lib/filter/gri_mmse_fir_interpolator_cc.cc
+++ b/gnuradio-core/src/lib/filter/gri_mmse_fir_interpolator_cc.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,
@@ -33,7 +33,7 @@
gri_mmse_fir_interpolator_cc::gri_mmse_fir_interpolator_cc ()
{
filters.resize (NSTEPS + 1);
-
+
for (int i = 0; i < NSTEPS + 1; i++){
std::vector<float> t (&taps[i][0], &taps[i][NTAPS]);
filters[i] = gr_fir_util::create_gr_fir_ccf (t);
diff --git a/gnuradio-core/src/lib/filter/gri_mmse_fir_interpolator_cc.h b/gnuradio-core/src/lib/filter/gri_mmse_fir_interpolator_cc.h
index 5b04600b3..bacd9ed92 100644
--- a/gnuradio-core/src/lib/filter/gri_mmse_fir_interpolator_cc.h
+++ b/gnuradio-core/src/lib/filter/gri_mmse_fir_interpolator_cc.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2002,2007 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,
@@ -37,7 +37,7 @@ class gr_fir_ccf;
* Where Ts is the time between samples.
*
* Although mu, the fractional delay, is specified as a float, it is actually
- * quantized. 0.0 <= mu <= 1.0. That is, mu is quantized in the interpolate
+ * quantized. 0.0 <= mu <= 1.0. That is, mu is quantized in the interpolate
* method to 32nd's of a sample.
*
* For more information, in the GNU Radio source code, see:
diff --git a/gnuradio-core/src/lib/filter/qa_ccomplex_dotprod_x86.cc b/gnuradio-core/src/lib/filter/qa_ccomplex_dotprod_x86.cc
index b513a6361..0d7b878da 100644
--- a/gnuradio-core/src/lib/filter/qa_ccomplex_dotprod_x86.cc
+++ b/gnuradio-core/src/lib/filter/qa_ccomplex_dotprod_x86.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,
@@ -40,7 +40,7 @@ using std::cerr;
/// Macro for primitive value comparisons
#define assertcomplexEqual(expected0,expected1,actual,delta) \
CPPUNIT_ASSERT_DOUBLES_EQUAL (expected0, actual[0], delta); \
- CPPUNIT_ASSERT_DOUBLES_EQUAL (expected1, actual[1], delta);
+ CPPUNIT_ASSERT_DOUBLES_EQUAL (expected1, actual[1], delta);
#define MAX_BLKS 10
@@ -93,10 +93,10 @@ ref_ccomplex_dotprod (const float *input,
result[1] = sum0[1] + sum1[1];
}
-void
+void
qa_ccomplex_dotprod_x86::setUp ()
{
- taps = (float *) calloc16Align (MAX_BLKS,
+ taps = (float *) calloc16Align (MAX_BLKS,
sizeof (float) * FLOATS_PER_BLK);
input = (float *) calloc16Align (MAX_BLKS,
@@ -116,15 +116,15 @@ qa_ccomplex_dotprod_x86::tearDown ()
}
-void
+void
qa_ccomplex_dotprod_x86::zb () // "zero both"
{
zero_floats (taps, MAX_BLKS * FLOATS_PER_BLK);
zero_floats (input, MAX_BLKS * FLOATS_PER_BLK);
}
-//
-// t1
+//
+// t1
//
void
@@ -148,7 +148,7 @@ qa_ccomplex_dotprod_x86::t1_base (ccomplex_dotprod_t ccomplex_dotprod)
ccomplex_dotprod (input, taps, 1, result);
//cerr << result[0] << " " << result[1] << "\n";
assertcomplexEqual (1.0, -1.0, result, ERR_DELTA);
-
+
zb ();
input[1] = 2.0; taps[0] = 1.0; taps[1] = -1.0;
ccomplex_dotprod (input, taps, 1, result);
@@ -158,7 +158,7 @@ qa_ccomplex_dotprod_x86::t1_base (ccomplex_dotprod_t ccomplex_dotprod)
input[2] = 3.0; taps[2] = 1.0; taps[3] = -1.0;
ccomplex_dotprod (input, taps, 1, result);
assertcomplexEqual (3.0, -3.0, result, ERR_DELTA);
-
+
zb ();
input[3] = 4.0; taps[2] = 1.0; taps[3] = -1.0;
ccomplex_dotprod (input, taps, 1, result);
@@ -170,25 +170,25 @@ qa_ccomplex_dotprod_x86::t1_base (ccomplex_dotprod_t ccomplex_dotprod)
input[0] = 1.0; taps[0] = 0.5; taps[1] = -0.5;
ccomplex_dotprod (input, taps, 1, result);
assertcomplexEqual (0.5, -0.5, result, ERR_DELTA);
-
+
zb ();
input[0] = 1.0; taps[0] = 2.0; taps[1] = -2.0;
ccomplex_dotprod (input, taps, 1, result);
assertcomplexEqual (2.0, -2.0, result, ERR_DELTA);
-
+
zb ();
input[0] = 1.0; taps[0] = 3.0; taps[1] = -3.0;
ccomplex_dotprod (input, taps, 1, result);
assertcomplexEqual (3.0, -3.0, result, ERR_DELTA);
-
+
zb ();
input[0] = 1.0; taps[0] = 4.0; taps[1] = -4.0;
ccomplex_dotprod (input, taps, 1, result);
assertcomplexEqual (4.0, -4.0, result, ERR_DELTA);
}
-//
-// t2
+//
+// t2
//
void
qa_ccomplex_dotprod_x86::t2_base (ccomplex_dotprod_t ccomplex_dotprod)
@@ -199,7 +199,7 @@ qa_ccomplex_dotprod_x86::t2_base (ccomplex_dotprod_t ccomplex_dotprod)
input[0] = 1.0; input[1] = 3.0; taps[0] = 5.0; taps[1] = -2.0;
//1*5-3*-2 =11, 1*-2+3*5=13
-
+
ccomplex_dotprod (input, taps, 1, result);
assertcomplexEqual (11.0, 13.0, result, ERR_DELTA);
@@ -216,7 +216,7 @@ qa_ccomplex_dotprod_x86::t2_base (ccomplex_dotprod_t ccomplex_dotprod)
ccomplex_dotprod (input, taps, 2, result);
assertcomplexEqual (111.0, -831.0, result, ERR_DELTA);
-
+
}
//
@@ -259,7 +259,7 @@ qa_ccomplex_dotprod_x86::t1_3dnowext ()
t1_base (ccomplex_dotprod_3dnowext);
}
-void
+void
qa_ccomplex_dotprod_x86::t2_3dnowext ()
{
if (!gr_cpu::has_3dnowext ()){
@@ -269,7 +269,7 @@ qa_ccomplex_dotprod_x86::t2_3dnowext ()
t2_base (ccomplex_dotprod_3dnowext);
}
-void
+void
qa_ccomplex_dotprod_x86::t3_3dnowext ()
{
if (!gr_cpu::has_3dnowext ()){
@@ -289,7 +289,7 @@ qa_ccomplex_dotprod_x86::t1_3dnow ()
t1_base (ccomplex_dotprod_3dnow);
}
-void
+void
qa_ccomplex_dotprod_x86::t2_3dnow ()
{
if (!gr_cpu::has_3dnow ()){
@@ -299,7 +299,7 @@ qa_ccomplex_dotprod_x86::t2_3dnow ()
t2_base (ccomplex_dotprod_3dnow);
}
-void
+void
qa_ccomplex_dotprod_x86::t3_3dnow ()
{
if (!gr_cpu::has_3dnow ()){
@@ -309,7 +309,7 @@ qa_ccomplex_dotprod_x86::t3_3dnow ()
t3_base (ccomplex_dotprod_3dnow);
}
-void
+void
qa_ccomplex_dotprod_x86::t1_sse ()
{
if (!gr_cpu::has_sse ()){
@@ -319,7 +319,7 @@ qa_ccomplex_dotprod_x86::t1_sse ()
t1_base (ccomplex_dotprod_sse);
}
-void
+void
qa_ccomplex_dotprod_x86::t2_sse ()
{
if (!gr_cpu::has_sse ()){
@@ -329,7 +329,7 @@ qa_ccomplex_dotprod_x86::t2_sse ()
t2_base (ccomplex_dotprod_sse);
}
-void
+void
qa_ccomplex_dotprod_x86::t3_sse ()
{
if (!gr_cpu::has_sse ()){
diff --git a/gnuradio-core/src/lib/filter/qa_ccomplex_dotprod_x86.h b/gnuradio-core/src/lib/filter/qa_ccomplex_dotprod_x86.h
index e9d577d83..d24561c72 100644
--- a/gnuradio-core/src/lib/filter/qa_ccomplex_dotprod_x86.h
+++ b/gnuradio-core/src/lib/filter/qa_ccomplex_dotprod_x86.h
@@ -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,
diff --git a/gnuradio-core/src/lib/filter/qa_complex_dotprod_x86.cc b/gnuradio-core/src/lib/filter/qa_complex_dotprod_x86.cc
index 04879aa4f..a21b95f63 100644
--- a/gnuradio-core/src/lib/filter/qa_complex_dotprod_x86.cc
+++ b/gnuradio-core/src/lib/filter/qa_complex_dotprod_x86.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,
@@ -40,7 +40,7 @@ using std::cerr;
/// Macro for primitive value comparisons
#define assertcomplexEqual(expected0,expected1,actual,delta) \
CPPUNIT_ASSERT_DOUBLES_EQUAL (expected0, actual[0], delta); \
- CPPUNIT_ASSERT_DOUBLES_EQUAL (expected1, actual[1], delta);
+ CPPUNIT_ASSERT_DOUBLES_EQUAL (expected1, actual[1], delta);
#define MAX_BLKS 10
@@ -108,10 +108,10 @@ ref_complex_dotprod (const short *input,
result[1] = sum0[1] + sum1[1];
}
-void
+void
qa_complex_dotprod_x86::setUp ()
{
- taps = (float *) calloc16Align (MAX_BLKS,
+ taps = (float *) calloc16Align (MAX_BLKS,
sizeof (float) * FLOATS_PER_BLK);
input = (short *) calloc16Align (MAX_BLKS,
@@ -131,15 +131,15 @@ qa_complex_dotprod_x86::tearDown ()
}
-void
+void
qa_complex_dotprod_x86::zb () // "zero both"
{
zero_floats (taps, MAX_BLKS * FLOATS_PER_BLK);
zero_shorts (input, MAX_BLKS * SHORTS_PER_BLK);
}
-//
-// t1
+//
+// t1
//
void
@@ -163,7 +163,7 @@ qa_complex_dotprod_x86::t1_base (complex_dotprod_t complex_dotprod)
complex_dotprod (input, taps, 1, result);
//cerr << result[0] << " " << result[1] << "\n";
assertcomplexEqual (1.0, -1.0, result, ERR_DELTA);
-
+
zb ();
input[1] = 2; taps[2] = 1.0; taps[3] = -1.0;
complex_dotprod (input, taps, 1, result);
@@ -173,7 +173,7 @@ qa_complex_dotprod_x86::t1_base (complex_dotprod_t complex_dotprod)
input[2] = 3; taps[4] = 1.0; taps[5] = -1.0;
complex_dotprod (input, taps, 2, result);
assertcomplexEqual (3.0, -3.0, result, ERR_DELTA);
-
+
zb ();
input[3] = 4; taps[6] = 1.0; taps[7] = -1.0;
complex_dotprod (input, taps, 2, result);
@@ -185,25 +185,25 @@ qa_complex_dotprod_x86::t1_base (complex_dotprod_t complex_dotprod)
input[0] = 1; taps[0] = 0.5; taps[1] = -0.5;
complex_dotprod (input, taps, 1, result);
assertcomplexEqual (0.5, -0.5, result, ERR_DELTA);
-
+
zb ();
input[0] = 1; taps[0] = 2.0; taps[1] = -2.0;
complex_dotprod (input, taps, 1, result);
assertcomplexEqual (2.0, -2.0, result, ERR_DELTA);
-
+
zb ();
input[0] = 1; taps[0] = 3.0; taps[1] = -3.0;
complex_dotprod (input, taps, 1, result);
assertcomplexEqual (3.0, -3.0, result, ERR_DELTA);
-
+
zb ();
input[0] = 1; taps[0] = 4.0; taps[1] = -4.0;
complex_dotprod (input, taps, 1, result);
assertcomplexEqual (4.0, -4.0, result, ERR_DELTA);
}
-//
-// t2
+//
+// t2
//
void
qa_complex_dotprod_x86::t2_base (complex_dotprod_t complex_dotprod)
@@ -222,7 +222,7 @@ qa_complex_dotprod_x86::t2_base (complex_dotprod_t complex_dotprod)
input[4] = 19; taps[8] = 23.0; taps[9] = -23.0;
complex_dotprod (input, taps, 3, result);
assertcomplexEqual (752.0, -752.0, result, ERR_DELTA);
-
+
}
//
@@ -265,7 +265,7 @@ qa_complex_dotprod_x86::t1_3dnowext ()
t1_base (complex_dotprod_3dnowext);
}
-void
+void
qa_complex_dotprod_x86::t2_3dnowext ()
{
if (!gr_cpu::has_3dnowext ()){
@@ -275,7 +275,7 @@ qa_complex_dotprod_x86::t2_3dnowext ()
t2_base (complex_dotprod_3dnowext);
}
-void
+void
qa_complex_dotprod_x86::t3_3dnowext ()
{
if (!gr_cpu::has_3dnowext ()){
@@ -295,7 +295,7 @@ qa_complex_dotprod_x86::t1_3dnow ()
t1_base (complex_dotprod_3dnow);
}
-void
+void
qa_complex_dotprod_x86::t2_3dnow ()
{
if (!gr_cpu::has_3dnow ()){
@@ -305,7 +305,7 @@ qa_complex_dotprod_x86::t2_3dnow ()
t2_base (complex_dotprod_3dnow);
}
-void
+void
qa_complex_dotprod_x86::t3_3dnow ()
{
if (!gr_cpu::has_3dnow ()){
@@ -315,7 +315,7 @@ qa_complex_dotprod_x86::t3_3dnow ()
t3_base (complex_dotprod_3dnow);
}
-void
+void
qa_complex_dotprod_x86::t1_sse ()
{
if (!gr_cpu::has_sse ()){
@@ -325,7 +325,7 @@ qa_complex_dotprod_x86::t1_sse ()
t1_base (complex_dotprod_sse);
}
-void
+void
qa_complex_dotprod_x86::t2_sse ()
{
if (!gr_cpu::has_sse ()){
@@ -335,7 +335,7 @@ qa_complex_dotprod_x86::t2_sse ()
t2_base (complex_dotprod_sse);
}
-void
+void
qa_complex_dotprod_x86::t3_sse ()
{
if (!gr_cpu::has_sse ()){
diff --git a/gnuradio-core/src/lib/filter/qa_complex_dotprod_x86.h b/gnuradio-core/src/lib/filter/qa_complex_dotprod_x86.h
index 2f2d9e888..9f9b46039 100644
--- a/gnuradio-core/src/lib/filter/qa_complex_dotprod_x86.h
+++ b/gnuradio-core/src/lib/filter/qa_complex_dotprod_x86.h
@@ -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,
diff --git a/gnuradio-core/src/lib/filter/qa_dotprod.h b/gnuradio-core/src/lib/filter/qa_dotprod.h
index 30fbc380f..bd5ba8f3a 100644
--- a/gnuradio-core/src/lib/filter/qa_dotprod.h
+++ b/gnuradio-core/src/lib/filter/qa_dotprod.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2003 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,
diff --git a/gnuradio-core/src/lib/filter/qa_dotprod_armv7_a.cc b/gnuradio-core/src/lib/filter/qa_dotprod_armv7_a.cc
index e2971c86b..1e1ded7ea 100644
--- a/gnuradio-core/src/lib/filter/qa_dotprod_armv7_a.cc
+++ b/gnuradio-core/src/lib/filter/qa_dotprod_armv7_a.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2003,2009 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,
diff --git a/gnuradio-core/src/lib/filter/qa_dotprod_generic.cc b/gnuradio-core/src/lib/filter/qa_dotprod_generic.cc
index 1b02a79c8..2c49d1d28 100644
--- a/gnuradio-core/src/lib/filter/qa_dotprod_generic.cc
+++ b/gnuradio-core/src/lib/filter/qa_dotprod_generic.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2003 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,
diff --git a/gnuradio-core/src/lib/filter/qa_dotprod_powerpc.cc b/gnuradio-core/src/lib/filter/qa_dotprod_powerpc.cc
index 1b02a79c8..2c49d1d28 100644
--- a/gnuradio-core/src/lib/filter/qa_dotprod_powerpc.cc
+++ b/gnuradio-core/src/lib/filter/qa_dotprod_powerpc.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2003 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,
diff --git a/gnuradio-core/src/lib/filter/qa_dotprod_x86.cc b/gnuradio-core/src/lib/filter/qa_dotprod_x86.cc
index 1971a3e2e..ec5625f10 100644
--- a/gnuradio-core/src/lib/filter/qa_dotprod_x86.cc
+++ b/gnuradio-core/src/lib/filter/qa_dotprod_x86.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2003 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,
diff --git a/gnuradio-core/src/lib/filter/qa_filter.cc b/gnuradio-core/src/lib/filter/qa_filter.cc
index 0d03cb0ee..629635084 100644
--- a/gnuradio-core/src/lib/filter/qa_filter.cc
+++ b/gnuradio-core/src/lib/filter/qa_filter.cc
@@ -1,18 +1,18 @@
/*
* Copyright 2002,2007 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,
diff --git a/gnuradio-core/src/lib/filter/qa_filter.h b/gnuradio-core/src/lib/filter/qa_filter.h
index a10782068..740d05ce4 100644
--- a/gnuradio-core/src/lib/filter/qa_filter.h
+++ b/gnuradio-core/src/lib/filter/qa_filter.h
@@ -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,
diff --git a/gnuradio-core/src/lib/filter/qa_float_dotprod_x86.cc b/gnuradio-core/src/lib/filter/qa_float_dotprod_x86.cc
index 54b57459b..f8752d071 100644
--- a/gnuradio-core/src/lib/filter/qa_float_dotprod_x86.cc
+++ b/gnuradio-core/src/lib/filter/qa_float_dotprod_x86.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,
@@ -58,7 +58,7 @@ zero_floats (float *buf, unsigned n)
buf[i] = 0.0;
}
-float
+float
ref_float_dotprod (const float *input,
const float *taps, unsigned n_4_float_blocks)
{
@@ -83,10 +83,10 @@ ref_float_dotprod (const float *input,
return sum0 + sum1 + sum2 + sum3;
}
-void
+void
qa_float_dotprod_x86::setUp ()
{
- taps = (float *) calloc16Align (MAX_BLKS,
+ taps = (float *) calloc16Align (MAX_BLKS,
sizeof (float) * FLOATS_PER_BLK);
input = (float *) calloc16Align (MAX_BLKS,
@@ -106,21 +106,21 @@ qa_float_dotprod_x86::tearDown ()
}
-void
+void
qa_float_dotprod_x86::zb () // "zero both"
{
zero_floats (taps, MAX_BLKS * FLOATS_PER_BLK);
zero_floats (input, MAX_BLKS * FLOATS_PER_BLK);
}
-//
-// t1
+//
+// t1
//
void
qa_float_dotprod_x86::t1_base (float_dotprod_t float_dotprod)
{
-
+
// cerr << "Testing dump_xmm_regs\n";
// dump_xmm_regs ();
@@ -134,40 +134,40 @@ qa_float_dotprod_x86::t1_base (float_dotprod_t float_dotprod)
zb ();
input[0] = 0.5; taps[0] = 1.0;
CPPUNIT_ASSERT_DOUBLES_EQUAL (0.5, float_dotprod (input, taps, 1), ERR_DELTA);
-
+
zb ();
input[1] = 2.0; taps[1] = 1.0;
CPPUNIT_ASSERT_DOUBLES_EQUAL (2.0, float_dotprod (input, taps, 1), ERR_DELTA);
-
+
zb ();
input[2] = 3.0; taps[2] = 1.0;
CPPUNIT_ASSERT_DOUBLES_EQUAL (3.0, float_dotprod (input, taps, 1), ERR_DELTA);
-
+
zb ();
input[3] = 4.0; taps[3] = 1.0;
CPPUNIT_ASSERT_DOUBLES_EQUAL (4.0, float_dotprod (input, taps, 1), ERR_DELTA);
-
+
// vary each tap
zb ();
input[0] = 1.0; taps[0] = 0.5;
CPPUNIT_ASSERT_DOUBLES_EQUAL (0.5, float_dotprod (input, taps, 1), ERR_DELTA);
-
+
zb ();
input[0] = 1.0; taps[0] = 2.0;
CPPUNIT_ASSERT_DOUBLES_EQUAL (2.0, float_dotprod (input, taps, 1), ERR_DELTA);
-
+
zb ();
input[0] = 1.0; taps[0] = 3.0;
CPPUNIT_ASSERT_DOUBLES_EQUAL (3.0, float_dotprod (input, taps, 1), ERR_DELTA);
-
+
zb ();
input[0] = 1.0; taps[0] = 4.0;
CPPUNIT_ASSERT_DOUBLES_EQUAL (4.0, float_dotprod (input, taps, 1), ERR_DELTA);
}
-//
-// t2
+//
+// t2
//
void
qa_float_dotprod_x86::t2_base (float_dotprod_t float_dotprod)
@@ -182,7 +182,7 @@ qa_float_dotprod_x86::t2_base (float_dotprod_t float_dotprod)
input[4] = 19.0; taps[4] = 23.0;
CPPUNIT_ASSERT_DOUBLES_EQUAL (752.0, float_dotprod (input, taps, 2), ERR_DELTA);
-
+
}
//
@@ -219,7 +219,7 @@ qa_float_dotprod_x86::t1_3dnow ()
t1_base (float_dotprod_3dnow);
}
-void
+void
qa_float_dotprod_x86::t2_3dnow ()
{
if (!gr_cpu::has_3dnow ()){
@@ -229,7 +229,7 @@ qa_float_dotprod_x86::t2_3dnow ()
t2_base (float_dotprod_3dnow);
}
-void
+void
qa_float_dotprod_x86::t3_3dnow ()
{
if (!gr_cpu::has_3dnow ()){
@@ -239,7 +239,7 @@ qa_float_dotprod_x86::t3_3dnow ()
t3_base (float_dotprod_3dnow);
}
-void
+void
qa_float_dotprod_x86::t1_sse ()
{
if (!gr_cpu::has_sse ()){
@@ -249,7 +249,7 @@ qa_float_dotprod_x86::t1_sse ()
t1_base (float_dotprod_sse);
}
-void
+void
qa_float_dotprod_x86::t2_sse ()
{
if (!gr_cpu::has_sse ()){
@@ -259,7 +259,7 @@ qa_float_dotprod_x86::t2_sse ()
t2_base (float_dotprod_sse);
}
-void
+void
qa_float_dotprod_x86::t3_sse ()
{
if (!gr_cpu::has_sse ()){
diff --git a/gnuradio-core/src/lib/filter/qa_float_dotprod_x86.h b/gnuradio-core/src/lib/filter/qa_float_dotprod_x86.h
index 79ffc220f..38d6104fa 100644
--- a/gnuradio-core/src/lib/filter/qa_float_dotprod_x86.h
+++ b/gnuradio-core/src/lib/filter/qa_float_dotprod_x86.h
@@ -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,
@@ -57,7 +57,7 @@ class qa_float_dotprod_x86 : public CppUnit::TestCase {
void t2_base (float_dotprod_t);
void t3_base (float_dotprod_t);
-
+
void zb ();
float *taps; // 16-byte aligned
diff --git a/gnuradio-core/src/lib/filter/qa_gr_fir_ccc.cc b/gnuradio-core/src/lib/filter/qa_gr_fir_ccc.cc
index 52f3340a9..7474b76e2 100644
--- a/gnuradio-core/src/lib/filter/qa_gr_fir_ccc.cc
+++ b/gnuradio-core/src/lib/filter/qa_gr_fir_ccc.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,
@@ -102,7 +102,7 @@ ref_dotprod (const i_type input[], const tap_type taps[], int ntaps)
//
static void
-test_random_io (fir_maker_t maker)
+test_random_io (fir_maker_t maker)
{
const int MAX_TAPS = 9;
const int OUTPUT_LEN = 17;
@@ -147,7 +147,7 @@ test_random_io (fir_maker_t maker)
// our reference implementation is using 80 bit floating point
// arithmetic, while the SSE version is using 32 bit float point
// arithmetic.
-
+
for (int o = 0; o < ol; o++){
CPPUNIT_ASSERT_COMPLEXES_EQUAL(expected_output[o],
actual_output[o],
@@ -164,7 +164,7 @@ static void
for_each (void (*f)(fir_maker_t))
{
std::vector<gr_fir_ccc_info> info;
- gr_fir_util::get_gr_fir_ccc_info (&info); // get all known ccc implementations
+ gr_fir_util::get_gr_fir_ccc_info (&info); // get all known ccc implementations
for (std::vector<gr_fir_ccc_info>::iterator p = info.begin ();
p != info.end ();
diff --git a/gnuradio-core/src/lib/filter/qa_gr_fir_ccc.h b/gnuradio-core/src/lib/filter/qa_gr_fir_ccc.h
index 217f21461..0535e6652 100644
--- a/gnuradio-core/src/lib/filter/qa_gr_fir_ccc.h
+++ b/gnuradio-core/src/lib/filter/qa_gr_fir_ccc.h
@@ -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,
diff --git a/gnuradio-core/src/lib/filter/qa_gr_fir_ccf.cc b/gnuradio-core/src/lib/filter/qa_gr_fir_ccf.cc
index 6bb63f240..84cb924ae 100644
--- a/gnuradio-core/src/lib/filter/qa_gr_fir_ccf.cc
+++ b/gnuradio-core/src/lib/filter/qa_gr_fir_ccf.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,
@@ -101,7 +101,7 @@ ref_dotprod (const i_type input[], const tap_type taps[], int ntaps)
//
static void
-test_random_io (fir_maker_t maker)
+test_random_io (fir_maker_t maker)
{
const int MAX_TAPS = 9;
const int OUTPUT_LEN = 17;
@@ -146,7 +146,7 @@ test_random_io (fir_maker_t maker)
// our reference implementation is using 80 bit floating point
// arithmetic, while the SSE version is using 32 bit float point
// arithmetic.
-
+
for (int o = 0; o < ol; o++){
CPPUNIT_ASSERT_COMPLEXES_EQUAL(expected_output[o], actual_output[o],
abs (expected_output[o]) * ERR_DELTA);
@@ -163,7 +163,7 @@ static void
for_each (void (*f)(fir_maker_t))
{
std::vector<gr_fir_ccf_info> info;
- gr_fir_util::get_gr_fir_ccf_info (&info); // get all known ccf implementations
+ gr_fir_util::get_gr_fir_ccf_info (&info); // get all known ccf implementations
for (std::vector<gr_fir_ccf_info>::iterator p = info.begin ();
p != info.end ();
diff --git a/gnuradio-core/src/lib/filter/qa_gr_fir_ccf.h b/gnuradio-core/src/lib/filter/qa_gr_fir_ccf.h
index e08bf1fcd..bda79cc2f 100644
--- a/gnuradio-core/src/lib/filter/qa_gr_fir_ccf.h
+++ b/gnuradio-core/src/lib/filter/qa_gr_fir_ccf.h
@@ -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,
diff --git a/gnuradio-core/src/lib/filter/qa_gr_fir_fcc.cc b/gnuradio-core/src/lib/filter/qa_gr_fir_fcc.cc
index bb56d1788..4c77a5e5c 100644
--- a/gnuradio-core/src/lib/filter/qa_gr_fir_fcc.cc
+++ b/gnuradio-core/src/lib/filter/qa_gr_fir_fcc.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,
@@ -102,7 +102,7 @@ ref_dotprod (const i_type input[], const tap_type taps[], int ntaps)
//
static void
-test_random_io (fir_maker_t maker)
+test_random_io (fir_maker_t maker)
{
const int MAX_TAPS = 9;
const int OUTPUT_LEN = 17;
@@ -145,7 +145,7 @@ test_random_io (fir_maker_t maker)
// our reference implementation is using 80 bit floating point
// arithmetic, while the SSE version is using 32 bit float point
// arithmetic.
-
+
for (int o = 0; o < ol; o++){
CPPUNIT_ASSERT_COMPLEXES_EQUAL(expected_output[o],
actual_output[o],
@@ -161,7 +161,7 @@ static void
for_each (void (*f)(fir_maker_t))
{
std::vector<gr_fir_fcc_info> info;
- gr_fir_util::get_gr_fir_fcc_info (&info); // get all known fcc implementations
+ gr_fir_util::get_gr_fir_fcc_info (&info); // get all known fcc implementations
for (std::vector<gr_fir_fcc_info>::iterator p = info.begin ();
p != info.end ();
diff --git a/gnuradio-core/src/lib/filter/qa_gr_fir_fcc.h b/gnuradio-core/src/lib/filter/qa_gr_fir_fcc.h
index bb3aad54f..23706fd9c 100644
--- a/gnuradio-core/src/lib/filter/qa_gr_fir_fcc.h
+++ b/gnuradio-core/src/lib/filter/qa_gr_fir_fcc.h
@@ -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,
diff --git a/gnuradio-core/src/lib/filter/qa_gr_fir_fff.cc b/gnuradio-core/src/lib/filter/qa_gr_fir_fff.cc
index b921223ed..80ed67465 100644
--- a/gnuradio-core/src/lib/filter/qa_gr_fir_fff.cc
+++ b/gnuradio-core/src/lib/filter/qa_gr_fir_fff.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,
@@ -82,7 +82,7 @@ test_known_io (fir_maker_t maker)
{
vector<tap_type> t1a (&taps_1a[0], &taps_1a[NELEM (taps_1a)]);
vector<tap_type> t1b (&taps_1b[0], &taps_1b[NELEM (taps_1b)]);
-
+
gr_fir_fff *f1 = maker (t1a); // create filter
CPPUNIT_ASSERT_EQUAL ((unsigned) 1, f1->ntaps ()); // check ntaps
@@ -93,7 +93,7 @@ test_known_io (fir_maker_t maker)
f1->set_taps (t1b); // set new taps
CPPUNIT_ASSERT_EQUAL ((unsigned) 2, f1->ntaps ()); // check ntaps
-
+
// check filter output
n = NELEM (input_1) - f1->ntaps () + 1;
for (int i = 0; i < n; i++)
@@ -141,7 +141,7 @@ ref_dotprod (const i_type input[], const tap_type taps[], int ntaps)
}
static void
-test_random_io (fir_maker_t maker)
+test_random_io (fir_maker_t maker)
{
const int MAX_TAPS = 32;
const int OUTPUT_LEN = 17;
@@ -184,7 +184,7 @@ test_random_io (fir_maker_t maker)
// our reference implementation is using 80 bit floating point
// arithmetic, while the SSE version is using 32 bit float point
// arithmetic.
-
+
for (int o = 0; o < ol; o++){
CPPUNIT_ASSERT_DOUBLES_EQUAL (expected_output[o], actual_output[o],
fabs (expected_output[o]) * 9e-3);
@@ -200,7 +200,7 @@ static void
for_each (void (*f)(fir_maker_t))
{
std::vector<gr_fir_fff_info> info;
- gr_fir_util::get_gr_fir_fff_info (&info); // get all known fff implementations
+ gr_fir_util::get_gr_fir_fff_info (&info); // get all known fff implementations
for (std::vector<gr_fir_fff_info>::iterator p = info.begin ();
p != info.end ();
diff --git a/gnuradio-core/src/lib/filter/qa_gr_fir_fff.h b/gnuradio-core/src/lib/filter/qa_gr_fir_fff.h
index 70f6bdbe2..c89672896 100644
--- a/gnuradio-core/src/lib/filter/qa_gr_fir_fff.h
+++ b/gnuradio-core/src/lib/filter/qa_gr_fir_fff.h
@@ -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,
diff --git a/gnuradio-core/src/lib/filter/qa_gr_fir_scc.cc b/gnuradio-core/src/lib/filter/qa_gr_fir_scc.cc
index 1aea34fbb..3f4a7be2c 100644
--- a/gnuradio-core/src/lib/filter/qa_gr_fir_scc.cc
+++ b/gnuradio-core/src/lib/filter/qa_gr_fir_scc.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,
@@ -100,7 +100,7 @@ ref_dotprod (const i_type input[], const tap_type taps[], int ntaps)
//
static void
-test_random_io (fir_maker_t maker)
+test_random_io (fir_maker_t maker)
{
const int MAX_TAPS = 9;
const int OUTPUT_LEN = 17;
@@ -143,7 +143,7 @@ test_random_io (fir_maker_t maker)
// our reference implementation is using 80 bit floating point
// arithmetic, while the SSE version is using 32 bit float point
// arithmetic.
-
+
for (int o = 0; o < ol; o++){
CPPUNIT_ASSERT_COMPLEXES_EQUAL(expected_output[o],
actual_output[o],
@@ -159,7 +159,7 @@ static void
for_each (void (*f)(fir_maker_t))
{
std::vector<gr_fir_scc_info> info;
- gr_fir_util::get_gr_fir_scc_info (&info); // get all known scc implementations
+ gr_fir_util::get_gr_fir_scc_info (&info); // get all known scc implementations
for (std::vector<gr_fir_scc_info>::iterator p = info.begin ();
p != info.end ();
diff --git a/gnuradio-core/src/lib/filter/qa_gr_fir_scc.h b/gnuradio-core/src/lib/filter/qa_gr_fir_scc.h
index f371669ba..4b5ffdae3 100644
--- a/gnuradio-core/src/lib/filter/qa_gr_fir_scc.h
+++ b/gnuradio-core/src/lib/filter/qa_gr_fir_scc.h
@@ -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,
diff --git a/gnuradio-core/src/lib/filter/qa_gr_rotator.cc b/gnuradio-core/src/lib/filter/qa_gr_rotator.cc
index ef41127fd..b2885a12d 100644
--- a/gnuradio-core/src/lib/filter/qa_gr_rotator.cc
+++ b/gnuradio-core/src/lib/filter/qa_gr_rotator.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,
@@ -35,7 +35,7 @@
// error vector magnitude
__GR_ATTR_UNUSED static float
-error_vector_mag(gr_complex a, gr_complex b)
+error_vector_mag(gr_complex a, gr_complex b)
{
return abs(a-b);
}
diff --git a/gnuradio-core/src/lib/filter/qa_gr_rotator.h b/gnuradio-core/src/lib/filter/qa_gr_rotator.h
index 2cc6006aa..739b23f8c 100644
--- a/gnuradio-core/src/lib/filter/qa_gr_rotator.h
+++ b/gnuradio-core/src/lib/filter/qa_gr_rotator.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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,
diff --git a/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_ccc.cc b/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_ccc.cc
index ca76c8eb8..cfdbc53eb 100644
--- a/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_ccc.cc
+++ b/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_ccc.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010 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,
@@ -70,7 +70,7 @@ ref_dotprod (const i_type input[], const tap_type taps[], int ntaps)
for (int i = 0; i < ntaps; i++) {
sum += input[i] * taps[i];
}
-
+
return sum;
}
@@ -149,7 +149,7 @@ qa_gri_fir_filter_with_buffer_ccc::test_decimate(unsigned int decimate)
// our reference implementation is using 80 bit floating point
// arithmetic, while the SSE version is using 32 bit float point
// arithmetic.
-
+
for (int o = 0; o < (int)(ol/decimate); o++){
CPPUNIT_ASSERT_COMPLEXES_EQUAL(expected_output[o], actual_output[o],
sqrt((float)n)*0.25*MAX_DATA*MAX_DATA * ERR_DELTA);
diff --git a/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_ccc.h b/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_ccc.h
index f9f206f66..c1f2df10c 100644
--- a/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_ccc.h
+++ b/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_ccc.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010 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,
diff --git a/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_ccf.cc b/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_ccf.cc
index c25853b1e..9a5be0351 100644
--- a/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_ccf.cc
+++ b/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_ccf.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010 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,
@@ -76,7 +76,7 @@ ref_dotprod (const i_type input[], const tap_type taps[], int ntaps)
for (int i = 0; i < ntaps; i++) {
sum += input[i] * taps[i];
}
-
+
return sum;
}
@@ -155,7 +155,7 @@ qa_gri_fir_filter_with_buffer_ccf::test_decimate (unsigned int decimate)
// our reference implementation is using 80 bit floating point
// arithmetic, while the SSE version is using 32 bit float point
// arithmetic.
-
+
for (int o = 0; o < (int)(ol/decimate); o++){
CPPUNIT_ASSERT_COMPLEXES_EQUAL(expected_output[o], actual_output[o],
abs (expected_output[o]) * ERR_DELTA);
diff --git a/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_ccf.h b/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_ccf.h
index 924b4bc2e..686bc8541 100644
--- a/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_ccf.h
+++ b/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_ccf.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010 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,
diff --git a/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_fcc.cc b/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_fcc.cc
index 19f270200..583697165 100644
--- a/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_fcc.cc
+++ b/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_fcc.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010 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,
@@ -76,7 +76,7 @@ ref_dotprod (const i_type input[], const tap_type taps[], int ntaps)
for (int i = 0; i < ntaps; i++) {
sum += input[i] * taps[i];
}
-
+
return sum;
}
@@ -156,7 +156,7 @@ qa_gri_fir_filter_with_buffer_fcc::test_decimate(unsigned int decimate)
// our reference implementation is using 80 bit floating point
// arithmetic, while the SSE version is using 32 bit float point
// arithmetic.
-
+
for (int o = 0; o < (int)(ol/decimate); o++){
CPPUNIT_ASSERT_COMPLEXES_EQUAL(expected_output[o], actual_output[o],
abs (expected_output[o]) * ERR_DELTA);
diff --git a/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_fcc.h b/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_fcc.h
index 6201800f9..64eed25d3 100644
--- a/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_fcc.h
+++ b/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_fcc.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010 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,
diff --git a/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_fff.cc b/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_fff.cc
index 8401e484b..208ae01db 100644
--- a/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_fff.cc
+++ b/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_fff.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010 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,
@@ -70,7 +70,7 @@ ref_dotprod (const i_type input[], const tap_type taps[], int ntaps)
}
void
-qa_gri_fir_filter_with_buffer_fff::t1 ()
+qa_gri_fir_filter_with_buffer_fff::t1 ()
{
test_decimate(1);
}
@@ -144,7 +144,7 @@ qa_gri_fir_filter_with_buffer_fff::test_decimate(unsigned int decimate)
// our reference implementation is using 80 bit floating point
// arithmetic, while the SSE version is using 32 bit float point
// arithmetic.
-
+
for (int o = 0; o < (int)(ol/decimate); o++){
CPPUNIT_ASSERT_DOUBLES_EQUAL(expected_output[o], actual_output[o],
fabsf (expected_output[o]) * ERR_DELTA);
diff --git a/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_fff.h b/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_fff.h
index 54a9cdc53..d219ec72d 100644
--- a/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_fff.h
+++ b/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_fff.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010 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,
diff --git a/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_fsf.cc b/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_fsf.cc
index 091505380..e2b6fb04f 100644
--- a/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_fsf.cc
+++ b/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_fsf.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010 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,
@@ -91,7 +91,7 @@ qa_gri_fir_filter_with_buffer_fsf::t3 ()
// and exercises all corner cases on input alignment and length.
//
void
-qa_gri_fir_filter_with_buffer_fsf::test_decimate (unsigned int decimate)
+qa_gri_fir_filter_with_buffer_fsf::test_decimate (unsigned int decimate)
{
const int MAX_TAPS = 9;
const int OUTPUT_LEN = 17;
diff --git a/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_fsf.h b/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_fsf.h
index 9c901464e..70030a072 100644
--- a/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_fsf.h
+++ b/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_fsf.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010 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,
@@ -35,7 +35,7 @@ class qa_gri_fir_filter_with_buffer_fsf : public CppUnit::TestCase {
private:
void test_decimate(unsigned int decimate);
-
+
void t1 ();
void t2 ();
void t3 ();
diff --git a/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_scc.cc b/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_scc.cc
index 03cd71022..15f8b1f95 100644
--- a/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_scc.cc
+++ b/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_scc.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010 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,
@@ -76,7 +76,7 @@ ref_dotprod (const i_type input[], const tap_type taps[], int ntaps)
for (int i = 0; i < ntaps; i++) {
sum += (float)input[i] * taps[i];
}
-
+
return sum;
}
diff --git a/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_scc.h b/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_scc.h
index 970ca3749..f80056189 100644
--- a/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_scc.h
+++ b/gnuradio-core/src/lib/filter/qa_gri_fir_filter_with_buffer_scc.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010 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,
diff --git a/gnuradio-core/src/lib/filter/qa_gri_mmse_fir_interpolator.cc b/gnuradio-core/src/lib/filter/qa_gri_mmse_fir_interpolator.cc
index d158ff00d..7dca65b9a 100644
--- a/gnuradio-core/src/lib/filter/qa_gri_mmse_fir_interpolator.cc
+++ b/gnuradio-core/src/lib/filter/qa_gri_mmse_fir_interpolator.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,
diff --git a/gnuradio-core/src/lib/filter/qa_gri_mmse_fir_interpolator.h b/gnuradio-core/src/lib/filter/qa_gri_mmse_fir_interpolator.h
index 400cffb7e..3f4dec7c2 100644
--- a/gnuradio-core/src/lib/filter/qa_gri_mmse_fir_interpolator.h
+++ b/gnuradio-core/src/lib/filter/qa_gri_mmse_fir_interpolator.h
@@ -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,
diff --git a/gnuradio-core/src/lib/filter/qa_gri_mmse_fir_interpolator_cc.cc b/gnuradio-core/src/lib/filter/qa_gri_mmse_fir_interpolator_cc.cc
index d0ed04238..1f70d7f42 100644
--- a/gnuradio-core/src/lib/filter/qa_gri_mmse_fir_interpolator_cc.cc
+++ b/gnuradio-core/src/lib/filter/qa_gri_mmse_fir_interpolator_cc.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2002,2007 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,
diff --git a/gnuradio-core/src/lib/filter/qa_gri_mmse_fir_interpolator_cc.h b/gnuradio-core/src/lib/filter/qa_gri_mmse_fir_interpolator_cc.h
index 496f39702..6be3d9743 100644
--- a/gnuradio-core/src/lib/filter/qa_gri_mmse_fir_interpolator_cc.h
+++ b/gnuradio-core/src/lib/filter/qa_gri_mmse_fir_interpolator_cc.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2002,2007 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,
diff --git a/gnuradio-core/src/lib/filter/short_dotprod_generic.c b/gnuradio-core/src/lib/filter/short_dotprod_generic.c
index f15027f1e..49a9c0483 100644
--- a/gnuradio-core/src/lib/filter/short_dotprod_generic.c
+++ b/gnuradio-core/src/lib/filter/short_dotprod_generic.c
@@ -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,
diff --git a/gnuradio-core/src/lib/filter/short_dotprod_generic.h b/gnuradio-core/src/lib/filter/short_dotprod_generic.h
index bff4d937c..e7d977a00 100644
--- a/gnuradio-core/src/lib/filter/short_dotprod_generic.h
+++ b/gnuradio-core/src/lib/filter/short_dotprod_generic.h
@@ -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,
diff --git a/gnuradio-core/src/lib/filter/short_dotprod_mmx.S b/gnuradio-core/src/lib/filter/short_dotprod_mmx.S
index 1830a1a94..48f634a18 100644
--- a/gnuradio-core/src/lib/filter/short_dotprod_mmx.S
+++ b/gnuradio-core/src/lib/filter/short_dotprod_mmx.S
@@ -1,30 +1,30 @@
#
# 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,
# Boston, MA 02110-1301, USA.
-#
+#
# SIMD MMX dot product
# Equivalent to the following C code:
# long dotprod(signed short *a,signed short *b,int cnt)
# {
-# long sum = 0;
-# cnt *= 4;
+# long sum = 0;
+# cnt *= 4;
# while(cnt--)
# sum += *a++ + *b++;
# return sum;
@@ -32,7 +32,7 @@
# a and b should also be 64-bit aligned, or speed will suffer greatly
# Copyright 1999, Phil Karn KA9Q
# May be used under the terms of the GNU public license
-
+
#include "assembly.h"
@@ -53,16 +53,16 @@ GLOB_SYMB(short_dotprod_mmx):
movl 12(%ebp),%edi # b
movl 16(%ebp),%ecx # cnt
pxor %mm0,%mm0 # clear running sum (in two 32-bit halves)
-
+
# MMX dot product loop unrolled 4 times, crunching 16 terms per loop
.p2align 4
.Loop1mmx: subl $4,%ecx
jl .Loop1Done
-
+
movq (%esi),%mm1 # mm1 = a[3],a[2],a[1],a[0]
pmaddwd (%edi),%mm1 # mm1 = b[3]*a[3]+b[2]*a[2],b[1]*a[1]+b[0]*a[0]
paddd %mm1,%mm0
-
+
movq 8(%esi),%mm1
pmaddwd 8(%edi),%mm1
paddd %mm1,%mm0
@@ -72,21 +72,21 @@ GLOB_SYMB(short_dotprod_mmx):
paddd %mm1,%mm0
movq 24(%esi),%mm1
- addl $32,%esi
+ addl $32,%esi
pmaddwd 24(%edi),%mm1
- addl $32,%edi
+ addl $32,%edi
paddd %mm1,%mm0
jmp .Loop1mmx
.Loop1Done:
-
- addl $4,%ecx
-
+
+ addl $4,%ecx
+
# MMX dot product loop, not unrolled, crunching 4 terms per loop
# This could be redone as Duff's Device on the unrolled loop above
.Loop2: subl $1,%ecx
jl .Loop2Done
-
+
movq (%esi),%mm1
addl $8,%esi
pmaddwd (%edi),%mm1
@@ -94,13 +94,13 @@ GLOB_SYMB(short_dotprod_mmx):
paddd %mm1,%mm0
jmp .Loop2
.Loop2Done:
-
+
movd %mm0,%ebx # right-hand word to ebx
punpckhdq %mm0,%mm0 # left-hand word to right side of %mm0
movd %mm0,%eax
addl %ebx,%eax # running sum now in %eax
emms # done with MMX
-
+
popl %ebx
popl %ecx
popl %edi
diff --git a/gnuradio-core/src/lib/filter/short_dotprod_mmx64.S b/gnuradio-core/src/lib/filter/short_dotprod_mmx64.S
index 7d9b25cb2..c8c9da30a 100644
--- a/gnuradio-core/src/lib/filter/short_dotprod_mmx64.S
+++ b/gnuradio-core/src/lib/filter/short_dotprod_mmx64.S
@@ -1,30 +1,30 @@
#
# Copyright 2002,2005 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,
# Boston, MA 02110-1301, USA.
-#
+#
# SIMD MMX dot product
# Equivalent to the following C code:
# long dotprod(signed short *a,signed short *b,int cnt)
# {
-# long sum = 0;
-# cnt *= 4;
+# long sum = 0;
+# cnt *= 4;
# while(cnt--)
# sum += *a++ + *b++;
# return sum;
@@ -32,7 +32,7 @@
# a and b should also be 64-bit aligned, or speed will suffer greatly
# Copyright 1999, Phil Karn KA9Q
# May be used under the terms of the GNU public license
-
+
#include "assembly.h"
@@ -47,16 +47,16 @@ GLOB_SYMB(short_dotprod_mmx):
# a: rdi, b: rsi, cnt: rdx
pxor %mm0,%mm0 # clear running sum (in two 32-bit halves)
-
+
# MMX dot product loop unrolled 4 times, crunching 16 terms per loop
.p2align 4
.Loop1mmx: sub $4,%rdx
jl .Loop1Done
-
+
movq (%rdi),%mm1 # mm1 = a[3],a[2],a[1],a[0]
pmaddwd (%rsi),%mm1 # mm1 = b[3]*a[3]+b[2]*a[2],b[1]*a[1]+b[0]*a[0]
paddd %mm1,%mm0
-
+
movq 8(%rdi),%mm1
pmaddwd 8(%rsi),%mm1
paddd %mm1,%mm0
@@ -66,21 +66,21 @@ GLOB_SYMB(short_dotprod_mmx):
paddd %mm1,%mm0
movq 24(%rdi),%mm1
- add $32,%rdi
+ add $32,%rdi
pmaddwd 24(%rsi),%mm1
- add $32,%rsi
+ add $32,%rsi
paddd %mm1,%mm0
jmp .Loop1mmx
.Loop1Done:
-
- add $4,%rdx
-
+
+ add $4,%rdx
+
# MMX dot product loop, not unrolled, crunching 4 terms per loop
# This could be redone as Duff's Device on the unrolled loop above
.Loop2: sub $1,%rdx
jl .Loop2Done
-
+
movq (%rdi),%mm1
add $8,%rdi
pmaddwd (%rsi),%mm1
@@ -88,13 +88,13 @@ GLOB_SYMB(short_dotprod_mmx):
paddd %mm1,%mm0
jmp .Loop2
.Loop2Done:
-
+
movd %mm0,%edx # right-hand word to edx
punpckhdq %mm0,%mm0 # left-hand word to right side of %mm0
movd %mm0,%eax
addl %edx,%eax # running sum now in %eax
emms # done with MMX
-
+
retq
FUNC_TAIL(short_dotprod_mmx)
diff --git a/gnuradio-core/src/lib/filter/short_dotprod_x86.h b/gnuradio-core/src/lib/filter/short_dotprod_x86.h
index 3a1719af4..13d5ae2a3 100644
--- a/gnuradio-core/src/lib/filter/short_dotprod_x86.h
+++ b/gnuradio-core/src/lib/filter/short_dotprod_x86.h
@@ -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,
diff --git a/gnuradio-core/src/lib/filter/sse_debug.c b/gnuradio-core/src/lib/filter/sse_debug.c
index 9ec3d23e5..870cc0543 100644
--- a/gnuradio-core/src/lib/filter/sse_debug.c
+++ b/gnuradio-core/src/lib/filter/sse_debug.c
@@ -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,
@@ -51,7 +51,7 @@ get_xmm_regs (struct xmm_regs *x)
"movups %%xmm7,0x70(%0); \n" : : "r" (x));
}
-void
+void
dump_xmm_regs (void)
{
struct xmm_regs r;
diff --git a/gnuradio-core/src/lib/filter/sse_debug.h b/gnuradio-core/src/lib/filter/sse_debug.h
index f1df0feb1..b19b4e646 100644
--- a/gnuradio-core/src/lib/filter/sse_debug.h
+++ b/gnuradio-core/src/lib/filter/sse_debug.h
@@ -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,
@@ -31,7 +31,7 @@ extern "C" {
unsigned long ul[4];
float f[4];
};
-
+
struct xmm_regs {
union xmm_register xmm[8];
};
diff --git a/gnuradio-core/src/lib/filter/sysconfig_armv7_a.cc b/gnuradio-core/src/lib/filter/sysconfig_armv7_a.cc
index b9c217442..2c415863b 100644
--- a/gnuradio-core/src/lib/filter/sysconfig_armv7_a.cc
+++ b/gnuradio-core/src/lib/filter/sysconfig_armv7_a.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2002,2008,2009 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,
diff --git a/gnuradio-core/src/lib/filter/sysconfig_generic.cc b/gnuradio-core/src/lib/filter/sysconfig_generic.cc
index 17757eccd..88508f62b 100644
--- a/gnuradio-core/src/lib/filter/sysconfig_generic.cc
+++ b/gnuradio-core/src/lib/filter/sysconfig_generic.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,
diff --git a/gnuradio-core/src/lib/filter/sysconfig_powerpc.cc b/gnuradio-core/src/lib/filter/sysconfig_powerpc.cc
index e2b27815b..911beae2a 100644
--- a/gnuradio-core/src/lib/filter/sysconfig_powerpc.cc
+++ b/gnuradio-core/src/lib/filter/sysconfig_powerpc.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2002,2008 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,
diff --git a/gnuradio-core/src/lib/filter/sysconfig_x86.cc b/gnuradio-core/src/lib/filter/sysconfig_x86.cc
index f329a30ae..582df0ab7 100644
--- a/gnuradio-core/src/lib/filter/sysconfig_x86.cc
+++ b/gnuradio-core/src/lib/filter/sysconfig_x86.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,
diff --git a/gnuradio-core/src/lib/general/README b/gnuradio-core/src/lib/general/README
index 26d829f1b..5fa18d7f6 100644
--- a/gnuradio-core/src/lib/general/README
+++ b/gnuradio-core/src/lib/general/README
@@ -87,12 +87,12 @@ TO DO
* Move all the machine specific code to a subdirectory, then have
configure symlink to the right directory. This will allow us to build on
any platform without choking. There is generic code for all routines,
-only the machine dependent speedup will be lacking.
+only the machine dependent speedup will be lacking.
* Add an interface to gr_fir_util that will return a vector of all
valid constructors with descriptive names for each i/o signature.
This will allow the test code and benchmarking code to be blissfully
ignorant of what platform they're running on. The actual building of
the vectors should be done bottom up through the gr_fir_sysconfig
-hierarchy.
+hierarchy.
diff --git a/gnuradio-core/src/lib/general/atsc_rrc1x.dat b/gnuradio-core/src/lib/general/atsc_rrc1x.dat
index 3466412fb..3dc87bb0b 100644
--- a/gnuradio-core/src/lib/general/atsc_rrc1x.dat
+++ b/gnuradio-core/src/lib/general/atsc_rrc1x.dat
@@ -3,10 +3,10 @@
* FILTER TYPE:ROOT RAISED COSINE 12H
* PASSBAND RIPPLE IN -dB -.0500
* STOPBAND RIPPLE IN -dB -50.0000
- * SYMBOL RATE .538112E+07 HERTZ
- * ROLLOF FACTOR .115200
- * SAMPLING FREQUENCY .107622E+08 HERTZ
- * SAMPLING FREQUENCY .107622E+08 HERTZ
+ * SYMBOL RATE .538112E+07 HERTZ
+ * ROLLOF FACTOR .115200
+ * SAMPLING FREQUENCY .107622E+08 HERTZ
+ * SAMPLING FREQUENCY .107622E+08 HERTZ
*/
.1821269281208515e-02,
-.9323525242507458e-02,
diff --git a/gnuradio-core/src/lib/general/atsc_rrc2x.dat b/gnuradio-core/src/lib/general/atsc_rrc2x.dat
index ca7812cbf..8eae94d77 100644
--- a/gnuradio-core/src/lib/general/atsc_rrc2x.dat
+++ b/gnuradio-core/src/lib/general/atsc_rrc2x.dat
@@ -3,8 +3,8 @@
* FILTER TYPE:ROOT RAISED COSINE 12H
* PASSBAND RIPPLE IN -dB -.0500
* STOPBAND RIPPLE IN -dB -50.0000
- * SYMBOL RATE .538112E+07 HERTZ
- * ROLLOF FACTOR .115200
+ * SYMBOL RATE .538112E+07 HERTZ
+ * ROLLOF FACTOR .115200
* SAMPLING FREQUENCY .215245E+08 HERTZ
*/
.8186036720871925E-03,
diff --git a/gnuradio-core/src/lib/general/complex_vec_test.cc b/gnuradio-core/src/lib/general/complex_vec_test.cc
index df25c325e..99acc2f35 100644
--- a/gnuradio-core/src/lib/general/complex_vec_test.cc
+++ b/gnuradio-core/src/lib/general/complex_vec_test.cc
@@ -5,18 +5,18 @@ std::vector<std::complex<float> >
complex_vec_test0()
{
std::vector<std::complex<float> > r(5);
-
+
for (size_t i = 0; i < r.size(); i++)
r[i] = std::complex<float>(i, i);
return r;
}
-std::vector<std::complex<float> >
+std::vector<std::complex<float> >
complex_vec_test1(const std::vector<std::complex<float> > &input)
{
std::vector<std::complex<float> > r(input.size());
-
+
for (size_t i = 0; i < input.size(); i++)
r[i] = std::complex<float>(input[i].real()+0.5, input[i].imag()-0.5);
diff --git a/gnuradio-core/src/lib/general/gen_sine_table.py b/gnuradio-core/src/lib/general/gen_sine_table.py
index fb433609c..d7d11eff1 100755
--- a/gnuradio-core/src/lib/general/gen_sine_table.py
+++ b/gnuradio-core/src/lib/general/gen_sine_table.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004 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,
# Boston, MA 02110-1301, USA.
-#
+#
import math
import sys
@@ -72,6 +72,6 @@ def gen_sine_table ():
sys.stdout.write (' { %22.15e, %22.15e },\n' % (2 * e[0], e[1]))
# sys.stdout.write ('};\n')
-
+
if __name__ == '__main__':
gen_sine_table ()
diff --git a/gnuradio-core/src/lib/general/general.i b/gnuradio-core/src/lib/general/general.i
index f7759c614..cd8c279c9 100644
--- a/gnuradio-core/src/lib/general/general.i
+++ b/gnuradio-core/src/lib/general/general.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2005,2006,2007,2008,2009,2010 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,
diff --git a/gnuradio-core/src/lib/general/gr_add_ff.cc b/gnuradio-core/src/lib/general/gr_add_ff.cc
index fc5455c98..2e45673d3 100644
--- a/gnuradio-core/src/lib/general/gr_add_ff.cc
+++ b/gnuradio-core/src/lib/general/gr_add_ff.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2012 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,
@@ -40,7 +40,7 @@ gr_add_ff::gr_add_ff (size_t vlen)
gr_make_io_signature (1, 1, sizeof(float)*vlen)),
d_vlen (vlen)
{
- const int alignment_multiple =
+ const int alignment_multiple =
volk_get_alignment() / sizeof(float);
set_alignment(alignment_multiple);
}
diff --git a/gnuradio-core/src/lib/general/gr_add_ff.h b/gnuradio-core/src/lib/general/gr_add_ff.h
index 6421f8da2..ff5604c97 100644
--- a/gnuradio-core/src/lib/general/gr_add_ff.h
+++ b/gnuradio-core/src/lib/general/gr_add_ff.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2012 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,
@@ -43,7 +43,7 @@ class GR_CORE_API gr_add_ff : public gr_sync_block
friend GR_CORE_API gr_add_ff_sptr
gr_make_add_ff (size_t vlen);
gr_add_ff (size_t vlen);
-
+
size_t d_vlen;
public:
diff --git a/gnuradio-core/src/lib/general/gr_add_ff.i b/gnuradio-core/src/lib/general/gr_add_ff.i
index 3c30640b1..75a87651f 100644
--- a/gnuradio-core/src/lib/general/gr_add_ff.i
+++ b/gnuradio-core/src/lib/general/gr_add_ff.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2012 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,
diff --git a/gnuradio-core/src/lib/general/gr_additive_scrambler_bb.cc b/gnuradio-core/src/lib/general/gr_additive_scrambler_bb.cc
index f390df6d5..35cbb9572 100644
--- a/gnuradio-core/src/lib/general/gr_additive_scrambler_bb.cc
+++ b/gnuradio-core/src/lib/general/gr_additive_scrambler_bb.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2010 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,
@@ -60,6 +60,6 @@ gr_additive_scrambler_bb::work(int noutput_items,
}
}
}
-
+
return noutput_items;
}
diff --git a/gnuradio-core/src/lib/general/gr_additive_scrambler_bb.h b/gnuradio-core/src/lib/general/gr_additive_scrambler_bb.h
index 4c7c8f87e..1c336306d 100644
--- a/gnuradio-core/src/lib/general/gr_additive_scrambler_bb.h
+++ b/gnuradio-core/src/lib/general/gr_additive_scrambler_bb.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2010 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,
@@ -33,9 +33,9 @@ GR_CORE_API gr_additive_scrambler_bb_sptr gr_make_additive_scrambler_bb(int mask
/*!
* Scramble an input stream using an LFSR. This block works on the LSB only
- * of the input data stream, i.e., on an "unpacked binary" stream, and
+ * of the input data stream, i.e., on an "unpacked binary" stream, and
* produces the same format on its output.
- *
+ *
* \param mask Polynomial mask for LFSR
* \param seed Initial shift register contents
* \param len Shift register length
@@ -45,7 +45,7 @@ GR_CORE_API gr_additive_scrambler_bb_sptr gr_make_additive_scrambler_bb(int mask
* the LFSR. Optionally, after 'count' bits have been processed, the shift
* register is reset to the seed value. This allows processing fixed length
* vectors of samples.
- *
+ *
* \ingroup coding_blk
*/
diff --git a/gnuradio-core/src/lib/general/gr_additive_scrambler_bb.i b/gnuradio-core/src/lib/general/gr_additive_scrambler_bb.i
index 0ca9c1cd7..acf9e8c47 100644
--- a/gnuradio-core/src/lib/general/gr_additive_scrambler_bb.i
+++ b/gnuradio-core/src/lib/general/gr_additive_scrambler_bb.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2010 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,
diff --git a/gnuradio-core/src/lib/general/gr_agc2_cc.cc b/gnuradio-core/src/lib/general/gr_agc2_cc.cc
index 687f6c857..5097babc9 100644
--- a/gnuradio-core/src/lib/general/gr_agc2_cc.cc
+++ b/gnuradio-core/src/lib/general/gr_agc2_cc.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2010 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,
@@ -29,17 +29,17 @@
#include <gri_agc2_cc.h>
gr_agc2_cc_sptr
-gr_make_agc2_cc (float attack_rate, float decay_rate, float reference,
+gr_make_agc2_cc (float attack_rate, float decay_rate, float reference,
float gain, float max_gain)
{
return gnuradio::get_initial_sptr(new gr_agc2_cc (attack_rate, decay_rate, reference, gain, max_gain));
}
-gr_agc2_cc::gr_agc2_cc (float attack_rate, float decay_rate, float reference,
+gr_agc2_cc::gr_agc2_cc (float attack_rate, float decay_rate, float reference,
float gain, float max_gain)
: gr_sync_block ("gr_agc2_cc",
gr_make_io_signature (1, 1, sizeof (gr_complex)),
- gr_make_io_signature (1, 1, sizeof (gr_complex))),
+ gr_make_io_signature (1, 1, sizeof (gr_complex))),
gri_agc2_cc (attack_rate, decay_rate, reference, gain, max_gain)
{
}
diff --git a/gnuradio-core/src/lib/general/gr_agc2_cc.h b/gnuradio-core/src/lib/general/gr_agc2_cc.h
index 6127c3aa7..54bae1aae 100644
--- a/gnuradio-core/src/lib/general/gr_agc2_cc.h
+++ b/gnuradio-core/src/lib/general/gr_agc2_cc.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
@@ -31,7 +31,7 @@ class gr_agc2_cc;
typedef boost::shared_ptr<gr_agc2_cc> gr_agc2_cc_sptr;
GR_CORE_API gr_agc2_cc_sptr
-gr_make_agc2_cc (float attack_rate = 1e-1, float decay_rate = 1e-2, float reference = 1.0,
+gr_make_agc2_cc (float attack_rate = 1e-1, float decay_rate = 1e-2, float reference = 1.0,
float gain = 1.0, float max_gain = 0.0);
/*!
* \brief high performance Automatic Gain Control class
@@ -42,11 +42,11 @@ gr_make_agc2_cc (float attack_rate = 1e-1, float decay_rate = 1e-2, float refere
class GR_CORE_API gr_agc2_cc : public gr_sync_block, public gri_agc2_cc
{
- friend GR_CORE_API gr_agc2_cc_sptr gr_make_agc2_cc (float attack_rate, float decay_rate, float reference,
+ friend GR_CORE_API gr_agc2_cc_sptr gr_make_agc2_cc (float attack_rate, float decay_rate, float reference,
float gain, float max_gain);
- gr_agc2_cc (float attack_rate, float decay_rate, float reference,
+ gr_agc2_cc (float attack_rate, float decay_rate, float reference,
float gain, float max_gain);
-
+
public:
virtual int work (int noutput_items,
gr_vector_const_void_star &input_items,
diff --git a/gnuradio-core/src/lib/general/gr_agc2_cc.i b/gnuradio-core/src/lib/general/gr_agc2_cc.i
index da94a7dea..6d7b22101 100644
--- a/gnuradio-core/src/lib/general/gr_agc2_cc.i
+++ b/gnuradio-core/src/lib/general/gr_agc2_cc.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
@@ -25,11 +25,11 @@ GR_SWIG_BLOCK_MAGIC(gr,agc2_cc)
%include <gri_agc2_cc.i>
gr_agc2_cc_sptr
-gr_make_agc2_cc (float attack_rate = 1e-1, float decay_rate = 1e-2, float reference = 1.0,
+gr_make_agc2_cc (float attack_rate = 1e-1, float decay_rate = 1e-2, float reference = 1.0,
float gain = 1.0, float max_gain = 0.0);
class gr_agc2_cc : public gr_sync_block , public gri_agc2_cc
{
- gr_agc2_cc (float attack_rate, float decay_rate, float reference,
+ gr_agc2_cc (float attack_rate, float decay_rate, float reference,
float gain, float max_gain);
};
diff --git a/gnuradio-core/src/lib/general/gr_agc2_ff.cc b/gnuradio-core/src/lib/general/gr_agc2_ff.cc
index 667e9d05d..792ee1c6b 100644
--- a/gnuradio-core/src/lib/general/gr_agc2_ff.cc
+++ b/gnuradio-core/src/lib/general/gr_agc2_ff.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2006,2010 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,
@@ -29,14 +29,14 @@
#include <gri_agc2_ff.h>
gr_agc2_ff_sptr
-gr_make_agc2_ff (float attack_rate, float decay_rate, float reference,
+gr_make_agc2_ff (float attack_rate, float decay_rate, float reference,
float gain, float max_gain)
{
- return gnuradio::get_initial_sptr(new gr_agc2_ff (attack_rate, decay_rate, reference,
+ return gnuradio::get_initial_sptr(new gr_agc2_ff (attack_rate, decay_rate, reference,
gain, max_gain));
}
-gr_agc2_ff::gr_agc2_ff (float attack_rate, float decay_rate, float reference,
+gr_agc2_ff::gr_agc2_ff (float attack_rate, float decay_rate, float reference,
float gain, float max_gain)
: gr_sync_block ("gr_agc2_ff",
gr_make_io_signature (1, 1, sizeof (float)),
diff --git a/gnuradio-core/src/lib/general/gr_agc2_ff.h b/gnuradio-core/src/lib/general/gr_agc2_ff.h
index 269d940d4..48529948c 100644
--- a/gnuradio-core/src/lib/general/gr_agc2_ff.h
+++ b/gnuradio-core/src/lib/general/gr_agc2_ff.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2006 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,
@@ -30,7 +30,7 @@ class gr_agc2_ff;
typedef boost::shared_ptr<gr_agc2_ff> gr_agc2_ff_sptr;
GR_CORE_API gr_agc2_ff_sptr
-gr_make_agc2_ff (float attack_rate = 1e-1, float decay_rate = 1e-2, float reference = 1.0,
+gr_make_agc2_ff (float attack_rate = 1e-1, float decay_rate = 1e-2, float reference = 1.0,
float gain = 1.0, float max_gain = 0.0);
/*!
* \brief high performance Automatic Gain Control class
diff --git a/gnuradio-core/src/lib/general/gr_agc2_ff.i b/gnuradio-core/src/lib/general/gr_agc2_ff.i
index e8f9c6c99..646391aa7 100644
--- a/gnuradio-core/src/lib/general/gr_agc2_ff.i
+++ b/gnuradio-core/src/lib/general/gr_agc2_ff.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2006 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,
@@ -25,11 +25,11 @@ GR_SWIG_BLOCK_MAGIC(gr,agc2_ff)
%include <gri_agc2_ff.i>
gr_agc2_ff_sptr
-gr_make_agc2_ff (float attack_rate = 1e-1, float decay_rate = 1e-2, float reference = 1.0,
+gr_make_agc2_ff (float attack_rate = 1e-1, float decay_rate = 1e-2, float reference = 1.0,
float gain = 1.0, float max_gain = 0.0);
class gr_agc2_ff : public gr_sync_block , public gri_agc2_ff
{
- gr_agc2_ff (float attack_rate, float decay_rate, float reference,
+ gr_agc2_ff (float attack_rate, float decay_rate, float reference,
float gain, float max_gain);
};
diff --git a/gnuradio-core/src/lib/general/gr_agc_cc.cc b/gnuradio-core/src/lib/general/gr_agc_cc.cc
index 92cec0088..e98f3a303 100644
--- a/gnuradio-core/src/lib/general/gr_agc_cc.cc
+++ b/gnuradio-core/src/lib/general/gr_agc_cc.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2010 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,
@@ -29,17 +29,17 @@
#include <gri_agc_cc.h>
gr_agc_cc_sptr
-gr_make_agc_cc (float rate, float reference,
+gr_make_agc_cc (float rate, float reference,
float gain, float max_gain)
{
return gnuradio::get_initial_sptr(new gr_agc_cc (rate, reference, gain, max_gain));
}
-gr_agc_cc::gr_agc_cc (float rate, float reference,
+gr_agc_cc::gr_agc_cc (float rate, float reference,
float gain, float max_gain)
: gr_sync_block ("gr_agc_cc",
gr_make_io_signature (1, 1, sizeof (gr_complex)),
- gr_make_io_signature (1, 1, sizeof (gr_complex))),
+ gr_make_io_signature (1, 1, sizeof (gr_complex))),
gri_agc_cc (rate, reference, gain, max_gain)
{
}
diff --git a/gnuradio-core/src/lib/general/gr_agc_cc.h b/gnuradio-core/src/lib/general/gr_agc_cc.h
index f348fff91..9f35350db 100644
--- a/gnuradio-core/src/lib/general/gr_agc_cc.h
+++ b/gnuradio-core/src/lib/general/gr_agc_cc.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
@@ -30,7 +30,7 @@ class gr_agc_cc;
typedef boost::shared_ptr<gr_agc_cc> gr_agc_cc_sptr;
GR_CORE_API gr_agc_cc_sptr
-gr_make_agc_cc (float rate = 1e-4, float reference = 1.0,
+gr_make_agc_cc (float rate = 1e-4, float reference = 1.0,
float gain = 1.0, float max_gain = 0.0);
/*!
* \brief high performance Automatic Gain Control class
@@ -41,9 +41,9 @@ gr_make_agc_cc (float rate = 1e-4, float reference = 1.0,
class GR_CORE_API gr_agc_cc : public gr_sync_block, public gri_agc_cc
{
- friend GR_CORE_API gr_agc_cc_sptr gr_make_agc_cc (float rate, float reference,
+ friend GR_CORE_API gr_agc_cc_sptr gr_make_agc_cc (float rate, float reference,
float gain, float max_gain);
- gr_agc_cc (float rate, float reference,
+ gr_agc_cc (float rate, float reference,
float gain, float max_gain);
public:
diff --git a/gnuradio-core/src/lib/general/gr_agc_cc.i b/gnuradio-core/src/lib/general/gr_agc_cc.i
index 58962fa16..f942713b0 100644
--- a/gnuradio-core/src/lib/general/gr_agc_cc.i
+++ b/gnuradio-core/src/lib/general/gr_agc_cc.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
@@ -25,11 +25,11 @@ GR_SWIG_BLOCK_MAGIC(gr,agc_cc)
%include <gri_agc_cc.i>
gr_agc_cc_sptr
-gr_make_agc_cc (float rate = 1e-4, float reference = 1.0,
+gr_make_agc_cc (float rate = 1e-4, float reference = 1.0,
float gain = 1.0, float max_gain = 0.0);
class gr_agc_cc : public gr_sync_block , public gri_agc_cc
{
- gr_agc_cc (float rate, float reference,
+ gr_agc_cc (float rate, float reference,
float gain, float max_gain);
};
diff --git a/gnuradio-core/src/lib/general/gr_agc_ff.cc b/gnuradio-core/src/lib/general/gr_agc_ff.cc
index 45c86d898..6050dc7f0 100644
--- a/gnuradio-core/src/lib/general/gr_agc_ff.cc
+++ b/gnuradio-core/src/lib/general/gr_agc_ff.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2006,2010 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,
diff --git a/gnuradio-core/src/lib/general/gr_agc_ff.h b/gnuradio-core/src/lib/general/gr_agc_ff.h
index 94db9eef5..dc618213b 100644
--- a/gnuradio-core/src/lib/general/gr_agc_ff.h
+++ b/gnuradio-core/src/lib/general/gr_agc_ff.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2006 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,
@@ -30,7 +30,7 @@ class gr_agc_ff;
typedef boost::shared_ptr<gr_agc_ff> gr_agc_ff_sptr;
GR_CORE_API gr_agc_ff_sptr
-gr_make_agc_ff (float rate = 1e-4, float reference = 1.0,
+gr_make_agc_ff (float rate = 1e-4, float reference = 1.0,
float gain = 1.0, float max_gain = 0.0);
/*!
@@ -42,7 +42,7 @@ gr_make_agc_ff (float rate = 1e-4, float reference = 1.0,
class GR_CORE_API gr_agc_ff : public gr_sync_block, public gri_agc_ff
{
- friend GR_CORE_API gr_agc_ff_sptr gr_make_agc_ff (float rate, float reference,
+ friend GR_CORE_API gr_agc_ff_sptr gr_make_agc_ff (float rate, float reference,
float gain, float max_gain);
gr_agc_ff (float rate, float reference, float gain, float max_gain);
diff --git a/gnuradio-core/src/lib/general/gr_agc_ff.i b/gnuradio-core/src/lib/general/gr_agc_ff.i
index ea456a131..03c571e1a 100644
--- a/gnuradio-core/src/lib/general/gr_agc_ff.i
+++ b/gnuradio-core/src/lib/general/gr_agc_ff.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2006 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,
@@ -25,7 +25,7 @@ GR_SWIG_BLOCK_MAGIC(gr,agc_ff)
%include <gri_agc_ff.i>
gr_agc_ff_sptr
-gr_make_agc_ff (float rate = 1e-4, float reference = 1.0,
+gr_make_agc_ff (float rate = 1e-4, float reference = 1.0,
float gain = 1.0, float max_gain = 0.0);
class gr_agc_ff : public gr_sync_block , public gri_agc_ff
diff --git a/gnuradio-core/src/lib/general/gr_align_on_samplenumbers_ss.cc b/gnuradio-core/src/lib/general/gr_align_on_samplenumbers_ss.cc
index e11793fdd..472853396 100644
--- a/gnuradio-core/src/lib/general/gr_align_on_samplenumbers_ss.cc
+++ b/gnuradio-core/src/lib/general/gr_align_on_samplenumbers_ss.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2010 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,
@@ -65,12 +65,12 @@ gr_align_on_samplenumbers_ss::gr_align_on_samplenumbers_ss (int nchan,int align_
{
set_output_multiple (d_align_interval*d_nchan*2);
}
-
+
}
gr_align_on_samplenumbers_ss::~gr_align_on_samplenumbers_ss()
{
-
+
}
void
gr_align_on_samplenumbers_ss::forecast (int noutput_items, gr_vector_int &ninput_items_required)
@@ -126,7 +126,7 @@ gr_align_on_samplenumbers_ss::general_work (int noutput_items,
{
dcount=0;
dprint=true;
- }
+ }
#endif
const size_t item_size = output_signature()->sizeof_stream_item (0);
const unsigned ninputs = input_items.size();
@@ -144,7 +144,7 @@ gr_align_on_samplenumbers_ss::general_work (int noutput_items,
int min_ninput_items=noutput_items;//numeric_limits<int>::max();
int noutput_items_produced=0;
for(unsigned int i=0;i<ninputs;i++)
- {
+ {
d_state[i].ninput_items=ninput_items[i];
d_state[i].ninput_items_used=0;
min_ninput_items=std::min(ninput_items[i],min_ninput_items);
@@ -160,7 +160,7 @@ gr_align_on_samplenumbers_ss::general_work (int noutput_items,
common_end=common_end*(d_nchan*2);
}
if (common_end<=0) break;
-
+
bool all_diffs_zero=true;
//bool sync_found=false;
int diff_comp_end_max=0;
@@ -210,7 +210,7 @@ gr_align_on_samplenumbers_ss::general_work (int noutput_items,
d_state[i].sync_end_found=false;
}
d_in_presync=true;
- d_state[i].sync_found=true;
+ d_state[i].sync_found=true;
} else
{
//d_in_presync=true;
@@ -220,9 +220,9 @@ gr_align_on_samplenumbers_ss::general_work (int noutput_items,
else
printf("presync NEXT with %i\n",i);
#endif
- d_state[i].sync_found=true;
- d_state[i].sync_end_found=false;
- }
+ d_state[i].sync_found=true;
+ d_state[i].sync_end_found=false;
+ }
} else
{
if(d_in_presync && d_state[i].sync_found)
@@ -314,11 +314,11 @@ gr_align_on_samplenumbers_ss::general_work (int noutput_items,
{
dcount=0;
dprint=true;
- }
+ }
#endif
const size_t item_size = output_signature()->sizeof_stream_item (0);
const unsigned ninputs = input_items.size();
-
+
int common_end=noutput_items;
//int diff_min=INT_MAX;
//int diff_max=INT_MIN;
@@ -344,7 +344,7 @@ gr_align_on_samplenumbers_ss::general_work (int noutput_items,
ePrintf("Error: counter not continuous.\n ucounter_begin[%i]=%i +1 != ucounter_begin2=%i\n",i,d_state[i].ucounter_begin,ucounter_begin2);
}
}
-
+
//diff_comp[i]=ucounter[i]-ucounter[0];
//diff_min=std::min(diff[i],diff_min);
//diff_max=std::max(diff[i],diff_max);
@@ -390,7 +390,7 @@ gr_align_on_samplenumbers_ss::general_work (int noutput_items,
tcPrintf("SYNC diff_end[%i]=%i ucounter_end[%i]=%i ucounter_begin[%i]=%i \n",i,d_state[i].diff_end,i,d_state[i].ucounter_end,i,d_state[i].ucounter_begin);
tcPrintf("ucounter_end=%i < %i = ucounter_begin+(unsigned)(common_last/(d_nchan*2) \n",d_state[i].ucounter_end,d_state[i].ucounter_begin+(unsigned)(common_last/(d_nchan*2)));
- printf("ucounter_end[%i]=%i ucounter_begin[%i]=%i\n",i,d_state[i].ucounter_end,i,d_state[i].ucounter_begin);
+ printf("ucounter_end[%i]=%i ucounter_begin[%i]=%i\n",i,d_state[i].ucounter_end,i,d_state[i].ucounter_begin);
int expected_sync_position=common_last - d_state[i].ucounter_end*(d_nchan*2);
if(0==uin[expected_sync_position] && 0==uin[expected_sync_position+1])
{
@@ -404,7 +404,7 @@ gr_align_on_samplenumbers_ss::general_work (int noutput_items,
} else
{
tcPrintf("NOsync diff_end[%i]=%i ucounter_end[%i]=%i ucounter_begin[%i]=%i \n",i,d_state[i].diff_end,i,d_state[i].ucounter_end,i,d_state[i].ucounter_begin);
-#endif
+#endif
}
}
bool problem=false;
@@ -416,7 +416,7 @@ gr_align_on_samplenumbers_ss::general_work (int noutput_items,
ePrintf(" You might want to swap master and slave.\n");
ePrintf(" i=%i,d_state[i].diff_end+diff_comp_end_max=%i,d_state[i].diff_end=%i,diff_comp_end_max=%i,ucounter[i]=%i,ucounter[0]=%i\n",
i,d_state[i].diff_end+diff_comp_end_max,d_state[i].diff_end,diff_comp_end_max,d_state[i].ucounter_end,d_state[0].ucounter_end);
- //ePrintf(" toconsume=%i\n",toconsume);
+ //ePrintf(" toconsume=%i\n",toconsume);
}
if(sync_found || all_diffs_zero || problem)
{
@@ -437,7 +437,7 @@ gr_align_on_samplenumbers_ss::general_work (int noutput_items,
} else
{
//int minconsume=0;//common_end/(2*d_nchan*2);
- //min_consume=min_consume*d_nchan*2;
+ //min_consume=min_consume*d_nchan*2;
for(unsigned int i=0;i<ninputs;i++)
{
int toconsume=std::min((d_state[i].diff_end+diff_comp_end_max)*d_nchan*2,ninput_items[i]);
diff --git a/gnuradio-core/src/lib/general/gr_align_on_samplenumbers_ss.h b/gnuradio-core/src/lib/general/gr_align_on_samplenumbers_ss.h
index 61f70ee96..1b71a3f4b 100644
--- a/gnuradio-core/src/lib/general/gr_align_on_samplenumbers_ss.h
+++ b/gnuradio-core/src/lib/general/gr_align_on_samplenumbers_ss.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
@@ -40,7 +40,7 @@
* \ingroup block
* Pay attention on how you connect this block.
* It expects a minimum of 2 usrp_source_s with nchan number of channels and FPGA_MODE_COUNTING_32BIT enabled.
- * This means that the first complex_short channel on every input is an interleaved 32 bit counter.
+ * This means that the first complex_short channel on every input is an interleaved 32 bit counter.
* The samples are aligned by dropping samples untill the samplenumbers match.
*/
class gr_align_on_samplenumbers_ss;
@@ -72,7 +72,7 @@ class GR_CORE_API gr_align_on_samplenumbers_ss : public gr_block
int ninput_items_used;
};
std::vector<align_state> d_state;
-
+
friend GR_CORE_API gr_align_on_samplenumbers_ss_sptr gr_make_align_on_samplenumbers_ss (int nchan,int align_interval);
gr_align_on_samplenumbers_ss (int nchan,int align_interval);
diff --git a/gnuradio-core/src/lib/general/gr_align_on_samplenumbers_ss.i b/gnuradio-core/src/lib/general/gr_align_on_samplenumbers_ss.i
index ea73dd46d..471f74301 100644
--- a/gnuradio-core/src/lib/general/gr_align_on_samplenumbers_ss.i
+++ b/gnuradio-core/src/lib/general/gr_align_on_samplenumbers_ss.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gnuradio-core/src/lib/general/gr_annotator_1to1.cc b/gnuradio-core/src/lib/general/gr_annotator_1to1.cc
index d12bfbf04..963af9202 100644
--- a/gnuradio-core/src/lib/general/gr_annotator_1to1.cc
+++ b/gnuradio-core/src/lib/general/gr_annotator_1to1.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010 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,
diff --git a/gnuradio-core/src/lib/general/gr_annotator_1to1.h b/gnuradio-core/src/lib/general/gr_annotator_1to1.h
index a62720224..57e572014 100644
--- a/gnuradio-core/src/lib/general/gr_annotator_1to1.h
+++ b/gnuradio-core/src/lib/general/gr_annotator_1to1.h
@@ -30,7 +30,7 @@ class gr_annotator_1to1;
typedef boost::shared_ptr<gr_annotator_1to1> gr_annotator_1to1_sptr;
// public constructor
-GR_CORE_API gr_annotator_1to1_sptr
+GR_CORE_API gr_annotator_1to1_sptr
gr_make_annotator_1to1 (int when, size_t sizeof_stream_item);
/*!
diff --git a/gnuradio-core/src/lib/general/gr_annotator_1to1.i b/gnuradio-core/src/lib/general/gr_annotator_1to1.i
index 2c8149a3c..2637b8d27 100644
--- a/gnuradio-core/src/lib/general/gr_annotator_1to1.i
+++ b/gnuradio-core/src/lib/general/gr_annotator_1to1.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010-2011 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,
diff --git a/gnuradio-core/src/lib/general/gr_annotator_alltoall.cc b/gnuradio-core/src/lib/general/gr_annotator_alltoall.cc
index dd31bff78..01bdd3064 100644
--- a/gnuradio-core/src/lib/general/gr_annotator_alltoall.cc
+++ b/gnuradio-core/src/lib/general/gr_annotator_alltoall.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010 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,
@@ -103,7 +103,7 @@ gr_annotator_alltoall::work (int noutput_items,
out[j] += in[j];
}
}
- abs_N++;
+ abs_N++;
}
return noutput_items;
diff --git a/gnuradio-core/src/lib/general/gr_annotator_alltoall.h b/gnuradio-core/src/lib/general/gr_annotator_alltoall.h
index fe8b736c2..deb5874a4 100644
--- a/gnuradio-core/src/lib/general/gr_annotator_alltoall.h
+++ b/gnuradio-core/src/lib/general/gr_annotator_alltoall.h
@@ -30,7 +30,7 @@ class gr_annotator_alltoall;
typedef boost::shared_ptr<gr_annotator_alltoall> gr_annotator_alltoall_sptr;
// public constructor
-GR_CORE_API gr_annotator_alltoall_sptr
+GR_CORE_API gr_annotator_alltoall_sptr
gr_make_annotator_alltoall (int when, size_t sizeof_stream_item);
/*!
@@ -54,7 +54,7 @@ class GR_CORE_API gr_annotator_alltoall : public gr_sync_block
int work (int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items);
-
+
std::vector<gr_tag_t> data() const
{
return d_stored_tags;
diff --git a/gnuradio-core/src/lib/general/gr_annotator_alltoall.i b/gnuradio-core/src/lib/general/gr_annotator_alltoall.i
index 49bd1e446..35190a3d1 100644
--- a/gnuradio-core/src/lib/general/gr_annotator_alltoall.i
+++ b/gnuradio-core/src/lib/general/gr_annotator_alltoall.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010-2011 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,
diff --git a/gnuradio-core/src/lib/general/gr_bin_statistics_f.cc b/gnuradio-core/src/lib/general/gr_bin_statistics_f.cc
index 435a660cd..3938f2b48 100644
--- a/gnuradio-core/src/lib/general/gr_bin_statistics_f.cc
+++ b/gnuradio-core/src/lib/general/gr_bin_statistics_f.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2010 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,
@@ -118,7 +118,7 @@ gr_bin_statistics_f::work(int noutput_items,
if (d_delay == 0)
enter_dwell_delay();
break;
-
+
case ST_DWELL_DELAY:
t = std::min(noutput_items - n, int(d_delay));
for (int i = 0; i < t; i++){
diff --git a/gnuradio-core/src/lib/general/gr_bin_statistics_f.h b/gnuradio-core/src/lib/general/gr_bin_statistics_f.h
index f7eea7d5f..dd1075909 100644
--- a/gnuradio-core/src/lib/general/gr_bin_statistics_f.h
+++ b/gnuradio-core/src/lib/general/gr_bin_statistics_f.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
@@ -40,7 +40,7 @@ gr_make_bin_statistics_f(unsigned int vlen, // vector length
gr_feval_dd *tune, // callback
size_t tune_delay, // samples
size_t dwell_delay); // samples
-
+
/*!
* \brief control scanning and record frequency domain statistics
* \ingroup sink_blk
@@ -94,7 +94,7 @@ public:
int work(int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items);
-
+
};
#endif
diff --git a/gnuradio-core/src/lib/general/gr_bin_statistics_f.i b/gnuradio-core/src/lib/general/gr_bin_statistics_f.i
index be98a464b..94a3db69a 100644
--- a/gnuradio-core/src/lib/general/gr_bin_statistics_f.i
+++ b/gnuradio-core/src/lib/general/gr_bin_statistics_f.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2010 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
diff --git a/gnuradio-core/src/lib/general/gr_burst_tagger.cc b/gnuradio-core/src/lib/general/gr_burst_tagger.cc
index bd713d663..83e84bfa0 100644
--- a/gnuradio-core/src/lib/general/gr_burst_tagger.cc
+++ b/gnuradio-core/src/lib/general/gr_burst_tagger.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010 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,10 +45,10 @@ gr_burst_tagger::gr_burst_tagger(size_t itemsize)
d_true_key = pmt::pmt_string_to_symbol("burst");
d_true_value = pmt::PMT_T;
-
+
d_false_key = pmt::pmt_string_to_symbol("burst");
d_false_value = pmt::PMT_F;
-
+
d_id = pmt::pmt_string_to_symbol(str.str());
}
diff --git a/gnuradio-core/src/lib/general/gr_burst_tagger.h b/gnuradio-core/src/lib/general/gr_burst_tagger.h
index 663a146f2..9a7898b04 100644
--- a/gnuradio-core/src/lib/general/gr_burst_tagger.h
+++ b/gnuradio-core/src/lib/general/gr_burst_tagger.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010 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,
@@ -42,12 +42,12 @@ class GR_CORE_API gr_burst_tagger : public gr_sync_block
bool d_state;
pmt::pmt_t d_true_key;
pmt::pmt_t d_true_value;
-
+
pmt::pmt_t d_false_key;
pmt::pmt_t d_false_value;
-
+
pmt::pmt_t d_id;
-
+
friend GR_CORE_API gr_burst_tagger_sptr gr_make_burst_tagger(size_t itemsize);
gr_burst_tagger(size_t itemsize);
diff --git a/gnuradio-core/src/lib/general/gr_burst_tagger.i b/gnuradio-core/src/lib/general/gr_burst_tagger.i
index 868941fc6..a5511e48a 100644
--- a/gnuradio-core/src/lib/general/gr_burst_tagger.i
+++ b/gnuradio-core/src/lib/general/gr_burst_tagger.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010 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,
@@ -28,7 +28,7 @@ class gr_burst_tagger : public gr_sync_block
{
private:
gr_burst_tagger(size_t itemsize);
-
+
public:
void set_true_tag(const std::string &key, bool value);
void set_false_tag(const std::string &key, bool value);
diff --git a/gnuradio-core/src/lib/general/gr_bytes_to_syms.cc b/gnuradio-core/src/lib/general/gr_bytes_to_syms.cc
index 460444379..7dafa29f9 100644
--- a/gnuradio-core/src/lib/general/gr_bytes_to_syms.cc
+++ b/gnuradio-core/src/lib/general/gr_bytes_to_syms.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
@@ -30,7 +30,7 @@
static const int BITS_PER_BYTE = 8;
-gr_bytes_to_syms_sptr
+gr_bytes_to_syms_sptr
gr_make_bytes_to_syms ()
{
return gnuradio::get_initial_sptr(new gr_bytes_to_syms ());
@@ -71,4 +71,4 @@ gr_bytes_to_syms::work (int noutput_items,
}
-
+
diff --git a/gnuradio-core/src/lib/general/gr_bytes_to_syms.h b/gnuradio-core/src/lib/general/gr_bytes_to_syms.h
index 33b98d4fd..23e5c6b91 100644
--- a/gnuradio-core/src/lib/general/gr_bytes_to_syms.h
+++ b/gnuradio-core/src/lib/general/gr_bytes_to_syms.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/general/gr_bytes_to_syms.i b/gnuradio-core/src/lib/general/gr_bytes_to_syms.i
index 4226acd2a..185e7cd29 100644
--- a/gnuradio-core/src/lib/general/gr_bytes_to_syms.i
+++ b/gnuradio-core/src/lib/general/gr_bytes_to_syms.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/general/gr_char_to_float.cc b/gnuradio-core/src/lib/general/gr_char_to_float.cc
index ffe8ee4a1..aec7ad852 100644
--- a/gnuradio-core/src/lib/general/gr_char_to_float.cc
+++ b/gnuradio-core/src/lib/general/gr_char_to_float.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2010 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,
@@ -38,14 +38,14 @@ gr_char_to_float::gr_char_to_float (size_t vlen, float scale)
: gr_sync_block ("gr_char_to_float",
gr_make_io_signature (1, 1, sizeof (char)*vlen),
gr_make_io_signature (1, 1, sizeof (float)*vlen)),
- d_vlen(vlen), d_scale(scale)
+ d_vlen(vlen), d_scale(scale)
{
const int alignment_multiple =
volk_get_alignment() / sizeof(float);
set_alignment(alignment_multiple);
}
-float
+float
gr_char_to_float::scale() const
{
return d_scale;
diff --git a/gnuradio-core/src/lib/general/gr_char_to_float.h b/gnuradio-core/src/lib/general/gr_char_to_float.h
index 1ab53a087..5170c618c 100644
--- a/gnuradio-core/src/lib/general/gr_char_to_float.h
+++ b/gnuradio-core/src/lib/general/gr_char_to_float.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gnuradio-core/src/lib/general/gr_char_to_float.i b/gnuradio-core/src/lib/general/gr_char_to_float.i
index 65ad861f2..c0b3d75fe 100644
--- a/gnuradio-core/src/lib/general/gr_char_to_float.i
+++ b/gnuradio-core/src/lib/general/gr_char_to_float.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gnuradio-core/src/lib/general/gr_char_to_short.cc b/gnuradio-core/src/lib/general/gr_char_to_short.cc
index 8b6cd0be1..c20d6cd88 100644
--- a/gnuradio-core/src/lib/general/gr_char_to_short.cc
+++ b/gnuradio-core/src/lib/general/gr_char_to_short.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011,2012 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,
diff --git a/gnuradio-core/src/lib/general/gr_char_to_short.h b/gnuradio-core/src/lib/general/gr_char_to_short.h
index e93c15b12..7ac5e97b9 100644
--- a/gnuradio-core/src/lib/general/gr_char_to_short.h
+++ b/gnuradio-core/src/lib/general/gr_char_to_short.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011,2012 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,
@@ -47,7 +47,7 @@ class GR_CORE_API gr_char_to_short : public gr_sync_block
gr_char_to_short (size_t vlen);
size_t d_vlen;
-
+
public:
virtual int work (int noutput_items,
gr_vector_const_void_star &input_items,
diff --git a/gnuradio-core/src/lib/general/gr_char_to_short.i b/gnuradio-core/src/lib/general/gr_char_to_short.i
index 48ddbf26b..a53a0990e 100644
--- a/gnuradio-core/src/lib/general/gr_char_to_short.i
+++ b/gnuradio-core/src/lib/general/gr_char_to_short.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
diff --git a/gnuradio-core/src/lib/general/gr_check_counting_s.cc b/gnuradio-core/src/lib/general/gr_check_counting_s.cc
index bce308814..c3288f481 100644
--- a/gnuradio-core/src/lib/general/gr_check_counting_s.cc
+++ b/gnuradio-core/src/lib/general/gr_check_counting_s.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
@@ -64,7 +64,7 @@ gr_check_counting_s::check_16bit (int noutput_items,
{
for (int i = 0; i < noutput_items; i++){
unsigned short x = in[i];
-
+
switch (d_state){
case SEARCHING:
@@ -115,7 +115,7 @@ gr_check_counting_s::check_32bit (int noutput_items,
unsigned int x_high16bits = in[i];
unsigned int x_low16bits = in[i+1];
unsigned int x = x_high16bits<<16 | x_low16bits;
-
+
switch (d_state){
case SEARCHING:
@@ -176,7 +176,7 @@ gr_check_counting_s::enter_LOCKED ()
void
gr_check_counting_s::log_error (unsigned short expected, unsigned short actual)
{
- fprintf (stdout,
+ fprintf (stdout,
"gr_check_counting: expected %5d (0x%04x) got %5d (0x%04x) offset %8ld (0x%08lx)\n",
expected, expected, actual, actual, d_total_shorts, d_total_shorts);
}
@@ -184,7 +184,7 @@ gr_check_counting_s::log_error (unsigned short expected, unsigned short actual)
void
gr_check_counting_s::log_error_32bit (unsigned int expected, unsigned int actual)
{
- fprintf (stdout,
+ fprintf (stdout,
"gr_check_counting: expected %10d (0x%08x) got %10d (0x%08x) offset %8ld (0x%08lx)\n",
expected, expected, actual, actual, d_total_shorts, d_total_shorts);
}
diff --git a/gnuradio-core/src/lib/general/gr_check_counting_s.h b/gnuradio-core/src/lib/general/gr_check_counting_s.h
index cd4dcb24e..996fa3259 100644
--- a/gnuradio-core/src/lib/general/gr_check_counting_s.h
+++ b/gnuradio-core/src/lib/general/gr_check_counting_s.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -50,20 +50,20 @@ class GR_CORE_API gr_check_counting_s : public gr_sync_block
unsigned int d_history; // bitmask of decisions
unsigned short d_current_count;
unsigned int d_current_count_32bit;
-
+
long d_total_errors;
long d_total_shorts;
bool d_do_32bit;
gr_check_counting_s (bool do_32bit);
-
+
void enter_SEARCHING ();
void enter_LOCKED ();
void right (){
d_history = (d_history << 1) | 0x1;
}
-
+
void wrong (){
d_history = (d_history << 1) | 0x0;
d_total_errors++;
@@ -74,7 +74,7 @@ class GR_CORE_API gr_check_counting_s : public gr_sync_block
void log_error (unsigned short expected, unsigned short actual);
void log_error_32bit (unsigned int expected, unsigned int actual);
-
+
int check_32bit (int noutput_items, unsigned short * in);
int check_16bit (int noutput_items, unsigned short * in);
diff --git a/gnuradio-core/src/lib/general/gr_check_counting_s.i b/gnuradio-core/src/lib/general/gr_check_counting_s.i
index 95ecf1c48..0275dad9d 100644
--- a/gnuradio-core/src/lib/general/gr_check_counting_s.i
+++ b/gnuradio-core/src/lib/general/gr_check_counting_s.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/general/gr_check_lfsr_32k_s.cc b/gnuradio-core/src/lib/general/gr_check_lfsr_32k_s.cc
index 95c6c7da5..088b8c38a 100644
--- a/gnuradio-core/src/lib/general/gr_check_lfsr_32k_s.cc
+++ b/gnuradio-core/src/lib/general/gr_check_lfsr_32k_s.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
@@ -43,7 +43,7 @@ gr_check_lfsr_32k_s::gr_check_lfsr_32k_s ()
d_runlength (0), d_index(0)
{
gri_lfsr_32k lfsr;
-
+
for (int i = 0; i < BUFSIZE; i++)
d_buffer[i] = lfsr.next_short ();
@@ -60,21 +60,21 @@ gr_check_lfsr_32k_s::work (int noutput_items,
for (int i = 0; i < noutput_items; i++){
unsigned short x = in[i];
unsigned short expected;
-
+
switch (d_state){
case MATCH0:
if (x == d_buffer[0])
enter_MATCH1 ();
break;
-
+
case MATCH1:
if (x == d_buffer[1])
enter_MATCH2 ();
else
enter_MATCH0 ();
break;
-
+
case MATCH2:
if (x == d_buffer[2])
enter_LOCKED ();
@@ -163,7 +163,7 @@ void
gr_check_lfsr_32k_s::log_error (unsigned short expected, unsigned short actual)
{
if (0)
- fprintf (stdout,
+ fprintf (stdout,
"gr_check_lfsr_32k: expected %5d (0x%04x) got %5d (0x%04x) offset %8ld (0x%08lx)\n",
expected, expected, actual, actual, d_ntotal, d_ntotal);
}
diff --git a/gnuradio-core/src/lib/general/gr_check_lfsr_32k_s.h b/gnuradio-core/src/lib/general/gr_check_lfsr_32k_s.h
index 939675db8..2f980b427 100644
--- a/gnuradio-core/src/lib/general/gr_check_lfsr_32k_s.h
+++ b/gnuradio-core/src/lib/general/gr_check_lfsr_32k_s.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -53,7 +53,7 @@ class GR_CORE_API gr_check_lfsr_32k_s : public gr_sync_block
state d_state;
unsigned int d_history; // bitmask of decisions
-
+
long d_ntotal; // total number of shorts
long d_nright; // # of correct shorts
long d_runlength; // # of correct shorts in a row
@@ -64,7 +64,7 @@ class GR_CORE_API gr_check_lfsr_32k_s : public gr_sync_block
gr_check_lfsr_32k_s ();
-
+
void enter_SEARCHING ();
void enter_MATCH0 ();
void enter_MATCH1 ();
@@ -76,7 +76,7 @@ class GR_CORE_API gr_check_lfsr_32k_s : public gr_sync_block
d_nright++;
d_runlength++;
}
-
+
void wrong (){
d_history = (d_history << 1) | 0x0;
d_runlength = 0;
diff --git a/gnuradio-core/src/lib/general/gr_check_lfsr_32k_s.i b/gnuradio-core/src/lib/general/gr_check_lfsr_32k_s.i
index 84c02e22c..34d4a0b0c 100644
--- a/gnuradio-core/src/lib/general/gr_check_lfsr_32k_s.i
+++ b/gnuradio-core/src/lib/general/gr_check_lfsr_32k_s.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/general/gr_circular_file.cc b/gnuradio-core/src/lib/general/gr_circular_file.cc
index 4d88b9d99..6f710c49b 100644
--- a/gnuradio-core/src/lib/general/gr_circular_file.cc
+++ b/gnuradio-core/src/lib/general/gr_circular_file.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2002,2010 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,
@@ -157,15 +157,15 @@ gr_circular_file::write (void *vdata, int nbytes)
unsigned char *data = (unsigned char *) vdata;
int buffer_size = d_header[HD_BUFFER_SIZE];
int buffer_current = d_header[HD_BUFFER_CURRENT];
-
+
while (nbytes > 0){
int n = std::min (nbytes, buffer_size - buffer_current);
memcpy (d_buffer + buffer_current, data, n);
-
+
buffer_current += n;
if (buffer_current >= buffer_size)
buffer_current = 0;
-
+
data += n;
nbytes -= n;
}
@@ -181,7 +181,7 @@ gr_circular_file::read (void *vdata, int nbytes)
int buffer_current = d_header[HD_BUFFER_CURRENT];
int buffer_size = d_header[HD_BUFFER_SIZE];
int total = 0;
-
+
nbytes = std::min (nbytes, buffer_size - d_bytes_read);
while (nbytes > 0){
diff --git a/gnuradio-core/src/lib/general/gr_circular_file.h b/gnuradio-core/src/lib/general/gr_circular_file.h
index 3d3f33a8d..ca1f793f3 100644
--- a/gnuradio-core/src/lib/general/gr_circular_file.h
+++ b/gnuradio-core/src/lib/general/gr_circular_file.h
@@ -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,
@@ -33,7 +33,7 @@
* 0x0004: int32 size in bytes of header (constant 4096)
* 0x0008: int32 size in bytes of circular buffer (not including header)
* 0x000C: int32 file offset to beginning of circular buffer
- * 0x0010: int32 byte offset from beginning of circular buffer to
+ * 0x0010: int32 byte offset from beginning of circular buffer to
* current start of data
*
*/
diff --git a/gnuradio-core/src/lib/general/gr_complex_to_interleaved_short.cc b/gnuradio-core/src/lib/general/gr_complex_to_interleaved_short.cc
index d198da0b0..596c14996 100644
--- a/gnuradio-core/src/lib/general/gr_complex_to_interleaved_short.cc
+++ b/gnuradio-core/src/lib/general/gr_complex_to_interleaved_short.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2005,2010 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,
@@ -54,7 +54,7 @@ gr_complex_to_interleaved_short::work (int noutput_items,
*out++ = (short) lrintf(in[i].real()); // FIXME saturate?
*out++ = (short) lrintf(in[i].imag());
}
-
+
return noutput_items;
}
diff --git a/gnuradio-core/src/lib/general/gr_complex_to_interleaved_short.h b/gnuradio-core/src/lib/general/gr_complex_to_interleaved_short.h
index a3e2d38ad..66503413f 100644
--- a/gnuradio-core/src/lib/general/gr_complex_to_interleaved_short.h
+++ b/gnuradio-core/src/lib/general/gr_complex_to_interleaved_short.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/general/gr_complex_to_interleaved_short.i b/gnuradio-core/src/lib/general/gr_complex_to_interleaved_short.i
index d579c1ecb..19c01b7c6 100644
--- a/gnuradio-core/src/lib/general/gr_complex_to_interleaved_short.i
+++ b/gnuradio-core/src/lib/general/gr_complex_to_interleaved_short.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/general/gr_complex_to_xxx.cc b/gnuradio-core/src/lib/general/gr_complex_to_xxx.cc
index 108a92835..3b1fbf9ac 100644
--- a/gnuradio-core/src/lib/general/gr_complex_to_xxx.cc
+++ b/gnuradio-core/src/lib/general/gr_complex_to_xxx.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2008,2010,2012 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,
@@ -126,7 +126,7 @@ gr_complex_to_real::work (int noutput_items,
else {
volk_32fc_deinterleave_real_32f_a(out, in, noi);
}
-
+
return noutput_items;
}
diff --git a/gnuradio-core/src/lib/general/gr_complex_to_xxx.h b/gnuradio-core/src/lib/general/gr_complex_to_xxx.h
index 232071323..a2f06ea28 100644
--- a/gnuradio-core/src/lib/general/gr_complex_to_xxx.h
+++ b/gnuradio-core/src/lib/general/gr_complex_to_xxx.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -140,7 +140,7 @@ class GR_CORE_API gr_complex_to_mag_squared : public gr_sync_block
};
/*!
- * \brief complex in, angle out (float)
+ * \brief complex in, angle out (float)
* \ingroup converter_blk
* \param vlen vector len (default 1)
*/
diff --git a/gnuradio-core/src/lib/general/gr_complex_to_xxx.i b/gnuradio-core/src/lib/general/gr_complex_to_xxx.i
index 30f1cd20b..372b0e8b5 100644
--- a/gnuradio-core/src/lib/general/gr_complex_to_xxx.i
+++ b/gnuradio-core/src/lib/general/gr_complex_to_xxx.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/general/gr_conjugate_cc.cc b/gnuradio-core/src/lib/general/gr_conjugate_cc.cc
index d2b20ffe6..aaa7f490c 100644
--- a/gnuradio-core/src/lib/general/gr_conjugate_cc.cc
+++ b/gnuradio-core/src/lib/general/gr_conjugate_cc.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
@@ -41,7 +41,7 @@ gr_conjugate_cc::gr_conjugate_cc ()
gr_make_io_signature (1, 1, sizeof (gr_complex)),
gr_make_io_signature (1, 1, sizeof (gr_complex)))
{
- const int alignment_multiple =
+ const int alignment_multiple =
volk_get_alignment() / sizeof(gr_complex);
set_alignment(alignment_multiple);
}
diff --git a/gnuradio-core/src/lib/general/gr_conjugate_cc.h b/gnuradio-core/src/lib/general/gr_conjugate_cc.h
index 16e76e153..e0a2af716 100644
--- a/gnuradio-core/src/lib/general/gr_conjugate_cc.h
+++ b/gnuradio-core/src/lib/general/gr_conjugate_cc.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/general/gr_conjugate_cc.i b/gnuradio-core/src/lib/general/gr_conjugate_cc.i
index bafb4ca9e..444ebb1b8 100644
--- a/gnuradio-core/src/lib/general/gr_conjugate_cc.i
+++ b/gnuradio-core/src/lib/general/gr_conjugate_cc.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/general/gr_constants.cc.in b/gnuradio-core/src/lib/general/gr_constants.cc.in
index 71a47eb51..b94f254d6 100644
--- a/gnuradio-core/src/lib/general/gr_constants.cc.in
+++ b/gnuradio-core/src/lib/general/gr_constants.cc.in
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2009 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,
diff --git a/gnuradio-core/src/lib/general/gr_constants.h b/gnuradio-core/src/lib/general/gr_constants.h
index 3d21fe1d6..00ed9463d 100644
--- a/gnuradio-core/src/lib/general/gr_constants.h
+++ b/gnuradio-core/src/lib/general/gr_constants.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2009 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,
diff --git a/gnuradio-core/src/lib/general/gr_copy.cc b/gnuradio-core/src/lib/general/gr_copy.cc
index c6564c231..0a6f721f9 100644
--- a/gnuradio-core/src/lib/general/gr_copy.cc
+++ b/gnuradio-core/src/lib/general/gr_copy.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2009 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,
diff --git a/gnuradio-core/src/lib/general/gr_copy.h b/gnuradio-core/src/lib/general/gr_copy.h
index 7fb13bf68..b0769fa2b 100644
--- a/gnuradio-core/src/lib/general/gr_copy.h
+++ b/gnuradio-core/src/lib/general/gr_copy.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2009 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,
diff --git a/gnuradio-core/src/lib/general/gr_copy.i b/gnuradio-core/src/lib/general/gr_copy.i
index e260d8e84..12ddce6aa 100644
--- a/gnuradio-core/src/lib/general/gr_copy.i
+++ b/gnuradio-core/src/lib/general/gr_copy.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2009 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,
diff --git a/gnuradio-core/src/lib/general/gr_correlate_access_code_tag_bb.cc b/gnuradio-core/src/lib/general/gr_correlate_access_code_tag_bb.cc
index 841675ec8..73ded3c8b 100644
--- a/gnuradio-core/src/lib/general/gr_correlate_access_code_tag_bb.cc
+++ b/gnuradio-core/src/lib/general/gr_correlate_access_code_tag_bb.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2006,2010,2011 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,
@@ -99,7 +99,7 @@ gr_correlate_access_code_tag_bb::work (int noutput_items,
for (int i = 0; i < noutput_items; i++){
out[i] = in[i];
-
+
// compute hamming distance between desired access code and current data
unsigned long long wrong_bits = 0;
unsigned int nwrong = d_threshold+1;
@@ -126,4 +126,4 @@ gr_correlate_access_code_tag_bb::work (int noutput_items,
return noutput_items;
}
-
+
diff --git a/gnuradio-core/src/lib/general/gr_correlate_access_code_tag_bb.h b/gnuradio-core/src/lib/general/gr_correlate_access_code_tag_bb.h
index e543f5cfb..345d3004a 100644
--- a/gnuradio-core/src/lib/general/gr_correlate_access_code_tag_bb.h
+++ b/gnuradio-core/src/lib/general/gr_correlate_access_code_tag_bb.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2006,2011 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,
@@ -35,7 +35,7 @@ typedef boost::shared_ptr<gr_correlate_access_code_tag_bb> gr_correlate_access_c
* \param threshold maximum number of bits that may be wrong
* \param tag_name key of the tag inserted into the tag stream
*/
-GR_CORE_API gr_correlate_access_code_tag_bb_sptr
+GR_CORE_API gr_correlate_access_code_tag_bb_sptr
gr_make_correlate_access_code_tag_bb (const std::string &access_code, int threshold,
const std::string &tag_name);
@@ -52,7 +52,7 @@ gr_make_correlate_access_code_tag_bb (const std::string &access_code, int thresh
*/
class GR_CORE_API gr_correlate_access_code_tag_bb : public gr_sync_block
{
- friend GR_CORE_API gr_correlate_access_code_tag_bb_sptr
+ friend GR_CORE_API gr_correlate_access_code_tag_bb_sptr
gr_make_correlate_access_code_tag_bb (const std::string &access_code, int threshold,
const std::string &tag_name);
private:
@@ -77,7 +77,7 @@ class GR_CORE_API gr_correlate_access_code_tag_bb : public gr_sync_block
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items);
-
+
/*!
* \param access_code is represented with 1 byte per bit, e.g., "010101010111000100"
*/
diff --git a/gnuradio-core/src/lib/general/gr_correlate_access_code_tag_bb.i b/gnuradio-core/src/lib/general/gr_correlate_access_code_tag_bb.i
index fb832194d..f7ca4bea7 100644
--- a/gnuradio-core/src/lib/general/gr_correlate_access_code_tag_bb.i
+++ b/gnuradio-core/src/lib/general/gr_correlate_access_code_tag_bb.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
@@ -26,8 +26,8 @@ GR_SWIG_BLOCK_MAGIC(gr,correlate_access_code_tag_bb);
* \param access_code is represented with 1 byte per bit, e.g., "010101010111000100"
* \param threshold maximum number of bits that may be wrong
*/
-gr_correlate_access_code_tag_bb_sptr
-gr_make_correlate_access_code_tag_bb (const std::string &access_code, int threshold, const std::string &tag_name)
+gr_correlate_access_code_tag_bb_sptr
+gr_make_correlate_access_code_tag_bb (const std::string &access_code, int threshold, const std::string &tag_name)
throw(std::out_of_range);
/*!
@@ -45,7 +45,7 @@ gr_make_correlate_access_code_tag_bb (const std::string &access_code, int thresh
*/
class gr_correlate_access_code_tag_bb : public gr_sync_block
{
- friend gr_correlate_access_code_tag_bb_sptr
+ friend gr_correlate_access_code_tag_bb_sptr
gr_make_correlate_access_code_tag_bb (const std::string &access_code, int threshold, const std::string &tag_name);
protected:
gr_correlate_access_code_tag_bb(const std::string &access_code, int threshold, const std::string &tag_name);
diff --git a/gnuradio-core/src/lib/general/gr_count_bits.cc b/gnuradio-core/src/lib/general/gr_count_bits.cc
index 0e8060c76..4776fe61a 100644
--- a/gnuradio-core/src/lib/general/gr_count_bits.cc
+++ b/gnuradio-core/src/lib/general/gr_count_bits.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2003 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,
@@ -27,7 +27,7 @@
*/
// return number of set bits in the low 8 bits of x
-unsigned int
+unsigned int
gr_count_bits8 (unsigned int x)
{
int count = 0;
@@ -40,7 +40,7 @@ gr_count_bits8 (unsigned int x)
}
// return number of set bits in the low 16 bits of x
-unsigned int
+unsigned int
gr_count_bits16 (unsigned int x)
{
int count = 0;
@@ -57,7 +57,7 @@ gr_count_bits16 (unsigned int x)
#if 0 // slow and obvious
// return number of set bits in the low 32 bits of x
-unsigned int
+unsigned int
gr_count_bits32 (unsigned int x)
{
int count = 0;
@@ -83,7 +83,7 @@ gr_count_bits32 (unsigned int x)
}
#endif
-
+
// return number of set bits in the low 64 bits of x
unsigned int
diff --git a/gnuradio-core/src/lib/general/gr_count_bits.h b/gnuradio-core/src/lib/general/gr_count_bits.h
index f0cec2a11..76d0173eb 100644
--- a/gnuradio-core/src/lib/general/gr_count_bits.h
+++ b/gnuradio-core/src/lib/general/gr_count_bits.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2003 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,
diff --git a/gnuradio-core/src/lib/general/gr_cpfsk_bc.cc b/gnuradio-core/src/lib/general/gr_cpfsk_bc.cc
index f0b04ef97..24f0edd5c 100644
--- a/gnuradio-core/src/lib/general/gr_cpfsk_bc.cc
+++ b/gnuradio-core/src/lib/general/gr_cpfsk_bc.cc
@@ -1,17 +1,17 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2010 Free Software Foundation, Inc.
- *
+ *
* 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,
@@ -28,7 +28,7 @@
#define M_TWOPI (2*M_PI)
-gr_cpfsk_bc_sptr
+gr_cpfsk_bc_sptr
gr_make_cpfsk_bc(float k, float ampl, int samples_per_sym)
{
return gnuradio::get_initial_sptr(new gr_cpfsk_bc(k, ampl, samples_per_sym));
@@ -50,7 +50,7 @@ gr_cpfsk_bc::~gr_cpfsk_bc()
{
}
-int
+int
gr_cpfsk_bc::work(int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items)
@@ -64,12 +64,12 @@ gr_cpfsk_bc::work(int noutput_items,
d_phase += d_freq;
else
d_phase -= d_freq;
-
+
while (d_phase > M_TWOPI)
d_phase -= M_TWOPI;
while (d_phase < -M_TWOPI)
d_phase += M_TWOPI;
-
+
*out++ = gr_expj(d_phase)*d_ampl;
}
}
diff --git a/gnuradio-core/src/lib/general/gr_cpfsk_bc.h b/gnuradio-core/src/lib/general/gr_cpfsk_bc.h
index 4afba4fb4..6ad2774b3 100644
--- a/gnuradio-core/src/lib/general/gr_cpfsk_bc.h
+++ b/gnuradio-core/src/lib/general/gr_cpfsk_bc.h
@@ -1,17 +1,17 @@
/* -*- c++ -*- */
/*
* Copyright 2008 Free Software Foundation, Inc.
- *
+ *
* 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,
@@ -30,7 +30,7 @@ typedef boost::shared_ptr<gr_cpfsk_bc> gr_cpfsk_bc_sptr;
GR_CORE_API gr_cpfsk_bc_sptr gr_make_cpfsk_bc(float k, float ampl, int samples_per_sym);
/*!
- * \brief Perform continuous phase 2-level frequency shift keying modulation
+ * \brief Perform continuous phase 2-level frequency shift keying modulation
* on an input stream of unpacked bits.
* \ingroup modulation_blk
*
diff --git a/gnuradio-core/src/lib/general/gr_cpfsk_bc.i b/gnuradio-core/src/lib/general/gr_cpfsk_bc.i
index 918766a68..b86dfb81b 100644
--- a/gnuradio-core/src/lib/general/gr_cpfsk_bc.i
+++ b/gnuradio-core/src/lib/general/gr_cpfsk_bc.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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,
diff --git a/gnuradio-core/src/lib/general/gr_cpm.cc b/gnuradio-core/src/lib/general/gr_cpm.cc
index 94a428c58..32ce6502d 100644
--- a/gnuradio-core/src/lib/general/gr_cpm.cc
+++ b/gnuradio-core/src/lib/general/gr_cpm.cc
@@ -1,17 +1,17 @@
/* -*- c++ -*- */
/*
* Copyright 2010 Free Software Foundation, Inc.
- *
+ *
* 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,
diff --git a/gnuradio-core/src/lib/general/gr_cpm.i b/gnuradio-core/src/lib/general/gr_cpm.i
index f01aba34e..6c077687d 100644
--- a/gnuradio-core/src/lib/general/gr_cpm.i
+++ b/gnuradio-core/src/lib/general/gr_cpm.i
@@ -1,19 +1,19 @@
/* -*- C++ -*- */
/*
* Copyright 2010 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,
diff --git a/gnuradio-core/src/lib/general/gr_ctcss_squelch_ff.cc b/gnuradio-core/src/lib/general/gr_ctcss_squelch_ff.cc
index 6c1e98d47..d31763a6b 100644
--- a/gnuradio-core/src/lib/general/gr_ctcss_squelch_ff.cc
+++ b/gnuradio-core/src/lib/general/gr_ctcss_squelch_ff.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2006,2010 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,
@@ -27,9 +27,9 @@
#include <gr_ctcss_squelch_ff.h>
static float ctcss_tones[] = {
- 67.0, 71.9, 74.4, 77.0, 79.7, 82.5, 85.4, 88.5, 91.5, 94.8,
+ 67.0, 71.9, 74.4, 77.0, 79.7, 82.5, 85.4, 88.5, 91.5, 94.8,
97.4, 100.0, 103.5, 107.2, 110.9, 114.8, 118.8, 123.0, 127.3, 131.8,
- 136.5, 141.3, 146.2, 151.4, 156.7, 162.2, 167.9, 173.8, 179.9, 186.2,
+ 136.5, 141.3, 146.2, 151.4, 156.7, 162.2, 167.9, 173.8, 179.9, 186.2,
192.8, 203.5, 210.7, 218.1, 225.7, 233.6, 241.8, 250.3
};
@@ -50,7 +50,7 @@ int gr_ctcss_squelch_ff::find_tone(float freq)
return -1;
}
-gr_ctcss_squelch_ff::gr_ctcss_squelch_ff(int rate, float freq, float level, int len, int ramp, bool gate) :
+gr_ctcss_squelch_ff::gr_ctcss_squelch_ff(int rate, float freq, float level, int len, int ramp, bool gate) :
gr_squelch_base_ff("ctcss_squelch_ff", ramp, gate)
{
d_freq = freq;
@@ -71,7 +71,7 @@ gr_ctcss_squelch_ff::gr_ctcss_squelch_ff(int rate, float freq, float level, int
f_l = freq*0.98;
else
f_l = ctcss_tones[i-1];
-
+
if (i == -1 || i == max_tone_index)
f_r = freq*1.02;
else
@@ -105,7 +105,7 @@ void gr_ctcss_squelch_ff::update_state(const float &in)
d_out_l = abs(d_goertzel_l.output());
d_out_c = abs(d_goertzel_c.output());
d_out_r = abs(d_goertzel_r.output());
-
+
//printf("d_out_l=%f d_out_c=%f d_out_r=%f\n", d_out_l, d_out_c, d_out_r);
d_mute = (d_out_c < d_level || d_out_c < d_out_l || d_out_c < d_out_r);
}
diff --git a/gnuradio-core/src/lib/general/gr_ctcss_squelch_ff.h b/gnuradio-core/src/lib/general/gr_ctcss_squelch_ff.h
index 664c40846..ef3d13ba7 100644
--- a/gnuradio-core/src/lib/general/gr_ctcss_squelch_ff.h
+++ b/gnuradio-core/src/lib/general/gr_ctcss_squelch_ff.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
@@ -30,7 +30,7 @@
class gr_ctcss_squelch_ff;
typedef boost::shared_ptr<gr_ctcss_squelch_ff> gr_ctcss_squelch_ff_sptr;
-GR_CORE_API gr_ctcss_squelch_ff_sptr
+GR_CORE_API gr_ctcss_squelch_ff_sptr
gr_make_ctcss_squelch_ff(int rate, float freq, float level=0.01, int len=0, int ramp=0, bool gate=false);
/*!
@@ -44,7 +44,7 @@ private:
float d_level;
int d_len;
bool d_mute;
-
+
gri_goertzel d_goertzel_l;
gri_goertzel d_goertzel_c;
gri_goertzel d_goertzel_r;
@@ -57,7 +57,7 @@ private:
protected:
virtual void update_state(const float &in);
virtual bool mute() const { return d_mute; }
-
+
public:
std::vector<float> squelch_range() const;
float level() const { return d_level; }
diff --git a/gnuradio-core/src/lib/general/gr_ctcss_squelch_ff.i b/gnuradio-core/src/lib/general/gr_ctcss_squelch_ff.i
index a046710dc..b160c5dfd 100644
--- a/gnuradio-core/src/lib/general/gr_ctcss_squelch_ff.i
+++ b/gnuradio-core/src/lib/general/gr_ctcss_squelch_ff.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
@@ -24,7 +24,7 @@ GR_SWIG_BLOCK_MAGIC(gr,ctcss_squelch_ff);
%include gr_squelch_base_ff.i
-gr_ctcss_squelch_ff_sptr
+gr_ctcss_squelch_ff_sptr
gr_make_ctcss_squelch_ff(int rate, float freq, float level=0.01, int len=0, int ramp=0, bool gate=false);
class gr_ctcss_squelch_ff : public gr_squelch_base_ff
diff --git a/gnuradio-core/src/lib/general/gr_decode_ccsds_27_fb.cc b/gnuradio-core/src/lib/general/gr_decode_ccsds_27_fb.cc
index c5e1320a3..319aceeaa 100644
--- a/gnuradio-core/src/lib/general/gr_decode_ccsds_27_fb.cc
+++ b/gnuradio-core/src/lib/general/gr_decode_ccsds_27_fb.cc
@@ -1,17 +1,17 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2010 Free Software Foundation, Inc.
- *
+ *
* 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,
@@ -25,7 +25,7 @@
#include <gr_decode_ccsds_27_fb.h>
#include <gr_io_signature.h>
-gr_decode_ccsds_27_fb_sptr
+gr_decode_ccsds_27_fb_sptr
gr_make_decode_ccsds_27_fb()
{
return gnuradio::get_initial_sptr(new gr_decode_ccsds_27_fb());
@@ -49,7 +49,7 @@ gr_decode_ccsds_27_fb::~gr_decode_ccsds_27_fb()
{
}
-int
+int
gr_decode_ccsds_27_fb::work(int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items)
@@ -65,20 +65,20 @@ gr_decode_ccsds_27_fb::work(int noutput_items,
else if (sample < 0.0)
sample = 0.0;
unsigned char sym = (unsigned char)(floor(sample));
-
+
d_viterbi_in[d_count % 4] = sym;
if ((d_count % 4) == 3) {
// Every fourth symbol, perform butterfly operation
viterbi_butterfly2(d_viterbi_in, d_mettab, d_state0, d_state1);
-
+
// Every sixteenth symbol, read out a byte
if (d_count % 16 == 11) {
- // long metric =
+ // long metric =
viterbi_get_output(d_state0, out++);
// printf("%li\n", *(out-1), metric);
}
}
-
+
d_count++;
}
diff --git a/gnuradio-core/src/lib/general/gr_decode_ccsds_27_fb.h b/gnuradio-core/src/lib/general/gr_decode_ccsds_27_fb.h
index 3db250101..df8e6f449 100644
--- a/gnuradio-core/src/lib/general/gr_decode_ccsds_27_fb.h
+++ b/gnuradio-core/src/lib/general/gr_decode_ccsds_27_fb.h
@@ -1,17 +1,17 @@
/* -*- c++ -*- */
/*
* Copyright 2008 Free Software Foundation, Inc.
- *
+ *
* 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,
@@ -35,12 +35,12 @@ GR_CORE_API gr_decode_ccsds_27_fb_sptr gr_make_decode_ccsds_27_fb();
/*! \brief A rate 1/2, k=7 convolutional decoder for the CCSDS standard
* \ingroup ecc
- *
+ *
* This block performs soft-decision convolutional decoding using the Viterbi
* algorithm.
- *
- * The input is a stream of (possibly noise corrupted) floating point values
- * nominally spanning [-1.0, 1.0], representing the encoded channel symbols
+ *
+ * The input is a stream of (possibly noise corrupted) floating point values
+ * nominally spanning [-1.0, 1.0], representing the encoded channel symbols
* 0 (-1.0) and 1 (1.0), with erased symbols at 0.0.
*
* The output is MSB first packed bytes of decoded values.
@@ -66,7 +66,7 @@ private:
unsigned char d_viterbi_in[16];
int d_count;
-
+
public:
~gr_decode_ccsds_27_fb();
diff --git a/gnuradio-core/src/lib/general/gr_decode_ccsds_27_fb.i b/gnuradio-core/src/lib/general/gr_decode_ccsds_27_fb.i
index f05a0141b..f2e13b593 100644
--- a/gnuradio-core/src/lib/general/gr_decode_ccsds_27_fb.i
+++ b/gnuradio-core/src/lib/general/gr_decode_ccsds_27_fb.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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,
diff --git a/gnuradio-core/src/lib/general/gr_deinterleave.cc b/gnuradio-core/src/lib/general/gr_deinterleave.cc
index 843275366..e22db60c1 100644
--- a/gnuradio-core/src/lib/general/gr_deinterleave.cc
+++ b/gnuradio-core/src/lib/general/gr_deinterleave.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
diff --git a/gnuradio-core/src/lib/general/gr_deinterleave.h b/gnuradio-core/src/lib/general/gr_deinterleave.h
index 3dd913911..0eecc44d1 100644
--- a/gnuradio-core/src/lib/general/gr_deinterleave.h
+++ b/gnuradio-core/src/lib/general/gr_deinterleave.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/general/gr_deinterleave.i b/gnuradio-core/src/lib/general/gr_deinterleave.i
index 2825f3a5e..a70ce6c52 100644
--- a/gnuradio-core/src/lib/general/gr_deinterleave.i
+++ b/gnuradio-core/src/lib/general/gr_deinterleave.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/general/gr_delay.cc b/gnuradio-core/src/lib/general/gr_delay.cc
index aedd461f8..8f728948d 100644
--- a/gnuradio-core/src/lib/general/gr_delay.cc
+++ b/gnuradio-core/src/lib/general/gr_delay.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007,2010,2012 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,
@@ -44,7 +44,7 @@ gr_delay::gr_delay (size_t itemsize, int delay)
d_delta = 0;
}
-void
+void
gr_delay::forecast (int noutput_items, gr_vector_int &ninput_items_required)
{
// make sure all inputs have noutput_items available
@@ -107,7 +107,7 @@ gr_delay::general_work (int noutput_items,
delta -= n_adj;
d_delta = -delta;
}
-
+
//produce but not consume (inserts zeros)
else { // d_delta > 0
int n_from_input, n_padding;
diff --git a/gnuradio-core/src/lib/general/gr_delay.h b/gnuradio-core/src/lib/general/gr_delay.h
index 55f525c38..ed05c47f4 100644
--- a/gnuradio-core/src/lib/general/gr_delay.h
+++ b/gnuradio-core/src/lib/general/gr_delay.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007,2012 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,
diff --git a/gnuradio-core/src/lib/general/gr_delay.i b/gnuradio-core/src/lib/general/gr_delay.i
index 2e62a222f..f3d49891d 100644
--- a/gnuradio-core/src/lib/general/gr_delay.i
+++ b/gnuradio-core/src/lib/general/gr_delay.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007 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,
diff --git a/gnuradio-core/src/lib/general/gr_descrambler_bb.cc b/gnuradio-core/src/lib/general/gr_descrambler_bb.cc
index b712e69ed..b5ae28fa9 100644
--- a/gnuradio-core/src/lib/general/gr_descrambler_bb.cc
+++ b/gnuradio-core/src/lib/general/gr_descrambler_bb.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2010 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,
@@ -51,6 +51,6 @@ gr_descrambler_bb::work(int noutput_items,
for (int i = 0; i < noutput_items; i++)
out[i] = d_lfsr.next_bit_descramble(in[i]);
-
+
return noutput_items;
}
diff --git a/gnuradio-core/src/lib/general/gr_descrambler_bb.h b/gnuradio-core/src/lib/general/gr_descrambler_bb.h
index d7a49b5f1..333593caa 100644
--- a/gnuradio-core/src/lib/general/gr_descrambler_bb.h
+++ b/gnuradio-core/src/lib/general/gr_descrambler_bb.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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,
@@ -35,7 +35,7 @@ GR_CORE_API gr_descrambler_bb_sptr gr_make_descrambler_bb(int mask, int seed, in
* Descramble an input stream using an LFSR. This block works on the LSB only
* of the input data stream, i.e., on an "unpacked binary" stream, and
* produces the same format on its output.
- *
+ *
* \param mask Polynomial mask for LFSR
* \param seed Initial shift register contents
* \param len Shift register length
diff --git a/gnuradio-core/src/lib/general/gr_descrambler_bb.i b/gnuradio-core/src/lib/general/gr_descrambler_bb.i
index e93c50c1a..c6cd0a285 100644
--- a/gnuradio-core/src/lib/general/gr_descrambler_bb.i
+++ b/gnuradio-core/src/lib/general/gr_descrambler_bb.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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,
diff --git a/gnuradio-core/src/lib/general/gr_diff_decoder_bb.cc b/gnuradio-core/src/lib/general/gr_diff_decoder_bb.cc
index 1b0bcfb96..74324a62e 100644
--- a/gnuradio-core/src/lib/general/gr_diff_decoder_bb.cc
+++ b/gnuradio-core/src/lib/general/gr_diff_decoder_bb.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2010 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,
diff --git a/gnuradio-core/src/lib/general/gr_diff_decoder_bb.h b/gnuradio-core/src/lib/general/gr_diff_decoder_bb.h
index 0337c3dbd..c4ebbc476 100644
--- a/gnuradio-core/src/lib/general/gr_diff_decoder_bb.h
+++ b/gnuradio-core/src/lib/general/gr_diff_decoder_bb.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gnuradio-core/src/lib/general/gr_diff_decoder_bb.i b/gnuradio-core/src/lib/general/gr_diff_decoder_bb.i
index 71b55e642..3dddb17c3 100644
--- a/gnuradio-core/src/lib/general/gr_diff_decoder_bb.i
+++ b/gnuradio-core/src/lib/general/gr_diff_decoder_bb.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gnuradio-core/src/lib/general/gr_diff_encoder_bb.cc b/gnuradio-core/src/lib/general/gr_diff_encoder_bb.cc
index 7e67a718e..98492c746 100644
--- a/gnuradio-core/src/lib/general/gr_diff_encoder_bb.cc
+++ b/gnuradio-core/src/lib/general/gr_diff_encoder_bb.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2010 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,
diff --git a/gnuradio-core/src/lib/general/gr_diff_encoder_bb.h b/gnuradio-core/src/lib/general/gr_diff_encoder_bb.h
index c99e226da..e98876b70 100644
--- a/gnuradio-core/src/lib/general/gr_diff_encoder_bb.h
+++ b/gnuradio-core/src/lib/general/gr_diff_encoder_bb.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gnuradio-core/src/lib/general/gr_diff_encoder_bb.i b/gnuradio-core/src/lib/general/gr_diff_encoder_bb.i
index 7066e9e87..96dadaca5 100644
--- a/gnuradio-core/src/lib/general/gr_diff_encoder_bb.i
+++ b/gnuradio-core/src/lib/general/gr_diff_encoder_bb.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gnuradio-core/src/lib/general/gr_diff_phasor_cc.cc b/gnuradio-core/src/lib/general/gr_diff_phasor_cc.cc
index fb6a3a910..89fa2041e 100644
--- a/gnuradio-core/src/lib/general/gr_diff_phasor_cc.cc
+++ b/gnuradio-core/src/lib/general/gr_diff_phasor_cc.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2010 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,
@@ -36,7 +36,7 @@ gr_make_diff_phasor_cc ()
gr_diff_phasor_cc::gr_diff_phasor_cc ()
: gr_sync_block ("diff_phasor_cc",
gr_make_io_signature (1, 1, sizeof (gr_complex)),
- gr_make_io_signature (1, 1, sizeof (gr_complex)))
+ gr_make_io_signature (1, 1, sizeof (gr_complex)))
{
set_history(2);
}
@@ -56,6 +56,6 @@ gr_diff_phasor_cc::work (int noutput_items,
for(int i = 0; i < noutput_items; i++){
out[i] = in[i] * conj(in[i-1]);
}
-
+
return noutput_items;
}
diff --git a/gnuradio-core/src/lib/general/gr_diff_phasor_cc.h b/gnuradio-core/src/lib/general/gr_diff_phasor_cc.h
index 8af2699a7..21c4f616d 100644
--- a/gnuradio-core/src/lib/general/gr_diff_phasor_cc.h
+++ b/gnuradio-core/src/lib/general/gr_diff_phasor_cc.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gnuradio-core/src/lib/general/gr_diff_phasor_cc.i b/gnuradio-core/src/lib/general/gr_diff_phasor_cc.i
index 6736158c1..8aecd5cc7 100644
--- a/gnuradio-core/src/lib/general/gr_diff_phasor_cc.i
+++ b/gnuradio-core/src/lib/general/gr_diff_phasor_cc.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gnuradio-core/src/lib/general/gr_dpll_bb.cc b/gnuradio-core/src/lib/general/gr_dpll_bb.cc
index fcaad2174..1d5a0d4fd 100644
--- a/gnuradio-core/src/lib/general/gr_dpll_bb.cc
+++ b/gnuradio-core/src/lib/general/gr_dpll_bb.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007,2009,2010 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,
diff --git a/gnuradio-core/src/lib/general/gr_dpll_bb.h b/gnuradio-core/src/lib/general/gr_dpll_bb.h
index 8e748dddb..a7df974fb 100644
--- a/gnuradio-core/src/lib/general/gr_dpll_bb.h
+++ b/gnuradio-core/src/lib/general/gr_dpll_bb.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007 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,
@@ -35,7 +35,7 @@ GR_CORE_API gr_dpll_bb_sptr gr_make_dpll_bb (float period, float gain);
* \brief Detect the peak of a signal
* \ingroup level_blk
*
- * If a peak is detected, this block outputs a 1,
+ * If a peak is detected, this block outputs a 1,
* or it outputs 0's.
*/
class GR_CORE_API gr_dpll_bb : public gr_sync_block
diff --git a/gnuradio-core/src/lib/general/gr_dpll_bb.i b/gnuradio-core/src/lib/general/gr_dpll_bb.i
index 59ce7f03d..f31a87374 100644
--- a/gnuradio-core/src/lib/general/gr_dpll_bb.i
+++ b/gnuradio-core/src/lib/general/gr_dpll_bb.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007 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,
diff --git a/gnuradio-core/src/lib/general/gr_encode_ccsds_27_bb.cc b/gnuradio-core/src/lib/general/gr_encode_ccsds_27_bb.cc
index 092e91d8b..4a92d113a 100644
--- a/gnuradio-core/src/lib/general/gr_encode_ccsds_27_bb.cc
+++ b/gnuradio-core/src/lib/general/gr_encode_ccsds_27_bb.cc
@@ -1,17 +1,17 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2008,2010 Free Software Foundation, Inc.
- *
+ *
* 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,
@@ -29,7 +29,7 @@ extern "C" {
#include <../viterbi/viterbi.h>
}
-gr_encode_ccsds_27_bb_sptr
+gr_encode_ccsds_27_bb_sptr
gr_make_encode_ccsds_27_bb()
{
return gnuradio::get_initial_sptr(new gr_encode_ccsds_27_bb());
@@ -48,7 +48,7 @@ gr_encode_ccsds_27_bb::~gr_encode_ccsds_27_bb()
{
}
-int
+int
gr_encode_ccsds_27_bb::work(int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items)
diff --git a/gnuradio-core/src/lib/general/gr_encode_ccsds_27_bb.h b/gnuradio-core/src/lib/general/gr_encode_ccsds_27_bb.h
index e24ae9151..94e9c33f1 100644
--- a/gnuradio-core/src/lib/general/gr_encode_ccsds_27_bb.h
+++ b/gnuradio-core/src/lib/general/gr_encode_ccsds_27_bb.h
@@ -1,17 +1,17 @@
/* -*- c++ -*- */
/*
* Copyright 2008 Free Software Foundation, Inc.
- *
+ *
* 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,
@@ -31,10 +31,10 @@ GR_CORE_API gr_encode_ccsds_27_bb_sptr gr_make_encode_ccsds_27_bb();
/*! \brief A rate 1/2, k=7 convolutional encoder for the CCSDS standard
* \ingroup ecc
- *
+ *
* This block performs convolutional encoding using the CCSDS standard
* polynomial ("Voyager").
- *
+ *
* The input is an MSB first packed stream of bits.
*
* The output is a stream of symbols 0 or 1 representing the encoded data.
@@ -52,7 +52,7 @@ private:
gr_encode_ccsds_27_bb();
unsigned char d_encstate;
-
+
public:
~gr_encode_ccsds_27_bb();
diff --git a/gnuradio-core/src/lib/general/gr_encode_ccsds_27_bb.i b/gnuradio-core/src/lib/general/gr_encode_ccsds_27_bb.i
index d4bda41cc..e74e9174a 100644
--- a/gnuradio-core/src/lib/general/gr_encode_ccsds_27_bb.i
+++ b/gnuradio-core/src/lib/general/gr_encode_ccsds_27_bb.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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,
diff --git a/gnuradio-core/src/lib/general/gr_expj.h b/gnuradio-core/src/lib/general/gr_expj.h
index 6f1d56eb3..1d8633242 100644
--- a/gnuradio-core/src/lib/general/gr_expj.h
+++ b/gnuradio-core/src/lib/general/gr_expj.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gnuradio-core/src/lib/general/gr_fake_channel_coder_pp.cc b/gnuradio-core/src/lib/general/gr_fake_channel_coder_pp.cc
index 24945cfd8..c1c3883c5 100644
--- a/gnuradio-core/src/lib/general/gr_fake_channel_coder_pp.cc
+++ b/gnuradio-core/src/lib/general/gr_fake_channel_coder_pp.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2010 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,
@@ -61,7 +61,7 @@ gr_fake_channel_encoder_pp::work (int noutput_items,
const unsigned char *in = (const unsigned char *) input_items[0];
unsigned char *out = (unsigned char *) output_items[0];
int npad = d_output_vlen - d_input_vlen;
-
+
for (int i = 0; i < noutput_items; i++){
memcpy(out, in, d_input_vlen);
memset(out + d_input_vlen, PAD_VAL, npad);
@@ -102,7 +102,7 @@ gr_fake_channel_decoder_pp::work (int noutput_items,
{
const unsigned char *in = (const unsigned char *) input_items[0];
unsigned char *out = (unsigned char *) output_items[0];
-
+
for (int i = 0; i < noutput_items; i++){
memcpy(out, in, d_output_vlen);
in += d_input_vlen;
diff --git a/gnuradio-core/src/lib/general/gr_fake_channel_coder_pp.h b/gnuradio-core/src/lib/general/gr_fake_channel_coder_pp.h
index 2560c6105..45808752d 100644
--- a/gnuradio-core/src/lib/general/gr_fake_channel_coder_pp.h
+++ b/gnuradio-core/src/lib/general/gr_fake_channel_coder_pp.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
@@ -42,12 +42,12 @@ class GR_CORE_API gr_fake_channel_encoder_pp : public gr_sync_block
{
int d_input_vlen;
int d_output_vlen;
-
+
gr_fake_channel_encoder_pp(int input_vlen, int output_vlen);
friend GR_CORE_API gr_fake_channel_encoder_pp_sptr
gr_make_fake_channel_encoder_pp(int input_vlen, int output_vlen);
-
+
public:
~gr_fake_channel_encoder_pp();
@@ -74,12 +74,12 @@ class GR_CORE_API gr_fake_channel_decoder_pp : public gr_sync_block
{
int d_input_vlen;
int d_output_vlen;
-
+
gr_fake_channel_decoder_pp(int input_vlen, int output_vlen);
friend GR_CORE_API gr_fake_channel_decoder_pp_sptr
gr_make_fake_channel_decoder_pp(int input_vlen, int output_vlen);
-
+
public:
~gr_fake_channel_decoder_pp();
diff --git a/gnuradio-core/src/lib/general/gr_fake_channel_coder_pp.i b/gnuradio-core/src/lib/general/gr_fake_channel_coder_pp.i
index 364fb7581..123c84e47 100644
--- a/gnuradio-core/src/lib/general/gr_fake_channel_coder_pp.i
+++ b/gnuradio-core/src/lib/general/gr_fake_channel_coder_pp.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
@@ -22,7 +22,7 @@
GR_SWIG_BLOCK_MAGIC(gr,fake_channel_encoder_pp)
-gr_fake_channel_encoder_pp_sptr
+gr_fake_channel_encoder_pp_sptr
gr_make_fake_channel_encoder_pp(int input_vlen,
int output_vlen
) throw(std::invalid_argument);
@@ -39,7 +39,7 @@ public:
GR_SWIG_BLOCK_MAGIC(gr,fake_channel_decoder_pp)
-gr_fake_channel_decoder_pp_sptr
+gr_fake_channel_decoder_pp_sptr
gr_make_fake_channel_decoder_pp(int input_vlen,
int output_vlen
) throw(std::invalid_argument);
diff --git a/gnuradio-core/src/lib/general/gr_fast_atan2f.cc b/gnuradio-core/src/lib/general/gr_fast_atan2f.cc
index 6e14660f1..8b7bfea12 100644
--- a/gnuradio-core/src/lib/general/gr_fast_atan2f.cc
+++ b/gnuradio-core/src/lib/general/gr_fast_atan2f.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
@@ -34,7 +34,7 @@
#define TAN_MAP_SIZE 256
/* arctangents from 0 to pi/4 radians */
-static REAL
+static REAL
fast_atan_table[257] = {
0.000000e+00, 3.921549e-03, 7.842976e-03, 1.176416e-02,
1.568499e-02, 1.960533e-02, 2.352507e-02, 2.744409e-02,
diff --git a/gnuradio-core/src/lib/general/gr_feedforward_agc_cc.cc b/gnuradio-core/src/lib/general/gr_feedforward_agc_cc.cc
index 9046fcaa7..147b64e9b 100644
--- a/gnuradio-core/src/lib/general/gr_feedforward_agc_cc.cc
+++ b/gnuradio-core/src/lib/general/gr_feedforward_agc_cc.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2010 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,
@@ -42,7 +42,7 @@ gr_feedforward_agc_cc::gr_feedforward_agc_cc (int nsamples, float reference)
{
if (nsamples < 1)
throw std::invalid_argument("gr_feedforward_agc_cc: nsamples must be >= 1");
-
+
set_history(nsamples);
}
@@ -78,7 +78,7 @@ gr_feedforward_agc_cc::work(int noutput_items,
gr_complex *out = (gr_complex *) output_items[0];
int nsamples = d_nsamples;
float gain;
-
+
for (int i = 0; i < noutput_items; i++){
//float max_env = 1e-12; // avoid divide by zero
float max_env = 1e-4; // avoid divide by zero, indirectly set max gain
diff --git a/gnuradio-core/src/lib/general/gr_feedforward_agc_cc.h b/gnuradio-core/src/lib/general/gr_feedforward_agc_cc.h
index a97dbd958..63e5e4c43 100644
--- a/gnuradio-core/src/lib/general/gr_feedforward_agc_cc.h
+++ b/gnuradio-core/src/lib/general/gr_feedforward_agc_cc.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
@@ -38,9 +38,9 @@ gr_make_feedforward_agc_cc(int nsamples, float reference = 1.0);
*/
class GR_CORE_API gr_feedforward_agc_cc : public gr_sync_block
{
- friend GR_CORE_API gr_feedforward_agc_cc_sptr
+ friend GR_CORE_API gr_feedforward_agc_cc_sptr
gr_make_feedforward_agc_cc(int nsamples, float reference);
-
+
int d_nsamples;
float d_reference;
diff --git a/gnuradio-core/src/lib/general/gr_feedforward_agc_cc.i b/gnuradio-core/src/lib/general/gr_feedforward_agc_cc.i
index 10a4d4789..1fd5a2c26 100644
--- a/gnuradio-core/src/lib/general/gr_feedforward_agc_cc.i
+++ b/gnuradio-core/src/lib/general/gr_feedforward_agc_cc.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
@@ -28,7 +28,7 @@ gr_make_feedforward_agc_cc(int nsamples, float reference = 1.0);
class gr_feedforward_agc_cc : public gr_sync_block
{
gr_feedforward_agc_cc(int nsamples, float reference);
-
+
public:
~gr_feedforward_agc_cc();
};
diff --git a/gnuradio-core/src/lib/general/gr_feval.cc b/gnuradio-core/src/lib/general/gr_feval.cc
index e679ef585..ca5714a79 100644
--- a/gnuradio-core/src/lib/general/gr_feval.cc
+++ b/gnuradio-core/src/lib/general/gr_feval.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
@@ -28,7 +28,7 @@
gr_feval_dd::~gr_feval_dd(){}
-double
+double
gr_feval_dd::eval(double x)
{
return 0;
diff --git a/gnuradio-core/src/lib/general/gr_feval.h b/gnuradio-core/src/lib/general/gr_feval.h
index a0e448ebf..1726a8a7f 100644
--- a/gnuradio-core/src/lib/general/gr_feval.h
+++ b/gnuradio-core/src/lib/general/gr_feval.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
@@ -73,7 +73,7 @@ protected:
* \brief override this to define the function
*/
virtual gr_complex eval(gr_complex x);
-
+
public:
gr_feval_cc() {}
virtual ~gr_feval_cc();
diff --git a/gnuradio-core/src/lib/general/gr_feval.i b/gnuradio-core/src/lib/general/gr_feval.i
index c5522805d..bc219a643 100644
--- a/gnuradio-core/src/lib/general/gr_feval.i
+++ b/gnuradio-core/src/lib/general/gr_feval.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2010 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,
@@ -115,7 +115,7 @@ class gr_feval_ll
{
protected:
virtual long eval(long x);
-
+
public:
gr_feval_ll() {}
virtual ~gr_feval_ll();
@@ -128,7 +128,7 @@ class gr_feval
{
protected:
virtual void eval();
-
+
public:
gr_feval() {}
virtual ~gr_feval();
diff --git a/gnuradio-core/src/lib/general/gr_fft_vcc.cc b/gnuradio-core/src/lib/general/gr_fft_vcc.cc
index f744acb93..addcddb64 100644
--- a/gnuradio-core/src/lib/general/gr_fft_vcc.cc
+++ b/gnuradio-core/src/lib/general/gr_fft_vcc.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2007,2008,2012 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,
@@ -55,14 +55,14 @@ gr_fft_vcc::~gr_fft_vcc ()
{
}
-bool
+bool
gr_fft_vcc::set_window(const std::vector<float> &window)
{
if(window.size()==0 || window.size()==d_fft_size) {
d_window=window;
return true;
}
- else
+ else
return false;
}
diff --git a/gnuradio-core/src/lib/general/gr_fft_vcc.h b/gnuradio-core/src/lib/general/gr_fft_vcc.h
index ceabeb681..db5690d41 100644
--- a/gnuradio-core/src/lib/general/gr_fft_vcc.h
+++ b/gnuradio-core/src/lib/general/gr_fft_vcc.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2007,2008,2012 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,
diff --git a/gnuradio-core/src/lib/general/gr_fft_vcc.i b/gnuradio-core/src/lib/general/gr_fft_vcc.i
index 26d8b89a3..f9caae7d8 100644
--- a/gnuradio-core/src/lib/general/gr_fft_vcc.i
+++ b/gnuradio-core/src/lib/general/gr_fft_vcc.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2007,2008,2010,2012 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,
@@ -22,7 +22,7 @@
GR_SWIG_BLOCK_MAGIC(gr, fft_vcc)
-gr_fft_vcc_sptr
+gr_fft_vcc_sptr
gr_make_fft_vcc (int fft_size, bool forward,
const std::vector<float> &window,
bool shift=false, int nthreads=1);
diff --git a/gnuradio-core/src/lib/general/gr_fft_vcc_fftw.cc b/gnuradio-core/src/lib/general/gr_fft_vcc_fftw.cc
index 0e8b4b015..891173bcd 100644
--- a/gnuradio-core/src/lib/general/gr_fft_vcc_fftw.cc
+++ b/gnuradio-core/src/lib/general/gr_fft_vcc_fftw.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2007,2008,2010 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,
@@ -79,9 +79,9 @@ gr_fft_vcc_fftw::work (int noutput_items,
int count = 0;
while (count++ < noutput_items){
-
+
// copy input into optimally aligned buffer
-
+
if (d_window.size()){
gr_complex *dst = d_fft->get_inbuf();
if(!d_forward && d_shift){
@@ -107,10 +107,10 @@ gr_fft_vcc_fftw::work (int noutput_items,
memcpy (d_fft->get_inbuf(), in, input_data_size);
}
}
-
+
// compute the fft
d_fft->execute ();
-
+
// copy result to our output
if(d_forward && d_shift) { // apply a fft shift on the data
unsigned int len = (unsigned int)(ceil(d_fft_size/2.0));
@@ -120,11 +120,11 @@ gr_fft_vcc_fftw::work (int noutput_items,
else {
memcpy (out, d_fft->get_outbuf (), output_data_size);
}
-
+
in += d_fft_size;
out += d_fft_size;
}
-
+
return noutput_items;
}
diff --git a/gnuradio-core/src/lib/general/gr_fft_vcc_fftw.h b/gnuradio-core/src/lib/general/gr_fft_vcc_fftw.h
index 82b7512d7..967ceaefb 100644
--- a/gnuradio-core/src/lib/general/gr_fft_vcc_fftw.h
+++ b/gnuradio-core/src/lib/general/gr_fft_vcc_fftw.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2007,2008 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,
diff --git a/gnuradio-core/src/lib/general/gr_fft_vfc.cc b/gnuradio-core/src/lib/general/gr_fft_vfc.cc
index 5fbe732dc..2396055b9 100644
--- a/gnuradio-core/src/lib/general/gr_fft_vfc.cc
+++ b/gnuradio-core/src/lib/general/gr_fft_vfc.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010,2012 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,
@@ -107,7 +107,7 @@ gr_fft_vfc::work (int noutput_items,
else {
gr_complex *dst = d_fft->get_inbuf();
for (unsigned int i = 0; i < d_fft_size; i++) // float to complex conversion
- dst[i] = in[i];
+ dst[i] = in[i];
}
// compute the fft
@@ -123,13 +123,13 @@ gr_fft_vfc::work (int noutput_items,
return noutput_items;
}
-bool
+bool
gr_fft_vfc::set_window(const std::vector<float> &window)
{
if(window.size()==0 || window.size()==d_fft_size) {
d_window=window;
return true;
}
- else
+ else
return false;
}
diff --git a/gnuradio-core/src/lib/general/gr_fft_vfc.h b/gnuradio-core/src/lib/general/gr_fft_vfc.h
index 84ae08f08..35b95313d 100644
--- a/gnuradio-core/src/lib/general/gr_fft_vfc.h
+++ b/gnuradio-core/src/lib/general/gr_fft_vfc.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010,2012 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,
diff --git a/gnuradio-core/src/lib/general/gr_fft_vfc.i b/gnuradio-core/src/lib/general/gr_fft_vfc.i
index 4783ae1fe..d387ae155 100644
--- a/gnuradio-core/src/lib/general/gr_fft_vfc.i
+++ b/gnuradio-core/src/lib/general/gr_fft_vfc.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010,2012 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,
@@ -22,7 +22,7 @@
GR_SWIG_BLOCK_MAGIC(gr, fft_vfc)
-gr_fft_vfc_sptr
+gr_fft_vfc_sptr
gr_make_fft_vfc (int fft_size, bool forward,
const std::vector<float> &window,
int nthreads=1)
@@ -34,7 +34,7 @@ class gr_fft_vfc : public gr_sync_block
gr_fft_vfc (int fft_size, bool forward,
const std::vector<float> &window,
int nthreads=1);
-
+
public:
bool set_window(const std::vector<float> &window);
void set_nthreads(int n);
diff --git a/gnuradio-core/src/lib/general/gr_firdes.cc b/gnuradio-core/src/lib/general/gr_firdes.cc
index 13110d57d..4c7237141 100644
--- a/gnuradio-core/src/lib/general/gr_firdes.cc
+++ b/gnuradio-core/src/lib/general/gr_firdes.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2002,2007,2008 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,
@@ -84,10 +84,10 @@ gr_firdes::low_pass_2(double gain,
taps[n + M] = sin (n * fwT0) / (n * M_PI) * w[n + M];
}
}
-
+
// find the factor to normalize the gain, fmax.
// For low-pass, gain @ zero freq = 1.0
-
+
double fmax = taps[0 + M];
for (int n = 1; n <= M; n++)
fmax += 2 * taps[n + M];
@@ -131,10 +131,10 @@ gr_firdes::low_pass (double gain,
taps[n + M] = sin (n * fwT0) / (n * M_PI) * w[n + M];
}
}
-
+
// find the factor to normalize the gain, fmax.
// For low-pass, gain @ zero freq = 1.0
-
+
double fmax = taps[0 + M];
for (int n = 1; n <= M; n++)
fmax += 2 * taps[n + M];
@@ -280,10 +280,10 @@ gr_firdes::band_pass_2 (double gain,
taps[n + M] = (sin (n * fwT1) - sin (n * fwT0)) / (n * M_PI) * w[n + M];
}
}
-
+
// find the factor to normalize the gain, fmax.
// For band-pass, gain @ center freq = 1.0
-
+
double fmax = taps[0 + M];
for (int n = 1; n <= M; n++)
fmax += 2 * taps[n + M] * cos (n * (fwT0 + fwT1) * 0.5);
@@ -329,10 +329,10 @@ gr_firdes::band_pass (double gain,
taps[n + M] = (sin (n * fwT1) - sin (n * fwT0)) / (n * M_PI) * w[n + M];
}
}
-
+
// find the factor to normalize the gain, fmax.
// For band-pass, gain @ center freq = 1.0
-
+
double fmax = taps[0 + M];
for (int n = 1; n <= M; n++)
fmax += 2 * taps[n + M] * cos (n * (fwT0 + fwT1) * 0.5);
@@ -385,7 +385,7 @@ gr_firdes::complex_band_pass_2 (double gain,
*optr++ = gr_complex(*iptr * cos(phase),*iptr * sin(phase));
iptr++, phase += freq;
}
-
+
return taps;
}
@@ -425,7 +425,7 @@ gr_firdes::complex_band_pass (double gain,
*optr++ = gr_complex(*iptr * cos(phase),*iptr * sin(phase));
iptr++, phase += freq;
}
-
+
return taps;
}
@@ -466,10 +466,10 @@ gr_firdes::band_reject_2 (double gain,
taps[n + M] = (sin (n * fwT0) - sin (n * fwT1)) / (n * M_PI) * w[n + M];
}
}
-
+
// find the factor to normalize the gain, fmax.
// For band-reject, gain @ zero freq = 1.0
-
+
double fmax = taps[0 + M];
for (int n = 1; n <= M; n++)
fmax += 2 * taps[n + M];
@@ -514,10 +514,10 @@ gr_firdes::band_reject (double gain,
taps[n + M] = (sin (n * fwT0) - sin (n * fwT1)) / (n * M_PI) * w[n + M];
}
}
-
+
// find the factor to normalize the gain, fmax.
// For band-reject, gain @ zero freq = 1.0
-
+
double fmax = taps[0 + M];
for (int n = 1; n <= M; n++)
fmax += 2 * taps[n + M];
@@ -536,7 +536,7 @@ gr_firdes::band_reject (double gain,
vector<float>
gr_firdes::hilbert (unsigned int ntaps,
- win_type windowtype,
+ win_type windowtype,
double beta)
{
if(!(ntaps & 1))
@@ -745,7 +745,7 @@ gr_firdes::window (win_type type, int ntaps, double beta)
case WIN_BLACKMAN_hARRIS:
for (int n = -ntaps/2; n < ntaps/2; n++)
- taps[n+ntaps/2] = 0.35875 + 0.48829*cos((2*M_PI * n) / (float)M) +
+ taps[n+ntaps/2] = 0.35875 + 0.48829*cos((2*M_PI * n) / (float)M) +
0.14128*cos((4*M_PI * n) / (float)M) + 0.01168*cos((6*M_PI * n) / (float)M);
break;
@@ -790,7 +790,7 @@ gr_firdes::sanity_check_1f (double sampling_freq,
if (fa <= 0.0 || fa > sampling_freq / 2)
throw std::out_of_range ("gr_firdes check failed: 0 < fa <= sampling_freq / 2");
-
+
if (transition_width <= 0)
throw std::out_of_range ("gr_dirdes check failed: transition_width > 0");
}
@@ -806,13 +806,13 @@ gr_firdes::sanity_check_2f (double sampling_freq,
if (fa <= 0.0 || fa > sampling_freq / 2)
throw std::out_of_range ("gr_firdes check failed: 0 < fa <= sampling_freq / 2");
-
+
if (fb <= 0.0 || fb > sampling_freq / 2)
throw std::out_of_range ("gr_firdes check failed: 0 < fb <= sampling_freq / 2");
-
+
if (fa > fb)
throw std::out_of_range ("gr_firdes check failed: fa <= fb");
-
+
if (transition_width <= 0)
throw std::out_of_range ("gr_firdes check failed: transition_width > 0");
}
@@ -828,13 +828,13 @@ gr_firdes::sanity_check_2f_c (double sampling_freq,
if (fa < -sampling_freq / 2 || fa > sampling_freq / 2)
throw std::out_of_range ("gr_firdes check failed: 0 < fa <= sampling_freq / 2");
-
+
if (fb < -sampling_freq / 2 || fb > sampling_freq / 2)
throw std::out_of_range ("gr_firdes check failed: 0 < fb <= sampling_freq / 2");
-
+
if (fa > fb)
throw std::out_of_range ("gr_firdes check failed: fa <= fb");
-
+
if (transition_width <= 0)
throw std::out_of_range ("gr_firdes check failed: transition_width > 0");
}
diff --git a/gnuradio-core/src/lib/general/gr_firdes.h b/gnuradio-core/src/lib/general/gr_firdes.h
index 807caf3c7..8d98ebe0a 100644
--- a/gnuradio-core/src/lib/general/gr_firdes.h
+++ b/gnuradio-core/src/lib/general/gr_firdes.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2002,2008 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,
@@ -319,7 +319,7 @@ class GR_CORE_API gr_firdes {
hilbert (unsigned int ntaps = 19,
win_type windowtype = WIN_RECTANGULAR,
double beta = 6.76);
-
+
/*!
* \brief design a Root Cosine FIR Filter (do we need a window?)
*
@@ -345,7 +345,7 @@ class GR_CORE_API gr_firdes {
*/
static std::vector<float>
gaussian (double gain,
- double spb,
+ double spb,
double bt, // Bandwidth to bitrate ratio
int ntaps);
diff --git a/gnuradio-core/src/lib/general/gr_firdes.i b/gnuradio-core/src/lib/general/gr_firdes.i
index 8d35f5761..0493db617 100644
--- a/gnuradio-core/src/lib/general/gr_firdes.i
+++ b/gnuradio-core/src/lib/general/gr_firdes.i
@@ -1,19 +1,19 @@
/* -*- C++ -*- */
/*
* Copyright 2002,2008 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,
@@ -112,7 +112,7 @@ class gr_firdes {
double transition_width, // Hz width of transition band
win_type window = WIN_HAMMING,
double beta = 6.76 // used only with Kaiser
- ) throw(std::out_of_range);
+ ) throw(std::out_of_range);
/*!
* \brief use "window method" to design a high-pass FIR filter
@@ -166,7 +166,7 @@ class gr_firdes {
double transition_width, // Hz width of transition band
win_type window = WIN_HAMMING,
double beta = 6.76 // used only with Kaiser
- ) throw(std::out_of_range);
+ ) throw(std::out_of_range);
/*!
@@ -222,7 +222,7 @@ class gr_firdes {
double transition_width, // Hz width of transition band
win_type window = WIN_HAMMING, // used only with Kaiser
double beta = 6.76
- ) throw(std::out_of_range);
+ ) throw(std::out_of_range);
/*!
@@ -321,7 +321,7 @@ class gr_firdes {
win_type windowtype = WIN_RECTANGULAR,
double beta = 6.76
) throw(std::out_of_range);
-
+
/*!
* \brief design a Root Cosine FIR Filter (do we need a window?)
*
@@ -348,13 +348,13 @@ class gr_firdes {
*/
static std::vector<float>
gaussian (double gain,
- double spb,
+ double spb,
double bt, // Bandwidth to bitrate ratio
int ntaps) throw(std::out_of_range);
/*!
* Return window given type, ntaps and optional beta.
*/
- static std::vector<float> gr_firdes::window (win_type type, int ntaps, double beta)
+ static std::vector<float> gr_firdes::window (win_type type, int ntaps, double beta)
throw(std::runtime_error);
};
diff --git a/gnuradio-core/src/lib/general/gr_float_to_char.cc b/gnuradio-core/src/lib/general/gr_float_to_char.cc
index 14635ff71..3602ad745 100644
--- a/gnuradio-core/src/lib/general/gr_float_to_char.cc
+++ b/gnuradio-core/src/lib/general/gr_float_to_char.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010,2012 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 @@ gr_float_to_char::gr_float_to_char (size_t vlen, float scale)
set_alignment(alignment_multiple);
}
-float
+float
gr_float_to_char::scale() const
{
return d_scale;
@@ -71,7 +71,7 @@ gr_float_to_char::work (int noutput_items,
else {
volk_32f_s32f_convert_8i_a(out, in, d_scale, d_vlen*noutput_items);
}
-
+
return noutput_items;
}
diff --git a/gnuradio-core/src/lib/general/gr_float_to_char.h b/gnuradio-core/src/lib/general/gr_float_to_char.h
index 00e83d465..2df50f18d 100644
--- a/gnuradio-core/src/lib/general/gr_float_to_char.h
+++ b/gnuradio-core/src/lib/general/gr_float_to_char.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2012 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,
@@ -43,7 +43,7 @@ gr_make_float_to_char (size_t vlen=1, float scale=1);
class GR_CORE_API gr_float_to_char : public gr_sync_block
{
private:
- friend GR_CORE_API gr_float_to_char_sptr gr_make_float_to_char
+ friend GR_CORE_API gr_float_to_char_sptr gr_make_float_to_char
(size_t vlen, float scale);
gr_float_to_char (size_t vlen, float scale);
diff --git a/gnuradio-core/src/lib/general/gr_float_to_char.i b/gnuradio-core/src/lib/general/gr_float_to_char.i
index a1c88750f..b40389ede 100644
--- a/gnuradio-core/src/lib/general/gr_float_to_char.i
+++ b/gnuradio-core/src/lib/general/gr_float_to_char.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2012 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,
diff --git a/gnuradio-core/src/lib/general/gr_float_to_complex.cc b/gnuradio-core/src/lib/general/gr_float_to_complex.cc
index a392abd06..c68eac8c7 100644
--- a/gnuradio-core/src/lib/general/gr_float_to_complex.cc
+++ b/gnuradio-core/src/lib/general/gr_float_to_complex.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004, 2009,2010 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,
diff --git a/gnuradio-core/src/lib/general/gr_float_to_complex.h b/gnuradio-core/src/lib/general/gr_float_to_complex.h
index 596b595f3..628b4a954 100644
--- a/gnuradio-core/src/lib/general/gr_float_to_complex.h
+++ b/gnuradio-core/src/lib/general/gr_float_to_complex.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004, 2009 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,
diff --git a/gnuradio-core/src/lib/general/gr_float_to_complex.i b/gnuradio-core/src/lib/general/gr_float_to_complex.i
index 5ed48533e..ed5ad128b 100644
--- a/gnuradio-core/src/lib/general/gr_float_to_complex.i
+++ b/gnuradio-core/src/lib/general/gr_float_to_complex.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004, 2009 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,
diff --git a/gnuradio-core/src/lib/general/gr_float_to_int.cc b/gnuradio-core/src/lib/general/gr_float_to_int.cc
index b69591043..bd3cd6a3b 100644
--- a/gnuradio-core/src/lib/general/gr_float_to_int.cc
+++ b/gnuradio-core/src/lib/general/gr_float_to_int.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011,2012 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,
@@ -46,7 +46,7 @@ gr_float_to_int::gr_float_to_int (size_t vlen, float scale)
set_alignment(alignment_multiple);
}
-float
+float
gr_float_to_int::scale() const
{
return d_scale;
@@ -84,6 +84,6 @@ gr_float_to_int::work (int noutput_items,
gri_float_to_int (in, out, d_scale, d_vlen*noutput_items);
#endif
-
+
return noutput_items;
}
diff --git a/gnuradio-core/src/lib/general/gr_float_to_int.h b/gnuradio-core/src/lib/general/gr_float_to_int.h
index ef1987a76..c10ea739d 100644
--- a/gnuradio-core/src/lib/general/gr_float_to_int.h
+++ b/gnuradio-core/src/lib/general/gr_float_to_int.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011,2012 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,
diff --git a/gnuradio-core/src/lib/general/gr_float_to_int.i b/gnuradio-core/src/lib/general/gr_float_to_int.i
index 6e71f54a9..e2a2c53ce 100644
--- a/gnuradio-core/src/lib/general/gr_float_to_int.i
+++ b/gnuradio-core/src/lib/general/gr_float_to_int.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011,2012 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,
@@ -22,7 +22,7 @@
GR_SWIG_BLOCK_MAGIC(gr,float_to_int)
-gr_float_to_int_sptr
+gr_float_to_int_sptr
gr_make_float_to_int (size_t vlen=1, float scale=1);
class gr_float_to_int : public gr_sync_block
diff --git a/gnuradio-core/src/lib/general/gr_float_to_short.cc b/gnuradio-core/src/lib/general/gr_float_to_short.cc
index 188bfdae3..07995c99a 100644
--- a/gnuradio-core/src/lib/general/gr_float_to_short.cc
+++ b/gnuradio-core/src/lib/general/gr_float_to_short.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010,2012 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 @@ gr_float_to_short::gr_float_to_short (size_t vlen, float scale)
set_alignment(alignment_multiple);
}
-float
+float
gr_float_to_short::scale() const
{
return d_scale;
diff --git a/gnuradio-core/src/lib/general/gr_float_to_short.h b/gnuradio-core/src/lib/general/gr_float_to_short.h
index beb95486f..9e43804f5 100644
--- a/gnuradio-core/src/lib/general/gr_float_to_short.h
+++ b/gnuradio-core/src/lib/general/gr_float_to_short.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2012 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,
diff --git a/gnuradio-core/src/lib/general/gr_float_to_short.i b/gnuradio-core/src/lib/general/gr_float_to_short.i
index 072da5213..ea59a388e 100644
--- a/gnuradio-core/src/lib/general/gr_float_to_short.i
+++ b/gnuradio-core/src/lib/general/gr_float_to_short.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2012 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,
diff --git a/gnuradio-core/src/lib/general/gr_float_to_uchar.cc b/gnuradio-core/src/lib/general/gr_float_to_uchar.cc
index 78369f8be..5aec73b71 100644
--- a/gnuradio-core/src/lib/general/gr_float_to_uchar.cc
+++ b/gnuradio-core/src/lib/general/gr_float_to_uchar.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2010 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,
@@ -50,7 +50,7 @@ gr_float_to_uchar::work (int noutput_items,
unsigned char *out = (unsigned char *) output_items[0];
gri_float_to_uchar (in, out, noutput_items);
-
+
return noutput_items;
}
diff --git a/gnuradio-core/src/lib/general/gr_float_to_uchar.h b/gnuradio-core/src/lib/general/gr_float_to_uchar.h
index fca8eb07b..7fd947048 100644
--- a/gnuradio-core/src/lib/general/gr_float_to_uchar.h
+++ b/gnuradio-core/src/lib/general/gr_float_to_uchar.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gnuradio-core/src/lib/general/gr_float_to_uchar.i b/gnuradio-core/src/lib/general/gr_float_to_uchar.i
index fd3e72bbb..b35979213 100644
--- a/gnuradio-core/src/lib/general/gr_float_to_uchar.i
+++ b/gnuradio-core/src/lib/general/gr_float_to_uchar.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gnuradio-core/src/lib/general/gr_fmdet_cf.cc b/gnuradio-core/src/lib/general/gr_fmdet_cf.cc
index 3d828124e..f02036292 100644
--- a/gnuradio-core/src/lib/general/gr_fmdet_cf.cc
+++ b/gnuradio-core/src/lib/general/gr_fmdet_cf.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2010 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,
@@ -55,7 +55,7 @@ gr_fmdet_cf::gr_fmdet_cf (float samplerate, float freq_low, float freq_high, flo
float delta;
std::vector<float> taps(15);
-
+
d_freqhi = freq_high;
d_freqlo = freq_low;
delta = (d_freqhi - d_freqlo);
@@ -63,7 +63,7 @@ gr_fmdet_cf::gr_fmdet_cf (float samplerate, float freq_low, float freq_high, flo
d_bias = 0.5*scl*(d_freqhi+d_freqlo)/delta;
for (int i=0;i<15;i++) taps[i] = h[i];
// d_filter = gr_fir_util::create_gr_fir_ccf(taps);
-
+
}
int
@@ -94,7 +94,7 @@ gr_fmdet_cf::work (int noutput_items,
S2=S1;
S1=S0;
-
+
*optr++ = d_freq-d_bias;
}
d_S1=S1;
diff --git a/gnuradio-core/src/lib/general/gr_fmdet_cf.h b/gnuradio-core/src/lib/general/gr_fmdet_cf.h
index 7bf3baa3f..f85630f2f 100644
--- a/gnuradio-core/src/lib/general/gr_fmdet_cf.h
+++ b/gnuradio-core/src/lib/general/gr_fmdet_cf.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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,
@@ -36,12 +36,12 @@ class gr_fir_ccf;
/*!
* \brief Implements an IQ slope detector
- *
+ *
*
* input: stream of complex; output: stream of floats
*
* This implements a limiting slope detector. The limiter is in the
- * normalization by the magnitude of the sample
+ * normalization by the magnitude of the sample
*/
class GR_CORE_API gr_fmdet_cf : public gr_sync_block
diff --git a/gnuradio-core/src/lib/general/gr_fmdet_cf.i b/gnuradio-core/src/lib/general/gr_fmdet_cf.i
index e1da717ce..2db596b7a 100644
--- a/gnuradio-core/src/lib/general/gr_fmdet_cf.i
+++ b/gnuradio-core/src/lib/general/gr_fmdet_cf.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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,
diff --git a/gnuradio-core/src/lib/general/gr_framer_sink_1.cc b/gnuradio-core/src/lib/general/gr_framer_sink_1.cc
index c90b26c35..64a0af6a0 100644
--- a/gnuradio-core/src/lib/general/gr_framer_sink_1.cc
+++ b/gnuradio-core/src/lib/general/gr_framer_sink_1.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2006,2010 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,
@@ -40,7 +40,7 @@ gr_framer_sink_1::enter_search()
d_state = STATE_SYNC_SEARCH;
}
-
+
inline void
gr_framer_sink_1::enter_have_sync()
{
@@ -93,13 +93,13 @@ gr_framer_sink_1::work (int noutput_items,
{
const unsigned char *in = (const unsigned char *) input_items[0];
int count=0;
-
+
if (VERBOSE)
fprintf(stderr,">>> Entering state machine\n");
while (count < noutput_items){
switch(d_state) {
-
+
case STATE_SYNC_SEARCH: // Look for flag indicating beginning of pkt
if (VERBOSE)
fprintf(stderr,"SYNC Search, noutput=%d\n", noutput_items);
@@ -137,11 +137,11 @@ gr_framer_sink_1::work (int noutput_items,
// NOTE: passing header field as arg1 is not scalable
gr_message_sptr msg =
gr_make_message(0, d_packet_whitener_offset, 0, 0);
-
+
d_target_queue->insert_tail(msg); // send it
msg.reset(); // free it up
- enter_search();
+ enter_search();
}
}
else
@@ -150,7 +150,7 @@ gr_framer_sink_1::work (int noutput_items,
}
}
break;
-
+
case STATE_HAVE_HEADER:
if (VERBOSE)
fprintf(stderr,"Packet Build\n");
diff --git a/gnuradio-core/src/lib/general/gr_framer_sink_1.h b/gnuradio-core/src/lib/general/gr_framer_sink_1.h
index 95ad6ced7..93e41745f 100644
--- a/gnuradio-core/src/lib/general/gr_framer_sink_1.h
+++ b/gnuradio-core/src/lib/general/gr_framer_sink_1.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2006 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,
@@ -30,7 +30,7 @@
class gr_framer_sink_1;
typedef boost::shared_ptr<gr_framer_sink_1> gr_framer_sink_1_sptr;
-GR_CORE_API gr_framer_sink_1_sptr
+GR_CORE_API gr_framer_sink_1_sptr
gr_make_framer_sink_1 (gr_msg_queue_sptr target_queue);
/*!
@@ -41,7 +41,7 @@ gr_make_framer_sink_1 (gr_msg_queue_sptr target_queue);
* output: none. Pushes assembled packet into target queue
*
* The framer expects a fixed length header of 2 16-bit shorts
- * containing the payload length, followed by the payload. If the
+ * containing the payload length, followed by the payload. If the
* 2 16-bit shorts are not identical, this packet is ignored. Better
* algs are welcome.
*
@@ -53,7 +53,7 @@ gr_make_framer_sink_1 (gr_msg_queue_sptr target_queue);
*/
class GR_CORE_API gr_framer_sink_1 : public gr_sync_block
{
- friend GR_CORE_API gr_framer_sink_1_sptr
+ friend GR_CORE_API gr_framer_sink_1_sptr
gr_make_framer_sink_1 (gr_msg_queue_sptr target_queue);
private:
@@ -80,7 +80,7 @@ class GR_CORE_API gr_framer_sink_1 : public gr_sync_block
void enter_search();
void enter_have_sync();
void enter_have_header(int payload_len, int whitener_offset);
-
+
bool header_ok()
{
// confirm that two copies of header info are identical
diff --git a/gnuradio-core/src/lib/general/gr_framer_sink_1.i b/gnuradio-core/src/lib/general/gr_framer_sink_1.i
index 1363f3f5b..06281b138 100644
--- a/gnuradio-core/src/lib/general/gr_framer_sink_1.i
+++ b/gnuradio-core/src/lib/general/gr_framer_sink_1.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2006 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,
@@ -22,7 +22,7 @@
GR_SWIG_BLOCK_MAGIC(gr,framer_sink_1);
-gr_framer_sink_1_sptr
+gr_framer_sink_1_sptr
gr_make_framer_sink_1(gr_msg_queue_sptr target_queue);
class gr_framer_sink_1 : public gr_sync_block
diff --git a/gnuradio-core/src/lib/general/gr_frequency_modulator_fc.cc b/gnuradio-core/src/lib/general/gr_frequency_modulator_fc.cc
index 34f2f88bc..5c4daec58 100644
--- a/gnuradio-core/src/lib/general/gr_frequency_modulator_fc.cc
+++ b/gnuradio-core/src/lib/general/gr_frequency_modulator_fc.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010,2011 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,
diff --git a/gnuradio-core/src/lib/general/gr_frequency_modulator_fc.h b/gnuradio-core/src/lib/general/gr_frequency_modulator_fc.h
index e3aaafb1a..c680e9648 100644
--- a/gnuradio-core/src/lib/general/gr_frequency_modulator_fc.h
+++ b/gnuradio-core/src/lib/general/gr_frequency_modulator_fc.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -50,7 +50,7 @@ class GR_CORE_API gr_frequency_modulator_fc : public gr_sync_block
public:
void set_sensitivity(float sens) { d_sensitivity = sens; }
float sensitivity() const { return d_sensitivity; }
-
+
int work (int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items);
diff --git a/gnuradio-core/src/lib/general/gr_frequency_modulator_fc.i b/gnuradio-core/src/lib/general/gr_frequency_modulator_fc.i
index 7dfb82f1f..9a740583b 100644
--- a/gnuradio-core/src/lib/general/gr_frequency_modulator_fc.i
+++ b/gnuradio-core/src/lib/general/gr_frequency_modulator_fc.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/general/gr_fxpt.cc b/gnuradio-core/src/lib/general/gr_fxpt.cc
index 67f44a471..2ea8520e6 100644
--- a/gnuradio-core/src/lib/general/gr_fxpt.cc
+++ b/gnuradio-core/src/lib/general/gr_fxpt.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/general/gr_fxpt.h b/gnuradio-core/src/lib/general/gr_fxpt.h
index 431102569..9de6c0c18 100644
--- a/gnuradio-core/src/lib/general/gr_fxpt.h
+++ b/gnuradio-core/src/lib/general/gr_fxpt.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/general/gr_fxpt_nco.h b/gnuradio-core/src/lib/general/gr_fxpt_nco.h
index 5597efb4f..9473e6ddb 100644
--- a/gnuradio-core/src/lib/general/gr_fxpt_nco.h
+++ b/gnuradio-core/src/lib/general/gr_fxpt_nco.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2002,2004 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,
@@ -61,8 +61,8 @@ public:
// increment current phase angle
- void step ()
- {
+ void step ()
+ {
d_phase += d_phase_inc;
}
diff --git a/gnuradio-core/src/lib/general/gr_fxpt_vco.h b/gnuradio-core/src/lib/general/gr_fxpt_vco.h
index a77a31311..09c649de7 100644
--- a/gnuradio-core/src/lib/general/gr_fxpt_vco.h
+++ b/gnuradio-core/src/lib/general/gr_fxpt_vco.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2002,2004,2005 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,
diff --git a/gnuradio-core/src/lib/general/gr_glfsr_source_b.cc b/gnuradio-core/src/lib/general/gr_glfsr_source_b.cc
index 134f7a21a..fcfeb80dc 100644
--- a/gnuradio-core/src/lib/general/gr_glfsr_source_b.cc
+++ b/gnuradio-core/src/lib/general/gr_glfsr_source_b.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007,2010 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,
@@ -30,7 +30,7 @@
#include <gr_io_signature.h>
#include <stdexcept>
-gr_glfsr_source_b_sptr
+gr_glfsr_source_b_sptr
gr_make_glfsr_source_b(int degree, bool repeat, int mask, int seed)
{
return gnuradio::get_initial_sptr(new gr_glfsr_source_b(degree, repeat, mask, seed));
diff --git a/gnuradio-core/src/lib/general/gr_glfsr_source_b.h b/gnuradio-core/src/lib/general/gr_glfsr_source_b.h
index bd66912ed..7549a76b3 100644
--- a/gnuradio-core/src/lib/general/gr_glfsr_source_b.h
+++ b/gnuradio-core/src/lib/general/gr_glfsr_source_b.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007 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,
@@ -42,13 +42,13 @@ class GR_CORE_API gr_glfsr_source_b : public gr_sync_block
private:
friend GR_CORE_API gr_glfsr_source_b_sptr
gr_make_glfsr_source_b(int degree, bool repeat, int mask, int seed);
-
+
gri_glfsr *d_glfsr;
bool d_repeat;
unsigned int d_index;
unsigned int d_length;
-
+
gr_glfsr_source_b(int degree, bool repeat, int mask, int seed);
public:
diff --git a/gnuradio-core/src/lib/general/gr_glfsr_source_b.i b/gnuradio-core/src/lib/general/gr_glfsr_source_b.i
index fe0a987f4..ffdd52ddb 100644
--- a/gnuradio-core/src/lib/general/gr_glfsr_source_b.i
+++ b/gnuradio-core/src/lib/general/gr_glfsr_source_b.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007 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,
@@ -22,11 +22,11 @@
GR_SWIG_BLOCK_MAGIC(gr,glfsr_source_b);
-gr_glfsr_source_b_sptr
+gr_glfsr_source_b_sptr
gr_make_glfsr_source_b(int degree, bool repeat=true, int mask=0, int seed=1)
throw (std::runtime_error);
-class gr_glfsr_source_b : public gr_sync_block
+class gr_glfsr_source_b : public gr_sync_block
{
protected:
gr_glfsr_source_b(int degree, bool repeat, int mask, int seed);
diff --git a/gnuradio-core/src/lib/general/gr_glfsr_source_f.cc b/gnuradio-core/src/lib/general/gr_glfsr_source_f.cc
index 7ffcfbd2a..a9efc8a70 100644
--- a/gnuradio-core/src/lib/general/gr_glfsr_source_f.cc
+++ b/gnuradio-core/src/lib/general/gr_glfsr_source_f.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007,2010 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,
@@ -30,7 +30,7 @@
#include <gr_io_signature.h>
#include <stdexcept>
-gr_glfsr_source_f_sptr
+gr_glfsr_source_f_sptr
gr_make_glfsr_source_f(int degree, bool repeat, int mask, int seed)
{
return gnuradio::get_initial_sptr(new gr_glfsr_source_f(degree, repeat, mask, seed));
diff --git a/gnuradio-core/src/lib/general/gr_glfsr_source_f.h b/gnuradio-core/src/lib/general/gr_glfsr_source_f.h
index 2dd09c5ac..3549e3e5d 100644
--- a/gnuradio-core/src/lib/general/gr_glfsr_source_f.h
+++ b/gnuradio-core/src/lib/general/gr_glfsr_source_f.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007 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,
@@ -42,13 +42,13 @@ class GR_CORE_API gr_glfsr_source_f : public gr_sync_block
private:
friend GR_CORE_API gr_glfsr_source_f_sptr
gr_make_glfsr_source_f(int degree, bool repeat, int mask, int seed);
-
+
gri_glfsr *d_glfsr;
bool d_repeat;
unsigned int d_index;
unsigned int d_length;
-
+
gr_glfsr_source_f(int degree, bool repeat, int mask, int seed);
public:
diff --git a/gnuradio-core/src/lib/general/gr_glfsr_source_f.i b/gnuradio-core/src/lib/general/gr_glfsr_source_f.i
index d165ab896..2f84387c2 100644
--- a/gnuradio-core/src/lib/general/gr_glfsr_source_f.i
+++ b/gnuradio-core/src/lib/general/gr_glfsr_source_f.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007 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,
@@ -22,11 +22,11 @@
GR_SWIG_BLOCK_MAGIC(gr,glfsr_source_f);
-gr_glfsr_source_f_sptr
+gr_glfsr_source_f_sptr
gr_make_glfsr_source_f(int degree, bool repeat=true, int mask=0, int seed=1)
throw (std::runtime_error);
-class gr_glfsr_source_f : public gr_sync_block
+class gr_glfsr_source_f : public gr_sync_block
{
protected:
gr_glfsr_source_f(int degree, bool repeat, int mask, int seed);
diff --git a/gnuradio-core/src/lib/general/gr_head.cc b/gnuradio-core/src/lib/general/gr_head.cc
index b52735c06..cb07c84dd 100644
--- a/gnuradio-core/src/lib/general/gr_head.cc
+++ b/gnuradio-core/src/lib/general/gr_head.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2009 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,
@@ -50,7 +50,7 @@ gr_head::work (int noutput_items,
return -1; // Done!
unsigned n = std::min (d_nitems - d_ncopied_items, (unsigned long long) noutput_items);
-
+
if (n == 0)
return 0;
diff --git a/gnuradio-core/src/lib/general/gr_head.h b/gnuradio-core/src/lib/general/gr_head.h
index f66d43308..17dd737f0 100644
--- a/gnuradio-core/src/lib/general/gr_head.h
+++ b/gnuradio-core/src/lib/general/gr_head.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2009 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,
diff --git a/gnuradio-core/src/lib/general/gr_head.i b/gnuradio-core/src/lib/general/gr_head.i
index 3aece9601..73feaf181 100644
--- a/gnuradio-core/src/lib/general/gr_head.i
+++ b/gnuradio-core/src/lib/general/gr_head.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2009 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,
diff --git a/gnuradio-core/src/lib/general/gr_int_to_float.cc b/gnuradio-core/src/lib/general/gr_int_to_float.cc
index 7ec15b1a8..a28485305 100644
--- a/gnuradio-core/src/lib/general/gr_int_to_float.cc
+++ b/gnuradio-core/src/lib/general/gr_int_to_float.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011,2012 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,
@@ -52,7 +52,7 @@ gr_int_to_float::work (int noutput_items,
{
const int32_t *in = (const int32_t *) input_items[0];
float *out = (float *) output_items[0];
-
+
if(is_unaligned()) {
volk_32i_s32f_convert_32f_u(out, in, d_scale, d_vlen*noutput_items);
}
diff --git a/gnuradio-core/src/lib/general/gr_int_to_float.h b/gnuradio-core/src/lib/general/gr_int_to_float.h
index 7c55e3b3c..6200c5be7 100644
--- a/gnuradio-core/src/lib/general/gr_int_to_float.h
+++ b/gnuradio-core/src/lib/general/gr_int_to_float.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011,2012 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,
@@ -48,7 +48,7 @@ class GR_CORE_API gr_int_to_float : public gr_sync_block
gr_int_to_float (size_t vlen, float scale);
size_t d_vlen;
- float d_scale;
+ float d_scale;
public:
/*!
diff --git a/gnuradio-core/src/lib/general/gr_int_to_float.i b/gnuradio-core/src/lib/general/gr_int_to_float.i
index c1f25e37b..f3781ac8a 100644
--- a/gnuradio-core/src/lib/general/gr_int_to_float.i
+++ b/gnuradio-core/src/lib/general/gr_int_to_float.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011,2012 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,
diff --git a/gnuradio-core/src/lib/general/gr_interleave.cc b/gnuradio-core/src/lib/general/gr_interleave.cc
index d210cd5ed..5d572871e 100644
--- a/gnuradio-core/src/lib/general/gr_interleave.cc
+++ b/gnuradio-core/src/lib/general/gr_interleave.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
diff --git a/gnuradio-core/src/lib/general/gr_interleave.h b/gnuradio-core/src/lib/general/gr_interleave.h
index ef7bce07a..3b0202d00 100644
--- a/gnuradio-core/src/lib/general/gr_interleave.h
+++ b/gnuradio-core/src/lib/general/gr_interleave.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/general/gr_interleave.i b/gnuradio-core/src/lib/general/gr_interleave.i
index 84c0c7de1..09a57c886 100644
--- a/gnuradio-core/src/lib/general/gr_interleave.i
+++ b/gnuradio-core/src/lib/general/gr_interleave.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/general/gr_interleaved_short_to_complex.cc b/gnuradio-core/src/lib/general/gr_interleaved_short_to_complex.cc
index 09aa91f47..e7d375a35 100644
--- a/gnuradio-core/src/lib/general/gr_interleaved_short_to_complex.cc
+++ b/gnuradio-core/src/lib/general/gr_interleaved_short_to_complex.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
@@ -51,7 +51,7 @@ gr_interleaved_short_to_complex::work (int noutput_items,
gr_complex *out = (gr_complex *) output_items[0];
gri_interleaved_short_to_complex (in, out, 2 * noutput_items);
-
+
return noutput_items;
}
diff --git a/gnuradio-core/src/lib/general/gr_interleaved_short_to_complex.h b/gnuradio-core/src/lib/general/gr_interleaved_short_to_complex.h
index 40f1636bd..159d107b3 100644
--- a/gnuradio-core/src/lib/general/gr_interleaved_short_to_complex.h
+++ b/gnuradio-core/src/lib/general/gr_interleaved_short_to_complex.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/general/gr_interleaved_short_to_complex.i b/gnuradio-core/src/lib/general/gr_interleaved_short_to_complex.i
index 3c78d64e0..797710550 100644
--- a/gnuradio-core/src/lib/general/gr_interleaved_short_to_complex.i
+++ b/gnuradio-core/src/lib/general/gr_interleaved_short_to_complex.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/general/gr_iqcomp_cc.cc b/gnuradio-core/src/lib/general/gr_iqcomp_cc.cc
index 16a68337f..599b25b72 100644
--- a/gnuradio-core/src/lib/general/gr_iqcomp_cc.cc
+++ b/gnuradio-core/src/lib/general/gr_iqcomp_cc.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2010 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,
diff --git a/gnuradio-core/src/lib/general/gr_iqcomp_cc.h b/gnuradio-core/src/lib/general/gr_iqcomp_cc.h
index c01e2a6ba..2f5a44ebf 100644
--- a/gnuradio-core/src/lib/general/gr_iqcomp_cc.h
+++ b/gnuradio-core/src/lib/general/gr_iqcomp_cc.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -33,7 +33,7 @@ typedef boost::shared_ptr<gr_iqcomp_cc> gr_iqcomp_cc_sptr;
GR_CORE_API gr_iqcomp_cc_sptr gr_make_iqcomp_cc (float mu);
/*!
- * \brief
+ * \brief
* \ingroup misc_blk
*/
class GR_CORE_API gr_iqcomp_cc : public gr_sync_block
diff --git a/gnuradio-core/src/lib/general/gr_iqcomp_cc.i b/gnuradio-core/src/lib/general/gr_iqcomp_cc.i
index 91710ad28..5cca59dd5 100644
--- a/gnuradio-core/src/lib/general/gr_iqcomp_cc.i
+++ b/gnuradio-core/src/lib/general/gr_iqcomp_cc.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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,
diff --git a/gnuradio-core/src/lib/general/gr_keep_one_in_n.cc b/gnuradio-core/src/lib/general/gr_keep_one_in_n.cc
index 3f98a003b..fbba9e91c 100644
--- a/gnuradio-core/src/lib/general/gr_keep_one_in_n.cc
+++ b/gnuradio-core/src/lib/general/gr_keep_one_in_n.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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 @@ gr_keep_one_in_n::gr_keep_one_in_n (size_t item_size, int n)
// this to turn off automatic tag propagation, which will be handled
// locally in general_work().
set_tag_propagation_policy(TPP_DONT);
-
+
set_n(n);
}
@@ -72,7 +72,7 @@ gr_keep_one_in_n::general_work (int noutput_items,
{
const char *in = (const char *) input_items[0];
char *out = (char *) output_items[0];
-
+
size_t item_size = input_signature ()->sizeof_stream_item (0);
int ni = 0;
int no = 0;
diff --git a/gnuradio-core/src/lib/general/gr_keep_one_in_n.h b/gnuradio-core/src/lib/general/gr_keep_one_in_n.h
index c32ed2a26..f37475204 100644
--- a/gnuradio-core/src/lib/general/gr_keep_one_in_n.h
+++ b/gnuradio-core/src/lib/general/gr_keep_one_in_n.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -29,7 +29,7 @@
class gr_keep_one_in_n;
typedef boost::shared_ptr<gr_keep_one_in_n> gr_keep_one_in_n_sptr;
-GR_CORE_API gr_keep_one_in_n_sptr
+GR_CORE_API gr_keep_one_in_n_sptr
gr_make_keep_one_in_n (size_t item_size, int n);
diff --git a/gnuradio-core/src/lib/general/gr_keep_one_in_n.i b/gnuradio-core/src/lib/general/gr_keep_one_in_n.i
index a12a81547..534098cde 100644
--- a/gnuradio-core/src/lib/general/gr_keep_one_in_n.i
+++ b/gnuradio-core/src/lib/general/gr_keep_one_in_n.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -22,7 +22,7 @@
GR_SWIG_BLOCK_MAGIC(gr,keep_one_in_n)
-gr_keep_one_in_n_sptr
+gr_keep_one_in_n_sptr
gr_make_keep_one_in_n (size_t itemsize, int n);
class gr_keep_one_in_n : public gr_block
diff --git a/gnuradio-core/src/lib/general/gr_kludge_copy.cc b/gnuradio-core/src/lib/general/gr_kludge_copy.cc
index 142c444ca..f6a8d8af6 100644
--- a/gnuradio-core/src/lib/general/gr_kludge_copy.cc
+++ b/gnuradio-core/src/lib/general/gr_kludge_copy.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gnuradio-core/src/lib/general/gr_kludge_copy.h b/gnuradio-core/src/lib/general/gr_kludge_copy.h
index 5c1e461a8..0bcf14469 100644
--- a/gnuradio-core/src/lib/general/gr_kludge_copy.h
+++ b/gnuradio-core/src/lib/general/gr_kludge_copy.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gnuradio-core/src/lib/general/gr_kludge_copy.i b/gnuradio-core/src/lib/general/gr_kludge_copy.i
index a798ea69e..7ff2b5736 100644
--- a/gnuradio-core/src/lib/general/gr_kludge_copy.i
+++ b/gnuradio-core/src/lib/general/gr_kludge_copy.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gnuradio-core/src/lib/general/gr_lfsr_32k_source_s.cc b/gnuradio-core/src/lib/general/gr_lfsr_32k_source_s.cc
index e227f8b3e..c9a874248 100644
--- a/gnuradio-core/src/lib/general/gr_lfsr_32k_source_s.cc
+++ b/gnuradio-core/src/lib/general/gr_lfsr_32k_source_s.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
@@ -29,7 +29,7 @@
#include <stdexcept>
-gr_lfsr_32k_source_s_sptr
+gr_lfsr_32k_source_s_sptr
gr_make_lfsr_32k_source_s ()
{
return gnuradio::get_initial_sptr(new gr_lfsr_32k_source_s ());
@@ -43,7 +43,7 @@ gr_lfsr_32k_source_s::gr_lfsr_32k_source_s ()
d_index (0)
{
gri_lfsr_32k lfsr;
-
+
for (int i = 0; i < BUFSIZE; i++)
d_buffer[i] = lfsr.next_short ();
}
@@ -56,7 +56,7 @@ gr_lfsr_32k_source_s::work (int noutput_items,
short *out = (short *) output_items[0];
short *buf = d_buffer;
int index = d_index;
-
+
for (int i = 0; i < noutput_items; i++){
out[i] = buf[index];
// index = (index + 1) & (BUFSIZE - 1);
diff --git a/gnuradio-core/src/lib/general/gr_lfsr_32k_source_s.h b/gnuradio-core/src/lib/general/gr_lfsr_32k_source_s.h
index aa7ad7b1f..db107652a 100644
--- a/gnuradio-core/src/lib/general/gr_lfsr_32k_source_s.h
+++ b/gnuradio-core/src/lib/general/gr_lfsr_32k_source_s.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -43,7 +43,7 @@ class GR_CORE_API gr_lfsr_32k_source_s : public gr_sync_block
{
friend GR_CORE_API gr_lfsr_32k_source_s_sptr gr_make_lfsr_32k_source_s ();
-
+
static const int BUFSIZE = 2048 - 1; // ensure pattern isn't packet aligned
int d_index;
short d_buffer[BUFSIZE];
diff --git a/gnuradio-core/src/lib/general/gr_lfsr_32k_source_s.i b/gnuradio-core/src/lib/general/gr_lfsr_32k_source_s.i
index 621a9b79c..c2dc1c61b 100644
--- a/gnuradio-core/src/lib/general/gr_lfsr_32k_source_s.i
+++ b/gnuradio-core/src/lib/general/gr_lfsr_32k_source_s.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -24,7 +24,7 @@ GR_SWIG_BLOCK_MAGIC(gr,lfsr_32k_source_s);
gr_lfsr_32k_source_s_sptr gr_make_lfsr_32k_source_s ();
-class gr_lfsr_32k_source_s : public gr_sync_block
+class gr_lfsr_32k_source_s : public gr_sync_block
{
private:
gr_lfsr_32k_source_s ();
diff --git a/gnuradio-core/src/lib/general/gr_log2_const.h b/gnuradio-core/src/lib/general/gr_log2_const.h
index 8e4a0860b..40afcf8b8 100644
--- a/gnuradio-core/src/lib/general/gr_log2_const.h
+++ b/gnuradio-core/src/lib/general/gr_log2_const.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gnuradio-core/src/lib/general/gr_map_bb.cc b/gnuradio-core/src/lib/general/gr_map_bb.cc
index 7762c7e35..7deb8971a 100644
--- a/gnuradio-core/src/lib/general/gr_map_bb.cc
+++ b/gnuradio-core/src/lib/general/gr_map_bb.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2007,2010 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,
@@ -56,6 +56,6 @@ gr_map_bb::work (int noutput_items,
for (int i = 0; i < noutput_items; i++)
out[i] = d_map[in[i]];
-
+
return noutput_items;
}
diff --git a/gnuradio-core/src/lib/general/gr_map_bb.h b/gnuradio-core/src/lib/general/gr_map_bb.h
index 0820c6a16..0a2f5a45f 100644
--- a/gnuradio-core/src/lib/general/gr_map_bb.h
+++ b/gnuradio-core/src/lib/general/gr_map_bb.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gnuradio-core/src/lib/general/gr_map_bb.i b/gnuradio-core/src/lib/general/gr_map_bb.i
index d6224d37c..9c8bff644 100644
--- a/gnuradio-core/src/lib/general/gr_map_bb.i
+++ b/gnuradio-core/src/lib/general/gr_map_bb.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gnuradio-core/src/lib/general/gr_math.h b/gnuradio-core/src/lib/general/gr_math.h
index 9c61942cd..b9a802da8 100644
--- a/gnuradio-core/src/lib/general/gr_math.h
+++ b/gnuradio-core/src/lib/general/gr_math.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2003,2005,2008 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,
@@ -54,9 +54,9 @@ gr_is_power_of_2(long x)
*/
GR_CORE_API float gr_fast_atan2f(float y, float x);
-static inline float gr_fast_atan2f(gr_complex z)
-{
- return gr_fast_atan2f(z.imag(), z.real());
+static inline float gr_fast_atan2f(gr_complex z)
+{
+ return gr_fast_atan2f(z.imag(), z.real());
}
/* This bounds x by +/- clip without a branch */
@@ -96,7 +96,7 @@ static inline unsigned int gr_quad_45deg_slicer(float r, float i)
ret = 1;
else if((r < 0) && (i < 0))
ret = 2;
- else
+ else
ret = 3;
return ret;
}
diff --git a/gnuradio-core/src/lib/general/gr_misc.cc b/gnuradio-core/src/lib/general/gr_misc.cc
index 0f352c959..1ed2a03d7 100644
--- a/gnuradio-core/src/lib/general/gr_misc.cc
+++ b/gnuradio-core/src/lib/general/gr_misc.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
@@ -25,7 +25,7 @@
#endif
#include <gr_misc.h>
-unsigned int
+unsigned int
gr_rounduppow2(unsigned int n)
{
int i;
diff --git a/gnuradio-core/src/lib/general/gr_misc.h b/gnuradio-core/src/lib/general/gr_misc.h
index 6e2bf78b7..0c790e90c 100644
--- a/gnuradio-core/src/lib/general/gr_misc.h
+++ b/gnuradio-core/src/lib/general/gr_misc.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
@@ -26,7 +26,7 @@
#include <gr_core_api.h>
#include <gr_types.h>
-GR_CORE_API unsigned int
+GR_CORE_API unsigned int
gr_rounduppow2(unsigned int n);
// FIXME should be template
diff --git a/gnuradio-core/src/lib/general/gr_multiply_cc.cc b/gnuradio-core/src/lib/general/gr_multiply_cc.cc
index 0d20e6257..32c44a19e 100644
--- a/gnuradio-core/src/lib/general/gr_multiply_cc.cc
+++ b/gnuradio-core/src/lib/general/gr_multiply_cc.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2012 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,
diff --git a/gnuradio-core/src/lib/general/gr_multiply_cc.h b/gnuradio-core/src/lib/general/gr_multiply_cc.h
index f80ec8b25..d25935b4c 100644
--- a/gnuradio-core/src/lib/general/gr_multiply_cc.h
+++ b/gnuradio-core/src/lib/general/gr_multiply_cc.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2012 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,
@@ -43,7 +43,7 @@ class GR_CORE_API gr_multiply_cc : public gr_sync_block
friend GR_CORE_API gr_multiply_cc_sptr
gr_make_multiply_cc (size_t vlen);
gr_multiply_cc (size_t vlen);
-
+
size_t d_vlen;
public:
diff --git a/gnuradio-core/src/lib/general/gr_multiply_cc.i b/gnuradio-core/src/lib/general/gr_multiply_cc.i
index 61768c390..f0faa3594 100644
--- a/gnuradio-core/src/lib/general/gr_multiply_cc.i
+++ b/gnuradio-core/src/lib/general/gr_multiply_cc.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2012 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,
diff --git a/gnuradio-core/src/lib/general/gr_multiply_conjugate_cc.cc b/gnuradio-core/src/lib/general/gr_multiply_conjugate_cc.cc
index 103d87b8b..53ede2eed 100644
--- a/gnuradio-core/src/lib/general/gr_multiply_conjugate_cc.cc
+++ b/gnuradio-core/src/lib/general/gr_multiply_conjugate_cc.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2012 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,
diff --git a/gnuradio-core/src/lib/general/gr_multiply_conjugate_cc.h b/gnuradio-core/src/lib/general/gr_multiply_conjugate_cc.h
index eb032f31b..826e28771 100644
--- a/gnuradio-core/src/lib/general/gr_multiply_conjugate_cc.h
+++ b/gnuradio-core/src/lib/general/gr_multiply_conjugate_cc.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2012 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,
@@ -44,7 +44,7 @@ class GR_CORE_API gr_multiply_conjugate_cc : public gr_sync_block
friend GR_CORE_API gr_multiply_conjugate_cc_sptr
gr_make_multiply_conjugate_cc (size_t vlen);
gr_multiply_conjugate_cc (size_t vlen);
-
+
size_t d_vlen;
public:
diff --git a/gnuradio-core/src/lib/general/gr_multiply_conjugate_cc.i b/gnuradio-core/src/lib/general/gr_multiply_conjugate_cc.i
index 023410505..e7979dbcd 100644
--- a/gnuradio-core/src/lib/general/gr_multiply_conjugate_cc.i
+++ b/gnuradio-core/src/lib/general/gr_multiply_conjugate_cc.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2012 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,
diff --git a/gnuradio-core/src/lib/general/gr_multiply_const_cc.cc b/gnuradio-core/src/lib/general/gr_multiply_const_cc.cc
index 59521f54a..359ab6ba0 100644
--- a/gnuradio-core/src/lib/general/gr_multiply_const_cc.cc
+++ b/gnuradio-core/src/lib/general/gr_multiply_const_cc.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2012 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,
diff --git a/gnuradio-core/src/lib/general/gr_multiply_const_cc.h b/gnuradio-core/src/lib/general/gr_multiply_const_cc.h
index 1791d9160..97962abc7 100644
--- a/gnuradio-core/src/lib/general/gr_multiply_const_cc.h
+++ b/gnuradio-core/src/lib/general/gr_multiply_const_cc.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2012 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,
diff --git a/gnuradio-core/src/lib/general/gr_multiply_const_cc.i b/gnuradio-core/src/lib/general/gr_multiply_const_cc.i
index be8d32b31..c2f3cbed3 100644
--- a/gnuradio-core/src/lib/general/gr_multiply_const_cc.i
+++ b/gnuradio-core/src/lib/general/gr_multiply_const_cc.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2012 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,
diff --git a/gnuradio-core/src/lib/general/gr_multiply_const_ff.cc b/gnuradio-core/src/lib/general/gr_multiply_const_ff.cc
index 8354cb27b..263f06610 100644
--- a/gnuradio-core/src/lib/general/gr_multiply_const_ff.cc
+++ b/gnuradio-core/src/lib/general/gr_multiply_const_ff.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2012 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,
diff --git a/gnuradio-core/src/lib/general/gr_multiply_const_ff.h b/gnuradio-core/src/lib/general/gr_multiply_const_ff.h
index ef42a92f4..fac73f88a 100644
--- a/gnuradio-core/src/lib/general/gr_multiply_const_ff.h
+++ b/gnuradio-core/src/lib/general/gr_multiply_const_ff.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2012 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,
diff --git a/gnuradio-core/src/lib/general/gr_multiply_const_ff.i b/gnuradio-core/src/lib/general/gr_multiply_const_ff.i
index 0fd3b1225..343f67cd2 100644
--- a/gnuradio-core/src/lib/general/gr_multiply_const_ff.i
+++ b/gnuradio-core/src/lib/general/gr_multiply_const_ff.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2012 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,
diff --git a/gnuradio-core/src/lib/general/gr_multiply_ff.cc b/gnuradio-core/src/lib/general/gr_multiply_ff.cc
index a7d34ce51..f764a71e8 100644
--- a/gnuradio-core/src/lib/general/gr_multiply_ff.cc
+++ b/gnuradio-core/src/lib/general/gr_multiply_ff.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2012 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,
@@ -40,7 +40,7 @@ gr_multiply_ff::gr_multiply_ff (size_t vlen)
gr_make_io_signature (1, 1, sizeof (float)*vlen)),
d_vlen(vlen)
{
- const int alignment_multiple =
+ const int alignment_multiple =
volk_get_alignment() / sizeof(float);
set_alignment(alignment_multiple);
}
diff --git a/gnuradio-core/src/lib/general/gr_multiply_ff.h b/gnuradio-core/src/lib/general/gr_multiply_ff.h
index ae36cb1e0..ed628385c 100644
--- a/gnuradio-core/src/lib/general/gr_multiply_ff.h
+++ b/gnuradio-core/src/lib/general/gr_multiply_ff.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2012 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,
@@ -43,7 +43,7 @@ class GR_CORE_API gr_multiply_ff : public gr_sync_block
friend GR_CORE_API gr_multiply_ff_sptr
gr_make_multiply_ff (size_t vlen);
gr_multiply_ff (size_t vlen);
-
+
size_t d_vlen;
public:
diff --git a/gnuradio-core/src/lib/general/gr_multiply_ff.i b/gnuradio-core/src/lib/general/gr_multiply_ff.i
index 0f06301f2..e5fdea348 100644
--- a/gnuradio-core/src/lib/general/gr_multiply_ff.i
+++ b/gnuradio-core/src/lib/general/gr_multiply_ff.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2012 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,
diff --git a/gnuradio-core/src/lib/general/gr_nco.h b/gnuradio-core/src/lib/general/gr_nco.h
index 0e740a317..fb51106aa 100644
--- a/gnuradio-core/src/lib/general/gr_nco.h
+++ b/gnuradio-core/src/lib/general/gr_nco.h
@@ -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,
@@ -36,7 +36,7 @@
//FIXME Eventually generalize this to fixed point
-template<class o_type, class i_type>
+template<class o_type, class i_type>
class gr_nco {
public:
gr_nco () : phase (0), phase_inc(0) {}
@@ -66,11 +66,11 @@ public:
// increment current phase angle
- void step ()
- {
- phase += phase_inc;
+ void step ()
+ {
+ phase += phase_inc;
if (fabs (phase) > M_PI){
-
+
while (phase > M_PI)
phase -= 2*M_PI;
@@ -83,7 +83,7 @@ public:
{
phase += phase_inc * n;
if (fabs (phase) > M_PI){
-
+
while (phase > M_PI)
phase -= 2*M_PI;
@@ -117,14 +117,14 @@ protected:
double phase_inc;
};
-template<class o_type, class i_type>
+template<class o_type, class i_type>
void
gr_nco<o_type,i_type>::sincos (float *sinx, float *cosx) const
{
gr_sincosf (phase, sinx, cosx);
}
-template<class o_type, class i_type>
+template<class o_type, class i_type>
void
gr_nco<o_type,i_type>::sin (float *output, int noutput_items, double ampl)
{
@@ -134,7 +134,7 @@ gr_nco<o_type,i_type>::sin (float *output, int noutput_items, double ampl)
}
}
-template<class o_type, class i_type>
+template<class o_type, class i_type>
void
gr_nco<o_type,i_type>::cos (float *output, int noutput_items, double ampl)
{
@@ -144,7 +144,7 @@ gr_nco<o_type,i_type>::cos (float *output, int noutput_items, double ampl)
}
}
-template<class o_type, class i_type>
+template<class o_type, class i_type>
void
gr_nco<o_type,i_type>::sin (short *output, int noutput_items, double ampl)
{
@@ -154,7 +154,7 @@ gr_nco<o_type,i_type>::sin (short *output, int noutput_items, double ampl)
}
}
-template<class o_type, class i_type>
+template<class o_type, class i_type>
void
gr_nco<o_type,i_type>::cos (short *output, int noutput_items, double ampl)
{
@@ -164,7 +164,7 @@ gr_nco<o_type,i_type>::cos (short *output, int noutput_items, double ampl)
}
}
-template<class o_type, class i_type>
+template<class o_type, class i_type>
void
gr_nco<o_type,i_type>::sin (int *output, int noutput_items, double ampl)
{
@@ -174,7 +174,7 @@ gr_nco<o_type,i_type>::sin (int *output, int noutput_items, double ampl)
}
}
-template<class o_type, class i_type>
+template<class o_type, class i_type>
void
gr_nco<o_type,i_type>::cos (int *output, int noutput_items, double ampl)
{
@@ -184,7 +184,7 @@ gr_nco<o_type,i_type>::cos (int *output, int noutput_items, double ampl)
}
}
-template<class o_type, class i_type>
+template<class o_type, class i_type>
void
gr_nco<o_type,i_type>::sincos (gr_complex *output, int noutput_items, double ampl)
{
diff --git a/gnuradio-core/src/lib/general/gr_nlog10_ff.cc b/gnuradio-core/src/lib/general/gr_nlog10_ff.cc
index 15d28d484..24cfe25fb 100644
--- a/gnuradio-core/src/lib/general/gr_nlog10_ff.cc
+++ b/gnuradio-core/src/lib/general/gr_nlog10_ff.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2010 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,
diff --git a/gnuradio-core/src/lib/general/gr_nlog10_ff.h b/gnuradio-core/src/lib/general/gr_nlog10_ff.h
index cea56f87e..cfeba3fee 100644
--- a/gnuradio-core/src/lib/general/gr_nlog10_ff.h
+++ b/gnuradio-core/src/lib/general/gr_nlog10_ff.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gnuradio-core/src/lib/general/gr_nlog10_ff.i b/gnuradio-core/src/lib/general/gr_nlog10_ff.i
index befe5886a..73da59793 100644
--- a/gnuradio-core/src/lib/general/gr_nlog10_ff.i
+++ b/gnuradio-core/src/lib/general/gr_nlog10_ff.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gnuradio-core/src/lib/general/gr_nop.cc b/gnuradio-core/src/lib/general/gr_nop.cc
index bd5e4fd81..ca5983c39 100644
--- a/gnuradio-core/src/lib/general/gr_nop.cc
+++ b/gnuradio-core/src/lib/general/gr_nop.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
@@ -60,6 +60,6 @@ gr_nop::general_work (int noutput_items,
// eat any input that's available
for (unsigned i = 0; i < ninput_items.size (); i++)
consume (i, ninput_items[i]);
-
+
return noutput_items;
}
diff --git a/gnuradio-core/src/lib/general/gr_nop.h b/gnuradio-core/src/lib/general/gr_nop.h
index b8398befc..e0d59280f 100644
--- a/gnuradio-core/src/lib/general/gr_nop.h
+++ b/gnuradio-core/src/lib/general/gr_nop.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
diff --git a/gnuradio-core/src/lib/general/gr_nop.i b/gnuradio-core/src/lib/general/gr_nop.i
index 85354d421..977a15d18 100644
--- a/gnuradio-core/src/lib/general/gr_nop.i
+++ b/gnuradio-core/src/lib/general/gr_nop.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
diff --git a/gnuradio-core/src/lib/general/gr_null_sink.cc b/gnuradio-core/src/lib/general/gr_null_sink.cc
index 67ef57a46..183665502 100644
--- a/gnuradio-core/src/lib/general/gr_null_sink.cc
+++ b/gnuradio-core/src/lib/general/gr_null_sink.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
diff --git a/gnuradio-core/src/lib/general/gr_null_sink.h b/gnuradio-core/src/lib/general/gr_null_sink.h
index c6c4f36fb..737429329 100644
--- a/gnuradio-core/src/lib/general/gr_null_sink.h
+++ b/gnuradio-core/src/lib/general/gr_null_sink.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
diff --git a/gnuradio-core/src/lib/general/gr_null_sink.i b/gnuradio-core/src/lib/general/gr_null_sink.i
index e739ce118..80411f9b7 100644
--- a/gnuradio-core/src/lib/general/gr_null_sink.i
+++ b/gnuradio-core/src/lib/general/gr_null_sink.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
diff --git a/gnuradio-core/src/lib/general/gr_null_source.cc b/gnuradio-core/src/lib/general/gr_null_source.cc
index 85fd2db4b..1ad5c351d 100644
--- a/gnuradio-core/src/lib/general/gr_null_source.cc
+++ b/gnuradio-core/src/lib/general/gr_null_source.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
diff --git a/gnuradio-core/src/lib/general/gr_null_source.h b/gnuradio-core/src/lib/general/gr_null_source.h
index 33687fbaa..1c64e8bd9 100644
--- a/gnuradio-core/src/lib/general/gr_null_source.h
+++ b/gnuradio-core/src/lib/general/gr_null_source.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
@@ -46,7 +46,7 @@ class GR_CORE_API gr_null_source : public gr_sync_block
virtual int work (int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items);
-
+
};
#endif /* INCLUDED_GR_NULL_SOURCE_H */
diff --git a/gnuradio-core/src/lib/general/gr_null_source.i b/gnuradio-core/src/lib/general/gr_null_source.i
index 133161d0a..120a59999 100644
--- a/gnuradio-core/src/lib/general/gr_null_source.i
+++ b/gnuradio-core/src/lib/general/gr_null_source.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
diff --git a/gnuradio-core/src/lib/general/gr_ofdm_bpsk_demapper.cc b/gnuradio-core/src/lib/general/gr_ofdm_bpsk_demapper.cc
index bcb469651..2b718e5ce 100644
--- a/gnuradio-core/src/lib/general/gr_ofdm_bpsk_demapper.cc
+++ b/gnuradio-core/src/lib/general/gr_ofdm_bpsk_demapper.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2010 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,
@@ -67,13 +67,13 @@ gr_ofdm_bpsk_demapper::general_work(int noutput_items,
{
const gr_complex *in = (const gr_complex *)input_items[0];
unsigned char *out = (unsigned char *) output_items[0];
-
+
unsigned int i=0, bytes_produced=0;
while(i < d_occupied_carriers) {
while((d_byte_offset < 8) && (i < d_occupied_carriers)) {
- //fprintf(stderr, "%f+j%f\n", in[i].real(), in[i].imag());
+ //fprintf(stderr, "%f+j%f\n", in[i].real(), in[i].imag());
d_partial_byte |= slicer(in[i++]) << (d_byte_offset++);
}
diff --git a/gnuradio-core/src/lib/general/gr_ofdm_bpsk_demapper.h b/gnuradio-core/src/lib/general/gr_ofdm_bpsk_demapper.h
index 6d532d50f..d69d427ed 100644
--- a/gnuradio-core/src/lib/general/gr_ofdm_bpsk_demapper.h
+++ b/gnuradio-core/src/lib/general/gr_ofdm_bpsk_demapper.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
@@ -31,7 +31,7 @@
class gr_ofdm_bpsk_demapper;
typedef boost::shared_ptr<gr_ofdm_bpsk_demapper> gr_ofdm_bpsk_demapper_sptr;
-GR_CORE_API gr_ofdm_bpsk_demapper_sptr
+GR_CORE_API gr_ofdm_bpsk_demapper_sptr
gr_make_ofdm_bpsk_demapper (unsigned int occupied_carriers);
@@ -44,17 +44,17 @@ class GR_CORE_API gr_ofdm_bpsk_demapper : public gr_block
{
friend GR_CORE_API gr_ofdm_bpsk_demapper_sptr
gr_make_ofdm_bpsk_demapper (unsigned int occupied_carriers);
-
+
protected:
gr_ofdm_bpsk_demapper (unsigned int occupied_carriers);
-
+
private:
unsigned char slicer(gr_complex x);
unsigned int d_occupied_carriers;
unsigned int d_byte_offset;
unsigned char d_partial_byte;
-
+
void forecast(int noutput_items, gr_vector_int &ninput_items_required);
public:
diff --git a/gnuradio-core/src/lib/general/gr_ofdm_bpsk_demapper.i b/gnuradio-core/src/lib/general/gr_ofdm_bpsk_demapper.i
index 4ad5ed134..e58a4e40c 100644
--- a/gnuradio-core/src/lib/general/gr_ofdm_bpsk_demapper.i
+++ b/gnuradio-core/src/lib/general/gr_ofdm_bpsk_demapper.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2006 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,
@@ -24,7 +24,7 @@
GR_SWIG_BLOCK_MAGIC(gr,ofdm_bpsk_demapper)
-gr_ofdm_bpsk_demapper_sptr
+gr_ofdm_bpsk_demapper_sptr
gr_make_ofdm_bpsk_demapper (unsigned int occupied_carriers);
class gr_ofdm_bpsk_demapper : public gr_sync_decimator
diff --git a/gnuradio-core/src/lib/general/gr_ofdm_frame_sink2.cc b/gnuradio-core/src/lib/general/gr_ofdm_frame_sink2.cc
index 40574b4e9..eb1232756 100644
--- a/gnuradio-core/src/lib/general/gr_ofdm_frame_sink2.cc
+++ b/gnuradio-core/src/lib/general/gr_ofdm_frame_sink2.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007,2008,2010,2011 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,
@@ -46,7 +46,7 @@ gr_ofdm_frame_sink2::enter_search()
d_state = STATE_SYNC_SEARCH;
}
-
+
inline void
gr_ofdm_frame_sink2::enter_have_sync()
{
@@ -81,7 +81,7 @@ gr_ofdm_frame_sink2::enter_have_header()
d_packetlen_cnt = 0;
if (VERBOSE)
- fprintf(stderr, "@ enter_have_header (payload_len = %d) (offset = %d)\n",
+ fprintf(stderr, "@ enter_have_header (payload_len = %d) (offset = %d)\n",
d_packetlen, d_packet_whitener_offset);
}
@@ -103,25 +103,25 @@ unsigned int gr_ofdm_frame_sink2::demapper(const gr_complex *in,
d_nresid = 0;
d_resid = 0;
}
-
+
//while((d_byte_offset < 8) && (i < d_occupied_carriers)) {
while((d_byte_offset < 8) && (i < d_subcarrier_map.size())) {
//gr_complex sigrot = in[i]*carrier*d_dfe[i];
gr_complex sigrot = in[d_subcarrier_map[i]]*carrier*d_dfe[i];
-
+
if(d_derotated_output != NULL){
d_derotated_output[i] = sigrot;
}
-
+
unsigned char bits = d_constell->decision_maker(&sigrot);
gr_complex closest_sym = d_constell->points()[bits];
-
+
accum_error += sigrot * conj(closest_sym);
// FIX THE FOLLOWING STATEMENT
if (norm(sigrot)> 0.001) d_dfe[i] += d_eq_gain*(closest_sym/sigrot-d_dfe[i]);
-
+
i++;
if((8 - d_byte_offset) >= d_nbits) {
@@ -135,7 +135,7 @@ unsigned int gr_ofdm_frame_sink2::demapper(const gr_complex *in,
d_resid = bits >> (8-d_byte_offset);
d_byte_offset += (d_nbits - d_nresid);
}
- //printf("demod symbol: %.4f + j%.4f bits: %x partial_byte: %x byte_offset: %d resid: %x nresid: %d\n",
+ //printf("demod symbol: %.4f + j%.4f bits: %x partial_byte: %x byte_offset: %d resid: %x nresid: %d\n",
// in[i-1].real(), in[i-1].imag(), bits, d_partial_byte, d_byte_offset, d_resid, d_nresid);
}
@@ -154,10 +154,10 @@ unsigned int gr_ofdm_frame_sink2::demapper(const gr_complex *in,
d_phase = d_phase + d_freq - d_phase_gain*angle;
if (d_phase >= 2*M_PI) d_phase -= 2*M_PI;
if (d_phase <0) d_phase += 2*M_PI;
-
+
//if(VERBOSE)
// std::cerr << angle << "\t" << d_freq << "\t" << d_phase << "\t" << std::endl;
-
+
return bytes_produced;
}
@@ -180,7 +180,7 @@ gr_ofdm_frame_sink2::gr_ofdm_frame_sink2(gr_constellation_sptr constell,
gr_make_io_signature2 (2, 2, sizeof(gr_complex)*occupied_carriers, sizeof(char)),
gr_make_io_signature (1, 1, sizeof(gr_complex)*occupied_carriers)),
d_constell(constell),
- d_target_queue(target_queue), d_occupied_carriers(occupied_carriers),
+ d_target_queue(target_queue), d_occupied_carriers(occupied_carriers),
d_byte_offset(0), d_partial_byte(0),
d_resid(0), d_nresid(0),d_phase(0),d_freq(0),d_phase_gain(phase_gain),d_freq_gain(freq_gain),
d_eq_gain(0.05)
@@ -191,13 +191,13 @@ gr_ofdm_frame_sink2::gr_ofdm_frame_sink2(gr_constellation_sptr constell,
std::string carriers = "FE7F";
// A bit hacky to fill out carriers to occupied_carriers length
- int diff = (d_occupied_carriers - 4*carriers.length());
+ int diff = (d_occupied_carriers - 4*carriers.length());
while(diff > 7) {
carriers.insert(0, "f");
carriers.insert(carriers.length(), "f");
diff -= 8;
}
-
+
// if there's extras left to be processed
// divide remaining to put on either side of current map
// all of this is done to stick with the concept of a carrier map string that
@@ -207,7 +207,7 @@ gr_ofdm_frame_sink2::gr_ofdm_frame_sink2(gr_constellation_sptr constell,
int diff_right=0;
// dictionary to convert from integers to ascii hex representation
- char abc[16] = {'0', '1', '2', '3', '4', '5', '6', '7',
+ char abc[16] = {'0', '1', '2', '3', '4', '5', '6', '7',
'8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
if(diff > 0) {
char c[2] = {0,0};
@@ -215,7 +215,7 @@ gr_ofdm_frame_sink2::gr_ofdm_frame_sink2(gr_constellation_sptr constell,
diff_left = (int)ceil((float)diff/2.0f); // number of carriers to put on the left side
c[0] = abc[(1 << diff_left) - 1]; // convert to bits and move to ASCI integer
carriers.insert(0, c);
-
+
diff_right = diff - diff_left; // number of carriers to put on the right side
c[0] = abc[0xF^((1 << diff_right) - 1)]; // convert to bits and move to ASCI integer
carriers.insert(carriers.length(), c);
@@ -235,7 +235,7 @@ gr_ofdm_frame_sink2::gr_ofdm_frame_sink2(gr_constellation_sptr constell,
}
}
}
-
+
// make sure we stay in the limit currently imposed by the occupied_carriers
if(d_subcarrier_map.size() > d_occupied_carriers) {
throw std::invalid_argument("gr_ofdm_mapper_bcv: subcarriers allocated exceeds size of occupied carriers");
@@ -271,26 +271,26 @@ gr_ofdm_frame_sink2::work (int noutput_items,
d_derotated_output = (gr_complex *)output_items[0];
else
d_derotated_output = NULL;
-
+
if (VERBOSE)
fprintf(stderr,">>> Entering state machine\n");
switch(d_state) {
-
+
case STATE_SYNC_SEARCH: // Look for flag indicating beginning of pkt
if (VERBOSE)
fprintf(stderr,"SYNC Search, noutput=%d\n", noutput_items);
-
+
if (sig[0]) { // Found it, set up for header decode
enter_have_sync();
}
break;
case STATE_HAVE_SYNC:
- // only demod after getting the preamble signal; otherwise, the
+ // only demod after getting the preamble signal; otherwise, the
// equalizer taps will screw with the PLL performance
bytes = demapper(&in[0], d_bytes_out);
-
+
if (VERBOSE) {
if(sig[0])
printf("ERROR -- Found SYNC in HAVE_SYNC\n");
@@ -302,31 +302,31 @@ gr_ofdm_frame_sink2::work (int noutput_items,
while(j < bytes) {
d_header = (d_header << 8) | (d_bytes_out[j] & 0xFF);
j++;
-
+
if (++d_headerbytelen_cnt == HEADERBYTELEN) {
-
+
if (VERBOSE)
fprintf(stderr, "got header: 0x%08x\n", d_header);
-
+
// we have a full header, check to see if it has been received properly
if (header_ok()){
enter_have_header();
-
+
if (VERBOSE)
printf("\nPacket Length: %d\n", d_packetlen);
-
+
while((j < bytes) && (d_packetlen_cnt < d_packetlen)) {
d_packet[d_packetlen_cnt++] = d_bytes_out[j++];
}
-
+
if(d_packetlen_cnt == d_packetlen) {
gr_message_sptr msg =
gr_make_message(0, d_packet_whitener_offset, 0, d_packetlen);
memcpy(msg->msg(), d_packet, d_packetlen_cnt);
d_target_queue->insert_tail(msg); // send it
msg.reset(); // free it up
-
- enter_search();
+
+ enter_search();
}
}
else {
@@ -335,7 +335,7 @@ gr_ofdm_frame_sink2::work (int noutput_items,
}
}
break;
-
+
case STATE_HAVE_HEADER:
bytes = demapper(&in[0], d_bytes_out);
@@ -344,30 +344,30 @@ gr_ofdm_frame_sink2::work (int noutput_items,
printf("ERROR -- Found SYNC in HAVE_HEADER at %d, length of %d\n", d_packetlen_cnt, d_packetlen);
fprintf(stderr,"Packet Build\n");
}
-
+
j = 0;
while(j < bytes) {
d_packet[d_packetlen_cnt++] = d_bytes_out[j++];
-
+
if (d_packetlen_cnt == d_packetlen){ // packet is filled
// build a message
// NOTE: passing header field as arg1 is not scalable
gr_message_sptr msg =
gr_make_message(0, d_packet_whitener_offset, 0, d_packetlen_cnt);
memcpy(msg->msg(), d_packet, d_packetlen_cnt);
-
+
d_target_queue->insert_tail(msg); // send it
msg.reset(); // free it up
-
+
enter_search();
break;
}
}
break;
-
+
default:
assert(0);
-
+
} // switch
return 1;
diff --git a/gnuradio-core/src/lib/general/gr_ofdm_frame_sink2.h b/gnuradio-core/src/lib/general/gr_ofdm_frame_sink2.h
index 9595303b1..a743e8c5a 100644
--- a/gnuradio-core/src/lib/general/gr_ofdm_frame_sink2.h
+++ b/gnuradio-core/src/lib/general/gr_ofdm_frame_sink2.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007,2011 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,
@@ -31,7 +31,7 @@
class gr_ofdm_frame_sink2;
typedef boost::shared_ptr<gr_ofdm_frame_sink2> gr_ofdm_frame_sink2_sptr;
-GR_CORE_API gr_ofdm_frame_sink2_sptr
+GR_CORE_API gr_ofdm_frame_sink2_sptr
gr_make_ofdm_frame_sink2 (gr_constellation_sptr constell,
gr_msg_queue_sptr target_queue, unsigned int occupied_tones,
float phase_gain=0.25, float freq_gain=0.25*0.25/4.0);
@@ -48,8 +48,8 @@ gr_make_ofdm_frame_sink2 (gr_constellation_sptr constell,
*/
class GR_CORE_API gr_ofdm_frame_sink2 : public gr_sync_block
{
- friend GR_CORE_API gr_ofdm_frame_sink2_sptr
- gr_make_ofdm_frame_sink2 (gr_constellation_sptr constell,
+ friend GR_CORE_API gr_ofdm_frame_sink2_sptr
+ gr_make_ofdm_frame_sink2 (gr_constellation_sptr constell,
gr_msg_queue_sptr target_queue, unsigned int occupied_tones,
float phase_gain, float freq_gain);
@@ -64,7 +64,7 @@ class GR_CORE_API gr_ofdm_frame_sink2 : public gr_sync_block
unsigned int d_header; // header bits
int d_headerbytelen_cnt; // how many so far
- unsigned char *d_bytes_out; // hold the current bytes produced by the demapper
+ unsigned char *d_bytes_out; // hold the current bytes produced by the demapper
unsigned int d_occupied_carriers;
unsigned int d_byte_offset;
@@ -99,13 +99,13 @@ class GR_CORE_API gr_ofdm_frame_sink2 : public gr_sync_block
void enter_search();
void enter_have_sync();
void enter_have_header();
-
+
bool header_ok()
{
// confirm that two copies of header info are identical
return ((d_header >> 16) ^ (d_header & 0xffff)) == 0;
}
-
+
unsigned char slicer(const gr_complex x);
unsigned int demapper(const gr_complex *in,
unsigned char *out);
diff --git a/gnuradio-core/src/lib/general/gr_ofdm_frame_sink2.i b/gnuradio-core/src/lib/general/gr_ofdm_frame_sink2.i
index 8fa320089..8c04d1e16 100644
--- a/gnuradio-core/src/lib/general/gr_ofdm_frame_sink2.i
+++ b/gnuradio-core/src/lib/general/gr_ofdm_frame_sink2.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007,2011 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,
@@ -22,7 +22,7 @@
GR_SWIG_BLOCK_MAGIC(gr,ofdm_frame_sink2);
-gr_ofdm_frame_sink2_sptr
+gr_ofdm_frame_sink2_sptr
gr_make_ofdm_frame_sink2(gr_constellation_sptr constell,
gr_msg_queue_sptr target_queue, unsigned int occupied_tones,
float phase_gain=0.25, float freq_gain=0.25*0.25/4);
diff --git a/gnuradio-core/src/lib/general/gr_pa_2x2_phase_combiner.cc b/gnuradio-core/src/lib/general/gr_pa_2x2_phase_combiner.cc
index a79e34be4..318753672 100644
--- a/gnuradio-core/src/lib/general/gr_pa_2x2_phase_combiner.cc
+++ b/gnuradio-core/src/lib/general/gr_pa_2x2_phase_combiner.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2010 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,
diff --git a/gnuradio-core/src/lib/general/gr_pa_2x2_phase_combiner.h b/gnuradio-core/src/lib/general/gr_pa_2x2_phase_combiner.h
index abb23e002..d430d154f 100644
--- a/gnuradio-core/src/lib/general/gr_pa_2x2_phase_combiner.h
+++ b/gnuradio-core/src/lib/general/gr_pa_2x2_phase_combiner.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gnuradio-core/src/lib/general/gr_pa_2x2_phase_combiner.i b/gnuradio-core/src/lib/general/gr_pa_2x2_phase_combiner.i
index bcca5033f..2cd373a5e 100644
--- a/gnuradio-core/src/lib/general/gr_pa_2x2_phase_combiner.i
+++ b/gnuradio-core/src/lib/general/gr_pa_2x2_phase_combiner.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gnuradio-core/src/lib/general/gr_packet_sink.cc b/gnuradio-core/src/lib/general/gr_packet_sink.cc
index d66d96839..19a8c5fc2 100644
--- a/gnuradio-core/src/lib/general/gr_packet_sink.cc
+++ b/gnuradio-core/src/lib/general/gr_packet_sink.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
@@ -48,7 +48,7 @@ gr_packet_sink::enter_search()
d_state = STATE_SYNC_SEARCH;
d_shift_reg = 0;
}
-
+
inline void
gr_packet_sink::enter_have_sync()
{
@@ -108,13 +108,13 @@ gr_packet_sink::work (int noutput_items,
{
float *inbuf = (float *) input_items[0];
int count=0;
-
+
if (VERBOSE)
fprintf(stderr,">>> Entering state machine\n"),fflush(stderr);
while (count<noutput_items) {
switch(d_state) {
-
+
case STATE_SYNC_SEARCH: // Look for sync vector
if (VERBOSE)
fprintf(stderr,"SYNC Search, noutput=%d\n",noutput_items),fflush(stderr);
@@ -164,7 +164,7 @@ gr_packet_sink::work (int noutput_items,
}
}
break;
-
+
case STATE_HAVE_HEADER:
if (VERBOSE)
fprintf(stderr,"Packet Build\n"),fflush(stderr);
@@ -174,7 +174,7 @@ gr_packet_sink::work (int noutput_items,
d_packet_byte = (d_packet_byte << 1) | 1;
else
d_packet_byte = d_packet_byte << 1;
-
+
if (d_packet_byte_index++ == 7) { // byte is full so move to next byte
d_packet[d_packetlen_cnt++] = d_packet_byte;
d_packet_byte_index = 0;
@@ -182,7 +182,7 @@ gr_packet_sink::work (int noutput_items,
if (d_packetlen_cnt == d_packetlen){ // packet is filled
// build a message
- gr_message_sptr msg = gr_make_message(0, 0, 0, d_packetlen_cnt);
+ gr_message_sptr msg = gr_make_message(0, 0, 0, d_packetlen_cnt);
memcpy(msg->msg(), d_packet, d_packetlen_cnt);
d_target_queue->insert_tail(msg); // send it
@@ -204,4 +204,4 @@ gr_packet_sink::work (int noutput_items,
return noutput_items;
}
-
+
diff --git a/gnuradio-core/src/lib/general/gr_packet_sink.h b/gnuradio-core/src/lib/general/gr_packet_sink.h
index 89a95f3e3..b4cb0b0f6 100644
--- a/gnuradio-core/src/lib/general/gr_packet_sink.h
+++ b/gnuradio-core/src/lib/general/gr_packet_sink.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
@@ -30,7 +30,7 @@
class gr_packet_sink;
typedef boost::shared_ptr<gr_packet_sink> gr_packet_sink_sptr;
-GR_CORE_API gr_packet_sink_sptr
+GR_CORE_API gr_packet_sink_sptr
gr_make_packet_sink (const std::vector<unsigned char>& sync_vector,
gr_msg_queue_sptr target_queue,
int threshold = -1 // -1 -> use default
@@ -41,7 +41,7 @@ gr_make_packet_sink (const std::vector<unsigned char>& sync_vector,
*/
class GR_CORE_API gr_packet_sink : public gr_sync_block
{
- friend GR_CORE_API gr_packet_sink_sptr
+ friend GR_CORE_API gr_packet_sink_sptr
gr_make_packet_sink (const std::vector<unsigned char>& sync_vector,
gr_msg_queue_sptr target_queue,
int threshold);
@@ -70,14 +70,14 @@ class GR_CORE_API gr_packet_sink : public gr_sync_block
int d_packetlen_cnt; // how many so far
protected:
- gr_packet_sink(const std::vector<unsigned char>& sync_vector,
+ gr_packet_sink(const std::vector<unsigned char>& sync_vector,
gr_msg_queue_sptr target_queue,
int threshold);
void enter_search();
void enter_have_sync();
void enter_have_header(int payload_len);
-
+
int slice(float x) { return x > 0 ? 1 : 0; }
bool header_ok()
diff --git a/gnuradio-core/src/lib/general/gr_packet_sink.i b/gnuradio-core/src/lib/general/gr_packet_sink.i
index 8ed4ba0c5..d1290f9d3 100644
--- a/gnuradio-core/src/lib/general/gr_packet_sink.i
+++ b/gnuradio-core/src/lib/general/gr_packet_sink.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -22,7 +22,7 @@
GR_SWIG_BLOCK_MAGIC(gr,packet_sink)
-gr_packet_sink_sptr
+gr_packet_sink_sptr
gr_make_packet_sink (const std::vector<unsigned char>& sync_vector,
gr_msg_queue_sptr target_queue,
int threshold = -1 // -1 -> use default
diff --git a/gnuradio-core/src/lib/general/gr_peak_detector2_fb.cc b/gnuradio-core/src/lib/general/gr_peak_detector2_fb.cc
index 2b1c5da61..a4179a8c2 100644
--- a/gnuradio-core/src/lib/general/gr_peak_detector2_fb.cc
+++ b/gnuradio-core/src/lib/general/gr_peak_detector2_fb.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007,2010 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,
@@ -32,16 +32,16 @@ gr_peak_detector2_fb_sptr
gr_make_peak_detector2_fb (float threshold_factor_rise,
int look_ahead, float alpha)
{
- return gnuradio::get_initial_sptr(new gr_peak_detector2_fb (threshold_factor_rise,
+ return gnuradio::get_initial_sptr(new gr_peak_detector2_fb (threshold_factor_rise,
look_ahead, alpha));
}
-gr_peak_detector2_fb::gr_peak_detector2_fb (float threshold_factor_rise,
+gr_peak_detector2_fb::gr_peak_detector2_fb (float threshold_factor_rise,
int look_ahead, float alpha)
: gr_sync_block ("peak_detector2_fb",
gr_make_io_signature (1, 1, sizeof(float)),
gr_make_io_signature2 (1, 2, sizeof(char), sizeof(float))),
- d_threshold_factor_rise(threshold_factor_rise),
+ d_threshold_factor_rise(threshold_factor_rise),
d_look_ahead(look_ahead), d_alpha(alpha), d_avg(0.0f), d_found(false)
{
}
@@ -52,7 +52,7 @@ gr_peak_detector2_fb::work (int noutput_items,
gr_vector_void_star &output_items) {
float *iptr = (float *) input_items[0];
char *optr = (char *) output_items[0];
-
+
assert(noutput_items >= 2);
memset(optr, 0, noutput_items*sizeof(char));
@@ -65,27 +65,27 @@ gr_peak_detector2_fb::work (int noutput_items,
d_found = true;
d_look_ahead_remaining = d_look_ahead;
d_peak_val = -(float)INFINITY;
- }
+ }
else {
d_avg = d_alpha*iptr[i] + (1.0f - d_alpha)*d_avg;
}
- }
+ }
else {
// Detected presence of peak
if (iptr[i] > d_peak_val) {
d_peak_val = iptr[i];
d_peak_ind = i;
- }
+ }
else if (d_look_ahead_remaining <= 0) {
optr[d_peak_ind] = 1;
d_found = false;
d_avg = iptr[i];
}
-
+
// Have not yet located peak, loop and keep searching.
d_look_ahead_remaining--;
}
-
+
// Every iteration of the loop, write debugging signal out if
// connected:
if (output_items.size() == 2) {
@@ -93,15 +93,15 @@ gr_peak_detector2_fb::work (int noutput_items,
sigout[i] = d_avg;
}
} // loop
-
- if (!d_found)
+
+ if (!d_found)
return noutput_items;
-
+
// else if detected presence, keep searching during the next call to work.
int tmp = d_peak_ind;
d_peak_ind = 1;
-
- return tmp - 1;
+
+ return tmp - 1;
}
diff --git a/gnuradio-core/src/lib/general/gr_peak_detector2_fb.h b/gnuradio-core/src/lib/general/gr_peak_detector2_fb.h
index 5bb97fc5d..665a6b882 100644
--- a/gnuradio-core/src/lib/general/gr_peak_detector2_fb.h
+++ b/gnuradio-core/src/lib/general/gr_peak_detector2_fb.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007 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,
@@ -37,12 +37,12 @@ GR_CORE_API gr_peak_detector2_fb_sptr gr_make_peak_detector2_fb (float threshold
* \brief Detect the peak of a signal
* \ingroup level_blk
*
- * If a peak is detected, this block outputs a 1,
+ * If a peak is detected, this block outputs a 1,
* or it outputs 0's. A separate debug output may be connected, to
* view the internal EWMA described below.
*
* \param threshold_factor_rise The threshold factor determins when a peak
- * is present. An EWMA average of the signal is calculated and when the
+ * is present. An EWMA average of the signal is calculated and when the
* value of the signal goes over threshold_factor_rise*average, we
* call the peak.
* \param look_ahead The look-ahead value is used when the threshold is
@@ -52,11 +52,11 @@ GR_CORE_API gr_peak_detector2_fb_sptr gr_make_peak_detector2_fb (float threshold
class GR_CORE_API gr_peak_detector2_fb : public gr_sync_block
{
- friend GR_CORE_API gr_peak_detector2_fb_sptr
+ friend GR_CORE_API gr_peak_detector2_fb_sptr
gr_make_peak_detector2_fb (float threshold_factor_rise, int look_ahead, float alpha);
-
+
gr_peak_detector2_fb (float threshold_factor_rise, int look_ahead, float alpha);
-
+
private:
float d_threshold_factor_rise;
int d_look_ahead;
@@ -66,39 +66,39 @@ private:
float d_alpha;
float d_avg;
bool d_found;
-
+
public:
-
+
/*! \brief Set the threshold factor value for the rise time
* \param thr new threshold factor
*/
void set_threshold_factor_rise(float thr) { d_threshold_factor_rise = thr; }
-
+
/*! \brief Set the look-ahead factor
* \param look new look-ahead factor
*/
void set_look_ahead(int look) { d_look_ahead = look; }
-
+
/*! \brief Set the running average alpha
* \param alpha new alpha for running average
*/
void set_alpha(int alpha) { d_alpha = alpha; }
-
+
/*! \brief Get the threshold factor value for the rise time
* \return threshold factor
*/
float threshold_factor_rise() { return d_threshold_factor_rise; }
-
+
/*! \brief Get the look-ahead factor value
* \return look-ahead factor
*/
int look_ahead() { return d_look_ahead; }
-
+
/*! \brief Get the alpha value of the running average
* \return alpha
*/
float alpha() { return d_alpha; }
-
+
int work (int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items);
diff --git a/gnuradio-core/src/lib/general/gr_peak_detector2_fb.i b/gnuradio-core/src/lib/general/gr_peak_detector2_fb.i
index 4b01435c8..ec7227e69 100644
--- a/gnuradio-core/src/lib/general/gr_peak_detector2_fb.i
+++ b/gnuradio-core/src/lib/general/gr_peak_detector2_fb.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007 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,
@@ -22,7 +22,7 @@
GR_SWIG_BLOCK_MAGIC(gr,peak_detector2_fb)
-
+
gr_peak_detector2_fb_sptr gr_make_peak_detector2_fb (float threshold_factor_rise = 7,
int look_ahead = 1000,
float alpha=0.001);
@@ -31,13 +31,13 @@ class gr_peak_detector2_fb : public gr_sync_block
{
private:
gr_peak_detector2_fb (float threshold_factor_rise, int look_ahead, float alpha);
-
+
public:
void set_threshold_factor_rise(float thr) { d_threshold_factor_rise = thr; }
void set_look_ahead(int look) { d_look_ahead = look; }
void set_alpha(int alpha) { d_avg_alpha = alpha; }
-
- float threshold_factor_rise() { return d_threshold_factor_rise; }
+
+ float threshold_factor_rise() { return d_threshold_factor_rise; }
int look_ahead() { return d_look_ahead; }
float alpha() { return d_avg_alpha; }
};
diff --git a/gnuradio-core/src/lib/general/gr_phase_modulator_fc.cc b/gnuradio-core/src/lib/general/gr_phase_modulator_fc.cc
index c1a2e7da3..fb05c85a5 100644
--- a/gnuradio-core/src/lib/general/gr_phase_modulator_fc.cc
+++ b/gnuradio-core/src/lib/general/gr_phase_modulator_fc.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2006,2010 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,
@@ -57,6 +57,6 @@ gr_phase_modulator_fc::work (int noutput_items,
gr_sincosf (d_phase, &oq, &oi);
out[i] = gr_complex (oi, oq);
}
-
+
return noutput_items;
}
diff --git a/gnuradio-core/src/lib/general/gr_phase_modulator_fc.h b/gnuradio-core/src/lib/general/gr_phase_modulator_fc.h
index dd6e300a8..07f3b82d4 100644
--- a/gnuradio-core/src/lib/general/gr_phase_modulator_fc.h
+++ b/gnuradio-core/src/lib/general/gr_phase_modulator_fc.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2006 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,
@@ -33,7 +33,7 @@ GR_CORE_API gr_phase_modulator_fc_sptr gr_make_phase_modulator_fc (double sensit
/*!
* \brief Phase modulator block
- * \ingroup modulation_blk
+ * \ingroup modulation_blk
* output=complex(cos(in*sensitivity),sin(in*sensitivity))
*/
class GR_CORE_API gr_phase_modulator_fc : public gr_sync_block
diff --git a/gnuradio-core/src/lib/general/gr_phase_modulator_fc.i b/gnuradio-core/src/lib/general/gr_phase_modulator_fc.i
index 254b07ec9..c1816c647 100644
--- a/gnuradio-core/src/lib/general/gr_phase_modulator_fc.i
+++ b/gnuradio-core/src/lib/general/gr_phase_modulator_fc.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2006 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,
@@ -26,6 +26,6 @@ gr_phase_modulator_fc_sptr gr_make_phase_modulator_fc (double sensitivity);
class gr_phase_modulator_fc : public gr_sync_block
{
- private:
+ private:
gr_phase_modulator_fc (double sensitivity);
};
diff --git a/gnuradio-core/src/lib/general/gr_pll_carriertracking_cc.cc b/gnuradio-core/src/lib/general/gr_pll_carriertracking_cc.cc
index e8ec1e235..b7b1291a3 100644
--- a/gnuradio-core/src/lib/general/gr_pll_carriertracking_cc.cc
+++ b/gnuradio-core/src/lib/general/gr_pll_carriertracking_cc.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2010,2011 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,
@@ -99,7 +99,7 @@ gr_pll_carriertracking_cc::work (int noutput_items,
float error;
float t_imag, t_real;
-
+
for (int i = 0; i < noutput_items; i++){
gr_sincosf(d_phase, &t_imag, &t_real);
optr[i] = iptr[i] * gr_complex(t_real, -t_imag);
@@ -112,7 +112,7 @@ gr_pll_carriertracking_cc::work (int noutput_items,
d_locksig = d_locksig * (1.0 - d_alpha) + \
d_alpha*(iptr[i].real() * t_real + iptr[i].imag() * t_imag);
-
+
if ((d_squelch_enable) && !lock_detector())
optr[i] = 0;
}
diff --git a/gnuradio-core/src/lib/general/gr_pll_carriertracking_cc.h b/gnuradio-core/src/lib/general/gr_pll_carriertracking_cc.h
index db74bb101..b3bc5ddd0 100644
--- a/gnuradio-core/src/lib/general/gr_pll_carriertracking_cc.h
+++ b/gnuradio-core/src/lib/general/gr_pll_carriertracking_cc.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2006,2011 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,
@@ -34,7 +34,7 @@ GR_CORE_API gr_pll_carriertracking_cc_sptr gr_make_pll_carriertracking_cc (float
float max_freq,
float min_freq);
/*!
- * \brief Implements a PLL which locks to the input frequency and outputs the
+ * \brief Implements a PLL which locks to the input frequency and outputs the
* input signal mixed with that carrier.
* \ingroup sync_blk
*
@@ -42,8 +42,8 @@ GR_CORE_API gr_pll_carriertracking_cc_sptr gr_make_pll_carriertracking_cc (float
*
* This PLL locks onto a [possibly noisy] reference carrier on
* the input and outputs that signal, downconverted to DC
- *
- * All settings max_freq and min_freq are in terms of radians per sample,
+ *
+ * All settings max_freq and min_freq are in terms of radians per sample,
* NOT HERTZ. The loop bandwidth determins the lock range and should be set
* around pi/200 -- 2pi/100.
* \sa gr_pll_freqdet_cf, gr_pll_carriertracking_cc
diff --git a/gnuradio-core/src/lib/general/gr_pll_carriertracking_cc.i b/gnuradio-core/src/lib/general/gr_pll_carriertracking_cc.i
index d309111b2..a20adf7e2 100644
--- a/gnuradio-core/src/lib/general/gr_pll_carriertracking_cc.i
+++ b/gnuradio-core/src/lib/general/gr_pll_carriertracking_cc.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2011 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,
@@ -23,7 +23,7 @@
GR_SWIG_BLOCK_MAGIC(gr,pll_carriertracking_cc);
gr_pll_carriertracking_cc_sptr
-gr_make_pll_carriertracking_cc (float loop_bw,
+gr_make_pll_carriertracking_cc (float loop_bw,
float max_freq,
float min_freq);
diff --git a/gnuradio-core/src/lib/general/gr_pll_freqdet_cf.cc b/gnuradio-core/src/lib/general/gr_pll_freqdet_cf.cc
index aa0d67855..f80f4ed07 100644
--- a/gnuradio-core/src/lib/general/gr_pll_freqdet_cf.cc
+++ b/gnuradio-core/src/lib/general/gr_pll_freqdet_cf.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010,2011 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,
@@ -43,7 +43,7 @@ gr_pll_freqdet_cf::gr_pll_freqdet_cf (float loop_bw, float max_freq, float min_f
: gr_sync_block ("pll_freqdet_cf",
gr_make_io_signature (1, 1, sizeof (gr_complex)),
gr_make_io_signature (1, 1, sizeof (float))),
- gri_control_loop(loop_bw, max_freq, min_freq)
+ gri_control_loop(loop_bw, max_freq, min_freq)
{
}
@@ -76,12 +76,12 @@ gr_pll_freqdet_cf::work (int noutput_items,
float error;
int size = noutput_items;
-
+
while (size-- > 0) {
*optr++ = d_freq;
error = phase_detector(*iptr++,d_phase);
-
+
advance_loop(error);
phase_wrap();
frequency_limit();
diff --git a/gnuradio-core/src/lib/general/gr_pll_freqdet_cf.h b/gnuradio-core/src/lib/general/gr_pll_freqdet_cf.h
index 336f3fd31..3dfc8d709 100644
--- a/gnuradio-core/src/lib/general/gr_pll_freqdet_cf.h
+++ b/gnuradio-core/src/lib/general/gr_pll_freqdet_cf.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2011 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,
@@ -34,7 +34,7 @@ GR_CORE_API gr_pll_freqdet_cf_sptr gr_make_pll_freqdet_cf (float loop_bw,
float max_freq,
float min_freq);
/*!
- * \brief Implements a PLL which locks to the input frequency and outputs
+ * \brief Implements a PLL which locks to the input frequency and outputs
* an estimate of that frequency. Useful for FM Demod.
* \ingroup sync_blk
*
@@ -42,7 +42,7 @@ GR_CORE_API gr_pll_freqdet_cf_sptr gr_make_pll_freqdet_cf (float loop_bw,
*
* This PLL locks onto a [possibly noisy] reference carrier on
* the input and outputs an estimate of that frequency in radians per sample.
- * All settings max_freq and min_freq are in terms of radians per sample,
+ * All settings max_freq and min_freq are in terms of radians per sample,
* NOT HERTZ. The loop bandwidth determins the lock range and should be set
* around pi/200 -- 2pi/100.
* \sa gr_pll_refout_cc, gr_pll_carriertracking_cc
diff --git a/gnuradio-core/src/lib/general/gr_pll_freqdet_cf.i b/gnuradio-core/src/lib/general/gr_pll_freqdet_cf.i
index f93e6e37e..87e515adb 100644
--- a/gnuradio-core/src/lib/general/gr_pll_freqdet_cf.i
+++ b/gnuradio-core/src/lib/general/gr_pll_freqdet_cf.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2011 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,
@@ -22,7 +22,7 @@
GR_SWIG_BLOCK_MAGIC(gr,pll_freqdet_cf)
- gr_pll_freqdet_cf_sptr gr_make_pll_freqdet_cf (float loop_bw,
+ gr_pll_freqdet_cf_sptr gr_make_pll_freqdet_cf (float loop_bw,
float max_freq,
float min_freq);
diff --git a/gnuradio-core/src/lib/general/gr_pll_refout_cc.cc b/gnuradio-core/src/lib/general/gr_pll_refout_cc.cc
index dfd5079da..9f95c3f64 100644
--- a/gnuradio-core/src/lib/general/gr_pll_refout_cc.cc
+++ b/gnuradio-core/src/lib/general/gr_pll_refout_cc.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010,2011 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,
@@ -78,13 +78,13 @@ gr_pll_refout_cc::work (int noutput_items,
float error;
float t_imag, t_real;
int size = noutput_items;
-
+
while (size-- > 0) {
gr_sincosf(d_phase,&t_imag,&t_real);
*optr++ = gr_complex(t_real,t_imag);
error = phase_detector(*iptr++,d_phase);
-
+
advance_loop(error);
phase_wrap();
frequency_limit();
diff --git a/gnuradio-core/src/lib/general/gr_pll_refout_cc.h b/gnuradio-core/src/lib/general/gr_pll_refout_cc.h
index dcbeb1efa..ef5cd31e2 100644
--- a/gnuradio-core/src/lib/general/gr_pll_refout_cc.h
+++ b/gnuradio-core/src/lib/general/gr_pll_refout_cc.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2011 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,
@@ -41,8 +41,8 @@ GR_CORE_API gr_pll_refout_cc_sptr gr_make_pll_refout_cc (float loop_bw,
* This PLL locks onto a [possibly noisy] reference carrier on
* the input and outputs a clean version which is phase and frequency
* aligned to it.
- *
- * All settings max_freq and min_freq are in terms of radians per sample,
+ *
+ * All settings max_freq and min_freq are in terms of radians per sample,
* NOT HERTZ. The loop bandwidth determins the lock range and should be set
* around pi/200 -- 2pi/100.
* \sa gr_pll_freqdet_cf, gr_pll_carriertracking_cc
diff --git a/gnuradio-core/src/lib/general/gr_pll_refout_cc.i b/gnuradio-core/src/lib/general/gr_pll_refout_cc.i
index 834ea1e36..630c0444f 100644
--- a/gnuradio-core/src/lib/general/gr_pll_refout_cc.i
+++ b/gnuradio-core/src/lib/general/gr_pll_refout_cc.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2011 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,
@@ -22,7 +22,7 @@
GR_SWIG_BLOCK_MAGIC(gr,pll_refout_cc)
-gr_pll_refout_cc_sptr gr_make_pll_refout_cc (float loop_bw,
+gr_pll_refout_cc_sptr gr_make_pll_refout_cc (float loop_bw,
float max_freq, float min_freq);
class gr_pll_refout_cc : public gr_sync_block, public gri_control_loop
diff --git a/gnuradio-core/src/lib/general/gr_pn_correlator_cc.cc b/gnuradio-core/src/lib/general/gr_pn_correlator_cc.cc
index 37e7b803c..818e48c34 100644
--- a/gnuradio-core/src/lib/general/gr_pn_correlator_cc.cc
+++ b/gnuradio-core/src/lib/general/gr_pn_correlator_cc.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007,2010 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,
diff --git a/gnuradio-core/src/lib/general/gr_pn_correlator_cc.h b/gnuradio-core/src/lib/general/gr_pn_correlator_cc.h
index 75e2d1c7b..69bd2c502 100644
--- a/gnuradio-core/src/lib/general/gr_pn_correlator_cc.h
+++ b/gnuradio-core/src/lib/general/gr_pn_correlator_cc.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007 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,
diff --git a/gnuradio-core/src/lib/general/gr_pn_correlator_cc.i b/gnuradio-core/src/lib/general/gr_pn_correlator_cc.i
index a5115d360..e992f33a7 100644
--- a/gnuradio-core/src/lib/general/gr_pn_correlator_cc.i
+++ b/gnuradio-core/src/lib/general/gr_pn_correlator_cc.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007 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,
@@ -22,7 +22,7 @@
GR_SWIG_BLOCK_MAGIC(gr,pn_correlator_cc)
-gr_pn_correlator_cc_sptr
+gr_pn_correlator_cc_sptr
gr_make_pn_correlator_cc(int degree, int mask=0, int seed=1);
class gr_pn_correlator_cc : public gr_sync_decimator
diff --git a/gnuradio-core/src/lib/general/gr_prefs.cc b/gnuradio-core/src/lib/general/gr_prefs.cc
index a27c5db46..20aead8e3 100644
--- a/gnuradio-core/src/lib/general/gr_prefs.cc
+++ b/gnuradio-core/src/lib/general/gr_prefs.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gnuradio-core/src/lib/general/gr_prefs.h b/gnuradio-core/src/lib/general/gr_prefs.h
index 8ceb5b465..b1c354bd3 100644
--- a/gnuradio-core/src/lib/general/gr_prefs.h
+++ b/gnuradio-core/src/lib/general/gr_prefs.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gnuradio-core/src/lib/general/gr_prefs.i b/gnuradio-core/src/lib/general/gr_prefs.i
index 737b66397..f44dcc944 100644
--- a/gnuradio-core/src/lib/general/gr_prefs.i
+++ b/gnuradio-core/src/lib/general/gr_prefs.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_c.cc b/gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_c.cc
index c00eb5cdf..6430d2753 100644
--- a/gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_c.cc
+++ b/gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_c.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2010 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,
diff --git a/gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_c.h b/gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_c.h
index e857686a8..2811677cf 100644
--- a/gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_c.h
+++ b/gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_c.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2006 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,
diff --git a/gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_c.i b/gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_c.i
index aaba25079..bce244c12 100644
--- a/gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_c.i
+++ b/gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_c.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_cf.cc b/gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_cf.cc
index 5350028a7..b5946283b 100644
--- a/gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_cf.cc
+++ b/gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_cf.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2007,2010 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,
diff --git a/gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_cf.h b/gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_cf.h
index a85afcf3b..bb5d1ebf9 100644
--- a/gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_cf.h
+++ b/gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_cf.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2006 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,
diff --git a/gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_cf.i b/gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_cf.i
index 646b4b672..bf76d973b 100644
--- a/gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_cf.i
+++ b/gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_cf.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_f.cc b/gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_f.cc
index d3b0e2d37..4ed40743f 100644
--- a/gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_f.cc
+++ b/gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_f.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2010 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,
diff --git a/gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_f.h b/gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_f.h
index 4181ccf46..b2efcc64e 100644
--- a/gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_f.h
+++ b/gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_f.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_f.i b/gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_f.i
index 5c6ac5390..1c63ae8e9 100644
--- a/gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_f.i
+++ b/gnuradio-core/src/lib/general/gr_probe_avg_mag_sqrd_f.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gnuradio-core/src/lib/general/gr_probe_density_b.cc b/gnuradio-core/src/lib/general/gr_probe_density_b.cc
index 70b03e881..31661780a 100644
--- a/gnuradio-core/src/lib/general/gr_probe_density_b.cc
+++ b/gnuradio-core/src/lib/general/gr_probe_density_b.cc
@@ -1,17 +1,17 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2010 Free Software Foundation, Inc.
- *
+ *
* 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,
@@ -27,7 +27,7 @@
#include <stdexcept>
#include <iostream>
-gr_probe_density_b_sptr
+gr_probe_density_b_sptr
gr_make_probe_density_b(double alpha)
{
return gnuradio::get_initial_sptr(new gr_probe_density_b(alpha));
@@ -46,7 +46,7 @@ gr_probe_density_b::~gr_probe_density_b()
{
}
-int
+int
gr_probe_density_b::work(int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items)
diff --git a/gnuradio-core/src/lib/general/gr_probe_density_b.h b/gnuradio-core/src/lib/general/gr_probe_density_b.h
index 0af30c665..ab84a63a9 100644
--- a/gnuradio-core/src/lib/general/gr_probe_density_b.h
+++ b/gnuradio-core/src/lib/general/gr_probe_density_b.h
@@ -1,17 +1,17 @@
/* -*- c++ -*- */
/*
* Copyright 2008 Free Software Foundation, Inc.
- *
+ *
* 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,
@@ -54,7 +54,7 @@ private:
public:
~gr_probe_density_b();
-
+
/*!
* \brief Returns the current density value
*/
diff --git a/gnuradio-core/src/lib/general/gr_probe_density_b.i b/gnuradio-core/src/lib/general/gr_probe_density_b.i
index 54ed07cf5..ca65708af 100644
--- a/gnuradio-core/src/lib/general/gr_probe_density_b.i
+++ b/gnuradio-core/src/lib/general/gr_probe_density_b.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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,
diff --git a/gnuradio-core/src/lib/general/gr_pwr_squelch_cc.cc b/gnuradio-core/src/lib/general/gr_pwr_squelch_cc.cc
index d2fee1a57..90eab13eb 100644
--- a/gnuradio-core/src/lib/general/gr_pwr_squelch_cc.cc
+++ b/gnuradio-core/src/lib/general/gr_pwr_squelch_cc.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2006,2010 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,
@@ -32,7 +32,7 @@ gr_make_pwr_squelch_cc(double threshold, double alpha, int ramp, bool gate)
return gnuradio::get_initial_sptr(new gr_pwr_squelch_cc(threshold, alpha, ramp, gate));
}
-gr_pwr_squelch_cc::gr_pwr_squelch_cc(double threshold, double alpha, int ramp, bool gate) :
+gr_pwr_squelch_cc::gr_pwr_squelch_cc(double threshold, double alpha, int ramp, bool gate) :
gr_squelch_base_cc("pwr_squelch_cc", ramp, gate),
d_iir(alpha)
{
diff --git a/gnuradio-core/src/lib/general/gr_pwr_squelch_cc.h b/gnuradio-core/src/lib/general/gr_pwr_squelch_cc.h
index 2a008d92d..b2b4624f5 100644
--- a/gnuradio-core/src/lib/general/gr_pwr_squelch_cc.h
+++ b/gnuradio-core/src/lib/general/gr_pwr_squelch_cc.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
@@ -31,7 +31,7 @@
class gr_pwr_squelch_cc;
typedef boost::shared_ptr<gr_pwr_squelch_cc> gr_pwr_squelch_cc_sptr;
-GR_CORE_API gr_pwr_squelch_cc_sptr
+GR_CORE_API gr_pwr_squelch_cc_sptr
gr_make_pwr_squelch_cc(double db, double alpha = 0.0001, int ramp=0, bool gate=false);
/*!
@@ -51,7 +51,7 @@ private:
protected:
virtual void update_state(const gr_complex &in);
virtual bool mute() const { return d_pwr < d_threshold; }
-
+
public:
std::vector<float> squelch_range() const;
diff --git a/gnuradio-core/src/lib/general/gr_pwr_squelch_cc.i b/gnuradio-core/src/lib/general/gr_pwr_squelch_cc.i
index d2e8718c8..c8cafd7aa 100644
--- a/gnuradio-core/src/lib/general/gr_pwr_squelch_cc.i
+++ b/gnuradio-core/src/lib/general/gr_pwr_squelch_cc.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2009 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,
@@ -26,7 +26,7 @@ GR_SWIG_BLOCK_MAGIC(gr,pwr_squelch_cc);
// the base class has a pure virual method.
%import "gr_squelch_base_cc.i"
-gr_pwr_squelch_cc_sptr
+gr_pwr_squelch_cc_sptr
gr_make_pwr_squelch_cc(double db, double alpha=0.0001, int ramp=0, bool gate=false);
class gr_pwr_squelch_cc : public gr_squelch_base_cc
diff --git a/gnuradio-core/src/lib/general/gr_pwr_squelch_ff.cc b/gnuradio-core/src/lib/general/gr_pwr_squelch_ff.cc
index a689c407c..cfa867243 100644
--- a/gnuradio-core/src/lib/general/gr_pwr_squelch_ff.cc
+++ b/gnuradio-core/src/lib/general/gr_pwr_squelch_ff.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2006,2010 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,
@@ -32,7 +32,7 @@ gr_make_pwr_squelch_ff(double threshold, double alpha, int ramp, bool gate)
return gnuradio::get_initial_sptr(new gr_pwr_squelch_ff(threshold, alpha, ramp, gate));
}
-gr_pwr_squelch_ff::gr_pwr_squelch_ff(double threshold, double alpha, int ramp, bool gate) :
+gr_pwr_squelch_ff::gr_pwr_squelch_ff(double threshold, double alpha, int ramp, bool gate) :
gr_squelch_base_ff("pwr_squelch_ff", ramp, gate),
d_iir(alpha)
{
diff --git a/gnuradio-core/src/lib/general/gr_pwr_squelch_ff.h b/gnuradio-core/src/lib/general/gr_pwr_squelch_ff.h
index 27a7306b3..d5148c409 100644
--- a/gnuradio-core/src/lib/general/gr_pwr_squelch_ff.h
+++ b/gnuradio-core/src/lib/general/gr_pwr_squelch_ff.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
@@ -31,7 +31,7 @@
class gr_pwr_squelch_ff;
typedef boost::shared_ptr<gr_pwr_squelch_ff> gr_pwr_squelch_ff_sptr;
-GR_CORE_API gr_pwr_squelch_ff_sptr
+GR_CORE_API gr_pwr_squelch_ff_sptr
gr_make_pwr_squelch_ff(double db, double alpha = 0.0001, int ramp=0, bool gate=false);
/*!
@@ -51,7 +51,7 @@ private:
protected:
virtual void update_state(const float &in);
virtual bool mute() const { return d_pwr < d_threshold; }
-
+
public:
std::vector<float> squelch_range() const;
diff --git a/gnuradio-core/src/lib/general/gr_pwr_squelch_ff.i b/gnuradio-core/src/lib/general/gr_pwr_squelch_ff.i
index 4cb16c4ca..2682f2758 100644
--- a/gnuradio-core/src/lib/general/gr_pwr_squelch_ff.i
+++ b/gnuradio-core/src/lib/general/gr_pwr_squelch_ff.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2009 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,
@@ -26,7 +26,7 @@ GR_SWIG_BLOCK_MAGIC(gr,pwr_squelch_ff);
// the base class has a pure virual method.
%import "gr_squelch_base_ff.i"
-gr_pwr_squelch_ff_sptr
+gr_pwr_squelch_ff_sptr
gr_make_pwr_squelch_ff(double db, double alpha=0.0001, int ramp=0, bool gate=false);
class gr_pwr_squelch_ff : public gr_squelch_base_ff
diff --git a/gnuradio-core/src/lib/general/gr_quadrature_demod_cf.cc b/gnuradio-core/src/lib/general/gr_quadrature_demod_cf.cc
index 8e59fbd71..fa0958276 100644
--- a/gnuradio-core/src/lib/general/gr_quadrature_demod_cf.cc
+++ b/gnuradio-core/src/lib/general/gr_quadrature_demod_cf.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2005,2010 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,
@@ -51,7 +51,7 @@ gr_quadrature_demod_cf::work (int noutput_items,
gr_complex *in = (gr_complex *) input_items[0];
float *out = (float *) output_items[0];
in++; // ensure that in[-1] is valid
-
+
for (int i = 0; i < noutput_items; i++){
gr_complex product = in[i] * conj (in[i-1]);
// out[i] = d_gain * arg (product);
diff --git a/gnuradio-core/src/lib/general/gr_quadrature_demod_cf.h b/gnuradio-core/src/lib/general/gr_quadrature_demod_cf.h
index 755f2839a..9f5976c97 100644
--- a/gnuradio-core/src/lib/general/gr_quadrature_demod_cf.h
+++ b/gnuradio-core/src/lib/general/gr_quadrature_demod_cf.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/general/gr_quadrature_demod_cf.i b/gnuradio-core/src/lib/general/gr_quadrature_demod_cf.i
index d9f338daa..4c9168e64 100644
--- a/gnuradio-core/src/lib/general/gr_quadrature_demod_cf.i
+++ b/gnuradio-core/src/lib/general/gr_quadrature_demod_cf.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/general/gr_rail_ff.cc b/gnuradio-core/src/lib/general/gr_rail_ff.cc
index 260897199..cd33c10d3 100644
--- a/gnuradio-core/src/lib/general/gr_rail_ff.cc
+++ b/gnuradio-core/src/lib/general/gr_rail_ff.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
@@ -48,7 +48,7 @@ gr_rail_ff::work(int noutput_items,
{
const float *in = (const float *) input_items[0];
float *out = (float *) output_items[0];
-
+
for (int i = 0; i < noutput_items; i++) {
if (in[i] < d_lo)
out[i] = d_lo;
diff --git a/gnuradio-core/src/lib/general/gr_rail_ff.h b/gnuradio-core/src/lib/general/gr_rail_ff.h
index 225bdf36e..29db5b1fa 100644
--- a/gnuradio-core/src/lib/general/gr_rail_ff.h
+++ b/gnuradio-core/src/lib/general/gr_rail_ff.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/general/gr_rail_ff.i b/gnuradio-core/src/lib/general/gr_rail_ff.i
index ae39b76de..bdc453516 100644
--- a/gnuradio-core/src/lib/general/gr_rail_ff.i
+++ b/gnuradio-core/src/lib/general/gr_rail_ff.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
diff --git a/gnuradio-core/src/lib/general/gr_random.cc b/gnuradio-core/src/lib/general/gr_random.cc
index 52140acc2..323839acc 100644
--- a/gnuradio-core/src/lib/general/gr_random.cc
+++ b/gnuradio-core/src/lib/general/gr_random.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,
@@ -22,7 +22,7 @@
/*
* Copyright 1997 Massachusetts Institute of Technology
- *
+ *
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appear in all copies and that both that
@@ -32,7 +32,7 @@
* written prior permission. M.I.T. makes no representations about the
* suitability of this software for any purpose. It is provided "as is"
* without express or implied warranty.
- *
+ *
*/
#ifdef HAVE_CONFIG_H
@@ -76,18 +76,18 @@ float gr_random::ran1()
int j;
long k;
float temp;
-
+
if (d_seed <= 0 || !d_iy) {
- if (-d_seed < 1)
+ if (-d_seed < 1)
d_seed=1;
- else
+ else
d_seed = -d_seed;
for (j=NTAB+7;j>=0;j--) {
k=d_seed/IQ;
d_seed=IA*(d_seed-k*IQ)-IR*k;
- if (d_seed < 0)
+ if (d_seed < 0)
d_seed += IM;
- if (j < NTAB)
+ if (j < NTAB)
d_iv[j] = d_seed;
}
d_iy=d_iv[0];
@@ -150,16 +150,16 @@ float gr_random::laplacian()
float gr_random::impulse(float factor = 5)
{
float z = -M_SQRT2 * log(ran1());
- if (fabsf(z) <= factor)
+ if (fabsf(z) <= factor)
return 0.0;
- else
+ else
return z;
}
/*
* Complex rayleigh is really gaussian I and gaussian Q
* It can also be generated by real rayleigh magnitude and
- * uniform random angle
+ * uniform random angle
* Adapted from The KC7WW / OH2BNS Channel Simulator
* FIXME Need to check how good this is at some point
*/
diff --git a/gnuradio-core/src/lib/general/gr_random.h b/gnuradio-core/src/lib/general/gr_random.h
index 13dbbfb04..96a8f4418 100644
--- a/gnuradio-core/src/lib/general/gr_random.h
+++ b/gnuradio-core/src/lib/general/gr_random.h
@@ -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,
@@ -39,8 +39,8 @@ protected:
int d_iset;
float d_gset;
-
-public:
+
+public:
gr_random (long seed=3021);
void reseed (long seed);
diff --git a/gnuradio-core/src/lib/general/gr_regenerate_bb.cc b/gnuradio-core/src/lib/general/gr_regenerate_bb.cc
index 3bb8be105..c96cf247d 100644
--- a/gnuradio-core/src/lib/general/gr_regenerate_bb.cc
+++ b/gnuradio-core/src/lib/general/gr_regenerate_bb.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007,2010 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,
@@ -71,14 +71,14 @@ gr_regenerate_bb::work (int noutput_items,
if(d_regen_count < d_max_regen) {
d_countdown--;
-
+
if(d_countdown == 0) {
optr[i] = 1;
d_countdown = d_period;
d_regen_count++;
}
}
-
+
if(iptr[i] == 1) {
d_countdown = d_period;
optr[i] = 1;
diff --git a/gnuradio-core/src/lib/general/gr_regenerate_bb.h b/gnuradio-core/src/lib/general/gr_regenerate_bb.h
index 67cfedac7..e820db69e 100644
--- a/gnuradio-core/src/lib/general/gr_regenerate_bb.h
+++ b/gnuradio-core/src/lib/general/gr_regenerate_bb.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007 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,
@@ -35,7 +35,7 @@ GR_CORE_API gr_regenerate_bb_sptr gr_make_regenerate_bb (int period, unsigned in
* \brief Detect the peak of a signal and repeat every period samples
* \ingroup level_blk
*
- * If a peak is detected, this block outputs a 1 repeated every period samples
+ * If a peak is detected, this block outputs a 1 repeated every period samples
* until reset by detection of another 1 on the input or stopped after max_regen
* regenerations have occurred.
*
@@ -46,7 +46,7 @@ class GR_CORE_API gr_regenerate_bb : public gr_sync_block
/*!
* \brief Make a regenerate block
* \param period The number of samples between regenerations
- * \param max_regen The maximum number of regenerations to perform; if set to
+ * \param max_regen The maximum number of regenerations to perform; if set to
* ULONG_MAX, it will regenerate continuously.
*/
friend GR_CORE_API gr_regenerate_bb_sptr gr_make_regenerate_bb (int period, unsigned int max_regen);
diff --git a/gnuradio-core/src/lib/general/gr_regenerate_bb.i b/gnuradio-core/src/lib/general/gr_regenerate_bb.i
index 7b29b92b7..064b0a278 100644
--- a/gnuradio-core/src/lib/general/gr_regenerate_bb.i
+++ b/gnuradio-core/src/lib/general/gr_regenerate_bb.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007 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,
@@ -31,7 +31,7 @@ class gr_regenerate_bb : public gr_sync_block
public:
void set_max_regen(unsigned int regen);
-
+
/*! \brief Reset the period of regenerations; this will reset the current regen.
*/
void set_period(int period);
diff --git a/gnuradio-core/src/lib/general/gr_remez.cc b/gnuradio-core/src/lib/general/gr_remez.cc
index 86c2901b5..db4789e43 100644
--- a/gnuradio-core/src/lib/general/gr_remez.cc
+++ b/gnuradio-core/src/lib/general/gr_remez.cc
@@ -95,7 +95,7 @@
* double W[] - Weight function on the dense grid [gridsize]
*******************/
-static void
+static void
CreateDenseGrid (int r, int numtaps, int numband, const double bands[],
const double des[], const double weight[], int gridsize,
double Grid[], double D[], double W[],
@@ -148,7 +148,7 @@ CreateDenseGrid (int r, int numtaps, int numband, const double bands[],
* Places Extremal Frequencies evenly throughout the dense grid.
*
*
- * INPUT:
+ * INPUT:
* ------
* int r - 1/2 the number of filter coefficients
* int gridsize - Number of elements in the dense frequency grid
@@ -426,7 +426,7 @@ Search (int r, int Ext[],
else if ((!up) && (E[foundExt[j]] > 0.0))
up = 1; /* switch to a maxima */
else
- {
+ {
alt = 0;
// PAK: break now and you will delete the smallest overall
// extremal. If you want to delete the smallest of the
@@ -447,11 +447,11 @@ Search (int r, int Ext[],
if (fabs(E[foundExt[k-1]]) < fabs(E[foundExt[0]]))
/* Delete last extremal */
l = k-1;
- // PAK: changed from l = foundExt[k-1];
+ // PAK: changed from l = foundExt[k-1];
else
/* Delete first extremal */
l = 0;
- // PAK: changed from l = foundExt[0];
+ // PAK: changed from l = foundExt[0];
}
for (j=l; j<k-1; j++) /* Loop that does the deletion */
@@ -611,7 +611,7 @@ isDone (int r, int Ext[], double E[])
static int
remez (double h[], int numtaps,
- int numband, const double bands[],
+ int numband, const double bands[],
const double des[], const double weight[],
int type, int griddensity)
{
@@ -689,7 +689,7 @@ remez (double h[], int numtaps,
{
c = cos(Pi * Grid[i]);
D[i] /= c;
- W[i] *= c;
+ W[i] *= c;
}
}
}
@@ -782,7 +782,7 @@ remez (double h[], int numtaps,
static void
-punt (const std::string msg)
+punt (const std::string msg)
{
std::cerr << msg << '\n';
throw std::runtime_error (msg);
@@ -836,13 +836,13 @@ gr_remez (int order,
for (int i = 0; i < numbands; i++)
weight[i] = arg_weight [i];
}
-
+
int itype = 0;
- if (filter_type == "bandpass")
+ if (filter_type == "bandpass")
itype = BANDPASS;
- else if (filter_type == "differentiator")
+ else if (filter_type == "differentiator")
itype = DIFFERENTIATOR;
- else if (filter_type == "hilbert")
+ else if (filter_type == "hilbert")
itype = HILBERT;
else
punt ("gr_remez: unknown ftype '" + filter_type + "'");
@@ -960,8 +960,8 @@ Frequency is in the range (0, 1), with 1 being the nyquist frequency")
}
}
if (nargin > 5) {
- if (args(5).is_real_scalar()
- && !args(4).is_real_scalar()
+ if (args(5).is_real_scalar()
+ && !args(4).is_real_scalar()
&& !args(3).is_real_scalar())
density = NINT(args(4).double_value());
else {
@@ -971,11 +971,11 @@ Frequency is in the range (0, 1), with 1 being the nyquist frequency")
}
int itype;
- if (stype == "bandpass")
+ if (stype == "bandpass")
itype = BANDPASS;
- else if (stype == "differentiator")
+ else if (stype == "differentiator")
itype = DIFFERENTIATOR;
- else if (stype == "hilbert")
+ else if (stype == "hilbert")
itype = HILBERT;
else {
error("remez: unknown ftype '%s'", stype.data());
diff --git a/gnuradio-core/src/lib/general/gr_remez.h b/gnuradio-core/src/lib/general/gr_remez.h
index f7b8a72a3..d875b8822 100644
--- a/gnuradio-core/src/lib/general/gr_remez.h
+++ b/gnuradio-core/src/lib/general/gr_remez.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/general/gr_remez.i b/gnuradio-core/src/lib/general/gr_remez.i
index d3140744b..fe3eea20d 100644
--- a/gnuradio-core/src/lib/general/gr_remez.i
+++ b/gnuradio-core/src/lib/general/gr_remez.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/general/gr_repeat.cc b/gnuradio-core/src/lib/general/gr_repeat.cc
index 43ad50f52..2fa82cd94 100644
--- a/gnuradio-core/src/lib/general/gr_repeat.cc
+++ b/gnuradio-core/src/lib/general/gr_repeat.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2010 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,
@@ -28,13 +28,13 @@
#include <gr_io_signature.h>
#include <string.h>
-gr_repeat_sptr
+gr_repeat_sptr
gr_make_repeat(size_t itemsize, int interp)
{
return gnuradio::get_initial_sptr(new gr_repeat(itemsize, interp));
}
-gr_repeat::gr_repeat(size_t itemsize, int interp)
+gr_repeat::gr_repeat(size_t itemsize, int interp)
: gr_sync_interpolator("extend",
gr_make_io_signature(1, 1, itemsize),
gr_make_io_signature(1, 1, itemsize),
@@ -48,7 +48,7 @@ gr_repeat::~gr_repeat()
{
}
-int
+int
gr_repeat::work(int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items)
diff --git a/gnuradio-core/src/lib/general/gr_repeat.h b/gnuradio-core/src/lib/general/gr_repeat.h
index b90f2f51d..548ca79f4 100644
--- a/gnuradio-core/src/lib/general/gr_repeat.h
+++ b/gnuradio-core/src/lib/general/gr_repeat.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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,
@@ -40,7 +40,7 @@ class GR_CORE_API gr_repeat : public gr_sync_interpolator
{
private:
friend GR_CORE_API gr_repeat_sptr gr_make_repeat(size_t itemsize, int interp);
-
+
gr_repeat(size_t itemsize, int interp);
int d_interp;
diff --git a/gnuradio-core/src/lib/general/gr_reverse.cc b/gnuradio-core/src/lib/general/gr_reverse.cc
index 5cbddb579..08c588cb5 100644
--- a/gnuradio-core/src/lib/general/gr_reverse.cc
+++ b/gnuradio-core/src/lib/general/gr_reverse.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
@@ -27,7 +27,7 @@
#include <gr_reverse.h>
-std::vector<float>
+std::vector<float>
gr_reverse (const std::vector<float> &taps)
{
int size = taps.size ();
@@ -43,7 +43,7 @@ gr_reverse (const std::vector<float> &taps)
}
-std::vector<gr_complex>
+std::vector<gr_complex>
gr_reverse (const std::vector<gr_complex> &taps)
{
int size = taps.size ();
diff --git a/gnuradio-core/src/lib/general/gr_reverse.h b/gnuradio-core/src/lib/general/gr_reverse.h
index 43d84fda7..15bf3cb73 100644
--- a/gnuradio-core/src/lib/general/gr_reverse.h
+++ b/gnuradio-core/src/lib/general/gr_reverse.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gnuradio-core/src/lib/general/gr_rms_cf.cc b/gnuradio-core/src/lib/general/gr_rms_cf.cc
index a7b5d99f1..44eb2221e 100644
--- a/gnuradio-core/src/lib/general/gr_rms_cf.cc
+++ b/gnuradio-core/src/lib/general/gr_rms_cf.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2010 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,
diff --git a/gnuradio-core/src/lib/general/gr_rms_cf.h b/gnuradio-core/src/lib/general/gr_rms_cf.h
index f1bd9802c..9e701aa6a 100644
--- a/gnuradio-core/src/lib/general/gr_rms_cf.h
+++ b/gnuradio-core/src/lib/general/gr_rms_cf.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gnuradio-core/src/lib/general/gr_rms_cf.i b/gnuradio-core/src/lib/general/gr_rms_cf.i
index 954a0525e..a668200ee 100644
--- a/gnuradio-core/src/lib/general/gr_rms_cf.i
+++ b/gnuradio-core/src/lib/general/gr_rms_cf.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gnuradio-core/src/lib/general/gr_rms_ff.cc b/gnuradio-core/src/lib/general/gr_rms_ff.cc
index 1ff4379f6..233f419cd 100644
--- a/gnuradio-core/src/lib/general/gr_rms_ff.cc
+++ b/gnuradio-core/src/lib/general/gr_rms_ff.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2010 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,
diff --git a/gnuradio-core/src/lib/general/gr_rms_ff.h b/gnuradio-core/src/lib/general/gr_rms_ff.h
index 0bbd53b70..30cf7f9d9 100644
--- a/gnuradio-core/src/lib/general/gr_rms_ff.h
+++ b/gnuradio-core/src/lib/general/gr_rms_ff.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gnuradio-core/src/lib/general/gr_rms_ff.i b/gnuradio-core/src/lib/general/gr_rms_ff.i
index de09ef75b..00b03f5d4 100644
--- a/gnuradio-core/src/lib/general/gr_rms_ff.i
+++ b/gnuradio-core/src/lib/general/gr_rms_ff.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gnuradio-core/src/lib/general/gr_scrambler_bb.cc b/gnuradio-core/src/lib/general/gr_scrambler_bb.cc
index 59bd1ca41..31eb19207 100644
--- a/gnuradio-core/src/lib/general/gr_scrambler_bb.cc
+++ b/gnuradio-core/src/lib/general/gr_scrambler_bb.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2010 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,
@@ -51,6 +51,6 @@ gr_scrambler_bb::work(int noutput_items,
for (int i = 0; i < noutput_items; i++)
out[i] = d_lfsr.next_bit_scramble(in[i]);
-
+
return noutput_items;
}
diff --git a/gnuradio-core/src/lib/general/gr_scrambler_bb.h b/gnuradio-core/src/lib/general/gr_scrambler_bb.h
index 79905933d..edb429e0a 100644
--- a/gnuradio-core/src/lib/general/gr_scrambler_bb.h
+++ b/gnuradio-core/src/lib/general/gr_scrambler_bb.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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,
@@ -33,9 +33,9 @@ GR_CORE_API gr_scrambler_bb_sptr gr_make_scrambler_bb(int mask, int seed, int le
/*!
* Scramble an input stream using an LFSR. This block works on the LSB only
- * of the input data stream, i.e., on an "unpacked binary" stream, and
+ * of the input data stream, i.e., on an "unpacked binary" stream, and
* produces the same format on its output.
- *
+ *
* \param mask Polynomial mask for LFSR
* \param seed Initial shift register contents
* \param len Shift register length
diff --git a/gnuradio-core/src/lib/general/gr_scrambler_bb.i b/gnuradio-core/src/lib/general/gr_scrambler_bb.i
index 9a607c4b1..a7ef7b364 100644
--- a/gnuradio-core/src/lib/general/gr_scrambler_bb.i
+++ b/gnuradio-core/src/lib/general/gr_scrambler_bb.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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,
diff --git a/gnuradio-core/src/lib/general/gr_short_to_char.cc b/gnuradio-core/src/lib/general/gr_short_to_char.cc
index a3c096e6d..9d6c41406 100644
--- a/gnuradio-core/src/lib/general/gr_short_to_char.cc
+++ b/gnuradio-core/src/lib/general/gr_short_to_char.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011,2012 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,
@@ -59,7 +59,7 @@ gr_short_to_char::work (int noutput_items,
else {
volk_16i_convert_8i_a(out, in, d_vlen*noutput_items);
}
-
+
return noutput_items;
}
diff --git a/gnuradio-core/src/lib/general/gr_short_to_char.h b/gnuradio-core/src/lib/general/gr_short_to_char.h
index f6b3b41ca..bf96211c7 100644
--- a/gnuradio-core/src/lib/general/gr_short_to_char.h
+++ b/gnuradio-core/src/lib/general/gr_short_to_char.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011,2012 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,
diff --git a/gnuradio-core/src/lib/general/gr_short_to_char.i b/gnuradio-core/src/lib/general/gr_short_to_char.i
index 330a4fdda..7389ed10b 100644
--- a/gnuradio-core/src/lib/general/gr_short_to_char.i
+++ b/gnuradio-core/src/lib/general/gr_short_to_char.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011,2012 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,
diff --git a/gnuradio-core/src/lib/general/gr_short_to_float.cc b/gnuradio-core/src/lib/general/gr_short_to_float.cc
index 94d376a27..960cf644d 100644
--- a/gnuradio-core/src/lib/general/gr_short_to_float.cc
+++ b/gnuradio-core/src/lib/general/gr_short_to_float.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010,2012 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 @@ gr_short_to_float::gr_short_to_float (size_t vlen, float scale)
set_alignment(alignment_multiple);
}
-float
+float
gr_short_to_float::scale() const
{
return d_scale;
diff --git a/gnuradio-core/src/lib/general/gr_short_to_float.h b/gnuradio-core/src/lib/general/gr_short_to_float.h
index e45d0b14b..362549e70 100644
--- a/gnuradio-core/src/lib/general/gr_short_to_float.h
+++ b/gnuradio-core/src/lib/general/gr_short_to_float.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2012 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,
@@ -49,7 +49,7 @@ class GR_CORE_API gr_short_to_float : public gr_sync_block
size_t d_vlen;
float d_scale;
-
+
public:
/*!
* Get the scalar divider value.
@@ -60,7 +60,7 @@ class GR_CORE_API gr_short_to_float : public gr_sync_block
* Set the scalar divider value.
*/
void set_scale(float scale);
-
+
virtual int work (int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items);
diff --git a/gnuradio-core/src/lib/general/gr_short_to_float.i b/gnuradio-core/src/lib/general/gr_short_to_float.i
index 229618890..e781e292c 100644
--- a/gnuradio-core/src/lib/general/gr_short_to_float.i
+++ b/gnuradio-core/src/lib/general/gr_short_to_float.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2012 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,
diff --git a/gnuradio-core/src/lib/general/gr_simple_correlator.cc b/gnuradio-core/src/lib/general/gr_simple_correlator.cc
index bdfa73ef3..9c2ebef15 100644
--- a/gnuradio-core/src/lib/general/gr_simple_correlator.cc
+++ b/gnuradio-core/src/lib/general/gr_simple_correlator.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
@@ -70,11 +70,11 @@ gr_simple_correlator::~gr_simple_correlator ()
{
#ifdef DEBUG_SIMPLE_CORRELATOR
fclose(d_debug_fp);
-#endif
+#endif
delete [] d_bitbuf;
delete [] d_pktbuf;
}
-
+
void
gr_simple_correlator::enter_looking ()
@@ -141,7 +141,7 @@ gr_simple_correlator::update_avg(float x)
d_accum += x;
d_avbi = (d_avbi + 1) & (AVG_PERIOD-1);
}
-
+
int
gr_simple_correlator::general_work (int noutput_items,
@@ -152,7 +152,7 @@ gr_simple_correlator::general_work (int noutput_items,
const float *in = (const float *) input_items[0];
unsigned char *out = (unsigned char *) output_items[0];
-
+
int n = 0;
int nin = ninput_items[0];
int decision;
@@ -181,7 +181,7 @@ gr_simple_correlator::general_work (int noutput_items,
debug_data.sampled = 1.0;
#endif
decision = slice (in[n]);
-
+
d_bitbuf[d_bbi] = decision;
d_bbi++;
if (d_bbi >= d_bblen){
@@ -219,7 +219,7 @@ gr_simple_correlator::general_work (int noutput_items,
default:
assert (0);
}
-
+
#ifdef DEBUG_SIMPLE_CORRELATOR
fwrite(&debug_data, sizeof (debug_data), 1, d_debug_fp);
#endif
diff --git a/gnuradio-core/src/lib/general/gr_simple_correlator.h b/gnuradio-core/src/lib/general/gr_simple_correlator.h
index 4c5f060cd..37d00c125 100644
--- a/gnuradio-core/src/lib/general/gr_simple_correlator.h
+++ b/gnuradio-core/src/lib/general/gr_simple_correlator.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -42,7 +42,7 @@ class GR_CORE_API gr_simple_correlator : public gr_block
{
static const int OVERSAMPLE = 8;
enum state_t { ST_LOOKING, ST_UNDER_THRESHOLD, ST_LOCKED };
-
+
int d_payload_bytesize;
state_t d_state;
unsigned int d_osi; // over sample index [0,OVERSAMPLE-1]
@@ -78,7 +78,7 @@ class GR_CORE_API gr_simple_correlator : public gr_block
void enter_locked ();
void enter_under_threshold ();
void enter_looking ();
-
+
static int add_index (int a, int b)
{
int t = a + b;
@@ -97,7 +97,7 @@ class GR_CORE_API gr_simple_correlator : public gr_block
return t;
}
-
+
public:
~gr_simple_correlator ();
diff --git a/gnuradio-core/src/lib/general/gr_simple_correlator.i b/gnuradio-core/src/lib/general/gr_simple_correlator.i
index b7d2fcb0a..24d133072 100644
--- a/gnuradio-core/src/lib/general/gr_simple_correlator.i
+++ b/gnuradio-core/src/lib/general/gr_simple_correlator.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/general/gr_simple_framer.cc b/gnuradio-core/src/lib/general/gr_simple_framer.cc
index 2a574a74e..506603bb7 100644
--- a/gnuradio-core/src/lib/general/gr_simple_framer.cc
+++ b/gnuradio-core/src/lib/general/gr_simple_framer.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
diff --git a/gnuradio-core/src/lib/general/gr_simple_framer.h b/gnuradio-core/src/lib/general/gr_simple_framer.h
index 15f392e4a..76a4b7bab 100644
--- a/gnuradio-core/src/lib/general/gr_simple_framer.h
+++ b/gnuradio-core/src/lib/general/gr_simple_framer.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/general/gr_simple_framer.i b/gnuradio-core/src/lib/general/gr_simple_framer.i
index 6421507c4..c13ead87b 100644
--- a/gnuradio-core/src/lib/general/gr_simple_framer.i
+++ b/gnuradio-core/src/lib/general/gr_simple_framer.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/general/gr_simple_framer_sync.h b/gnuradio-core/src/lib/general/gr_simple_framer_sync.h
index f28230b15..66173be42 100644
--- a/gnuradio-core/src/lib/general/gr_simple_framer_sync.h
+++ b/gnuradio-core/src/lib/general/gr_simple_framer_sync.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2005 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 @@ static const int GRSF_BITS_PER_BYTE = 8;
static const int GRSF_SYNC_OVERHEAD = sizeof(GRSF_SYNC);
static const int GRSF_PAYLOAD_OVERHEAD = 1; // 1 byte seqno
static const int GRSF_TAIL_PAD = 1; // one byte trailing padding
-static const int GRSF_OVERHEAD = GRSF_SYNC_OVERHEAD + GRSF_PAYLOAD_OVERHEAD + GRSF_TAIL_PAD;
+static const int GRSF_OVERHEAD = GRSF_SYNC_OVERHEAD + GRSF_PAYLOAD_OVERHEAD + GRSF_TAIL_PAD;
#endif /* INCLUDED_GR_SIMPLE_FRAMER_SYNC_H */
diff --git a/gnuradio-core/src/lib/general/gr_simple_squelch_cc.cc b/gnuradio-core/src/lib/general/gr_simple_squelch_cc.cc
index cdea8055b..5d90a3da4 100644
--- a/gnuradio-core/src/lib/general/gr_simple_squelch_cc.cc
+++ b/gnuradio-core/src/lib/general/gr_simple_squelch_cc.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2010 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,
diff --git a/gnuradio-core/src/lib/general/gr_simple_squelch_cc.h b/gnuradio-core/src/lib/general/gr_simple_squelch_cc.h
index 590b86de8..4bf62c7ec 100644
--- a/gnuradio-core/src/lib/general/gr_simple_squelch_cc.h
+++ b/gnuradio-core/src/lib/general/gr_simple_squelch_cc.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gnuradio-core/src/lib/general/gr_simple_squelch_cc.i b/gnuradio-core/src/lib/general/gr_simple_squelch_cc.i
index adce333cb..17b469e15 100644
--- a/gnuradio-core/src/lib/general/gr_simple_squelch_cc.i
+++ b/gnuradio-core/src/lib/general/gr_simple_squelch_cc.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gnuradio-core/src/lib/general/gr_skiphead.cc b/gnuradio-core/src/lib/general/gr_skiphead.cc
index 1670eb7cf..c887376e4 100644
--- a/gnuradio-core/src/lib/general/gr_skiphead.cc
+++ b/gnuradio-core/src/lib/general/gr_skiphead.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2007,2010 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,
diff --git a/gnuradio-core/src/lib/general/gr_skiphead.h b/gnuradio-core/src/lib/general/gr_skiphead.h
index 2beaaeab0..899b40f27 100644
--- a/gnuradio-core/src/lib/general/gr_skiphead.h
+++ b/gnuradio-core/src/lib/general/gr_skiphead.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gnuradio-core/src/lib/general/gr_skiphead.i b/gnuradio-core/src/lib/general/gr_skiphead.i
index 45cbd0437..3246db970 100644
--- a/gnuradio-core/src/lib/general/gr_skiphead.i
+++ b/gnuradio-core/src/lib/general/gr_skiphead.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2007,2010 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,
diff --git a/gnuradio-core/src/lib/general/gr_squelch_base_cc.cc b/gnuradio-core/src/lib/general/gr_squelch_base_cc.cc
index aabeb515e..b32a0a695 100644
--- a/gnuradio-core/src/lib/general/gr_squelch_base_cc.cc
+++ b/gnuradio-core/src/lib/general/gr_squelch_base_cc.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2006 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,
@@ -27,7 +27,7 @@
#include <gr_squelch_base_cc.h>
#include <gr_io_signature.h>
-gr_squelch_base_cc::gr_squelch_base_cc(const char *name, int ramp, bool gate) :
+gr_squelch_base_cc::gr_squelch_base_cc(const char *name, int ramp, bool gate) :
gr_block(name,
gr_make_io_signature(1, 1, sizeof(gr_complex)),
gr_make_io_signature(1, 1, sizeof(gr_complex)))
@@ -55,7 +55,7 @@ int gr_squelch_base_cc::general_work(int noutput_items,
// Adjust envelope based on current state
switch(d_state) {
case ST_MUTED:
- if (!mute())
+ if (!mute())
d_state = d_ramp ? ST_ATTACK : ST_UNMUTED; // If not ramping, go straight to unmuted
break;
@@ -78,7 +78,7 @@ int gr_squelch_base_cc::general_work(int noutput_items,
d_state = ST_MUTED;
break;
};
-
+
// If unmuted, copy input times envelope to output
// Otherwise, if not gating, copy zero to output
if (d_state != ST_MUTED)
diff --git a/gnuradio-core/src/lib/general/gr_squelch_base_cc.h b/gnuradio-core/src/lib/general/gr_squelch_base_cc.h
index 7c15e0121..f1814473f 100644
--- a/gnuradio-core/src/lib/general/gr_squelch_base_cc.h
+++ b/gnuradio-core/src/lib/general/gr_squelch_base_cc.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gnuradio-core/src/lib/general/gr_squelch_base_cc.i b/gnuradio-core/src/lib/general/gr_squelch_base_cc.i
index ea8dd62a3..6501b7d2b 100644
--- a/gnuradio-core/src/lib/general/gr_squelch_base_cc.i
+++ b/gnuradio-core/src/lib/general/gr_squelch_base_cc.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gnuradio-core/src/lib/general/gr_squelch_base_ff.cc b/gnuradio-core/src/lib/general/gr_squelch_base_ff.cc
index 32de7b3a0..4bf8cff97 100644
--- a/gnuradio-core/src/lib/general/gr_squelch_base_ff.cc
+++ b/gnuradio-core/src/lib/general/gr_squelch_base_ff.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2006 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,
@@ -27,7 +27,7 @@
#include <gr_squelch_base_ff.h>
#include <gr_io_signature.h>
-gr_squelch_base_ff::gr_squelch_base_ff(const char *name, int ramp, bool gate) :
+gr_squelch_base_ff::gr_squelch_base_ff(const char *name, int ramp, bool gate) :
gr_block(name,
gr_make_io_signature(1, 1, sizeof(float)),
gr_make_io_signature(1, 1, sizeof(float)))
@@ -55,7 +55,7 @@ int gr_squelch_base_ff::general_work(int noutput_items,
// Adjust envelope based on current state
switch(d_state) {
case ST_MUTED:
- if (!mute())
+ if (!mute())
d_state = d_ramp ? ST_ATTACK : ST_UNMUTED; // If not ramping, go straight to unmuted
break;
@@ -78,7 +78,7 @@ int gr_squelch_base_ff::general_work(int noutput_items,
d_state = ST_MUTED;
break;
};
-
+
// If unmuted, copy input times envelope to output
// Otherwise, if not gating, copy zero to output
if (d_state != ST_MUTED)
diff --git a/gnuradio-core/src/lib/general/gr_squelch_base_ff.h b/gnuradio-core/src/lib/general/gr_squelch_base_ff.h
index 92a064e63..eb52635b4 100644
--- a/gnuradio-core/src/lib/general/gr_squelch_base_ff.h
+++ b/gnuradio-core/src/lib/general/gr_squelch_base_ff.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gnuradio-core/src/lib/general/gr_squelch_base_ff.i b/gnuradio-core/src/lib/general/gr_squelch_base_ff.i
index 197883767..a4e5c7115 100644
--- a/gnuradio-core/src/lib/general/gr_squelch_base_ff.i
+++ b/gnuradio-core/src/lib/general/gr_squelch_base_ff.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gnuradio-core/src/lib/general/gr_stream_mux.cc b/gnuradio-core/src/lib/general/gr_stream_mux.cc
index 7ef2bb3c7..978d960b2 100644
--- a/gnuradio-core/src/lib/general/gr_stream_mux.cc
+++ b/gnuradio-core/src/lib/general/gr_stream_mux.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2010 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,
@@ -50,13 +50,13 @@ gr_stream_mux::gr_stream_mux (size_t itemsize, const std::vector<int> &lengths)
increment_stream();
}
d_residual = d_lengths[d_stream];
-}
+}
gr_stream_mux::~gr_stream_mux(void)
{
}
-void
+void
gr_stream_mux::forecast (int noutput_items, gr_vector_int &ninput_items_required)
{
unsigned ninputs = ninput_items_required.size ();
@@ -69,7 +69,7 @@ void gr_stream_mux::increment_stream()
do {
d_stream = (d_stream+1) % d_lengths.size();
} while(d_lengths[d_stream] == 0);
-
+
d_residual = d_lengths[d_stream];
}
@@ -96,11 +96,11 @@ gr_stream_mux::general_work(int noutput_items,
ninput_items[d_stream] - input_index[d_stream]));
if(VERBOSE) {
printf("mux: r=%d\n", r);
- printf("\tnoutput_items - out_index: %d\n",
+ printf("\tnoutput_items - out_index: %d\n",
noutput_items - out_index);
- printf("\td_residual: %d\n",
+ printf("\td_residual: %d\n",
d_residual);
- printf("\tninput_items[d_stream] - input_index[d_stream]: %d\n",
+ printf("\tninput_items[d_stream] - input_index[d_stream]: %d\n",
ninput_items[d_stream] - input_index[d_stream]);
}
@@ -109,14 +109,14 @@ gr_stream_mux::general_work(int noutput_items,
}
in = (const char *) input_items[d_stream] + input_index[d_stream]*d_itemsize;
-
+
memcpy(&out[out_index*d_itemsize], in, r*d_itemsize);
out_index += r;
input_index[d_stream] += r;
d_residual -= r;
consume(d_stream, r);
-
+
if(d_residual == 0) {
increment_stream();
}
diff --git a/gnuradio-core/src/lib/general/gr_stream_mux.h b/gnuradio-core/src/lib/general/gr_stream_mux.h
index 68415ab1d..742bf082d 100644
--- a/gnuradio-core/src/lib/general/gr_stream_mux.h
+++ b/gnuradio-core/src/lib/general/gr_stream_mux.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
@@ -46,14 +46,14 @@ typedef boost::shared_ptr<gr_stream_mux> gr_stream_mux_sptr;
-GR_CORE_API gr_stream_mux_sptr
+GR_CORE_API gr_stream_mux_sptr
gr_make_stream_mux (size_t itemsize, const std::vector<int> &lengths);
/*!
* \brief Stream muxing block to multiplex many streams into
* one with a specified format.
- *
+ *
* Muxes N streams together producing an output stream that
* contains N0 items from the first stream, N1 items from the second,
* etc. and repeats:
@@ -65,7 +65,7 @@ class GR_CORE_API gr_stream_mux : public gr_block
{
friend GR_CORE_API gr_stream_mux_sptr
gr_make_stream_mux (size_t itemsize, const std::vector<int> &lengths);
-
+
protected:
gr_stream_mux (size_t itemsize, const std::vector<int> &lengths);
@@ -74,7 +74,7 @@ class GR_CORE_API gr_stream_mux : public gr_block
unsigned int d_stream; // index of currently selected stream
int d_residual; // number if items left to put into current stream
gr_vector_int d_lengths; // number if items to pack per stream
-
+
void increment_stream();
public:
diff --git a/gnuradio-core/src/lib/general/gr_stream_mux.i b/gnuradio-core/src/lib/general/gr_stream_mux.i
index be6d58ab5..7cc116a23 100644
--- a/gnuradio-core/src/lib/general/gr_stream_mux.i
+++ b/gnuradio-core/src/lib/general/gr_stream_mux.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2006 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,
@@ -24,7 +24,7 @@
GR_SWIG_BLOCK_MAGIC(gr,stream_mux)
-gr_stream_mux_sptr
+gr_stream_mux_sptr
gr_make_stream_mux (size_t itemsize,
const std::vector<int> &lengths);
diff --git a/gnuradio-core/src/lib/general/gr_stream_to_streams.cc b/gnuradio-core/src/lib/general/gr_stream_to_streams.cc
index 3d34dbc43..de72adb1d 100644
--- a/gnuradio-core/src/lib/general/gr_stream_to_streams.cc
+++ b/gnuradio-core/src/lib/general/gr_stream_to_streams.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2010 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,
diff --git a/gnuradio-core/src/lib/general/gr_stream_to_streams.h b/gnuradio-core/src/lib/general/gr_stream_to_streams.h
index 905d3c556..117f57bf5 100644
--- a/gnuradio-core/src/lib/general/gr_stream_to_streams.h
+++ b/gnuradio-core/src/lib/general/gr_stream_to_streams.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
@@ -28,7 +28,7 @@
class gr_stream_to_streams;
typedef boost::shared_ptr<gr_stream_to_streams> gr_stream_to_streams_sptr;
-GR_CORE_API gr_stream_to_streams_sptr
+GR_CORE_API gr_stream_to_streams_sptr
gr_make_stream_to_streams (size_t item_size, size_t nstreams);
diff --git a/gnuradio-core/src/lib/general/gr_stream_to_streams.i b/gnuradio-core/src/lib/general/gr_stream_to_streams.i
index a0c49404c..4d324372e 100644
--- a/gnuradio-core/src/lib/general/gr_stream_to_streams.i
+++ b/gnuradio-core/src/lib/general/gr_stream_to_streams.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2005 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,
@@ -22,7 +22,7 @@
GR_SWIG_BLOCK_MAGIC(gr,stream_to_streams)
-gr_stream_to_streams_sptr
+gr_stream_to_streams_sptr
gr_make_stream_to_streams (size_t itemsize, size_t nstreams);
class gr_stream_to_streams : public gr_sync_decimator
diff --git a/gnuradio-core/src/lib/general/gr_stream_to_vector.cc b/gnuradio-core/src/lib/general/gr_stream_to_vector.cc
index f218601d7..d38cdd434 100644
--- a/gnuradio-core/src/lib/general/gr_stream_to_vector.cc
+++ b/gnuradio-core/src/lib/general/gr_stream_to_vector.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2005,2010 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,
diff --git a/gnuradio-core/src/lib/general/gr_stream_to_vector.h b/gnuradio-core/src/lib/general/gr_stream_to_vector.h
index 77272b96b..362349965 100644
--- a/gnuradio-core/src/lib/general/gr_stream_to_vector.h
+++ b/gnuradio-core/src/lib/general/gr_stream_to_vector.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2006 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,
@@ -29,7 +29,7 @@
class gr_stream_to_vector;
typedef boost::shared_ptr<gr_stream_to_vector> gr_stream_to_vector_sptr;
-GR_CORE_API gr_stream_to_vector_sptr
+GR_CORE_API gr_stream_to_vector_sptr
gr_make_stream_to_vector (size_t item_size, size_t nitems_per_block);
diff --git a/gnuradio-core/src/lib/general/gr_stream_to_vector.i b/gnuradio-core/src/lib/general/gr_stream_to_vector.i
index 6d59c6804..ef867012a 100644
--- a/gnuradio-core/src/lib/general/gr_stream_to_vector.i
+++ b/gnuradio-core/src/lib/general/gr_stream_to_vector.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2006 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,
@@ -22,7 +22,7 @@
GR_SWIG_BLOCK_MAGIC(gr,stream_to_vector)
-gr_stream_to_vector_sptr
+gr_stream_to_vector_sptr
gr_make_stream_to_vector (size_t itemsize, size_t nitems_per_block);
class gr_stream_to_vector : public gr_sync_decimator
diff --git a/gnuradio-core/src/lib/general/gr_streams_to_stream.cc b/gnuradio-core/src/lib/general/gr_streams_to_stream.cc
index ce4101089..8bce74722 100644
--- a/gnuradio-core/src/lib/general/gr_streams_to_stream.cc
+++ b/gnuradio-core/src/lib/general/gr_streams_to_stream.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2010 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,
diff --git a/gnuradio-core/src/lib/general/gr_streams_to_stream.h b/gnuradio-core/src/lib/general/gr_streams_to_stream.h
index 8207fed42..f63683767 100644
--- a/gnuradio-core/src/lib/general/gr_streams_to_stream.h
+++ b/gnuradio-core/src/lib/general/gr_streams_to_stream.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
@@ -28,7 +28,7 @@
class gr_streams_to_stream;
typedef boost::shared_ptr<gr_streams_to_stream> gr_streams_to_stream_sptr;
-GR_CORE_API gr_streams_to_stream_sptr
+GR_CORE_API gr_streams_to_stream_sptr
gr_make_streams_to_stream (size_t item_size, size_t nstreams);
diff --git a/gnuradio-core/src/lib/general/gr_streams_to_stream.i b/gnuradio-core/src/lib/general/gr_streams_to_stream.i
index 5f5ac2850..a09ded071 100644
--- a/gnuradio-core/src/lib/general/gr_streams_to_stream.i
+++ b/gnuradio-core/src/lib/general/gr_streams_to_stream.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2005 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,
@@ -22,7 +22,7 @@
GR_SWIG_BLOCK_MAGIC(gr,streams_to_stream)
-gr_streams_to_stream_sptr
+gr_streams_to_stream_sptr
gr_make_streams_to_stream (size_t itemsize, size_t nstreams);
class gr_streams_to_stream : public gr_sync_interpolator
diff --git a/gnuradio-core/src/lib/general/gr_streams_to_vector.cc b/gnuradio-core/src/lib/general/gr_streams_to_vector.cc
index e04fa4dcb..cf862ca95 100644
--- a/gnuradio-core/src/lib/general/gr_streams_to_vector.cc
+++ b/gnuradio-core/src/lib/general/gr_streams_to_vector.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2005,2010 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,
diff --git a/gnuradio-core/src/lib/general/gr_streams_to_vector.h b/gnuradio-core/src/lib/general/gr_streams_to_vector.h
index 6a05ac90a..1df289099 100644
--- a/gnuradio-core/src/lib/general/gr_streams_to_vector.h
+++ b/gnuradio-core/src/lib/general/gr_streams_to_vector.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2005 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,
@@ -29,7 +29,7 @@
class gr_streams_to_vector;
typedef boost::shared_ptr<gr_streams_to_vector> gr_streams_to_vector_sptr;
-GR_CORE_API gr_streams_to_vector_sptr
+GR_CORE_API gr_streams_to_vector_sptr
gr_make_streams_to_vector (size_t item_size, size_t nstreams);
diff --git a/gnuradio-core/src/lib/general/gr_streams_to_vector.i b/gnuradio-core/src/lib/general/gr_streams_to_vector.i
index 23ad3c8b2..4d5eca45e 100644
--- a/gnuradio-core/src/lib/general/gr_streams_to_vector.i
+++ b/gnuradio-core/src/lib/general/gr_streams_to_vector.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2005 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,
@@ -22,7 +22,7 @@
GR_SWIG_BLOCK_MAGIC(gr,streams_to_vector)
-gr_streams_to_vector_sptr
+gr_streams_to_vector_sptr
gr_make_streams_to_vector (size_t itemsize, size_t nstreams);
class gr_streams_to_vector : public gr_sync_block
diff --git a/gnuradio-core/src/lib/general/gr_stretch_ff.cc b/gnuradio-core/src/lib/general/gr_stretch_ff.cc
index c6395798a..e89eadf8b 100644
--- a/gnuradio-core/src/lib/general/gr_stretch_ff.cc
+++ b/gnuradio-core/src/lib/general/gr_stretch_ff.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2010 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,
@@ -48,7 +48,7 @@ gr_stretch_ff::work(int noutput_items,
{
const float *in = (const float *) input_items[0];
float *out = (float *) output_items[0];
-
+
for (int count = 0; count < noutput_items; count++) {
float vmax = in[0] - d_lo;
@@ -57,7 +57,7 @@ gr_stretch_ff::work(int noutput_items,
if (vtmp > vmax)
vmax = vtmp;
}
-
+
if (vmax != 0.0)
for (unsigned int i = 0; i < d_vlen; i++)
out[i] = d_lo * (1.0 - (in[i] - d_lo) / vmax);
@@ -68,7 +68,7 @@ gr_stretch_ff::work(int noutput_items,
in += d_vlen;
out += d_vlen;
}
-
+
return noutput_items;
}
diff --git a/gnuradio-core/src/lib/general/gr_stretch_ff.h b/gnuradio-core/src/lib/general/gr_stretch_ff.h
index 578634dd8..f592c94a7 100644
--- a/gnuradio-core/src/lib/general/gr_stretch_ff.h
+++ b/gnuradio-core/src/lib/general/gr_stretch_ff.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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,
diff --git a/gnuradio-core/src/lib/general/gr_stretch_ff.i b/gnuradio-core/src/lib/general/gr_stretch_ff.i
index 74c10fb2f..81366655e 100644
--- a/gnuradio-core/src/lib/general/gr_stretch_ff.i
+++ b/gnuradio-core/src/lib/general/gr_stretch_ff.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
diff --git a/gnuradio-core/src/lib/general/gr_test.cc b/gnuradio-core/src/lib/general/gr_test.cc
index 077b39707..cd5ef8361 100644
--- a/gnuradio-core/src/lib/general/gr_test.cc
+++ b/gnuradio-core/src/lib/general/gr_test.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2008,2010 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,
@@ -63,7 +63,7 @@ gr_test_sptr gr_make_test (const std::string &name,
set_fixed_rate(fixed_rate);
}
-int
+int
gr_test::general_work (int noutput_items,
gr_vector_int &ninput_items,
gr_vector_const_void_star &input_items,
@@ -109,7 +109,7 @@ gr_test::general_work (int noutput_items,
case CONSUME_ALL_AVAILABLE_LIMIT_MAX:
consume(i,std::min(ninput_items[i],d_max_consume));
break;
-/* //This could result in segfault, uncomment if you want to test this
+/* //This could result in segfault, uncomment if you want to test this
case CONSUME_ALL_AVAILABLE_LIMIT_MIN:
consume(i,std::max(ninput_items[i],d_max_consume));
break;*/
@@ -136,12 +136,12 @@ gr_test::general_work (int noutput_items,
//Touch every available output_item
for(unsigned int k=0;k<d_sizeof_output_item;k++)
out[j*d_sizeof_input_item+k]=0;
- }
+ }
}
- }
+ }
//Now copy input to output until max ninputs or max noutputs is reached
- int common_nports=std::min(ninputs,noutputs);
- if(d_sizeof_output_item==d_sizeof_input_item)
+ int common_nports=std::min(ninputs,noutputs);
+ if(d_sizeof_output_item==d_sizeof_input_item)
for (int i = 0; i < common_nports; i++)
{
memcpy(output_items[i],input_items[i],noutput_items*d_sizeof_input_item);
@@ -154,7 +154,7 @@ gr_test::general_work (int noutput_items,
case PRODUCE_NOUTPUT_ITEMS_LIMIT_MAX:
noutput_items_produced=std::min(noutput_items,d_max_produce);
break;
-/* //This could result in segfault, uncomment if you want to test this
+/* //This could result in segfault, uncomment if you want to test this
case PRODUCE_NOUTPUT_ITEMS_LIMIT_MIN:
noutput_items_produced=std::max(noutput_items,d_min_produce);
break;*/
diff --git a/gnuradio-core/src/lib/general/gr_test.h b/gnuradio-core/src/lib/general/gr_test.h
index 78e39d518..caeba4c51 100644
--- a/gnuradio-core/src/lib/general/gr_test.h
+++ b/gnuradio-core/src/lib/general/gr_test.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
@@ -46,7 +46,7 @@ GR_CORE_API gr_test_sptr gr_make_test (const std::string &name=std::string("gr_t
* It just exposes setting all standard block parameters using the contructor or public methods.
*
* This block can be usefull when testing the runtime system.
- * You can force this block to have a large history, decimation
+ * You can force this block to have a large history, decimation
* factor and/or large output_multiple.
* The runtime system should detect this and create large enough buffers
* all through the signal chain.
@@ -54,9 +54,9 @@ GR_CORE_API gr_test_sptr gr_make_test (const std::string &name=std::string("gr_t
class GR_CORE_API gr_test : public gr_block {
public:
-
+
~gr_test (){}
-
+
int general_work (int noutput_items,
gr_vector_int &ninput_items,
gr_vector_const_void_star &input_items,
@@ -165,7 +165,7 @@ int general_work (int noutput_items,
// ----------------------------------------------------------------------------
-
+
protected:
unsigned int d_sizeof_input_item;
unsigned int d_sizeof_output_item;
diff --git a/gnuradio-core/src/lib/general/gr_test.i b/gnuradio-core/src/lib/general/gr_test.i
index 414f9e3fe..d81025011 100644
--- a/gnuradio-core/src/lib/general/gr_test.i
+++ b/gnuradio-core/src/lib/general/gr_test.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
@@ -38,7 +38,7 @@ gr_test_sptr gr_make_test (const std::string &name=std::string("gr_test"),
class gr_test : public gr_block {
public:
-
+
~gr_test ();
void forecast (int noutput_items,
gr_vector_int &ninput_items_required);
diff --git a/gnuradio-core/src/lib/general/gr_test_types.h b/gnuradio-core/src/lib/general/gr_test_types.h
index 6ca258120..04f38f7b2 100644
--- a/gnuradio-core/src/lib/general/gr_test_types.h
+++ b/gnuradio-core/src/lib/general/gr_test_types.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gnuradio-core/src/lib/general/gr_threshold_ff.cc b/gnuradio-core/src/lib/general/gr_threshold_ff.cc
index 622fe1b45..952613151 100644
--- a/gnuradio-core/src/lib/general/gr_threshold_ff.cc
+++ b/gnuradio-core/src/lib/general/gr_threshold_ff.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
@@ -51,7 +51,7 @@ gr_threshold_ff::work (int noutput_items,
const float *in = (const float *) input_items[0];
float *out = (float *) output_items[0];
-
+
for(int i=0; i<noutput_items; i++) {
if (in[i] > d_hi) {
out[i] = 1.0;
diff --git a/gnuradio-core/src/lib/general/gr_threshold_ff.h b/gnuradio-core/src/lib/general/gr_threshold_ff.h
index 3bf3058cd..678f8b1d2 100644
--- a/gnuradio-core/src/lib/general/gr_threshold_ff.h
+++ b/gnuradio-core/src/lib/general/gr_threshold_ff.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/general/gr_threshold_ff.i b/gnuradio-core/src/lib/general/gr_threshold_ff.i
index e1c6e03ee..7584feea8 100644
--- a/gnuradio-core/src/lib/general/gr_threshold_ff.i
+++ b/gnuradio-core/src/lib/general/gr_threshold_ff.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/general/gr_throttle.cc b/gnuradio-core/src/lib/general/gr_throttle.cc
index a24b1da8c..040ab5220 100644
--- a/gnuradio-core/src/lib/general/gr_throttle.cc
+++ b/gnuradio-core/src/lib/general/gr_throttle.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005-2011 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,
diff --git a/gnuradio-core/src/lib/general/gr_throttle.h b/gnuradio-core/src/lib/general/gr_throttle.h
index 0b6ada995..876d6d826 100644
--- a/gnuradio-core/src/lib/general/gr_throttle.h
+++ b/gnuradio-core/src/lib/general/gr_throttle.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005-2011 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,
diff --git a/gnuradio-core/src/lib/general/gr_throttle.i b/gnuradio-core/src/lib/general/gr_throttle.i
index 0b1ec165f..5ba32de6e 100644
--- a/gnuradio-core/src/lib/general/gr_throttle.i
+++ b/gnuradio-core/src/lib/general/gr_throttle.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005-2011 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,
diff --git a/gnuradio-core/src/lib/general/gr_transcendental.cc b/gnuradio-core/src/lib/general/gr_transcendental.cc
index 46dc0055b..c1482491b 100644
--- a/gnuradio-core/src/lib/general/gr_transcendental.cc
+++ b/gnuradio-core/src/lib/general/gr_transcendental.cc
@@ -1,18 +1,18 @@
/*
* Copyright 2011 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,
diff --git a/gnuradio-core/src/lib/general/gr_transcendental.h b/gnuradio-core/src/lib/general/gr_transcendental.h
index 25c6eb75d..9841a53e9 100644
--- a/gnuradio-core/src/lib/general/gr_transcendental.h
+++ b/gnuradio-core/src/lib/general/gr_transcendental.h
@@ -1,18 +1,18 @@
/*
* Copyright 2011 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,
diff --git a/gnuradio-core/src/lib/general/gr_transcendental.i b/gnuradio-core/src/lib/general/gr_transcendental.i
index 1eea73f40..6acdb10b7 100644
--- a/gnuradio-core/src/lib/general/gr_transcendental.i
+++ b/gnuradio-core/src/lib/general/gr_transcendental.i
@@ -1,18 +1,18 @@
/*
* Copyright 2011 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,
diff --git a/gnuradio-core/src/lib/general/gr_uchar_to_float.cc b/gnuradio-core/src/lib/general/gr_uchar_to_float.cc
index 83616b428..981a93440 100644
--- a/gnuradio-core/src/lib/general/gr_uchar_to_float.cc
+++ b/gnuradio-core/src/lib/general/gr_uchar_to_float.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2010 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,
@@ -50,6 +50,6 @@ gr_uchar_to_float::work (int noutput_items,
float *out = (float *) output_items[0];
gri_uchar_to_float (in, out, noutput_items);
-
+
return noutput_items;
}
diff --git a/gnuradio-core/src/lib/general/gr_uchar_to_float.h b/gnuradio-core/src/lib/general/gr_uchar_to_float.h
index 8e8836c2c..c02601cca 100644
--- a/gnuradio-core/src/lib/general/gr_uchar_to_float.h
+++ b/gnuradio-core/src/lib/general/gr_uchar_to_float.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gnuradio-core/src/lib/general/gr_uchar_to_float.i b/gnuradio-core/src/lib/general/gr_uchar_to_float.i
index 44cb0dc2c..b6cc35329 100644
--- a/gnuradio-core/src/lib/general/gr_uchar_to_float.i
+++ b/gnuradio-core/src/lib/general/gr_uchar_to_float.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gnuradio-core/src/lib/general/gr_unpack_k_bits_bb.cc b/gnuradio-core/src/lib/general/gr_unpack_k_bits_bb.cc
index e33c3da9a..00b88e972 100644
--- a/gnuradio-core/src/lib/general/gr_unpack_k_bits_bb.cc
+++ b/gnuradio-core/src/lib/general/gr_unpack_k_bits_bb.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2010 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,
diff --git a/gnuradio-core/src/lib/general/gr_unpack_k_bits_bb.h b/gnuradio-core/src/lib/general/gr_unpack_k_bits_bb.h
index 056c69dc1..c3ea28d3f 100644
--- a/gnuradio-core/src/lib/general/gr_unpack_k_bits_bb.h
+++ b/gnuradio-core/src/lib/general/gr_unpack_k_bits_bb.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
@@ -44,7 +44,7 @@ class GR_CORE_API gr_unpack_k_bits_bb : public gr_sync_interpolator
gr_unpack_k_bits_bb (unsigned k);
unsigned d_k; // number of relevent bits to unpack into k output bytes
-
+
public:
~gr_unpack_k_bits_bb ();
diff --git a/gnuradio-core/src/lib/general/gr_unpack_k_bits_bb.i b/gnuradio-core/src/lib/general/gr_unpack_k_bits_bb.i
index 2e9aa406b..de0f4b33e 100644
--- a/gnuradio-core/src/lib/general/gr_unpack_k_bits_bb.i
+++ b/gnuradio-core/src/lib/general/gr_unpack_k_bits_bb.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gnuradio-core/src/lib/general/gr_vco.h b/gnuradio-core/src/lib/general/gr_vco.h
index 1e8636f7b..3ceaf15dd 100644
--- a/gnuradio-core/src/lib/general/gr_vco.h
+++ b/gnuradio-core/src/lib/general/gr_vco.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
@@ -35,7 +35,7 @@
//FIXME Eventually generalize this to fixed point
-template<class o_type, class i_type>
+template<class o_type, class i_type>
class gr_vco {
public:
gr_vco () : d_phase (0) {}
@@ -50,7 +50,7 @@ public:
void adjust_phase (double delta_phase) {
d_phase += delta_phase;
if (fabs (d_phase) > M_PI){
-
+
while (d_phase > M_PI)
d_phase -= 2*M_PI;
@@ -75,14 +75,14 @@ protected:
double d_phase;
};
-template<class o_type, class i_type>
+template<class o_type, class i_type>
void
gr_vco<o_type,i_type>::sincos (float *sinx, float *cosx) const
{
gr_sincosf (d_phase, sinx, cosx);
}
-template<class o_type, class i_type>
+template<class o_type, class i_type>
void
gr_vco<o_type,i_type>::cos (float *output, const float *input, int noutput_items, double k, double ampl)
{
diff --git a/gnuradio-core/src/lib/general/gr_vco_f.cc b/gnuradio-core/src/lib/general/gr_vco_f.cc
index 43a686327..0899bc77e 100644
--- a/gnuradio-core/src/lib/general/gr_vco_f.cc
+++ b/gnuradio-core/src/lib/general/gr_vco_f.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2010 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,
@@ -53,6 +53,6 @@ gr_vco_f::work (int noutput_items,
float *output = (float *)output_items[0];
d_vco.cos(output, input, noutput_items, d_k, d_amplitude);
-
+
return noutput_items;
}
diff --git a/gnuradio-core/src/lib/general/gr_vco_f.h b/gnuradio-core/src/lib/general/gr_vco_f.h
index b7524d581..83f6a9773 100644
--- a/gnuradio-core/src/lib/general/gr_vco_f.h
+++ b/gnuradio-core/src/lib/general/gr_vco_f.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gnuradio-core/src/lib/general/gr_vco_f.i b/gnuradio-core/src/lib/general/gr_vco_f.i
index 025127a9a..8ecf31411 100644
--- a/gnuradio-core/src/lib/general/gr_vco_f.i
+++ b/gnuradio-core/src/lib/general/gr_vco_f.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gnuradio-core/src/lib/general/gr_vector_to_stream.cc b/gnuradio-core/src/lib/general/gr_vector_to_stream.cc
index 0a0788de6..621b7ec58 100644
--- a/gnuradio-core/src/lib/general/gr_vector_to_stream.cc
+++ b/gnuradio-core/src/lib/general/gr_vector_to_stream.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2006,2010 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,
diff --git a/gnuradio-core/src/lib/general/gr_vector_to_stream.h b/gnuradio-core/src/lib/general/gr_vector_to_stream.h
index d2fa8c7ab..9fc8030f5 100644
--- a/gnuradio-core/src/lib/general/gr_vector_to_stream.h
+++ b/gnuradio-core/src/lib/general/gr_vector_to_stream.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2005,2006 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,
@@ -29,7 +29,7 @@
class gr_vector_to_stream;
typedef boost::shared_ptr<gr_vector_to_stream> gr_vector_to_stream_sptr;
-GR_CORE_API gr_vector_to_stream_sptr
+GR_CORE_API gr_vector_to_stream_sptr
gr_make_vector_to_stream (size_t item_size, size_t nitems_per_block);
diff --git a/gnuradio-core/src/lib/general/gr_vector_to_stream.i b/gnuradio-core/src/lib/general/gr_vector_to_stream.i
index 53679e6df..99776eeb8 100644
--- a/gnuradio-core/src/lib/general/gr_vector_to_stream.i
+++ b/gnuradio-core/src/lib/general/gr_vector_to_stream.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2006 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,
@@ -22,7 +22,7 @@
GR_SWIG_BLOCK_MAGIC(gr,vector_to_stream)
-gr_vector_to_stream_sptr
+gr_vector_to_stream_sptr
gr_make_vector_to_stream (size_t itemsize, size_t nitems_per_block);
class gr_vector_to_stream : public gr_sync_decimator
diff --git a/gnuradio-core/src/lib/general/gr_vector_to_streams.cc b/gnuradio-core/src/lib/general/gr_vector_to_streams.cc
index cc3264152..7ab352a4f 100644
--- a/gnuradio-core/src/lib/general/gr_vector_to_streams.cc
+++ b/gnuradio-core/src/lib/general/gr_vector_to_streams.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2005,2010 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,
diff --git a/gnuradio-core/src/lib/general/gr_vector_to_streams.h b/gnuradio-core/src/lib/general/gr_vector_to_streams.h
index 04ac941a1..8db423053 100644
--- a/gnuradio-core/src/lib/general/gr_vector_to_streams.h
+++ b/gnuradio-core/src/lib/general/gr_vector_to_streams.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2005 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,
@@ -29,7 +29,7 @@
class gr_vector_to_streams;
typedef boost::shared_ptr<gr_vector_to_streams> gr_vector_to_streams_sptr;
-GR_CORE_API gr_vector_to_streams_sptr
+GR_CORE_API gr_vector_to_streams_sptr
gr_make_vector_to_streams (size_t item_size, size_t nstreams);
diff --git a/gnuradio-core/src/lib/general/gr_vector_to_streams.i b/gnuradio-core/src/lib/general/gr_vector_to_streams.i
index a6c36805a..d4123135b 100644
--- a/gnuradio-core/src/lib/general/gr_vector_to_streams.i
+++ b/gnuradio-core/src/lib/general/gr_vector_to_streams.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2005 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,
@@ -22,7 +22,7 @@
GR_SWIG_BLOCK_MAGIC(gr,vector_to_streams)
-gr_vector_to_streams_sptr
+gr_vector_to_streams_sptr
gr_make_vector_to_streams (size_t itemsize, size_t nstreams);
class gr_vector_to_streams : public gr_sync_block
diff --git a/gnuradio-core/src/lib/general/gri_add_const_ss.h b/gnuradio-core/src/lib/general/gri_add_const_ss.h
index 8315b2f8f..7433ee41b 100644
--- a/gnuradio-core/src/lib/general/gri_add_const_ss.h
+++ b/gnuradio-core/src/lib/general/gri_add_const_ss.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/general/gri_add_const_ss_generic.cc b/gnuradio-core/src/lib/general/gri_add_const_ss_generic.cc
index 40d2a675f..3b5ee1824 100644
--- a/gnuradio-core/src/lib/general/gri_add_const_ss_generic.cc
+++ b/gnuradio-core/src/lib/general/gri_add_const_ss_generic.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/general/gri_agc2_cc.h b/gnuradio-core/src/lib/general/gri_agc2_cc.h
index b0a027aad..55aa19b9a 100644
--- a/gnuradio-core/src/lib/general/gri_agc2_cc.h
+++ b/gnuradio-core/src/lib/general/gri_agc2_cc.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
@@ -34,7 +34,7 @@
class GR_CORE_API gri_agc2_cc {
public:
- gri_agc2_cc (float attack_rate = 1e-1, float decay_rate = 1e-2, float reference = 1.0,
+ gri_agc2_cc (float attack_rate = 1e-1, float decay_rate = 1e-2, float reference = 1.0,
float gain = 1.0, float max_gain = 0.0)
: _attack_rate(attack_rate), _decay_rate(decay_rate), _reference(reference),
_gain(gain), _max_gain(max_gain) {};
@@ -53,14 +53,14 @@ class GR_CORE_API gri_agc2_cc {
gr_complex scale (gr_complex input){
gr_complex output = input * _gain;
-
- float tmp = -_reference + sqrt(output.real()*output.real() +
+
+ float tmp = -_reference + sqrt(output.real()*output.real() +
output.imag()*output.imag());
float rate = _decay_rate;
if((tmp) > _gain)
rate = _attack_rate;
_gain -= tmp*rate;
-
+
#if 0
fprintf(stdout, "rate = %f\ttmp = %f\t gain = %f\n", rate, tmp, _gain);
#endif
@@ -71,7 +71,7 @@ class GR_CORE_API gri_agc2_cc {
_gain = 10e-5;
if (_max_gain > 0.0 && _gain > _max_gain)
- _gain = _max_gain;
+ _gain = _max_gain;
return output;
}
@@ -79,7 +79,7 @@ class GR_CORE_API gri_agc2_cc {
for (unsigned i = 0; i < n; i++)
output[i] = scale (input[i]);
}
-
+
protected:
float _attack_rate; // attack rate for fast changing signals
float _decay_rate; // decay rate for slow changing signals
diff --git a/gnuradio-core/src/lib/general/gri_agc2_cc.i b/gnuradio-core/src/lib/general/gri_agc2_cc.i
index 0f97f1d8e..08716c6ed 100644
--- a/gnuradio-core/src/lib/general/gri_agc2_cc.i
+++ b/gnuradio-core/src/lib/general/gri_agc2_cc.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
@@ -32,7 +32,7 @@
class gri_agc2_cc {
public:
- gri_agc2_cc (float attack_rate = 1e-1, float decay_rate = 1e-2, float reference = 1.0,
+ gri_agc2_cc (float attack_rate = 1e-1, float decay_rate = 1e-2, float reference = 1.0,
float gain = 1.0, float max_gain = 0.0);
float decay_rate ();
float attack_rate ();
diff --git a/gnuradio-core/src/lib/general/gri_agc2_ff.h b/gnuradio-core/src/lib/general/gri_agc2_ff.h
index ee70c2537..a8b46bec5 100644
--- a/gnuradio-core/src/lib/general/gri_agc2_ff.h
+++ b/gnuradio-core/src/lib/general/gri_agc2_ff.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2002,2006 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,
@@ -35,9 +35,9 @@
class GR_CORE_API gri_agc2_ff {
public:
- gri_agc2_ff (float attack_rate = 1e-1, float decay_rate = 1e-2, float reference = 1.0,
+ gri_agc2_ff (float attack_rate = 1e-1, float decay_rate = 1e-2, float reference = 1.0,
float gain = 1.0, float max_gain = 0.0)
- : _attack_rate(attack_rate), _decay_rate(decay_rate), _reference(reference),
+ : _attack_rate(attack_rate), _decay_rate(decay_rate), _reference(reference),
_gain(gain), _max_gain(max_gain) {};
float attack_rate () const { return _attack_rate; }
@@ -45,16 +45,16 @@ class GR_CORE_API gri_agc2_ff {
float reference () const { return _reference; }
float gain () const { return _gain; }
float max_gain () const { return _max_gain; }
-
+
void set_attack_rate (float rate) { _attack_rate = rate; }
void set_decay_rate (float rate) { _decay_rate = rate; }
void set_reference (float reference) { _reference = reference; }
void set_gain (float gain) { _gain = gain; }
void set_max_gain (float max_gain) { _max_gain = max_gain; }
-
+
float scale (float input){
float output = input * _gain;
-
+
float tmp = (fabsf(output)) - _reference;
float rate = _decay_rate;
if(fabsf(tmp) > _gain)
@@ -78,7 +78,7 @@ class GR_CORE_API gri_agc2_ff {
for (unsigned i = 0; i < n; i++)
output[i] = scale (input[i]);
}
-
+
protected:
float _attack_rate; // attack_rate for fast changing signals
float _decay_rate; // decay rate for slow changing signals
diff --git a/gnuradio-core/src/lib/general/gri_agc2_ff.i b/gnuradio-core/src/lib/general/gri_agc2_ff.i
index d04b638a6..9f97d8f0d 100644
--- a/gnuradio-core/src/lib/general/gri_agc2_ff.i
+++ b/gnuradio-core/src/lib/general/gri_agc2_ff.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2006 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,
diff --git a/gnuradio-core/src/lib/general/gri_agc_cc.h b/gnuradio-core/src/lib/general/gri_agc_cc.h
index 74dfdf1dc..90edc5dcd 100644
--- a/gnuradio-core/src/lib/general/gri_agc_cc.h
+++ b/gnuradio-core/src/lib/general/gri_agc_cc.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
@@ -35,7 +35,7 @@
class GR_CORE_API gri_agc_cc {
public:
- gri_agc_cc (float rate = 1e-4, float reference = 1.0,
+ gri_agc_cc (float rate = 1e-4, float reference = 1.0,
float gain = 1.0, float max_gain = 0.0)
: _rate(rate), _reference(reference),
_gain(gain), _max_gain(max_gain) {};
@@ -52,11 +52,11 @@ class GR_CORE_API gri_agc_cc {
gr_complex scale (gr_complex input){
gr_complex output = input * _gain;
-
- _gain += _rate * (_reference - sqrt(output.real()*output.real() +
+
+ _gain += _rate * (_reference - sqrt(output.real()*output.real() +
output.imag()*output.imag()));
if (_max_gain > 0.0 && _gain > _max_gain)
- _gain = _max_gain;
+ _gain = _max_gain;
return output;
}
@@ -64,7 +64,7 @@ class GR_CORE_API gri_agc_cc {
for (unsigned i = 0; i < n; i++)
output[i] = scale (input[i]);
}
-
+
protected:
float _rate; // adjustment rate
float _reference; // reference value
diff --git a/gnuradio-core/src/lib/general/gri_agc_cc.i b/gnuradio-core/src/lib/general/gri_agc_cc.i
index f26185c0f..d3dd9b61b 100644
--- a/gnuradio-core/src/lib/general/gri_agc_cc.i
+++ b/gnuradio-core/src/lib/general/gri_agc_cc.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
@@ -32,7 +32,7 @@
class gri_agc_cc {
public:
- gri_agc_cc (float rate = 1e-4, float reference = 1.0,
+ gri_agc_cc (float rate = 1e-4, float reference = 1.0,
float gain = 1.0, float max_gain = 0.0);
float rate ();
float reference ();
diff --git a/gnuradio-core/src/lib/general/gri_agc_ff.h b/gnuradio-core/src/lib/general/gri_agc_ff.h
index 753bbe275..1c233c746 100644
--- a/gnuradio-core/src/lib/general/gri_agc_ff.h
+++ b/gnuradio-core/src/lib/general/gri_agc_ff.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2002,2006 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,
@@ -42,12 +42,12 @@ class GR_CORE_API gri_agc_ff {
float reference () const { return _reference; }
float gain () const { return _gain; }
float max_gain () const { return _max_gain; }
-
+
void set_rate (float rate) { _rate = rate; }
void set_reference (float reference) { _reference = reference; }
void set_gain (float gain) { _gain = gain; }
void set_max_gain (float max_gain) { _max_gain = max_gain; }
-
+
float scale (float input){
float output = input * _gain;
_gain += (_reference - fabsf (output)) * _rate;
@@ -60,7 +60,7 @@ class GR_CORE_API gri_agc_ff {
for (unsigned i = 0; i < n; i++)
output[i] = scale (input[i]);
}
-
+
protected:
float _rate; // adjustment rate
float _reference; // reference value
diff --git a/gnuradio-core/src/lib/general/gri_agc_ff.i b/gnuradio-core/src/lib/general/gri_agc_ff.i
index 1358e7193..df4acf7af 100644
--- a/gnuradio-core/src/lib/general/gri_agc_ff.i
+++ b/gnuradio-core/src/lib/general/gri_agc_ff.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2006 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,
diff --git a/gnuradio-core/src/lib/general/gri_char_to_float.cc b/gnuradio-core/src/lib/general/gri_char_to_float.cc
index f14ef4e4b..fd9a6636a 100644
--- a/gnuradio-core/src/lib/general/gri_char_to_float.cc
+++ b/gnuradio-core/src/lib/general/gri_char_to_float.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
@@ -22,7 +22,7 @@
#include <gri_char_to_float.h>
-void
+void
gri_char_to_float (const char *in, float *out, int nsamples)
{
while (nsamples >= 4){
diff --git a/gnuradio-core/src/lib/general/gri_char_to_float.h b/gnuradio-core/src/lib/general/gri_char_to_float.h
index 890d482b5..8bd3bfde7 100644
--- a/gnuradio-core/src/lib/general/gri_char_to_float.h
+++ b/gnuradio-core/src/lib/general/gri_char_to_float.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gnuradio-core/src/lib/general/gri_control_loop.cc b/gnuradio-core/src/lib/general/gri_control_loop.cc
index 4c64bb922..5a93737f9 100644
--- a/gnuradio-core/src/lib/general/gri_control_loop.cc
+++ b/gnuradio-core/src/lib/general/gri_control_loop.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
@@ -72,11 +72,11 @@ gri_control_loop::phase_wrap()
void
gri_control_loop::frequency_limit()
-{
+{
if (d_freq > d_max_freq)
d_freq = d_max_freq;
else if (d_freq < d_min_freq)
- d_freq = d_min_freq;
+ d_freq = d_min_freq;
}
/*******************************************************************
@@ -89,18 +89,18 @@ gri_control_loop::set_loop_bandwidth(float bw)
if(bw < 0) {
throw std::out_of_range ("gri_control_loop: invalid bandwidth. Must be >= 0.");
}
-
+
d_loop_bw = bw;
update_gains();
}
void
-gri_control_loop::set_damping_factor(float df)
+gri_control_loop::set_damping_factor(float df)
{
if(df < 0 || df > 1.0) {
throw std::out_of_range ("gri_control_loop: invalid damping factor. Must be in [0,1].");
}
-
+
d_damping = df;
update_gains();
}
@@ -144,7 +144,7 @@ gri_control_loop::set_phase(float phase)
d_phase += M_TWOPI;
}
-
+
/*******************************************************************
GET FUNCTIONS
*******************************************************************/
diff --git a/gnuradio-core/src/lib/general/gri_control_loop.h b/gnuradio-core/src/lib/general/gri_control_loop.h
index 3aeac58f7..df260d2cf 100644
--- a/gnuradio-core/src/lib/general/gri_control_loop.h
+++ b/gnuradio-core/src/lib/general/gri_control_loop.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
@@ -86,7 +86,7 @@ class GR_CORE_API gri_control_loop
/*!
* \brief Set the loop bandwidth
*
- * Set the loop filter's bandwidth to \p bw. This should be between
+ * Set the loop filter's bandwidth to \p bw. This should be between
* 2*pi/200 and 2*pi/100 (in rads/samp). It must also be a positive
* number.
*
@@ -164,7 +164,7 @@ class GR_CORE_API gri_control_loop
*/
void set_phase(float phase);
-
+
/*******************************************************************
GET FUNCTIONS
*******************************************************************/
diff --git a/gnuradio-core/src/lib/general/gri_control_loop.i b/gnuradio-core/src/lib/general/gri_control_loop.i
index 67f8838cb..8a23207e5 100644
--- a/gnuradio-core/src/lib/general/gri_control_loop.i
+++ b/gnuradio-core/src/lib/general/gri_control_loop.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
@@ -43,7 +43,7 @@ class gri_control_loop
void set_frequency(float freq);
void set_phase(float phase);
-
+
/*******************************************************************
GET FUNCTIONS
*******************************************************************/
diff --git a/gnuradio-core/src/lib/general/gri_debugger_hook.cc b/gnuradio-core/src/lib/general/gri_debugger_hook.cc
index 2d96eda43..d9270c435 100644
--- a/gnuradio-core/src/lib/general/gri_debugger_hook.cc
+++ b/gnuradio-core/src/lib/general/gri_debugger_hook.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/general/gri_debugger_hook.h b/gnuradio-core/src/lib/general/gri_debugger_hook.h
index cf227af8f..c871c7bf6 100644
--- a/gnuradio-core/src/lib/general/gri_debugger_hook.h
+++ b/gnuradio-core/src/lib/general/gri_debugger_hook.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/general/gri_fft.cc b/gnuradio-core/src/lib/general/gri_fft.cc
index 2edb5f5aa..68e7e6951 100644
--- a/gnuradio-core/src/lib/general/gri_fft.cc
+++ b/gnuradio-core/src/lib/general/gri_fft.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2003,2008,2011 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,
@@ -81,7 +81,7 @@ wisdom_filename ()
return path.string().c_str();
}
-static void
+static void
gri_fftw_import_wisdom ()
{
const char *filename = wisdom_filename ();
@@ -99,14 +99,14 @@ static void
gri_fftw_config_threading (int nthreads)
{
static int fftw_threads_inited = 0;
-
+
#ifdef FFTW3F_THREADS
if (fftw_threads_inited == 0)
{
fftw_threads_inited = 1;
fftwf_init_threads();
}
-
+
fftwf_plan_with_nthreads(nthreads);
#endif
}
@@ -134,15 +134,15 @@ gri_fft_complex::gri_fft_complex (int fft_size, bool forward, int nthreads)
gri_fft_planner::scoped_lock lock(gri_fft_planner::mutex());
assert (sizeof (fftwf_complex) == sizeof (gr_complex));
-
+
if (fft_size <= 0)
throw std::out_of_range ("gri_fftw: invalid fft_size");
-
+
d_fft_size = fft_size;
d_inbuf = (gr_complex *) fftwf_malloc (sizeof (gr_complex) * inbuf_length ());
if (d_inbuf == 0)
throw std::runtime_error ("fftwf_malloc");
-
+
d_outbuf = (gr_complex *) fftwf_malloc (sizeof (gr_complex) * outbuf_length ());
if (d_outbuf == 0){
fftwf_free (d_inbuf);
@@ -154,7 +154,7 @@ gri_fft_complex::gri_fft_complex (int fft_size, bool forward, int nthreads)
gri_fftw_import_wisdom (); // load prior wisdom from disk
d_plan = fftwf_plan_dft_1d (fft_size,
- reinterpret_cast<fftwf_complex *>(d_inbuf),
+ reinterpret_cast<fftwf_complex *>(d_inbuf),
reinterpret_cast<fftwf_complex *>(d_outbuf),
forward ? FFTW_FORWARD : FFTW_BACKWARD,
FFTW_MEASURE);
@@ -176,7 +176,7 @@ gri_fft_complex::~gri_fft_complex ()
fftwf_free (d_outbuf);
}
-void
+void
gri_fft_complex::set_nthreads(int n)
{
if (n <= 0)
@@ -202,15 +202,15 @@ gri_fft_real_fwd::gri_fft_real_fwd (int fft_size, int nthreads)
gri_fft_planner::scoped_lock lock(gri_fft_planner::mutex());
assert (sizeof (fftwf_complex) == sizeof (gr_complex));
-
+
if (fft_size <= 0)
throw std::out_of_range ("gri_fftw: invalid fft_size");
-
+
d_fft_size = fft_size;
d_inbuf = (float *) fftwf_malloc (sizeof (float) * inbuf_length ());
if (d_inbuf == 0)
throw std::runtime_error ("fftwf_malloc");
-
+
d_outbuf = (gr_complex *) fftwf_malloc (sizeof (gr_complex) * outbuf_length ());
if (d_outbuf == 0){
fftwf_free (d_inbuf);
@@ -220,7 +220,7 @@ gri_fft_real_fwd::gri_fft_real_fwd (int fft_size, int nthreads)
d_nthreads = nthreads;
gri_fftw_config_threading (nthreads);
gri_fftw_import_wisdom (); // load prior wisdom from disk
-
+
d_plan = fftwf_plan_dft_r2c_1d (fft_size,
d_inbuf,
reinterpret_cast<fftwf_complex *>(d_outbuf),
@@ -243,7 +243,7 @@ gri_fft_real_fwd::~gri_fft_real_fwd ()
fftwf_free (d_outbuf);
}
-void
+void
gri_fft_real_fwd::set_nthreads(int n)
{
if (n <= 0)
@@ -269,15 +269,15 @@ gri_fft_real_rev::gri_fft_real_rev (int fft_size, int nthreads)
gri_fft_planner::scoped_lock lock(gri_fft_planner::mutex());
assert (sizeof (fftwf_complex) == sizeof (gr_complex));
-
+
if (fft_size <= 0)
throw std::out_of_range ("gri_fftw: invalid fft_size");
-
+
d_fft_size = fft_size;
d_inbuf = (gr_complex *) fftwf_malloc (sizeof (gr_complex) * inbuf_length ());
if (d_inbuf == 0)
throw std::runtime_error ("fftwf_malloc");
-
+
d_outbuf = (float *) fftwf_malloc (sizeof (float) * outbuf_length ());
if (d_outbuf == 0){
fftwf_free (d_inbuf);
@@ -287,7 +287,7 @@ gri_fft_real_rev::gri_fft_real_rev (int fft_size, int nthreads)
d_nthreads = nthreads;
gri_fftw_config_threading (nthreads);
gri_fftw_import_wisdom (); // load prior wisdom from disk
-
+
// FIXME If there's ever a chance that the planning functions
// will be called in multiple threads, we've got to ensure single
// threaded access. They are not thread-safe.
@@ -310,7 +310,7 @@ gri_fft_real_rev::~gri_fft_real_rev ()
fftwf_free (d_outbuf);
}
-void
+void
gri_fft_real_rev::set_nthreads(int n)
{
if (n <= 0)
diff --git a/gnuradio-core/src/lib/general/gri_fft.h b/gnuradio-core/src/lib/general/gri_fft.h
index f77a18e52..65e9d046e 100644
--- a/gnuradio-core/src/lib/general/gri_fft.h
+++ b/gnuradio-core/src/lib/general/gri_fft.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2003,2008 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,
@@ -66,7 +66,7 @@ class GR_CORE_API gri_fft_complex {
gr_complex *d_inbuf;
gr_complex *d_outbuf;
void *d_plan;
-
+
public:
gri_fft_complex (int fft_size, bool forward = true, int nthreads=1);
virtual ~gri_fft_complex ();
@@ -108,7 +108,7 @@ class GR_CORE_API gri_fft_real_fwd {
float *d_inbuf;
gr_complex *d_outbuf;
void *d_plan;
-
+
public:
gri_fft_real_fwd (int fft_size, int nthreads=1);
virtual ~gri_fft_real_fwd ();
@@ -150,7 +150,7 @@ class GR_CORE_API gri_fft_real_rev {
gr_complex *d_inbuf;
float *d_outbuf;
void *d_plan;
-
+
public:
gri_fft_real_rev (int fft_size, int nthreads=1);
virtual ~gri_fft_real_rev ();
diff --git a/gnuradio-core/src/lib/general/gri_float_to_char.cc b/gnuradio-core/src/lib/general/gri_float_to_char.cc
index 28f15a3b3..3e779b0e7 100644
--- a/gnuradio-core/src/lib/general/gri_float_to_char.cc
+++ b/gnuradio-core/src/lib/general/gri_float_to_char.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,
@@ -32,7 +32,7 @@ static const int MIN_CHAR = -128;
static const int MAX_CHAR = 127;
-void
+void
gri_float_to_char (const float *in, char *out, int nsamples)
{
for (int i = 0; i < nsamples; i++){
diff --git a/gnuradio-core/src/lib/general/gri_float_to_char.h b/gnuradio-core/src/lib/general/gri_float_to_char.h
index 184592a69..172a7da65 100644
--- a/gnuradio-core/src/lib/general/gri_float_to_char.h
+++ b/gnuradio-core/src/lib/general/gri_float_to_char.h
@@ -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,
diff --git a/gnuradio-core/src/lib/general/gri_float_to_int.cc b/gnuradio-core/src/lib/general/gri_float_to_int.cc
index 0b0b10dfe..525ea675d 100644
--- a/gnuradio-core/src/lib/general/gri_float_to_int.cc
+++ b/gnuradio-core/src/lib/general/gri_float_to_int.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
@@ -33,7 +33,7 @@ static const int64_t MAX_INT = 2147483647; // (2^31)-1
static const int64_t MIN_INT = -2147483647; // -(2^31)-1
-void
+void
gri_float_to_int (const float *in, int *out, float scale, int nsamples)
{
for (int i = 0; i < nsamples; i++){
diff --git a/gnuradio-core/src/lib/general/gri_float_to_int.h b/gnuradio-core/src/lib/general/gri_float_to_int.h
index d8b98efc1..84f72a420 100644
--- a/gnuradio-core/src/lib/general/gri_float_to_int.h
+++ b/gnuradio-core/src/lib/general/gri_float_to_int.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
diff --git a/gnuradio-core/src/lib/general/gri_float_to_short.cc b/gnuradio-core/src/lib/general/gri_float_to_short.cc
index 93a2784f5..4508e37a7 100644
--- a/gnuradio-core/src/lib/general/gri_float_to_short.cc
+++ b/gnuradio-core/src/lib/general/gri_float_to_short.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,
@@ -32,7 +32,7 @@ static const int MIN_SHORT = -32768;
static const int MAX_SHORT = 32767;
-void
+void
gri_float_to_short (const float *in, short *out, int nsamples)
{
for (int i = 0; i < nsamples; i++){
diff --git a/gnuradio-core/src/lib/general/gri_float_to_short.h b/gnuradio-core/src/lib/general/gri_float_to_short.h
index 6d814b2b3..b9cdf685b 100644
--- a/gnuradio-core/src/lib/general/gri_float_to_short.h
+++ b/gnuradio-core/src/lib/general/gri_float_to_short.h
@@ -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,
diff --git a/gnuradio-core/src/lib/general/gri_float_to_uchar.cc b/gnuradio-core/src/lib/general/gri_float_to_uchar.cc
index a022c95d8..9ea42a31b 100644
--- a/gnuradio-core/src/lib/general/gri_float_to_uchar.cc
+++ b/gnuradio-core/src/lib/general/gri_float_to_uchar.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,
@@ -32,7 +32,7 @@ static const int MIN_UCHAR = 0;
static const int MAX_UCHAR = 255;
-void
+void
gri_float_to_uchar (const float *in, unsigned char *out, int nsamples)
{
for (int i = 0; i < nsamples; i++){
diff --git a/gnuradio-core/src/lib/general/gri_float_to_uchar.h b/gnuradio-core/src/lib/general/gri_float_to_uchar.h
index ff549333e..e24b1973f 100644
--- a/gnuradio-core/src/lib/general/gri_float_to_uchar.h
+++ b/gnuradio-core/src/lib/general/gri_float_to_uchar.h
@@ -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,
diff --git a/gnuradio-core/src/lib/general/gri_glfsr.cc b/gnuradio-core/src/lib/general/gri_glfsr.cc
index 940ef0374..ba6951882 100644
--- a/gnuradio-core/src/lib/general/gri_glfsr.cc
+++ b/gnuradio-core/src/lib/general/gri_glfsr.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007 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,
diff --git a/gnuradio-core/src/lib/general/gri_glfsr.h b/gnuradio-core/src/lib/general/gri_glfsr.h
index e6d28cf45..9aae2d9f1 100644
--- a/gnuradio-core/src/lib/general/gri_glfsr.h
+++ b/gnuradio-core/src/lib/general/gri_glfsr.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007 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,
diff --git a/gnuradio-core/src/lib/general/gri_int_to_float.cc b/gnuradio-core/src/lib/general/gri_int_to_float.cc
index 342c20cc4..91da08897 100644
--- a/gnuradio-core/src/lib/general/gri_int_to_float.cc
+++ b/gnuradio-core/src/lib/general/gri_int_to_float.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
@@ -28,7 +28,7 @@
#include <gri_int_to_float.h>
#include <math.h>
-void
+void
gri_int_to_float (const int *in, float *out, int nsamples)
{
for (int i = 0; i < nsamples; i++){
diff --git a/gnuradio-core/src/lib/general/gri_int_to_float.h b/gnuradio-core/src/lib/general/gri_int_to_float.h
index 29d1e3b7d..4b08b7c6b 100644
--- a/gnuradio-core/src/lib/general/gri_int_to_float.h
+++ b/gnuradio-core/src/lib/general/gri_int_to_float.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
diff --git a/gnuradio-core/src/lib/general/gri_interleaved_short_to_complex.cc b/gnuradio-core/src/lib/general/gri_interleaved_short_to_complex.cc
index 5eefe9343..7d0af0fc7 100644
--- a/gnuradio-core/src/lib/general/gri_interleaved_short_to_complex.cc
+++ b/gnuradio-core/src/lib/general/gri_interleaved_short_to_complex.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,
@@ -27,12 +27,12 @@
#include <gri_interleaved_short_to_complex.h>
#include <assert.h>
-void
+void
gri_interleaved_short_to_complex (const short *in,
gr_complex *out, int nsamples)
{
assert (nsamples % 2 == 0);
-
+
for (int i = 0; i < nsamples/2; i++){
out[i] = gr_complex (in[i*2 + 0], in[i*2 + 1]);
}
diff --git a/gnuradio-core/src/lib/general/gri_interleaved_short_to_complex.h b/gnuradio-core/src/lib/general/gri_interleaved_short_to_complex.h
index 107e2f778..8d8a0d16e 100644
--- a/gnuradio-core/src/lib/general/gri_interleaved_short_to_complex.h
+++ b/gnuradio-core/src/lib/general/gri_interleaved_short_to_complex.h
@@ -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,
diff --git a/gnuradio-core/src/lib/general/gri_lfsr.h b/gnuradio-core/src/lib/general/gri_lfsr.h
index dc9358572..420236077 100644
--- a/gnuradio-core/src/lib/general/gri_lfsr.h
+++ b/gnuradio-core/src/lib/general/gri_lfsr.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2010 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,
@@ -32,9 +32,9 @@
* \ingroup misc
*
* Generates a maximal length pseudo-random sequence of length 2^degree-1
- *
+ *
* Constructor: gri_lfsr(int mask, int seed, int reg_len);
- *
+ *
* mask - polynomial coefficients representing the locations
* of feedback taps from a shift register which are xor'ed
* together to form the new high order bit.
@@ -48,32 +48,32 @@
* durring initialization. Low order bit corresponds
* to x^0 coefficient -- the first to be shifted as output.
*
- * reg_len - specifies the length of the feedback shift register
+ * reg_len - specifies the length of the feedback shift register
* to be used. Durring each iteration, the register
* is rightshifted one and the new bit is placed in bit reg_len.
* reg_len should generally be at least order(mask) + 1
*
*
- * see http://en.wikipedia.org/wiki/Linear_feedback_shift_register
+ * see http://en.wikipedia.org/wiki/Linear_feedback_shift_register
* for more explanation.
*
*
*
* next_bit() - Standard LFSR operation
- *
+ *
* Perform one cycle of the LFSR. The output bit is taken from
* the shift register LSB. The shift register MSB is assigned from
* the modulo 2 sum of the masked shift register.
- *
+ *
* next_bit_scramble(unsigned char input) - Scramble an input stream
- *
+ *
* Perform one cycle of the LFSR. The output bit is taken from
* the shift register LSB. The shift register MSB is assigned from
* the modulo 2 sum of the masked shift register and the input LSB.
*
* next_bit_descramble(unsigned char input) - Descramble an input stream
*
- * Perform one cycle of the LFSR. The output bit is taken from
+ * Perform one cycle of the LFSR. The output bit is taken from
* the modulo 2 sum of the masked shift register and the input LSB.
* The shift register MSB is assigned from the LSB of the input.
*
@@ -101,8 +101,8 @@ class GR_CORE_API gri_lfsr
public:
gri_lfsr(uint32_t mask, uint32_t seed, uint32_t reg_len)
- : d_shift_register(seed),
- d_mask(mask),
+ : d_shift_register(seed),
+ d_mask(mask),
d_seed(seed),
d_shift_register_length(reg_len)
{
diff --git a/gnuradio-core/src/lib/general/gri_lfsr_15_1_0.h b/gnuradio-core/src/lib/general/gri_lfsr_15_1_0.h
index 7405ffbaa..578739f7e 100644
--- a/gnuradio-core/src/lib/general/gri_lfsr_15_1_0.h
+++ b/gnuradio-core/src/lib/general/gri_lfsr_15_1_0.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -40,7 +40,7 @@ class GR_CORE_API gri_lfsr_15_1_0 {
gri_lfsr_15_1_0 () { reset (); }
void reset () { d_sr = 0x7fff; }
-
+
int next_bit (){
d_sr = ((((d_sr >> 1) ^ d_sr) & 0x1) << 14) | (d_sr >> 1);
return d_sr & 0x1;
diff --git a/gnuradio-core/src/lib/general/gri_lfsr_32k.h b/gnuradio-core/src/lib/general/gri_lfsr_32k.h
index 5c0396b50..e84512b9a 100644
--- a/gnuradio-core/src/lib/general/gri_lfsr_32k.h
+++ b/gnuradio-core/src/lib/general/gri_lfsr_32k.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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 @@ class GR_CORE_API gri_lfsr_32k {
d_lfsr.reset ();
d_count = 0;
}
-
+
int next_bit (){
if (d_count == 32767){
d_count = 0;
diff --git a/gnuradio-core/src/lib/general/gri_short_to_float.cc b/gnuradio-core/src/lib/general/gri_short_to_float.cc
index 84d0ed994..d5d0e786e 100644
--- a/gnuradio-core/src/lib/general/gri_short_to_float.cc
+++ b/gnuradio-core/src/lib/general/gri_short_to_float.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,
@@ -22,7 +22,7 @@
#include <gri_short_to_float.h>
-void
+void
gri_short_to_float (const short *in, float *out, int nsamples)
{
while (nsamples >= 4){
diff --git a/gnuradio-core/src/lib/general/gri_short_to_float.h b/gnuradio-core/src/lib/general/gri_short_to_float.h
index 51767efab..2ffdbb45b 100644
--- a/gnuradio-core/src/lib/general/gri_short_to_float.h
+++ b/gnuradio-core/src/lib/general/gri_short_to_float.h
@@ -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,
diff --git a/gnuradio-core/src/lib/general/gri_uchar_to_float.cc b/gnuradio-core/src/lib/general/gri_uchar_to_float.cc
index f277af7dd..91f3e7336 100644
--- a/gnuradio-core/src/lib/general/gri_uchar_to_float.cc
+++ b/gnuradio-core/src/lib/general/gri_uchar_to_float.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
@@ -22,7 +22,7 @@
#include <gri_uchar_to_float.h>
-void
+void
gri_uchar_to_float (const unsigned char *in, float *out, int nsamples)
{
while (nsamples >= 4){
diff --git a/gnuradio-core/src/lib/general/gri_uchar_to_float.h b/gnuradio-core/src/lib/general/gri_uchar_to_float.h
index 9f342989d..633c5d4ce 100644
--- a/gnuradio-core/src/lib/general/gri_uchar_to_float.h
+++ b/gnuradio-core/src/lib/general/gri_uchar_to_float.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gnuradio-core/src/lib/general/malloc16.h b/gnuradio-core/src/lib/general/malloc16.h
index 6b1a3fb08..eaa32c625 100644
--- a/gnuradio-core/src/lib/general/malloc16.h
+++ b/gnuradio-core/src/lib/general/malloc16.h
@@ -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,
diff --git a/gnuradio-core/src/lib/general/qa_general.cc b/gnuradio-core/src/lib/general/qa_general.cc
index b9080f362..26b21983e 100644
--- a/gnuradio-core/src/lib/general/qa_general.cc
+++ b/gnuradio-core/src/lib/general/qa_general.cc
@@ -1,18 +1,18 @@
/*
* 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,
@@ -48,6 +48,6 @@ qa_general::suite ()
s->addTest (qa_gr_fxpt_vco::suite ());
s->addTest (qa_gr_math::suite ());
s->addTest (qa_gri_lfsr::suite ());
-
+
return s;
}
diff --git a/gnuradio-core/src/lib/general/qa_general.h b/gnuradio-core/src/lib/general/qa_general.h
index 7da188266..bf52cddc1 100644
--- a/gnuradio-core/src/lib/general/qa_general.h
+++ b/gnuradio-core/src/lib/general/qa_general.h
@@ -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,
diff --git a/gnuradio-core/src/lib/general/qa_gr_circular_file.cc b/gnuradio-core/src/lib/general/qa_gr_circular_file.cc
index 31d599ba1..243e44784 100644
--- a/gnuradio-core/src/lib/general/qa_gr_circular_file.cc
+++ b/gnuradio-core/src/lib/general/qa_gr_circular_file.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,
@@ -40,7 +40,7 @@ qa_gr_circular_file::t1 ()
#ifdef HAVE_MMAP
gr_circular_file *cf_writer;
gr_circular_file *cf_reader;
-
+
// write the data...
cf_writer = new gr_circular_file (test_file, true, BUFFER_SIZE * sizeof (short));
diff --git a/gnuradio-core/src/lib/general/qa_gr_circular_file.h b/gnuradio-core/src/lib/general/qa_gr_circular_file.h
index 1c33aa60a..df35ab077 100644
--- a/gnuradio-core/src/lib/general/qa_gr_circular_file.h
+++ b/gnuradio-core/src/lib/general/qa_gr_circular_file.h
@@ -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,
diff --git a/gnuradio-core/src/lib/general/qa_gr_cpm.cc b/gnuradio-core/src/lib/general/qa_gr_cpm.cc
index cc32d1117..ee3e2bdea 100644
--- a/gnuradio-core/src/lib/general/qa_gr_cpm.cc
+++ b/gnuradio-core/src/lib/general/qa_gr_cpm.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010 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,
diff --git a/gnuradio-core/src/lib/general/qa_gr_cpm.h b/gnuradio-core/src/lib/general/qa_gr_cpm.h
index 741cb2860..2f46b42a7 100644
--- a/gnuradio-core/src/lib/general/qa_gr_cpm.h
+++ b/gnuradio-core/src/lib/general/qa_gr_cpm.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010 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,
diff --git a/gnuradio-core/src/lib/general/qa_gr_firdes.cc b/gnuradio-core/src/lib/general/qa_gr_firdes.cc
index 771249b2c..877b4bd56 100644
--- a/gnuradio-core/src/lib/general/qa_gr_firdes.cc
+++ b/gnuradio-core/src/lib/general/qa_gr_firdes.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,
@@ -37,7 +37,7 @@ using std::vector;
static void
print_taps (std::ostream &s, vector<float> &v)
{
-
+
for (unsigned int i = 0; i < v.size (); i++){
printf ("tap[%2d] = %16.7e\n", i, v[i]);
}
diff --git a/gnuradio-core/src/lib/general/qa_gr_firdes.h b/gnuradio-core/src/lib/general/qa_gr_firdes.h
index d8566454a..98cee99b9 100644
--- a/gnuradio-core/src/lib/general/qa_gr_firdes.h
+++ b/gnuradio-core/src/lib/general/qa_gr_firdes.h
@@ -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,
diff --git a/gnuradio-core/src/lib/general/qa_gr_fxpt.cc b/gnuradio-core/src/lib/general/qa_gr_fxpt.cc
index 00487714e..7eac0d896 100644
--- a/gnuradio-core/src/lib/general/qa_gr_fxpt.cc
+++ b/gnuradio-core/src/lib/general/qa_gr_fxpt.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/general/qa_gr_fxpt.h b/gnuradio-core/src/lib/general/qa_gr_fxpt.h
index 822ce7936..72211563e 100644
--- a/gnuradio-core/src/lib/general/qa_gr_fxpt.h
+++ b/gnuradio-core/src/lib/general/qa_gr_fxpt.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/general/qa_gr_fxpt_nco.cc b/gnuradio-core/src/lib/general/qa_gr_fxpt_nco.cc
index 638bd1b6d..6f208eac8 100644
--- a/gnuradio-core/src/lib/general/qa_gr_fxpt_nco.cc
+++ b/gnuradio-core/src/lib/general/qa_gr_fxpt_nco.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/general/qa_gr_fxpt_nco.h b/gnuradio-core/src/lib/general/qa_gr_fxpt_nco.h
index 966b22f03..8998922bb 100644
--- a/gnuradio-core/src/lib/general/qa_gr_fxpt_nco.h
+++ b/gnuradio-core/src/lib/general/qa_gr_fxpt_nco.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/general/qa_gr_fxpt_vco.cc b/gnuradio-core/src/lib/general/qa_gr_fxpt_vco.cc
index 113006a22..5b6993a30 100644
--- a/gnuradio-core/src/lib/general/qa_gr_fxpt_vco.cc
+++ b/gnuradio-core/src/lib/general/qa_gr_fxpt_vco.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2005 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,
diff --git a/gnuradio-core/src/lib/general/qa_gr_fxpt_vco.h b/gnuradio-core/src/lib/general/qa_gr_fxpt_vco.h
index f3868cb4f..fab8022e3 100644
--- a/gnuradio-core/src/lib/general/qa_gr_fxpt_vco.h
+++ b/gnuradio-core/src/lib/general/qa_gr_fxpt_vco.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2005 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,
diff --git a/gnuradio-core/src/lib/general/qa_gr_math.cc b/gnuradio-core/src/lib/general/qa_gr_math.cc
index b3a1b959d..74d51b536 100644
--- a/gnuradio-core/src/lib/general/qa_gr_math.cc
+++ b/gnuradio-core/src/lib/general/qa_gr_math.cc
@@ -1,18 +1,18 @@
/*
* Copyright 2008 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,
@@ -44,7 +44,7 @@ qa_gr_math::test_binary_slicer1 ()
y = gr_branchless_binary_slicer(x[i]);
//printf("in: %f out: %d desired: %d\n", x[i], y, z[i]);
- CPPUNIT_ASSERT_DOUBLES_EQUAL(y, z[i], 1e-9);
+ CPPUNIT_ASSERT_DOUBLES_EQUAL(y, z[i], 1e-9);
}
}
@@ -52,7 +52,7 @@ void
qa_gr_math::test_quad_0deg_slicer1 ()
{
gr_complex x[4] = {gr_complex(1, 0),
- gr_complex(0, 1),
+ gr_complex(0, 1),
gr_complex(-1, 0),
gr_complex(0, -1)};
@@ -71,7 +71,7 @@ qa_gr_math::test_quad_0deg_slicer1 ()
for (unsigned int i = 0; i < 4; i++) {
y = gr_branchless_quad_0deg_slicer(x[i]);
//printf("in: %.4f+j%.4f out: %d desired: %d\n", x[i].real(), x[i].imag(), y, z[i]);
-
+
CPPUNIT_ASSERT_DOUBLES_EQUAL(y, z[i], 1e-9);
}
}
@@ -80,10 +80,10 @@ void
qa_gr_math::test_quad_45deg_slicer1 ()
{
gr_complex x[4] = {gr_complex(0.707, 0.707),
- gr_complex(-0.707, 0.707),
+ gr_complex(-0.707, 0.707),
gr_complex(-0.707, -0.707),
gr_complex(0.707, -0.707)};
-
+
unsigned int z[4] = {0, 1, 2, 3};
unsigned int y;
diff --git a/gnuradio-core/src/lib/general/qa_gr_math.h b/gnuradio-core/src/lib/general/qa_gr_math.h
index bcc3a62d0..86858c03d 100644
--- a/gnuradio-core/src/lib/general/qa_gr_math.h
+++ b/gnuradio-core/src/lib/general/qa_gr_math.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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,
diff --git a/gnuradio-core/src/lib/general/qa_gri_lfsr.cc b/gnuradio-core/src/lib/general/qa_gri_lfsr.cc
index 9625071d8..87d610df6 100644
--- a/gnuradio-core/src/lib/general/qa_gri_lfsr.cc
+++ b/gnuradio-core/src/lib/general/qa_gri_lfsr.cc
@@ -1,18 +1,18 @@
/*
* Copyright 2008 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,
@@ -35,7 +35,7 @@ qa_gri_lfsr::test_lfsr ()
gri_lfsr lfsr1(mask,seed,length);
gri_lfsr lfsr2(mask,seed,length);
-
+
unsigned char expected[] = {1, 0, 1, 1, 0, 1, 0, 1, 0, 0};
for(unsigned int i=0; i<31; i++){
@@ -67,27 +67,27 @@ qa_gri_lfsr::test_scrambler()
gri_lfsr scrambler(mask, seed, length);
// Impulse (1 and 126 more zeroes)
- unsigned char src[] =
- { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ unsigned char src[] =
+ { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0 }; // flush bits
-
+
// Impulse response (including leading bits)
unsigned char expected[] =
- { 1, 1, 1, 1, 1, 1, 1,
- 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 0,
- 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1,
- 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1,
- 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0,
- 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 0, 0,
- 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0,
- 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0,
+ { 1, 1, 1, 1, 1, 1, 1,
+ 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 0,
+ 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1,
+ 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1,
+ 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0,
+ 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 0, 0,
+ 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0,
+ 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0,
1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, };
int len = sizeof(src);
@@ -111,27 +111,27 @@ qa_gri_lfsr::test_descrambler()
// Scrambled sequence (impulse response)
unsigned char src[] =
- { 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 0,
- 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1,
- 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1,
- 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0,
- 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 0, 0,
- 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0,
- 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0,
- 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0 };
+ { 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 0,
+ 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1,
+ 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1,
+ 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0,
+ 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 0, 0,
+ 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0,
+ 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0,
+ 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0 };
// Original (garbage while synchronizing, them impulse)
- unsigned char expected[] =
+ unsigned char expected[] =
{ 0, 1, 0, 0, 1, 0,
1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0 };
-
+
int len = sizeof(src);
std::vector<unsigned char> actual(len);
diff --git a/gnuradio-core/src/lib/general/qa_gri_lfsr.h b/gnuradio-core/src/lib/general/qa_gri_lfsr.h
index 2a1b92e9c..e91843bbb 100644
--- a/gnuradio-core/src/lib/general/qa_gri_lfsr.h
+++ b/gnuradio-core/src/lib/general/qa_gri_lfsr.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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,
diff --git a/gnuradio-core/src/lib/gengen/generate_all.py b/gnuradio-core/src/lib/gengen/generate_all.py
index 9d9902d61..6b0f20f05 100755
--- a/gnuradio-core/src/lib/gengen/generate_all.py
+++ b/gnuradio-core/src/lib/gengen/generate_all.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004 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,
# Boston, MA 02110-1301, USA.
-#
+#
from build_utils import output_glue
diff --git a/gnuradio-core/src/lib/gengen/generate_common.py b/gnuradio-core/src/lib/gengen/generate_common.py
index 70f805711..13d01b0f9 100755
--- a/gnuradio-core/src/lib/gengen/generate_common.py
+++ b/gnuradio-core/src/lib/gengen/generate_common.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2006,2007,2008,2009 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,
# Boston, MA 02110-1301, USA.
-#
+#
from build_utils import expand_template, standard_dict
from build_utils_codes import *
@@ -93,7 +93,7 @@ def generate ():
for r in reg_roots :
for s in reg_signatures:
expand_h_cc_i (r, s)
-
+
for root, sigs in others:
for s in sigs:
expand_h_cc_i (root, s)
@@ -103,4 +103,4 @@ def generate ():
if __name__ == '__main__':
generate ()
-
+
diff --git a/gnuradio-core/src/lib/gengen/gengen.i b/gnuradio-core/src/lib/gengen/gengen.i
index c3827288e..d1895bfa8 100644
--- a/gnuradio-core/src/lib/gengen/gengen.i
+++ b/gnuradio-core/src/lib/gengen/gengen.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_add_XX.cc.t b/gnuradio-core/src/lib/gengen/gr_add_XX.cc.t
index 0e8b23ee1..5a888125b 100644
--- a/gnuradio-core/src/lib/gengen/gr_add_XX.cc.t
+++ b/gnuradio-core/src/lib/gengen/gr_add_XX.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004, 2009,2010 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_add_XX.h.t b/gnuradio-core/src/lib/gengen/gr_add_XX.h.t
index f0e857abf..cd6d80cd9 100644
--- a/gnuradio-core/src/lib/gengen/gr_add_XX.h.t
+++ b/gnuradio-core/src/lib/gengen/gr_add_XX.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004, 2009 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_add_XX.i.t b/gnuradio-core/src/lib/gengen/gr_add_XX.i.t
index f7726ccf6..b2c510610 100644
--- a/gnuradio-core/src/lib/gengen/gr_add_XX.i.t
+++ b/gnuradio-core/src/lib/gengen/gr_add_XX.i.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004, 2009 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_add_const_XX.cc.t b/gnuradio-core/src/lib/gengen/gr_add_const_XX.cc.t
index 0d3034be7..3dccc86b8 100644
--- a/gnuradio-core/src/lib/gengen/gr_add_const_XX.cc.t
+++ b/gnuradio-core/src/lib/gengen/gr_add_const_XX.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
@@ -67,6 +67,6 @@ int
while (size-- > 0)
*optr++ = *iptr++ + d_k;
-
+
return noutput_items;
}
diff --git a/gnuradio-core/src/lib/gengen/gr_add_const_XX.h.t b/gnuradio-core/src/lib/gengen/gr_add_const_XX.h.t
index 5b46d0f89..00d2c9b58 100644
--- a/gnuradio-core/src/lib/gengen/gr_add_const_XX.h.t
+++ b/gnuradio-core/src/lib/gengen/gr_add_const_XX.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_add_const_XX.i.t b/gnuradio-core/src/lib/gengen/gr_add_const_XX.i.t
index 5af10137a..b7921554e 100644
--- a/gnuradio-core/src/lib/gengen/gr_add_const_XX.i.t
+++ b/gnuradio-core/src/lib/gengen/gr_add_const_XX.i.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_add_const_vXX.cc.t b/gnuradio-core/src/lib/gengen/gr_add_const_vXX.cc.t
index f49be062e..b29f3014d 100755
--- a/gnuradio-core/src/lib/gengen/gr_add_const_vXX.cc.t
+++ b/gnuradio-core/src/lib/gengen/gr_add_const_vXX.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2006,2010 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,
@@ -50,12 +50,12 @@ int
{
@I_TYPE@ *iptr = (@O_TYPE@ *)input_items[0];
@O_TYPE@ *optr = (@O_TYPE@ *)output_items[0];
-
+
int nitems_per_block = output_signature()->sizeof_stream_item(0)/sizeof(@I_TYPE@);
for (int i = 0; i < noutput_items; i++)
for (int j = 0; j < nitems_per_block; j++)
*optr++ = *iptr++ + d_k[j];
-
+
return noutput_items;
}
diff --git a/gnuradio-core/src/lib/gengen/gr_add_const_vXX.h.t b/gnuradio-core/src/lib/gengen/gr_add_const_vXX.h.t
index 9d986e960..438a84bfd 100644
--- a/gnuradio-core/src/lib/gengen/gr_add_const_vXX.h.t
+++ b/gnuradio-core/src/lib/gengen/gr_add_const_vXX.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2006,2010 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_add_const_vXX.i.t b/gnuradio-core/src/lib/gengen/gr_add_const_vXX.i.t
index ad1643a7e..e0e6ae905 100755
--- a/gnuradio-core/src/lib/gengen/gr_add_const_vXX.i.t
+++ b/gnuradio-core/src/lib/gengen/gr_add_const_vXX.i.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2006,2010 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_and_XX.cc.t b/gnuradio-core/src/lib/gengen/gr_and_XX.cc.t
index 150ef7f0d..9d60e092a 100644
--- a/gnuradio-core/src/lib/gengen/gr_and_XX.cc.t
+++ b/gnuradio-core/src/lib/gengen/gr_and_XX.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2008,2010 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_and_XX.h.t b/gnuradio-core/src/lib/gengen/gr_and_XX.h.t
index dbb225907..224778096 100644
--- a/gnuradio-core/src/lib/gengen/gr_and_XX.h.t
+++ b/gnuradio-core/src/lib/gengen/gr_and_XX.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2008 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_and_XX.i.t b/gnuradio-core/src/lib/gengen/gr_and_XX.i.t
index e17d40eea..06db5ca59 100644
--- a/gnuradio-core/src/lib/gengen/gr_and_XX.i.t
+++ b/gnuradio-core/src/lib/gengen/gr_and_XX.i.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2008 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_and_const_XX.cc.t b/gnuradio-core/src/lib/gengen/gr_and_const_XX.cc.t
index bd48788e6..d4f9a4b61 100644
--- a/gnuradio-core/src/lib/gengen/gr_and_const_XX.cc.t
+++ b/gnuradio-core/src/lib/gengen/gr_and_const_XX.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009,2010 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_and_const_XX.h.t b/gnuradio-core/src/lib/gengen/gr_and_const_XX.h.t
index ceffc3066..b331f33cc 100644
--- a/gnuradio-core/src/lib/gengen/gr_and_const_XX.h.t
+++ b/gnuradio-core/src/lib/gengen/gr_and_const_XX.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_and_const_XX.i.t b/gnuradio-core/src/lib/gengen/gr_and_const_XX.i.t
index 548431e66..c797c45eb 100644
--- a/gnuradio-core/src/lib/gengen/gr_and_const_XX.i.t
+++ b/gnuradio-core/src/lib/gengen/gr_and_const_XX.i.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_argmax_XX.cc.t b/gnuradio-core/src/lib/gengen/gr_argmax_XX.cc.t
index 7fe2b6382..f780bd811 100644
--- a/gnuradio-core/src/lib/gengen/gr_argmax_XX.cc.t
+++ b/gnuradio-core/src/lib/gengen/gr_argmax_XX.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_argmax_XX.h.t b/gnuradio-core/src/lib/gengen/gr_argmax_XX.h.t
index 437fa5735..a706221fb 100644
--- a/gnuradio-core/src/lib/gengen/gr_argmax_XX.h.t
+++ b/gnuradio-core/src/lib/gengen/gr_argmax_XX.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_argmax_XX.i.t b/gnuradio-core/src/lib/gengen/gr_argmax_XX.i.t
index aa6bf0ac9..233551ad9 100644
--- a/gnuradio-core/src/lib/gengen/gr_argmax_XX.i.t
+++ b/gnuradio-core/src/lib/gengen/gr_argmax_XX.i.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_chunks_to_symbols_XX.cc.t b/gnuradio-core/src/lib/gengen/gr_chunks_to_symbols_XX.cc.t
index 635d991ef..4a642c13e 100644
--- a/gnuradio-core/src/lib/gengen/gr_chunks_to_symbols_XX.cc.t
+++ b/gnuradio-core/src/lib/gengen/gr_chunks_to_symbols_XX.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_chunks_to_symbols_XX.h.t b/gnuradio-core/src/lib/gengen/gr_chunks_to_symbols_XX.h.t
index c1393df3f..17d5688b8 100644
--- a/gnuradio-core/src/lib/gengen/gr_chunks_to_symbols_XX.h.t
+++ b/gnuradio-core/src/lib/gengen/gr_chunks_to_symbols_XX.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -42,7 +42,7 @@ GR_CORE_API @SPTR_NAME@ gr_make_@BASE_NAME@ (const std::vector<@O_TYPE@> &symbol
* out[n D + k] = symbol_table[in[n] D + k], k=0,1,...,D-1
*
* The combination of gr_packed_to_unpacked_XX followed by
- * gr_chunks_to_symbols_XY handles the general case of mapping
+ * gr_chunks_to_symbols_XY handles the general case of mapping
* from a stream of bytes or shorts into arbitrary float
* or complex symbols.
*
diff --git a/gnuradio-core/src/lib/gengen/gr_divide_XX.cc.t b/gnuradio-core/src/lib/gengen/gr_divide_XX.cc.t
index ea245b57b..63450cb3d 100644
--- a/gnuradio-core/src/lib/gengen/gr_divide_XX.cc.t
+++ b/gnuradio-core/src/lib/gengen/gr_divide_XX.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004, 2009,2010 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_divide_XX.h.t b/gnuradio-core/src/lib/gengen/gr_divide_XX.h.t
index ebe5ff5e5..40ee27a51 100644
--- a/gnuradio-core/src/lib/gengen/gr_divide_XX.h.t
+++ b/gnuradio-core/src/lib/gengen/gr_divide_XX.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004, 2009 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_divide_XX.i.t b/gnuradio-core/src/lib/gengen/gr_divide_XX.i.t
index f7726ccf6..b2c510610 100644
--- a/gnuradio-core/src/lib/gengen/gr_divide_XX.i.t
+++ b/gnuradio-core/src/lib/gengen/gr_divide_XX.i.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004, 2009 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_endianness.h b/gnuradio-core/src/lib/gengen/gr_endianness.h
index abc3feecc..c4ecb1383 100644
--- a/gnuradio-core/src/lib/gengen/gr_endianness.h
+++ b/gnuradio-core/src/lib/gengen/gr_endianness.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_endianness.i b/gnuradio-core/src/lib/gengen/gr_endianness.i
index 4c0f99f5e..572b7a42f 100644
--- a/gnuradio-core/src/lib/gengen/gr_endianness.i
+++ b/gnuradio-core/src/lib/gengen/gr_endianness.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_integrate_XX.cc.t b/gnuradio-core/src/lib/gengen/gr_integrate_XX.cc.t
index f6e38848c..1dbee49db 100644
--- a/gnuradio-core/src/lib/gengen/gr_integrate_XX.cc.t
+++ b/gnuradio-core/src/lib/gengen/gr_integrate_XX.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2010 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,
@@ -29,7 +29,7 @@
#include <@NAME@.h>
#include <gr_io_signature.h>
-@SPTR_NAME@
+@SPTR_NAME@
gr_make_@BASE_NAME@ (int decim)
{
return gnuradio::get_initial_sptr (new @NAME@ (decim));
@@ -49,14 +49,14 @@ gr_make_@BASE_NAME@ (int decim)
{
}
-int
+int
@NAME@::work (int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items)
{
const @I_TYPE@ *in = (const @I_TYPE@ *) input_items[0];
@O_TYPE@ *out = (@O_TYPE@ *) output_items[0];
-
+
for (int i = 0; i < noutput_items; i++) {
out[i] = (@O_TYPE@)0;
for (int j = 0; j < d_decim; j++)
diff --git a/gnuradio-core/src/lib/gengen/gr_integrate_XX.h.t b/gnuradio-core/src/lib/gengen/gr_integrate_XX.h.t
index c1d81000f..abb13ea90 100644
--- a/gnuradio-core/src/lib/gengen/gr_integrate_XX.h.t
+++ b/gnuradio-core/src/lib/gengen/gr_integrate_XX.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007 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,
@@ -51,7 +51,7 @@ private:
int d_count;
public:
- ~@NAME@ ();
+ ~@NAME@ ();
int work (int noutput_items,
gr_vector_const_void_star &input_items,
diff --git a/gnuradio-core/src/lib/gengen/gr_integrate_XX.i.t b/gnuradio-core/src/lib/gengen/gr_integrate_XX.i.t
index 24a2381ad..a96e5fd29 100644
--- a/gnuradio-core/src/lib/gengen/gr_integrate_XX.i.t
+++ b/gnuradio-core/src/lib/gengen/gr_integrate_XX.i.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_max_XX.cc.t b/gnuradio-core/src/lib/gengen/gr_max_XX.cc.t
index ee88261f9..c53820cd6 100644
--- a/gnuradio-core/src/lib/gengen/gr_max_XX.cc.t
+++ b/gnuradio-core/src/lib/gengen/gr_max_XX.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007 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,
@@ -51,11 +51,11 @@ int
@O_TYPE@ *optr = (@O_TYPE@ *) output_items[0];
int ninputs = input_items.size ();
-
+
for (int i=0; i<noutput_items; i++) {
@I_TYPE@ max = ((@I_TYPE@ *) input_items[0])[i*d_vlen];
-
+
for (int j=0; j < (int) d_vlen; j++ ) {
for (int k=0; k<ninputs; k++) {
if ( ((@I_TYPE@ *) input_items[k])[i*d_vlen + j] > max) {
diff --git a/gnuradio-core/src/lib/gengen/gr_max_XX.h.t b/gnuradio-core/src/lib/gengen/gr_max_XX.h.t
index 437fa5735..a706221fb 100644
--- a/gnuradio-core/src/lib/gengen/gr_max_XX.h.t
+++ b/gnuradio-core/src/lib/gengen/gr_max_XX.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_max_XX.i.t b/gnuradio-core/src/lib/gengen/gr_max_XX.i.t
index aa6bf0ac9..233551ad9 100644
--- a/gnuradio-core/src/lib/gengen/gr_max_XX.i.t
+++ b/gnuradio-core/src/lib/gengen/gr_max_XX.i.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_moving_average_XX.cc.t b/gnuradio-core/src/lib/gengen/gr_moving_average_XX.cc.t
index 8d2370d3b..ddee30bd7 100644
--- a/gnuradio-core/src/lib/gengen/gr_moving_average_XX.cc.t
+++ b/gnuradio-core/src/lib/gengen/gr_moving_average_XX.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2010 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,
@@ -29,7 +29,7 @@
#include <@NAME@.h>
#include <gr_io_signature.h>
-@SPTR_NAME@
+@SPTR_NAME@
gr_make_@BASE_NAME@ (int length, @O_TYPE@ scale, int max_iter)
{
return gnuradio::get_initial_sptr (new @NAME@ (length, scale, max_iter));
@@ -61,7 +61,7 @@ void
d_updated = true;
}
-int
+int
@NAME@::work (int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items)
diff --git a/gnuradio-core/src/lib/gengen/gr_moving_average_XX.h.t b/gnuradio-core/src/lib/gengen/gr_moving_average_XX.h.t
index 7e228abb6..37678abe1 100644
--- a/gnuradio-core/src/lib/gengen/gr_moving_average_XX.h.t
+++ b/gnuradio-core/src/lib/gengen/gr_moving_average_XX.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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,
@@ -57,7 +57,7 @@ private:
bool d_updated;
public:
- ~@NAME@ ();
+ ~@NAME@ ();
int work (int noutput_items,
gr_vector_const_void_star &input_items,
diff --git a/gnuradio-core/src/lib/gengen/gr_moving_average_XX.i.t b/gnuradio-core/src/lib/gengen/gr_moving_average_XX.i.t
index 855be90b0..6e3b9ca9b 100644
--- a/gnuradio-core/src/lib/gengen/gr_moving_average_XX.i.t
+++ b/gnuradio-core/src/lib/gengen/gr_moving_average_XX.i.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_multiply_XX.cc.t b/gnuradio-core/src/lib/gengen/gr_multiply_XX.cc.t
index 5d270c763..a60118e14 100644
--- a/gnuradio-core/src/lib/gengen/gr_multiply_XX.cc.t
+++ b/gnuradio-core/src/lib/gengen/gr_multiply_XX.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004, 2009,2010 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_multiply_XX.h.t b/gnuradio-core/src/lib/gengen/gr_multiply_XX.h.t
index 1feb16202..18ec6d0be 100644
--- a/gnuradio-core/src/lib/gengen/gr_multiply_XX.h.t
+++ b/gnuradio-core/src/lib/gengen/gr_multiply_XX.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004, 2009 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_multiply_XX.i.t b/gnuradio-core/src/lib/gengen/gr_multiply_XX.i.t
index f7726ccf6..b2c510610 100644
--- a/gnuradio-core/src/lib/gengen/gr_multiply_XX.i.t
+++ b/gnuradio-core/src/lib/gengen/gr_multiply_XX.i.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004, 2009 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_multiply_const_XX.cc.t b/gnuradio-core/src/lib/gengen/gr_multiply_const_XX.cc.t
index 09e658e90..424b62412 100644
--- a/gnuradio-core/src/lib/gengen/gr_multiply_const_XX.cc.t
+++ b/gnuradio-core/src/lib/gengen/gr_multiply_const_XX.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
@@ -67,6 +67,6 @@ int
while (size-- > 0)
*optr++ = *iptr++ * d_k;
-
+
return noutput_items;
}
diff --git a/gnuradio-core/src/lib/gengen/gr_multiply_const_XX.h.t b/gnuradio-core/src/lib/gengen/gr_multiply_const_XX.h.t
index 6ff6f74a9..274fc3b99 100644
--- a/gnuradio-core/src/lib/gengen/gr_multiply_const_XX.h.t
+++ b/gnuradio-core/src/lib/gengen/gr_multiply_const_XX.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_multiply_const_XX.i.t b/gnuradio-core/src/lib/gengen/gr_multiply_const_XX.i.t
index 5af10137a..b7921554e 100644
--- a/gnuradio-core/src/lib/gengen/gr_multiply_const_XX.i.t
+++ b/gnuradio-core/src/lib/gengen/gr_multiply_const_XX.i.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_multiply_const_vXX.cc.t b/gnuradio-core/src/lib/gengen/gr_multiply_const_vXX.cc.t
index 5725c1c46..eb896dee5 100755
--- a/gnuradio-core/src/lib/gengen/gr_multiply_const_vXX.cc.t
+++ b/gnuradio-core/src/lib/gengen/gr_multiply_const_vXX.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2006,2010 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,
@@ -50,12 +50,12 @@ int
{
@I_TYPE@ *iptr = (@O_TYPE@ *)input_items[0];
@O_TYPE@ *optr = (@O_TYPE@ *)output_items[0];
-
+
int nitems_per_block = output_signature()->sizeof_stream_item(0)/sizeof(@I_TYPE@);
for (int i = 0; i < noutput_items; i++)
for (int j = 0; j < nitems_per_block; j++)
*optr++ = *iptr++ * d_k[j];
-
+
return noutput_items;
}
diff --git a/gnuradio-core/src/lib/gengen/gr_multiply_const_vXX.h.t b/gnuradio-core/src/lib/gengen/gr_multiply_const_vXX.h.t
index f696ab7b1..2c6edd364 100644
--- a/gnuradio-core/src/lib/gengen/gr_multiply_const_vXX.h.t
+++ b/gnuradio-core/src/lib/gengen/gr_multiply_const_vXX.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2006,2010 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_multiply_const_vXX.i.t b/gnuradio-core/src/lib/gengen/gr_multiply_const_vXX.i.t
index ad1643a7e..e0e6ae905 100755
--- a/gnuradio-core/src/lib/gengen/gr_multiply_const_vXX.i.t
+++ b/gnuradio-core/src/lib/gengen/gr_multiply_const_vXX.i.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2006,2010 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_mute_XX.cc.t b/gnuradio-core/src/lib/gengen/gr_mute_XX.cc.t
index 62a8e63da..4b8ff8415 100644
--- a/gnuradio-core/src/lib/gengen/gr_mute_XX.cc.t
+++ b/gnuradio-core/src/lib/gengen/gr_mute_XX.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
@@ -74,6 +74,6 @@ int
while (size-- > 0)
*optr++ = *iptr++;
}
-
+
return noutput_items;
}
diff --git a/gnuradio-core/src/lib/gengen/gr_mute_XX.h.t b/gnuradio-core/src/lib/gengen/gr_mute_XX.h.t
index ccf966e53..ca23904e9 100644
--- a/gnuradio-core/src/lib/gengen/gr_mute_XX.h.t
+++ b/gnuradio-core/src/lib/gengen/gr_mute_XX.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_mute_XX.i.t b/gnuradio-core/src/lib/gengen/gr_mute_XX.i.t
index 358d9f8e4..ffcfac8a6 100644
--- a/gnuradio-core/src/lib/gengen/gr_mute_XX.i.t
+++ b/gnuradio-core/src/lib/gengen/gr_mute_XX.i.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_noise_source_X.cc.t b/gnuradio-core/src/lib/gengen/gr_noise_source_X.cc.t
index 35f5fabd9..3078f6366 100644
--- a/gnuradio-core/src/lib/gengen/gr_noise_source_X.cc.t
+++ b/gnuradio-core/src/lib/gengen/gr_noise_source_X.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
@@ -30,7 +30,7 @@
#include <stdexcept>
-@NAME@_sptr
+@NAME@_sptr
gr_make_@BASE_NAME@ (gr_noise_type_t type, float ampl, long seed)
{
return gnuradio::get_initial_sptr(new @NAME@ (type, ampl, seed));
@@ -53,7 +53,7 @@ int
gr_vector_void_star &output_items)
{
@TYPE@ *out = (@TYPE@ *) output_items[0];
-
+
switch (d_type){
#if @IS_COMPLEX@ // complex?
@@ -79,18 +79,18 @@ int
for (int i = 0; i < noutput_items; i++)
out[i] = (@TYPE@)(d_ampl * d_rng.gasdev ());
break;
-
+
case GR_LAPLACIAN:
for (int i = 0; i < noutput_items; i++)
out[i] = (@TYPE@)(d_ampl * d_rng.laplacian ());
break;
-
+
case GR_IMPULSE: // FIXME changeable impulse settings
for (int i = 0; i < noutput_items; i++)
out[i] = (@TYPE@)(d_ampl * d_rng.impulse (9));
break;
#endif
-
+
default:
throw std::runtime_error ("invalid type");
}
diff --git a/gnuradio-core/src/lib/gengen/gr_noise_source_X.h.t b/gnuradio-core/src/lib/gengen/gr_noise_source_X.h.t
index 196501c4d..31ffb2b16 100644
--- a/gnuradio-core/src/lib/gengen/gr_noise_source_X.h.t
+++ b/gnuradio-core/src/lib/gengen/gr_noise_source_X.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -40,7 +40,7 @@ typedef boost::shared_ptr<@NAME@> @NAME@_sptr;
* \param seed seed for random generators. Note that for uniform and
* Gaussian distributions, this should be a negative number.
*/
-GR_CORE_API @NAME@_sptr
+GR_CORE_API @NAME@_sptr
gr_make_@BASE_NAME@ (gr_noise_type_t type, float ampl, long seed = 0);
/*!
@@ -48,7 +48,7 @@ gr_make_@BASE_NAME@ (gr_noise_type_t type, float ampl, long seed = 0);
* \ingroup source_blk
*
* \details
- * Generate random values from different distributions.
+ * Generate random values from different distributions.
* Currently, only Gaussian and uniform are enabled.
*
* \param type the random distribution to use (see gr_noise_type.h)
@@ -57,7 +57,7 @@ gr_make_@BASE_NAME@ (gr_noise_type_t type, float ampl, long seed = 0);
* Gaussian distributions, this should be a negative number.
*/
class GR_CORE_API @NAME@ : public gr_sync_block {
- friend GR_CORE_API @NAME@_sptr
+ friend GR_CORE_API @NAME@_sptr
gr_make_@BASE_NAME@ (gr_noise_type_t type, float ampl, long seed);
diff --git a/gnuradio-core/src/lib/gengen/gr_noise_source_X.i.t b/gnuradio-core/src/lib/gengen/gr_noise_source_X.i.t
index 36a51f31a..df27ab79b 100644
--- a/gnuradio-core/src/lib/gengen/gr_noise_source_X.i.t
+++ b/gnuradio-core/src/lib/gengen/gr_noise_source_X.i.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -24,7 +24,7 @@
GR_SWIG_BLOCK_MAGIC(gr,@BASE_NAME@);
-@NAME@_sptr
+@NAME@_sptr
gr_make_@BASE_NAME@ (gr_noise_type_t type, float ampl, long seed = 0);
class @NAME@ : public gr_block {
diff --git a/gnuradio-core/src/lib/gengen/gr_noise_type.h b/gnuradio-core/src/lib/gengen/gr_noise_type.h
index 8d101a9ef..d2aba9b0c 100644
--- a/gnuradio-core/src/lib/gengen/gr_noise_type.h
+++ b/gnuradio-core/src/lib/gengen/gr_noise_type.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_not_XX.cc.t b/gnuradio-core/src/lib/gengen/gr_not_XX.cc.t
index 432938e67..4806b142f 100644
--- a/gnuradio-core/src/lib/gengen/gr_not_XX.cc.t
+++ b/gnuradio-core/src/lib/gengen/gr_not_XX.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2008,2010 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_not_XX.h.t b/gnuradio-core/src/lib/gengen/gr_not_XX.h.t
index b946ffc42..aff421109 100644
--- a/gnuradio-core/src/lib/gengen/gr_not_XX.h.t
+++ b/gnuradio-core/src/lib/gengen/gr_not_XX.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2008 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,
@@ -34,7 +34,7 @@ typedef boost::shared_ptr<@NAME@> @SPTR_NAME@;
GR_CORE_API @SPTR_NAME@ gr_make_@BASE_NAME@ ();
/*!
- * \brief output = ~input_0
+ * \brief output = ~input_0
* \ingroup math_blk
*
* bitwise boolean not across input stream.
diff --git a/gnuradio-core/src/lib/gengen/gr_not_XX.i.t b/gnuradio-core/src/lib/gengen/gr_not_XX.i.t
index e17d40eea..06db5ca59 100644
--- a/gnuradio-core/src/lib/gengen/gr_not_XX.i.t
+++ b/gnuradio-core/src/lib/gengen/gr_not_XX.i.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2008 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_or_XX.cc.t b/gnuradio-core/src/lib/gengen/gr_or_XX.cc.t
index 07c759d73..ee55eedda 100644
--- a/gnuradio-core/src/lib/gengen/gr_or_XX.cc.t
+++ b/gnuradio-core/src/lib/gengen/gr_or_XX.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2008,2010 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_or_XX.h.t b/gnuradio-core/src/lib/gengen/gr_or_XX.h.t
index 8d1fea951..8860eedd5 100644
--- a/gnuradio-core/src/lib/gengen/gr_or_XX.h.t
+++ b/gnuradio-core/src/lib/gengen/gr_or_XX.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2008 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_or_XX.i.t b/gnuradio-core/src/lib/gengen/gr_or_XX.i.t
index e17d40eea..06db5ca59 100644
--- a/gnuradio-core/src/lib/gengen/gr_or_XX.i.t
+++ b/gnuradio-core/src/lib/gengen/gr_or_XX.i.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2008 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_packed_to_unpacked_XX.cc.t b/gnuradio-core/src/lib/gengen/gr_packed_to_unpacked_XX.cc.t
index abab97417..75e53c4ca 100644
--- a/gnuradio-core/src/lib/gengen/gr_packed_to_unpacked_XX.cc.t
+++ b/gnuradio-core/src/lib/gengen/gr_packed_to_unpacked_XX.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -35,14 +35,14 @@ static const unsigned int BITS_PER_TYPE = sizeof(@I_TYPE@) * 8;
static const unsigned int LOG2_L_TYPE = gr_log2_const<sizeof(@I_TYPE@) * 8>();
-@SPTR_NAME@
+@SPTR_NAME@
gr_make_@BASE_NAME@ (unsigned int bits_per_chunk, gr_endianness_t endianness)
{
- return @SPTR_NAME@
+ return @SPTR_NAME@
(new @NAME@ (bits_per_chunk,endianness));
}
-@NAME@::@NAME@ (unsigned int bits_per_chunk,
+@NAME@::@NAME@ (unsigned int bits_per_chunk,
gr_endianness_t endianness)
: gr_block ("@BASE_NAME@",
gr_make_io_signature (1, -1, sizeof (@I_TYPE@)),
diff --git a/gnuradio-core/src/lib/gengen/gr_packed_to_unpacked_XX.h.t b/gnuradio-core/src/lib/gengen/gr_packed_to_unpacked_XX.h.t
index 77cd2b470..e95771b37 100644
--- a/gnuradio-core/src/lib/gengen/gr_packed_to_unpacked_XX.h.t
+++ b/gnuradio-core/src/lib/gengen/gr_packed_to_unpacked_XX.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
@@ -32,7 +32,7 @@
class @NAME@;
typedef boost::shared_ptr<@NAME@> @SPTR_NAME@;
-GR_CORE_API @SPTR_NAME@
+GR_CORE_API @SPTR_NAME@
gr_make_@BASE_NAME@ (unsigned int bits_per_chunk, gr_endianness_t endianness);
/*!
@@ -43,15 +43,15 @@ gr_make_@BASE_NAME@ (unsigned int bits_per_chunk, gr_endianness_t endianness);
*
* This is the inverse of gr_unpacked_to_packed_XX.
*
- * The bits in the bytes or shorts input stream are grouped into chunks of
+ * The bits in the bytes or shorts input stream are grouped into chunks of
* \p bits_per_chunk bits and each resulting chunk is written right-
- * justified to the output stream of bytes or shorts.
- * All b or 16 bits of the each input bytes or short are processed.
+ * justified to the output stream of bytes or shorts.
+ * All b or 16 bits of the each input bytes or short are processed.
* The right thing is done if bits_per_chunk is not a power of two.
*
* The combination of gr_packed_to_unpacked_XX_ followed by
* gr_chunks_to_symbols_Xf or gr_chunks_to_symbols_Xc handles the
- * general case of mapping from a stream of bytes or shorts into
+ * general case of mapping from a stream of bytes or shorts into
* arbitrary float or complex symbols.
*
* \sa gr_packed_to_unpacked_bb, gr_unpacked_to_packed_bb,
@@ -62,7 +62,7 @@ gr_make_@BASE_NAME@ (unsigned int bits_per_chunk, gr_endianness_t endianness);
class GR_CORE_API @NAME@ : public gr_block
{
- friend GR_CORE_API @SPTR_NAME@
+ friend GR_CORE_API @SPTR_NAME@
gr_make_@BASE_NAME@ (unsigned int bits_per_chunk, gr_endianness_t endianness);
@NAME@ (unsigned int bits_per_chunk, gr_endianness_t endianness);
diff --git a/gnuradio-core/src/lib/gengen/gr_packed_to_unpacked_XX.i.t b/gnuradio-core/src/lib/gengen/gr_packed_to_unpacked_XX.i.t
index 8267a7c15..1e978956a 100644
--- a/gnuradio-core/src/lib/gengen/gr_packed_to_unpacked_XX.i.t
+++ b/gnuradio-core/src/lib/gengen/gr_packed_to_unpacked_XX.i.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -24,7 +24,7 @@
GR_SWIG_BLOCK_MAGIC(gr,@BASE_NAME@);
-@SPTR_NAME@
+@SPTR_NAME@
gr_make_@BASE_NAME@ (unsigned int bits_per_chunk, gr_endianness_t endianness);
class @NAME@ : public gr_block
diff --git a/gnuradio-core/src/lib/gengen/gr_peak_detector_XX.cc.t b/gnuradio-core/src/lib/gengen/gr_peak_detector_XX.cc.t
index 1a4a2564b..54af3c0cd 100644
--- a/gnuradio-core/src/lib/gengen/gr_peak_detector_XX.cc.t
+++ b/gnuradio-core/src/lib/gengen/gr_peak_detector_XX.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007,2010 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,
@@ -35,18 +35,18 @@ gr_make_@BASE_NAME@ (float threshold_factor_rise,
float threshold_factor_fall,
int look_ahead, float alpha)
{
- return gnuradio::get_initial_sptr (new @NAME@ (threshold_factor_rise,
+ return gnuradio::get_initial_sptr (new @NAME@ (threshold_factor_rise,
threshold_factor_fall,
look_ahead, alpha));
}
-@NAME@::@NAME@ (float threshold_factor_rise,
+@NAME@::@NAME@ (float threshold_factor_rise,
float threshold_factor_fall,
int look_ahead, float alpha)
: gr_sync_block ("@BASE_NAME@",
gr_make_io_signature (1, 1, sizeof (@I_TYPE@)),
gr_make_io_signature (1, 1, sizeof (char))),
- d_threshold_factor_rise(threshold_factor_rise),
+ d_threshold_factor_rise(threshold_factor_rise),
d_threshold_factor_fall(threshold_factor_fall),
d_look_ahead(look_ahead), d_avg_alpha(alpha), d_avg(0), d_found(0)
{
@@ -94,7 +94,7 @@ int
optr[peak_ind] = 1;
state = 0;
peak_val = -(@I_TYPE@)INFINITY;
- //printf("Leaving State 1: Peak: %f Peak Ind: %d i: %d noutput_items: %d\n",
+ //printf("Leaving State 1: Peak: %f Peak Ind: %d i: %d noutput_items: %d\n",
//peak_val, peak_ind, i, noutput_items);
}
}
diff --git a/gnuradio-core/src/lib/gengen/gr_peak_detector_XX.h.t b/gnuradio-core/src/lib/gengen/gr_peak_detector_XX.h.t
index d6d1e5e51..3e05594fb 100644
--- a/gnuradio-core/src/lib/gengen/gr_peak_detector_XX.h.t
+++ b/gnuradio-core/src/lib/gengen/gr_peak_detector_XX.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007 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,
@@ -40,16 +40,16 @@ GR_CORE_API @SPTR_NAME@ gr_make_@BASE_NAME@ (float threshold_factor_rise = 0.25,
* \brief Detect the peak of a signal
* \ingroup level_blk
*
- * If a peak is detected, this block outputs a 1,
+ * If a peak is detected, this block outputs a 1,
* or it outputs 0's.
*
* \param threshold_factor_rise The threshold factor determins when a peak
- * has started. An average of the signal is calculated and when the
+ * has started. An average of the signal is calculated and when the
* value of the signal goes over threshold_factor_rise*average, we
* start looking for a peak.
* \param threshold_factor_fall The threshold factor determins when a peak
- * has ended. An average of the signal is calculated and when the
- * value of the signal goes bellow threshold_factor_fall*average, we
+ * has ended. An average of the signal is calculated and when the
+ * value of the signal goes bellow threshold_factor_fall*average, we
* stop looking for a peak.
* \param look_ahead The look-ahead value is used when the threshold is
* found to look if there another peak within this step range.
@@ -64,7 +64,7 @@ class GR_CORE_API @NAME@ : public gr_sync_block
float threshold_factor_fall,
int look_ahead, float alpha);
- @NAME@ (float threshold_factor_rise,
+ @NAME@ (float threshold_factor_rise,
float threshold_factor_fall,
int look_ahead, float alpha);
diff --git a/gnuradio-core/src/lib/gengen/gr_peak_detector_XX.i.t b/gnuradio-core/src/lib/gengen/gr_peak_detector_XX.i.t
index af98945bb..212ce0c94 100644
--- a/gnuradio-core/src/lib/gengen/gr_peak_detector_XX.i.t
+++ b/gnuradio-core/src/lib/gengen/gr_peak_detector_XX.i.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007 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,
@@ -25,14 +25,14 @@
GR_SWIG_BLOCK_MAGIC(gr,@BASE_NAME@)
@SPTR_NAME@ gr_make_@BASE_NAME@ (float threshold_factor_rise = 0.25,
- float threshold_factor_fall = 0.40,
+ float threshold_factor_fall = 0.40,
int look_ahead = 10,
float alpha=0.001);
class @NAME@ : public gr_sync_block
{
private:
- @NAME@ (float threshold_factor_rise,
+ @NAME@ (float threshold_factor_rise,
float threshold_factor_fall,
int look_ahead, float alpha);
@@ -42,7 +42,7 @@ class @NAME@ : public gr_sync_block
void set_look_ahead(int look) { d_look_ahead = look; }
void set_alpha(int alpha) { d_avg_alpha = alpha; }
- float threshold_factor_rise() { return d_threshold_factor_rise; }
+ float threshold_factor_rise() { return d_threshold_factor_rise; }
float threshold_factor_fall() { return d_threshold_factor_fall; }
int look_ahead() { return d_look_ahead; }
float alpha() { return d_avg_alpha; }
diff --git a/gnuradio-core/src/lib/gengen/gr_probe_signal_X.cc.t b/gnuradio-core/src/lib/gengen/gr_probe_signal_X.cc.t
index d60a5126a..9a10bab59 100644
--- a/gnuradio-core/src/lib/gengen/gr_probe_signal_X.cc.t
+++ b/gnuradio-core/src/lib/gengen/gr_probe_signal_X.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2010,2012 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_probe_signal_X.h.t b/gnuradio-core/src/lib/gengen/gr_probe_signal_X.h.t
index 26a95b9b2..936f437f1 100644
--- a/gnuradio-core/src/lib/gengen/gr_probe_signal_X.h.t
+++ b/gnuradio-core/src/lib/gengen/gr_probe_signal_X.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005, 2012 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_probe_signal_X.i.t b/gnuradio-core/src/lib/gengen/gr_probe_signal_X.i.t
index 3f1ef8ffd..ec9643686 100644
--- a/gnuradio-core/src/lib/gengen/gr_probe_signal_X.i.t
+++ b/gnuradio-core/src/lib/gengen/gr_probe_signal_X.i.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005, 2012 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_probe_signal_vX.cc.t b/gnuradio-core/src/lib/gengen/gr_probe_signal_vX.cc.t
index a83de239e..1aedca4ec 100644
--- a/gnuradio-core/src/lib/gengen/gr_probe_signal_vX.cc.t
+++ b/gnuradio-core/src/lib/gengen/gr_probe_signal_vX.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2010,2012 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_probe_signal_vX.h.t b/gnuradio-core/src/lib/gengen/gr_probe_signal_vX.h.t
index 3a7277b93..ee673c14a 100644
--- a/gnuradio-core/src/lib/gengen/gr_probe_signal_vX.h.t
+++ b/gnuradio-core/src/lib/gengen/gr_probe_signal_vX.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005, 2012 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_probe_signal_vX.i.t b/gnuradio-core/src/lib/gengen/gr_probe_signal_vX.i.t
index 20191948a..b7de09125 100644
--- a/gnuradio-core/src/lib/gengen/gr_probe_signal_vX.i.t
+++ b/gnuradio-core/src/lib/gengen/gr_probe_signal_vX.i.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005, 2012 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_sample_and_hold_XX.cc.t b/gnuradio-core/src/lib/gengen/gr_sample_and_hold_XX.cc.t
index b78c52857..68f4d544e 100644
--- a/gnuradio-core/src/lib/gengen/gr_sample_and_hold_XX.cc.t
+++ b/gnuradio-core/src/lib/gengen/gr_sample_and_hold_XX.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007,2010 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_sample_and_hold_XX.h.t b/gnuradio-core/src/lib/gengen/gr_sample_and_hold_XX.h.t
index 328c47106..0364941cb 100644
--- a/gnuradio-core/src/lib/gengen/gr_sample_and_hold_XX.h.t
+++ b/gnuradio-core/src/lib/gengen/gr_sample_and_hold_XX.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_sample_and_hold_XX.i.t b/gnuradio-core/src/lib/gengen/gr_sample_and_hold_XX.i.t
index 342e6a88b..4620b0f2c 100644
--- a/gnuradio-core/src/lib/gengen/gr_sample_and_hold_XX.i.t
+++ b/gnuradio-core/src/lib/gengen/gr_sample_and_hold_XX.i.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_sig_source_X.cc.t b/gnuradio-core/src/lib/gengen/gr_sig_source_X.cc.t
index 9354eb93c..bdd0e810a 100644
--- a/gnuradio-core/src/lib/gengen/gr_sig_source_X.cc.t
+++ b/gnuradio-core/src/lib/gengen/gr_sig_source_X.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
@@ -67,7 +67,7 @@ int
for (int i = 0; i < noutput_items; i++) // FIXME unroll
optr[i] = t;
break;
-
+
case GR_SIN_WAVE:
case GR_COS_WAVE:
d_nco.sincos (optr, noutput_items, d_ampl);
@@ -78,11 +78,11 @@ int
optr[i] += d_offset;
}
break;
-
- /* Implements a real square wave high from -PI to 0.
+
+ /* Implements a real square wave high from -PI to 0.
* The imaginary square wave leads by 90 deg.
*/
- case GR_SQR_WAVE:
+ case GR_SQR_WAVE:
for (int i = 0; i < noutput_items; i++){
if (d_nco.get_phase() < -1*M_PI/2)
optr[i] = gr_complex(d_ampl, 0)+d_offset;
@@ -91,18 +91,18 @@ int
else if (d_nco.get_phase() < M_PI/2)
optr[i] = gr_complex(0, d_ampl)+d_offset;
else
- optr[i] = d_offset;
+ optr[i] = d_offset;
d_nco.step();
}
break;
-
- /* Implements a real triangle wave rising from -PI to 0 and
+
+ /* Implements a real triangle wave rising from -PI to 0 and
* falling from 0 to PI. The imaginary triangle wave leads by 90 deg.
*/
- case GR_TRI_WAVE:
+ case GR_TRI_WAVE:
for (int i = 0; i < noutput_items; i++){
if (d_nco.get_phase() < -1*M_PI/2){
- optr[i] = gr_complex(d_ampl*d_nco.get_phase()/M_PI + d_ampl,
+ optr[i] = gr_complex(d_ampl*d_nco.get_phase()/M_PI + d_ampl,
-1*d_ampl*d_nco.get_phase()/M_PI - d_ampl/2)+d_offset;
}
else if (d_nco.get_phase() < 0){
@@ -110,24 +110,24 @@ int
d_ampl*d_nco.get_phase()/M_PI + d_ampl/2)+d_offset;
}
else if (d_nco.get_phase() < M_PI/2){
- optr[i] = gr_complex(-1*d_ampl*d_nco.get_phase()/M_PI + d_ampl,
+ optr[i] = gr_complex(-1*d_ampl*d_nco.get_phase()/M_PI + d_ampl,
d_ampl*d_nco.get_phase()/M_PI + d_ampl/2)+d_offset;
}
else{
- optr[i] = gr_complex(-1*d_ampl*d_nco.get_phase()/M_PI + d_ampl,
+ optr[i] = gr_complex(-1*d_ampl*d_nco.get_phase()/M_PI + d_ampl,
-1*d_ampl*d_nco.get_phase()/M_PI + 3*d_ampl/2)+d_offset;
}
d_nco.step();
}
break;
-
- /* Implements a real saw tooth wave rising from -PI to PI.
+
+ /* Implements a real saw tooth wave rising from -PI to PI.
* The imaginary saw tooth wave leads by 90 deg.
*/
- case GR_SAW_WAVE:
+ case GR_SAW_WAVE:
for (int i = 0; i < noutput_items; i++){
if (d_nco.get_phase() < -1*M_PI/2){
- optr[i] = gr_complex(d_ampl*d_nco.get_phase()/(2*M_PI) + d_ampl/2,
+ optr[i] = gr_complex(d_ampl*d_nco.get_phase()/(2*M_PI) + d_ampl/2,
d_ampl*d_nco.get_phase()/(2*M_PI) + 5*d_ampl/4)+d_offset;
}
else{
@@ -135,7 +135,7 @@ int
d_ampl*d_nco.get_phase()/(2*M_PI) + d_ampl/4)+d_offset;
}
d_nco.step();
- }
+ }
break;
#else // nope...
@@ -145,7 +145,7 @@ int
for (int i = 0; i < noutput_items; i++) // FIXME unroll
optr[i] = t;
break;
-
+
case GR_SIN_WAVE:
d_nco.sin (optr, noutput_items, d_ampl);
if (d_offset == 0)
@@ -165,9 +165,9 @@ int
optr[i] += d_offset;
}
break;
-
- /* The square wave is high from -PI to 0. */
- case GR_SQR_WAVE:
+
+ /* The square wave is high from -PI to 0. */
+ case GR_SQR_WAVE:
t = (@TYPE@) d_ampl + d_offset;
for (int i = 0; i < noutput_items; i++){
if (d_nco.get_phase() < 0)
@@ -177,9 +177,9 @@ int
d_nco.step();
}
break;
-
- /* The triangle wave rises from -PI to 0 and falls from 0 to PI. */
- case GR_TRI_WAVE:
+
+ /* The triangle wave rises from -PI to 0 and falls from 0 to PI. */
+ case GR_TRI_WAVE:
for (int i = 0; i < noutput_items; i++){
double t = d_ampl*d_nco.get_phase()/M_PI;
if (d_nco.get_phase() < 0)
@@ -189,12 +189,12 @@ int
d_nco.step();
}
break;
-
+
/* The saw tooth wave rises from -PI to PI. */
- case GR_SAW_WAVE:
+ case GR_SAW_WAVE:
for (int i = 0; i < noutput_items; i++){
t = static_cast<@TYPE@>(d_ampl*d_nco.get_phase()/(2*M_PI) + d_ampl/2 + d_offset);
- optr[i] = t;
+ optr[i] = t;
d_nco.step();
}
break;
diff --git a/gnuradio-core/src/lib/gengen/gr_sig_source_X.h.t b/gnuradio-core/src/lib/gengen/gr_sig_source_X.h.t
index 3df723868..baa82dbe2 100644
--- a/gnuradio-core/src/lib/gengen/gr_sig_source_X.h.t
+++ b/gnuradio-core/src/lib/gengen/gr_sig_source_X.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -39,7 +39,7 @@ typedef boost::shared_ptr<@NAME@> @NAME@_sptr;
*/
class GR_CORE_API @NAME@ : public gr_sync_block {
- friend GR_CORE_API @NAME@_sptr
+ friend GR_CORE_API @NAME@_sptr
gr_make_@BASE_NAME@ (double sampling_freq, gr_waveform_t waveform,
double frequency, double ampl, @TYPE@ offset);
diff --git a/gnuradio-core/src/lib/gengen/gr_sig_source_X.i.t b/gnuradio-core/src/lib/gengen/gr_sig_source_X.i.t
index ce197b9b6..7bd85fcb8 100644
--- a/gnuradio-core/src/lib/gengen/gr_sig_source_X.i.t
+++ b/gnuradio-core/src/lib/gengen/gr_sig_source_X.i.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_sig_source_waveform.h b/gnuradio-core/src/lib/gengen/gr_sig_source_waveform.h
index e52a497c3..9fe233ba4 100644
--- a/gnuradio-core/src/lib/gengen/gr_sig_source_waveform.h
+++ b/gnuradio-core/src/lib/gengen/gr_sig_source_waveform.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_sub_XX.cc.t b/gnuradio-core/src/lib/gengen/gr_sub_XX.cc.t
index 1dcdf81ad..11eb7440e 100644
--- a/gnuradio-core/src/lib/gengen/gr_sub_XX.cc.t
+++ b/gnuradio-core/src/lib/gengen/gr_sub_XX.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004, 2009,2010 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_sub_XX.h.t b/gnuradio-core/src/lib/gengen/gr_sub_XX.h.t
index 4c988945e..f96c93484 100644
--- a/gnuradio-core/src/lib/gengen/gr_sub_XX.h.t
+++ b/gnuradio-core/src/lib/gengen/gr_sub_XX.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004, 2009 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_sub_XX.i.t b/gnuradio-core/src/lib/gengen/gr_sub_XX.i.t
index f7726ccf6..b2c510610 100644
--- a/gnuradio-core/src/lib/gengen/gr_sub_XX.i.t
+++ b/gnuradio-core/src/lib/gengen/gr_sub_XX.i.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004, 2009 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_unpacked_to_packed_XX.cc.t b/gnuradio-core/src/lib/gengen/gr_unpacked_to_packed_XX.cc.t
index b37c67abd..ed2b713db 100644
--- a/gnuradio-core/src/lib/gengen/gr_unpacked_to_packed_XX.cc.t
+++ b/gnuradio-core/src/lib/gengen/gr_unpacked_to_packed_XX.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2006 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,
@@ -33,14 +33,14 @@
static const unsigned int BITS_PER_TYPE = sizeof(@O_TYPE@) * 8;
-@SPTR_NAME@
+@SPTR_NAME@
gr_make_@BASE_NAME@ (unsigned int bits_per_chunk, gr_endianness_t endianness)
{
- return @SPTR_NAME@
+ return @SPTR_NAME@
(new @NAME@ (bits_per_chunk,endianness));
}
-@NAME@::@NAME@ (unsigned int bits_per_chunk,
+@NAME@::@NAME@ (unsigned int bits_per_chunk,
gr_endianness_t endianness)
: gr_block ("@BASE_NAME@",
gr_make_io_signature (1, -1, sizeof (@I_TYPE@)),
@@ -91,7 +91,7 @@ int
// per stream processing
//assert((ninput_items[m]-d_index)*d_bits_per_chunk >= noutput_items*BITS_PER_TYPE);
-
+
switch(d_endianness){
case GR_MSB_FIRST:
@@ -115,7 +115,7 @@ int
out[i] = tmp;
}
break;
-
+
default:
assert(0);
}
diff --git a/gnuradio-core/src/lib/gengen/gr_unpacked_to_packed_XX.h.t b/gnuradio-core/src/lib/gengen/gr_unpacked_to_packed_XX.h.t
index a7db84c5c..a7b7b54df 100644
--- a/gnuradio-core/src/lib/gengen/gr_unpacked_to_packed_XX.h.t
+++ b/gnuradio-core/src/lib/gengen/gr_unpacked_to_packed_XX.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
@@ -32,7 +32,7 @@
class @NAME@;
typedef boost::shared_ptr<@NAME@> @NAME@_sptr;
-GR_CORE_API @SPTR_NAME@
+GR_CORE_API @SPTR_NAME@
gr_make_@BASE_NAME@ (unsigned int bits_per_chunk, gr_endianness_t endianness);
/*!
diff --git a/gnuradio-core/src/lib/gengen/gr_unpacked_to_packed_XX.i.t b/gnuradio-core/src/lib/gengen/gr_unpacked_to_packed_XX.i.t
index e079d4a9b..1e978956a 100644
--- a/gnuradio-core/src/lib/gengen/gr_unpacked_to_packed_XX.i.t
+++ b/gnuradio-core/src/lib/gengen/gr_unpacked_to_packed_XX.i.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_vector_sink_X.cc.t b/gnuradio-core/src/lib/gengen/gr_vector_sink_X.cc.t
index f3466d46f..a9e3a0a3e 100644
--- a/gnuradio-core/src/lib/gengen/gr_vector_sink_X.cc.t
+++ b/gnuradio-core/src/lib/gengen/gr_vector_sink_X.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2008,2010 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_vector_sink_X.h.t b/gnuradio-core/src/lib/gengen/gr_vector_sink_X.h.t
index 475cc0112..b9126dc7b 100644
--- a/gnuradio-core/src/lib/gengen/gr_vector_sink_X.h.t
+++ b/gnuradio-core/src/lib/gengen/gr_vector_sink_X.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2008,2009 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_vector_sink_X.i.t b/gnuradio-core/src/lib/gengen/gr_vector_sink_X.i.t
index a49276a99..d4a940911 100644
--- a/gnuradio-core/src/lib/gengen/gr_vector_sink_X.i.t
+++ b/gnuradio-core/src/lib/gengen/gr_vector_sink_X.i.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2008,2009 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_vector_source_X.cc.t b/gnuradio-core/src/lib/gengen/gr_vector_source_X.cc.t
index 1fe5df5b5..9f68f9cf1 100644
--- a/gnuradio-core/src/lib/gengen/gr_vector_source_X.cc.t
+++ b/gnuradio-core/src/lib/gengen/gr_vector_source_X.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2008,2010 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,
@@ -54,10 +54,10 @@ int
if (d_repeat){
unsigned int size = d_data.size ();
unsigned int offset = d_offset;
-
+
if (size == 0)
return -1;
-
+
for (int i = 0; i < noutput_items*d_vlen; i++){
optr[i] = d_data[offset++];
if (offset >= size)
diff --git a/gnuradio-core/src/lib/gengen/gr_vector_source_X.h.t b/gnuradio-core/src/lib/gengen/gr_vector_source_X.h.t
index fbab3effb..fe0a77f81 100644
--- a/gnuradio-core/src/lib/gengen/gr_vector_source_X.h.t
+++ b/gnuradio-core/src/lib/gengen/gr_vector_source_X.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2008 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,
@@ -37,7 +37,7 @@ typedef boost::shared_ptr<@NAME@> @NAME@_sptr;
*/
class @NAME@ : public gr_sync_block {
- friend GR_CORE_API @NAME@_sptr
+ friend GR_CORE_API @NAME@_sptr
gr_make_@BASE_NAME@ (const std::vector<@TYPE@> &data, bool repeat, int vlen);
std::vector<@TYPE@> d_data;
diff --git a/gnuradio-core/src/lib/gengen/gr_vector_source_X.i.t b/gnuradio-core/src/lib/gengen/gr_vector_source_X.i.t
index a22157893..6c20539ac 100644
--- a/gnuradio-core/src/lib/gengen/gr_vector_source_X.i.t
+++ b/gnuradio-core/src/lib/gengen/gr_vector_source_X.i.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2008 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_xor_XX.cc.t b/gnuradio-core/src/lib/gengen/gr_xor_XX.cc.t
index 29230f7a6..d6990aa4f 100644
--- a/gnuradio-core/src/lib/gengen/gr_xor_XX.cc.t
+++ b/gnuradio-core/src/lib/gengen/gr_xor_XX.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2008,2010 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_xor_XX.h.t b/gnuradio-core/src/lib/gengen/gr_xor_XX.h.t
index b2e1a68c8..8fe47d9e0 100644
--- a/gnuradio-core/src/lib/gengen/gr_xor_XX.h.t
+++ b/gnuradio-core/src/lib/gengen/gr_xor_XX.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2008 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,
diff --git a/gnuradio-core/src/lib/gengen/gr_xor_XX.i.t b/gnuradio-core/src/lib/gengen/gr_xor_XX.i.t
index e17d40eea..06db5ca59 100644
--- a/gnuradio-core/src/lib/gengen/gr_xor_XX.i.t
+++ b/gnuradio-core/src/lib/gengen/gr_xor_XX.i.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2008 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,
diff --git a/gnuradio-core/src/lib/gnuradio-config-info.cc b/gnuradio-core/src/lib/gnuradio-config-info.cc
index 6fa53b877..d3e6454fd 100644
--- a/gnuradio-core/src/lib/gnuradio-config-info.cc
+++ b/gnuradio-core/src/lib/gnuradio-config-info.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009 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,
@@ -52,7 +52,7 @@ main(int argc, char **argv)
std::cout << desc << std::endl;
return 1;
}
-
+
if (vm.count("prefix"))
std::cout << gr_prefix() << std::endl;
diff --git a/gnuradio-core/src/lib/hier/gr_channel_model.cc b/gnuradio-core/src/lib/hier/gr_channel_model.cc
index 5f190e972..bb01972d2 100644
--- a/gnuradio-core/src/lib/hier/gr_channel_model.cc
+++ b/gnuradio-core/src/lib/hier/gr_channel_model.cc
@@ -1,18 +1,18 @@
/*
* Copyright 2009 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,
@@ -46,23 +46,23 @@ gr_channel_model::gr_channel_model(double noise_voltage,
const std::vector<gr_complex> &taps,
double noise_seed)
: gr_hier_block2("gr_channel_model",
- gr_make_io_signature(1, 1, sizeof(gr_complex)),
+ gr_make_io_signature(1, 1, sizeof(gr_complex)),
gr_make_io_signature(1, 1, sizeof(gr_complex)))
{
d_taps = taps;
while(d_taps.size() < 2) {
d_taps.push_back(0);
}
-
+
d_timing_offset = gr_make_fractional_interpolator_cc(0, epsilon);
-
+
d_multipath = gr_make_fir_filter_ccc(1, d_taps);
-
+
d_noise_adder = gr_make_add_cc();
d_noise = gr_make_noise_source_c(GR_GAUSSIAN, noise_voltage, noise_seed);
d_freq_offset = gr_make_sig_source_c(1, GR_SIN_WAVE, frequency_offset, 1.0, 0.0);
d_mixer_offset = gr_make_multiply_cc();
-
+
connect(self(), 0, d_timing_offset, 0);
connect(d_timing_offset, 0, d_multipath, 0);
connect(d_multipath, 0, d_mixer_offset, 0);
@@ -77,13 +77,13 @@ gr_channel_model::set_noise_voltage(double noise_voltage)
{
d_noise->set_amplitude(noise_voltage);
}
-
+
void
gr_channel_model::set_frequency_offset(double frequency_offset)
{
d_freq_offset->set_frequency(frequency_offset);
}
-
+
void
gr_channel_model::set_taps(const std::vector<gr_complex> &taps)
{
diff --git a/gnuradio-core/src/lib/hier/gr_channel_model.h b/gnuradio-core/src/lib/hier/gr_channel_model.h
index c5d06ce11..3f289e320 100644
--- a/gnuradio-core/src/lib/hier/gr_channel_model.h
+++ b/gnuradio-core/src/lib/hier/gr_channel_model.h
@@ -1,18 +1,18 @@
/*
* Copyright 2009 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,
@@ -56,16 +56,16 @@ class GR_CORE_API gr_channel_model : public gr_hier_block2
double epsilon,
const std::vector<gr_complex> &taps,
double noise_seed);
-
+
gr_fractional_interpolator_cc_sptr d_timing_offset;
gr_sig_source_c_sptr d_freq_offset;
gr_fir_filter_ccc_sptr d_multipath;
gr_add_cc_sptr d_noise_adder;
gr_noise_source_c_sptr d_noise;
gr_multiply_cc_sptr d_mixer_offset;
-
+
std::vector<gr_complex> d_taps;
-
+
public:
void set_noise_voltage(double noise_voltage);
void set_frequency_offset(double frequency_offset);
diff --git a/gnuradio-core/src/lib/hier/gr_channel_model.i b/gnuradio-core/src/lib/hier/gr_channel_model.i
index 2e0cb7bdf..24a9388e5 100644
--- a/gnuradio-core/src/lib/hier/gr_channel_model.i
+++ b/gnuradio-core/src/lib/hier/gr_channel_model.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009 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,
@@ -36,7 +36,7 @@ class gr_channel_model : public gr_hier_block2
double epsilon,
const std::vector<gr_complex> &taps,
double noise_seed);
-
+
public:
void set_noise_voltage(double noise_voltage);
void set_frequency_offset(double frequency_offset);
diff --git a/gnuradio-core/src/lib/hier/hier.i b/gnuradio-core/src/lib/hier/hier.i
index bec3de7ed..82044415e 100644
--- a/gnuradio-core/src/lib/hier/hier.i
+++ b/gnuradio-core/src/lib/hier/hier.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009 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,
diff --git a/gnuradio-core/src/lib/io/gr_file_descriptor_sink.cc b/gnuradio-core/src/lib/io/gr_file_descriptor_sink.cc
index 11e0a8eb9..099d46dbd 100644
--- a/gnuradio-core/src/lib/io/gr_file_descriptor_sink.cc
+++ b/gnuradio-core/src/lib/io/gr_file_descriptor_sink.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
@@ -57,7 +57,7 @@ gr_file_descriptor_sink::~gr_file_descriptor_sink ()
close (d_fd);
}
-int
+int
gr_file_descriptor_sink::work (int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items)
diff --git a/gnuradio-core/src/lib/io/gr_file_descriptor_sink.h b/gnuradio-core/src/lib/io/gr_file_descriptor_sink.h
index 5e4cc6505..3b1c1167f 100644
--- a/gnuradio-core/src/lib/io/gr_file_descriptor_sink.h
+++ b/gnuradio-core/src/lib/io/gr_file_descriptor_sink.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/io/gr_file_descriptor_sink.i b/gnuradio-core/src/lib/io/gr_file_descriptor_sink.i
index 14c37f68e..2c256e44d 100644
--- a/gnuradio-core/src/lib/io/gr_file_descriptor_sink.i
+++ b/gnuradio-core/src/lib/io/gr_file_descriptor_sink.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -22,7 +22,7 @@
GR_SWIG_BLOCK_MAGIC(gr,file_descriptor_sink)
-gr_file_descriptor_sink_sptr
+gr_file_descriptor_sink_sptr
gr_make_file_descriptor_sink (size_t itemsize, int fd);
class gr_file_descriptor_sink : public gr_sync_block
diff --git a/gnuradio-core/src/lib/io/gr_file_descriptor_source.cc b/gnuradio-core/src/lib/io/gr_file_descriptor_source.cc
index 334a57848..a63abf96b 100644
--- a/gnuradio-core/src/lib/io/gr_file_descriptor_source.cc
+++ b/gnuradio-core/src/lib/io/gr_file_descriptor_source.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2005 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,
@@ -133,9 +133,9 @@ gr_file_descriptor_source::read_items (char *buf, int nitems)
if (r == 0) // block until we get something
return read_items (buf, nitems);
-
+
return r;
-}
+}
int
gr_file_descriptor_source::handle_residue (char *buf, int nbytes_read)
diff --git a/gnuradio-core/src/lib/io/gr_file_descriptor_source.h b/gnuradio-core/src/lib/io/gr_file_descriptor_source.h
index fa513fd25..ebabd81ed 100644
--- a/gnuradio-core/src/lib/io/gr_file_descriptor_source.h
+++ b/gnuradio-core/src/lib/io/gr_file_descriptor_source.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/io/gr_file_descriptor_source.i b/gnuradio-core/src/lib/io/gr_file_descriptor_source.i
index cee0b5765..3ca082522 100644
--- a/gnuradio-core/src/lib/io/gr_file_descriptor_source.i
+++ b/gnuradio-core/src/lib/io/gr_file_descriptor_source.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -22,7 +22,7 @@
GR_SWIG_BLOCK_MAGIC(gr,file_descriptor_source)
-gr_file_descriptor_source_sptr
+gr_file_descriptor_source_sptr
gr_make_file_descriptor_source (size_t itemsize, int fd, bool repeat=false);
class gr_file_descriptor_source : public gr_sync_block
diff --git a/gnuradio-core/src/lib/io/gr_file_sink.cc b/gnuradio-core/src/lib/io/gr_file_sink.cc
index aab0158e7..5d147fcfe 100644
--- a/gnuradio-core/src/lib/io/gr_file_sink.cc
+++ b/gnuradio-core/src/lib/io/gr_file_sink.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2006,2007,2010 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,
@@ -50,7 +50,7 @@ gr_file_sink::~gr_file_sink ()
{
}
-int
+int
gr_file_sink::work (int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items)
@@ -59,7 +59,7 @@ gr_file_sink::work (int noutput_items,
int nwritten = 0;
do_update(); // update d_fp is reqd
-
+
if (!d_fp)
return noutput_items; // drop output on the floor
@@ -72,6 +72,6 @@ gr_file_sink::work (int noutput_items,
}
if (d_unbuffered)
fflush (d_fp);
-
+
return nwritten;
}
diff --git a/gnuradio-core/src/lib/io/gr_file_sink.h b/gnuradio-core/src/lib/io/gr_file_sink.h
index 180cbef2a..e40ec9ab8 100644
--- a/gnuradio-core/src/lib/io/gr_file_sink.h
+++ b/gnuradio-core/src/lib/io/gr_file_sink.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2007 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,
diff --git a/gnuradio-core/src/lib/io/gr_file_sink.i b/gnuradio-core/src/lib/io/gr_file_sink.i
index 64260392c..47ab9e964 100644
--- a/gnuradio-core/src/lib/io/gr_file_sink.i
+++ b/gnuradio-core/src/lib/io/gr_file_sink.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -22,7 +22,7 @@
GR_SWIG_BLOCK_MAGIC(gr,file_sink)
-gr_file_sink_sptr
+gr_file_sink_sptr
gr_make_file_sink (size_t itemsize, const char *filename);
class gr_file_sink : public gr_sync_block, public gr_file_sink_base
@@ -33,7 +33,7 @@ class gr_file_sink : public gr_sync_block, public gr_file_sink_base
public:
~gr_file_sink ();
- /*!
+ /*!
* \brief open filename and begin output to it.
*/
bool open(const char *filename);
diff --git a/gnuradio-core/src/lib/io/gr_file_sink_base.cc b/gnuradio-core/src/lib/io/gr_file_sink_base.cc
index c43304b0d..b2dcc1be5 100644
--- a/gnuradio-core/src/lib/io/gr_file_sink_base.cc
+++ b/gnuradio-core/src/lib/io/gr_file_sink_base.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2006,2007,2009 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,
@@ -117,7 +117,7 @@ gr_file_sink_base::do_update()
d_new_fp = 0;
d_updated = false;
}
-}
+}
void
gr_file_sink_base::set_unbuffered(bool unbuffered)
diff --git a/gnuradio-core/src/lib/io/gr_file_sink_base.h b/gnuradio-core/src/lib/io/gr_file_sink_base.h
index 6765dbad8..8a70cee76 100644
--- a/gnuradio-core/src/lib/io/gr_file_sink_base.h
+++ b/gnuradio-core/src/lib/io/gr_file_sink_base.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2007,2008 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,
@@ -46,7 +46,7 @@ class GR_CORE_API gr_file_sink_base
public:
~gr_file_sink_base();
- /*!
+ /*!
* \brief Open filename and begin output to it.
*/
bool open(const char *filename);
@@ -63,8 +63,8 @@ class GR_CORE_API gr_file_sink_base
* \brief if we've had an update, do it now.
*/
void do_update();
-
-
+
+
/*!
* \brief turn on unbuffered writes for slower outputs
*/
diff --git a/gnuradio-core/src/lib/io/gr_file_sink_base.i b/gnuradio-core/src/lib/io/gr_file_sink_base.i
index ed4342482..993dba277 100644
--- a/gnuradio-core/src/lib/io/gr_file_sink_base.i
+++ b/gnuradio-core/src/lib/io/gr_file_sink_base.i
@@ -1,24 +1,24 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-class gr_file_sink_base
+class gr_file_sink_base
{
protected:
gr_file_sink_base(const char *filename, bool is_binary);
@@ -26,7 +26,7 @@ class gr_file_sink_base
public:
~gr_file_sink_base();
- /*!
+ /*!
* \brief Open filename and begin output to it.
*/
bool open(const char *filename);
diff --git a/gnuradio-core/src/lib/io/gr_file_source.cc b/gnuradio-core/src/lib/io/gr_file_source.cc
index d045e26b3..3f06a8244 100644
--- a/gnuradio-core/src/lib/io/gr_file_source.cc
+++ b/gnuradio-core/src/lib/io/gr_file_source.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
@@ -56,7 +56,7 @@ gr_file_source::gr_file_source (size_t itemsize, const char *filename, bool repe
d_itemsize (itemsize), d_fp (0), d_repeat (repeat)
{
// we use "open" to use to the O_LARGEFILE flag
-
+
int fd;
if ((fd = open (filename, O_RDONLY | OUR_O_LARGEFILE | OUR_O_BINARY)) < 0){
perror (filename);
@@ -82,7 +82,7 @@ gr_file_source::~gr_file_source ()
fclose ((FILE *) d_fp);
}
-int
+int
gr_file_source::work (int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items)
@@ -93,7 +93,7 @@ gr_file_source::work (int noutput_items,
while (size) {
i = fread(o, d_itemsize, size, (FILE *) d_fp);
-
+
size -= i;
o += i * d_itemsize;
diff --git a/gnuradio-core/src/lib/io/gr_file_source.h b/gnuradio-core/src/lib/io/gr_file_source.h
index 6e8fc4074..1cc44a3b1 100644
--- a/gnuradio-core/src/lib/io/gr_file_source.h
+++ b/gnuradio-core/src/lib/io/gr_file_source.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/io/gr_file_source.i b/gnuradio-core/src/lib/io/gr_file_source.i
index f538ea3ae..9bf44691d 100644
--- a/gnuradio-core/src/lib/io/gr_file_source.i
+++ b/gnuradio-core/src/lib/io/gr_file_source.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -28,7 +28,7 @@
GR_SWIG_BLOCK_MAGIC(gr,file_source)
-gr_file_source_sptr
+gr_file_source_sptr
gr_make_file_source (size_t itemsize, const char *filename, bool repeat=false);
class gr_file_source : public gr_sync_block
diff --git a/gnuradio-core/src/lib/io/gr_histo_sink.i b/gnuradio-core/src/lib/io/gr_histo_sink.i
index 544d772fb..14079e190 100644
--- a/gnuradio-core/src/lib/io/gr_histo_sink.i
+++ b/gnuradio-core/src/lib/io/gr_histo_sink.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009 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,
diff --git a/gnuradio-core/src/lib/io/gr_message_sink.cc b/gnuradio-core/src/lib/io/gr_message_sink.cc
index 8881e97f4..ae0b5c764 100644
--- a/gnuradio-core/src/lib/io/gr_message_sink.cc
+++ b/gnuradio-core/src/lib/io/gr_message_sink.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2010 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,
@@ -37,7 +37,7 @@
// public constructor that returns a shared_ptr
-gr_message_sink_sptr
+gr_message_sink_sptr
gr_make_message_sink (size_t itemsize, gr_msg_queue_sptr msgq, bool dont_block)
{
return gnuradio::get_initial_sptr(new gr_message_sink(itemsize, msgq, dont_block));
diff --git a/gnuradio-core/src/lib/io/gr_message_sink.h b/gnuradio-core/src/lib/io/gr_message_sink.h
index 180055261..84005694a 100644
--- a/gnuradio-core/src/lib/io/gr_message_sink.h
+++ b/gnuradio-core/src/lib/io/gr_message_sink.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gnuradio-core/src/lib/io/gr_message_sink.i b/gnuradio-core/src/lib/io/gr_message_sink.i
index a42cb7eca..8415cbd66 100644
--- a/gnuradio-core/src/lib/io/gr_message_sink.i
+++ b/gnuradio-core/src/lib/io/gr_message_sink.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gnuradio-core/src/lib/io/gr_message_source.cc b/gnuradio-core/src/lib/io/gr_message_source.cc
index 0fa24f2f9..fb3da89a8 100644
--- a/gnuradio-core/src/lib/io/gr_message_source.cc
+++ b/gnuradio-core/src/lib/io/gr_message_source.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2010 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,
diff --git a/gnuradio-core/src/lib/io/gr_message_source.h b/gnuradio-core/src/lib/io/gr_message_source.h
index 16a0f4474..c510d1775 100644
--- a/gnuradio-core/src/lib/io/gr_message_source.h
+++ b/gnuradio-core/src/lib/io/gr_message_source.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gnuradio-core/src/lib/io/gr_message_source.i b/gnuradio-core/src/lib/io/gr_message_source.i
index 8a9c762d0..9ee9157e8 100644
--- a/gnuradio-core/src/lib/io/gr_message_source.i
+++ b/gnuradio-core/src/lib/io/gr_message_source.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gnuradio-core/src/lib/io/gr_oscope_guts.cc b/gnuradio-core/src/lib/io/gr_oscope_guts.cc
index 8b0d1e632..a5ea3002a 100644
--- a/gnuradio-core/src/lib/io/gr_oscope_guts.cc
+++ b/gnuradio-core/src/lib/io/gr_oscope_guts.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2003,2005 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,
@@ -65,7 +65,7 @@ decr_bi (int buffer_index, int mx) // decrement buffer index
gr_oscope_guts::gr_oscope_guts (double sample_rate, gr_msg_queue_sptr msgq)
: d_nchannels (1),
- d_msgq (msgq),
+ d_msgq (msgq),
d_trigger_mode (gr_TRIG_MODE_AUTO),
d_trigger_slope (gr_TRIG_SLOPE_POS),
d_trigger_channel (0),
@@ -115,7 +115,7 @@ gr_oscope_guts::process_sample (const float *channel_data)
return;
d_decimator_count = d_decimator_count_init;
-
+
if (d_trigger_mode != gr_TRIG_MODE_STRIPCHART)
{
for (int i = 0; i < d_nchannels; i++)
@@ -198,7 +198,7 @@ gr_oscope_guts::found_trigger ()
{
int mx = d_trigger_mode == gr_TRIG_MODE_STRIPCHART ? OUTPUT_RECORD_SIZE*SCHART_MULT :
OUTPUT_RECORD_SIZE;
-
+
float prev_sample = d_buffer[d_trigger_channel][decr_bi(d_obi, mx)];
float new_sample = d_buffer[d_trigger_channel][d_obi];
@@ -241,15 +241,15 @@ void
gr_oscope_guts::write_output_records ()
{
int mx;
-
- mx = d_trigger_mode == gr_TRIG_MODE_STRIPCHART ?
+
+ mx = d_trigger_mode == gr_TRIG_MODE_STRIPCHART ?
OUTPUT_RECORD_SIZE*SCHART_MULT : OUTPUT_RECORD_SIZE;
-
+
// if the output queue if full, drop the data like its hot.
if (d_msgq->full_p())
return;
// Build a message to hold the output records
- gr_message_sptr msg =
+ gr_message_sptr msg =
gr_make_message(0, // msg type
d_nchannels, // arg1 for other side
mx, // arg2 for other side
@@ -427,7 +427,7 @@ int
gr_oscope_guts::get_samples_per_output_record () const
{
int mx;
-
+
mx = OUTPUT_RECORD_SIZE;
if (d_trigger_mode == gr_TRIG_MODE_STRIPCHART)
{
diff --git a/gnuradio-core/src/lib/io/gr_oscope_guts.h b/gnuradio-core/src/lib/io/gr_oscope_guts.h
index 3223d4e38..bc9513c7e 100644
--- a/gnuradio-core/src/lib/io/gr_oscope_guts.h
+++ b/gnuradio-core/src/lib/io/gr_oscope_guts.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2003,2005 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,
@@ -56,7 +56,7 @@ private:
double d_update_rate; // approx freq to produce an output record (Hz)
double d_trigger_level;
- int d_obi; // output buffer index
+ int d_obi; // output buffer index
float *d_buffer[MAX_CHANNELS];
scope_state d_state;
diff --git a/gnuradio-core/src/lib/io/gr_oscope_sink.i b/gnuradio-core/src/lib/io/gr_oscope_sink.i
index 9d634193b..3d7072ed4 100644
--- a/gnuradio-core/src/lib/io/gr_oscope_sink.i
+++ b/gnuradio-core/src/lib/io/gr_oscope_sink.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/io/gr_oscope_sink_f.cc b/gnuradio-core/src/lib/io/gr_oscope_sink_f.cc
index eca0f6dc6..493a25e81 100644
--- a/gnuradio-core/src/lib/io/gr_oscope_sink_f.cc
+++ b/gnuradio-core/src/lib/io/gr_oscope_sink_f.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2003,2004,2005,2010 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,
@@ -68,7 +68,7 @@ gr_oscope_sink_f::work (int noutput_items,
for (int i = 0; i < noutput_items; i++){
// FIXME for now, copy the data. Fix later if reqd
- for (int ch = 0; ch < ni; ch++)
+ for (int ch = 0; ch < ni; ch++)
tmp[ch] = ((const float *) input_items[ch])[i];
d_guts->process_sample (tmp);
diff --git a/gnuradio-core/src/lib/io/gr_oscope_sink_f.h b/gnuradio-core/src/lib/io/gr_oscope_sink_f.h
index e3d1f65e5..8d434d2bc 100644
--- a/gnuradio-core/src/lib/io/gr_oscope_sink_f.h
+++ b/gnuradio-core/src/lib/io/gr_oscope_sink_f.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2003,2004,2005 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,
diff --git a/gnuradio-core/src/lib/io/gr_oscope_sink_x.cc b/gnuradio-core/src/lib/io/gr_oscope_sink_x.cc
index 2bbd57463..9580dbf6a 100644
--- a/gnuradio-core/src/lib/io/gr_oscope_sink_x.cc
+++ b/gnuradio-core/src/lib/io/gr_oscope_sink_x.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2003,2004 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,
diff --git a/gnuradio-core/src/lib/io/gr_oscope_sink_x.h b/gnuradio-core/src/lib/io/gr_oscope_sink_x.h
index aaff5870b..153d0937a 100644
--- a/gnuradio-core/src/lib/io/gr_oscope_sink_x.h
+++ b/gnuradio-core/src/lib/io/gr_oscope_sink_x.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2003,2004 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,
@@ -40,7 +40,7 @@ class GR_CORE_API gr_oscope_sink_x : public gr_sync_block
protected:
double d_sampling_rate;
gr_oscope_guts *d_guts;
-
+
gr_oscope_sink_x (const std::string name,
gr_io_signature_sptr input_sig,
double sampling_rate);
@@ -71,7 +71,7 @@ public:
// # of samples written to each output record.
int get_samples_per_output_record () const;
-
+
};
#endif /* INCLUDED_GR_OSCOPE_SINK_X_H */
diff --git a/gnuradio-core/src/lib/io/gr_tagged_file_sink.cc b/gnuradio-core/src/lib/io/gr_tagged_file_sink.cc
index 4ac8c3512..d69892762 100644
--- a/gnuradio-core/src/lib/io/gr_tagged_file_sink.cc
+++ b/gnuradio-core/src/lib/io/gr_tagged_file_sink.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010 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,
@@ -72,7 +72,7 @@ gr_tagged_file_sink::~gr_tagged_file_sink ()
{
}
-int
+int
gr_tagged_file_sink::work (int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items)
@@ -112,7 +112,7 @@ gr_tagged_file_sink::work (int noutput_items,
pmt::pmt_string_to_symbol("time"));
if(time_tags.size() > 0) {
const gr_tag_t tag = time_tags[time_tags.size()-1];
-
+
uint64_t time_nitems = tag.offset;
// Get time based on last time tag from USRP
@@ -139,13 +139,13 @@ gr_tagged_file_sink::work (int noutput_items,
//std::cout << " time: " << d_timeval << std::endl;
}
d_last_N = N;
-
+
std::stringstream filename;
filename.setf(std::ios::fixed, std::ios::floatfield);
filename.precision(8);
filename << "file" << d_n << "_" << d_timeval << ".dat";
d_n++;
-
+
int fd;
if ((fd = ::open (filename.str().c_str(),
O_WRONLY|O_CREAT|O_TRUNC|OUR_O_LARGEFILE|OUR_O_BINARY,
@@ -153,7 +153,7 @@ gr_tagged_file_sink::work (int noutput_items,
perror (filename.str().c_str());
return -1;
}
-
+
// FIXME:
//if ((d_handle = fdopen (fd, d_is_binary ? "wb" : "w")) == NULL){
if ((d_handle = fdopen (fd, "wb")) == NULL){
@@ -166,7 +166,7 @@ gr_tagged_file_sink::work (int noutput_items,
d_state = IN_BURST;
break;
}
-
+
vitr++;
}
if(d_state == NOT_IN_BURST)
diff --git a/gnuradio-core/src/lib/io/gr_tagged_file_sink.h b/gnuradio-core/src/lib/io/gr_tagged_file_sink.h
index da12dca78..d6f931a67 100644
--- a/gnuradio-core/src/lib/io/gr_tagged_file_sink.h
+++ b/gnuradio-core/src/lib/io/gr_tagged_file_sink.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010 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,
diff --git a/gnuradio-core/src/lib/io/gr_tagged_file_sink.i b/gnuradio-core/src/lib/io/gr_tagged_file_sink.i
index 1408adfc1..2f2596e12 100644
--- a/gnuradio-core/src/lib/io/gr_tagged_file_sink.i
+++ b/gnuradio-core/src/lib/io/gr_tagged_file_sink.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010 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,
@@ -22,7 +22,7 @@
GR_SWIG_BLOCK_MAGIC(gr,tagged_file_sink)
-gr_tagged_file_sink_sptr
+gr_tagged_file_sink_sptr
gr_make_tagged_file_sink (size_t itemsize, double samp_rate);
class gr_tagged_file_sink : public gr_sync_block
diff --git a/gnuradio-core/src/lib/io/gr_trigger_mode.h b/gnuradio-core/src/lib/io/gr_trigger_mode.h
index 8e1222856..be131686b 100644
--- a/gnuradio-core/src/lib/io/gr_trigger_mode.h
+++ b/gnuradio-core/src/lib/io/gr_trigger_mode.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2003,2004 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,
diff --git a/gnuradio-core/src/lib/io/gr_udp_sink.cc b/gnuradio-core/src/lib/io/gr_udp_sink.cc
index 9fc4da0ae..6b1d34ef7 100644
--- a/gnuradio-core/src/lib/io/gr_udp_sink.cc
+++ b/gnuradio-core/src/lib/io/gr_udp_sink.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007,2008,2009,2010 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,
@@ -92,7 +92,7 @@ static void report_error( const char *msg1, const char *msg2 )
return;
}
-gr_udp_sink::gr_udp_sink (size_t itemsize,
+gr_udp_sink::gr_udp_sink (size_t itemsize,
const char *host, unsigned short port,
int payload_size, bool eof)
: gr_sync_block ("udp_sink",
@@ -133,11 +133,11 @@ gr_udp_sink::gr_udp_sink (size_t itemsize,
// public constructor that returns a shared_ptr
gr_udp_sink_sptr
-gr_make_udp_sink (size_t itemsize,
+gr_make_udp_sink (size_t itemsize,
const char *host, unsigned short port,
int payload_size, bool eof)
{
- return gnuradio::get_initial_sptr(new gr_udp_sink (itemsize,
+ return gnuradio::get_initial_sptr(new gr_udp_sink (itemsize,
host, port,
payload_size, eof));
}
@@ -163,7 +163,7 @@ gr_udp_sink::~gr_udp_sink ()
#endif
}
-int
+int
gr_udp_sink::work (int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items)
@@ -180,7 +180,7 @@ gr_udp_sink::work (int noutput_items,
while(bytes_sent < total_size) {
bytes_to_send = std::min((ssize_t)d_payload_size, (total_size-bytes_sent));
-
+
if(d_connected) {
r = send(d_socket, (in+bytes_sent), bytes_to_send, 0);
if(r == -1) { // error on send command
@@ -195,7 +195,7 @@ gr_udp_sink::work (int noutput_items,
else
r = bytes_to_send; // discarded for lack of connection
bytes_sent += r;
-
+
#if SNK_VERBOSE
printf("\tbyte sent: %d bytes\n", r);
#endif
diff --git a/gnuradio-core/src/lib/io/gr_udp_sink.h b/gnuradio-core/src/lib/io/gr_udp_sink.h
index e9d4f8c73..bf042a6d1 100644
--- a/gnuradio-core/src/lib/io/gr_udp_sink.h
+++ b/gnuradio-core/src/lib/io/gr_udp_sink.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007,2008,2009,2010 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,
@@ -31,14 +31,14 @@ class gr_udp_sink;
typedef boost::shared_ptr<gr_udp_sink> gr_udp_sink_sptr;
GR_CORE_API gr_udp_sink_sptr
-gr_make_udp_sink (size_t itemsize,
+gr_make_udp_sink (size_t itemsize,
const char *host, unsigned short port,
int payload_size=1472, bool eof=true);
/*!
* \brief Write stream to an UDP socket.
* \ingroup sink_blk
- *
+ *
* \param itemsize The size (in bytes) of the item datatype
* \param host The name or IP address of the receiving host; use
* NULL or None for no connection
@@ -50,7 +50,7 @@ gr_make_udp_sink (size_t itemsize,
class GR_CORE_API gr_udp_sink : public gr_sync_block
{
- friend GR_CORE_API gr_udp_sink_sptr gr_make_udp_sink (size_t itemsize,
+ friend GR_CORE_API gr_udp_sink_sptr gr_make_udp_sink (size_t itemsize,
const char *host,
unsigned short port,
int payload_size, bool eof);
@@ -66,16 +66,16 @@ class GR_CORE_API gr_udp_sink : public gr_sync_block
protected:
/*!
* \brief UDP Sink Constructor
- *
+ *
* \param itemsize The size (in bytes) of the item datatype
* \param host The name or IP address of the receiving host; use
* NULL or None for no connection
* \param port Destination port to connect to on receiving host
- * \param payload_size UDP payload size by default set to
+ * \param payload_size UDP payload size by default set to
* 1472 = (1500 MTU - (8 byte UDP header) - (20 byte IP header))
* \param eof Send zero-length packet on disconnect
*/
- gr_udp_sink (size_t itemsize,
+ gr_udp_sink (size_t itemsize,
const char *host, unsigned short port,
int payload_size, bool eof);
diff --git a/gnuradio-core/src/lib/io/gr_udp_sink.i b/gnuradio-core/src/lib/io/gr_udp_sink.i
index a71006ae0..ba7043937 100644
--- a/gnuradio-core/src/lib/io/gr_udp_sink.i
+++ b/gnuradio-core/src/lib/io/gr_udp_sink.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007,2010 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,
@@ -23,17 +23,17 @@
GR_SWIG_BLOCK_MAGIC(gr,udp_sink)
-gr_udp_sink_sptr
-gr_make_udp_sink (size_t itemsize,
+gr_udp_sink_sptr
+gr_make_udp_sink (size_t itemsize,
const char *host, unsigned short port,
int payload_size=1472, bool eof=true) throw (std::runtime_error);
class gr_udp_sink : public gr_sync_block
{
protected:
- gr_udp_sink (size_t itemsize,
+ gr_udp_sink (size_t itemsize,
const char *host, unsigned short port,
- int payload_size, bool eof)
+ int payload_size, bool eof)
throw (std::runtime_error);
public:
diff --git a/gnuradio-core/src/lib/io/gr_udp_source.cc b/gnuradio-core/src/lib/io/gr_udp_source.cc
index ca31233de..af41159ee 100644
--- a/gnuradio-core/src/lib/io/gr_udp_source.cc
+++ b/gnuradio-core/src/lib/io/gr_udp_source.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007,2008,2009,2010 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,
@@ -97,7 +97,7 @@ static void report_error( const char *msg1, const char *msg2 )
return;
}
-gr_udp_source::gr_udp_source(size_t itemsize, const char *host,
+gr_udp_source::gr_udp_source(size_t itemsize, const char *host,
unsigned short port, int payload_size,
bool eof, bool wait)
: gr_sync_block ("udp_source",
@@ -116,7 +116,7 @@ gr_udp_source::gr_udp_source(size_t itemsize, const char *host,
report_error( "gr_udp_source WSAStartup", "can't open socket" );
}
#endif
-
+
// Set up the address stucture for the source address and port numbers
// Get the source IP address from the host name
struct addrinfo *ip_src; // store the source IP address to use
@@ -186,10 +186,10 @@ gr_udp_source::gr_udp_source(size_t itemsize, const char *host,
}
gr_udp_source_sptr
-gr_make_udp_source (size_t itemsize, const char *ipaddr,
+gr_make_udp_source (size_t itemsize, const char *ipaddr,
unsigned short port, int payload_size, bool eof, bool wait)
{
- return gnuradio::get_initial_sptr(new gr_udp_source (itemsize, ipaddr,
+ return gnuradio::get_initial_sptr(new gr_udp_source (itemsize, ipaddr,
port, payload_size, eof, wait));
}
@@ -213,7 +213,7 @@ gr_udp_source::~gr_udp_source ()
#endif
}
-int
+int
gr_udp_source::work (int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items)
@@ -233,13 +233,13 @@ gr_udp_source::work (int noutput_items,
bytes_received = nbytes;
#if SRC_VERBOSE
- printf("\tTemp buff size: %d offset: %d (bytes_received: %d) (noutput_items: %d)\n",
+ printf("\tTemp buff size: %d offset: %d (bytes_received: %d) (noutput_items: %d)\n",
d_residual, d_temp_offset, bytes_received, noutput_items);
#endif
// Increment pointer
out += bytes_received;
-
+
// Update indexing of amount of bytes left in the buffer
d_residual -= nbytes;
d_temp_offset += nbytes;
@@ -280,7 +280,7 @@ gr_udp_source::work (int noutput_items,
// This is a non-blocking call with a timeout set in the constructor
r = recv(d_socket, d_temp_buff, d_payload_size, 0); // get the entire payload or the what's available
- // If r > 0, round it down to a multiple of d_itemsize
+ // If r > 0, round it down to a multiple of d_itemsize
// (If sender is broken, don't propagate problem)
if (r > 0)
r = (r/d_itemsize) * d_itemsize;
@@ -289,7 +289,7 @@ gr_udp_source::work (int noutput_items,
if(r == -1) {
if( is_error(EAGAIN) ) { // handle non-blocking call timeout
#if SRC_VERBOSE
- printf("UDP receive timed out\n");
+ printf("UDP receive timed out\n");
#endif
if( d_wait ) {
@@ -324,12 +324,12 @@ gr_udp_source::work (int noutput_items,
else {
// Calculate the number of bytes we can take from the buffer in this call
nbytes = std::min(r, total_bytes-bytes_received);
-
+
// adjust the total number of bytes we have to round down to nearest integer of an itemsize
- nbytes -= ((bytes_received+nbytes) % d_itemsize);
+ nbytes -= ((bytes_received+nbytes) % d_itemsize);
// copy the number of bytes we want to look at here
- memcpy(out, d_temp_buff, nbytes);
+ memcpy(out, d_temp_buff, nbytes);
d_residual = r - nbytes; // save the number of bytes stored
d_temp_offset=nbytes; // reset buffer index
@@ -350,7 +350,7 @@ gr_udp_source::work (int noutput_items,
}
#if SRC_VERBOSE
- printf("Total Bytes Received: %d (bytes_received / noutput_items = %d / %d)\n",
+ printf("Total Bytes Received: %d (bytes_received / noutput_items = %d / %d)\n",
bytes_received, bytes_received, noutput_items);
#endif
diff --git a/gnuradio-core/src/lib/io/gr_udp_source.h b/gnuradio-core/src/lib/io/gr_udp_source.h
index e2898981d..56dcb3c0a 100644
--- a/gnuradio-core/src/lib/io/gr_udp_source.h
+++ b/gnuradio-core/src/lib/io/gr_udp_source.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007,2008,2009,2010 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,
@@ -30,12 +30,12 @@
class gr_udp_source;
typedef boost::shared_ptr<gr_udp_source> gr_udp_source_sptr;
-GR_CORE_API gr_udp_source_sptr gr_make_udp_source(size_t itemsize, const char *host,
+GR_CORE_API gr_udp_source_sptr gr_make_udp_source(size_t itemsize, const char *host,
unsigned short port,
int payload_size=1472,
bool eof=true, bool wait=true);
-/*!
+/*!
* \brief Read stream from an UDP socket.
* \ingroup source_blk
*
@@ -56,7 +56,7 @@ GR_CORE_API gr_udp_source_sptr gr_make_udp_source(size_t itemsize, const char *h
class GR_CORE_API gr_udp_source : public gr_sync_block
{
friend GR_CORE_API gr_udp_source_sptr gr_make_udp_source(size_t itemsize,
- const char *host,
+ const char *host,
unsigned short port,
int payload_size,
bool eof, bool wait);
@@ -74,7 +74,7 @@ class GR_CORE_API gr_udp_source : public gr_sync_block
protected:
/*!
* \brief UDP Source Constructor
- *
+ *
* \param itemsize The size (in bytes) of the item datatype
* \param host The name or IP address of the receiving host; can be
* NULL, None, or "0.0.0.0" to allow reading from any
diff --git a/gnuradio-core/src/lib/io/gr_udp_source.i b/gnuradio-core/src/lib/io/gr_udp_source.i
index 2001f33e9..18823a356 100644
--- a/gnuradio-core/src/lib/io/gr_udp_source.i
+++ b/gnuradio-core/src/lib/io/gr_udp_source.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007,2010 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,
@@ -22,15 +22,15 @@
GR_SWIG_BLOCK_MAGIC(gr,udp_source)
-gr_udp_source_sptr
-gr_make_udp_source (size_t itemsize, const char *host,
+gr_udp_source_sptr
+gr_make_udp_source (size_t itemsize, const char *host,
unsigned short port, int payload_size=1472,
bool eof=true, bool wait=true) throw (std::runtime_error);
class gr_udp_source : public gr_sync_block
{
protected:
- gr_udp_source (size_t itemsize, const char *host,
+ gr_udp_source (size_t itemsize, const char *host,
unsigned short port, int payload_size, bool eof, bool wait) throw (std::runtime_error);
public:
diff --git a/gnuradio-core/src/lib/io/gr_wavfile_sink.cc b/gnuradio-core/src/lib/io/gr_wavfile_sink.cc
index 88b232343..8526032f6 100644
--- a/gnuradio-core/src/lib/io/gr_wavfile_sink.cc
+++ b/gnuradio-core/src/lib/io/gr_wavfile_sink.cc
@@ -80,7 +80,7 @@ gr_wavfile_sink::gr_wavfile_sink(const char *filename,
}
d_bytes_per_sample = bits_per_sample / 8;
d_bytes_per_sample_new = d_bytes_per_sample;
-
+
if (!open(filename)) {
throw std::runtime_error ("can't open file");
}
@@ -106,7 +106,7 @@ bool
gr_wavfile_sink::open(const char* filename)
{
gruel::scoped_lock guard(d_mutex);
-
+
// we use the open system call to get access to the O_LARGEFILE flag.
int fd;
if ((fd = ::open (filename,
@@ -120,14 +120,14 @@ gr_wavfile_sink::open(const char* filename)
fclose(d_new_fp);
d_new_fp = 0;
}
-
+
if ((d_new_fp = fdopen (fd, "wb")) == NULL) {
perror (filename);
::close(fd); // don't leak file descriptor if fdopen fails.
return false;
}
d_updated = true;
-
+
if (!gri_wavheader_write(d_new_fp,
d_sample_rate,
d_nchans,
@@ -135,7 +135,7 @@ gr_wavfile_sink::open(const char* filename)
fprintf(stderr, "[%s] could not write to WAV file\n", __FILE__);
exit(-1);
}
-
+
return true;
}
@@ -144,19 +144,19 @@ void
gr_wavfile_sink::close()
{
gruel::scoped_lock guard(d_mutex);
-
+
if (!d_fp)
return;
-
+
close_wav();
}
void gr_wavfile_sink::close_wav()
{
unsigned int byte_count = d_sample_count * d_bytes_per_sample;
-
+
gri_wavheader_complete(d_fp, byte_count);
-
+
fclose(d_fp);
d_fp = NULL;
}
@@ -179,29 +179,29 @@ gr_wavfile_sink::work (int noutput_items,
{
float **in = (float **) &input_items[0];
int n_in_chans = input_items.size();
-
+
short int sample_buf_s;
-
+
int nwritten;
-
+
gruel::scoped_lock guard(d_mutex); // hold mutex for duration of this block
do_update(); // update: d_fp is reqd
if (!d_fp) // drop output on the floor
return noutput_items;
-
+
for (nwritten = 0; nwritten < noutput_items; nwritten++) {
for (int chan = 0; chan < d_nchans; chan++) {
// Write zeros to channels which are in the WAV file
// but don't have any inputs here
if (chan < n_in_chans) {
- sample_buf_s =
+ sample_buf_s =
convert_to_short(in[chan][nwritten]);
} else {
sample_buf_s = 0;
}
-
+
gri_wav_write_sample(d_fp, sample_buf_s, d_bytes_per_sample);
-
+
if (feof(d_fp) || ferror(d_fp)) {
fprintf(stderr, "[%s] file i/o error\n", __FILE__);
close();
@@ -210,7 +210,7 @@ gr_wavfile_sink::work (int noutput_items,
d_sample_count++;
}
}
-
+
return nwritten;
}
@@ -225,7 +225,7 @@ gr_wavfile_sink::convert_to_short(float sample)
} else if (sample < d_min_sample_val) {
sample = d_min_sample_val;
}
-
+
return (short int) boost::math::iround(sample);
}
@@ -254,7 +254,7 @@ gr_wavfile_sink::do_update()
if (!d_updated) {
return;
}
-
+
if (d_fp) {
close_wav();
}
@@ -275,6 +275,6 @@ gr_wavfile_sink::do_update()
d_normalize_fac = d_max_sample_val;
d_normalize_shift = 0;
}
-
+
d_updated = false;
}
diff --git a/gnuradio-core/src/lib/io/gr_wavfile_sink.h b/gnuradio-core/src/lib/io/gr_wavfile_sink.h
index 6d06d74e9..162151b7a 100644
--- a/gnuradio-core/src/lib/io/gr_wavfile_sink.h
+++ b/gnuradio-core/src/lib/io/gr_wavfile_sink.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2009 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,
@@ -78,7 +78,7 @@ private:
FILE *d_new_fp;
bool d_updated;
boost::mutex d_mutex;
-
+
/*!
* \brief Convert a sample value within [-1;+1] to a corresponding
* short integer value
@@ -91,7 +91,7 @@ private:
* hand.
*/
void do_update();
-
+
/*!
* \brief Writes information to the WAV header which is not available
* a-priori (chunk size etc.) and closes the file. Not thread-safe and
@@ -120,19 +120,19 @@ public:
* sample rate.
*/
void set_sample_rate(unsigned int sample_rate);
-
+
/*!
* \brief Set bits per sample. This will not affect the WAV file
* currently opened (see set_sample_rate()). If the value is neither
* 8 nor 16, the call is ignored and the current value is kept.
*/
void set_bits_per_sample(int bits_per_sample);
-
-
+
+
int work(int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items);
-
+
};
#endif /* INCLUDED_GR_WAVFILE_SINK_H */
diff --git a/gnuradio-core/src/lib/io/gr_wavfile_sink.i b/gnuradio-core/src/lib/io/gr_wavfile_sink.i
index 7ccad1978..48d1130bd 100644
--- a/gnuradio-core/src/lib/io/gr_wavfile_sink.i
+++ b/gnuradio-core/src/lib/io/gr_wavfile_sink.i
@@ -36,7 +36,7 @@ protected:
int n_channels,
unsigned int sample_rate,
int bits_per_sample) throw (std::runtime_error);
-
+
public:
~gr_wavfile_sink ();
bool open(const char* filename);
diff --git a/gnuradio-core/src/lib/io/gr_wavfile_source.cc b/gnuradio-core/src/lib/io/gr_wavfile_source.cc
index 136e52611..c8372868b 100644
--- a/gnuradio-core/src/lib/io/gr_wavfile_source.cc
+++ b/gnuradio-core/src/lib/io/gr_wavfile_source.cc
@@ -85,7 +85,7 @@ gr_wavfile_source::gr_wavfile_source (const char *filename, bool repeat)
d_samples_per_chan)) {
throw std::runtime_error("is not a valid wav file");
}
-
+
if (d_samples_per_chan == 0) {
throw std::runtime_error("WAV file does not contain any samples");
}
@@ -134,7 +134,7 @@ gr_wavfile_source::work(int noutput_items,
d_sample_idx = 0;
}
-
+
for (int chan = 0; chan < d_nchans; chan++) {
sample = gri_wav_read_sample(d_fp, d_bytes_per_sample);
@@ -144,7 +144,7 @@ gr_wavfile_source::work(int noutput_items,
}
d_sample_idx++;
-
+
// OK, EOF is not necessarily an error. But we're not going to
// deal with handling corrupt wav files, so if they give us any
// trouble they won't be processed. Serves them bloody right.
@@ -156,7 +156,7 @@ gr_wavfile_source::work(int noutput_items,
return i;
}
}
-
+
return noutput_items;
}
diff --git a/gnuradio-core/src/lib/io/gr_wavfile_source.h b/gnuradio-core/src/lib/io/gr_wavfile_source.h
index b300f2808..02e6e3678 100644
--- a/gnuradio-core/src/lib/io/gr_wavfile_source.h
+++ b/gnuradio-core/src/lib/io/gr_wavfile_source.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2008 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,
@@ -51,7 +51,7 @@ private:
FILE *d_fp;
bool d_repeat;
-
+
unsigned d_sample_rate;
int d_nchans;
int d_bytes_per_sample;
@@ -60,7 +60,7 @@ private:
unsigned d_sample_idx;
int d_normalize_shift;
int d_normalize_fac;
-
+
/*!
* \brief Convert an integer sample value to a float value within [-1;1]
*/
@@ -68,7 +68,7 @@ private:
public:
~gr_wavfile_source ();
-
+
int work(int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items);
@@ -83,7 +83,7 @@ public:
* file header. Only 8 or 16 bit are supported here.
*/
int bits_per_sample() const { return d_bytes_per_sample * 8; };
-
+
/*!
* \brief Return the number of channels in the wav file as specified in
* the wav file header. This is also the max number of outputs you can
diff --git a/gnuradio-core/src/lib/io/gri_wavfile.cc b/gnuradio-core/src/lib/io/gri_wavfile.cc
index 8f1c6a2bb..e316a0825 100644
--- a/gnuradio-core/src/lib/io/gri_wavfile.cc
+++ b/gnuradio-core/src/lib/io/gri_wavfile.cc
@@ -142,7 +142,7 @@ gri_wavheader_parse(FILE *fp,
{
// _o variables take return values
char str_buf[8] = {0};
-
+
uint32_t file_size;
uint32_t fmt_hdr_skip;
uint16_t compression_type;
@@ -152,52 +152,52 @@ gri_wavheader_parse(FILE *fp,
uint16_t block_align;
uint16_t bits_per_sample;
uint32_t chunk_size;
-
+
size_t fresult;
fresult = fread(str_buf, 1, 4, fp);
if (fresult != 4 || strncmp(str_buf, "RIFF", 4) || feof(fp)) {
return false;
}
-
+
fresult = fread(&file_size, 1, 4, fp);
-
+
fresult = fread(str_buf, 1, 8, fp);
if (fresult != 8 || strncmp(str_buf, "WAVEfmt ", 8) || feof(fp)) {
return false;
}
-
+
fresult = fread(&fmt_hdr_skip, 1, 4, fp);
-
+
fresult = fread(&compression_type, 1, 2, fp);
if (wav_to_host(compression_type) != VALID_COMPRESSION_TYPE) {
return false;
}
-
+
fresult = fread(&nchans, 1, 2, fp);
fresult = fread(&sample_rate, 1, 4, fp);
fresult = fread(&avg_bytes_per_sec, 1, 4, fp);
fresult = fread(&block_align, 1, 2, fp);
fresult = fread(&bits_per_sample, 1, 2, fp);
-
+
if (ferror(fp)) {
return false;
}
-
+
fmt_hdr_skip = wav_to_host(fmt_hdr_skip);
nchans = wav_to_host(nchans);
sample_rate = wav_to_host(sample_rate);
bits_per_sample = wav_to_host(bits_per_sample);
-
+
if (bits_per_sample != 8 && bits_per_sample != 16) {
return false;
}
-
+
fmt_hdr_skip -= 16;
if (fmt_hdr_skip) {
fseek(fp, fmt_hdr_skip, SEEK_CUR);
}
-
+
// data chunk
fresult = fread(str_buf, 1, 4, fp);
if (strncmp(str_buf, "data", 4)) {
@@ -208,10 +208,10 @@ gri_wavheader_parse(FILE *fp,
if (ferror(fp)) {
return false;
}
-
+
// More byte swapping
chunk_size = wav_to_host(chunk_size);
-
+
// Output values
sample_rate_o = (unsigned) sample_rate;
nchans_o = (int) nchans;
@@ -229,7 +229,7 @@ gri_wav_read_sample(FILE *fp, int bytes_per_sample)
size_t fresult;
fresult = fread(&buf, bytes_per_sample, 1, fp);
-
+
return (short) wav_to_host(buf);
}
@@ -247,13 +247,13 @@ gri_wavheader_write(FILE *fp,
uint16_t block_align = bytes_per_sample * nchans;
uint32_t avg_bytes = sample_rate * block_align;
uint16_t bits_per_sample = bytes_per_sample * 8;
-
+
nchans_f = host_to_wav(nchans_f);
sample_rate_f = host_to_wav(sample_rate_f);
block_align = host_to_wav(block_align);
avg_bytes = host_to_wav(avg_bytes);
bits_per_sample = host_to_wav(bits_per_sample);
-
+
wav_hdr[16] = 0x10; // no extra bytes
wav_hdr[20] = 0x01; // no compression
memcpy((void *) (wav_hdr + 22), (void *) &nchans_f, 2);
@@ -261,12 +261,12 @@ gri_wavheader_write(FILE *fp,
memcpy((void *) (wav_hdr + 28), (void *) &avg_bytes, 4);
memcpy((void *) (wav_hdr + 32), (void *) &block_align, 2);
memcpy((void *) (wav_hdr + 34), (void *) &bits_per_sample, 2);
-
+
fwrite(&wav_hdr, 1, header_len, fp);
if (ferror(fp)) {
return false;
}
-
+
return true;
}
@@ -277,7 +277,7 @@ gri_wav_write_sample(FILE *fp, short int sample, int bytes_per_sample)
void *data_ptr;
unsigned char buf_8bit;
int16_t buf_16bit;
-
+
if (bytes_per_sample == 1) {
buf_8bit = (unsigned char) sample;
data_ptr = (void *) &buf_8bit;
@@ -285,7 +285,7 @@ gri_wav_write_sample(FILE *fp, short int sample, int bytes_per_sample)
buf_16bit = host_to_wav((int16_t) sample);
data_ptr = (void *) &buf_16bit;
}
-
+
fwrite(data_ptr, 1, bytes_per_sample, fp);
}
@@ -295,19 +295,19 @@ gri_wavheader_complete(FILE *fp, unsigned int byte_count)
{
uint32_t chunk_size = (uint32_t) byte_count;
chunk_size = host_to_wav(chunk_size);
-
+
fseek(fp, 40, SEEK_SET);
fwrite(&chunk_size, 1, 4, fp);
-
+
chunk_size = (uint32_t) byte_count + 36; // fmt chunk and data header
chunk_size = host_to_wav(chunk_size);
fseek(fp, 4, SEEK_SET);
-
+
fwrite(&chunk_size, 1, 4, fp);
-
+
if (ferror(fp)) {
return false;
}
-
+
return true;
}
diff --git a/gnuradio-core/src/lib/io/gri_wavfile.h b/gnuradio-core/src/lib/io/gri_wavfile.h
index 2268474fb..c757be26b 100644
--- a/gnuradio-core/src/lib/io/gri_wavfile.h
+++ b/gnuradio-core/src/lib/io/gri_wavfile.h
@@ -91,7 +91,7 @@ gri_wav_write_sample(FILE *fp, short int sample, int bytes_per_sample);
*
* Note: The stream position is changed during this function. If anything
* needs to be written to the WAV file after calling this function (which
- * shouldn't happen), you need to fseek() to the end of the file (or
+ * shouldn't happen), you need to fseek() to the end of the file (or
* whereever).
*
* \p fp File pointer to an open WAV file with a blank header
diff --git a/gnuradio-core/src/lib/io/i2c.cc b/gnuradio-core/src/lib/io/i2c.cc
index 65d426f7f..02dd47b53 100644
--- a/gnuradio-core/src/lib/io/i2c.cc
+++ b/gnuradio-core/src/lib/io/i2c.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2001,2004 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,
diff --git a/gnuradio-core/src/lib/io/i2c.h b/gnuradio-core/src/lib/io/i2c.h
index 7d446dfa3..6b7f25a29 100644
--- a/gnuradio-core/src/lib/io/i2c.h
+++ b/gnuradio-core/src/lib/io/i2c.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2001,2004 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,
@@ -34,10 +34,10 @@ typedef boost::shared_ptr<i2c> i2c_sptr;
*/
class GR_CORE_API i2c {
public:
-
+
i2c () {}
virtual ~i2c ();
-
+
//! \returns true iff successful
virtual bool write (int addr, const unsigned char *buf, int nbytes) = 0;
diff --git a/gnuradio-core/src/lib/io/i2c_bbio.cc b/gnuradio-core/src/lib/io/i2c_bbio.cc
index 453681d8a..ddd00290d 100644
--- a/gnuradio-core/src/lib/io/i2c_bbio.cc
+++ b/gnuradio-core/src/lib/io/i2c_bbio.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2001,2004 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,
diff --git a/gnuradio-core/src/lib/io/i2c_bbio.h b/gnuradio-core/src/lib/io/i2c_bbio.h
index 110a56555..6bf47b9cd 100644
--- a/gnuradio-core/src/lib/io/i2c_bbio.h
+++ b/gnuradio-core/src/lib/io/i2c_bbio.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2001,2004 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,
@@ -39,7 +39,7 @@ class GR_CORE_API i2c_bbio {
i2c_bbio () {}
virtual ~i2c_bbio ();
-
+
virtual void set_scl (bool state) = 0;
virtual void set_sda (bool state) = 0;
virtual bool get_sda () = 0;
diff --git a/gnuradio-core/src/lib/io/i2c_bbio_pp.cc b/gnuradio-core/src/lib/io/i2c_bbio_pp.cc
index fda225ec8..382bb6b37 100644
--- a/gnuradio-core/src/lib/io/i2c_bbio_pp.cc
+++ b/gnuradio-core/src/lib/io/i2c_bbio_pp.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2001,2004 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,
diff --git a/gnuradio-core/src/lib/io/i2c_bbio_pp.h b/gnuradio-core/src/lib/io/i2c_bbio_pp.h
index 4a311a2c9..2391bc1fc 100644
--- a/gnuradio-core/src/lib/io/i2c_bbio_pp.h
+++ b/gnuradio-core/src/lib/io/i2c_bbio_pp.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2001,2004 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,
diff --git a/gnuradio-core/src/lib/io/i2c_bitbang.cc b/gnuradio-core/src/lib/io/i2c_bitbang.cc
index 401c76b0d..eb801c68f 100644
--- a/gnuradio-core/src/lib/io/i2c_bitbang.cc
+++ b/gnuradio-core/src/lib/io/i2c_bitbang.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2001,2004 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,
@@ -32,7 +32,7 @@ i2c_bitbang::i2c_bitbang (i2c_bbio_sptr io)
d_io->unlock ();
}
-i2c_sptr
+i2c_sptr
make_i2c_bitbang (i2c_bbio_sptr io)
{
return i2c_sptr (new i2c_bitbang (io));
@@ -43,7 +43,7 @@ make_i2c_bitbang (i2c_bbio_sptr io)
// entry: SCL = 1, SDA = 1
// exit: SCL = 0, SDA = 0
-void
+void
i2c_bitbang::start ()
{
set_sda (1);
@@ -53,11 +53,11 @@ i2c_bitbang::start ()
}
-// stop:
+// stop:
// entry: SCL = X, SDA = X
// exit: SCL = 1, SDA = 1
-void
+void
i2c_bitbang::stop ()
{
set_scl (0);
@@ -71,7 +71,7 @@ i2c_bitbang::stop ()
// entry: SCL = 0, SDA = X
// exit: SCL = 0, SDA = X
-void
+void
i2c_bitbang::write_bit (bool bit)
{
set_sda (bit);
@@ -114,7 +114,7 @@ bool
i2c_bitbang::write (int addr, const unsigned char *buf, int nbytes)
{
bool ok = true;
-
+
d_io->lock ();
start ();
ok = write_byte ((addr << 1) | 0); // addr plus "read opcode"
diff --git a/gnuradio-core/src/lib/io/i2c_bitbang.h b/gnuradio-core/src/lib/io/i2c_bitbang.h
index feb23b787..1d6fe5044 100644
--- a/gnuradio-core/src/lib/io/i2c_bitbang.h
+++ b/gnuradio-core/src/lib/io/i2c_bitbang.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2001,2004 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,
@@ -37,7 +37,7 @@ class GR_CORE_API i2c_bitbang : public i2c {
public:
~i2c_bitbang () {}
-
+
//! \returns true iff successful
bool write (int addr, const unsigned char *buf, int nbytes);
@@ -50,7 +50,7 @@ private:
void stop ();
void write_bit (bool bit);
bool write_byte (char byte);
-
+
void set_sda (bool bit) { d_io->set_sda (bit); }
void set_scl (bool bit) { d_io->set_scl (bit); }
bool get_sda () { return d_io->get_sda (); }
diff --git a/gnuradio-core/src/lib/io/io.i b/gnuradio-core/src/lib/io/io.i
index 365577cd4..eab1346f1 100644
--- a/gnuradio-core/src/lib/io/io.i
+++ b/gnuradio-core/src/lib/io/io.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2007 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,
diff --git a/gnuradio-core/src/lib/io/microtune_4702.cc b/gnuradio-core/src/lib/io/microtune_4702.cc
index 59c88e26e..3ec072d51 100644
--- a/gnuradio-core/src/lib/io/microtune_4702.cc
+++ b/gnuradio-core/src/lib/io/microtune_4702.cc
@@ -1,7 +1,7 @@
/* -*- c++-*- */
/*
* Copyright 2001,2003,2004 Free Software Foundation, Inc.
- *
+ *
* This file is part of GNU Radio
*
* GNU Radio is free software; you can redistribute it and/or modify
@@ -13,7 +13,7 @@
* 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,
@@ -166,7 +166,7 @@ microtune_4702::set_RF_freq (double target_freq, double *p_actual_freq)
/*!
* \returns true iff PLL is locked
*/
-bool
+bool
microtune_4702::pll_locked_p ()
{
// FIXME
diff --git a/gnuradio-core/src/lib/io/microtune_4702.h b/gnuradio-core/src/lib/io/microtune_4702.h
index fd8d89305..ccc66db71 100644
--- a/gnuradio-core/src/lib/io/microtune_4702.h
+++ b/gnuradio-core/src/lib/io/microtune_4702.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2001,2003 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,
@@ -51,7 +51,7 @@ public:
* \returns true iff PLL is locked
*/
bool pll_locked_p ();
-
+
/*!
* \returns the output frequency of the tuner in Hz.
*/
diff --git a/gnuradio-core/src/lib/io/microtune_4702_eval_board.h b/gnuradio-core/src/lib/io/microtune_4702_eval_board.h
index e3c07fdf9..d866a4b94 100644
--- a/gnuradio-core/src/lib/io/microtune_4702_eval_board.h
+++ b/gnuradio-core/src/lib/io/microtune_4702_eval_board.h
@@ -1,19 +1,19 @@
/* -*- C++ -*- */
/*
* Copyright 2001,2004 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,
diff --git a/gnuradio-core/src/lib/io/microtune_4702_eval_board.i b/gnuradio-core/src/lib/io/microtune_4702_eval_board.i
index 832a722fa..fc085a975 100644
--- a/gnuradio-core/src/lib/io/microtune_4702_eval_board.i
+++ b/gnuradio-core/src/lib/io/microtune_4702_eval_board.i
@@ -1,19 +1,19 @@
/* -*- C++ -*- */
/*
* Copyright 2001,2004 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,
diff --git a/gnuradio-core/src/lib/io/microtune_4937.cc b/gnuradio-core/src/lib/io/microtune_4937.cc
index 1369df514..72ddd4bb6 100644
--- a/gnuradio-core/src/lib/io/microtune_4937.cc
+++ b/gnuradio-core/src/lib/io/microtune_4937.cc
@@ -1,19 +1,19 @@
/* -*- c++-*- */
/*
* Copyright 2001,2003 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,
@@ -99,7 +99,7 @@ microtune_4937::set_RF_freq (double target_freq, double *p_actual_freq)
unsigned char buf[4];
double target_f_osc = target_freq + first_IF;
-
+
double f_ref = 4e6 / d_reference_divider;
// f_osc = f_ref * 8 * divisor
@@ -129,7 +129,7 @@ microtune_4937::set_RF_freq (double target_freq, double *p_actual_freq)
/*!
* \returns true iff PLL is locked
*/
-bool
+bool
microtune_4937::pll_locked_p ()
{
// FIXME
diff --git a/gnuradio-core/src/lib/io/microtune_4937.h b/gnuradio-core/src/lib/io/microtune_4937.h
index bc8a26c64..be8657c95 100644
--- a/gnuradio-core/src/lib/io/microtune_4937.h
+++ b/gnuradio-core/src/lib/io/microtune_4937.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2001,2003 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,
@@ -44,12 +44,12 @@ public:
* \returns true iff sucessful.
*/
bool set_RF_freq (double freq, double *actual_freq);
-
+
/*!
* \returns true iff PLL is locked
*/
bool pll_locked_p ();
-
+
/*!
* \returns the output frequency (IF center freq) of the tuner in Hz.
*/
diff --git a/gnuradio-core/src/lib/io/microtune_4937_eval_board.cc b/gnuradio-core/src/lib/io/microtune_4937_eval_board.cc
index f7a586075..a25b8addf 100644
--- a/gnuradio-core/src/lib/io/microtune_4937_eval_board.cc
+++ b/gnuradio-core/src/lib/io/microtune_4937_eval_board.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2001,2004 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,
diff --git a/gnuradio-core/src/lib/io/microtune_4937_eval_board.h b/gnuradio-core/src/lib/io/microtune_4937_eval_board.h
index 09c00d116..3abd9084e 100644
--- a/gnuradio-core/src/lib/io/microtune_4937_eval_board.h
+++ b/gnuradio-core/src/lib/io/microtune_4937_eval_board.h
@@ -1,19 +1,19 @@
/* -*- C++ -*- */
/*
* Copyright 2001,2004 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,
diff --git a/gnuradio-core/src/lib/io/microtune_4937_eval_board.i b/gnuradio-core/src/lib/io/microtune_4937_eval_board.i
index 1fe92c0f0..e261416f7 100644
--- a/gnuradio-core/src/lib/io/microtune_4937_eval_board.i
+++ b/gnuradio-core/src/lib/io/microtune_4937_eval_board.i
@@ -1,19 +1,19 @@
/* -*- C++ -*- */
/*
* Copyright 2001,2004 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,
diff --git a/gnuradio-core/src/lib/io/microtune_eval_board.i b/gnuradio-core/src/lib/io/microtune_eval_board.i
index 3ad7eb61b..f77ef47b4 100644
--- a/gnuradio-core/src/lib/io/microtune_eval_board.i
+++ b/gnuradio-core/src/lib/io/microtune_eval_board.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2003 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,
@@ -35,12 +35,12 @@ public:
// returns actual freq or 0 if error (easier interface for SWIG)
double set_RF_freq (double freq);
-
+
/*!
* \returns true iff PLL is locked
*/
bool pll_locked_p ();
-
+
/*!
* \returns the output frequency (IF center freq) of the tuner in Hz.
*/
diff --git a/gnuradio-core/src/lib/io/microtune_eval_board_defs.h b/gnuradio-core/src/lib/io/microtune_eval_board_defs.h
index 5cba50bdf..61c52364f 100644
--- a/gnuradio-core/src/lib/io/microtune_eval_board_defs.h
+++ b/gnuradio-core/src/lib/io/microtune_eval_board_defs.h
@@ -9,19 +9,19 @@
/*
* Copyright 2001 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,
diff --git a/gnuradio-core/src/lib/io/microtune_xxxx.cc b/gnuradio-core/src/lib/io/microtune_xxxx.cc
index f9ce44b2b..3d55f534a 100644
--- a/gnuradio-core/src/lib/io/microtune_xxxx.cc
+++ b/gnuradio-core/src/lib/io/microtune_xxxx.cc
@@ -1,19 +1,19 @@
/* -*- c++-*- */
/*
* Copyright 2001,2003,2004 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,
@@ -38,4 +38,4 @@ microtune_xxxx::set_RF_freq (double target_freq)
return 0.0;
}
-
+
diff --git a/gnuradio-core/src/lib/io/microtune_xxxx.h b/gnuradio-core/src/lib/io/microtune_xxxx.h
index 8b6ec25aa..b2646d39f 100644
--- a/gnuradio-core/src/lib/io/microtune_xxxx.h
+++ b/gnuradio-core/src/lib/io/microtune_xxxx.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2001,2003,2004 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,
@@ -47,7 +47,7 @@ public:
* \returns true iff sucessful.
*/
virtual bool set_RF_freq (double freq, double *actual_freq) = 0;
-
+
// returns actual freq or 0 if error (easier interface for SWIG)
double set_RF_freq (double freq);
@@ -55,7 +55,7 @@ public:
* \returns true iff PLL is locked
*/
virtual bool pll_locked_p () = 0;
-
+
/*!
* \returns the output frequency (IF center freq) of the tuner in Hz.
*/
diff --git a/gnuradio-core/src/lib/io/microtune_xxxx_eval_board.cc b/gnuradio-core/src/lib/io/microtune_xxxx_eval_board.cc
index 14f2b8589..35600ff06 100644
--- a/gnuradio-core/src/lib/io/microtune_xxxx_eval_board.cc
+++ b/gnuradio-core/src/lib/io/microtune_xxxx_eval_board.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2001,2004 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,
@@ -49,7 +49,7 @@ microtune_xxxx_eval_board::~microtune_xxxx_eval_board ()
//! is the eval board present?
-bool
+bool
microtune_xxxx_eval_board::board_present_p ()
{
bool result = true;
@@ -73,7 +73,7 @@ microtune_xxxx_eval_board::board_present_p ()
* We're using a MAX518 8-bit 5V dual dac for setting the AGC's
* ----------------------------------------------------------------
*/
-void
+void
microtune_xxxx_eval_board::write_dac (int which, int value)
{
unsigned char cmd[2];
@@ -82,7 +82,7 @@ microtune_xxxx_eval_board::write_dac (int which, int value)
d_i2c->write (AGC_DAC_I2C_ADDR, cmd, sizeof (cmd));
}
-void
+void
microtune_xxxx_eval_board::write_both_dacs (int value0, int value1)
{
unsigned char cmd[4];
@@ -111,7 +111,7 @@ microtune_xxxx_eval_board::set_RF_AGC_voltage (float volts)
write_dac (0, scale_volts (volts));
}
-void
+void
microtune_xxxx_eval_board::set_IF_AGC_voltage (float volts)
{
write_dac (1, scale_volts (volts));
@@ -124,7 +124,7 @@ microtune_xxxx_eval_board::set_RF_freq (double freq, double *actual_freq)
{
return d_tuner->set_RF_freq (freq, actual_freq);
}
-
+
double
microtune_xxxx_eval_board::set_RF_freq (double freq)
{
diff --git a/gnuradio-core/src/lib/io/microtune_xxxx_eval_board.h b/gnuradio-core/src/lib/io/microtune_xxxx_eval_board.h
index 08aa438c0..7fd784ade 100644
--- a/gnuradio-core/src/lib/io/microtune_xxxx_eval_board.h
+++ b/gnuradio-core/src/lib/io/microtune_xxxx_eval_board.h
@@ -1,19 +1,19 @@
/* -*- C++ -*- */
/*
* Copyright 2001,2004 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,
@@ -70,7 +70,7 @@ public:
* \returns true iff sucessful.
*/
bool set_RF_freq (double freq, double *actual_freq);
-
+
// returns actual freq or 0 if error (easier interface for SWIG)
double set_RF_freq (double freq);
@@ -78,7 +78,7 @@ public:
* \returns true iff PLL is locked
*/
bool pll_locked_p ();
-
+
/*!
* \returns the output frequency (IF center freq) of the tuner in Hz.
*/
@@ -88,7 +88,7 @@ public:
private:
void write_dac (int which, int value);
void write_both_dacs (int val0, int val1);
-
+
protected:
ppio_sptr d_ppio;
i2c_sptr d_i2c;
diff --git a/gnuradio-core/src/lib/io/microtune_xxxx_eval_board.i b/gnuradio-core/src/lib/io/microtune_xxxx_eval_board.i
index d6000ea08..8a8a59742 100644
--- a/gnuradio-core/src/lib/io/microtune_xxxx_eval_board.i
+++ b/gnuradio-core/src/lib/io/microtune_xxxx_eval_board.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -50,7 +50,7 @@ public:
* \returns true iff PLL is locked
*/
bool pll_locked_p ();
-
+
/*!
* \returns the output frequency (IF center freq) of the tuner in Hz.
*/
diff --git a/gnuradio-core/src/lib/io/ppio.cc b/gnuradio-core/src/lib/io/ppio.cc
index 9f0ed62de..a5edc539c 100644
--- a/gnuradio-core/src/lib/io/ppio.cc
+++ b/gnuradio-core/src/lib/io/ppio.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2003 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,
diff --git a/gnuradio-core/src/lib/io/ppio.h b/gnuradio-core/src/lib/io/ppio.h
index f7d14d52e..d99f7bf79 100644
--- a/gnuradio-core/src/lib/io/ppio.h
+++ b/gnuradio-core/src/lib/io/ppio.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2001,2003 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,
@@ -51,7 +51,7 @@ class GR_CORE_API ppio {
};
/*!
- * \brief Factory method.
+ * \brief Factory method.
*
* Split out from class to make life easier for SWIG
*/
diff --git a/gnuradio-core/src/lib/io/ppio.i b/gnuradio-core/src/lib/io/ppio.i
index 8d9571e28..6b95dcf88 100644
--- a/gnuradio-core/src/lib/io/ppio.i
+++ b/gnuradio-core/src/lib/io/ppio.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/io/ppio_ppdev.cc b/gnuradio-core/src/lib/io/ppio_ppdev.cc
index 074de1aa1..f52845958 100644
--- a/gnuradio-core/src/lib/io/ppio_ppdev.cc
+++ b/gnuradio-core/src/lib/io/ppio_ppdev.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2001,2003,2004,2008 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,
@@ -94,7 +94,7 @@ ppio_ppdev::~ppio_ppdev ()
}
-void
+void
ppio_ppdev::write_data (unsigned char v)
{
if (ioctl (d_fd, PPWDATA, &v) != 0){
@@ -115,7 +115,7 @@ ppio_ppdev::read_data ()
return v;
}
-void
+void
ppio_ppdev::write_control (unsigned char v)
{
unsigned char ctrl = v ^ CP_ACTIVE_LOW_BITS;
@@ -198,7 +198,7 @@ ppio_ppdev::~ppio_ppdev ()
}
-void
+void
ppio_ppdev::write_data (unsigned char v)
{
if (ioctl (d_fd, PPISDATA, &v) != 0){
@@ -219,7 +219,7 @@ ppio_ppdev::read_data ()
return v;
}
-void
+void
ppio_ppdev::write_control (unsigned char v)
{
unsigned char ctrl = v ^ CP_ACTIVE_LOW_BITS;
@@ -274,7 +274,7 @@ ppio_ppdev::~ppio_ppdev ()
{
}
-void
+void
ppio_ppdev::write_data (unsigned char v)
{
}
@@ -285,7 +285,7 @@ ppio_ppdev::read_data ()
return 0;
}
-void
+void
ppio_ppdev::write_control (unsigned char v)
{
}
diff --git a/gnuradio-core/src/lib/io/ppio_ppdev.h b/gnuradio-core/src/lib/io/ppio_ppdev.h
index 5d082d784..1f86d7e04 100644
--- a/gnuradio-core/src/lib/io/ppio_ppdev.h
+++ b/gnuradio-core/src/lib/io/ppio_ppdev.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2001,2003 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,
diff --git a/gnuradio-core/src/lib/io/sdr_1000.cc b/gnuradio-core/src/lib/io/sdr_1000.cc
index df26237ef..a8c2555e0 100644
--- a/gnuradio-core/src/lib/io/sdr_1000.cc
+++ b/gnuradio-core/src/lib/io/sdr_1000.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2003 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,
@@ -49,13 +49,13 @@ sdr_1000_base::reset ()
write_latch (L_DDS1, 0x00, 0xff);
}
-
+
void
sdr_1000_base::write_latch (int which, int value, int mask)
{
if (!(0 <= which && which <= 3))
return;
-
+
d_ppio->lock ();
d_shadow[which] = (d_shadow[which] & ~mask) | (value & mask);
d_ppio->write_data (d_shadow[which]);
diff --git a/gnuradio-core/src/lib/io/sdr_1000.h b/gnuradio-core/src/lib/io/sdr_1000.h
index 6647fbba5..c00608a3a 100644
--- a/gnuradio-core/src/lib/io/sdr_1000.h
+++ b/gnuradio-core/src/lib/io/sdr_1000.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2003,2004 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,
@@ -40,12 +40,12 @@ enum { L_EXT = 0, L_BAND = 1, L_DDS0 = 2, L_DDS1 = 3 };
class GR_CORE_API sdr_1000_base {
ppio_sptr d_ppio;
int d_shadow[4]; // shadow latches
-
+
public:
sdr_1000_base (int which_pp);
~sdr_1000_base ();
-
+
void reset ();
void write_latch (int which, int value, int mask);
};
diff --git a/gnuradio-core/src/lib/io/sdr_1000.i b/gnuradio-core/src/lib/io/sdr_1000.i
index fbdef85e5..c9b1ef560 100644
--- a/gnuradio-core/src/lib/io/sdr_1000.i
+++ b/gnuradio-core/src/lib/io/sdr_1000.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/missing/CMakeLists.txt b/gnuradio-core/src/lib/missing/CMakeLists.txt
index 0a376645f..85267ee48 100644
--- a/gnuradio-core/src/lib/missing/CMakeLists.txt
+++ b/gnuradio-core/src/lib/missing/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2010 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,
diff --git a/gnuradio-core/src/lib/missing/getopt.c b/gnuradio-core/src/lib/missing/getopt.c
index 75be3307c..69c7c16f7 100644
--- a/gnuradio-core/src/lib/missing/getopt.c
+++ b/gnuradio-core/src/lib/missing/getopt.c
@@ -19,7 +19,7 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
-
+
/* NOTE!!! AIX requires this to be the first thing in the file.
Do not put ANYTHING before it! */
#if !defined (__GNUC__) && defined (_AIX)
@@ -172,7 +172,7 @@ static enum
{
REQUIRE_ORDER, PERMUTE, RETURN_IN_ORDER
} ordering;
-
+
#ifdef __GNU_LIBRARY__
/* We want to avoid inclusion of string.h with non-GNU libraries
because there are many ways it can cause trouble.
@@ -213,7 +213,7 @@ my_bcopy (from, to, size)
to[i] = from[i];
}
#endif /* GNU C library. */
-
+
/* Handle permutation of arguments. */
/* Describe the part of ARGV that contains non-options that have
@@ -253,7 +253,7 @@ exchange (argv)
first_nonopt += (optind - last_nonopt);
last_nonopt = optind;
}
-
+
/* Scan elements of ARGV (whose length is ARGC) for option characters
given in OPTSTRING.
@@ -659,7 +659,7 @@ getopt (argc, argv, optstring)
#endif
#endif /* _LIBC or not __GNU_LIBRARY__. */
-
+
#ifdef TEST
/* Compile with -DTEST to make an executable for use in testing
diff --git a/gnuradio-core/src/lib/missing/gettimeofday.c b/gnuradio-core/src/lib/missing/gettimeofday.c
index 098793ac9..a53e47ed9 100644
--- a/gnuradio-core/src/lib/missing/gettimeofday.c
+++ b/gnuradio-core/src/lib/missing/gettimeofday.c
@@ -1,18 +1,18 @@
/*
* Copyright 2003 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,
@@ -32,15 +32,15 @@
#include <sys/time.h>
#endif
-/*
- * broken implementation for WIN32.
+/*
+ * broken implementation for WIN32.
* FIXME: usec precision
*/
int gettimeofday(struct timeval *tv, struct timezone *tz)
{
if (tv) {
time_t tm;
-
+
time(&tm);
tv->tv_sec = tm;
tv->tv_usec = 0;
diff --git a/gnuradio-core/src/lib/missing/posix_memalign.cc b/gnuradio-core/src/lib/missing/posix_memalign.cc
index a2e98b018..aaeff7804 100644
--- a/gnuradio-core/src/lib/missing/posix_memalign.cc
+++ b/gnuradio-core/src/lib/missing/posix_memalign.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2009 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,
diff --git a/gnuradio-core/src/lib/missing/posix_memalign.h b/gnuradio-core/src/lib/missing/posix_memalign.h
index 1be4bfc5b..ea79ced2e 100644
--- a/gnuradio-core/src/lib/missing/posix_memalign.h
+++ b/gnuradio-core/src/lib/missing/posix_memalign.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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,
diff --git a/gnuradio-core/src/lib/reed-solomon/char.h b/gnuradio-core/src/lib/reed-solomon/char.h
index 762e9e295..7b2030a0b 100644
--- a/gnuradio-core/src/lib/reed-solomon/char.h
+++ b/gnuradio-core/src/lib/reed-solomon/char.h
@@ -32,7 +32,7 @@ static inline unsigned int modnn(struct rs *rs, unsigned int x){
#define MM (rs->mm)
#define NN (rs->nn)
-#define ALPHA_TO (rs->alpha_to)
+#define ALPHA_TO (rs->alpha_to)
#define INDEX_OF (rs->index_of)
#define GENPOLY (rs->genpoly)
#define NROOTS (rs->nroots)
diff --git a/gnuradio-core/src/lib/reed-solomon/decode_rs.c b/gnuradio-core/src/lib/reed-solomon/decode_rs.c
index 4b7d27cec..f9438cf26 100644
--- a/gnuradio-core/src/lib/reed-solomon/decode_rs.c
+++ b/gnuradio-core/src/lib/reed-solomon/decode_rs.c
@@ -92,7 +92,7 @@ DTYPE *data, int *eras_pos, int no_eras){
#if DEBUG >= 1
/* Test code that verifies the erasure locator polynomial just constructed
Needed only for decoder debugging. */
-
+
/* find roots of the erasure location polynomial */
for(i=1;i<=no_eras;i++)
reg[i] = INDEX_OF[lambda[i]];
@@ -127,7 +127,7 @@ DTYPE *data, int *eras_pos, int no_eras){
}
for(i=0;(unsigned int)i<NROOTS+1;i++)
b[i] = INDEX_OF[lambda[i]];
-
+
/*
* Begin Berlekamp-Massey algorithm to determine error+erasure
* locator polynomial
@@ -230,7 +230,7 @@ DTYPE *data, int *eras_pos, int no_eras){
omega[i] = INDEX_OF[tmp];
}
omega[NROOTS] = A0;
-
+
/*
* Compute error values in poly-form. num1 = omega(inv(X(l))), num2 =
* inv(X(l))**(FCR-1) and den = lambda_pr(inv(X(l))) all in poly-form
@@ -243,7 +243,7 @@ DTYPE *data, int *eras_pos, int no_eras){
}
num2 = ALPHA_TO[MODNN(root[j] * (FCR - 1) + NN)];
den = 0;
-
+
/* lambda[i+1] for i even is the formal derivative lambda_pr of lambda[i] */
for (i = (int)min((unsigned int)deg_lambda,NROOTS-1) & ~1; i >= 0; i -=2) {
if(lambda[i+1] != A0)
diff --git a/gnuradio-core/src/lib/reed-solomon/exercise.c b/gnuradio-core/src/lib/reed-solomon/exercise.c
index be3d3bd13..de33a6bff 100644
--- a/gnuradio-core/src/lib/reed-solomon/exercise.c
+++ b/gnuradio-core/src/lib/reed-solomon/exercise.c
@@ -71,7 +71,7 @@ int trials){
/* Load block with random data and encode */
for(i=0;i<NN-NROOTS;i++)
block[i] = random() & NN;
-
+
#if defined(CCSDS) || defined(FIXED)
ENCODE_RS(&block[0],&block[NN-NROOTS]);
#else
diff --git a/gnuradio-core/src/lib/reed-solomon/int.h b/gnuradio-core/src/lib/reed-solomon/int.h
index 79979f827..403d68757 100644
--- a/gnuradio-core/src/lib/reed-solomon/int.h
+++ b/gnuradio-core/src/lib/reed-solomon/int.h
@@ -31,7 +31,7 @@ static inline int modnn(struct rs *rs,int x){
#define MM (rs->mm)
#define NN (rs->nn)
-#define ALPHA_TO (rs->alpha_to)
+#define ALPHA_TO (rs->alpha_to)
#define INDEX_OF (rs->index_of)
#define GENPOLY (rs->genpoly)
#define NROOTS (rs->nroots)
diff --git a/gnuradio-core/src/lib/runtime/CMakeLists.txt b/gnuradio-core/src/lib/runtime/CMakeLists.txt
index 105fc0e06..1415ff4c6 100644
--- a/gnuradio-core/src/lib/runtime/CMakeLists.txt
+++ b/gnuradio-core/src/lib/runtime/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2010-2010 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,
diff --git a/gnuradio-core/src/lib/runtime/gr_basic_block.cc b/gnuradio-core/src/lib/runtime/gr_basic_block.cc
index 0e0dad16b..d7263b92d 100644
--- a/gnuradio-core/src/lib/runtime/gr_basic_block.cc
+++ b/gnuradio-core/src/lib/runtime/gr_basic_block.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
@@ -32,7 +32,7 @@ using namespace pmt;
static long s_next_id = 0;
static long s_ncurrently_allocated = 0;
-long
+long
gr_basic_block_ncurrently_allocated()
{
return s_ncurrently_allocated;
@@ -40,7 +40,7 @@ gr_basic_block_ncurrently_allocated()
gr_basic_block::gr_basic_block(const std::string &name,
gr_io_signature_sptr input_signature,
- gr_io_signature_sptr output_signature)
+ gr_io_signature_sptr output_signature)
: d_name(name),
d_input_signature(input_signature),
d_output_signature(output_signature),
@@ -49,13 +49,13 @@ gr_basic_block::gr_basic_block(const std::string &name,
{
s_ncurrently_allocated++;
}
-
+
gr_basic_block::~gr_basic_block()
{
s_ncurrently_allocated--;
}
-gr_basic_block_sptr
+gr_basic_block_sptr
gr_basic_block::to_basic_block()
{
return shared_from_this();
diff --git a/gnuradio-core/src/lib/runtime/gr_basic_block.h b/gnuradio-core/src/lib/runtime/gr_basic_block.h
index 7e95509e2..4d03b878e 100644
--- a/gnuradio-core/src/lib/runtime/gr_basic_block.h
+++ b/gnuradio-core/src/lib/runtime/gr_basic_block.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2008,2009,2011 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,
@@ -85,7 +85,7 @@ protected:
void set_input_signature(gr_io_signature_sptr iosig) {
d_input_signature = iosig;
}
-
+
//! may only be called during constructor
void set_output_signature(gr_io_signature_sptr iosig) {
d_output_signature = iosig;
diff --git a/gnuradio-core/src/lib/runtime/gr_basic_block.i b/gnuradio-core/src/lib/runtime/gr_basic_block.i
index 03d4725d5..e43cc114c 100644
--- a/gnuradio-core/src/lib/runtime/gr_basic_block.i
+++ b/gnuradio-core/src/lib/runtime/gr_basic_block.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2010 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,
diff --git a/gnuradio-core/src/lib/runtime/gr_block.cc b/gnuradio-core/src/lib/runtime/gr_block.cc
index 78f77486b..9a5255a93 100644
--- a/gnuradio-core/src/lib/runtime/gr_block.cc
+++ b/gnuradio-core/src/lib/runtime/gr_block.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2009,2010 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,
@@ -43,7 +43,7 @@ gr_block::gr_block (const std::string &name,
d_tag_propagation_policy(TPP_ALL_TO_ALL)
{
}
-
+
gr_block::~gr_block ()
{
}
@@ -102,7 +102,7 @@ gr_block::set_unaligned (int na)
d_unaligned = na;
}
-void
+void
gr_block::set_is_unaligned (bool u)
{
d_is_unaligned = u;
@@ -113,7 +113,7 @@ gr_block::set_relative_rate (double relative_rate)
{
if (relative_rate < 0.0)
throw std::invalid_argument ("gr_block::set_relative_rate");
-
+
d_relative_rate = relative_rate;
}
@@ -149,7 +149,7 @@ gr_block::fixed_rate_noutput_to_ninput(int noutput)
}
uint64_t
-gr_block::nitems_read(unsigned int which_input)
+gr_block::nitems_read(unsigned int which_input)
{
if(d_detail) {
return d_detail->nitems_read(which_input);
@@ -161,7 +161,7 @@ gr_block::nitems_read(unsigned int which_input)
}
uint64_t
-gr_block::nitems_written(unsigned int which_output)
+gr_block::nitems_written(unsigned int which_output)
{
if(d_detail) {
return d_detail->nitems_written(which_output);
@@ -186,7 +186,7 @@ gr_block::get_tags_in_range(std::vector<gr_tag_t> &v,
{
d_detail->get_tags_in_range(v, which_output, start, end);
}
-
+
void
gr_block::get_tags_in_range(std::vector<gr_tag_t> &v,
unsigned int which_output,
diff --git a/gnuradio-core/src/lib/runtime/gr_block.h b/gnuradio-core/src/lib/runtime/gr_block.h
index 9171942e0..71ac8eee6 100644
--- a/gnuradio-core/src/lib/runtime/gr_block.h
+++ b/gnuradio-core/src/lib/runtime/gr_block.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2007,2009,2010 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,
@@ -31,11 +31,11 @@
* \brief The abstract base class for all 'terminal' processing blocks.
* \ingroup base_blk
*
- * A signal processing flow is constructed by creating a tree of
+ * A signal processing flow is constructed by creating a tree of
* hierarchical blocks, which at any level may also contain terminal nodes
* that actually implement signal processing functions. This is the base
* class for all such leaf nodes.
-
+
* Blocks have a set of input streams and output streams. The
* input_signature and output_signature define the number of input
* streams and output streams respectively, and the type of the data
@@ -58,7 +58,7 @@
class GR_CORE_API gr_block : public gr_basic_block {
public:
-
+
//! Magic return values from general_work
enum {
WORK_CALLED_PRODUCE = -2,
@@ -82,7 +82,7 @@ class GR_CORE_API gr_block : public gr_basic_block {
*/
unsigned history () const { return d_history; }
void set_history (unsigned history) { d_history = history; }
-
+
/*!
* \brief Return true if this block has a fixed input to output rate.
*
@@ -177,7 +177,7 @@ class GR_CORE_API gr_block : public gr_basic_block {
int unaligned () const { return d_unaligned; }
void set_is_unaligned (bool u);
bool is_unaligned () const { return d_is_unaligned; }
-
+
/*!
* \brief Tell the scheduler \p how_many_items of input stream \p which_input were consumed.
*/
@@ -264,7 +264,7 @@ class GR_CORE_API gr_block : public gr_basic_block {
unsigned d_history;
bool d_fixed_rate;
tag_propagation_policy_t d_tag_propagation_policy; // policy for moving tags downstream
-
+
protected:
gr_block (void){} //allows pure virtual interface sub-classes
gr_block (const std::string &name,
@@ -273,10 +273,10 @@ class GR_CORE_API gr_block : public gr_basic_block {
void set_fixed_rate(bool fixed_rate){ d_fixed_rate = fixed_rate; }
-
+
/*!
* \brief Adds a new tag onto the given output buffer.
- *
+ *
* \param which_output an integer of which output stream to attach the tag
* \param abs_offset a uint64 number of the absolute item number
* assicated with the tag. Can get from nitems_written.
@@ -323,7 +323,7 @@ class GR_CORE_API gr_block : public gr_basic_block {
unsigned int which_input,
uint64_t abs_start,
uint64_t abs_end);
-
+
/*!
* \brief Given a [start,end), returns a vector of all tags in the range
* with a given key.
diff --git a/gnuradio-core/src/lib/runtime/gr_block.i b/gnuradio-core/src/lib/runtime/gr_block.i
index bb0c5f221..4cc260bfe 100644
--- a/gnuradio-core/src/lib/runtime/gr_block.i
+++ b/gnuradio-core/src/lib/runtime/gr_block.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
@@ -38,9 +38,9 @@ class gr_block : public gr_basic_block {
gr_io_signature_sptr output_signature);
public:
-
+
virtual ~gr_block ();
-
+
unsigned history () const;
int output_multiple () const;
diff --git a/gnuradio-core/src/lib/runtime/gr_block_detail.cc b/gnuradio-core/src/lib/runtime/gr_block_detail.cc
index cbd4239f3..2792cd471 100644
--- a/gnuradio-core/src/lib/runtime/gr_block_detail.cc
+++ b/gnuradio-core/src/lib/runtime/gr_block_detail.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2009,2010 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,
@@ -87,7 +87,7 @@ gr_block_detail::set_done (bool done)
d_input[i]->set_done (done);
}
-void
+void
gr_block_detail::consume (int which_input, int how_many_items)
{
if (how_many_items > 0) {
@@ -134,7 +134,7 @@ gr_block_detail::_post(pmt_t msg)
}
uint64_t
-gr_block_detail::nitems_read(unsigned int which_input)
+gr_block_detail::nitems_read(unsigned int which_input)
{
if(which_input >= d_ninputs)
throw std::invalid_argument ("gr_block_detail::n_input_items");
@@ -142,7 +142,7 @@ gr_block_detail::nitems_read(unsigned int which_input)
}
uint64_t
-gr_block_detail::nitems_written(unsigned int which_output)
+gr_block_detail::nitems_written(unsigned int which_output)
{
if(which_output >= d_noutputs)
throw std::invalid_argument ("gr_block_detail::n_output_items");
@@ -179,7 +179,7 @@ gr_block_detail::get_tags_in_range(std::vector<gr_tag_t> &v,
const pmt_t &key)
{
std::vector<gr_tag_t> found_items;
-
+
v.resize(0);
// get from gr_buffer_reader's deque of tags
diff --git a/gnuradio-core/src/lib/runtime/gr_block_detail.h b/gnuradio-core/src/lib/runtime/gr_block_detail.h
index 89081156a..c96f00db8 100644
--- a/gnuradio-core/src/lib/runtime/gr_block_detail.h
+++ b/gnuradio-core/src/lib/runtime/gr_block_detail.h
@@ -96,11 +96,11 @@ class GR_CORE_API gr_block_detail {
// Return the number of items written on output stream which_output
uint64_t nitems_written(unsigned int which_output);
-
+
/*!
* \brief Adds a new tag to the given output stream.
- *
- * This takes the input parameters and builds a PMT tuple
+ *
+ * This takes the input parameters and builds a PMT tuple
* from it. It then calls gr_buffer::add_item_tag(pmt::pmt_t t),
* which appends the tag onto its deque.
*
@@ -112,7 +112,7 @@ class GR_CORE_API gr_block_detail {
/*!
* \brief Given a [start,end), returns a vector of all tags in the range.
*
- * Pass-through function to gr_buffer_reader to get a vector of tags
+ * Pass-through function to gr_buffer_reader to get a vector of tags
* in given range. Range of counts is from start to end-1.
*
* Tags are tuples of:
@@ -127,7 +127,7 @@ class GR_CORE_API gr_block_detail {
unsigned int which_input,
uint64_t abs_start,
uint64_t abs_end);
-
+
/*!
* \brief Given a [start,end), returns a vector of all tags in the range
* with a given key.
diff --git a/gnuradio-core/src/lib/runtime/gr_block_detail.i b/gnuradio-core/src/lib/runtime/gr_block_detail.i
index c8600c3cf..74ff46360 100644
--- a/gnuradio-core/src/lib/runtime/gr_block_detail.i
+++ b/gnuradio-core/src/lib/runtime/gr_block_detail.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/runtime/gr_block_executor.cc b/gnuradio-core/src/lib/runtime/gr_block_executor.cc
index 86289695a..6fea14613 100644
--- a/gnuradio-core/src/lib/runtime/gr_block_executor.cc
+++ b/gnuradio-core/src/lib/runtime/gr_block_executor.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2008,2009,2010 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,
@@ -147,7 +147,7 @@ propagate_tags(gr_block::tag_propagation_policy_t policy, gr_block_detail *d,
std::cerr << "Error: gr_block_executor: propagation_policy 'ONE-TO-ONE' requires ninputs == noutputs" << std::endl;
return false;
}
-
+
break;
default:
return true;
@@ -241,10 +241,10 @@ gr_block_executor::run_one_iteration()
LOG(*d_log << " d_ninput_items[" << i << "] = " << d_ninput_items[i] << std::endl);
LOG(*d_log << " d_input_done[" << i << "] = " << d_input_done[i] << std::endl);
-
+
if (d_ninput_items[i] < m->output_multiple() && d_input_done[i])
goto were_done;
-
+
max_items_avail = std::max (max_items_avail, d_ninput_items[i]);
}
@@ -309,7 +309,7 @@ gr_block_executor::run_one_iteration()
// try to work it forward starting with max_items_avail.
// We want to try to consume all the input we've got.
int reqd_noutput_items = m->fixed_rate_ninput_to_noutput(max_items_avail);
-
+
// only test this if we specifically set the output_multiple
if(m->output_multiple_set())
reqd_noutput_items = round_down(reqd_noutput_items, m->output_multiple());
@@ -442,7 +442,7 @@ gr_block_executor::run_one_iteration()
if (n != gr_block::WORK_CALLED_PRODUCE)
d->produce_each (n); // advance write pointers
-
+
if (d->d_produce_or > 0) // block produced something
return READY;
@@ -461,7 +461,7 @@ gr_block_executor::run_one_iteration()
return READY_NO_OUTPUT;
}
assert (0);
-
+
were_done:
LOG(*d_log << " were_done\n");
d->set_done (true);
diff --git a/gnuradio-core/src/lib/runtime/gr_block_executor.h b/gnuradio-core/src/lib/runtime/gr_block_executor.h
index e022d8273..0ae5affba 100644
--- a/gnuradio-core/src/lib/runtime/gr_block_executor.h
+++ b/gnuradio-core/src/lib/runtime/gr_block_executor.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2008 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,
diff --git a/gnuradio-core/src/lib/runtime/gr_buffer.cc b/gnuradio-core/src/lib/runtime/gr_buffer.cc
index 8ccc9db32..b923ca57a 100644
--- a/gnuradio-core/src/lib/runtime/gr_buffer.cc
+++ b/gnuradio-core/src/lib/runtime/gr_buffer.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2009,2010 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,
@@ -90,7 +90,7 @@ gr_buffer::gr_buffer (int nitems, size_t sizeof_item, gr_block_sptr link)
s_buffer_count++;
}
-gr_buffer_sptr
+gr_buffer_sptr
gr_make_buffer (int nitems, size_t sizeof_item, gr_block_sptr link)
{
return gr_buffer_sptr (new gr_buffer (nitems, sizeof_item, link));
@@ -111,7 +111,7 @@ bool
gr_buffer::allocate_buffer (int nitems, size_t sizeof_item)
{
int orig_nitems = nitems;
-
+
// Any buffersize we come up with must be a multiple of min_nitems.
int granularity = gr_vmcircbuf_sysconfig::granularity ();
@@ -240,7 +240,7 @@ gr_buffer::prune_tags(uint64_t max_time)
d_item_tags. In practice, this function is only called at
runtime by min_available_space in gr_block_executor.cc,
which locks the mutex itself.
-
+
If this function is used elsewhere, remember to lock the
buffer's mutex al la the scoped_lock line below.
*/
@@ -285,7 +285,7 @@ gr_buffer_reader::~gr_buffer_reader ()
d_buffer->drop_reader(this);
s_buffer_reader_count--;
}
-
+
int
gr_buffer_reader::items_available () const
{
@@ -315,7 +315,7 @@ gr_buffer_reader::get_tags_in_range(std::vector<gr_tag_t> &v,
v.resize(0);
std::deque<gr_tag_t>::iterator itr = d_buffer->get_tags_begin();
-
+
uint64_t item_time;
while(itr != d_buffer->get_tags_end()) {
item_time = (*itr).offset;
diff --git a/gnuradio-core/src/lib/runtime/gr_buffer.h b/gnuradio-core/src/lib/runtime/gr_buffer.h
index 9478e1ce0..67d48fb2d 100644
--- a/gnuradio-core/src/lib/runtime/gr_buffer.h
+++ b/gnuradio-core/src/lib/runtime/gr_buffer.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2009,2010,2011 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,
@@ -97,14 +97,14 @@ class GR_CORE_API gr_buffer {
/*!
* \brief Adds a new tag to the buffer.
- *
+ *
* \param tag the new tag
*/
void add_item_tag(const gr_tag_t &tag);
/*!
* \brief Removes all tags before \p max_time from buffer
- *
+ *
* \param max_time the time (item number) to trim up until.
*/
void prune_tags(uint64_t max_time);
@@ -130,7 +130,7 @@ class GR_CORE_API gr_buffer {
boost::weak_ptr<gr_block> d_link; // block that writes to this buffer
//
- // The mutex protects d_write_index, d_abs_write_offset, d_done, d_item_tags
+ // The mutex protects d_write_index, d_abs_write_offset, d_done, d_item_tags
// and the d_read_index's and d_abs_read_offset's in the buffer readers.
//
gruel::mutex d_mutex;
@@ -139,7 +139,7 @@ class GR_CORE_API gr_buffer {
bool d_done;
std::deque<gr_tag_t> d_item_tags;
uint64_t d_last_min_items_read;
-
+
unsigned
index_add (unsigned a, unsigned b)
{
@@ -194,7 +194,7 @@ class GR_CORE_API gr_buffer {
* \param nzero_preload -- number of zero items to "preload" into buffer.
* \param link is the block that reads from the buffer using this gr_buffer_reader.
*/
-GR_CORE_API gr_buffer_reader_sptr
+GR_CORE_API gr_buffer_reader_sptr
gr_buffer_add_reader (gr_buffer_sptr buf, int nzero_preload, gr_block_sptr link=gr_block_sptr());
//! returns # of gr_buffers currently allocated
@@ -280,7 +280,7 @@ class GR_CORE_API gr_buffer_reader {
private:
friend class gr_buffer;
- friend GR_CORE_API gr_buffer_reader_sptr
+ friend GR_CORE_API gr_buffer_reader_sptr
gr_buffer_add_reader (gr_buffer_sptr buf, int nzero_preload, gr_block_sptr link);
diff --git a/gnuradio-core/src/lib/runtime/gr_buffer.i b/gnuradio-core/src/lib/runtime/gr_buffer.i
index 4c1c5afae..390a94e05 100644
--- a/gnuradio-core/src/lib/runtime/gr_buffer.i
+++ b/gnuradio-core/src/lib/runtime/gr_buffer.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -35,7 +35,7 @@ class gr_buffer {
private:
gr_buffer (int nitems, size_t sizeof_item, gr_block_sptr link);
};
-
+
class gr_buffer_reader;
typedef boost::shared_ptr<gr_buffer_reader> gr_buffer_reader_sptr;
diff --git a/gnuradio-core/src/lib/runtime/gr_complex.h b/gnuradio-core/src/lib/runtime/gr_complex.h
index 32e996eef..758002106 100644
--- a/gnuradio-core/src/lib/runtime/gr_complex.h
+++ b/gnuradio-core/src/lib/runtime/gr_complex.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/runtime/gr_dispatcher.cc b/gnuradio-core/src/lib/runtime/gr_dispatcher.cc
index e165361fc..96ebe9ad8 100644
--- a/gnuradio-core/src/lib/runtime/gr_dispatcher.cc
+++ b/gnuradio-core/src/lib/runtime/gr_dispatcher.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gnuradio-core/src/lib/runtime/gr_dispatcher.h b/gnuradio-core/src/lib/runtime/gr_dispatcher.h
index 735974766..72a0b0176 100644
--- a/gnuradio-core/src/lib/runtime/gr_dispatcher.h
+++ b/gnuradio-core/src/lib/runtime/gr_dispatcher.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gnuradio-core/src/lib/runtime/gr_dispatcher.i b/gnuradio-core/src/lib/runtime/gr_dispatcher.i
index fc361701a..28737cd31 100644
--- a/gnuradio-core/src/lib/runtime/gr_dispatcher.i
+++ b/gnuradio-core/src/lib/runtime/gr_dispatcher.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gnuradio-core/src/lib/runtime/gr_error_handler.cc b/gnuradio-core/src/lib/runtime/gr_error_handler.cc
index 4b4cdacef..448682966 100644
--- a/gnuradio-core/src/lib/runtime/gr_error_handler.cc
+++ b/gnuradio-core/src/lib/runtime/gr_error_handler.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
@@ -23,7 +23,7 @@
* This code is based on error.cc from the "Click Modular Router".
* Original copyright follows:
*/
-/*
+/*
* error.{cc,hh} -- flexible classes for error reporting
* Eddie Kohler
*
@@ -205,7 +205,7 @@ gr_file_error_handler::handle_text(seriousness s, const std::string &text)
{
if (text.length() <= 0)
return;
-
+
fwrite(text.data(), 1, text.length(), d_file);
if (text[text.length()-1] != '\n')
fwrite("\n", 1, 1, d_file);
@@ -213,7 +213,7 @@ gr_file_error_handler::handle_text(seriousness s, const std::string &text)
if (d_fd != -1)
fflush(d_file); // keep synced with any other users of fd
}
-
+
// ----------------------------------------------------------------
// static error handlers
diff --git a/gnuradio-core/src/lib/runtime/gr_error_handler.h b/gnuradio-core/src/lib/runtime/gr_error_handler.h
index 4c30791f2..569c01c45 100644
--- a/gnuradio-core/src/lib/runtime/gr_error_handler.h
+++ b/gnuradio-core/src/lib/runtime/gr_error_handler.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
@@ -23,7 +23,7 @@
* This code is based on error.hh from the "Click Modular Router".
* Original copyright follows:
*/
-/*
+/*
* error.{cc,hh} -- flexible classes for error reporting
* Eddie Kohler
*
diff --git a/gnuradio-core/src/lib/runtime/gr_error_handler.i b/gnuradio-core/src/lib/runtime/gr_error_handler.i
index b4aa1fa39..072394a72 100644
--- a/gnuradio-core/src/lib/runtime/gr_error_handler.i
+++ b/gnuradio-core/src/lib/runtime/gr_error_handler.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gnuradio-core/src/lib/runtime/gr_flat_flowgraph.cc b/gnuradio-core/src/lib/runtime/gr_flat_flowgraph.cc
index 5c9e4bf3f..030e2d97d 100644
--- a/gnuradio-core/src/lib/runtime/gr_flat_flowgraph.cc
+++ b/gnuradio-core/src/lib/runtime/gr_flat_flowgraph.cc
@@ -134,11 +134,11 @@ gr_flat_flowgraph::connect_block_inputs(gr_basic_block_sptr block)
gr_block_sptr grblock = cast_to_block_sptr(block);
if (!grblock)
throw std::runtime_error("connect_block_inputs found non-gr_block");
-
+
// Get its detail and edges that feed into it
gr_block_detail_sptr detail = grblock->detail();
gr_edge_vector_t in_edges = calc_upstream_edges(block);
-
+
// For each edge that feeds into it
for (gr_edge_viter_t e = in_edges.begin(); e != in_edges.end(); e++) {
// Set the buffer reader on the destination port to the output
@@ -150,7 +150,7 @@ gr_flat_flowgraph::connect_block_inputs(gr_basic_block_sptr block)
if (!src_grblock)
throw std::runtime_error("connect_block_inputs found non-gr_block");
gr_buffer_sptr src_buffer = src_grblock->detail()->output(src_port);
-
+
if (GR_FLAT_FLOWGRAPH_DEBUG)
std::cout << "Setting input " << dst_port << " from edge " << (*e) << std::endl;
@@ -166,7 +166,7 @@ gr_flat_flowgraph::merge_connections(gr_flat_flowgraph_sptr old_ffg)
// already have one.
for (gr_basic_block_viter_t p = d_blocks.begin(); p != d_blocks.end(); p++) {
gr_block_sptr block = cast_to_block_sptr(*p);
-
+
if (!block->detail()) {
if (GR_FLAT_FLOWGRAPH_DEBUG)
std::cout << "merge: allocating new detail for block " << (*p) << std::endl;
@@ -182,7 +182,7 @@ gr_flat_flowgraph::merge_connections(gr_flat_flowgraph_sptr old_ffg)
for (gr_edge_viter_t old_edge = old_ffg->d_edges.begin(); old_edge != old_ffg->d_edges.end(); old_edge++) {
if (GR_FLAT_FLOWGRAPH_DEBUG)
std::cout << "merge: testing old edge " << (*old_edge) << "...";
-
+
gr_edge_viter_t new_edge;
for (new_edge = d_edges.begin(); new_edge != d_edges.end(); new_edge++)
if (new_edge->src() == old_edge->src() &&
@@ -201,7 +201,7 @@ gr_flat_flowgraph::merge_connections(gr_flat_flowgraph_sptr old_ffg)
if (GR_FLAT_FLOWGRAPH_DEBUG)
std::cout << "found in new edge list" << std::endl;
}
- }
+ }
// Now connect inputs to outputs, reusing old buffer readers if they exist
for (gr_basic_block_viter_t p = d_blocks.begin(); p != d_blocks.end(); p++) {
@@ -209,13 +209,13 @@ gr_flat_flowgraph::merge_connections(gr_flat_flowgraph_sptr old_ffg)
if (GR_FLAT_FLOWGRAPH_DEBUG)
std::cout << "merge: merging " << (*p) << "...";
-
+
if (old_ffg->has_block_p(*p)) {
// Block exists in old flow graph
if (GR_FLAT_FLOWGRAPH_DEBUG)
std::cout << "used in old flow graph" << std::endl;
gr_block_detail_sptr detail = block->detail();
-
+
// Iterate through the inputs and see what needs to be done
int ninputs = calc_used_ports(block, true).size(); // Might be different now
for (int i = 0; i < ninputs; i++) {
@@ -228,9 +228,9 @@ gr_flat_flowgraph::merge_connections(gr_flat_flowgraph_sptr old_ffg)
gr_block_detail_sptr src_detail = src_block->detail();
gr_buffer_sptr src_buffer = src_detail->output(edge.src().port());
gr_buffer_reader_sptr old_reader;
- if (i < detail->ninputs()) // Don't exceed what the original detail has
+ if (i < detail->ninputs()) // Don't exceed what the original detail has
old_reader = detail->input(i);
-
+
// If there's a match, use it
if (old_reader && (src_buffer == old_reader->buffer())) {
if (GR_FLAT_FLOWGRAPH_DEBUG)
@@ -255,9 +255,9 @@ gr_flat_flowgraph::merge_connections(gr_flat_flowgraph_sptr old_ffg)
setup_buffer_alignment(block);
}
- // Now deal with the fact that the block details might have changed numbers of
+ // Now deal with the fact that the block details might have changed numbers of
// inputs and outputs vs. in the old flowgraph.
- }
+ }
}
void
@@ -298,7 +298,7 @@ void gr_flat_flowgraph::dump()
std::cout << " block: " << (*p) << std::endl;
gr_block_detail_sptr detail = cast_to_block_sptr(*p)->detail();
std::cout << " detail @" << detail << ":" << std::endl;
-
+
int ni = detail->ninputs();
int no = detail->noutputs();
for (int i = 0; i < no; i++) {
diff --git a/gnuradio-core/src/lib/runtime/gr_flat_flowgraph.h b/gnuradio-core/src/lib/runtime/gr_flat_flowgraph.h
index ce863509b..0926bcc8f 100644
--- a/gnuradio-core/src/lib/runtime/gr_flat_flowgraph.h
+++ b/gnuradio-core/src/lib/runtime/gr_flat_flowgraph.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2007 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,
@@ -64,7 +64,7 @@ private:
gr_buffer_sptr allocate_buffer(gr_basic_block_sptr block, int port);
void connect_block_inputs(gr_basic_block_sptr block);
- /* When reusing a flowgraph's blocks, this call makes sure all of the
+ /* When reusing a flowgraph's blocks, this call makes sure all of the
* buffer's are aligned at the machine's alignment boundary and tells
* the blocks that they are aligned.
*
diff --git a/gnuradio-core/src/lib/runtime/gr_flowgraph.cc b/gnuradio-core/src/lib/runtime/gr_flowgraph.cc
index 0d3bbb011..78e1bc99a 100644
--- a/gnuradio-core/src/lib/runtime/gr_flowgraph.cc
+++ b/gnuradio-core/src/lib/runtime/gr_flowgraph.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007,2011 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,
@@ -44,7 +44,7 @@ gr_flowgraph_sptr gr_make_flowgraph()
gr_flowgraph::gr_flowgraph()
{
}
-
+
gr_flowgraph::~gr_flowgraph()
{
}
@@ -57,7 +57,7 @@ unique_vector(std::vector<T> v)
{
std::vector<T> result;
std::insert_iterator<std::vector<T> > inserter(result, result.begin());
-
+
sort(v.begin(), v.end());
unique_copy(v.begin(), v.end(), inserter);
return result;
@@ -113,7 +113,7 @@ gr_flowgraph::validate()
if (!((*p)->check_topology(ninputs, noutputs))) {
std::stringstream msg;
msg << "check topology failed on " << (*p)
- << " using ninputs=" << ninputs
+ << " using ninputs=" << ninputs
<< ", noutputs=" << noutputs;
throw std::runtime_error(msg.str());
}
@@ -194,7 +194,7 @@ gr_flowgraph::calc_used_ports(gr_basic_block_sptr block, bool check_inputs)
{
std::vector<int> tmp;
- // Collect all seen ports
+ // Collect all seen ports
gr_edge_vector_t edges = calc_connections(block, check_inputs);
for (gr_edge_viter_t p = edges.begin(); p != edges.end(); p++) {
if (check_inputs == true)
@@ -259,7 +259,7 @@ gr_flowgraph::check_contiguity(gr_basic_block_sptr block,
if (used_ports[nports-1]+1 != nports) {
for (int i = 0; i < nports; i++) {
if (used_ports[i] != i) {
- msg << block << ": missing connection "
+ msg << block << ": missing connection "
<< (check_inputs ? "to input port " : "from output port ")
<< i;
throw std::runtime_error(msg.str());
@@ -367,7 +367,7 @@ gr_flowgraph::calc_reachable_blocks(gr_basic_block_sptr block, gr_basic_block_ve
}
// Recursively mark all reachable blocks from given block and block list
-void
+void
gr_flowgraph::reachable_dfs_visit(gr_basic_block_sptr block, gr_basic_block_vector_t &blocks)
{
// Mark the current one as visited
@@ -382,18 +382,18 @@ gr_flowgraph::reachable_dfs_visit(gr_basic_block_sptr block, gr_basic_block_vect
}
// Return a list of block adjacent to a given block along any edge
-gr_basic_block_vector_t
+gr_basic_block_vector_t
gr_flowgraph::calc_adjacent_blocks(gr_basic_block_sptr block, gr_basic_block_vector_t &blocks)
{
gr_basic_block_vector_t tmp;
-
+
// Find any blocks that are inputs or outputs
for (gr_edge_viter_t p = d_edges.begin(); p != d_edges.end(); p++) {
if (p->src().block() == block)
tmp.push_back(p->dst().block());
if (p->dst().block() == block)
tmp.push_back(p->src().block());
- }
+ }
return unique_vector<gr_basic_block_sptr>(tmp);
}
@@ -412,7 +412,7 @@ gr_flowgraph::topological_sort(gr_basic_block_vector_t &blocks)
for (gr_basic_block_viter_t p = tmp.begin(); p != tmp.end(); p++) {
if ((*p)->color() == gr_basic_block::WHITE)
topological_dfs_visit(*p, result);
- }
+ }
reverse(result.begin(), result.end());
return result;
@@ -453,11 +453,11 @@ gr_flowgraph::topological_dfs_visit(gr_basic_block_sptr block, gr_basic_block_ve
for (gr_basic_block_viter_t p = blocks.begin(); p != blocks.end(); p++) {
switch ((*p)->color()) {
- case gr_basic_block::WHITE:
+ case gr_basic_block::WHITE:
topological_dfs_visit(*p, output);
break;
- case gr_basic_block::GREY:
+ case gr_basic_block::GREY:
throw std::runtime_error("flow graph has loops!");
case gr_basic_block::BLACK:
diff --git a/gnuradio-core/src/lib/runtime/gr_flowgraph.h b/gnuradio-core/src/lib/runtime/gr_flowgraph.h
index 8f9a8ba71..a2c1580eb 100644
--- a/gnuradio-core/src/lib/runtime/gr_flowgraph.h
+++ b/gnuradio-core/src/lib/runtime/gr_flowgraph.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2007 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,
@@ -44,11 +44,11 @@ public:
int port() const { return d_port; }
bool operator==(const gr_endpoint &other) const;
-};
+};
inline bool gr_endpoint::operator==(const gr_endpoint &other) const
{
- return (d_basic_block == other.d_basic_block &&
+ return (d_basic_block == other.d_basic_block &&
d_port == other.d_port);
}
@@ -134,7 +134,7 @@ protected:
gr_edge_vector_t d_edges;
gr_flowgraph();
- std::vector<int> calc_used_ports(gr_basic_block_sptr block, bool check_inputs);
+ std::vector<int> calc_used_ports(gr_basic_block_sptr block, bool check_inputs);
gr_basic_block_vector_t calc_downstream_blocks(gr_basic_block_sptr block, int port);
gr_edge_vector_t calc_upstream_edges(gr_basic_block_sptr block);
bool has_block_p(gr_basic_block_sptr block);
diff --git a/gnuradio-core/src/lib/runtime/gr_hier_block2.cc b/gnuradio-core/src/lib/runtime/gr_hier_block2.cc
index d6e317136..756852df8 100644
--- a/gnuradio-core/src/lib/runtime/gr_hier_block2.cc
+++ b/gnuradio-core/src/lib/runtime/gr_hier_block2.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2007,2008 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,
@@ -33,7 +33,7 @@
gr_hier_block2_sptr
-gr_make_hier_block2(const std::string &name,
+gr_make_hier_block2(const std::string &name,
gr_io_signature_sptr input_signature,
gr_io_signature_sptr output_signature)
{
@@ -67,27 +67,27 @@ gr_hier_block2::to_hier_block2()
return cast_to_hier_block2_sptr(shared_from_this());
}
-void
+void
gr_hier_block2::connect(gr_basic_block_sptr block)
{
d_detail->connect(block);
}
-void
-gr_hier_block2::connect(gr_basic_block_sptr src, int src_port,
+void
+gr_hier_block2::connect(gr_basic_block_sptr src, int src_port,
gr_basic_block_sptr dst, int dst_port)
{
d_detail->connect(src, src_port, dst, dst_port);
}
-void
+void
gr_hier_block2::disconnect(gr_basic_block_sptr block)
{
d_detail->disconnect(block);
}
-void
-gr_hier_block2::disconnect(gr_basic_block_sptr src, int src_port,
+void
+gr_hier_block2::disconnect(gr_basic_block_sptr src, int src_port,
gr_basic_block_sptr dst, int dst_port)
{
d_detail->disconnect(src, src_port, dst, dst_port);
diff --git a/gnuradio-core/src/lib/runtime/gr_hier_block2.h b/gnuradio-core/src/lib/runtime/gr_hier_block2.h
index 12bcf10e7..123178724 100644
--- a/gnuradio-core/src/lib/runtime/gr_hier_block2.h
+++ b/gnuradio-core/src/lib/runtime/gr_hier_block2.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2007,2008,2009 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,
@@ -48,21 +48,21 @@ private:
friend GR_CORE_API gr_hier_block2_sptr gr_make_hier_block2(const std::string &name,
gr_io_signature_sptr input_signature,
gr_io_signature_sptr output_signature);
-
+
/*!
* \brief Private implementation details of gr_hier_block2
*/
gr_hier_block2_detail *d_detail;
-
-protected:
+
+protected:
gr_hier_block2 (void){} //allows pure virtual interface sub-classes
gr_hier_block2(const std::string &name,
gr_io_signature_sptr input_signature,
gr_io_signature_sptr output_signature);
-
+
public:
virtual ~gr_hier_block2();
-
+
/*!
* \brief typedef for object returned from self().
*
@@ -90,11 +90,11 @@ public:
/*!
* \brief Add gr-blocks or hierarchical blocks to internal graph and wire together
*
- * This adds (if not done earlier by another connect) a pair of gr-blocks or
- * hierarchical blocks to the internal flowgraph, and wires the specified output
+ * This adds (if not done earlier by another connect) a pair of gr-blocks or
+ * hierarchical blocks to the internal flowgraph, and wires the specified output
* port to the specified input port.
*/
- void connect(gr_basic_block_sptr src, int src_port,
+ void connect(gr_basic_block_sptr src, int src_port,
gr_basic_block_sptr dst, int dst_port);
/*!
diff --git a/gnuradio-core/src/lib/runtime/gr_hier_block2.i b/gnuradio-core/src/lib/runtime/gr_hier_block2.i
index 4fa7c3bc0..eefb965b4 100644
--- a/gnuradio-core/src/lib/runtime/gr_hier_block2.i
+++ b/gnuradio-core/src/lib/runtime/gr_hier_block2.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2006,2007 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,10 +45,10 @@ private:
gr_hier_block2(const std::string name,
gr_io_signature_sptr input_signature,
gr_io_signature_sptr output_signature);
-
+
public:
~gr_hier_block2 ();
-
+
void connect(gr_basic_block_sptr block)
throw (std::invalid_argument);
void connect(gr_basic_block_sptr src, int src_port,
diff --git a/gnuradio-core/src/lib/runtime/gr_hier_block2_detail.cc b/gnuradio-core/src/lib/runtime/gr_hier_block2_detail.cc
index 1d0c66fb8..76c5ce06f 100644
--- a/gnuradio-core/src/lib/runtime/gr_hier_block2_detail.cc
+++ b/gnuradio-core/src/lib/runtime/gr_hier_block2_detail.cc
@@ -1,18 +1,18 @@
/*
* Copyright 2006,2007,2009 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,
@@ -31,7 +31,7 @@
#define GR_HIER_BLOCK2_DETAIL_DEBUG 0
gr_hier_block2_detail::gr_hier_block2_detail(gr_hier_block2 *owner) :
- d_owner(owner),
+ d_owner(owner),
d_parent_detail(0),
d_fg(gr_make_flowgraph())
{
@@ -83,16 +83,16 @@ gr_hier_block2_detail::connect(gr_basic_block_sptr block)
std::cout << "connect: block is hierarchical, setting parent to " << this << std::endl;
hblock->d_detail->d_parent_detail = this;
}
-
+
d_blocks.push_back(block);
}
-void
-gr_hier_block2_detail::connect(gr_basic_block_sptr src, int src_port,
+void
+gr_hier_block2_detail::connect(gr_basic_block_sptr src, int src_port,
gr_basic_block_sptr dst, int dst_port)
{
std::stringstream msg;
-
+
if (GR_HIER_BLOCK2_DETAIL_DEBUG)
std::cout << "connecting: " << gr_endpoint(src, src_port)
<< " -> " << gr_endpoint(dst, dst_port) << std::endl;
@@ -108,7 +108,7 @@ gr_hier_block2_detail::connect(gr_basic_block_sptr src, int src_port,
std::cout << "connect: src is hierarchical, setting parent to " << this << std::endl;
src_block->d_detail->d_parent_detail = this;
}
-
+
if (dst_block && dst.get() != d_owner) {
if (GR_HIER_BLOCK2_DETAIL_DEBUG)
std::cout << "connect: dst is hierarchical, setting parent to " << this << std::endl;
@@ -150,14 +150,14 @@ gr_hier_block2_detail::disconnect(gr_basic_block_sptr block)
for (gr_basic_block_viter_t p = d_blocks.begin(); p != d_blocks.end(); p++) {
if (*p == block) {
d_blocks.erase(p);
-
+
gr_hier_block2_sptr hblock(cast_to_hier_block2_sptr(block));
if (block && block.get() != d_owner) {
if (GR_HIER_BLOCK2_DETAIL_DEBUG)
std::cout << "disconnect: block is hierarchical, clearing parent" << std::endl;
hblock->d_detail->d_parent_detail = 0;
}
-
+
return;
}
}
@@ -170,7 +170,7 @@ gr_hier_block2_detail::disconnect(gr_basic_block_sptr block)
edges.push_back(*p);
if (GR_HIER_BLOCK2_DETAIL_DEBUG)
- std::cout << "disconnect: block found in edge " << (*p) << std::endl;
+ std::cout << "disconnect: block found in edge " << (*p) << std::endl;
}
}
@@ -186,8 +186,8 @@ gr_hier_block2_detail::disconnect(gr_basic_block_sptr block)
}
}
-void
-gr_hier_block2_detail::disconnect(gr_basic_block_sptr src, int src_port,
+void
+gr_hier_block2_detail::disconnect(gr_basic_block_sptr src, int src_port,
gr_basic_block_sptr dst, int dst_port)
{
if (GR_HIER_BLOCK2_DETAIL_DEBUG)
@@ -205,7 +205,7 @@ gr_hier_block2_detail::disconnect(gr_basic_block_sptr src, int src_port,
std::cout << "disconnect: src is hierarchical, clearing parent" << std::endl;
src_block->d_detail->d_parent_detail = 0;
}
-
+
if (dst_block && dst.get() != d_owner) {
if (GR_HIER_BLOCK2_DETAIL_DEBUG)
std::cout << "disconnect: dst is hierarchical, clearing parent" << std::endl;
@@ -240,7 +240,7 @@ gr_hier_block2_detail::connect_input(int my_port, int port, gr_basic_block_sptr
msg << "external input port " << my_port << " already wired to " << endp;
throw std::invalid_argument(msg.str());
}
-
+
endps.push_back(endp);
}
@@ -281,7 +281,7 @@ gr_hier_block2_detail::disconnect_input(int my_port, int port, gr_basic_block_sp
msg << "external input port " << my_port << " not connected to " << endp;
throw std::invalid_argument(msg.str());
}
-
+
endps.erase(p);
}
@@ -296,7 +296,7 @@ gr_hier_block2_detail::disconnect_output(int my_port, int port, gr_basic_block_s
}
if (d_outputs[my_port].block() != block) {
- msg << "block " << block << " not assigned to output "
+ msg << "block " << block << " not assigned to output "
<< my_port << ", can't disconnect";
throw std::invalid_argument(msg.str());
}
@@ -390,7 +390,7 @@ gr_hier_block2_detail::resolve_endpoint(const gr_endpoint &endp, bool is_input)
gr_hier_block2_sptr hier_block2(cast_to_hier_block2_sptr(endp.block()));
if (hier_block2) {
if (GR_HIER_BLOCK2_DETAIL_DEBUG)
- std::cout << "Resolving endpoint " << endp << " as an "
+ std::cout << "Resolving endpoint " << endp << " as an "
<< (is_input ? "input" : "output")
<< ", recursing" << std::endl;
return hier_block2->d_detail->resolve_port(endp.port(), is_input);
@@ -428,7 +428,7 @@ gr_hier_block2_detail::flatten_aux(gr_flat_flowgraph_sptr sfg) const
}
}
- // Construct unique list of blocks used either in edges, inputs,
+ // Construct unique list of blocks used either in edges, inputs,
// outputs, or by themselves. I still hate STL.
gr_basic_block_vector_t blocks; // unique list of used blocks
gr_basic_block_vector_t tmp = d_fg->calc_used_blocks();
@@ -446,7 +446,7 @@ gr_hier_block2_detail::flatten_aux(gr_flat_flowgraph_sptr sfg) const
<< " is not connected internally";
throw std::runtime_error(msg.str());
}
-
+
for (unsigned int j = 0; j < d_inputs[i].size(); j++)
tmp.push_back(d_inputs[i][j].block());
}
diff --git a/gnuradio-core/src/lib/runtime/gr_hier_block2_detail.h b/gnuradio-core/src/lib/runtime/gr_hier_block2_detail.h
index 5a77d6a03..f4f950e9d 100644
--- a/gnuradio-core/src/lib/runtime/gr_hier_block2_detail.h
+++ b/gnuradio-core/src/lib/runtime/gr_hier_block2_detail.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2007,2009 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,
@@ -37,10 +37,10 @@ public:
~gr_hier_block2_detail();
void connect(gr_basic_block_sptr block);
- void connect(gr_basic_block_sptr src, int src_port,
+ void connect(gr_basic_block_sptr src, int src_port,
gr_basic_block_sptr dst, int dst_port);
void disconnect(gr_basic_block_sptr block);
- void disconnect(gr_basic_block_sptr, int src_port,
+ void disconnect(gr_basic_block_sptr, int src_port,
gr_basic_block_sptr, int dst_port);
void disconnect_all();
void lock();
@@ -48,7 +48,7 @@ public:
void flatten_aux(gr_flat_flowgraph_sptr sfg) const;
private:
-
+
// Private implementation data
gr_hier_block2 *d_owner;
gr_hier_block2_detail *d_parent_detail;
@@ -56,7 +56,7 @@ private:
std::vector<gr_endpoint_vector_t> d_inputs; // Multiple internal endpoints per external input
gr_endpoint_vector_t d_outputs; // Single internal endpoint per external output
gr_basic_block_vector_t d_blocks;
-
+
void connect_input(int my_port, int port, gr_basic_block_sptr block);
void connect_output(int my_port, int port, gr_basic_block_sptr block);
void disconnect_input(int my_port, int port, gr_basic_block_sptr block);
diff --git a/gnuradio-core/src/lib/runtime/gr_io_signature.cc b/gnuradio-core/src/lib/runtime/gr_io_signature.cc
index 1c1b06f02..6ac9acd17 100644
--- a/gnuradio-core/src/lib/runtime/gr_io_signature.cc
+++ b/gnuradio-core/src/lib/runtime/gr_io_signature.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2007 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,
@@ -56,7 +56,7 @@ gr_make_io_signature2(int min_streams, int max_streams,
}
gr_io_signature_sptr
-gr_make_io_signature3(int min_streams, int max_streams,
+gr_make_io_signature3(int min_streams, int max_streams,
int sizeof_stream_item1,
int sizeof_stream_item2,
int sizeof_stream_item3)
@@ -85,7 +85,7 @@ gr_io_signature::gr_io_signature (int min_streams, int max_streams,
if (max_streams != 0 && sizeof_stream_items[i] < 1)
throw std::invalid_argument("gr_io_signature(3)");
}
-
+
d_min_streams = min_streams;
d_max_streams = max_streams;
d_sizeof_stream_item = sizeof_stream_items;
@@ -95,12 +95,12 @@ gr_io_signature::~gr_io_signature ()
{
}
-int
+int
gr_io_signature::sizeof_stream_item (int _index) const
{
if (_index < 0)
throw std::invalid_argument ("gr_io_signature::sizeof_stream_item");
-
+
size_t index = _index;
return d_sizeof_stream_item[std::min(index, d_sizeof_stream_item.size() - 1)];
}
diff --git a/gnuradio-core/src/lib/runtime/gr_io_signature.h b/gnuradio-core/src/lib/runtime/gr_io_signature.h
index 11c6b7f13..fd1825797 100644
--- a/gnuradio-core/src/lib/runtime/gr_io_signature.h
+++ b/gnuradio-core/src/lib/runtime/gr_io_signature.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2007 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,
@@ -62,7 +62,7 @@ gr_make_io_signature2(int min_streams, int max_streams,
* \param sizeof_stream_item3 specify the size of the items in the third and subsequent streams
*/
GR_CORE_API gr_io_signature_sptr
-gr_make_io_signature3(int min_streams, int max_streams,
+gr_make_io_signature3(int min_streams, int max_streams,
int sizeof_stream_item1,
int sizeof_stream_item2,
int sizeof_stream_item3
@@ -96,7 +96,7 @@ class GR_CORE_API gr_io_signature {
gr_io_signature(int min_streams, int max_streams,
const std::vector<int> &sizeof_stream_items);
- friend GR_CORE_API gr_io_signature_sptr
+ friend GR_CORE_API gr_io_signature_sptr
gr_make_io_signaturev(int min_streams,
int max_streams,
const std::vector<int> &sizeof_stream_items);
@@ -104,9 +104,9 @@ class GR_CORE_API gr_io_signature {
public:
static const int IO_INFINITE = -1;
-
+
~gr_io_signature ();
-
+
int min_streams () const { return d_min_streams; }
int max_streams () const { return d_max_streams; }
int sizeof_stream_item (int index) const;
diff --git a/gnuradio-core/src/lib/runtime/gr_io_signature.i b/gnuradio-core/src/lib/runtime/gr_io_signature.i
index 78465b19e..fe1707e41 100644
--- a/gnuradio-core/src/lib/runtime/gr_io_signature.i
+++ b/gnuradio-core/src/lib/runtime/gr_io_signature.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2005,2007 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,
@@ -40,7 +40,7 @@ gr_make_io_signature2(int min_streams, int max_streams,
int sizeof_stream_item2
);
gr_io_signature_sptr
-gr_make_io_signature3(int min_streams, int max_streams,
+gr_make_io_signature3(int min_streams, int max_streams,
int sizeof_stream_item1,
int sizeof_stream_item2,
int sizeof_stream_item3
@@ -53,7 +53,7 @@ gr_make_io_signaturev(int min_streams, int max_streams,
class gr_io_signature {
gr_io_signature (int min_streams, int max_streams, int sizeof_stream_item);
- friend gr_io_signature_sptr
+ friend gr_io_signature_sptr
gr_make_io_signaturev(int min_streams,
int max_streams,
const std::vector<int> &sizeof_stream_item);
@@ -62,9 +62,9 @@ class gr_io_signature {
// disabled. Suspected bug in SWIG 1.3.24
// static const int IO_INFINITE = -1;
-
+
~gr_io_signature ();
-
+
int min_streams () const { return d_min_streams; }
int max_streams () const { return d_max_streams; }
int sizeof_stream_item (int index) const;
diff --git a/gnuradio-core/src/lib/runtime/gr_local_sighandler.cc b/gnuradio-core/src/lib/runtime/gr_local_sighandler.cc
index adad55791..fb31742e1 100644
--- a/gnuradio-core/src/lib/runtime/gr_local_sighandler.cc
+++ b/gnuradio-core/src/lib/runtime/gr_local_sighandler.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -172,7 +172,7 @@ gr_signal::name () const
#endif
default:
#if defined (HAVE_SNPRINTF)
-#if defined (SIGRTMIN) && defined (SIGRTMAX)
+#if defined (SIGRTMIN) && defined (SIGRTMAX)
if (signal () >= SIGRTMIN && signal () <= SIGRTMAX){
snprintf (tmp, sizeof (tmp), "SIGRTMIN + %d", signal ());
return tmp;
diff --git a/gnuradio-core/src/lib/runtime/gr_local_sighandler.h b/gnuradio-core/src/lib/runtime/gr_local_sighandler.h
index 9e4eacc47..a30e2c13a 100644
--- a/gnuradio-core/src/lib/runtime/gr_local_sighandler.h
+++ b/gnuradio-core/src/lib/runtime/gr_local_sighandler.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/runtime/gr_message.cc b/gnuradio-core/src/lib/runtime/gr_message.cc
index 6bef71ed5..a99dcd765 100644
--- a/gnuradio-core/src/lib/runtime/gr_message.cc
+++ b/gnuradio-core/src/lib/runtime/gr_message.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
@@ -67,7 +67,7 @@ gr_message::~gr_message ()
std::string
gr_message::to_string() const
-{
+{
return std::string((char *)d_msg_start, length());
}
diff --git a/gnuradio-core/src/lib/runtime/gr_message.h b/gnuradio-core/src/lib/runtime/gr_message.h
index ead002616..d386ca009 100644
--- a/gnuradio-core/src/lib/runtime/gr_message.h
+++ b/gnuradio-core/src/lib/runtime/gr_message.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
@@ -32,7 +32,7 @@ typedef boost::shared_ptr<gr_message> gr_message_sptr;
/*!
* \brief public constructor for gr_message
*/
-GR_CORE_API gr_message_sptr
+GR_CORE_API gr_message_sptr
gr_make_message(long type = 0, double arg1 = 0, double arg2 = 0, size_t length = 0);
GR_CORE_API gr_message_sptr
@@ -55,7 +55,7 @@ class GR_CORE_API gr_message {
unsigned char *d_msg_start; // where the msg starts
unsigned char *d_msg_end; // one beyond end of msg
unsigned char *d_buf_end; // one beyond end of allocated buffer
-
+
gr_message (long type, double arg1, double arg2, size_t length);
friend GR_CORE_API gr_message_sptr
diff --git a/gnuradio-core/src/lib/runtime/gr_message.i b/gnuradio-core/src/lib/runtime/gr_message.i
index 44636fde6..356bba5b5 100644
--- a/gnuradio-core/src/lib/runtime/gr_message.i
+++ b/gnuradio-core/src/lib/runtime/gr_message.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gnuradio-core/src/lib/runtime/gr_msg_accepter.cc b/gnuradio-core/src/lib/runtime/gr_msg_accepter.cc
index 89876ae29..5018ee9e6 100644
--- a/gnuradio-core/src/lib/runtime/gr_msg_accepter.cc
+++ b/gnuradio-core/src/lib/runtime/gr_msg_accepter.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -45,7 +45,7 @@ gr_msg_accepter::post(pmt_t msg)
{
// Notify derived class, handled case by case
gr_block *p = dynamic_cast<gr_block *>(this);
- if (p) {
+ if (p) {
p->detail()->_post(msg);
return;
}
diff --git a/gnuradio-core/src/lib/runtime/gr_msg_accepter.h b/gnuradio-core/src/lib/runtime/gr_msg_accepter.h
index 4aec127a9..3e5c97638 100644
--- a/gnuradio-core/src/lib/runtime/gr_msg_accepter.h
+++ b/gnuradio-core/src/lib/runtime/gr_msg_accepter.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
diff --git a/gnuradio-core/src/lib/runtime/gr_msg_handler.cc b/gnuradio-core/src/lib/runtime/gr_msg_handler.cc
index a3a85a463..0f9349708 100644
--- a/gnuradio-core/src/lib/runtime/gr_msg_handler.cc
+++ b/gnuradio-core/src/lib/runtime/gr_msg_handler.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gnuradio-core/src/lib/runtime/gr_msg_handler.h b/gnuradio-core/src/lib/runtime/gr_msg_handler.h
index ebe3ffe37..57e8a95d6 100644
--- a/gnuradio-core/src/lib/runtime/gr_msg_handler.h
+++ b/gnuradio-core/src/lib/runtime/gr_msg_handler.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
@@ -35,7 +35,7 @@ typedef boost::shared_ptr<gr_msg_handler> gr_msg_handler_sptr;
class GR_CORE_API gr_msg_handler {
public:
virtual ~gr_msg_handler ();
-
+
//! handle \p msg
virtual void handle (gr_message_sptr msg) = 0;
};
diff --git a/gnuradio-core/src/lib/runtime/gr_msg_handler.i b/gnuradio-core/src/lib/runtime/gr_msg_handler.i
index 17ccd0ec5..f493dac1b 100644
--- a/gnuradio-core/src/lib/runtime/gr_msg_handler.i
+++ b/gnuradio-core/src/lib/runtime/gr_msg_handler.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
@@ -26,7 +26,7 @@
class gr_msg_handler {
public:
virtual ~gr_msg_handler () = 0;
-
+
//! handle \p msg
virtual void handle (gr_message_sptr msg) = 0;
};
diff --git a/gnuradio-core/src/lib/runtime/gr_msg_queue.cc b/gnuradio-core/src/lib/runtime/gr_msg_queue.cc
index 3097acc9e..0cf046771 100644
--- a/gnuradio-core/src/lib/runtime/gr_msg_queue.cc
+++ b/gnuradio-core/src/lib/runtime/gr_msg_queue.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2009 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,
diff --git a/gnuradio-core/src/lib/runtime/gr_msg_queue.h b/gnuradio-core/src/lib/runtime/gr_msg_queue.h
index bf7b89882..86440bbb0 100644
--- a/gnuradio-core/src/lib/runtime/gr_msg_queue.h
+++ b/gnuradio-core/src/lib/runtime/gr_msg_queue.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2009 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,
@@ -71,16 +71,16 @@ public:
* If no message is available, return 0.
*/
gr_message_sptr delete_head_nowait();
-
+
//! Delete all messages from the queue
void flush();
//! is the queue empty?
bool empty_p() const { return d_count == 0; }
-
+
//! is the queue full?
bool full_p() const { return d_limit != 0 && d_count >= d_limit; }
-
+
//! return number of messages in queue
unsigned int count() const { return d_count; }
diff --git a/gnuradio-core/src/lib/runtime/gr_msg_queue.i b/gnuradio-core/src/lib/runtime/gr_msg_queue.i
index 2a78253b3..65cbe782b 100644
--- a/gnuradio-core/src/lib/runtime/gr_msg_queue.i
+++ b/gnuradio-core/src/lib/runtime/gr_msg_queue.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2009,2010,2011 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,
@@ -58,13 +58,13 @@ public:
* If no message is available, return 0.
*/
gr_message_sptr delete_head_nowait();
-
+
//! is the queue empty?
bool empty_p() const;
-
+
//! is the queue full?
bool full_p() const;
-
+
//! return number of messages in queue
unsigned int count() const;
diff --git a/gnuradio-core/src/lib/runtime/gr_pagesize.cc b/gnuradio-core/src/lib/runtime/gr_pagesize.cc
index 09fdf5578..e31e05ca7 100644
--- a/gnuradio-core/src/lib/runtime/gr_pagesize.cc
+++ b/gnuradio-core/src/lib/runtime/gr_pagesize.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2003 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,
diff --git a/gnuradio-core/src/lib/runtime/gr_pagesize.h b/gnuradio-core/src/lib/runtime/gr_pagesize.h
index 60dad42c9..3e2daa925 100644
--- a/gnuradio-core/src/lib/runtime/gr_pagesize.h
+++ b/gnuradio-core/src/lib/runtime/gr_pagesize.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2003 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,
diff --git a/gnuradio-core/src/lib/runtime/gr_preferences.cc b/gnuradio-core/src/lib/runtime/gr_preferences.cc
index c2ca047a8..a0f561660 100644
--- a/gnuradio-core/src/lib/runtime/gr_preferences.cc
+++ b/gnuradio-core/src/lib/runtime/gr_preferences.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2003,2010,2011 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,
@@ -85,7 +85,7 @@ gr_preferences::get (const char *key)
return buf;
}
-void
+void
gr_preferences::set (const char *key, const char *value)
{
ensure_dir_path ();
diff --git a/gnuradio-core/src/lib/runtime/gr_preferences.h b/gnuradio-core/src/lib/runtime/gr_preferences.h
index ab4dc0cb0..bfcc0424b 100644
--- a/gnuradio-core/src/lib/runtime/gr_preferences.h
+++ b/gnuradio-core/src/lib/runtime/gr_preferences.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2003 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,
diff --git a/gnuradio-core/src/lib/runtime/gr_realtime.cc b/gnuradio-core/src/lib/runtime/gr_realtime.cc
index b44c4d408..75b497999 100644
--- a/gnuradio-core/src/lib/runtime/gr_realtime.cc
+++ b/gnuradio-core/src/lib/runtime/gr_realtime.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2007,2008 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,
diff --git a/gnuradio-core/src/lib/runtime/gr_realtime.h b/gnuradio-core/src/lib/runtime/gr_realtime.h
index 58db83086..fe6549039 100644
--- a/gnuradio-core/src/lib/runtime/gr_realtime.h
+++ b/gnuradio-core/src/lib/runtime/gr_realtime.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gnuradio-core/src/lib/runtime/gr_realtime.i b/gnuradio-core/src/lib/runtime/gr_realtime.i
index be7f12bf0..1051d3e2b 100644
--- a/gnuradio-core/src/lib/runtime/gr_realtime.i
+++ b/gnuradio-core/src/lib/runtime/gr_realtime.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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,
diff --git a/gnuradio-core/src/lib/runtime/gr_runtime_types.h b/gnuradio-core/src/lib/runtime/gr_runtime_types.h
index 98f08b417..0d6149288 100644
--- a/gnuradio-core/src/lib/runtime/gr_runtime_types.h
+++ b/gnuradio-core/src/lib/runtime/gr_runtime_types.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2007 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,
diff --git a/gnuradio-core/src/lib/runtime/gr_scheduler.cc b/gnuradio-core/src/lib/runtime/gr_scheduler.cc
index 3ae08a7a3..c691f5d99 100644
--- a/gnuradio-core/src/lib/runtime/gr_scheduler.cc
+++ b/gnuradio-core/src/lib/runtime/gr_scheduler.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
diff --git a/gnuradio-core/src/lib/runtime/gr_scheduler.h b/gnuradio-core/src/lib/runtime/gr_scheduler.h
index 92af8d1cb..6d130327f 100644
--- a/gnuradio-core/src/lib/runtime/gr_scheduler.h
+++ b/gnuradio-core/src/lib/runtime/gr_scheduler.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
diff --git a/gnuradio-core/src/lib/runtime/gr_scheduler_sts.cc b/gnuradio-core/src/lib/runtime/gr_scheduler_sts.cc
index 3cc1d4d45..2c96def6d 100644
--- a/gnuradio-core/src/lib/runtime/gr_scheduler_sts.cc
+++ b/gnuradio-core/src/lib/runtime/gr_scheduler_sts.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -29,7 +29,7 @@
class sts_container
{
gr_block_vector_t d_blocks;
-
+
public:
sts_container(gr_block_vector_t blocks)
diff --git a/gnuradio-core/src/lib/runtime/gr_scheduler_sts.h b/gnuradio-core/src/lib/runtime/gr_scheduler_sts.h
index 08c68d88a..011874ec0 100644
--- a/gnuradio-core/src/lib/runtime/gr_scheduler_sts.h
+++ b/gnuradio-core/src/lib/runtime/gr_scheduler_sts.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
diff --git a/gnuradio-core/src/lib/runtime/gr_scheduler_tpb.cc b/gnuradio-core/src/lib/runtime/gr_scheduler_tpb.cc
index 0a7ff4556..131ddd19c 100644
--- a/gnuradio-core/src/lib/runtime/gr_scheduler_tpb.cc
+++ b/gnuradio-core/src/lib/runtime/gr_scheduler_tpb.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -34,7 +34,7 @@ class tpb_container
{
gr_block_sptr d_block;
int d_max_noutput_items;
-
+
public:
tpb_container(gr_block_sptr block, int max_noutput_items)
: d_block(block), d_max_noutput_items(max_noutput_items) {}
diff --git a/gnuradio-core/src/lib/runtime/gr_scheduler_tpb.h b/gnuradio-core/src/lib/runtime/gr_scheduler_tpb.h
index ab74fa84d..a9b3abcfa 100644
--- a/gnuradio-core/src/lib/runtime/gr_scheduler_tpb.h
+++ b/gnuradio-core/src/lib/runtime/gr_scheduler_tpb.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
diff --git a/gnuradio-core/src/lib/runtime/gr_select_handler.cc b/gnuradio-core/src/lib/runtime/gr_select_handler.cc
index 869e46511..0fc86354a 100644
--- a/gnuradio-core/src/lib/runtime/gr_select_handler.cc
+++ b/gnuradio-core/src/lib/runtime/gr_select_handler.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gnuradio-core/src/lib/runtime/gr_select_handler.h b/gnuradio-core/src/lib/runtime/gr_select_handler.h
index 532707a02..c4c359213 100644
--- a/gnuradio-core/src/lib/runtime/gr_select_handler.h
+++ b/gnuradio-core/src/lib/runtime/gr_select_handler.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
@@ -60,7 +60,7 @@ public:
/*!
* \brief Called when file_descriptor is writable.
*
- * Called when dispatcher detects that file descriptor can be
+ * Called when dispatcher detects that file descriptor can be
* written without blocking.
*/
virtual void handle_write() = 0;
diff --git a/gnuradio-core/src/lib/runtime/gr_single_threaded_scheduler.cc b/gnuradio-core/src/lib/runtime/gr_single_threaded_scheduler.cc
index ae04e4a65..1bb9e9b0a 100644
--- a/gnuradio-core/src/lib/runtime/gr_single_threaded_scheduler.cc
+++ b/gnuradio-core/src/lib/runtime/gr_single_threaded_scheduler.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -81,7 +81,7 @@ gr_single_threaded_scheduler::run ()
void
gr_single_threaded_scheduler::stop ()
-{
+{
if (0)
std::cout << "gr_singled_threaded_scheduler::stop() "
<< this << std::endl;
@@ -206,7 +206,7 @@ gr_single_threaded_scheduler::main_loop ()
//if (ninput_items[i] == 0 && d->input(i)->done())
if (ninput_items[i] < m->output_multiple() && d->input(i)->done())
goto were_done;
-
+
max_items_avail = std::max (max_items_avail, ninput_items[i]);
}
@@ -345,7 +345,7 @@ gr_single_threaded_scheduler::main_loop ()
goto next_block;
}
assert (0);
-
+
were_done:
LOG(*d_log << " were_done\n");
d->set_done (true);
diff --git a/gnuradio-core/src/lib/runtime/gr_single_threaded_scheduler.h b/gnuradio-core/src/lib/runtime/gr_single_threaded_scheduler.h
index 17f4a1c54..3a95c7194 100644
--- a/gnuradio-core/src/lib/runtime/gr_single_threaded_scheduler.h
+++ b/gnuradio-core/src/lib/runtime/gr_single_threaded_scheduler.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -51,7 +51,7 @@ class GR_CORE_API gr_single_threaded_scheduler {
gr_single_threaded_scheduler (const std::vector<gr_block_sptr> &blocks);
void main_loop ();
-
+
friend GR_CORE_API gr_single_threaded_scheduler_sptr
gr_make_single_threaded_scheduler (const std::vector<gr_block_sptr> &blocks);
};
diff --git a/gnuradio-core/src/lib/runtime/gr_single_threaded_scheduler.i b/gnuradio-core/src/lib/runtime/gr_single_threaded_scheduler.i
index 2378a1880..7305cc9ad 100644
--- a/gnuradio-core/src/lib/runtime/gr_single_threaded_scheduler.i
+++ b/gnuradio-core/src/lib/runtime/gr_single_threaded_scheduler.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -28,7 +28,7 @@ typedef boost::shared_ptr<gr_single_threaded_scheduler> gr_single_threaded_sched
%rename(single_threaded_scheduler) gr_make_single_threaded_scheduler;
%ignore gr_single_threaded_scheduler;
-gr_single_threaded_scheduler_sptr
+gr_single_threaded_scheduler_sptr
gr_make_single_threaded_scheduler (const std::vector<gr_block_sptr> &modules);
class gr_single_threaded_scheduler {
diff --git a/gnuradio-core/src/lib/runtime/gr_sptr_magic.cc b/gnuradio-core/src/lib/runtime/gr_sptr_magic.cc
index b0351248c..7fdadf24a 100644
--- a/gnuradio-core/src/lib/runtime/gr_sptr_magic.cc
+++ b/gnuradio-core/src/lib/runtime/gr_sptr_magic.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2009 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -44,7 +44,7 @@ namespace gnuradio {
}
- gr_basic_block_sptr
+ gr_basic_block_sptr
detail::sptr_magic::fetch_initial_sptr(gr_basic_block *p)
{
/*
diff --git a/gnuradio-core/src/lib/runtime/gr_sptr_magic.h b/gnuradio-core/src/lib/runtime/gr_sptr_magic.h
index 4b7f9899d..3d997539c 100644
--- a/gnuradio-core/src/lib/runtime/gr_sptr_magic.h
+++ b/gnuradio-core/src/lib/runtime/gr_sptr_magic.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -30,7 +30,7 @@ class gr_hier_block2;
namespace gnuradio {
namespace detail {
-
+
class GR_CORE_API sptr_magic {
public:
static boost::shared_ptr<gr_basic_block> fetch_initial_sptr(gr_basic_block *p);
@@ -38,7 +38,7 @@ namespace gnuradio {
};
};
- /*
+ /*
* \brief New! Improved! Standard method to get/create the boost::shared_ptr for a block.
*/
template<class T>
diff --git a/gnuradio-core/src/lib/runtime/gr_sync_block.cc b/gnuradio-core/src/lib/runtime/gr_sync_block.cc
index 1427570ae..94efcdc8e 100644
--- a/gnuradio-core/src/lib/runtime/gr_sync_block.cc
+++ b/gnuradio-core/src/lib/runtime/gr_sync_block.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/runtime/gr_sync_block.h b/gnuradio-core/src/lib/runtime/gr_sync_block.h
index 808c1c18a..1e4109b03 100644
--- a/gnuradio-core/src/lib/runtime/gr_sync_block.h
+++ b/gnuradio-core/src/lib/runtime/gr_sync_block.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -50,7 +50,7 @@ class GR_CORE_API gr_sync_block : public gr_block
virtual int work (int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items) = 0;
-
+
// gr_sync_block overrides these to assist work
void forecast (int noutput_items, gr_vector_int &ninput_items_required);
@@ -62,5 +62,5 @@ class GR_CORE_API gr_sync_block : public gr_block
int fixed_rate_ninput_to_noutput(int ninput);
int fixed_rate_noutput_to_ninput(int noutput);
};
-
+
#endif /* INCLUDED_GR_SYNC_BLOCK_H */
diff --git a/gnuradio-core/src/lib/runtime/gr_sync_block.i b/gnuradio-core/src/lib/runtime/gr_sync_block.i
index 8e140bb88..d3e1bb957 100644
--- a/gnuradio-core/src/lib/runtime/gr_sync_block.i
+++ b/gnuradio-core/src/lib/runtime/gr_sync_block.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/runtime/gr_sync_decimator.cc b/gnuradio-core/src/lib/runtime/gr_sync_decimator.cc
index 1add2fadd..a0f907db5 100644
--- a/gnuradio-core/src/lib/runtime/gr_sync_decimator.cc
+++ b/gnuradio-core/src/lib/runtime/gr_sync_decimator.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/runtime/gr_sync_decimator.h b/gnuradio-core/src/lib/runtime/gr_sync_decimator.h
index 7228d3655..657aba985 100644
--- a/gnuradio-core/src/lib/runtime/gr_sync_decimator.h
+++ b/gnuradio-core/src/lib/runtime/gr_sync_decimator.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/runtime/gr_sync_decimator.i b/gnuradio-core/src/lib/runtime/gr_sync_decimator.i
index 821b2648e..af4574b19 100644
--- a/gnuradio-core/src/lib/runtime/gr_sync_decimator.i
+++ b/gnuradio-core/src/lib/runtime/gr_sync_decimator.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/runtime/gr_sync_interpolator.cc b/gnuradio-core/src/lib/runtime/gr_sync_interpolator.cc
index d130a5be1..ece873c14 100644
--- a/gnuradio-core/src/lib/runtime/gr_sync_interpolator.cc
+++ b/gnuradio-core/src/lib/runtime/gr_sync_interpolator.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2008 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,
diff --git a/gnuradio-core/src/lib/runtime/gr_sync_interpolator.h b/gnuradio-core/src/lib/runtime/gr_sync_interpolator.h
index c332a5272..86d2fde43 100644
--- a/gnuradio-core/src/lib/runtime/gr_sync_interpolator.h
+++ b/gnuradio-core/src/lib/runtime/gr_sync_interpolator.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2008 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,
diff --git a/gnuradio-core/src/lib/runtime/gr_sync_interpolator.i b/gnuradio-core/src/lib/runtime/gr_sync_interpolator.i
index 4443ed0aa..6f8b08252 100644
--- a/gnuradio-core/src/lib/runtime/gr_sync_interpolator.i
+++ b/gnuradio-core/src/lib/runtime/gr_sync_interpolator.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/runtime/gr_sys_paths.cc b/gnuradio-core/src/lib/runtime/gr_sys_paths.cc
index 9d10a3ccd..b4918af33 100644
--- a/gnuradio-core/src/lib/runtime/gr_sys_paths.cc
+++ b/gnuradio-core/src/lib/runtime/gr_sys_paths.cc
@@ -1,18 +1,18 @@
/*
* Copyright 2011 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,
diff --git a/gnuradio-core/src/lib/runtime/gr_sys_paths.h b/gnuradio-core/src/lib/runtime/gr_sys_paths.h
index 1f1759c36..bd51ebdf9 100644
--- a/gnuradio-core/src/lib/runtime/gr_sys_paths.h
+++ b/gnuradio-core/src/lib/runtime/gr_sys_paths.h
@@ -1,18 +1,18 @@
/*
* Copyright 2011 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,
diff --git a/gnuradio-core/src/lib/runtime/gr_tags.h b/gnuradio-core/src/lib/runtime/gr_tags.h
index 5fff6f15b..8bffcd0fe 100644
--- a/gnuradio-core/src/lib/runtime/gr_tags.h
+++ b/gnuradio-core/src/lib/runtime/gr_tags.h
@@ -1,18 +1,18 @@
/*
* Copyright 2011 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,
diff --git a/gnuradio-core/src/lib/runtime/gr_timer.h b/gnuradio-core/src/lib/runtime/gr_timer.h
index fa3c06ece..e0b4cc437 100644
--- a/gnuradio-core/src/lib/runtime/gr_timer.h
+++ b/gnuradio-core/src/lib/runtime/gr_timer.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
@@ -57,7 +57,7 @@ public:
//! return absolute current time (seconds since the epoc).
static double now ();
-
+
/*!
* \brief schedule timer to fire at abs_when
* \param abs_when absolute time in seconds since the epoc.
diff --git a/gnuradio-core/src/lib/runtime/gr_top_block.cc b/gnuradio-core/src/lib/runtime/gr_top_block.cc
index 56d1352cd..e47473edd 100644
--- a/gnuradio-core/src/lib/runtime/gr_top_block.cc
+++ b/gnuradio-core/src/lib/runtime/gr_top_block.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007 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,
@@ -30,48 +30,48 @@
#include <gr_io_signature.h>
#include <iostream>
-gr_top_block_sptr
+gr_top_block_sptr
gr_make_top_block(const std::string &name)
{
return gnuradio::get_initial_sptr(new gr_top_block(name));
}
gr_top_block::gr_top_block(const std::string &name)
- : gr_hier_block2(name,
- gr_make_io_signature(0,0,0),
+ : gr_hier_block2(name,
+ gr_make_io_signature(0,0,0),
gr_make_io_signature(0,0,0))
-
+
{
d_impl = new gr_top_block_impl(this);
}
-
+
gr_top_block::~gr_top_block()
{
stop();
wait();
-
+
delete d_impl;
}
-void
+void
gr_top_block::start(int max_noutput_items)
{
d_impl->start(max_noutput_items);
}
-void
+void
gr_top_block::stop()
{
d_impl->stop();
}
-void
+void
gr_top_block::wait()
{
d_impl->wait();
}
-void
+void
gr_top_block::run(int max_noutput_items)
{
start(max_noutput_items);
diff --git a/gnuradio-core/src/lib/runtime/gr_top_block.h b/gnuradio-core/src/lib/runtime/gr_top_block.h
index e837700c3..04d1e95e5 100644
--- a/gnuradio-core/src/lib/runtime/gr_top_block.h
+++ b/gnuradio-core/src/lib/runtime/gr_top_block.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007,2008,2009 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,
@@ -44,7 +44,7 @@ private:
protected:
gr_top_block(const std::string &name);
-
+
public:
~gr_top_block();
@@ -72,7 +72,7 @@ public:
* this to adjust the maximum latency a flowgraph can exhibit.
*/
void start(int max_noutput_items=100000);
-
+
/*!
* Stop the running flowgraph. Notifies each thread created by the
* scheduler to shutdown, then returns to caller. Calling stop() on
@@ -118,7 +118,7 @@ public:
//! Get the number of max noutput_items in the flowgraph
int max_noutput_items();
-
+
//! Set the maximum number of noutput_items in the flowgraph
void set_max_noutput_items(int nmax);
diff --git a/gnuradio-core/src/lib/runtime/gr_top_block.i b/gnuradio-core/src/lib/runtime/gr_top_block.i
index ea5534c17..80a1b82ae 100644
--- a/gnuradio-core/src/lib/runtime/gr_top_block.i
+++ b/gnuradio-core/src/lib/runtime/gr_top_block.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007,2008,2010 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,
@@ -29,14 +29,14 @@ typedef boost::shared_ptr<gr_top_block> gr_top_block_sptr;
// Hack to have a Python shim implementation of gr.top_block
// that instantiates one of these and passes through calls
%rename(top_block_swig) gr_make_top_block;
-gr_top_block_sptr gr_make_top_block(const std::string name)
+gr_top_block_sptr gr_make_top_block(const std::string name)
throw (std::logic_error);
class gr_top_block : public gr_hier_block2
{
private:
gr_top_block(const std::string &name);
-
+
public:
~gr_top_block();
@@ -57,14 +57,14 @@ public:
#ifdef SWIGPYTHON
%inline %{
-void top_block_run_unlocked(gr_top_block_sptr r) throw (std::runtime_error)
+void top_block_run_unlocked(gr_top_block_sptr r) throw (std::runtime_error)
{
Py_BEGIN_ALLOW_THREADS; // release global interpreter lock
r->run();
Py_END_ALLOW_THREADS; // acquire global interpreter lock
}
-void top_block_wait_unlocked(gr_top_block_sptr r) throw (std::runtime_error)
+void top_block_wait_unlocked(gr_top_block_sptr r) throw (std::runtime_error)
{
Py_BEGIN_ALLOW_THREADS; // release global interpreter lock
r->wait();
diff --git a/gnuradio-core/src/lib/runtime/gr_top_block_impl.cc b/gnuradio-core/src/lib/runtime/gr_top_block_impl.cc
index 0227d789c..4a3694163 100644
--- a/gnuradio-core/src/lib/runtime/gr_top_block_impl.cc
+++ b/gnuradio-core/src/lib/runtime/gr_top_block_impl.cc
@@ -77,7 +77,7 @@ make_scheduler(gr_flat_flowgraph_sptr ffg, int max_noutput_items)
}
-gr_top_block_impl::gr_top_block_impl(gr_top_block *owner)
+gr_top_block_impl::gr_top_block_impl(gr_top_block *owner)
: d_owner(owner), d_ffg(),
d_state(IDLE), d_lock_count(0)
{
@@ -112,7 +112,7 @@ gr_top_block_impl::start(int max_noutput_items)
d_state = RUNNING;
}
-void
+void
gr_top_block_impl::stop()
{
if (d_scheduler)
@@ -165,7 +165,7 @@ gr_top_block_impl::restart()
wait();
// Create new simple flow graph
- gr_flat_flowgraph_sptr new_ffg = d_owner->flatten();
+ gr_flat_flowgraph_sptr new_ffg = d_owner->flatten();
new_ffg->validate(); // check consistency, sanity, etc
new_ffg->merge_connections(d_ffg); // reuse buffers, etc
d_ffg = new_ffg;
@@ -187,7 +187,7 @@ gr_top_block_impl::max_noutput_items()
{
return d_max_noutput_items;
}
-
+
void
gr_top_block_impl::set_max_noutput_items(int nmax)
{
diff --git a/gnuradio-core/src/lib/runtime/gr_top_block_impl.h b/gnuradio-core/src/lib/runtime/gr_top_block_impl.h
index d804e3f30..f55c3f021 100644
--- a/gnuradio-core/src/lib/runtime/gr_top_block_impl.h
+++ b/gnuradio-core/src/lib/runtime/gr_top_block_impl.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007,2008 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,
@@ -61,12 +61,12 @@ public:
// Get the number of max noutput_items in the flowgraph
int max_noutput_items();
-
+
// Set the maximum number of noutput_items in the flowgraph
void set_max_noutput_items(int nmax);
-
+
protected:
-
+
enum tb_state { IDLE, RUNNING };
gr_top_block *d_owner;
@@ -77,7 +77,7 @@ protected:
tb_state d_state;
int d_lock_count;
int d_max_noutput_items;
-
+
private:
void restart();
};
diff --git a/gnuradio-core/src/lib/runtime/gr_tpb_detail.cc b/gnuradio-core/src/lib/runtime/gr_tpb_detail.cc
index c6311ccaa..46b33d91f 100644
--- a/gnuradio-core/src/lib/runtime/gr_tpb_detail.cc
+++ b/gnuradio-core/src/lib/runtime/gr_tpb_detail.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2009 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -80,7 +80,7 @@ gr_tpb_detail::insert_tail(pmt::pmt_t msg)
output_cond.notify_one();
}
-pmt_t
+pmt_t
gr_tpb_detail::delete_head_nowait()
{
gruel::scoped_lock guard(mutex);
@@ -97,7 +97,7 @@ gr_tpb_detail::delete_head_nowait()
/*
* Caller must already be holding the mutex
*/
-pmt_t
+pmt_t
gr_tpb_detail::delete_head_nowait_already_holding_mutex()
{
if (empty_p())
diff --git a/gnuradio-core/src/lib/runtime/gr_tpb_detail.h b/gnuradio-core/src/lib/runtime/gr_tpb_detail.h
index 90908c2f5..b6e342dee 100644
--- a/gnuradio-core/src/lib/runtime/gr_tpb_detail.h
+++ b/gnuradio-core/src/lib/runtime/gr_tpb_detail.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2009 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -62,11 +62,11 @@ public:
input_changed = false;
output_changed = false;
}
-
+
//! is the queue empty?
bool empty_p() const { return msg_queue.empty(); }
- //| Acquires and release the mutex
+ //| Acquires and release the mutex
void insert_tail(pmt::pmt_t msg);
/*!
diff --git a/gnuradio-core/src/lib/runtime/gr_tpb_thread_body.cc b/gnuradio-core/src/lib/runtime/gr_tpb_thread_body.cc
index d44c09aa6..a5aabb379 100644
--- a/gnuradio-core/src/lib/runtime/gr_tpb_thread_body.cc
+++ b/gnuradio-core/src/lib/runtime/gr_tpb_thread_body.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2009,2011 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -40,7 +40,7 @@ gr_tpb_thread_body::gr_tpb_thread_body(gr_block_sptr block, int max_noutput_item
while (1){
boost::this_thread::interruption_point();
-
+
// handle any queued up messages
while ((msg = d->d_tpb.delete_head_nowait()))
block->dispatch_msg(msg);
@@ -65,7 +65,7 @@ gr_tpb_thread_body::gr_tpb_thread_body(gr_block_sptr block, int max_noutput_item
{
gruel::scoped_lock guard(d->d_tpb.mutex);
while (!d->d_tpb.input_changed){
-
+
// wait for input or message
while(!d->d_tpb.input_changed && d->d_tpb.empty_p())
d->d_tpb.input_cond.wait(guard);
@@ -80,12 +80,12 @@ gr_tpb_thread_body::gr_tpb_thread_body(gr_block_sptr block, int max_noutput_item
}
break;
-
+
case gr_block_executor::BLKD_OUT: // Wait for output buffer space.
{
gruel::scoped_lock guard(d->d_tpb.mutex);
while (!d->d_tpb.output_changed){
-
+
// wait for output room or message
while(!d->d_tpb.output_changed && d->d_tpb.empty_p())
d->d_tpb.output_cond.wait(guard);
diff --git a/gnuradio-core/src/lib/runtime/gr_tpb_thread_body.h b/gnuradio-core/src/lib/runtime/gr_tpb_thread_body.h
index 3170b402e..f920663a2 100644
--- a/gnuradio-core/src/lib/runtime/gr_tpb_thread_body.h
+++ b/gnuradio-core/src/lib/runtime/gr_tpb_thread_body.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
diff --git a/gnuradio-core/src/lib/runtime/gr_types.h b/gnuradio-core/src/lib/runtime/gr_types.h
index fd5ca7758..ad6cee768 100644
--- a/gnuradio-core/src/lib/runtime/gr_types.h
+++ b/gnuradio-core/src/lib/runtime/gr_types.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -37,7 +37,7 @@ typedef std::vector<void *> gr_vector_void_star;
typedef std::vector<const void *> gr_vector_const_void_star;
/*
- * #include <config.h> must be placed beforehand
+ * #include <config.h> must be placed beforehand
* in the source file including gr_types.h for
* the following to work correctly
*/
diff --git a/gnuradio-core/src/lib/runtime/gr_unittests.h b/gnuradio-core/src/lib/runtime/gr_unittests.h
index 7161b31e7..9fbf228cd 100644
--- a/gnuradio-core/src/lib/runtime/gr_unittests.h
+++ b/gnuradio-core/src/lib/runtime/gr_unittests.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010,2011 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,
diff --git a/gnuradio-core/src/lib/runtime/gr_vmcircbuf.cc b/gnuradio-core/src/lib/runtime/gr_vmcircbuf.cc
index 7138605c9..522d9515d 100644
--- a/gnuradio-core/src/lib/runtime/gr_vmcircbuf.cc
+++ b/gnuradio-core/src/lib/runtime/gr_vmcircbuf.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2003 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,
@@ -135,7 +135,7 @@ static bool
check_mapping (gr_vmcircbuf *c, int counter, int size, const char *msg, bool verbose)
{
bool ok = true;
-
+
if (verbose)
fprintf (stderr, "... %s", msg);
@@ -246,7 +246,7 @@ gr_vmcircbuf_sysconfig::test_factory (gr_vmcircbuf_factory *f, int verbose)
{
// Install local signal handlers for SIGSEGV and SIGBUS.
// If something goes wrong, these signals may be invoked.
-
+
#ifdef SIGSEGV
gr_local_sighandler sigsegv (SIGSEGV, gr_local_sighandler::throw_signal);
#endif
@@ -285,7 +285,7 @@ bool
gr_vmcircbuf_sysconfig::test_all_factories (int verbose)
{
bool ok = false;
-
+
std::vector<gr_vmcircbuf_factory *> all = all_factories ();
for (unsigned int i = 0; i < all.size (); i++)
diff --git a/gnuradio-core/src/lib/runtime/gr_vmcircbuf.h b/gnuradio-core/src/lib/runtime/gr_vmcircbuf.h
index 0e67d405b..45c6f969c 100644
--- a/gnuradio-core/src/lib/runtime/gr_vmcircbuf.h
+++ b/gnuradio-core/src/lib/runtime/gr_vmcircbuf.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2003 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,
@@ -88,10 +88,10 @@ class GR_CORE_API gr_vmcircbuf_sysconfig {
*/
static gr_vmcircbuf_factory *get_default_factory ();
-
+
static int granularity () { return get_default_factory()->granularity(); }
static gr_vmcircbuf *make (int size) { return get_default_factory()->make(size); }
-
+
// N.B. not all factories are guaranteed to work.
// It's too hard to check everything at config time, so we check at runtime
diff --git a/gnuradio-core/src/lib/runtime/gr_vmcircbuf_mmap_shm_open.cc b/gnuradio-core/src/lib/runtime/gr_vmcircbuf_mmap_shm_open.cc
index 4f7ae39cd..3d170081d 100644
--- a/gnuradio-core/src/lib/runtime/gr_vmcircbuf_mmap_shm_open.cc
+++ b/gnuradio-core/src/lib/runtime/gr_vmcircbuf_mmap_shm_open.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2003,2011 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,
@@ -57,7 +57,7 @@ gr_vmcircbuf_mmap_shm_open::gr_vmcircbuf_mmap_shm_open (int size)
int shm_fd = -1;
char seg_name[1024];
static bool portable_format = true;
-
+
// open a new named shared memory segment
while (1){
@@ -65,7 +65,7 @@ gr_vmcircbuf_mmap_shm_open::gr_vmcircbuf_mmap_shm_open (int size)
// This is the POSIX recommended "portable format".
// Of course the "portable format" doesn't work on some systems...
-
+
snprintf (seg_name, sizeof (seg_name),
"/gnuradio-%d-%d", getpid (), s_seg_counter);
}
@@ -73,7 +73,7 @@ gr_vmcircbuf_mmap_shm_open::gr_vmcircbuf_mmap_shm_open (int size)
// Where the "portable format" doesn't work, we try building
// a full filesystem pathname pointing into a suitable temporary directory.
-
+
snprintf (seg_name, sizeof (seg_name),
"%s/gnuradio-%d-%d", gr_tmp_path (), getpid (), s_seg_counter);
}
@@ -149,7 +149,7 @@ gr_vmcircbuf_mmap_shm_open::gr_vmcircbuf_mmap_shm_open (int size)
close (shm_fd); // fd no longer needed. The mapping is retained.
- if (shm_unlink (seg_name) == -1){ // unlink the seg_name.
+ if (shm_unlink (seg_name) == -1){ // unlink the seg_name.
perror ("gr_vmcircbuf_mmap_shm_open: shm_unlink");
throw std::runtime_error ("gr_vmcircbuf_mmap_shm_open");
}
@@ -163,7 +163,7 @@ gr_vmcircbuf_mmap_shm_open::gr_vmcircbuf_mmap_shm_open (int size)
gr_vmcircbuf_mmap_shm_open::~gr_vmcircbuf_mmap_shm_open ()
{
-#if defined(HAVE_MMAP)
+#if defined(HAVE_MMAP)
if (munmap (d_base, 2 * d_size) == -1){
perror ("gr_vmcircbuf_mmap_shm_open: munmap (2)");
}
diff --git a/gnuradio-core/src/lib/runtime/gr_vmcircbuf_mmap_shm_open.h b/gnuradio-core/src/lib/runtime/gr_vmcircbuf_mmap_shm_open.h
index 002f5b434..bcbbbac42 100644
--- a/gnuradio-core/src/lib/runtime/gr_vmcircbuf_mmap_shm_open.h
+++ b/gnuradio-core/src/lib/runtime/gr_vmcircbuf_mmap_shm_open.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2003 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,
diff --git a/gnuradio-core/src/lib/runtime/gr_vmcircbuf_mmap_tmpfile.cc b/gnuradio-core/src/lib/runtime/gr_vmcircbuf_mmap_tmpfile.cc
index ee8b0c485..35de64699 100644
--- a/gnuradio-core/src/lib/runtime/gr_vmcircbuf_mmap_tmpfile.cc
+++ b/gnuradio-core/src/lib/runtime/gr_vmcircbuf_mmap_tmpfile.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2003,2011 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,
@@ -56,7 +56,7 @@ gr_vmcircbuf_mmap_tmpfile::gr_vmcircbuf_mmap_tmpfile (int size)
int seg_fd = -1;
char seg_name[1024];
-
+
static int s_seg_counter = 0;
@@ -121,7 +121,7 @@ gr_vmcircbuf_mmap_tmpfile::gr_vmcircbuf_mmap_tmpfile (int size)
if (second_copy == MAP_FAILED){
munmap(first_copy, size); // cleanup
- close (seg_fd);
+ close (seg_fd);
perror ("gr_vmcircbuf_mmap_tmpfile: mmap (2)");
throw std::runtime_error ("gr_vmcircbuf_mmap_tmpfile");
}
@@ -130,7 +130,7 @@ gr_vmcircbuf_mmap_tmpfile::gr_vmcircbuf_mmap_tmpfile (int size)
if ((char *) second_copy != (char *) first_copy + size){
munmap(first_copy, size); // cleanup
munmap(second_copy, size);
- close (seg_fd);
+ close (seg_fd);
perror ("gr_vmcircbuf_mmap_tmpfile: non-contiguous second copy");
throw std::runtime_error ("gr_vmcircbuf_mmap_tmpfile");
}
diff --git a/gnuradio-core/src/lib/runtime/gr_vmcircbuf_mmap_tmpfile.h b/gnuradio-core/src/lib/runtime/gr_vmcircbuf_mmap_tmpfile.h
index a2ed6b87b..28ff31490 100644
--- a/gnuradio-core/src/lib/runtime/gr_vmcircbuf_mmap_tmpfile.h
+++ b/gnuradio-core/src/lib/runtime/gr_vmcircbuf_mmap_tmpfile.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2003 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,
diff --git a/gnuradio-core/src/lib/runtime/gr_vmcircbuf_sysv_shm.cc b/gnuradio-core/src/lib/runtime/gr_vmcircbuf_sysv_shm.cc
index 88869dc75..d9cf75e70 100644
--- a/gnuradio-core/src/lib/runtime/gr_vmcircbuf_sysv_shm.cc
+++ b/gnuradio-core/src/lib/runtime/gr_vmcircbuf_sysv_shm.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2003 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,
@@ -97,7 +97,7 @@ gr_vmcircbuf_sysv_shm::gr_vmcircbuf_sysv_shm (int size)
// some other segment to first_copy or first_copoy + size between
// our detach and attach, the attaches below could fail [I've never
// seen it fail for this reason].
-
+
shmdt (first_copy);
// first read-only guard page
diff --git a/gnuradio-core/src/lib/runtime/gr_vmcircbuf_sysv_shm.h b/gnuradio-core/src/lib/runtime/gr_vmcircbuf_sysv_shm.h
index c7a008581..9f5c04f0d 100644
--- a/gnuradio-core/src/lib/runtime/gr_vmcircbuf_sysv_shm.h
+++ b/gnuradio-core/src/lib/runtime/gr_vmcircbuf_sysv_shm.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2003 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,
diff --git a/gnuradio-core/src/lib/runtime/qa_block_tags.cc b/gnuradio-core/src/lib/runtime/qa_block_tags.cc
index ab5840c6d..4fa0a0323 100644
--- a/gnuradio-core/src/lib/runtime/qa_block_tags.cc
+++ b/gnuradio-core/src/lib/runtime/qa_block_tags.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010 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,
@@ -57,7 +57,7 @@ qa_block_tags::t0 ()
gr_block_sptr src (gr_make_null_source(sizeof(int)));
gr_block_sptr head (gr_make_head(sizeof(int), N));
gr_block_sptr snk (gr_make_null_sink(sizeof(int)));
-
+
tb->connect(src, 0, head, 0);
tb->connect(head, 0, snk, 0);
@@ -89,7 +89,7 @@ qa_block_tags::t1 ()
gr_annotator_alltoall_sptr ann4 (gr_make_annotator_alltoall(10000, sizeof(int)));
gr_block_sptr snk0 (gr_make_null_sink(sizeof(int)));
gr_block_sptr snk1 (gr_make_null_sink(sizeof(int)));
-
+
tb->connect(src, 0, head, 0);
tb->connect(head, 0, ann0, 0);
@@ -140,7 +140,7 @@ qa_block_tags::t1 ()
expected_tags4[7] = mp(pmt_from_uint64(30000), mp(str0.str()), mp("seq"), mp(7));
std::cout << std::endl << "qa_block_tags::t1" << std::endl;
-
+
// For annotator 3, we know it gets tags from ann0 and ann1, test this
for(size_t i = 0; i < tags3.size(); i++) {
std::cout << "tags3[" << i << "] = " << tags3[i] << "\t\t" << expected_tags3[i] << std::endl;
@@ -171,7 +171,7 @@ qa_block_tags::t2 ()
gr_block_sptr snk0 (gr_make_null_sink(sizeof(int)));
gr_block_sptr snk1 (gr_make_null_sink(sizeof(int)));
gr_block_sptr snk2 (gr_make_null_sink(sizeof(int)));
-
+
tb->connect(src, 0, head, 0);
tb->connect(head, 0, ann0, 0);
@@ -271,7 +271,7 @@ qa_block_tags::t3 ()
gr_annotator_1to1_sptr ann4 (gr_make_annotator_1to1(10000, sizeof(int)));
gr_block_sptr snk0 (gr_make_null_sink(sizeof(int)));
gr_block_sptr snk1 (gr_make_null_sink(sizeof(int)));
-
+
tb->connect(src, 0, head, 0);
tb->connect(head, 0, ann0, 0);
tb->connect(head, 0, ann0, 1);
@@ -286,7 +286,7 @@ qa_block_tags::t3 ()
tb->run();
-
+
std::vector<gr_tag_t> tags0 = ann0->data();
std::vector<gr_tag_t> tags3 = ann3->data();
std::vector<gr_tag_t> tags4 = ann4->data();
@@ -324,7 +324,7 @@ qa_block_tags::t3 ()
expected_tags4[7] = mp(pmt_from_uint64(30000), mp(str0.str()), mp("seq"), mp(7));
std::cout << std::endl << "qa_block_tags::t3" << std::endl;
-
+
// For annotator 3, we know it gets tags from ann0 and ann1, test this
for(size_t i = 0; i < tags3.size(); i++) {
std::cout << "tags3[" << i << "] = " << tags3[i] << "\t\t" << expected_tags3[i] << std::endl;
diff --git a/gnuradio-core/src/lib/runtime/qa_block_tags.h b/gnuradio-core/src/lib/runtime/qa_block_tags.h
index b0d211390..6b7e5975d 100644
--- a/gnuradio-core/src/lib/runtime/qa_block_tags.h
+++ b/gnuradio-core/src/lib/runtime/qa_block_tags.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010 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,
diff --git a/gnuradio-core/src/lib/runtime/qa_gr_block.cc b/gnuradio-core/src/lib/runtime/qa_gr_block.cc
index ea3f3e14c..aeab5b74a 100644
--- a/gnuradio-core/src/lib/runtime/qa_gr_block.cc
+++ b/gnuradio-core/src/lib/runtime/qa_gr_block.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/runtime/qa_gr_block.h b/gnuradio-core/src/lib/runtime/qa_gr_block.h
index 24634998e..14c7c40d1 100644
--- a/gnuradio-core/src/lib/runtime/qa_gr_block.h
+++ b/gnuradio-core/src/lib/runtime/qa_gr_block.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/runtime/qa_gr_buffer.cc b/gnuradio-core/src/lib/runtime/qa_gr_buffer.cc
index 7434cf657..c74baf398 100644
--- a/gnuradio-core/src/lib/runtime/qa_gr_buffer.cc
+++ b/gnuradio-core/src/lib/runtime/qa_gr_buffer.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -65,7 +65,7 @@ t0_body ()
sa = buf->space_available ();
CPPUNIT_ASSERT_EQUAL (last_sa, sa);
last_sa = sa;
-
+
int *p = (int *) buf->write_pointer ();
CPPUNIT_ASSERT (p != 0);
@@ -80,7 +80,7 @@ t0_body ()
// test single writer, single reader
//
-static void
+static void
t1_body ()
{
int nitems = 4000 / sizeof (int);
@@ -89,7 +89,7 @@ t1_body ()
gr_buffer_sptr buf(gr_make_buffer(nitems, sizeof (int), gr_block_sptr()));
gr_buffer_reader_sptr r1 (gr_buffer_add_reader (buf, 0, gr_block_sptr()));
-
+
int sa;
@@ -106,7 +106,7 @@ t1_body ()
}
buf->update_write_pointer (sa/3);
-
+
// write the next 1/3 (1/2 of what's left)
sa = buf->space_available ();
@@ -125,7 +125,7 @@ t1_body ()
int ia = r1->items_available ();
CPPUNIT_ASSERT_EQUAL (write_counter, ia);
-
+
int *rp = (int *) r1->read_pointer ();
CPPUNIT_ASSERT (rp != 0);
@@ -159,7 +159,7 @@ t2_body ()
{
// 64K is the largest granularity we've seen so far (MS windows file mapping).
// This allows a bit of "white box testing"
-
+
int nitems = (64 * (1L << 10)) / sizeof (int); // 64K worth of ints
gr_buffer_sptr buf(gr_make_buffer (nitems, sizeof (int), gr_block_sptr()));
@@ -170,7 +170,7 @@ t2_body ()
int n;
int *wp = 0;
int *rp = 0;
-
+
// Write 3/4 of buffer
n = (int) (buf->space_available () * 0.75);
@@ -203,7 +203,7 @@ t2_body ()
for (int i = 0; i < n; i++)
*wp++ = write_counter++;
buf->update_write_pointer (n);
-
+
// now read it all
m = r1->items_available ();
diff --git a/gnuradio-core/src/lib/runtime/qa_gr_buffer.h b/gnuradio-core/src/lib/runtime/qa_gr_buffer.h
index 7e812e721..2937c24b6 100644
--- a/gnuradio-core/src/lib/runtime/qa_gr_buffer.h
+++ b/gnuradio-core/src/lib/runtime/qa_gr_buffer.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/runtime/qa_gr_flowgraph.cc b/gnuradio-core/src/lib/runtime/qa_gr_flowgraph.cc
index c883c1678..cce83cb0a 100644
--- a/gnuradio-core/src/lib/runtime/qa_gr_flowgraph.cc
+++ b/gnuradio-core/src/lib/runtime/qa_gr_flowgraph.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007 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,
@@ -223,7 +223,7 @@ void qa_gr_flowgraph::t16_partition()
gr_block_sptr nop31 = gr_make_nop(sizeof(int));
gr_block_sptr nop32 = gr_make_nop(sizeof(int));
-
+
// Build disjoint graph #1
fg->connect(nop11, 0, nop12, 0);
fg->connect(nop12, 0, nop13, 0);
diff --git a/gnuradio-core/src/lib/runtime/qa_gr_flowgraph.h b/gnuradio-core/src/lib/runtime/qa_gr_flowgraph.h
index 2253afccd..2c2686f71 100644
--- a/gnuradio-core/src/lib/runtime/qa_gr_flowgraph.h
+++ b/gnuradio-core/src/lib/runtime/qa_gr_flowgraph.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007 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,
@@ -27,10 +27,10 @@
#include <cppunit/TestCase.h>
#include <stdexcept>
-class qa_gr_flowgraph : public CppUnit::TestCase
+class qa_gr_flowgraph : public CppUnit::TestCase
{
CPPUNIT_TEST_SUITE(qa_gr_flowgraph);
-
+
CPPUNIT_TEST(t0);
CPPUNIT_TEST(t1_connect);
CPPUNIT_TEST(t2_connect_invalid_src_port_neg);
diff --git a/gnuradio-core/src/lib/runtime/qa_gr_hier_block2.cc b/gnuradio-core/src/lib/runtime/qa_gr_hier_block2.cc
index d9d89ce2c..9844d3381 100644
--- a/gnuradio-core/src/lib/runtime/qa_gr_hier_block2.cc
+++ b/gnuradio-core/src/lib/runtime/qa_gr_hier_block2.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2008,2009 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,
@@ -39,14 +39,14 @@ void qa_gr_hier_block2::test_make()
CPPUNIT_ASSERT(src1);
CPPUNIT_ASSERT_EQUAL(std::string("test"), src1->name());
- CPPUNIT_ASSERT_EQUAL(1 * (int) sizeof(int),
+ CPPUNIT_ASSERT_EQUAL(1 * (int) sizeof(int),
src1->input_signature()->sizeof_stream_item(0));
CPPUNIT_ASSERT_EQUAL(1, src1->input_signature()->min_streams());
CPPUNIT_ASSERT_EQUAL(1, src1->input_signature()->max_streams());
- CPPUNIT_ASSERT_EQUAL(1 * (int) sizeof(int),
+ CPPUNIT_ASSERT_EQUAL(1 * (int) sizeof(int),
src1->output_signature()->sizeof_stream_item(0));
CPPUNIT_ASSERT_EQUAL(1, src1->output_signature()->min_streams());
diff --git a/gnuradio-core/src/lib/runtime/qa_gr_hier_block2.h b/gnuradio-core/src/lib/runtime/qa_gr_hier_block2.h
index 3870b9f0f..653cd2725 100644
--- a/gnuradio-core/src/lib/runtime/qa_gr_hier_block2.h
+++ b/gnuradio-core/src/lib/runtime/qa_gr_hier_block2.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
@@ -27,12 +27,12 @@
#include <cppunit/TestCase.h>
#include <stdexcept>
-class qa_gr_hier_block2 : public CppUnit::TestCase
+class qa_gr_hier_block2 : public CppUnit::TestCase
{
CPPUNIT_TEST_SUITE(qa_gr_hier_block2);
CPPUNIT_TEST(test_make);
-
+
CPPUNIT_TEST_SUITE_END();
private:
diff --git a/gnuradio-core/src/lib/runtime/qa_gr_hier_block2_derived.cc b/gnuradio-core/src/lib/runtime/qa_gr_hier_block2_derived.cc
index fe5f3a751..060c4e244 100644
--- a/gnuradio-core/src/lib/runtime/qa_gr_hier_block2_derived.cc
+++ b/gnuradio-core/src/lib/runtime/qa_gr_hier_block2_derived.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2008 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,
@@ -78,7 +78,7 @@ void qa_gr_hier_block2_derived::test_1()
gr_block_sptr head(gr_make_head(sizeof(int), 1000));
gr_derived_block_sptr blk(gr_make_derived_block());
gr_block_sptr dst(gr_make_null_sink(sizeof(int)));
-
+
tb->connect(src, 0, head, 0);
tb->connect(head, 0, blk, 0);
tb->connect(blk, 0, dst, 0);
diff --git a/gnuradio-core/src/lib/runtime/qa_gr_hier_block2_derived.h b/gnuradio-core/src/lib/runtime/qa_gr_hier_block2_derived.h
index 5a27b1b2d..8e0a1880c 100644
--- a/gnuradio-core/src/lib/runtime/qa_gr_hier_block2_derived.h
+++ b/gnuradio-core/src/lib/runtime/qa_gr_hier_block2_derived.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2008 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,
@@ -28,7 +28,7 @@
#include <stdexcept>
// Declare a QA test case
-class qa_gr_hier_block2_derived : public CppUnit::TestCase
+class qa_gr_hier_block2_derived : public CppUnit::TestCase
{
CPPUNIT_TEST_SUITE(qa_gr_hier_block2_derived);
CPPUNIT_TEST(test_1);
diff --git a/gnuradio-core/src/lib/runtime/qa_gr_io_signature.cc b/gnuradio-core/src/lib/runtime/qa_gr_io_signature.cc
index 07abe10b3..c1737ffb8 100644
--- a/gnuradio-core/src/lib/runtime/qa_gr_io_signature.cc
+++ b/gnuradio-core/src/lib/runtime/qa_gr_io_signature.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/runtime/qa_gr_io_signature.h b/gnuradio-core/src/lib/runtime/qa_gr_io_signature.h
index 02fc9ddc4..9cd6bb524 100644
--- a/gnuradio-core/src/lib/runtime/qa_gr_io_signature.h
+++ b/gnuradio-core/src/lib/runtime/qa_gr_io_signature.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/runtime/qa_gr_top_block.cc b/gnuradio-core/src/lib/runtime/qa_gr_top_block.cc
index 52677f0de..cc7b7c720 100644
--- a/gnuradio-core/src/lib/runtime/qa_gr_top_block.cc
+++ b/gnuradio-core/src/lib/runtime/qa_gr_top_block.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007 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,
diff --git a/gnuradio-core/src/lib/runtime/qa_gr_top_block.h b/gnuradio-core/src/lib/runtime/qa_gr_top_block.h
index 278b5ffb4..b223633e5 100644
--- a/gnuradio-core/src/lib/runtime/qa_gr_top_block.h
+++ b/gnuradio-core/src/lib/runtime/qa_gr_top_block.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007 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,
@@ -27,10 +27,10 @@
#include <cppunit/TestCase.h>
#include <stdexcept>
-class qa_gr_top_block : public CppUnit::TestCase
+class qa_gr_top_block : public CppUnit::TestCase
{
CPPUNIT_TEST_SUITE(qa_gr_top_block);
-
+
CPPUNIT_TEST(t0);
CPPUNIT_TEST(t1_run);
CPPUNIT_TEST(t2_start_stop_wait);
diff --git a/gnuradio-core/src/lib/runtime/qa_gr_vmcircbuf.cc b/gnuradio-core/src/lib/runtime/qa_gr_vmcircbuf.cc
index 2e787ac28..e3b36d882 100644
--- a/gnuradio-core/src/lib/runtime/qa_gr_vmcircbuf.cc
+++ b/gnuradio-core/src/lib/runtime/qa_gr_vmcircbuf.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,
@@ -35,6 +35,6 @@ qa_gr_vmcircbuf::test_all ()
int verbose = 1; // summary
bool ok = gr_vmcircbuf_sysconfig::test_all_factories (verbose);
-
+
CPPUNIT_ASSERT_EQUAL (true, ok);
}
diff --git a/gnuradio-core/src/lib/runtime/qa_gr_vmcircbuf.h b/gnuradio-core/src/lib/runtime/qa_gr_vmcircbuf.h
index 42f6a1917..3576660d5 100644
--- a/gnuradio-core/src/lib/runtime/qa_gr_vmcircbuf.h
+++ b/gnuradio-core/src/lib/runtime/qa_gr_vmcircbuf.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/runtime/qa_runtime.cc b/gnuradio-core/src/lib/runtime/qa_runtime.cc
index c0bee8ea0..5e62c7991 100644
--- a/gnuradio-core/src/lib/runtime/qa_runtime.cc
+++ b/gnuradio-core/src/lib/runtime/qa_runtime.cc
@@ -1,18 +1,18 @@
/*
* Copyright 2002,2007,2011 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,
@@ -56,6 +56,6 @@ qa_runtime::suite ()
s->addTest (qa_gr_buffer::suite ());
s->addTest (qa_block_tags::suite ());
s->addTest (qa_set_msg_handler::suite ());
-
+
return s;
}
diff --git a/gnuradio-core/src/lib/runtime/qa_runtime.h b/gnuradio-core/src/lib/runtime/qa_runtime.h
index e1038aaf6..da71cbd0f 100644
--- a/gnuradio-core/src/lib/runtime/qa_runtime.h
+++ b/gnuradio-core/src/lib/runtime/qa_runtime.h
@@ -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,
diff --git a/gnuradio-core/src/lib/runtime/qa_set_msg_handler.cc b/gnuradio-core/src/lib/runtime/qa_set_msg_handler.cc
index 35ef5527e..25ae0b1e1 100644
--- a/gnuradio-core/src/lib/runtime/qa_set_msg_handler.cc
+++ b/gnuradio-core/src/lib/runtime/qa_set_msg_handler.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007,2011 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,
diff --git a/gnuradio-core/src/lib/runtime/qa_set_msg_handler.h b/gnuradio-core/src/lib/runtime/qa_set_msg_handler.h
index e73fffbcd..60277a12c 100644
--- a/gnuradio-core/src/lib/runtime/qa_set_msg_handler.h
+++ b/gnuradio-core/src/lib/runtime/qa_set_msg_handler.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007,2011 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,
@@ -27,10 +27,10 @@
#include <cppunit/TestCase.h>
#include <stdexcept>
-class qa_set_msg_handler : public CppUnit::TestCase
+class qa_set_msg_handler : public CppUnit::TestCase
{
CPPUNIT_TEST_SUITE(qa_set_msg_handler);
-
+
CPPUNIT_TEST(t0);
CPPUNIT_TEST_SUITE_END();
diff --git a/gnuradio-core/src/lib/runtime/runtime.i b/gnuradio-core/src/lib/runtime/runtime.i
index 9bf2df31e..8e35df834 100644
--- a/gnuradio-core/src/lib/runtime/runtime.i
+++ b/gnuradio-core/src/lib/runtime/runtime.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/runtime/test_shared_block_ptr.cc b/gnuradio-core/src/lib/runtime/test_shared_block_ptr.cc
index e541c5402..bb4e86322 100644
--- a/gnuradio-core/src/lib/runtime/test_shared_block_ptr.cc
+++ b/gnuradio-core/src/lib/runtime/test_shared_block_ptr.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -23,7 +23,7 @@
#include <gr_shared_block_sptr.h>
#include <gr_vector_source_i.h>
-gr_block_sptr
+gr_block_sptr
foo (gr_vector_source_i_sptr s)
{
return gr_block_sptr (s);
@@ -38,14 +38,14 @@ bar (gr_vector_source_i *s)
return gr_vector_source_i_ptrX (s);
}
-gr_block_sptr
+gr_block_sptr
baz_1 (gr_vector_source_i_ptrX s)
{
return gr_block_sptr (s);
}
#if 0
-gr_block_sptr
+gr_block_sptr
baz_2 (gr_vector_source_i_ptrX s)
{
return s.block_sptr ();
diff --git a/gnuradio-core/src/lib/swig/CMakeLists.txt b/gnuradio-core/src/lib/swig/CMakeLists.txt
index bb7ce9a81..d3c381b4b 100644
--- a/gnuradio-core/src/lib/swig/CMakeLists.txt
+++ b/gnuradio-core/src/lib/swig/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2010-2011 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,
diff --git a/gnuradio-core/src/lib/swig/gen-swig-bug-fix b/gnuradio-core/src/lib/swig/gen-swig-bug-fix
index 0b8070dc4..5e9f82e7d 100755
--- a/gnuradio-core/src/lib/swig/gen-swig-bug-fix
+++ b/gnuradio-core/src/lib/swig/gen-swig-bug-fix
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004 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,
# Boston, MA 02110-1301, USA.
-#
+#
import sys
import re
@@ -27,19 +27,19 @@ def write_header (f):
f.write ('''/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -56,7 +56,7 @@ def write_header (f):
*/
''')
-
+
def write_trailer (f):
f.write ('''
#endif /* INCLUDED_GNURADIO_SWIG_BUG_WORKAROUND_H */
@@ -68,7 +68,7 @@ def doit (input, output):
re_RETURN = re.compile ('^\s*return')
re_NOT_ID = re.compile ('[^a-zA-Z0-9_]')
words = {}
-
+
write_header (output)
for line in input:
if re_RULES_BEGIN.search (line):
@@ -86,14 +86,14 @@ def doit (input, output):
for w in ('', 'return', 'void', 'x'):
del words[w]
-
+
wl = words.keys()
wl.sort ()
for w in wl:
output.write ('class ' + w + ';\n')
write_trailer (output)
-
+
def main ():
if len (sys.argv) != 3:
diff --git a/gnuradio-core/src/lib/swig/gnuradio.i b/gnuradio-core/src/lib/swig/gnuradio.i
index 35dbd5359..239223851 100644
--- a/gnuradio-core/src/lib/swig/gnuradio.i
+++ b/gnuradio-core/src/lib/swig/gnuradio.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2003,2004,2009 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,
diff --git a/gnuradio-core/src/lib/swig/gnuradio_core.py b/gnuradio-core/src/lib/swig/gnuradio_core.py
index 172051013..23de74077 100644
--- a/gnuradio-core/src/lib/swig/gnuradio_core.py
+++ b/gnuradio-core/src/lib/swig/gnuradio_core.py
@@ -1,18 +1,18 @@
#
# Copyright 2006,2009,2010 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 this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
diff --git a/gnuradio-core/src/lib/swig/gnuradio_swig_bug_workaround.h b/gnuradio-core/src/lib/swig/gnuradio_swig_bug_workaround.h
index 8f7eea0bf..1994f0660 100644
--- a/gnuradio-core/src/lib/swig/gnuradio_swig_bug_workaround.h
+++ b/gnuradio-core/src/lib/swig/gnuradio_swig_bug_workaround.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gnuradio-core/src/lib/swig/gr_shared_ptr.i b/gnuradio-core/src/lib/swig/gr_shared_ptr.i
index 9663033ae..323d33ad7 100644
--- a/gnuradio-core/src/lib/swig/gr_shared_ptr.i
+++ b/gnuradio-core/src/lib/swig/gr_shared_ptr.i
@@ -31,7 +31,7 @@ public:
{
return px;
}
-
+
private:
diff --git a/gnuradio-core/src/lib/swig/gr_swig_block_magic.i b/gnuradio-core/src/lib/swig/gr_swig_block_magic.i
index 79055bd95..cdc9fbe49 100644
--- a/gnuradio-core/src/lib/swig/gr_swig_block_magic.i
+++ b/gnuradio-core/src/lib/swig/gr_swig_block_magic.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
diff --git a/gnuradio-core/src/lib/viterbi/decode.cc b/gnuradio-core/src/lib/viterbi/decode.cc
index 6580e4d66..368e69713 100644
--- a/gnuradio-core/src/lib/viterbi/decode.cc
+++ b/gnuradio-core/src/lib/viterbi/decode.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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,
@@ -22,7 +22,7 @@
/*
* This is a minimal example demonstrating how to call the Viterbi decoder
- * in continuous streaming mode. It accepts data on stdin and writes to
+ * in continuous streaming mode. It accepts data on stdin and writes to
* stdout.
*
*/
@@ -55,12 +55,12 @@ int main()
struct viterbi_state state0[64];
struct viterbi_state state1[64];
unsigned char viterbi_in[16];
- viterbi_chunks_init(state0);
+ viterbi_chunks_init(state0);
while (!feof(stdin)) {
unsigned int n = fread(syms, 1, MAXENCSIZE, stdin);
unsigned char *out = data;
-
+
for (unsigned int i = 0; i < n; i++) {
// FIXME: This implements hard decoding by slicing the input stream
@@ -71,7 +71,7 @@ int main()
// Every four symbols, perform the butterfly2 operation
if ((count % 4) == 3) {
- viterbi_butterfly2(viterbi_in, mettab, state0, state1);
+ viterbi_butterfly2(viterbi_in, mettab, state0, state1);
// Every sixteen symbols, perform the readback operation
if ((count > 64) && (count % 16) == 11) {
@@ -79,9 +79,9 @@ int main()
fwrite(out++, 1, 1, stdout);
}
}
-
+
count++;
- }
+ }
}
return 0;
diff --git a/gnuradio-core/src/lib/viterbi/encode.cc b/gnuradio-core/src/lib/viterbi/encode.cc
index 01acb3987..83a85fcac 100644
--- a/gnuradio-core/src/lib/viterbi/encode.cc
+++ b/gnuradio-core/src/lib/viterbi/encode.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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,
@@ -22,9 +22,9 @@
/*
* This is a minimal example demonstrating how to call the ECC encoder
- * in continuous streaming mode. It accepts data on stdin and writes to
+ * in continuous streaming mode. It accepts data on stdin and writes to
* stdout.
- *
+ *
* FIXME: This does not flush the final bits out of the encoder.
*
*/
@@ -43,7 +43,7 @@ int main()
unsigned char encoder_state = 0;
unsigned char data[MAXCHUNKSIZE];
unsigned char syms[MAXENCSIZE];
-
+
while (!feof(stdin)) {
unsigned int n = fread(data, 1, MAXCHUNKSIZE, stdin);
encoder_state = encode(syms, data, n, encoder_state);
diff --git a/gnuradio-core/src/lib/viterbi/metrics.c b/gnuradio-core/src/lib/viterbi/metrics.c
index 77c6a63c8..0d91c301f 100644
--- a/gnuradio-core/src/lib/viterbi/metrics.c
+++ b/gnuradio-core/src/lib/viterbi/metrics.c
@@ -1,26 +1,26 @@
/*
* Copyright 1995 Phil Karn, KA9Q
* Copyright 2008 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,
* Boston, MA 02110-1301, USA.
*/
-/*
+/*
* Generate metric tables for a soft-decision convolutional decoder
* assuming gaussian noise on a PSK channel.
*
@@ -48,7 +48,7 @@ extern double erf(double x);
/* Normal function integrated from -Inf to x. Range: 0-1 */
#define normal(x) (0.5 + 0.5*erf((x)/M_SQRT2))
-/* Logarithm base 2 */
+/* Logarithm base 2 */
#define gr_log2(x) (log(x)*M_LOG2E)
/* Generate log-likelihood metrics for 8-bit soft quantized channel
@@ -65,33 +65,33 @@ gen_met(int mettab[2][256], /* Metric table, [sent sym][rx symbol] */
int s,bit;
double metrics[2][256];
double p0,p1;
-
+
/* Es/N0 as power ratio */
esn0 = pow(10.,esn0/10);
-
+
noise = 0.5/esn0; /* only half the noise for BPSK */
noise = sqrt(noise); /* noise/signal Voltage ratio */
-
+
/* Zero is a special value, since this sample includes all
* lower samples that were clipped to this value, i.e., it
- * takes the whole lower tail of the curve
+ * takes the whole lower tail of the curve
*/
p1 = normal(((0-OFFSET+0.5)/amp - 1)/noise); /* P(s|1) */
-
+
/* Prob of this value occurring for a 0-bit */ /* P(s|0) */
p0 = normal(((0-OFFSET+0.5)/amp + 1)/noise);
metrics[0][0] = gr_log2(2*p0/(p1+p0)) - bias;
metrics[1][0] = gr_log2(2*p1/(p1+p0)) - bias;
-
+
for(s=1;s<255;s++){
/* P(s|1), prob of receiving s given 1 transmitted */
p1 = normal(((s-OFFSET+0.5)/amp - 1)/noise) -
normal(((s-OFFSET-0.5)/amp - 1)/noise);
-
+
/* P(s|0), prob of receiving s given 0 transmitted */
p0 = normal(((s-OFFSET+0.5)/amp + 1)/noise) -
normal(((s-OFFSET-0.5)/amp + 1)/noise);
-
+
#ifdef notdef
printf("P(%d|1) = %lg, P(%d|0) = %lg\n",s,p1,s,p0);
#endif
@@ -103,7 +103,7 @@ gen_met(int mettab[2][256], /* Metric table, [sent sym][rx symbol] */
p1 = 1 - normal(((255-OFFSET-0.5)/amp - 1)/noise);
/* P(s|0) */
p0 = 1 - normal(((255-OFFSET-0.5)/amp + 1)/noise);
-
+
metrics[0][255] = gr_log2(2*p0/(p1+p0)) - bias;
metrics[1][255] = gr_log2(2*p1/(p1+p0)) - bias;
#ifdef notdef
diff --git a/gnuradio-core/src/lib/viterbi/tab.c b/gnuradio-core/src/lib/viterbi/tab.c
index 1133c6308..1c135acfe 100644
--- a/gnuradio-core/src/lib/viterbi/tab.c
+++ b/gnuradio-core/src/lib/viterbi/tab.c
@@ -1,19 +1,19 @@
/*
* Copyright 1995 Phil Karn, KA9Q
* Copyright 2008 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,
diff --git a/gnuradio-core/src/lib/viterbi/viterbi.c b/gnuradio-core/src/lib/viterbi/viterbi.c
index 9f5c1e72a..fc8886603 100644
--- a/gnuradio-core/src/lib/viterbi/viterbi.c
+++ b/gnuradio-core/src/lib/viterbi/viterbi.c
@@ -1,26 +1,26 @@
/*
* Copyright 1995 Phil Karn, KA9Q
* Copyright 2008 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,
* Boston, MA 02110-1301, USA.
*/
-/*
+/*
* Viterbi decoder for K=7 rate=1/2 convolutional code
* Some modifications from original Karn code by Matt Ettus
*/
@@ -94,7 +94,7 @@ encode(unsigned char *symbols,
unsigned char encstate)
{
int i;
-
+
while(nbytes-- != 0){
for(i=7;i>=0;i--){
encstate = (encstate << 1) | ((*data >> i) & 1);
@@ -103,7 +103,7 @@ encode(unsigned char *symbols,
}
data++;
}
-
+
return encstate;
}
@@ -120,16 +120,16 @@ viterbi(unsigned long *metric, /* Final path metric (returned value) */
long bestmetric;
int beststate,i;
struct viterbi_state state0[64],state1[64],*state,*next;
-
+
state = state0;
next = state1;
-
+
/* Initialize starting metrics to prefer 0 state */
state[0].metric = 0;
for(i=1;i<64;i++)
state[i].metric = -999999;
state[0].path = 0;
-
+
for(bitcnt = 0;bitcnt < nbits;bitcnt++){
/* Read input symbol pair and compute all possible branch
* metrics
@@ -173,7 +173,7 @@ viterbi(unsigned long *metric, /* Final path metric (returned value) */
BUTTERFLY(29,0);
BUTTERFLY(30,2);
BUTTERFLY(31,3);
-
+
/* Swap current and next states */
if(bitcnt & 1){
state = state0;
@@ -205,7 +205,7 @@ viterbi(unsigned long *metric, /* Final path metric (returned value) */
#endif
*data++ = state[beststate].path >> 24;
}
-
+
}
/* Output remaining bits from 0 state */
// ETTUS Find best state instead
@@ -219,7 +219,7 @@ viterbi(unsigned long *metric, /* Final path metric (returned value) */
}
if((i = bitcnt % 8) != 6)
state[beststate].path <<= 6-i;
-
+
*data++ = state[beststate].path >> 24;
*data++ = state[beststate].path >> 16;
*data++ = state[beststate].path >> 8;
@@ -245,7 +245,7 @@ viterbi_butterfly8(unsigned char *symbols, int mettab[2][256], struct viterbi_st
{
unsigned int bitcnt;
int mets[4];
-
+
struct viterbi_state *state, *next;
state = state0;
next = state1;
@@ -257,8 +257,8 @@ viterbi_butterfly8(unsigned char *symbols, int mettab[2][256], struct viterbi_st
mets[2] = mettab[1][symbols[0]] + mettab[0][symbols[1]];
mets[3] = mettab[1][symbols[0]] + mettab[1][symbols[1]];
symbols += 2;
-
- // These macro calls were generated by genbut.c
+
+ // These macro calls were generated by genbut.c
BUTTERFLY(0,0);BUTTERFLY(1,1);BUTTERFLY(2,3);BUTTERFLY(3,2);
BUTTERFLY(4,3);BUTTERFLY(5,2);BUTTERFLY(6,0);BUTTERFLY(7,1);
BUTTERFLY(8,0);BUTTERFLY(9,1);BUTTERFLY(10,3);BUTTERFLY(11,2);
@@ -267,7 +267,7 @@ viterbi_butterfly8(unsigned char *symbols, int mettab[2][256], struct viterbi_st
BUTTERFLY(20,1);BUTTERFLY(21,0);BUTTERFLY(22,2);BUTTERFLY(23,3);
BUTTERFLY(24,2);BUTTERFLY(25,3);BUTTERFLY(26,1);BUTTERFLY(27,0);
BUTTERFLY(28,1);BUTTERFLY(29,0);BUTTERFLY(30,2);BUTTERFLY(31,3);
-
+
// Swap current and next states
if(bitcnt & 1){
state = state0;
@@ -284,19 +284,19 @@ viterbi_butterfly2(unsigned char *symbols, int mettab[2][256], struct viterbi_st
{
//unsigned int bitcnt;
int mets[4];
-
+
struct viterbi_state *state, *next;
state = state0;
next = state1;
// Operate on 4 symbols (2 bits) at a time
-
+
// Read input symbol pair and compute all possible branch metrics
mets[0] = mettab[0][symbols[0]] + mettab[0][symbols[1]];
mets[1] = mettab[0][symbols[0]] + mettab[1][symbols[1]];
mets[2] = mettab[1][symbols[0]] + mettab[0][symbols[1]];
mets[3] = mettab[1][symbols[0]] + mettab[1][symbols[1]];
-
- // These macro calls were generated by genbut.c
+
+ // These macro calls were generated by genbut.c
BUTTERFLY(0,0);BUTTERFLY(1,1);BUTTERFLY(2,3);BUTTERFLY(3,2);
BUTTERFLY(4,3);BUTTERFLY(5,2);BUTTERFLY(6,0);BUTTERFLY(7,1);
BUTTERFLY(8,0);BUTTERFLY(9,1);BUTTERFLY(10,3);BUTTERFLY(11,2);
@@ -305,17 +305,17 @@ viterbi_butterfly2(unsigned char *symbols, int mettab[2][256], struct viterbi_st
BUTTERFLY(20,1);BUTTERFLY(21,0);BUTTERFLY(22,2);BUTTERFLY(23,3);
BUTTERFLY(24,2);BUTTERFLY(25,3);BUTTERFLY(26,1);BUTTERFLY(27,0);
BUTTERFLY(28,1);BUTTERFLY(29,0);BUTTERFLY(30,2);BUTTERFLY(31,3);
-
+
state = state1;
next = state0;
-
+
// Read input symbol pair and compute all possible branch metrics
mets[0] = mettab[0][symbols[2]] + mettab[0][symbols[3]];
mets[1] = mettab[0][symbols[2]] + mettab[1][symbols[3]];
mets[2] = mettab[1][symbols[2]] + mettab[0][symbols[3]];
mets[3] = mettab[1][symbols[2]] + mettab[1][symbols[3]];
-
- // These macro calls were generated by genbut.c
+
+ // These macro calls were generated by genbut.c
BUTTERFLY(0,0);BUTTERFLY(1,1);BUTTERFLY(2,3);BUTTERFLY(3,2);
BUTTERFLY(4,3);BUTTERFLY(5,2);BUTTERFLY(6,0);BUTTERFLY(7,1);
BUTTERFLY(8,0);BUTTERFLY(9,1);BUTTERFLY(10,3);BUTTERFLY(11,2);
@@ -328,13 +328,13 @@ viterbi_butterfly2(unsigned char *symbols, int mettab[2][256], struct viterbi_st
unsigned char
viterbi_get_output(struct viterbi_state *state, unsigned char *outbuf) {
- // Produce output every 8 bits once path memory is full
+ // Produce output every 8 bits once path memory is full
// if((bitcnt % 8) == 5 && bitcnt > 32) {
-
+
// Find current best path
unsigned int i,beststate;
int bestmetric;
-
+
bestmetric = state[0].metric;
beststate = 0;
for(i=1;i<64;i++)
diff --git a/gnuradio-core/src/lib/viterbi/viterbi.h b/gnuradio-core/src/lib/viterbi/viterbi.h
index 3a3ea5615..bcdbe116d 100644
--- a/gnuradio-core/src/lib/viterbi/viterbi.h
+++ b/gnuradio-core/src/lib/viterbi/viterbi.h
@@ -1,18 +1,18 @@
/*
* Copyright 2008 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,
@@ -46,7 +46,7 @@ GR_CORE_API void
viterbi_chunks_init(struct viterbi_state* state);
GR_CORE_API void
-viterbi_butterfly2(unsigned char *symbols, int mettab[2][256],
+viterbi_butterfly2(unsigned char *symbols, int mettab[2][256],
struct viterbi_state *state0, struct viterbi_state *state1);
GR_CORE_API unsigned char
diff --git a/gnuradio-core/src/python/bin/microtune.py b/gnuradio-core/src/python/bin/microtune.py
index 0e799c93d..fbe743f39 100755
--- a/gnuradio-core/src/python/bin/microtune.py
+++ b/gnuradio-core/src/python/bin/microtune.py
@@ -36,7 +36,7 @@ def main ():
actual = front_end.set_RF_freq (options.freq)
print "microtune: actual freq = %s" % (eng_notation.num_to_str (actual),)
-
+
if __name__ == '__main__':
main ()
diff --git a/gnuradio-core/src/python/build_utils.py b/gnuradio-core/src/python/build_utils.py
index 90c7978f2..0660941d5 100644
--- a/gnuradio-core/src/python/build_utils.py
+++ b/gnuradio-core/src/python/build_utils.py
@@ -1,23 +1,23 @@
#
# Copyright 2004,2009 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,
# Boston, MA 02110-1301, USA.
-#
+#
"""Misc utilities used at build time
"""
@@ -56,10 +56,10 @@ name_dict = {}
def log_output_name (name):
(base, ext) = os.path.splitext (name)
ext = ext[1:] # drop the leading '.'
-
+
entry = name_dict.setdefault (ext, [])
entry.append (name)
-
+
def open_and_log_name (name, dir):
global do_sources
if do_sources:
@@ -139,29 +139,29 @@ def do_substitution (d, in_file, out_file):
key = match_obj.group (1)
# print key
return d[key]
-
+
inp = in_file.read ()
out = re.sub (r"@([a-zA-Z0-9_]+)@", repl, inp)
out_file.write (out)
-
+
copyright = '''/* -*- c++ -*- */
/*
* Copyright 2003,2004 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,
diff --git a/gnuradio-core/src/python/build_utils_codes.py b/gnuradio-core/src/python/build_utils_codes.py
index 49ded78a6..9ea96baae 100644
--- a/gnuradio-core/src/python/build_utils_codes.py
+++ b/gnuradio-core/src/python/build_utils_codes.py
@@ -1,23 +1,23 @@
#
# Copyright 2004 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,
# Boston, MA 02110-1301, USA.
-#
+#
def i_code (code3):
return code3[0]
diff --git a/gnuradio-core/src/python/gnuradio/blks2/__init__.py b/gnuradio-core/src/python/gnuradio/blks2/__init__.py
index 89ebb9229..2dfdc77f4 100644
--- a/gnuradio-core/src/python/gnuradio/blks2/__init__.py
+++ b/gnuradio-core/src/python/gnuradio/blks2/__init__.py
@@ -1,29 +1,29 @@
#
# Copyright 2005 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,
# Boston, MA 02110-1301, USA.
-#
+#
import glob
import os.path
# Semi-hideous kludge to import everything in the blksimpl2 directory
-# into the gnuradio.blks2 namespace. This keeps us from having to remember
+# into the gnuradio.blks2 namespace. This keeps us from having to remember
# to manually update this file.
for p in __path__:
diff --git a/gnuradio-core/src/python/gnuradio/blks2impl/am_demod.py b/gnuradio-core/src/python/gnuradio/blks2impl/am_demod.py
index b454f0942..68d024565 100644
--- a/gnuradio-core/src/python/gnuradio/blks2impl/am_demod.py
+++ b/gnuradio-core/src/python/gnuradio/blks2impl/am_demod.py
@@ -1,23 +1,23 @@
#
# Copyright 2006,2007 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, optfir
@@ -25,8 +25,8 @@ class am_demod_cf(gr.hier_block2):
"""
Generalized AM demodulation block with audio filtering.
- This block demodulates a band-limited, complex down-converted AM
- channel into the the original baseband signal, applying low pass
+ This block demodulates a band-limited, complex down-converted AM
+ channel into the the original baseband signal, applying low pass
filtering to the audio output. It produces a float stream in the
range [-1.0, +1.0].
@@ -34,11 +34,11 @@ class am_demod_cf(gr.hier_block2):
@type sample_rate: integer
@param audio_decim: input to output decimation rate
@type audio_decim: integer
- @param audio_pass: audio low pass filter passband frequency
+ @param audio_pass: audio low pass filter passband frequency
@type audio_pass: float
@param audio_stop: audio low pass filter stop frequency
@type audio_stop: float
- """
+ """
def __init__(self, channel_rate, audio_decim, audio_pass, audio_stop):
gr.hier_block2.__init__(self, "am_demod_cf",
gr.io_signature(1, 1, gr.sizeof_gr_complex), # Input signature
@@ -60,7 +60,7 @@ class am_demod_cf(gr.hier_block2):
class demod_10k0a3e_cf(am_demod_cf):
"""
AM demodulation block, 10 KHz channel.
-
+
This block demodulates an AM channel conformant to 10K0A3E emission
standards, such as broadcast band AM transmissions.
@@ -70,7 +70,6 @@ class demod_10k0a3e_cf(am_demod_cf):
@type audio_decim: integer
"""
def __init__(self, channel_rate, audio_decim):
- am_demod_cf.__init__(self, channel_rate, audio_decim,
+ am_demod_cf.__init__(self, channel_rate, audio_decim,
5000, # Audio passband
5500) # Audio stopband
- \ No newline at end of file
diff --git a/gnuradio-core/src/python/gnuradio/blks2impl/channel_model.py b/gnuradio-core/src/python/gnuradio/blks2impl/channel_model.py
index 57487dff2..e5cd471df 100644
--- a/gnuradio-core/src/python/gnuradio/blks2impl/channel_model.py
+++ b/gnuradio-core/src/python/gnuradio/blks2impl/channel_model.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2009 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
diff --git a/gnuradio-core/src/python/gnuradio/blks2impl/filterbank.py b/gnuradio-core/src/python/gnuradio/blks2impl/filterbank.py
index f214da4a9..08f1d450b 100644
--- a/gnuradio-core/src/python/gnuradio/blks2impl/filterbank.py
+++ b/gnuradio-core/src/python/gnuradio/blks2impl/filterbank.py
@@ -1,23 +1,23 @@
#
# Copyright 2005,2007 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,
# Boston, MA 02110-1301, USA.
-#
+#
import sys
from gnuradio import gr, gru
@@ -53,11 +53,11 @@ class synthesis_filterbank(gr.hier_block2):
sample rate * nchannels.
Output stream to frequency mapping:
-
+
channel zero is at zero frequency.
if mpoints is odd:
-
+
Channels with increasing positive frequencies come from
channels 1 through (N-1)/2.
@@ -106,7 +106,7 @@ class synthesis_filterbank(gr.hier_block2):
for i in range(mpoints):
self.connect((self, i), (self.ss2v, i))
-
+
self.connect(self.ss2v, self.ifft, self.v2ss)
# build mpoints fir filters...
@@ -116,7 +116,7 @@ class synthesis_filterbank(gr.hier_block2):
self.connect(f, (self.ss2s, i))
self.connect(self.ss2s, self)
-
+
class analysis_filterbank(gr.hier_block2):
"""
Uniformly modulated polyphase DFT filter bank: analysis
@@ -137,7 +137,7 @@ class analysis_filterbank(gr.hier_block2):
gr.hier_block2.__init__(self, "analysis_filterbank",
gr.io_signature(1, 1, item_size), # Input signature
gr.io_signature(mpoints, mpoints, item_size)) # Output signature
-
+
if taps is None:
taps = _generate_synthesis_taps(mpoints)
@@ -145,12 +145,12 @@ class analysis_filterbank(gr.hier_block2):
r = len(taps) % mpoints
if r != 0:
taps = taps + (mpoints - r) * (0,)
-
+
# split in mpoints separate set of taps
sub_taps = _split_taps(taps, mpoints)
- # print >> sys.stderr, "mpoints =", mpoints, "len(sub_taps) =", len(sub_taps)
-
+ # print >> sys.stderr, "mpoints =", mpoints, "len(sub_taps) =", len(sub_taps)
+
self.s2ss = gr.stream_to_streams(item_size, mpoints)
# filters here
self.ss2v = gr.streams_to_vector(item_size, mpoints)
@@ -158,12 +158,12 @@ class analysis_filterbank(gr.hier_block2):
self.v2ss = gr.vector_to_streams(item_size, mpoints)
self.connect(self, self.s2ss)
-
+
# build mpoints fir filters...
for i in range(mpoints):
f = gr.fft_filter_ccc(1, sub_taps[mpoints-i-1])
self.connect((self.s2ss, i), f)
self.connect(f, (self.ss2v, i))
self.connect((self.v2ss, i), (self, i))
-
+
self.connect(self.ss2v, self.fft, self.v2ss)
diff --git a/gnuradio-core/src/python/gnuradio/blks2impl/fm_demod.py b/gnuradio-core/src/python/gnuradio/blks2impl/fm_demod.py
index 55870513a..6bc0d7ed0 100644
--- a/gnuradio-core/src/python/gnuradio/blks2impl/fm_demod.py
+++ b/gnuradio-core/src/python/gnuradio/blks2impl/fm_demod.py
@@ -1,23 +1,23 @@
#
# Copyright 2006,2007 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, optfir
from gnuradio.blks2impl.fm_emph import fm_deemph
@@ -25,10 +25,10 @@ from math import pi
class fm_demod_cf(gr.hier_block2):
"""
- Generalized FM demodulation block with deemphasis and audio
+ Generalized FM demodulation block with deemphasis and audio
filtering.
- This block demodulates a band-limited, complex down-converted FM
+ This block demodulates a band-limited, complex down-converted FM
channel into the the original baseband signal, optionally applying
deemphasis. Low pass filtering is done on the resultant signal. It
produces an output float strem in the range of [-1.0, +1.0].
@@ -39,7 +39,7 @@ class fm_demod_cf(gr.hier_block2):
@type deviation: float
@param audio_decim: input to output decimation rate
@type audio_decim: integer
- @param audio_pass: audio low pass filter passband frequency
+ @param audio_pass: audio low pass filter passband frequency
@type audio_pass: float
@param audio_stop: audio low pass filter stop frequency
@type audio_stop: float
@@ -47,13 +47,13 @@ class fm_demod_cf(gr.hier_block2):
@type gain: float
@param tau: deemphasis time constant (default = 75e-6), specify 'None'
to prevent deemphasis
- """
- def __init__(self, channel_rate, audio_decim, deviation,
+ """
+ def __init__(self, channel_rate, audio_decim, deviation,
audio_pass, audio_stop, gain=1.0, tau=75e-6):
gr.hier_block2.__init__(self, "fm_demod_cf",
gr.io_signature(1, 1, gr.sizeof_gr_complex), # Input signature
gr.io_signature(1, 1, gr.sizeof_float)) # Output signature
-
+
k = channel_rate/(2*pi*deviation)
QUAD = gr.quadrature_demod_cf(k)
@@ -75,15 +75,15 @@ class demod_20k0f3e_cf(fm_demod_cf):
"""
NBFM demodulation block, 20 KHz channels
- This block demodulates a complex, downconverted, narrowband FM
+ This block demodulates a complex, downconverted, narrowband FM
channel conforming to 20K0F3E emission standards, outputting
floats in the range [-1.0, +1.0].
-
+
@param sample_rate: incoming sample rate of the FM baseband
@type sample_rate: integer
@param audio_decim: input to output decimation rate
@type audio_decim: integer
- """
+ """
def __init__(self, channel_rate, audio_decim):
fm_demod_cf.__init__(self, channel_rate, audio_decim,
5000, # Deviation
@@ -93,9 +93,9 @@ class demod_20k0f3e_cf(fm_demod_cf):
class demod_200kf3e_cf(fm_demod_cf):
"""
WFM demodulation block, mono.
-
- This block demodulates a complex, downconverted, wideband FM
- channel conforming to 200KF3E emission standards, outputting
+
+ This block demodulates a complex, downconverted, wideband FM
+ channel conforming to 200KF3E emission standards, outputting
floats in the range [-1.0, +1.0].
@param sample_rate: incoming sample rate of the FM baseband
@@ -103,7 +103,7 @@ class demod_200kf3e_cf(fm_demod_cf):
@param audio_decim: input to output decimation rate
@type audio_decim: integer
"""
- def __init__(self, channel_rate, audio_decim):
+ def __init__(self, channel_rate, audio_decim):
fm_demod_cf.__init__(self, channel_rate, audio_decim,
75000, # Deviation
15000, # Audio passband
diff --git a/gnuradio-core/src/python/gnuradio/blks2impl/fm_emph.py b/gnuradio-core/src/python/gnuradio/blks2impl/fm_emph.py
index fd19f5fd9..fc3f2d60d 100644
--- a/gnuradio-core/src/python/gnuradio/blks2impl/fm_emph.py
+++ b/gnuradio-core/src/python/gnuradio/blks2impl/fm_emph.py
@@ -1,23 +1,23 @@
#
# Copyright 2005,2007 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
import math
@@ -39,8 +39,8 @@ class fm_deemph(gr.hier_block2):
"""
FM Deemphasis IIR filter.
"""
-
-
+
+
def __init__(self, fs, tau=75e-6):
"""
@param fs: sampling frequency in Hz
@@ -51,7 +51,7 @@ class fm_deemph(gr.hier_block2):
gr.hier_block2.__init__(self, "fm_deemph",
gr.io_signature(1, 1, gr.sizeof_float), # Input signature
gr.io_signature(1, 1, gr.sizeof_float)) # Output signature
-
+
w_p = 1/tau
w_pp = math.tan (w_p / (fs * 2)) # prewarped analog freq
@@ -135,9 +135,9 @@ class fm_preemph(gr.hier_block2):
gr.hier_block2.__init__(self, "fm_deemph",
gr.io_signature(1, 1, gr.sizeof_float), # Input signature
gr.io_signature(1, 1, gr.sizeof_float)) # Output signature
-
+
# FIXME make this compute the right answer
-
+
btaps = [1]
ataps = [1]
diff --git a/gnuradio-core/src/python/gnuradio/blks2impl/nbfm_rx.py b/gnuradio-core/src/python/gnuradio/blks2impl/nbfm_rx.py
index dcdd460b5..8bcb47ae1 100644
--- a/gnuradio-core/src/python/gnuradio/blks2impl/nbfm_rx.py
+++ b/gnuradio-core/src/python/gnuradio/blks2impl/nbfm_rx.py
@@ -1,23 +1,23 @@
#
# Copyright 2005 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,
# Boston, MA 02110-1301, USA.
-#
+#
import math
from gnuradio import gr, optfir
diff --git a/gnuradio-core/src/python/gnuradio/blks2impl/nbfm_tx.py b/gnuradio-core/src/python/gnuradio/blks2impl/nbfm_tx.py
index 15818c204..839cf6784 100644
--- a/gnuradio-core/src/python/gnuradio/blks2impl/nbfm_tx.py
+++ b/gnuradio-core/src/python/gnuradio/blks2impl/nbfm_tx.py
@@ -1,23 +1,23 @@
#
# Copyright 2005 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,
# Boston, MA 02110-1301, USA.
-#
+#
import math
from gnuradio import gr, optfir
@@ -48,7 +48,7 @@ class nbfm_tx(gr.hier_block2):
gr.hier_block2.__init__(self, "nbfm_tx",
gr.io_signature(1, 1, gr.sizeof_float), # Input signature
gr.io_signature(1, 1, gr.sizeof_gr_complex)) # Output signature
-
+
# FIXME audio_rate and quad_rate ought to be exact rationals
audio_rate = int(audio_rate)
quad_rate = int(quad_rate)
@@ -56,9 +56,9 @@ class nbfm_tx(gr.hier_block2):
if quad_rate % audio_rate != 0:
raise ValueError, "quad_rate is not an integer multiple of audio_rate"
-
+
do_interp = audio_rate != quad_rate
-
+
if do_interp:
interp_factor = quad_rate / audio_rate
interp_taps = optfir.low_pass (interp_factor, # gain
@@ -72,7 +72,7 @@ class nbfm_tx(gr.hier_block2):
self.interpolator = gr.interp_fir_filter_fff (interp_factor, interp_taps)
self.preemph = fm_preemph (quad_rate, tau=tau)
-
+
k = 2 * math.pi * max_dev / quad_rate
self.modulator = gr.frequency_modulator_fc (k)
@@ -80,8 +80,8 @@ class nbfm_tx(gr.hier_block2):
self.connect (self, self.interpolator, self.preemph, self.modulator, self)
else:
self.connect(self, self.preemph, self.modulator, self)
-
-
+
+
class ctcss_gen_f(gr.hier_block2):
def __init__(self, sample_rate, tone_freq):
gr.hier_block2.__init__(self, "ctcss_gen_f",
@@ -89,4 +89,4 @@ class ctcss_gen_f(gr.hier_block2):
gr.io_signature(1, 1, gr.sizeof_float)) # Output signature
self.plgen = gr.sig_source_f(sample_rate, gr.GR_SIN_WAVE, tone_freq, 0.1, 0.0)
- self.connect(self.plgen, self)
+ self.connect(self.plgen, self)
diff --git a/gnuradio-core/src/python/gnuradio/blks2impl/pfb_arb_resampler.py b/gnuradio-core/src/python/gnuradio/blks2impl/pfb_arb_resampler.py
index 3aadf700b..e83c327fc 100644
--- a/gnuradio-core/src/python/gnuradio/blks2impl/pfb_arb_resampler.py
+++ b/gnuradio-core/src/python/gnuradio/blks2impl/pfb_arb_resampler.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2009 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, optfir
@@ -35,7 +35,7 @@ class pfb_arb_resampler_ccf(gr.hier_block2):
gr.hier_block2.__init__(self, "pfb_arb_resampler_ccf",
gr.io_signature(1, 1, gr.sizeof_gr_complex), # Input signature
gr.io_signature(1, 1, gr.sizeof_gr_complex)) # Output signature
-
+
self._rate = rate
self._size = flt_size
@@ -63,7 +63,7 @@ class pfb_arb_resampler_ccf(gr.hier_block2):
self.pfb = gr.pfb_arb_resampler_ccf(self._rate, self._taps, self._size)
#print "PFB has %d taps\n" % (len(self._taps),)
-
+
self.connect(self, self.pfb)
self.connect(self.pfb, self)
@@ -88,7 +88,7 @@ class pfb_arb_resampler_fff(gr.hier_block2):
gr.hier_block2.__init__(self, "pfb_arb_resampler_fff",
gr.io_signature(1, 1, gr.sizeof_float), # Input signature
gr.io_signature(1, 1, gr.sizeof_float)) # Output signature
-
+
self._rate = rate
self._size = flt_size
@@ -116,7 +116,7 @@ class pfb_arb_resampler_fff(gr.hier_block2):
self.pfb = gr.pfb_arb_resampler_fff(self._rate, self._taps, self._size)
#print "PFB has %d taps\n" % (len(self._taps),)
-
+
self.connect(self, self.pfb)
self.connect(self.pfb, self)
diff --git a/gnuradio-core/src/python/gnuradio/blks2impl/pfb_channelizer.py b/gnuradio-core/src/python/gnuradio/blks2impl/pfb_channelizer.py
index dea71b286..4bbe1bec6 100644
--- a/gnuradio-core/src/python/gnuradio/blks2impl/pfb_channelizer.py
+++ b/gnuradio-core/src/python/gnuradio/blks2impl/pfb_channelizer.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2009,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, optfir
@@ -69,5 +69,5 @@ class pfb_channelizer_ccf(gr.hier_block2):
def set_channel_map(self, newmap):
self.pfb.set_channel_map(newmap)
-
-
+
+
diff --git a/gnuradio-core/src/python/gnuradio/blks2impl/pfb_decimator.py b/gnuradio-core/src/python/gnuradio/blks2impl/pfb_decimator.py
index 2e36e7bc1..adcdfe9ba 100644
--- a/gnuradio-core/src/python/gnuradio/blks2impl/pfb_decimator.py
+++ b/gnuradio-core/src/python/gnuradio/blks2impl/pfb_decimator.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2009 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, optfir
diff --git a/gnuradio-core/src/python/gnuradio/blks2impl/pfb_interpolator.py b/gnuradio-core/src/python/gnuradio/blks2impl/pfb_interpolator.py
index a6094f7f4..5492dfcac 100644
--- a/gnuradio-core/src/python/gnuradio/blks2impl/pfb_interpolator.py
+++ b/gnuradio-core/src/python/gnuradio/blks2impl/pfb_interpolator.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2009 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, optfir
@@ -64,7 +64,7 @@ class pfb_interpolator_ccf(gr.hier_block2):
self.connect(self, self.pfb)
self.connect(self.pfb, self)
-
-
-
-
+
+
+
+
diff --git a/gnuradio-core/src/python/gnuradio/blks2impl/rational_resampler.py b/gnuradio-core/src/python/gnuradio/blks2impl/rational_resampler.py
index b7de0de7c..eea12af95 100644
--- a/gnuradio-core/src/python/gnuradio/blks2impl/rational_resampler.py
+++ b/gnuradio-core/src/python/gnuradio/blks2impl/rational_resampler.py
@@ -1,23 +1,23 @@
#
# Copyright 2005,2007 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gru
@@ -91,7 +91,7 @@ class _rational_resampler_base(gr.hier_block2):
d = gru.gcd(interpolation, decimation)
interpolation = interpolation // d
decimation = decimation // d
-
+
if taps is None:
taps = design_filter(interpolation, decimation, fractional_bw)
@@ -118,7 +118,7 @@ class rational_resampler_ccf(_rational_resampler_base):
Rational resampling polyphase FIR filter with
complex input, complex output and float taps.
"""
- _rational_resampler_base.__init__(self, gr.rational_resampler_base_ccf,
+ _rational_resampler_base.__init__(self, gr.rational_resampler_base_ccf,
interpolation, decimation, taps, fractional_bw)
class rational_resampler_ccc(_rational_resampler_base):
@@ -127,5 +127,5 @@ class rational_resampler_ccc(_rational_resampler_base):
Rational resampling polyphase FIR filter with
complex input, complex output and complex taps.
"""
- _rational_resampler_base.__init__(self, gr.rational_resampler_base_ccc,
+ _rational_resampler_base.__init__(self, gr.rational_resampler_base_ccc,
interpolation, decimation, taps, fractional_bw)
diff --git a/gnuradio-core/src/python/gnuradio/blks2impl/standard_squelch.py b/gnuradio-core/src/python/gnuradio/blks2impl/standard_squelch.py
index c5fdc01db..bd7fb535a 100644
--- a/gnuradio-core/src/python/gnuradio/blks2impl/standard_squelch.py
+++ b/gnuradio-core/src/python/gnuradio/blks2impl/standard_squelch.py
@@ -1,23 +1,23 @@
#
# Copyright 2005,2007 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,
# Boston, MA 02110-1301, USA.
-#
+#
import math
from gnuradio import gr, optfir
@@ -27,9 +27,9 @@ class standard_squelch(gr.hier_block2):
gr.hier_block2.__init__(self, "standard_squelch",
gr.io_signature(1, 1, gr.sizeof_float), # Input signature
gr.io_signature(1, 1, gr.sizeof_float)) # Output signature
-
+
self.input_node = gr.add_const_ff(0) # FIXME kludge
-
+
self.low_iir = gr.iir_filter_ffd((0.0193,0,-0.0193),(1,1.9524,-0.9615))
self.low_square = gr.multiply_ff()
self.low_smooth = gr.single_pole_iir_filter_ff(1/(0.01*audio_rate)) # 100ms time constant
@@ -71,6 +71,6 @@ class standard_squelch(gr.hier_block2):
def threshold(self):
return self.gate.hi()
-
+
def squelch_range(self):
return (0.0, 1.0, 1.0/100)
diff --git a/gnuradio-core/src/python/gnuradio/blks2impl/wfm_rcv.py b/gnuradio-core/src/python/gnuradio/blks2impl/wfm_rcv.py
index 3bdb22cce..d1cbcf912 100644
--- a/gnuradio-core/src/python/gnuradio/blks2impl/wfm_rcv.py
+++ b/gnuradio-core/src/python/gnuradio/blks2impl/wfm_rcv.py
@@ -1,23 +1,23 @@
#
# Copyright 2005,2007 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
from gnuradio.blks2impl.fm_emph import fm_deemph
@@ -27,10 +27,10 @@ class wfm_rcv(gr.hier_block2):
def __init__ (self, quad_rate, audio_decimation):
"""
Hierarchical block for demodulating a broadcast FM signal.
-
+
The input is the downconverted complex baseband signal (gr_complex).
The output is the demodulated audio (float).
-
+
@param quad_rate: input sample rate of complex baseband input.
@type quad_rate: float
@param audio_decimation: how much to decimate quad_rate to get to audio.
@@ -45,9 +45,9 @@ class wfm_rcv(gr.hier_block2):
max_dev = 75e3
fm_demod_gain = quad_rate/(2*math.pi*max_dev)
audio_rate = quad_rate / audio_decimation
-
- # We assign to self so that outsiders can grab the demodulator
+
+ # We assign to self so that outsiders can grab the demodulator
# if they need to. E.g., to plot its output.
#
# input: complex; output: float
@@ -55,7 +55,7 @@ class wfm_rcv(gr.hier_block2):
# input: float; output: float
self.deemph = fm_deemph (audio_rate)
-
+
# compute FIR filter taps for audio filter
width_of_transition_band = audio_rate / 32
audio_coeffs = gr.firdes.low_pass (1.0, # gain
diff --git a/gnuradio-core/src/python/gnuradio/blks2impl/wfm_rcv_fmdet.py b/gnuradio-core/src/python/gnuradio/blks2impl/wfm_rcv_fmdet.py
index 14eaa1606..e229bcc2e 100755
--- a/gnuradio-core/src/python/gnuradio/blks2impl/wfm_rcv_fmdet.py
+++ b/gnuradio-core/src/python/gnuradio/blks2impl/wfm_rcv_fmdet.py
@@ -1,23 +1,23 @@
#
# Copyright 2005,2006 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
from gnuradio.blks2impl.fm_emph import fm_deemph
@@ -27,11 +27,11 @@ class wfm_rcv_fmdet(gr.hier_block2):
def __init__ (self, demod_rate, audio_decimation):
"""
Hierarchical block for demodulating a broadcast FM signal.
-
+
The input is the downconverted complex baseband signal
(gr_complex). The output is two streams of the demodulated
audio (float) 0=Left, 1=Right.
-
+
@param demod_rate: input sample rate of complex baseband input.
@type demod_rate: float
@param audio_decimation: how much to decimate demod_rate to get to audio.
@@ -48,13 +48,13 @@ class wfm_rcv_fmdet(gr.hier_block2):
# if they need to. E.g., to plot its output.
#
# input: complex; output: float
-
+
self.fm_demod = gr.fmdet_cf (demod_rate, lowfreq, highfreq, 0.05)
# input: float; output: float
self.deemph_Left = fm_deemph (audio_rate)
self.deemph_Right = fm_deemph (audio_rate)
-
+
# compute FIR filter taps for audio filter
width_of_transition_band = audio_rate / 32
audio_coeffs = gr.firdes.low_pass (1.0 , # gain
@@ -79,7 +79,7 @@ class wfm_rcv_fmdet(gr.hier_block2):
-18980,
width_of_transition_band,
gr.firdes.WIN_HAMMING)
-
+
#print "len stereo carrier filter = ",len(stereo_carrier_filter_coeffs)
#print "stereo carrier filter ", stereo_carrier_filter_coeffs
#print "width of transition band = ",width_of_transition_band, " audio rate = ", audio_rate
@@ -125,7 +125,7 @@ class wfm_rcv_fmdet(gr.hier_block2):
loop_bw = 2*math.pi/100.0
max_freq = -2.0*math.pi*18990/audio_rate;
- min_freq = -2.0*math.pi*19010/audio_rate;
+ min_freq = -2.0*math.pi*19010/audio_rate;
self.stereo_carrier_pll_recovery = gr.pll_refout_cc(loop_bw,
max_freq,
min_freq);
@@ -133,7 +133,7 @@ class wfm_rcv_fmdet(gr.hier_block2):
#self.stereo_carrier_pll_recovery.squelch_enable(False)
##pll_refout does not have squelch yet, so disabled for
#now
-
+
# set up mixer (multiplier) to get the L-R signal at
# baseband
@@ -145,7 +145,7 @@ class wfm_rcv_fmdet(gr.hier_block2):
self.LmR_real = gr.complex_to_real();
self.Make_Left = gr.add_ff();
self.Make_Right = gr.sub_ff();
-
+
self.stereo_dsbsc_filter = gr.fir_filter_fcc(audio_decimation,
stereo_dsbsc_filter_coeffs)
@@ -155,7 +155,7 @@ class wfm_rcv_fmdet(gr.hier_block2):
# send the real signal to complex filter to pick off the
# carrier and then to one side of a multiplier
self.connect (self, self.fm_demod, self.stereo_carrier_filter,
- self.stereo_carrier_pll_recovery,
+ self.stereo_carrier_pll_recovery,
(self.stereo_carrier_generator,0))
# send the already filtered carrier to the otherside of the carrier
@@ -182,7 +182,7 @@ class wfm_rcv_fmdet(gr.hier_block2):
# Make rds carrier by taking the squared pilot tone and
# multiplying by pilot tone
self.connect (self.stereo_basebander,(self.rds_carrier_generator,0))
- self.connect (self.stereo_carrier_pll_recovery,(self.rds_carrier_generator,1))
+ self.connect (self.stereo_carrier_pll_recovery,(self.rds_carrier_generator,1))
# take signal, filter off rds, send into mixer 0 channel
self.connect (self.fm_demod,self.rds_signal_filter,(self.rds_signal_generator,0))
@@ -194,7 +194,7 @@ class wfm_rcv_fmdet(gr.hier_block2):
# send basebanded rds signal and send into "processor"
# which for now is a null sink
self.connect (self.rds_signal_generator,self_rds_signal_processor)
-
+
if 1:
# pick off the audio, L+R that is what we used to have and
diff --git a/gnuradio-core/src/python/gnuradio/blks2impl/wfm_rcv_pll.py b/gnuradio-core/src/python/gnuradio/blks2impl/wfm_rcv_pll.py
index a2c1b3651..d4ce6d223 100644
--- a/gnuradio-core/src/python/gnuradio/blks2impl/wfm_rcv_pll.py
+++ b/gnuradio-core/src/python/gnuradio/blks2impl/wfm_rcv_pll.py
@@ -1,23 +1,23 @@
#
# Copyright 2005,2006 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
from gnuradio.blks2impl.fm_emph import fm_deemph
@@ -27,10 +27,10 @@ class wfm_rcv_pll(gr.hier_block2):
def __init__ (self, demod_rate, audio_decimation):
"""
Hierarchical block for demodulating a broadcast FM signal.
-
+
The input is the downconverted complex baseband signal (gr_complex).
The output is two streams of the demodulated audio (float) 0=Left, 1=Right.
-
+
@param demod_rate: input sample rate of complex baseband input.
@type demod_rate: float
@param audio_decimation: how much to decimate demod_rate to get to audio.
@@ -43,7 +43,7 @@ class wfm_rcv_pll(gr.hier_block2):
audio_rate = demod_rate / audio_decimation
- # We assign to self so that outsiders can grab the demodulator
+ # We assign to self so that outsiders can grab the demodulator
# if they need to. E.g., to plot its output.
#
# input: complex; output: float
@@ -54,7 +54,7 @@ class wfm_rcv_pll(gr.hier_block2):
# input: float; output: float
self.deemph_Left = fm_deemph (audio_rate)
self.deemph_Right = fm_deemph (audio_rate)
-
+
# compute FIR filter taps for audio filter
width_of_transition_band = audio_rate / 32
audio_coeffs = gr.firdes.low_pass (1.0 , # gain
@@ -75,7 +75,7 @@ class wfm_rcv_pll(gr.hier_block2):
-18980,
width_of_transition_band,
gr.firdes.WIN_HAMMING)
-
+
#print "len stereo carrier filter = ",len(stereo_carrier_filter_coeffs)
#print "stereo carrier filter ", stereo_carrier_filter_coeffs
#print "width of transition band = ",width_of_transition_band, " audio rate = ", audio_rate
@@ -126,10 +126,10 @@ class wfm_rcv_pll(gr.hier_block2):
loop_bw = 2*math.pi/100.0
max_freq = -2.0*math.pi*18990/audio_rate;
min_freq = -2.0*math.pi*19010/audio_rate;
-
+
self.stereo_carrier_pll_recovery = gr.pll_refout_cc(loop_bw, max_freq, min_freq);
- #self.stereo_carrier_pll_recovery.squelch_enable(False) #pll_refout does not have squelch yet, so disabled for now
-
+ #self.stereo_carrier_pll_recovery.squelch_enable(False) #pll_refout does not have squelch yet, so disabled for now
+
# set up mixer (multiplier) to get the L-R signal at baseband
@@ -140,7 +140,7 @@ class wfm_rcv_pll(gr.hier_block2):
self.LmR_real = gr.complex_to_real();
self.Make_Left = gr.add_ff();
self.Make_Right = gr.sub_ff();
-
+
self.stereo_dsbsc_filter = gr.fir_filter_fcc(audio_decimation, stereo_dsbsc_filter_coeffs)
@@ -166,14 +166,14 @@ class wfm_rcv_pll(gr.hier_block2):
# Make rds carrier by taking the squared pilot tone and multiplying by pilot tone
self.connect (self.stereo_basebander,(self.rds_carrier_generator,0))
- self.connect (self.stereo_carrier_pll_recovery,(self.rds_carrier_generator,1))
+ self.connect (self.stereo_carrier_pll_recovery,(self.rds_carrier_generator,1))
# take signal, filter off rds, send into mixer 0 channel
self.connect (self.fm_demod,self.rds_signal_filter,(self.rds_signal_generator,0))
# take rds_carrier_generator output and send into mixer 1 channel
self.connect (self.rds_carrier_generator,(self.rds_signal_generator,1))
# send basebanded rds signal and send into "processor" which for now is a null sink
self.connect (self.rds_signal_generator,self_rds_signal_processor)
-
+
if 1:
# pick off the audio, L+R that is what we used to have and send it to the summer
diff --git a/gnuradio-core/src/python/gnuradio/blks2impl/wfm_tx.py b/gnuradio-core/src/python/gnuradio/blks2impl/wfm_tx.py
index c7c831ca1..3fcf98f89 100644
--- a/gnuradio-core/src/python/gnuradio/blks2impl/wfm_tx.py
+++ b/gnuradio-core/src/python/gnuradio/blks2impl/wfm_tx.py
@@ -1,23 +1,23 @@
#
# Copyright 2005,2007 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,
# Boston, MA 02110-1301, USA.
-#
+#
import math
from gnuradio import gr, optfir
@@ -45,7 +45,7 @@ class wfm_tx(gr.hier_block2):
gr.hier_block2.__init__(self, "wfm_tx",
gr.io_signature(1, 1, gr.sizeof_float), # Input signature
gr.io_signature(1, 1, gr.sizeof_gr_complex)) # Output signature
-
+
# FIXME audio_rate and quad_rate ought to be exact rationals
audio_rate = int(audio_rate)
quad_rate = int(quad_rate)
@@ -53,9 +53,9 @@ class wfm_tx(gr.hier_block2):
if quad_rate % audio_rate != 0:
raise ValueError, "quad_rate is not an integer multiple of audio_rate"
-
+
do_interp = audio_rate != quad_rate
-
+
if do_interp:
interp_factor = quad_rate / audio_rate
interp_taps = optfir.low_pass (interp_factor, # gain
@@ -69,7 +69,7 @@ class wfm_tx(gr.hier_block2):
self.interpolator = gr.interp_fir_filter_fff (interp_factor, interp_taps)
self.preemph = fm_preemph (quad_rate, tau=tau)
-
+
k = 2 * math.pi * max_dev / quad_rate
self.modulator = gr.frequency_modulator_fc (k)
diff --git a/gnuradio-core/src/python/gnuradio/eng_notation.py b/gnuradio-core/src/python/gnuradio/eng_notation.py
index 63ff19944..c552a45f5 100644
--- a/gnuradio-core/src/python/gnuradio/eng_notation.py
+++ b/gnuradio-core/src/python/gnuradio/eng_notation.py
@@ -1,23 +1,23 @@
#
# Copyright 2003 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,
# Boston, MA 02110-1301, USA.
-#
+#
scale_factor = {}
scale_factor['E'] = 1e18
diff --git a/gnuradio-core/src/python/gnuradio/eng_option.py b/gnuradio-core/src/python/gnuradio/eng_option.py
index e10235f14..02e9b0b6d 100644
--- a/gnuradio-core/src/python/gnuradio/eng_option.py
+++ b/gnuradio-core/src/python/gnuradio/eng_option.py
@@ -1,23 +1,23 @@
#
# Copyright 2004 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,
# Boston, MA 02110-1301, USA.
-#
+#
'''Add support for engineering notation to optparse.OptionParser'''
diff --git a/gnuradio-core/src/python/gnuradio/gr/__init__.py b/gnuradio-core/src/python/gnuradio/gr/__init__.py
index 73ca8e08f..602d1119f 100644
--- a/gnuradio-core/src/python/gnuradio/gr/__init__.py
+++ b/gnuradio-core/src/python/gnuradio/gr/__init__.py
@@ -1,23 +1,23 @@
#
# Copyright 2003,2004,2006,2008,2009,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
# The presence of this file turns this directory into a Python package
@@ -35,7 +35,7 @@ except ImportError:
from DLFCN import RTLD_GLOBAL as _RTLD_GLOBAL
except ImportError:
pass
-
+
if _RTLD_GLOBAL != 0:
_dlopenflags = sys.getdlopenflags()
sys.setdlopenflags(_dlopenflags|_RTLD_GLOBAL)
diff --git a/gnuradio-core/src/python/gnuradio/gr/benchmark_filters.py b/gnuradio-core/src/python/gnuradio/gr/benchmark_filters.py
index 4d99a397f..4fc10b721 100755
--- a/gnuradio-core/src/python/gnuradio/gr/benchmark_filters.py
+++ b/gnuradio-core/src/python/gnuradio/gr/benchmark_filters.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2005,2006,2007 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,
# Boston, MA 02110-1301, USA.
-#
+#
import time
import random
@@ -32,7 +32,7 @@ def make_random_complex_tuple(L):
result.append(complex(random.uniform(-1000,1000),
random.uniform(-1000,1000)))
return tuple(result)
-
+
def benchmark(name, creator, dec, ntaps, total_test_size, block_size):
block_size = 32768
diff --git a/gnuradio-core/src/python/gnuradio/gr/exceptions.py b/gnuradio-core/src/python/gnuradio/gr/exceptions.py
index 40b97e3ef..dba04750b 100644
--- a/gnuradio-core/src/python/gnuradio/gr/exceptions.py
+++ b/gnuradio-core/src/python/gnuradio/gr/exceptions.py
@@ -1,18 +1,18 @@
#
# Copyright 2004 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,
diff --git a/gnuradio-core/src/python/gnuradio/gr/gr_threading.py b/gnuradio-core/src/python/gnuradio/gr/gr_threading.py
index 56d4228f7..5d6f0fdaf 100644
--- a/gnuradio-core/src/python/gnuradio/gr/gr_threading.py
+++ b/gnuradio-core/src/python/gnuradio/gr/gr_threading.py
@@ -1,23 +1,23 @@
#
# Copyright 2005 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,
# Boston, MA 02110-1301, USA.
-#
+#
from sys import version_info as _version_info
diff --git a/gnuradio-core/src/python/gnuradio/gr/hier_block2.py b/gnuradio-core/src/python/gnuradio/gr/hier_block2.py
index debb65d91..0c45f1691 100644
--- a/gnuradio-core/src/python/gnuradio/gr/hier_block2.py
+++ b/gnuradio-core/src/python/gnuradio/gr/hier_block2.py
@@ -1,23 +1,23 @@
#
# Copyright 2006,2007 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio_core import hier_block2_swig
@@ -95,7 +95,7 @@ class hier_block2(object):
If more than two arguments are provided, they are disconnected successively.
"""
-
+
if len (points) < 1:
raise ValueError, ("disconnect requires at least one endpoint; %d provided." % (len (points),))
else:
diff --git a/gnuradio-core/src/python/gnuradio/gr/prefs.py b/gnuradio-core/src/python/gnuradio/gr/prefs.py
index 40347a2f4..644aea848 100644
--- a/gnuradio-core/src/python/gnuradio/gr/prefs.py
+++ b/gnuradio-core/src/python/gnuradio/gr/prefs.py
@@ -1,23 +1,23 @@
#
# Copyright 2006,2009 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,
# Boston, MA 02110-1301, USA.
-#
+#
import gnuradio_core as gsp
_prefs_base = gsp.gr_prefs
@@ -31,7 +31,7 @@ import sys
def _user_prefs_filename():
return os.path.expanduser('~/.gnuradio/config.conf')
-
+
def _sys_prefs_dirname():
return gsp.prefsdir()
@@ -44,7 +44,7 @@ def _bool(x):
if isinstance(x, (float, int)):
return bool(x)
raise TypeError, x
-
+
class _prefs(_prefs_base):
"""
@@ -98,7 +98,7 @@ class _prefs(_prefs_base):
return self.cp.getint(section, option)
except:
return default_val
-
+
def get_double(self, section, option, default_val):
try:
return self.cp.getfloat(section, option)
@@ -115,7 +115,7 @@ _prefs_db = _prefs()
# (make check uses this to avoid interactions.)
if os.getenv("GR_DONT_LOAD_PREFS", None) is None:
_prefs_db._read_files()
-
+
_prefs_base.set_singleton(_prefs_db) # tell C++ what instance to use
diff --git a/gnuradio-core/src/python/gnuradio/gr/pubsub.py b/gnuradio-core/src/python/gnuradio/gr/pubsub.py
index 8fb7a8519..90568418f 100644
--- a/gnuradio-core/src/python/gnuradio/gr/pubsub.py
+++ b/gnuradio-core/src/python/gnuradio/gr/pubsub.py
@@ -31,15 +31,15 @@ class pubsub(dict):
self._publishers = { }
self._subscribers = { }
self._proxies = { }
-
+
def __missing__(self, key, value=None):
dict.__setitem__(self, key, value)
self._publishers[key] = None
self._subscribers[key] = []
self._proxies[key] = None
-
+
def __setitem__(self, key, val):
- if not self.has_key(key):
+ if not self.has_key(key):
self.__missing__(key, val)
elif self._proxies[key] is not None:
(p, newkey) = self._proxies[key]
@@ -68,7 +68,7 @@ class pubsub(dict):
p.publish(newkey, publisher)
else:
self._publishers[key] = publisher
-
+
def subscribe(self, key, subscriber):
if not self.has_key(key): self.__missing__(key)
if self._proxies[key] is not None:
@@ -76,14 +76,14 @@ class pubsub(dict):
p.subscribe(newkey, subscriber)
else:
self._subscribers[key].append(subscriber)
-
+
def unpublish(self, key):
if self._proxies[key] is not None:
(p, newkey) = self._proxies[key]
p.unpublish(newkey)
else:
self._publishers[key] = None
-
+
def unsubscribe(self, key, subscriber):
if self._proxies[key] is not None:
(p, newkey) = self._proxies[key]
@@ -94,7 +94,7 @@ class pubsub(dict):
def proxy(self, key, p, newkey=None):
if not self.has_key(key): self.__missing__(key)
if newkey is None: newkey = key
- self._proxies[key] = (p, newkey)
+ self._proxies[key] = (p, newkey)
def unproxy(self, key):
self._proxies[key] = None
@@ -125,7 +125,7 @@ if __name__ == "__main__":
# The third is a lambda function
o.subscribe('foo', lambda x: sys.stdout.write('val='+`x`+'\n'))
- # Update key 'foo', will notify subscribers
+ # Update key 'foo', will notify subscribers
print "Updating 'foo' with three subscribers:"
o['foo'] = 'bar';
@@ -135,7 +135,7 @@ if __name__ == "__main__":
# Update now will only trigger second and third subscriber
print "Updating 'foo' after removing a subscriber:"
o['foo'] = 'bar2';
-
+
# Publish a key as a function, in this case, a lambda function
o.publish('baz', lambda : 42)
print "Published value of 'baz':", o['baz']
@@ -145,7 +145,7 @@ if __name__ == "__main__":
# This will return None, as there is no publisher
print "Value of 'baz' with no publisher:", o['baz']
-
+
# Set 'baz' key, it gets cached
o['baz'] = 'bazzz'
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_add_and_friends.py b/gnuradio-core/src/python/gnuradio/gr/qa_add_and_friends.py
index e3b20c3c3..7ccbbe8ad 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_add_and_friends.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_add_and_friends.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_add_v_and_friends.py b/gnuradio-core/src/python/gnuradio/gr/qa_add_v_and_friends.py
index 90056e09f..c8df47b39 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_add_v_and_friends.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_add_v_and_friends.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
@@ -91,7 +91,7 @@ class test_add_v_and_friends(gr_unittest.TestCase):
self.tb.run()
result_data = dst.data()
self.assertEqual(exp_data, result_data)
-
+
def help_const_ii(self, src_data, exp_data, op):
src = gr.vector_source_i(src_data)
srcv = gr.stream_to_vector(gr.sizeof_int, len(src_data))
@@ -101,7 +101,7 @@ class test_add_v_and_friends(gr_unittest.TestCase):
self.tb.run()
result_data = dst.data()
self.assertEqual(exp_data, result_data)
-
+
def help_const_ff(self, src_data, exp_data, op):
src = gr.vector_source_f(src_data)
srcv = gr.stream_to_vector(gr.sizeof_float, len(src_data))
@@ -111,7 +111,7 @@ class test_add_v_and_friends(gr_unittest.TestCase):
self.tb.run()
result_data = dst.data()
self.assertEqual(exp_data, result_data)
-
+
def help_const_cc(self, src_data, exp_data, op):
src = gr.vector_source_c(src_data)
srcv = gr.stream_to_vector(gr.sizeof_gr_complex, len(src_data))
@@ -121,7 +121,7 @@ class test_add_v_and_friends(gr_unittest.TestCase):
self.tb.run()
result_data = dst.data()
self.assertEqual(exp_data, result_data)
-
+
def test_add_vss_one(self):
src1_data = (1,)
@@ -130,7 +130,7 @@ class test_add_v_and_friends(gr_unittest.TestCase):
expected_result = (6,)
op = gr.add_vss(1)
self.help_ss(1, (src1_data, src2_data, src3_data), expected_result, op)
-
+
def test_add_vss_five(self):
src1_data = (1, 2, 3, 4, 5)
src2_data = (6, 7, 8, 9, 10)
@@ -146,7 +146,7 @@ class test_add_v_and_friends(gr_unittest.TestCase):
expected_result = (6,)
op = gr.add_vii(1)
self.help_ii(1, (src1_data, src2_data, src3_data), expected_result, op)
-
+
def test_add_vii_five(self):
src1_data = (1, 2, 3, 4, 5)
src2_data = (6, 7, 8, 9, 10)
@@ -162,7 +162,7 @@ class test_add_v_and_friends(gr_unittest.TestCase):
expected_result = (6.0,)
op = gr.add_vff(1)
self.help_ff(1, (src1_data, src2_data, src3_data), expected_result, op)
-
+
def test_add_vff_five(self):
src1_data = (1.0, 2.0, 3.0, 4.0, 5.0)
src2_data = (6.0, 7.0, 8.0, 9.0, 10.0)
@@ -178,7 +178,7 @@ class test_add_v_and_friends(gr_unittest.TestCase):
expected_result = (9.0+12j,)
op = gr.add_vcc(1)
self.help_cc(1, (src1_data, src2_data, src3_data), expected_result, op)
-
+
def test_add_vcc_five(self):
src1_data = (1.0+2.0j, 3.0+4.0j, 5.0+6.0j, 7.0+8.0j, 9.0+10.0j)
src2_data = (11.0+12.0j, 13.0+14.0j, 15.0+16.0j, 17.0+18.0j, 19.0+20.0j)
@@ -243,7 +243,7 @@ class test_add_v_and_friends(gr_unittest.TestCase):
expected_result = (6,)
op = gr.multiply_vss(1)
self.help_ss(1, (src1_data, src2_data, src3_data), expected_result, op)
-
+
def test_multiply_vss_five(self):
src1_data = (1, 2, 3, 4, 5)
src2_data = (6, 7, 8, 9, 10)
@@ -259,7 +259,7 @@ class test_add_v_and_friends(gr_unittest.TestCase):
expected_result = (6,)
op = gr.multiply_vii(1)
self.help_ii(1, (src1_data, src2_data, src3_data), expected_result, op)
-
+
def test_multiply_vii_five(self):
src1_data = (1, 2, 3, 4, 5)
src2_data = (6, 7, 8, 9, 10)
@@ -275,7 +275,7 @@ class test_add_v_and_friends(gr_unittest.TestCase):
expected_result = (6.0,)
op = gr.multiply_vff(1)
self.help_ff(1, (src1_data, src2_data, src3_data), expected_result, op)
-
+
def test_multiply_vff_five(self):
src1_data = (1.0, 2.0, 3.0, 4.0, 5.0)
src2_data = (6.0, 7.0, 8.0, 9.0, 10.0)
@@ -291,7 +291,7 @@ class test_add_v_and_friends(gr_unittest.TestCase):
expected_result = (-85+20j,)
op = gr.multiply_vcc(1)
self.help_cc(1, (src1_data, src2_data, src3_data), expected_result, op)
-
+
def test_multiply_vcc_five(self):
src1_data = (1.0+2.0j, 3.0+4.0j, 5.0+6.0j, 7.0+8.0j, 9.0+10.0j)
src2_data = (11.0+12.0j, 13.0+14.0j, 15.0+16.0j, 17.0+18.0j, 19.0+20.0j)
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_agc.py b/gnuradio-core/src/python/gnuradio/gr/qa_agc.py
index c55d191e0..9fd633576 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_agc.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_agc.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
import math
@@ -33,7 +33,7 @@ class test_agc (gr_unittest.TestCase):
def tearDown (self):
self.tb = None
-
+
def test_001(self):
''' Test the complex AGC loop (single rate input) '''
tb = self.tb
@@ -97,7 +97,7 @@ class test_agc (gr_unittest.TestCase):
head = gr.head (gr.sizeof_gr_complex, int (5*sampling_freq * 0.10))
agc = gr.agc_cc(1e-3, 1, 1, 1000)
-
+
tb.connect (src1, head)
tb.connect (head, agc)
tb.connect (agc, dst1)
@@ -172,7 +172,7 @@ class test_agc (gr_unittest.TestCase):
head = gr.head (gr.sizeof_float, int (5*sampling_freq * 0.10))
agc = gr.agc_ff(1e-3, 1, 1, 1000)
-
+
tb.connect (src1, head)
tb.connect (head, agc)
tb.connect (agc, dst1)
@@ -247,7 +247,7 @@ class test_agc (gr_unittest.TestCase):
head = gr.head (gr.sizeof_gr_complex, int (5*sampling_freq * 0.10))
agc = gr.agc2_cc(1e-2, 1e-3, 1, 1, 1000)
-
+
tb.connect (src1, head)
tb.connect (head, agc)
tb.connect (agc, dst1)
@@ -322,7 +322,7 @@ class test_agc (gr_unittest.TestCase):
head = gr.head (gr.sizeof_float, int (5*sampling_freq * 0.10))
agc = gr.agc2_ff(1e-2, 1e-3, 1, 1, 1000)
-
+
tb.connect (src1, head)
tb.connect (head, agc)
tb.connect (agc, dst1)
@@ -398,7 +398,7 @@ class test_agc (gr_unittest.TestCase):
head = gr.head (gr.sizeof_gr_complex, int (5*sampling_freq * 0.10))
agc = gr.agc2_cc(1e-2, 1e-3, 1, 1, 1000)
-
+
tb.connect (src1, head)
tb.connect (head, agc)
tb.connect (agc, dst1)
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_argmax.py b/gnuradio-core/src/python/gnuradio/gr/qa_argmax.py
index a9db3295a..564eb620b 100644
--- a/gnuradio-core/src/python/gnuradio/gr/qa_argmax.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_argmax.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
import math
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_bin_statistics.py b/gnuradio-core/src/python/gnuradio/gr/qa_bin_statistics.py
index b8b718a09..8a6dd9056 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_bin_statistics.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_bin_statistics.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2006,2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
import random
@@ -44,7 +44,7 @@ class counter(gr.feval_dd):
t = self.count
self.count = self.count + self.step_size
return t
-
+
class counter3(gr.feval_dd):
def __init__(self, f, step_size):
@@ -62,7 +62,7 @@ class counter3(gr.feval_dd):
except Exception, e:
print "Exception: ", e
return t
-
+
def foobar3(new_t):
#print "foobar3: new_t =", new_t
pass
@@ -84,7 +84,7 @@ class counter4(gr.feval_dd):
except Exception, e:
print "Exception: ", e
return t
-
+
class parse_msg(object):
def __init__(self, msg):
@@ -122,7 +122,7 @@ class xtest_bin_statistics(gr_unittest.TestCase):
9, 10, 11, 12,
13, 14, 15, 16
)])
-
+
src = gr.vector_source_f(src_data, False)
s2v = gr.stream_to_vector(gr.sizeof_float, vlen)
stats = gr.bin_statistics_f(vlen, msgq, tune, tune_delay, dwell_delay)
@@ -150,7 +150,7 @@ class xtest_bin_statistics(gr_unittest.TestCase):
expected_results = tuple([float(x) for x in
( 9, 10, 11, 12)])
-
+
src = gr.vector_source_f(src_data, False)
s2v = gr.stream_to_vector(gr.sizeof_float, vlen)
stats = gr.bin_statistics_f(vlen, msgq, tune, tune_delay, dwell_delay)
@@ -180,7 +180,7 @@ class xtest_bin_statistics(gr_unittest.TestCase):
expected_results = tuple([float(x) for x in
( 9, 10, 11, 12)])
-
+
src = gr.vector_source_f(src_data, False)
s2v = gr.stream_to_vector(gr.sizeof_float, vlen)
stats = gr.bin_statistics_f(vlen, msgq, tune, tune_delay, dwell_delay)
@@ -196,7 +196,7 @@ class xtest_bin_statistics(gr_unittest.TestCase):
def foobar4(self, new_t):
#print "foobar4: new_t =", new_t
pass
-
+
def xtest_004(self):
vlen = 4
tune = counter4(self, 1)
@@ -213,7 +213,7 @@ class xtest_bin_statistics(gr_unittest.TestCase):
expected_results = tuple([float(x) for x in
( 9, 10, 11, 12)])
-
+
src = gr.vector_source_f(src_data, False)
s2v = gr.stream_to_vector(gr.sizeof_float, vlen)
stats = gr.bin_statistics_f(vlen, msgq, tune, tune_delay, dwell_delay)
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_boolean_operators.py b/gnuradio-core/src/python/gnuradio/gr/qa_boolean_operators.py
index 8cfb60099..d7d134dcb 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_boolean_operators.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_boolean_operators.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2007,2008,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
@@ -59,7 +59,7 @@ class test_boolean_operators (gr_unittest.TestCase):
self.tb.run ()
result_data = dst.data ()
self.assertEqual (exp_data, result_data)
-
+
def test_xor_ss (self):
src1_data = (1, 2, 3, 0x5004, 0x1150)
src2_data = (8, 2, 1 , 0x0508, 0x1105)
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_complex_to_xxx.py b/gnuradio-core/src/python/gnuradio/gr/qa_complex_to_xxx.py
index 01679dc05..946c0d7f8 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_complex_to_xxx.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_complex_to_xxx.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
import math
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_conjugate.py b/gnuradio-core/src/python/gnuradio/gr/qa_conjugate.py
index c07902a5a..17fa891e2 100644
--- a/gnuradio-core/src/python/gnuradio/gr/qa_conjugate.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_conjugate.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2012 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
@@ -34,11 +34,11 @@ class test_conjugate (gr_unittest.TestCase):
src_data = (-2-2j, -1-1j, -2+2j, -1+1j,
2-2j, 1-1j, 2+2j, 1+1j,
0+0j)
-
+
exp_data = (-2+2j, -1+1j, -2-2j, -1-1j,
2+2j, 1+1j, 2-2j, 1-1j,
0-0j)
-
+
src = gr.vector_source_c(src_data)
op = gr.conjugate_cc ()
dst = gr.vector_sink_c ()
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_copy.py b/gnuradio-core/src/python/gnuradio/gr/qa_copy.py
index e8ee480cc..68c8e451f 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_copy.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_copy.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2009,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
@@ -40,7 +40,7 @@ class test_copy(gr_unittest.TestCase):
self.tb.run()
dst_data = dst.data()
self.assertEqual(expected_result, dst_data)
-
+
def test_copy_drop (self):
src_data = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
expected_result = ()
@@ -52,7 +52,7 @@ class test_copy(gr_unittest.TestCase):
self.tb.run()
dst_data = dst.data()
self.assertEqual(expected_result, dst_data)
-
+
if __name__ == '__main__':
gr_unittest.run(test_copy, "test_copy.xml")
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_dc_blocker.py b/gnuradio-core/src/python/gnuradio/gr/qa_dc_blocker.py
index 8977b475a..0f6fa86f5 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_dc_blocker.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_dc_blocker.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
@@ -32,7 +32,7 @@ class test_dc_blocker(gr_unittest.TestCase):
def test_001(self):
''' Test impulse response - long form, cc '''
- src_data = [1,] + 100*[0,]
+ src_data = [1,] + 100*[0,]
expected_result = ((-0.02072429656982422+0j), (-0.02081298828125+0j),
(0.979156494140625+0j), (-0.02081298828125+0j),
(-0.02072429656982422+0j))
@@ -50,7 +50,7 @@ class test_dc_blocker(gr_unittest.TestCase):
def test_002(self):
''' Test impulse response - short form, cc '''
- src_data = [1,] + 100*[0,]
+ src_data = [1,] + 100*[0,]
expected_result = ((-0.029296875+0j), (-0.0302734375+0j),
(0.96875+0j), (-0.0302734375+0j),
(-0.029296875+0j))
@@ -69,7 +69,7 @@ class test_dc_blocker(gr_unittest.TestCase):
def test_003(self):
''' Test impulse response - long form, ff '''
- src_data = [1,] + 100*[0,]
+ src_data = [1,] + 100*[0,]
expected_result = ((-0.02072429656982422), (-0.02081298828125),
(0.979156494140625), (-0.02081298828125),
(-0.02072429656982422))
@@ -87,7 +87,7 @@ class test_dc_blocker(gr_unittest.TestCase):
def test_004(self):
''' Test impulse response - short form, ff '''
- src_data = [1,] + 100*[0,]
+ src_data = [1,] + 100*[0,]
expected_result = ((-0.029296875), (-0.0302734375),
(0.96875), (-0.0302734375),
(-0.029296875))
@@ -105,4 +105,4 @@ class test_dc_blocker(gr_unittest.TestCase):
if __name__ == '__main__':
gr_unittest.run(test_dc_blocker, "test_dc_blocker.xml")
-
+
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_delay.py b/gnuradio-core/src/python/gnuradio/gr/qa_delay.py
index 114e50108..0d0bc1330 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_delay.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_delay.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
import math
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_diff_encoder.py b/gnuradio-core/src/python/gnuradio/gr/qa_diff_encoder.py
index 97e9e329a..c1fe2a700 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_diff_encoder.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_diff_encoder.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2006,2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
import math
@@ -30,7 +30,7 @@ def make_random_int_tuple(L, min, max):
result.append(random.randint(min, max))
return tuple(result)
-
+
class test_diff_encoder (gr_unittest.TestCase):
def setUp (self):
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_diff_phasor_cc.py b/gnuradio-core/src/python/gnuradio/gr/qa_diff_phasor_cc.py
index 5ac115e20..41f96aa61 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_diff_phasor_cc.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_diff_phasor_cc.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
import math
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_ecc_ccsds_27.py b/gnuradio-core/src/python/gnuradio/gr/qa_ecc_ccsds_27.py
index caf3959f4..29122ff3e 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_ecc_ccsds_27.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_ecc_ccsds_27.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
@@ -44,7 +44,7 @@ class test_ccsds_27 (gr_unittest.TestCase):
self.tb.run()
dst_data = dst.data()
self.assertEqual(expected, dst_data)
-
+
if __name__ == '__main__':
gr_unittest.run(test_ccsds_27, "test_ccsds_27.xml")
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_feval.py b/gnuradio-core/src/python/gnuradio/gr/qa_feval.py
index a91409537..9018e12f3 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_feval.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_feval.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2006,2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
@@ -59,7 +59,7 @@ class test_feval(gr_unittest.TestCase):
actual_result = tuple([gr.feval_dd_example(f, x) for x in src_data])
self.assertEqual(expected_result, actual_result)
-
+
def test_ll_1(self):
f = my_add2_ll()
src_data = (0, 1, 2, 3, 4)
@@ -92,7 +92,7 @@ class test_feval(gr_unittest.TestCase):
# this is python -> C++ -> python and back again...
actual_result = tuple([gr.feval_cc_example(f, x) for x in src_data])
self.assertEqual(expected_result, actual_result)
-
+
def test_void_1(self):
# this is all in python
f = my_feval()
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_fft.py b/gnuradio-core/src/python/gnuradio/gr/qa_fft.py
index e90eb2e7f..693d0e67c 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_fft.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_fft.py
@@ -1,19 +1,19 @@
#!/usr/bin/env python
#
# Copyright 2008,2010 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 this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -209,4 +209,4 @@ class test_fft(gr_unittest.TestCase):
if __name__ == '__main__':
gr_unittest.run(test_fft, "test_fft.xml")
-
+
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_fft_filter.py b/gnuradio-core/src/python/gnuradio/gr/qa_fft_filter.py
index 1e9fdb6a8..c0aadc306 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_fft_filter.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_fft_filter.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2005,2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
import sys
@@ -107,7 +107,7 @@ class test_fft_filter(gr_unittest.TestCase):
#print 'expected:', expected_result
#print 'results: ', result_data
self.assertComplexTuplesAlmostEqual (expected_result, result_data, 5)
-
+
def test_ccc_002(self):
# Test nthreads
@@ -125,7 +125,7 @@ class test_fft_filter(gr_unittest.TestCase):
#print 'expected:', expected_result
#print 'results: ', result_data
self.assertComplexTuplesAlmostEqual (expected_result, result_data, 5)
-
+
def test_ccc_003(self):
tb = gr.top_block()
src_data = (0,1,2,3,4,5,6,7)
@@ -140,7 +140,7 @@ class test_fft_filter(gr_unittest.TestCase):
#print 'expected:', expected_result
#print 'results: ', result_data
self.assertComplexTuplesAlmostEqual (expected_result, result_data, 5)
-
+
def test_ccc_004(self):
random.seed(0)
@@ -160,7 +160,7 @@ class test_fft_filter(gr_unittest.TestCase):
tb.run()
result_data = dst.data()
del tb
-
+
self.assert_fft_ok2(expected_result, result_data)
def test_ccc_005(self):
@@ -227,7 +227,7 @@ class test_fft_filter(gr_unittest.TestCase):
#print 'expected:', expected_result
#print 'results: ', result_data
self.assertFloatTuplesAlmostEqual (expected_result, result_data, 5)
-
+
def test_fff_002(self):
tb = gr.top_block()
@@ -243,7 +243,7 @@ class test_fft_filter(gr_unittest.TestCase):
#print 'expected:', expected_result
#print 'results: ', result_data
self.assertFloatTuplesAlmostEqual (expected_result, result_data, 5)
-
+
def test_fff_003(self):
# Test 02 with nthreads
tb = gr.top_block()
@@ -258,7 +258,7 @@ class test_fft_filter(gr_unittest.TestCase):
tb.run()
result_data = dst.data()
self.assertFloatTuplesAlmostEqual (expected_result, result_data, 5)
-
+
def xtest_fff_004(self):
random.seed(0)
for i in xrange(25):
@@ -380,4 +380,4 @@ class test_fft_filter(gr_unittest.TestCase):
if __name__ == '__main__':
gr_unittest.run(test_fft_filter, "test_fft_filter.xml")
-
+
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_filter_delay_fc.py b/gnuradio-core/src/python/gnuradio/gr/qa_filter_delay_fc.py
index a25c65e5c..8d325fc3e 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_filter_delay_fc.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_filter_delay_fc.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
import math
@@ -34,68 +34,68 @@ class test_filter_delay_fc (gr_unittest.TestCase):
def test_001_filter_delay_one_input (self):
# expected result
- expected_result = ( -1.4678005338941702e-11j,
- -0.0011950774351134896j,
- -0.0019336787518113852j,
- -0.0034673355985432863j,
- -0.0036765895783901215j,
- -0.004916108213365078j,
- -0.0042778430506587029j,
- -0.006028641015291214j,
- -0.005476709920912981j,
- -0.0092810001224279404j,
- -0.0095402700826525688j,
- -0.016060983762145042j,
- -0.016446959227323532j,
- -0.02523401565849781j,
- -0.024382550269365311j,
- -0.035477779805660248j,
- -0.033021725714206696j,
- -0.048487484455108643j,
- -0.04543270543217659j,
- -0.069477587938308716j,
- -0.066984444856643677j,
- -0.10703597217798233j,
- -0.10620346665382385j,
- -0.1852707713842392j,
- -0.19357112050056458j,
- (7.2191945754696007e-09 -0.50004088878631592j),
- (0.58778399229049683 -0.6155126690864563j),
- (0.95105588436126709 -0.12377222627401352j),
- (0.95105588436126709 +0.41524654626846313j),
- (0.5877838134765625 +0.91611981391906738j),
- (5.8516356205018383e-09 +1.0670661926269531j),
- (-0.5877840518951416 +0.87856143712997437j),
- (-0.95105588436126709 +0.35447561740875244j),
- (-0.95105588436126709 -0.26055556535720825j),
- (-0.5877838134765625 -0.77606213092803955j),
- (-8.7774534307527574e-09 -0.96460390090942383j),
- (0.58778399229049683 -0.78470128774642944j),
- (0.95105588436126709 -0.28380891680717468j),
- (0.95105588436126709 +0.32548999786376953j),
- (0.5877838134765625 +0.82514488697052002j),
- (1.4629089051254596e-08 +1.0096219778060913j),
- (-0.5877840518951416 +0.81836479902267456j),
- (-0.95105588436126709 +0.31451958417892456j),
- (-0.95105588436126709 -0.3030143678188324j),
- (-0.5877838134765625 -0.80480599403381348j),
- (-1.7554906861505515e-08 -0.99516552686691284j),
- (0.58778399229049683 -0.80540722608566284j),
- (0.95105582475662231 -0.30557557940483093j),
- (0.95105588436126709 +0.31097668409347534j),
- (0.5877838134765625 +0.81027895212173462j),
- (2.3406542482007353e-08 +1.0000816583633423j),
- (-0.5877840518951416 +0.80908381938934326j),
- (-0.95105588436126709 +0.30904293060302734j),
- (-0.95105588436126709 -0.30904296040534973j),
- (-0.5877838134765625 -0.80908387899398804j),
- (-2.6332360292258272e-08 -1.0000815391540527j),
- (0.58778399229049683 -0.80908381938934326j),
- (0.95105582475662231 -0.30904299020767212j),
- (0.95105588436126709 +0.30904293060302734j),
- (0.5877838134765625 +0.80908381938934326j),
- (3.218399768911695e-08 +1.0000815391540527j))
-
+ expected_result = ( -1.4678005338941702e-11j,
+ -0.0011950774351134896j,
+ -0.0019336787518113852j,
+ -0.0034673355985432863j,
+ -0.0036765895783901215j,
+ -0.004916108213365078j,
+ -0.0042778430506587029j,
+ -0.006028641015291214j,
+ -0.005476709920912981j,
+ -0.0092810001224279404j,
+ -0.0095402700826525688j,
+ -0.016060983762145042j,
+ -0.016446959227323532j,
+ -0.02523401565849781j,
+ -0.024382550269365311j,
+ -0.035477779805660248j,
+ -0.033021725714206696j,
+ -0.048487484455108643j,
+ -0.04543270543217659j,
+ -0.069477587938308716j,
+ -0.066984444856643677j,
+ -0.10703597217798233j,
+ -0.10620346665382385j,
+ -0.1852707713842392j,
+ -0.19357112050056458j,
+ (7.2191945754696007e-09 -0.50004088878631592j),
+ (0.58778399229049683 -0.6155126690864563j),
+ (0.95105588436126709 -0.12377222627401352j),
+ (0.95105588436126709 +0.41524654626846313j),
+ (0.5877838134765625 +0.91611981391906738j),
+ (5.8516356205018383e-09 +1.0670661926269531j),
+ (-0.5877840518951416 +0.87856143712997437j),
+ (-0.95105588436126709 +0.35447561740875244j),
+ (-0.95105588436126709 -0.26055556535720825j),
+ (-0.5877838134765625 -0.77606213092803955j),
+ (-8.7774534307527574e-09 -0.96460390090942383j),
+ (0.58778399229049683 -0.78470128774642944j),
+ (0.95105588436126709 -0.28380891680717468j),
+ (0.95105588436126709 +0.32548999786376953j),
+ (0.5877838134765625 +0.82514488697052002j),
+ (1.4629089051254596e-08 +1.0096219778060913j),
+ (-0.5877840518951416 +0.81836479902267456j),
+ (-0.95105588436126709 +0.31451958417892456j),
+ (-0.95105588436126709 -0.3030143678188324j),
+ (-0.5877838134765625 -0.80480599403381348j),
+ (-1.7554906861505515e-08 -0.99516552686691284j),
+ (0.58778399229049683 -0.80540722608566284j),
+ (0.95105582475662231 -0.30557557940483093j),
+ (0.95105588436126709 +0.31097668409347534j),
+ (0.5877838134765625 +0.81027895212173462j),
+ (2.3406542482007353e-08 +1.0000816583633423j),
+ (-0.5877840518951416 +0.80908381938934326j),
+ (-0.95105588436126709 +0.30904293060302734j),
+ (-0.95105588436126709 -0.30904296040534973j),
+ (-0.5877838134765625 -0.80908387899398804j),
+ (-2.6332360292258272e-08 -1.0000815391540527j),
+ (0.58778399229049683 -0.80908381938934326j),
+ (0.95105582475662231 -0.30904299020767212j),
+ (0.95105588436126709 +0.30904293060302734j),
+ (0.5877838134765625 +0.80908381938934326j),
+ (3.218399768911695e-08 +1.0000815391540527j))
+
tb = self.tb
sampling_freq = 100
@@ -113,7 +113,7 @@ class test_filter_delay_fc (gr_unittest.TestCase):
tb.connect (src1, head)
tb.connect (head, hd)
tb.connect (hd,dst2)
-
+
tb.run ()
# get output
@@ -126,69 +126,69 @@ class test_filter_delay_fc (gr_unittest.TestCase):
# as above
# expected result
- expected_result = ( -1.4678005338941702e-11j,
- -0.0011950774351134896j,
- -0.0019336787518113852j,
- -0.0034673355985432863j,
- -0.0036765895783901215j,
- -0.004916108213365078j,
- -0.0042778430506587029j,
- -0.006028641015291214j,
- -0.005476709920912981j,
- -0.0092810001224279404j,
- -0.0095402700826525688j,
- -0.016060983762145042j,
- -0.016446959227323532j,
- -0.02523401565849781j,
- -0.024382550269365311j,
- -0.035477779805660248j,
- -0.033021725714206696j,
- -0.048487484455108643j,
- -0.04543270543217659j,
- -0.069477587938308716j,
- -0.066984444856643677j,
- -0.10703597217798233j,
- -0.10620346665382385j,
- -0.1852707713842392j,
- -0.19357112050056458j,
- (7.2191945754696007e-09 -0.50004088878631592j),
- (0.58778399229049683 -0.6155126690864563j),
- (0.95105588436126709 -0.12377222627401352j),
- (0.95105588436126709 +0.41524654626846313j),
- (0.5877838134765625 +0.91611981391906738j),
- (5.8516356205018383e-09 +1.0670661926269531j),
- (-0.5877840518951416 +0.87856143712997437j),
- (-0.95105588436126709 +0.35447561740875244j),
- (-0.95105588436126709 -0.26055556535720825j),
- (-0.5877838134765625 -0.77606213092803955j),
- (-8.7774534307527574e-09 -0.96460390090942383j),
- (0.58778399229049683 -0.78470128774642944j),
- (0.95105588436126709 -0.28380891680717468j),
- (0.95105588436126709 +0.32548999786376953j),
- (0.5877838134765625 +0.82514488697052002j),
- (1.4629089051254596e-08 +1.0096219778060913j),
- (-0.5877840518951416 +0.81836479902267456j),
- (-0.95105588436126709 +0.31451958417892456j),
- (-0.95105588436126709 -0.3030143678188324j),
- (-0.5877838134765625 -0.80480599403381348j),
- (-1.7554906861505515e-08 -0.99516552686691284j),
- (0.58778399229049683 -0.80540722608566284j),
- (0.95105582475662231 -0.30557557940483093j),
- (0.95105588436126709 +0.31097668409347534j),
- (0.5877838134765625 +0.81027895212173462j),
- (2.3406542482007353e-08 +1.0000816583633423j),
- (-0.5877840518951416 +0.80908381938934326j),
- (-0.95105588436126709 +0.30904293060302734j),
- (-0.95105588436126709 -0.30904296040534973j),
- (-0.5877838134765625 -0.80908387899398804j),
- (-2.6332360292258272e-08 -1.0000815391540527j),
- (0.58778399229049683 -0.80908381938934326j),
- (0.95105582475662231 -0.30904299020767212j),
- (0.95105588436126709 +0.30904293060302734j),
- (0.5877838134765625 +0.80908381938934326j),
- (3.218399768911695e-08 +1.0000815391540527j))
-
-
+ expected_result = ( -1.4678005338941702e-11j,
+ -0.0011950774351134896j,
+ -0.0019336787518113852j,
+ -0.0034673355985432863j,
+ -0.0036765895783901215j,
+ -0.004916108213365078j,
+ -0.0042778430506587029j,
+ -0.006028641015291214j,
+ -0.005476709920912981j,
+ -0.0092810001224279404j,
+ -0.0095402700826525688j,
+ -0.016060983762145042j,
+ -0.016446959227323532j,
+ -0.02523401565849781j,
+ -0.024382550269365311j,
+ -0.035477779805660248j,
+ -0.033021725714206696j,
+ -0.048487484455108643j,
+ -0.04543270543217659j,
+ -0.069477587938308716j,
+ -0.066984444856643677j,
+ -0.10703597217798233j,
+ -0.10620346665382385j,
+ -0.1852707713842392j,
+ -0.19357112050056458j,
+ (7.2191945754696007e-09 -0.50004088878631592j),
+ (0.58778399229049683 -0.6155126690864563j),
+ (0.95105588436126709 -0.12377222627401352j),
+ (0.95105588436126709 +0.41524654626846313j),
+ (0.5877838134765625 +0.91611981391906738j),
+ (5.8516356205018383e-09 +1.0670661926269531j),
+ (-0.5877840518951416 +0.87856143712997437j),
+ (-0.95105588436126709 +0.35447561740875244j),
+ (-0.95105588436126709 -0.26055556535720825j),
+ (-0.5877838134765625 -0.77606213092803955j),
+ (-8.7774534307527574e-09 -0.96460390090942383j),
+ (0.58778399229049683 -0.78470128774642944j),
+ (0.95105588436126709 -0.28380891680717468j),
+ (0.95105588436126709 +0.32548999786376953j),
+ (0.5877838134765625 +0.82514488697052002j),
+ (1.4629089051254596e-08 +1.0096219778060913j),
+ (-0.5877840518951416 +0.81836479902267456j),
+ (-0.95105588436126709 +0.31451958417892456j),
+ (-0.95105588436126709 -0.3030143678188324j),
+ (-0.5877838134765625 -0.80480599403381348j),
+ (-1.7554906861505515e-08 -0.99516552686691284j),
+ (0.58778399229049683 -0.80540722608566284j),
+ (0.95105582475662231 -0.30557557940483093j),
+ (0.95105588436126709 +0.31097668409347534j),
+ (0.5877838134765625 +0.81027895212173462j),
+ (2.3406542482007353e-08 +1.0000816583633423j),
+ (-0.5877840518951416 +0.80908381938934326j),
+ (-0.95105588436126709 +0.30904293060302734j),
+ (-0.95105588436126709 -0.30904296040534973j),
+ (-0.5877838134765625 -0.80908387899398804j),
+ (-2.6332360292258272e-08 -1.0000815391540527j),
+ (0.58778399229049683 -0.80908381938934326j),
+ (0.95105582475662231 -0.30904299020767212j),
+ (0.95105588436126709 +0.30904293060302734j),
+ (0.5877838134765625 +0.80908381938934326j),
+ (3.218399768911695e-08 +1.0000815391540527j))
+
+
tb = self.tb
sampling_freq = 100
@@ -220,76 +220,76 @@ class test_filter_delay_fc (gr_unittest.TestCase):
# give two different inputs
# expected result
- expected_result = ( -0.0020331963896751404j,
- -0.0016448829555884004j,
- -0.0032375147566199303j,
- -0.0014826074475422502j,
- -0.0033034090884029865j,
- -0.00051144487224519253j,
- -0.0043686260469257832j,
- -0.0010198024101555347j,
- -0.0082517862319946289j,
- -0.003456643782556057j,
- -0.014193611219525337j,
- -0.005875137634575367j,
- -0.020293503999710083j,
- -0.0067503536120057106j,
- -0.026798896491527557j,
- -0.0073488112539052963j,
- -0.037041611969470978j,
- -0.010557252913713455j,
- -0.055669989436864853j,
- -0.018332764506340027j,
- -0.089904911816120148j,
- -0.033361352980136871j,
- -0.16902604699134827j,
- -0.074318811297416687j,
- -0.58429563045501709j,
- (7.2191945754696007e-09 -0.35892376303672791j),
- (0.58778399229049683 +0.63660913705825806j),
- (0.95105588436126709 +0.87681591510772705j),
- (0.95105588436126709 +0.98705857992172241j),
- (0.5877838134765625 +0.55447429418563843j),
- (5.8516356205018383e-09 +0.026006083935499191j),
- (-0.5877840518951416 -0.60616838932037354j),
- (-0.95105588436126709 -0.9311758279800415j),
- (-0.95105588436126709 -0.96169203519821167j),
- (-0.5877838134765625 -0.57292771339416504j),
- (-8.7774534307527574e-09 -0.0073488391935825348j),
- (0.58778399229049683 +0.59720659255981445j),
- (0.95105588436126709 +0.94438445568084717j),
- (0.95105588436126709 +0.95582199096679688j),
- (0.5877838134765625 +0.58196049928665161j),
- (1.4629089051254596e-08 +0.0026587247848510742j),
- (-0.5877840518951416 -0.59129220247268677j),
- (-0.95105588436126709 -0.94841635227203369j),
- (-0.95105588436126709 -0.95215457677841187j),
- (-0.5877838134765625 -0.58535969257354736j),
- (-1.7554906861505515e-08 -0.00051158666610717773j),
- (0.58778399229049683 +0.58867418766021729j),
- (0.95105582475662231 +0.94965213537216187j),
- (0.95105588436126709 +0.95050644874572754j),
- (0.5877838134765625 +0.58619076013565063j),
- (2.3406542482007353e-08 +1.1920928955078125e-07j),
- (-0.5877840518951416 -0.58783555030822754j),
- (-0.95105588436126709 -0.95113480091094971j),
- (-0.95105588436126709 -0.95113474130630493j),
- (-0.5877838134765625 -0.58783555030822754j),
- (-2.6332360292258272e-08 -8.1956386566162109e-08j),
- (0.58778399229049683 +0.58783555030822754j),
- (0.95105582475662231 +0.95113474130630493j),
- (0.95105588436126709 +0.95113474130630493j),
- (0.5877838134765625 +0.58783560991287231j),
+ expected_result = ( -0.0020331963896751404j,
+ -0.0016448829555884004j,
+ -0.0032375147566199303j,
+ -0.0014826074475422502j,
+ -0.0033034090884029865j,
+ -0.00051144487224519253j,
+ -0.0043686260469257832j,
+ -0.0010198024101555347j,
+ -0.0082517862319946289j,
+ -0.003456643782556057j,
+ -0.014193611219525337j,
+ -0.005875137634575367j,
+ -0.020293503999710083j,
+ -0.0067503536120057106j,
+ -0.026798896491527557j,
+ -0.0073488112539052963j,
+ -0.037041611969470978j,
+ -0.010557252913713455j,
+ -0.055669989436864853j,
+ -0.018332764506340027j,
+ -0.089904911816120148j,
+ -0.033361352980136871j,
+ -0.16902604699134827j,
+ -0.074318811297416687j,
+ -0.58429563045501709j,
+ (7.2191945754696007e-09 -0.35892376303672791j),
+ (0.58778399229049683 +0.63660913705825806j),
+ (0.95105588436126709 +0.87681591510772705j),
+ (0.95105588436126709 +0.98705857992172241j),
+ (0.5877838134765625 +0.55447429418563843j),
+ (5.8516356205018383e-09 +0.026006083935499191j),
+ (-0.5877840518951416 -0.60616838932037354j),
+ (-0.95105588436126709 -0.9311758279800415j),
+ (-0.95105588436126709 -0.96169203519821167j),
+ (-0.5877838134765625 -0.57292771339416504j),
+ (-8.7774534307527574e-09 -0.0073488391935825348j),
+ (0.58778399229049683 +0.59720659255981445j),
+ (0.95105588436126709 +0.94438445568084717j),
+ (0.95105588436126709 +0.95582199096679688j),
+ (0.5877838134765625 +0.58196049928665161j),
+ (1.4629089051254596e-08 +0.0026587247848510742j),
+ (-0.5877840518951416 -0.59129220247268677j),
+ (-0.95105588436126709 -0.94841635227203369j),
+ (-0.95105588436126709 -0.95215457677841187j),
+ (-0.5877838134765625 -0.58535969257354736j),
+ (-1.7554906861505515e-08 -0.00051158666610717773j),
+ (0.58778399229049683 +0.58867418766021729j),
+ (0.95105582475662231 +0.94965213537216187j),
+ (0.95105588436126709 +0.95050644874572754j),
+ (0.5877838134765625 +0.58619076013565063j),
+ (2.3406542482007353e-08 +1.1920928955078125e-07j),
+ (-0.5877840518951416 -0.58783555030822754j),
+ (-0.95105588436126709 -0.95113480091094971j),
+ (-0.95105588436126709 -0.95113474130630493j),
+ (-0.5877838134765625 -0.58783555030822754j),
+ (-2.6332360292258272e-08 -8.1956386566162109e-08j),
+ (0.58778399229049683 +0.58783555030822754j),
+ (0.95105582475662231 +0.95113474130630493j),
+ (0.95105588436126709 +0.95113474130630493j),
+ (0.5877838134765625 +0.58783560991287231j),
(3.218399768911695e-08 +1.1920928955078125e-07j))
tb = self.tb
sampling_freq = 100
ntaps = 51
-
+
src1 = gr.sig_source_f (sampling_freq, gr.GR_SIN_WAVE,sampling_freq * 0.10, 1.0)
src2 = gr.sig_source_f (sampling_freq, gr.GR_COS_WAVE,sampling_freq * 0.10, 1.0)
-
+
head1 = gr.head (gr.sizeof_float, int (ntaps + sampling_freq * 0.10))
head2 = gr.head (gr.sizeof_float, int (ntaps + sampling_freq * 0.10))
@@ -300,7 +300,7 @@ class test_filter_delay_fc (gr_unittest.TestCase):
tb.connect (src1, head1)
tb.connect (src2, head2)
-
+
tb.connect (head1, (hd,0))
tb.connect (head2, (hd,1))
tb.connect (hd, dst2)
@@ -312,6 +312,6 @@ class test_filter_delay_fc (gr_unittest.TestCase):
self.assertComplexTuplesAlmostEqual (expected_result, result_data, 5)
-
+
if __name__ == '__main__':
gr_unittest.run(test_filter_delay_fc, "test_filter_delay_fc.xml")
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_float_to_char.py b/gnuradio-core/src/python/gnuradio/gr/qa_float_to_char.py
index ecdd36228..057e297f9 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_float_to_char.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_float_to_char.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2011,2012 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
class test_float_to_char (gr_unittest.TestCase):
@@ -60,7 +60,7 @@ class test_float_to_char (gr_unittest.TestCase):
self.assertEqual(expected_result, result_data)
def test_003(self):
-
+
scale = 2
vlen = 3
src_data = (0.0, 1.1, 2.2, 3.3, 4.4, 5.5, -1.1, -2.2, -3.3)
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_float_to_int.py b/gnuradio-core/src/python/gnuradio/gr/qa_float_to_int.py
index 977a8518d..5c7a412d2 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_float_to_int.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_float_to_int.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
@@ -63,7 +63,7 @@ class test_float_to_int (gr_unittest.TestCase):
def test_003(self):
-
+
scale = 2
vlen = 3
src_data = (0.0, 1.1, 2.2, 3.3, 4.4, 5.5, -1.1, -2.2, -3.3)
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_float_to_short.py b/gnuradio-core/src/python/gnuradio/gr/qa_float_to_short.py
index 0d89a149c..3f8b66975 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_float_to_short.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_float_to_short.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2011,2012 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
import ctypes
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_float_to_uchar.py b/gnuradio-core/src/python/gnuradio/gr/qa_float_to_uchar.py
index 0d54f45f3..831bed93e 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_float_to_uchar.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_float_to_uchar.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
import ctypes
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_fractional_interpolator.py b/gnuradio-core/src/python/gnuradio/gr/qa_fractional_interpolator.py
index c9ba54164..e19bb28f3 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_fractional_interpolator.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_fractional_interpolator.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
@@ -33,6 +33,6 @@ class test_fractional_resampler (gr_unittest.TestCase):
def test_000_make(self):
op = gr.fractional_interpolator_ff(0.0, 1.0)
op2 = gr.fractional_interpolator_cc(0.0, 1.0)
-
+
if __name__ == '__main__':
gr_unittest.run(test_fractional_resampler, "test_fractional_resampler.xml")
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_frequency_modulator.py b/gnuradio-core/src/python/gnuradio/gr/qa_frequency_modulator.py
index 7328f041d..23459fff3 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_frequency_modulator.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_frequency_modulator.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
import math
@@ -53,4 +53,4 @@ class test_frequency_modulator (gr_unittest.TestCase):
if __name__ == '__main__':
gr_unittest.run(test_frequency_modulator, "test_frequency_modulator.xml")
-
+
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_fsk_stuff.py b/gnuradio-core/src/python/gnuradio/gr/qa_fsk_stuff.py
index 429e57c32..95b8c0664 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_fsk_stuff.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_fsk_stuff.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
import math
@@ -49,9 +49,9 @@ class test_bytes_to_syms (gr_unittest.TestCase):
self.assertEqual (expected_result, result_data)
def test_simple_framer (self):
- src_data = (0x00, 0x11, 0x22, 0x33,
+ src_data = (0x00, 0x11, 0x22, 0x33,
0x44, 0x55, 0x66, 0x77,
- 0x88, 0x99, 0xaa, 0xbb,
+ 0x88, 0x99, 0xaa, 0xbb,
0xcc, 0xdd, 0xee, 0xff)
expected_result = (
@@ -68,8 +68,8 @@ class test_bytes_to_syms (gr_unittest.TestCase):
self.tb.run ()
result_data = dst.data ()
self.assertEqual (expected_result, result_data)
-
+
if __name__ == '__main__':
gr_unittest.run(test_bytes_to_syms, "test_bytes_to_syms.xml")
-
+
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_glfsr_source.py b/gnuradio-core/src/python/gnuradio/gr/qa_glfsr_source.py
index 1665d9dd5..161e4a5cc 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_glfsr_source.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_glfsr_source.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
@@ -81,7 +81,7 @@ class test_glfsr_source(gr_unittest.TestCase):
self.assertEqual(R[0], float(len(R))) # Auto-correlation peak at origin
for i in range(len(R)-1):
self.assertEqual(R[i+1], -1.0) # Auto-correlation minimum everywhere else
-
+
def auto_correlate(data):
l = len(data)
R = [0,]*l
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_goertzel.py b/gnuradio-core/src/python/gnuradio/gr/qa_goertzel.py
index dcb3d867e..77f1b5f89 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_goertzel.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_goertzel.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2006,2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
from math import pi, cos
@@ -40,7 +40,7 @@ class test_goertzel(gr_unittest.TestCase):
dst = gr.vector_sink_c()
self.tb.connect(src, dft, dst)
self.tb.run()
- return dst.data()
+ return dst.data()
def test_001(self): # Measure single tone magnitude
rate = 8000
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_head.py b/gnuradio-core/src/python/gnuradio/gr/qa_head.py
index aae233b56..d7cb354dc 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_head.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_head.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
@@ -41,7 +41,7 @@ class test_head (gr_unittest.TestCase):
self.tb.run ()
dst_data = dst1.data ()
self.assertEqual (expected_result, dst_data)
-
+
if __name__ == '__main__':
gr_unittest.run(test_head, "test_head.xml")
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_hier_block2.py b/gnuradio-core/src/python/gnuradio/gr/qa_hier_block2.py
index 924a0fb52..3132d91b0 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_hier_block2.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_hier_block2.py
@@ -11,8 +11,8 @@ class test_hier_block2(gr_unittest.TestCase):
pass
def test_001_make(self):
- hblock = gr.hier_block2("test_block",
- gr.io_signature(1,1,gr.sizeof_int),
+ hblock = gr.hier_block2("test_block",
+ gr.io_signature(1,1,gr.sizeof_int),
gr.io_signature(1,1,gr.sizeof_int))
self.assertEqual("test_block", hblock.name())
self.assertEqual(1, hblock.input_signature().max_streams())
@@ -21,22 +21,22 @@ class test_hier_block2(gr_unittest.TestCase):
self.assertEqual(gr.sizeof_int, hblock.output_signature().sizeof_stream_item(0))
def test_002_connect_input(self):
- hblock = gr.hier_block2("test_block",
- gr.io_signature(1,1,gr.sizeof_int),
+ hblock = gr.hier_block2("test_block",
+ gr.io_signature(1,1,gr.sizeof_int),
gr.io_signature(1,1,gr.sizeof_int))
nop1 = gr.nop(gr.sizeof_int)
hblock.connect(hblock, nop1)
def test_004_connect_output(self):
- hblock = gr.hier_block2("test_block",
- gr.io_signature(1,1,gr.sizeof_int),
+ hblock = gr.hier_block2("test_block",
+ gr.io_signature(1,1,gr.sizeof_int),
gr.io_signature(1,1,gr.sizeof_int))
nop1 = gr.nop(gr.sizeof_int)
hblock.connect(nop1, hblock)
def test_005_connect_output_in_use(self):
- hblock = gr.hier_block2("test_block",
- gr.io_signature(1,1,gr.sizeof_int),
+ hblock = gr.hier_block2("test_block",
+ gr.io_signature(1,1,gr.sizeof_int),
gr.io_signature(1,1,gr.sizeof_int))
nop1 = gr.nop(gr.sizeof_int)
nop2 = gr.nop(gr.sizeof_int)
@@ -45,37 +45,37 @@ class test_hier_block2(gr_unittest.TestCase):
lambda: hblock.connect(nop2, hblock))
def test_006_connect_invalid_src_port_neg(self):
- hblock = gr.hier_block2("test_block",
- gr.io_signature(1,1,gr.sizeof_int),
+ hblock = gr.hier_block2("test_block",
+ gr.io_signature(1,1,gr.sizeof_int),
gr.io_signature(1,1,gr.sizeof_int))
nop1 = gr.nop(gr.sizeof_int)
- self.assertRaises(ValueError,
+ self.assertRaises(ValueError,
lambda: hblock.connect((hblock, -1), nop1))
def test_005_connect_invalid_src_port_exceeds(self):
- hblock = gr.hier_block2("test_block",
- gr.io_signature(1,1,gr.sizeof_int),
+ hblock = gr.hier_block2("test_block",
+ gr.io_signature(1,1,gr.sizeof_int),
gr.io_signature(1,1,gr.sizeof_int))
nop1 = gr.nop(gr.sizeof_int)
- self.assertRaises(ValueError,
+ self.assertRaises(ValueError,
lambda: hblock.connect((hblock, 1), nop1))
def test_007_connect_invalid_dst_port_neg(self):
- hblock = gr.hier_block2("test_block",
- gr.io_signature(1,1,gr.sizeof_int),
+ hblock = gr.hier_block2("test_block",
+ gr.io_signature(1,1,gr.sizeof_int),
gr.io_signature(1,1,gr.sizeof_int))
nop1 = gr.nop(gr.sizeof_int)
nop2 = gr.nop(gr.sizeof_int)
- self.assertRaises(ValueError,
+ self.assertRaises(ValueError,
lambda: hblock.connect(nop1, (nop2, -1)))
def test_008_connect_invalid_dst_port_exceeds(self):
- hblock = gr.hier_block2("test_block",
- gr.io_signature(1,1,gr.sizeof_int),
+ hblock = gr.hier_block2("test_block",
+ gr.io_signature(1,1,gr.sizeof_int),
gr.io_signature(1,1,gr.sizeof_int))
nop1 = gr.null_sink(gr.sizeof_int)
nop2 = gr.null_sink(gr.sizeof_int)
- self.assertRaises(ValueError,
+ self.assertRaises(ValueError,
lambda: hblock.connect(nop1, (nop2, 1)))
def test_009_check_topology(self):
@@ -97,26 +97,26 @@ class test_hier_block2(gr_unittest.TestCase):
self.assertEquals(expected, actual2)
def test_012_disconnect_input(self):
- hblock = gr.hier_block2("test_block",
- gr.io_signature(1,1,gr.sizeof_int),
+ hblock = gr.hier_block2("test_block",
+ gr.io_signature(1,1,gr.sizeof_int),
gr.io_signature(1,1,gr.sizeof_int))
nop1 = gr.nop(gr.sizeof_int)
hblock.connect(hblock, nop1)
hblock.disconnect(hblock, nop1)
-
+
def test_013_disconnect_input_not_connected(self):
- hblock = gr.hier_block2("test_block",
- gr.io_signature(1,1,gr.sizeof_int),
+ hblock = gr.hier_block2("test_block",
+ gr.io_signature(1,1,gr.sizeof_int),
gr.io_signature(1,1,gr.sizeof_int))
nop1 = gr.nop(gr.sizeof_int)
nop2 = gr.nop(gr.sizeof_int)
hblock.connect(hblock, nop1)
self.assertRaises(ValueError,
lambda: hblock.disconnect(hblock, nop2))
-
+
def test_014_disconnect_input_neg(self):
- hblock = gr.hier_block2("test_block",
- gr.io_signature(1,1,gr.sizeof_int),
+ hblock = gr.hier_block2("test_block",
+ gr.io_signature(1,1,gr.sizeof_int),
gr.io_signature(1,1,gr.sizeof_int))
nop1 = gr.nop(gr.sizeof_int)
hblock.connect(hblock, nop1)
@@ -124,8 +124,8 @@ class test_hier_block2(gr_unittest.TestCase):
lambda: hblock.disconnect((hblock, -1), nop1))
def test_015_disconnect_input_exceeds(self):
- hblock = gr.hier_block2("test_block",
- gr.io_signature(1,1,gr.sizeof_int),
+ hblock = gr.hier_block2("test_block",
+ gr.io_signature(1,1,gr.sizeof_int),
gr.io_signature(1,1,gr.sizeof_int))
nop1 = gr.nop(gr.sizeof_int)
hblock.connect(hblock, nop1)
@@ -133,26 +133,26 @@ class test_hier_block2(gr_unittest.TestCase):
lambda: hblock.disconnect((hblock, 1), nop1))
def test_016_disconnect_output(self):
- hblock = gr.hier_block2("test_block",
- gr.io_signature(1,1,gr.sizeof_int),
+ hblock = gr.hier_block2("test_block",
+ gr.io_signature(1,1,gr.sizeof_int),
gr.io_signature(1,1,gr.sizeof_int))
nop1 = gr.nop(gr.sizeof_int)
hblock.connect(nop1, hblock)
hblock.disconnect(nop1, hblock)
-
+
def test_017_disconnect_output_not_connected(self):
- hblock = gr.hier_block2("test_block",
- gr.io_signature(1,1,gr.sizeof_int),
+ hblock = gr.hier_block2("test_block",
+ gr.io_signature(1,1,gr.sizeof_int),
gr.io_signature(1,1,gr.sizeof_int))
nop1 = gr.nop(gr.sizeof_int)
nop2 = gr.nop(gr.sizeof_int)
hblock.connect(nop1, hblock)
self.assertRaises(ValueError,
lambda: hblock.disconnect(nop2, hblock))
-
+
def test_018_disconnect_output_neg(self):
- hblock = gr.hier_block2("test_block",
- gr.io_signature(1,1,gr.sizeof_int),
+ hblock = gr.hier_block2("test_block",
+ gr.io_signature(1,1,gr.sizeof_int),
gr.io_signature(1,1,gr.sizeof_int))
nop1 = gr.nop(gr.sizeof_int)
hblock.connect(hblock, nop1)
@@ -160,8 +160,8 @@ class test_hier_block2(gr_unittest.TestCase):
lambda: hblock.disconnect(nop1, (hblock, -1)))
def test_019_disconnect_output_exceeds(self):
- hblock = gr.hier_block2("test_block",
- gr.io_signature(1,1,gr.sizeof_int),
+ hblock = gr.hier_block2("test_block",
+ gr.io_signature(1,1,gr.sizeof_int),
gr.io_signature(1,1,gr.sizeof_int))
nop1 = gr.nop(gr.sizeof_int)
hblock.connect(nop1, hblock)
@@ -240,7 +240,7 @@ class test_hier_block2(gr_unittest.TestCase):
src = gr.vector_source_b([1, ])
dst = gr.vector_sink_b()
tb.connect(src, hb, dst) # hb's input is not connected internally
- self.assertRaises(RuntimeError,
+ self.assertRaises(RuntimeError,
lambda: tb.run())
def test_027b_internally_unconnected_output(self):
@@ -254,7 +254,7 @@ class test_hier_block2(gr_unittest.TestCase):
src = gr.vector_source_b([1, ])
dst = gr.vector_sink_b()
tb.connect(src, hb, dst) # hb's output is not connected internally
- self.assertRaises(RuntimeError,
+ self.assertRaises(RuntimeError,
lambda: tb.run())
def test_027c_fully_unconnected_output(self):
@@ -267,7 +267,7 @@ class test_hier_block2(gr_unittest.TestCase):
src = gr.vector_source_b([1, ])
dst = gr.vector_sink_b()
tb.connect(src, hb) # hb's output is not connected internally or externally
- self.assertRaises(RuntimeError,
+ self.assertRaises(RuntimeError,
lambda: tb.run())
def test_027d_fully_unconnected_input(self):
@@ -279,12 +279,12 @@ class test_hier_block2(gr_unittest.TestCase):
hb.connect(hdst, hb) # wire output internally
dst = gr.vector_sink_b()
tb.connect(hb, dst) # hb's input is not connected internally or externally
- self.assertRaises(RuntimeError,
+ self.assertRaises(RuntimeError,
lambda: tb.run())
def test_028_singleton_reconfigure(self):
tb = gr.top_block()
- hb = gr.hier_block2("block",
+ hb = gr.hier_block2("block",
gr.io_signature(0, 0, 0), gr.io_signature(0, 0, 0))
src = gr.vector_source_b([1, ])
dst = gr.vector_sink_b()
@@ -332,7 +332,7 @@ class test_hier_block2(gr_unittest.TestCase):
add = gr.add_ff()
hb.connect(hb, m1) # m1 is connected to hb external input #0
hb.connect(hb, m2) # m2 is also connected to hb external input #0
- hb.connect(m1, (add, 0))
+ hb.connect(m1, (add, 0))
hb.connect(m2, (add, 1))
hb.connect(add, hb) # add is connected to hb external output #0
dst = gr.vector_sink_f()
@@ -355,7 +355,7 @@ class test_hier_block2(gr_unittest.TestCase):
add = gr.add_ff()
hb2.connect(hb2, m1) # m1 is connected to hb2 external input #0
hb2.connect(hb2, m2) # m2 is also connected to hb2 external input #0
- hb2.connect(m1, (add, 0))
+ hb2.connect(m1, (add, 0))
hb2.connect(m2, (add, 1))
hb2.connect(add, hb2) # add is connected to hb2 external output #0
hb.connect(hb, hb2, hb) # hb as hb2 as nested internal block
@@ -363,7 +363,7 @@ class test_hier_block2(gr_unittest.TestCase):
tb.connect(src, hb, dst)
tb.run()
self.assertEquals(dst.data(), (3.0,))
-
-
+
+
if __name__ == "__main__":
gr_unittest.run(test_hier_block2, "test_hier_block2.xml")
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_hilbert.py b/gnuradio-core/src/python/gnuradio/gr/qa_hilbert.py
index 2235f28b1..27d01092b 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_hilbert.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_hilbert.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
import math
@@ -36,68 +36,68 @@ class test_hilbert (gr_unittest.TestCase):
ntaps = 51
sampling_freq = 100
- expected_result = ( -1.4678005338941702e-11j,
- -0.0011950774351134896j,
- -0.0019336787518113852j,
- -0.0034673355985432863j,
- -0.0036765895783901215j,
- -0.004916108213365078j,
- -0.0042778430506587029j,
- -0.006028641015291214j,
- -0.005476709920912981j,
- -0.0092810001224279404j,
- -0.0095402700826525688j,
- -0.016060983762145042j,
- -0.016446959227323532j,
- -0.02523401565849781j,
- -0.024382550269365311j,
- -0.035477779805660248j,
- -0.033021725714206696j,
- -0.048487484455108643j,
- -0.04543270543217659j,
- -0.069477587938308716j,
- -0.066984444856643677j,
- -0.10703597217798233j,
- -0.10620346665382385j,
- -0.1852707713842392j,
- -0.19357112050056458j,
- (7.2191945754696007e-09 -0.50004088878631592j),
- (0.58778399229049683 -0.6155126690864563j),
- (0.95105588436126709 -0.12377222627401352j),
- (0.95105588436126709 +0.41524654626846313j),
- (0.5877838134765625 +0.91611981391906738j),
- (5.8516356205018383e-09 +1.0670661926269531j),
- (-0.5877840518951416 +0.87856143712997437j),
- (-0.95105588436126709 +0.35447561740875244j),
- (-0.95105588436126709 -0.26055556535720825j),
- (-0.5877838134765625 -0.77606213092803955j),
- (-8.7774534307527574e-09 -0.96460390090942383j),
- (0.58778399229049683 -0.78470128774642944j),
- (0.95105588436126709 -0.28380891680717468j),
- (0.95105588436126709 +0.32548999786376953j),
- (0.5877838134765625 +0.82514488697052002j),
- (1.4629089051254596e-08 +1.0096219778060913j),
- (-0.5877840518951416 +0.81836479902267456j),
- (-0.95105588436126709 +0.31451958417892456j),
- (-0.95105588436126709 -0.3030143678188324j),
- (-0.5877838134765625 -0.80480599403381348j),
- (-1.7554906861505515e-08 -0.99516552686691284j),
- (0.58778399229049683 -0.80540722608566284j),
- (0.95105582475662231 -0.30557557940483093j),
- (0.95105588436126709 +0.31097668409347534j),
- (0.5877838134765625 +0.81027895212173462j),
- (2.3406542482007353e-08 +1.0000816583633423j),
- (-0.5877840518951416 +0.80908381938934326j),
- (-0.95105588436126709 +0.30904293060302734j),
- (-0.95105588436126709 -0.30904296040534973j),
- (-0.5877838134765625 -0.80908387899398804j),
- (-2.6332360292258272e-08 -1.0000815391540527j),
- (0.58778399229049683 -0.80908381938934326j),
- (0.95105582475662231 -0.30904299020767212j),
- (0.95105588436126709 +0.30904293060302734j),
- (0.5877838134765625 +0.80908381938934326j),
+ expected_result = ( -1.4678005338941702e-11j,
+ -0.0011950774351134896j,
+ -0.0019336787518113852j,
+ -0.0034673355985432863j,
+ -0.0036765895783901215j,
+ -0.004916108213365078j,
+ -0.0042778430506587029j,
+ -0.006028641015291214j,
+ -0.005476709920912981j,
+ -0.0092810001224279404j,
+ -0.0095402700826525688j,
+ -0.016060983762145042j,
+ -0.016446959227323532j,
+ -0.02523401565849781j,
+ -0.024382550269365311j,
+ -0.035477779805660248j,
+ -0.033021725714206696j,
+ -0.048487484455108643j,
+ -0.04543270543217659j,
+ -0.069477587938308716j,
+ -0.066984444856643677j,
+ -0.10703597217798233j,
+ -0.10620346665382385j,
+ -0.1852707713842392j,
+ -0.19357112050056458j,
+ (7.2191945754696007e-09 -0.50004088878631592j),
+ (0.58778399229049683 -0.6155126690864563j),
+ (0.95105588436126709 -0.12377222627401352j),
+ (0.95105588436126709 +0.41524654626846313j),
+ (0.5877838134765625 +0.91611981391906738j),
+ (5.8516356205018383e-09 +1.0670661926269531j),
+ (-0.5877840518951416 +0.87856143712997437j),
+ (-0.95105588436126709 +0.35447561740875244j),
+ (-0.95105588436126709 -0.26055556535720825j),
+ (-0.5877838134765625 -0.77606213092803955j),
+ (-8.7774534307527574e-09 -0.96460390090942383j),
+ (0.58778399229049683 -0.78470128774642944j),
+ (0.95105588436126709 -0.28380891680717468j),
+ (0.95105588436126709 +0.32548999786376953j),
+ (0.5877838134765625 +0.82514488697052002j),
+ (1.4629089051254596e-08 +1.0096219778060913j),
+ (-0.5877840518951416 +0.81836479902267456j),
+ (-0.95105588436126709 +0.31451958417892456j),
+ (-0.95105588436126709 -0.3030143678188324j),
+ (-0.5877838134765625 -0.80480599403381348j),
+ (-1.7554906861505515e-08 -0.99516552686691284j),
+ (0.58778399229049683 -0.80540722608566284j),
+ (0.95105582475662231 -0.30557557940483093j),
+ (0.95105588436126709 +0.31097668409347534j),
+ (0.5877838134765625 +0.81027895212173462j),
+ (2.3406542482007353e-08 +1.0000816583633423j),
+ (-0.5877840518951416 +0.80908381938934326j),
+ (-0.95105588436126709 +0.30904293060302734j),
+ (-0.95105588436126709 -0.30904296040534973j),
+ (-0.5877838134765625 -0.80908387899398804j),
+ (-2.6332360292258272e-08 -1.0000815391540527j),
+ (0.58778399229049683 -0.80908381938934326j),
+ (0.95105582475662231 -0.30904299020767212j),
+ (0.95105588436126709 +0.30904293060302734j),
+ (0.5877838134765625 +0.80908381938934326j),
(3.218399768911695e-08 +1.0000815391540527j))
-
+
src1 = gr.sig_source_f (sampling_freq, gr.GR_SIN_WAVE,
sampling_freq * 0.10, 1.0)
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_iir.py b/gnuradio-core/src/python/gnuradio/gr/qa_iir.py
index 0e522c16b..06b8d767e 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_iir.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_iir.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
@@ -133,7 +133,7 @@ class test_iir (gr_unittest.TestCase):
self.tb.run ()
result_data = dst.data ()
self.assertFloatTuplesAlmostEqual (expected_result, result_data)
-
+
def test_iir_direct_008 (self):
src_data = (1, 2, 3, 4, 5, 6, 7, 8)
expected_result = (2,4,4,10,18,14,26,56)
@@ -150,10 +150,10 @@ class test_iir (gr_unittest.TestCase):
self.tb.run ()
result_data = dst.data ()
self.assertFloatTuplesAlmostEqual (expected_result, result_data)
-
-
+
+
if __name__ == '__main__':
gr_unittest.run(test_iir, "test_iir.xml")
-
+
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_int_to_float.py b/gnuradio-core/src/python/gnuradio/gr/qa_int_to_float.py
index 530b2a5cc..7536b3820 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_int_to_float.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_int_to_float.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
@@ -41,7 +41,7 @@ class test_int_to_float (gr_unittest.TestCase):
self.tb.connect(src, op, dst)
self.tb.run()
result_data = dst.data()
-
+
self.assertFloatTuplesAlmostEqual(expected_result, result_data)
def test_002(self):
@@ -49,7 +49,7 @@ class test_int_to_float (gr_unittest.TestCase):
vlen = 3
src_data = ( 65000, 65001, 65002, 65003, 65004, 65005,
-65001, -65002, -65003)
- expected_result = [ 65000.0, 65001.0, 65002.0,
+ expected_result = [ 65000.0, 65001.0, 65002.0,
65003.0, 65004.0, 65005.0,
-65001.0, -65002.0, -65003.0]
src = gr.vector_source_i(src_data)
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_integrate.py b/gnuradio-core/src/python/gnuradio/gr/qa_integrate.py
index 501a89f84..ddb1310b6 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_integrate.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_integrate.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2008,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
import math
@@ -40,7 +40,7 @@ class test_integrate (gr_unittest.TestCase):
self.tb.connect(src, itg, dst)
self.tb.run()
self.assertEqual(dst_data, dst.data())
-
+
def test_001_ii(self):
src_data = (1, 2, 3, 4, 5, 6)
dst_data = (6, 15)
@@ -50,7 +50,7 @@ class test_integrate (gr_unittest.TestCase):
self.tb.connect(src, itg, dst)
self.tb.run()
self.assertEqual(dst_data, dst.data())
-
+
def test_002_ff(self):
src_data = [1.0, 2.0, 3.0, 4.0, 5.0, 6.0]
dst_data = [6.0, 15.0]
@@ -59,7 +59,7 @@ class test_integrate (gr_unittest.TestCase):
dst = gr.vector_sink_f()
self.tb.connect(src, itg, dst)
self.tb.run()
- self.assertFloatTuplesAlmostEqual(dst_data, dst.data(), 6)
+ self.assertFloatTuplesAlmostEqual(dst_data, dst.data(), 6)
def test_003_cc(self):
src_data = [1.0+1.0j, 2.0+2.0j, 3.0+3.0j, 4.0+4.0j, 5.0+5.0j, 6.0+6.0j]
@@ -69,7 +69,7 @@ class test_integrate (gr_unittest.TestCase):
dst = gr.vector_sink_c()
self.tb.connect(src, itg, dst)
self.tb.run()
- self.assertComplexTuplesAlmostEqual(dst_data, dst.data(), 6)
+ self.assertComplexTuplesAlmostEqual(dst_data, dst.data(), 6)
if __name__ == '__main__':
gr_unittest.run(test_integrate, "test_integrate.xml")
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_interleave.py b/gnuradio-core/src/python/gnuradio/gr/qa_interleave.py
index 1320d0ec5..1ff178251 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_interleave.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_interleave.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
import math
@@ -78,4 +78,4 @@ class test_interleave (gr_unittest.TestCase):
if __name__ == '__main__':
gr_unittest.run(test_interleave, "test_interleave.xml")
-
+
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_interp_fir_filter.py b/gnuradio-core/src/python/gnuradio/gr/qa_interp_fir_filter.py
index 9901b71b7..9bd9977c7 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_interp_fir_filter.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_interp_fir_filter.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
import math
@@ -51,4 +51,4 @@ class test_interp_fir_filter (gr_unittest.TestCase):
if __name__ == '__main__':
gr_unittest.run(test_interp_fir_filter, "test_interp_fir_filter.xml")
-
+
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_kludge_copy.py b/gnuradio-core/src/python/gnuradio/gr/qa_kludge_copy.py
index 2f0bbe33d..2a3aa44b1 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_kludge_copy.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_kludge_copy.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2006,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
import math
@@ -53,7 +53,7 @@ class test_kludge_copy(gr_unittest.TestCase):
self.tb.run()
dst0_data = dst0.data()
self.assertEqual(src0_data, dst0_data)
-
+
def test_002(self):
# 2 input streams; 2 output streams
src0_data = self.make_random_int_tuple(16000)
@@ -70,7 +70,7 @@ class test_kludge_copy(gr_unittest.TestCase):
dst1_data = dst1.data()
self.assertEqual(src0_data, dst0_data)
self.assertEqual(src1_data, dst1_data)
-
+
# Note: this is disabled due to triggering bug in ticket:181
# It only occurs with new top block code
def xtest_003(self):
@@ -88,4 +88,4 @@ class test_kludge_copy(gr_unittest.TestCase):
if __name__ == '__main__':
gr_unittest.run(test_kludge_copy, "test_kludge_copy.xml")
-
+
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_kludged_imports.py b/gnuradio-core/src/python/gnuradio/gr/qa_kludged_imports.py
index 7d29a9507..39b5d781e 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_kludged_imports.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_kludged_imports.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2005,2008,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_max.py b/gnuradio-core/src/python/gnuradio/gr/qa_max.py
index 5aa231623..f962df457 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_max.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_max.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
import math
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_message.py b/gnuradio-core/src/python/gnuradio/gr/qa_message.py
index e7f2778d1..4cef39bd7 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_message.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_message.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
@@ -38,7 +38,7 @@ class test_message (gr_unittest.TestCase):
def tearDown (self):
self.msgq = None
-
+
def leak_check (self, fct):
begin = all_counts ()
fct ()
@@ -61,7 +61,7 @@ class test_message (gr_unittest.TestCase):
def test_200 (self):
self.leak_check (self.body_200)
-
+
def body_200 (self):
self.msgq.insert_tail (gr.message (0))
self.assertEquals (1, self.msgq.count())
@@ -75,7 +75,7 @@ class test_message (gr_unittest.TestCase):
def test_201 (self):
self.leak_check (self.body_201)
-
+
def body_201 (self):
self.msgq.insert_tail (gr.message (0))
self.assertEquals (1, self.msgq.count())
@@ -84,7 +84,7 @@ class test_message (gr_unittest.TestCase):
def test_202 (self):
self.leak_check (self.body_202)
-
+
def body_202 (self):
# global msg
msg = gr.message (666)
@@ -111,7 +111,7 @@ class test_message (gr_unittest.TestCase):
src.msgq().insert_tail(gr.message(1)) # send EOF
tb.run()
self.assertEquals(tuple(map(ord, '0123456789')), dst.data())
-
+
def test_302(self):
# Use itemsize, msgq constructor
msgq = gr.msg_queue()
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_multiply_conjugate.py b/gnuradio-core/src/python/gnuradio/gr/qa_multiply_conjugate.py
index aaf3cc125..1601a109e 100644
--- a/gnuradio-core/src/python/gnuradio/gr/qa_multiply_conjugate.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_multiply_conjugate.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2012 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
@@ -37,8 +37,8 @@ class test_multiply_conjugate (gr_unittest.TestCase):
src_data1 = (-3-3j, -4-4j, -3+3j, -4+4j,
3-3j, 4-4j, 3+3j, 4+4j,
0+0j)
-
- exp_data = (12+0j, 8+0j, 12+0j, 8+0j,
+
+ exp_data = (12+0j, 8+0j, 12+0j, 8+0j,
12+0j, 8+0j, 12+0j, 8+0j,
0+0j)
src0 = gr.vector_source_c(src_data0)
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_mute.py b/gnuradio-core/src/python/gnuradio/gr/qa_mute.py
index 58c5062a5..afdfdfe13 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_mute.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_mute.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2005,2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_nlog10.py b/gnuradio-core/src/python/gnuradio/gr/qa_nlog10.py
index 5a2e6a0d2..a87ed87ee 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_nlog10.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_nlog10.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2005,2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
@@ -44,4 +44,4 @@ class test_nlog10(gr_unittest.TestCase):
if __name__ == '__main__':
gr_unittest.run(test_nlog10, "test_nlog10.xml")
-
+
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_noise.py b/gnuradio-core/src/python/gnuradio/gr/qa_noise.py
index d7750cfe2..e87519150 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_noise.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_noise.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
@@ -44,8 +44,8 @@ class test_noise_source(gr_unittest.TestCase):
self.assertEqual(get_type, set_type)
self.assertEqual(get_ampl, set_ampl)
-
+
if __name__ == '__main__':
gr_unittest.run(test_noise_source, "test_noise_source.xml")
-
+
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_packed_to_unpacked.py b/gnuradio-core/src/python/gnuradio/gr/qa_packed_to_unpacked.py
index 8833f755b..08accd0ad 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_packed_to_unpacked.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_packed_to_unpacked.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2005,2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
import random
@@ -40,7 +40,7 @@ class test_packing(gr_unittest.TestCase):
src = gr.vector_source_b(src_data,False)
op = gr.packed_to_unpacked_bb(1, gr.GR_MSB_FIRST)
self.tb.connect(src, op)
-
+
dst = gr.vector_sink_b()
self.tb.connect(op, dst)
@@ -57,7 +57,7 @@ class test_packing(gr_unittest.TestCase):
src = gr.vector_source_b(src_data,False)
op = gr.packed_to_unpacked_bb(1, gr.GR_LSB_FIRST)
self.tb.connect(src, op)
-
+
dst = gr.vector_sink_b()
self.tb.connect(op, dst)
@@ -74,7 +74,7 @@ class test_packing(gr_unittest.TestCase):
src = gr.vector_source_b(src_data,False)
op = gr.packed_to_unpacked_bb(3, gr.GR_LSB_FIRST)
self.tb.connect(src, op)
-
+
dst = gr.vector_sink_b()
self.tb.connect(op, dst)
@@ -91,7 +91,7 @@ class test_packing(gr_unittest.TestCase):
src = gr.vector_source_b(src_data,False)
op = gr.packed_to_unpacked_bb(3, gr.GR_MSB_FIRST)
self.tb.connect(src, op)
-
+
dst = gr.vector_sink_b()
self.tb.connect(op, dst)
@@ -108,7 +108,7 @@ class test_packing(gr_unittest.TestCase):
src = gr.vector_source_b(src_data,False)
op = gr.unpacked_to_packed_bb(1, gr.GR_MSB_FIRST)
self.tb.connect(src, op)
-
+
dst = gr.vector_sink_b()
self.tb.connect(op, dst)
@@ -125,7 +125,7 @@ class test_packing(gr_unittest.TestCase):
src = gr.vector_source_b(src_data,False)
op = gr.unpacked_to_packed_bb(1, gr.GR_LSB_FIRST)
self.tb.connect(src, op)
-
+
dst = gr.vector_sink_b()
self.tb.connect(op, dst)
@@ -143,7 +143,7 @@ class test_packing(gr_unittest.TestCase):
src = gr.vector_source_b(src_data,False)
op = gr.unpacked_to_packed_bb(3, gr.GR_LSB_FIRST)
self.tb.connect(src, op)
-
+
dst = gr.vector_sink_b()
self.tb.connect(op, dst)
@@ -160,7 +160,7 @@ class test_packing(gr_unittest.TestCase):
src = gr.vector_source_b(src_data,False)
op = gr.unpacked_to_packed_bb(3, gr.GR_MSB_FIRST)
self.tb.connect(src, op)
-
+
dst = gr.vector_sink_b()
self.tb.connect(op, dst)
@@ -184,12 +184,12 @@ class test_packing(gr_unittest.TestCase):
op1 = gr.packed_to_unpacked_bb(3, gr.GR_MSB_FIRST)
op2 = gr.unpacked_to_packed_bb(3, gr.GR_MSB_FIRST)
self.tb.connect(src, op1, op2)
-
+
dst = gr.vector_sink_b()
self.tb.connect(op2, dst)
self.tb.run()
-
+
self.assertEqual(expected_results[0:201], dst.data())
def test_010(self):
@@ -233,10 +233,10 @@ class test_packing(gr_unittest.TestCase):
self.tb.run()
self.assertEqual(expected_results[0:201], dst.data())
-
+
# tests on shorts
-
+
def test_100a(self):
"""
test short version
@@ -318,7 +318,7 @@ class test_packing(gr_unittest.TestCase):
self.assertEqual(expected_results, dst.data())
# tests on ints
-
+
def test_200a(self):
"""
test int version
@@ -402,4 +402,4 @@ class test_packing(gr_unittest.TestCase):
if __name__ == '__main__':
gr_unittest.run(test_packing, "test_packing.xml")
-
+
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_pipe_fittings.py b/gnuradio-core/src/python/gnuradio/gr/qa_pipe_fittings.py
index a6683c5c3..1f24062b1 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_pipe_fittings.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_pipe_fittings.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2005,2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
@@ -58,7 +58,7 @@ class test_pipe_fittings(gr_unittest.TestCase):
src = gr.vector_source_i(src_data)
op = gr.stream_to_streams(gr.sizeof_int, n)
self.tb.connect(src, op)
-
+
dsts = []
for i in range(n):
dst = gr.vector_sink_i()
@@ -83,15 +83,15 @@ class test_pipe_fittings(gr_unittest.TestCase):
op1 = gr.stream_to_streams(gr.sizeof_int, n)
op2 = gr.streams_to_stream(gr.sizeof_int, n)
dst = gr.vector_sink_i()
-
+
self.tb.connect(src, op1)
for i in range(n):
self.tb.connect((op1, i), (op2, i))
self.tb.connect(op2, dst)
-
+
self.tb.run()
self.assertEqual(expected_results, dst.data())
-
+
def test_003(self):
"""
Test streams_to_vector (using stream_to_streams & vector_to_stream).
@@ -106,15 +106,15 @@ class test_pipe_fittings(gr_unittest.TestCase):
op2 = gr.streams_to_vector(gr.sizeof_int, n)
op3 = gr.vector_to_stream(gr.sizeof_int, n)
dst = gr.vector_sink_i()
-
+
self.tb.connect(src, op1)
for i in range(n):
self.tb.connect((op1, i), (op2, i))
self.tb.connect(op2, op3, dst)
-
+
self.tb.run()
self.assertEqual(expected_results, dst.data())
-
+
def test_004(self):
"""
Test vector_to_streams.
@@ -129,15 +129,15 @@ class test_pipe_fittings(gr_unittest.TestCase):
op2 = gr.vector_to_streams(gr.sizeof_int, n)
op3 = gr.streams_to_stream(gr.sizeof_int, n)
dst = gr.vector_sink_i()
-
+
self.tb.connect(src, op1, op2)
for i in range(n):
self.tb.connect((op2, i), (op3, i))
self.tb.connect(op3, dst)
-
+
self.tb.run()
self.assertEqual(expected_results, dst.data())
if __name__ == '__main__':
gr_unittest.run(test_pipe_fittings, "test_pipe_fittings.xml")
-
+
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_pll_carriertracking.py b/gnuradio-core/src/python/gnuradio/gr/qa_pll_carriertracking.py
index 5977c1b52..8964db53d 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_pll_carriertracking.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_pll_carriertracking.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2007,2010,2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
import math
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_pll_freqdet.py b/gnuradio-core/src/python/gnuradio/gr/qa_pll_freqdet.py
index 152026c35..219e9b84b 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_pll_freqdet.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_pll_freqdet.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2007,2010,2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
import math
@@ -153,7 +153,7 @@ class test_pll_freqdet (gr_unittest.TestCase):
# convert it from normalized frequency to absolute frequency (Hz)
dst_data = [i*(sampling_freq/(2*math.pi)) for i in dst_data]
-
+
self.assertFloatTuplesAlmostEqual (expected_result, dst_data, 3)
if __name__ == '__main__':
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_pll_refout.py b/gnuradio-core/src/python/gnuradio/gr/qa_pll_refout.py
index 4d82ed692..f319f6381 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_pll_refout.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_pll_refout.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
import math
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_pn_correlator_cc.py b/gnuradio-core/src/python/gnuradio/gr/qa_pn_correlator_cc.py
index fbdabb4cb..6a62a6997 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_pn_correlator_cc.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_pn_correlator_cc.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
@@ -45,6 +45,6 @@ class test_pn_correlator_cc(gr_unittest.TestCase):
self.tb.run()
data = dst.data()
self.assertEqual(data[-1], (1.0+0j))
-
+
if __name__ == '__main__':
gr_unittest.run(test_pn_correlator_cc, "test_pn_correlator_cc.xml")
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_probe_signal.py b/gnuradio-core/src/python/gnuradio/gr/qa_probe_signal.py
index ed0756f5b..4e10afdb6 100644
--- a/gnuradio-core/src/python/gnuradio/gr/qa_probe_signal.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_probe_signal.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2012 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,
# Boston, MA 02110-1301, USA.
-#
+#
import time
@@ -33,7 +33,7 @@ class test_probe_signal (gr_unittest.TestCase):
self.tb = None
def test_001(self):
-
+
value = 12.3
repeats = 100
src_data = [value] * repeats
@@ -52,7 +52,7 @@ class test_probe_signal (gr_unittest.TestCase):
repeats = 10
value = [0.5+i for i in range(0, vector_length)]
src_data = value * repeats
-
+
src = gr.vector_source_f(src_data)
s2v = gr.stream_to_vector(gr.sizeof_float, vector_length)
dst = gr.probe_signal_vf(vector_length)
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_rational_resampler.py b/gnuradio-core/src/python/gnuradio/gr/qa_rational_resampler.py
index 3bd6160df..cc963d757 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_rational_resampler.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_rational_resampler.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2005,2006,2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
from gnuradio import blks2
@@ -71,7 +71,7 @@ def reference_interp_dec_filter(src_data, interp, decim, taps):
result_data = dst.data()
tb = None
return result_data
-
+
class test_rational_resampler (gr_unittest.TestCase):
@@ -80,11 +80,11 @@ class test_rational_resampler (gr_unittest.TestCase):
def tearDown(self):
pass
-
+
#
# test the gr.rational_resampler_base primitives...
#
-
+
def test_000_1_to_1(self):
taps = (-4, 5)
src_data = (234, -4, 23, -56, 45, 98, -23, -7)
@@ -100,7 +100,7 @@ class test_rational_resampler (gr_unittest.TestCase):
tb.run()
result_data = dst.data()
self.assertEqual(expected_result, result_data)
-
+
def test_001_interp(self):
taps = [1, 10, 100, 1000, 10000]
src_data = (0, 2, 3, 5, 7, 11, 13, 17)
@@ -118,7 +118,7 @@ class test_rational_resampler (gr_unittest.TestCase):
result_data = dst.data()
self.assertEqual(expected_result, result_data)
- def test_002_interp(self):
+ def test_002_interp(self):
taps = random_floats(31)
#src_data = random_floats(10000) # FIXME the 10k case fails!
src_data = random_floats(1000)
@@ -295,4 +295,4 @@ if __name__ == '__main__':
pass
# FIXME: Disabled, see ticket:210
# gr_unittest.run(test_rational_resampler, "test_rational_resampler.xml")
-
+
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_regenerate.py b/gnuradio-core/src/python/gnuradio/gr/qa_regenerate.py
index 32ecc3776..5aca03b77 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_regenerate.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_regenerate.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
import math
@@ -33,7 +33,7 @@ class test_regenerate (gr_unittest.TestCase):
def test_regen1 (self):
tb = self.tb
-
+
data = [0, 0, 0,
1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
@@ -52,12 +52,12 @@ class test_regenerate (gr_unittest.TestCase):
tb.run ()
dst_data = dst.data ()
-
+
self.assertEqual (expected_result, dst_data)
def test_regen2 (self):
tb = self.tb
-
+
data = 200*[0,]
data[9] = 1
data[99] = 1
@@ -67,7 +67,7 @@ class test_regenerate (gr_unittest.TestCase):
expected_result[19] = 1
expected_result[29] = 1
expected_result[39] = 1
-
+
expected_result[99] = 1
expected_result[109] = 1
expected_result[119] = 1
@@ -82,7 +82,7 @@ class test_regenerate (gr_unittest.TestCase):
tb.run ()
dst_data = dst.data ()
-
+
self.assertEqual (tuple(expected_result), dst_data)
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_repeat.py b/gnuradio-core/src/python/gnuradio/gr/qa_repeat.py
index 2b1429980..116f37115 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_repeat.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_repeat.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2008,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
import math
@@ -36,13 +36,13 @@ class test_repeat (gr_unittest.TestCase):
dst_data = []
for n in range(100):
dst_data += [1.0*n, 1.0*n, 1.0*n]
-
+
src = gr.vector_source_f(src_data)
rpt = gr.repeat(gr.sizeof_float, 3)
dst = gr.vector_sink_f()
self.tb.connect(src, rpt, dst)
self.tb.run()
- self.assertFloatTuplesAlmostEqual(dst_data, dst.data(), 6)
+ self.assertFloatTuplesAlmostEqual(dst_data, dst.data(), 6)
if __name__ == '__main__':
gr_unittest.run(test_repeat, "test_repeat.xml")
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_scrambler.py b/gnuradio-core/src/python/gnuradio/gr/qa_scrambler.py
index 241d8ec2a..5fe89bdc7 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_scrambler.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_scrambler.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2008,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
@@ -34,7 +34,7 @@ class test_scrambler(gr_unittest.TestCase):
src_data = (1,)*1000
src = gr.vector_source_b(src_data, False)
scrambler = gr.scrambler_bb(0x8a, 0x7F, 7) # CCSDS 7-bit scrambler
- descrambler = gr.descrambler_bb(0x8a, 0x7F, 7)
+ descrambler = gr.descrambler_bb(0x8a, 0x7F, 7)
dst = gr.vector_sink_b()
self.tb.connect(src, scrambler, descrambler, dst)
self.tb.run()
@@ -48,7 +48,7 @@ class test_scrambler(gr_unittest.TestCase):
dst = gr.vector_sink_b()
self.tb.connect(src, scrambler, descrambler, dst)
self.tb.run()
- self.assertEqual(src_data, dst.data())
+ self.assertEqual(src_data, dst.data())
def test_additive_scrambler_reset(self):
src_data = (1,)*1000
@@ -58,7 +58,7 @@ class test_scrambler(gr_unittest.TestCase):
dst = gr.vector_sink_b()
self.tb.connect(src, scrambler, descrambler, dst)
self.tb.run()
- self.assertEqual(src_data, dst.data())
+ self.assertEqual(src_data, dst.data())
if __name__ == '__main__':
gr_unittest.run(test_scrambler, "test_scrambler.xml")
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_short_to_char.py b/gnuradio-core/src/python/gnuradio/gr/qa_short_to_char.py
index 6a95fa01d..490b149c7 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_short_to_char.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_short_to_char.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2011,2012 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
import ctypes
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_short_to_float.py b/gnuradio-core/src/python/gnuradio/gr/qa_short_to_float.py
index 8f331b495..130f034ec 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_short_to_float.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_short_to_float.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2011,2012 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
import ctypes
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_sig_source.py b/gnuradio-core/src/python/gnuradio/gr/qa_sig_source.py
index 4bb58038f..122b169b7 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_sig_source.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_sig_source.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
import math
@@ -42,7 +42,7 @@ class test_sig_source (gr_unittest.TestCase):
tb.run ()
dst_data = dst1.data ()
self.assertEqual (expected_result, dst_data)
-
+
def test_const_i (self):
tb = self.tb
expected_result = (1, 1, 1, 1)
@@ -54,7 +54,7 @@ class test_sig_source (gr_unittest.TestCase):
tb.run ()
dst_data = dst1.data ()
self.assertEqual (expected_result, dst_data)
-
+
def test_sine_f (self):
tb = self.tb
sqrt2 = math.sqrt(2) / 2
@@ -80,7 +80,7 @@ class test_sig_source (gr_unittest.TestCase):
tb.run ()
dst_data = dst1.data ()
self.assertFloatTuplesAlmostEqual (expected_result, dst_data, 5)
-
+
def test_sqr_c (self):
tb = self.tb #arg6 is a bit before -PI/2
expected_result = (1j, 1j, 0, 0, 1, 1, 1+0j, 1+1j, 1j)
@@ -92,7 +92,7 @@ class test_sig_source (gr_unittest.TestCase):
tb.run ()
dst_data = dst1.data ()
self.assertEqual (expected_result, dst_data)
-
+
def test_tri_c (self):
tb = self.tb
expected_result = (1+.5j, .75+.75j, .5+1j, .25+.75j, 0+.5j, .25+.25j, .5+0j, .75+.25j, 1+.5j)
@@ -104,7 +104,7 @@ class test_sig_source (gr_unittest.TestCase):
tb.run ()
dst_data = dst1.data ()
self.assertComplexTuplesAlmostEqual (expected_result, dst_data, 5)
-
+
def test_saw_c (self):
tb = self.tb
expected_result = (.5+.25j, .625+.375j, .75+.5j, .875+.625j, 0+.75j, .125+.875j, .25+1j, .375+.125j, .5+.25j)
@@ -116,7 +116,7 @@ class test_sig_source (gr_unittest.TestCase):
tb.run ()
dst_data = dst1.data ()
self.assertComplexTuplesAlmostEqual (expected_result, dst_data, 5)
-
+
def test_sqr_f (self):
tb = self.tb
expected_result = (0, 0, 0, 0, 1, 1, 1, 1, 0)
@@ -128,7 +128,7 @@ class test_sig_source (gr_unittest.TestCase):
tb.run ()
dst_data = dst1.data ()
self.assertEqual (expected_result, dst_data)
-
+
def test_tri_f (self):
tb = self.tb
expected_result = (1, .75, .5, .25, 0, .25, .5, .75, 1)
@@ -140,7 +140,7 @@ class test_sig_source (gr_unittest.TestCase):
tb.run ()
dst_data = dst1.data ()
self.assertFloatTuplesAlmostEqual (expected_result, dst_data, 5)
-
+
def test_saw_f (self):
tb = self.tb
expected_result = (.5, .625, .75, .875, 0, .125, .25, .375, .5)
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_single_pole_iir.py b/gnuradio-core/src/python/gnuradio/gr/qa_single_pole_iir.py
index 1d2e6595c..bfe2d8fc8 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_single_pole_iir.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_single_pole_iir.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2005,2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
@@ -69,4 +69,4 @@ class test_single_pole_iir(gr_unittest.TestCase):
if __name__ == '__main__':
gr_unittest.run(test_single_pole_iir, "test_single_pole_iir.xml")
-
+
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_single_pole_iir_cc.py b/gnuradio-core/src/python/gnuradio/gr/qa_single_pole_iir_cc.py
index 47b4948ba..353df1bc0 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_single_pole_iir_cc.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_single_pole_iir_cc.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2005,2006,2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
@@ -69,4 +69,4 @@ class test_single_pole_iir_cc(gr_unittest.TestCase):
if __name__ == '__main__':
gr_unittest.run(test_single_pole_iir_cc, "test_single_pole_iir_cc.xml")
-
+
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_skiphead.py b/gnuradio-core/src/python/gnuradio/gr/qa_skiphead.py
index de2d8fc95..1e730398c 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_skiphead.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_skiphead.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
@@ -41,7 +41,7 @@ class test_skiphead (gr_unittest.TestCase):
self.tb.run ()
dst_data = dst1.data ()
self.assertEqual (expected_result, dst_data)
-
+
def test_skip_1(self):
skip_cnt = 1
expected_result = tuple(self.src_data[skip_cnt:])
@@ -52,7 +52,7 @@ class test_skiphead (gr_unittest.TestCase):
self.tb.run ()
dst_data = dst1.data ()
self.assertEqual (expected_result, dst_data)
-
+
def test_skip_1023(self):
skip_cnt = 1023
expected_result = tuple(self.src_data[skip_cnt:])
@@ -63,7 +63,7 @@ class test_skiphead (gr_unittest.TestCase):
self.tb.run ()
dst_data = dst1.data ()
self.assertEqual (expected_result, dst_data)
-
+
def test_skip_6339(self):
skip_cnt = 6339
expected_result = tuple(self.src_data[skip_cnt:])
@@ -74,7 +74,7 @@ class test_skiphead (gr_unittest.TestCase):
self.tb.run ()
dst_data = dst1.data ()
self.assertEqual (expected_result, dst_data)
-
+
def test_skip_12678(self):
skip_cnt = 12678
expected_result = tuple(self.src_data[skip_cnt:])
@@ -96,7 +96,7 @@ class test_skiphead (gr_unittest.TestCase):
self.tb.run ()
dst_data = dst1.data ()
self.assertEqual (expected_result, dst_data)
-
+
if __name__ == '__main__':
gr_unittest.run(test_skiphead, "test_skiphead.xml")
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_stream_mux.py b/gnuradio-core/src/python/gnuradio/gr/qa_stream_mux.py
index 7d6ddf81b..779d0b25e 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_stream_mux.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_stream_mux.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2005,2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
@@ -33,7 +33,7 @@ class test_stream_mux (gr_unittest.TestCase):
def help_stream_2ff(self, N, stream_sizes):
v0 = gr.vector_source_f(N*[1,], False)
v1 = gr.vector_source_f(N*[2,], False)
-
+
mux = gr.stream_mux(gr.sizeof_float, stream_sizes)
dst = gr.vector_sink_f ()
@@ -44,7 +44,7 @@ class test_stream_mux (gr_unittest.TestCase):
self.tb.run ()
return dst.data ()
-
+
def help_stream_ramp_2ff(self, N, stream_sizes):
r1 = range(N)
r2 = range(N)
@@ -52,7 +52,7 @@ class test_stream_mux (gr_unittest.TestCase):
v0 = gr.vector_source_f(r1, False)
v1 = gr.vector_source_f(r2, False)
-
+
mux = gr.stream_mux(gr.sizeof_float, stream_sizes)
dst = gr.vector_sink_f ()
@@ -63,7 +63,7 @@ class test_stream_mux (gr_unittest.TestCase):
self.tb.run ()
return dst.data ()
-
+
def test_stream_2NN_ff(self):
N = 40
stream_sizes = [10, 10]
@@ -101,17 +101,17 @@ class test_stream_mux (gr_unittest.TestCase):
result_data = self.help_stream_2ff(N, stream_sizes)
- exp_data = (1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
+ exp_data = (1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0,
- 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
+ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0,
- 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
+ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0,
- 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
+ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0,
- 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
+ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
2.0, 2.0, 2.0, 2.0)
-
+
self.assertEqual (exp_data, result_data)
@@ -122,13 +122,13 @@ class test_stream_mux (gr_unittest.TestCase):
result_data = self.help_stream_2ff(N, stream_sizes)
- exp_data = (1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
+ exp_data = (1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0,
- 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
+ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0,
- 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
+ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0,
- 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
+ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
2.0)
@@ -142,12 +142,12 @@ class test_stream_mux (gr_unittest.TestCase):
result_data = self.help_stream_2ff(N, stream_sizes)
- exp_data = (1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
- 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
- 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
+ exp_data = (1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
+ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
+ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0)
-
+
self.assertEqual (exp_data, result_data)
def test_stream_20N_ff(self):
@@ -157,11 +157,11 @@ class test_stream_mux (gr_unittest.TestCase):
result_data = self.help_stream_2ff(N, stream_sizes)
- exp_data = (2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0,
+ exp_data = (2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0,
2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0,
2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0,
2.0, 2.0, 2.0)
-
+
self.assertEqual (exp_data, result_data)
if __name__ == '__main__':
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_udp_sink_source.py b/gnuradio-core/src/python/gnuradio/gr/qa_udp_sink_source.py
index 097e394c9..0a719990e 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_udp_sink_source.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_udp_sink_source.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2008,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
from threading import Timer
@@ -32,7 +32,7 @@ class test_udp_sink_source(gr_unittest.TestCase):
def tearDown(self):
self.tb_rcv = None
self.tb_snd = None
-
+
def test_001(self):
port = 65500
@@ -59,7 +59,7 @@ class test_udp_sink_source(gr_unittest.TestCase):
result_data = dst.data()
self.assertEqual(expected_result, result_data)
self.assert_(not self.timeout)
-
+
def test_002(self):
udp_rcv = gr.udp_source( gr.sizeof_float, '0.0.0.0', 0, eof=False )
rcv_port = udp_rcv.get_port()
@@ -93,7 +93,7 @@ class test_udp_sink_source(gr_unittest.TestCase):
self.timeout = True
self.tb_rcv.stop()
#print "tb_rcv stopped by Timer"
-
+
if __name__ == '__main__':
gr_unittest.run(test_udp_sink_source, "test_udp_sink_source.xml")
-
+
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_unpack_k_bits.py b/gnuradio-core/src/python/gnuradio/gr/qa_unpack_k_bits.py
index d1faf9d9e..bb4e7733d 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_unpack_k_bits.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_unpack_k_bits.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2006,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
import random
@@ -54,4 +54,4 @@ class test_unpack(gr_unittest.TestCase):
if __name__ == '__main__':
gr_unittest.run(test_unpack, "test_unpack.xml")
-
+
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_vector_sink_source.py b/gnuradio-core/src/python/gnuradio/gr/qa_vector_sink_source.py
index 5d8d85c7c..64cbbe72a 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_vector_sink_source.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_vector_sink_source.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2008,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
import math
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_wavefile.py b/gnuradio-core/src/python/gnuradio/gr/qa_wavefile.py
index d9f38e3f1..3b9a3eb20 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_wavefile.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_wavefile.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2008,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
@@ -61,7 +61,7 @@ class test_wavefile(gr_unittest.TestCase):
out_data = out_f.read()
out_f.close()
os.remove(outfile)
-
+
self.assertEqual(in_data, out_data)
diff --git a/gnuradio-core/src/python/gnuradio/gr/top_block.py b/gnuradio-core/src/python/gnuradio/gr/top_block.py
index f2d83893c..43af8073b 100644
--- a/gnuradio-core/src/python/gnuradio/gr/top_block.py
+++ b/gnuradio-core/src/python/gnuradio/gr/top_block.py
@@ -1,23 +1,23 @@
#
# Copyright 2007 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio_core import top_block_swig, \
top_block_wait_unlocked, top_block_run_unlocked
@@ -95,7 +95,7 @@ class top_block(object):
def start(self, max_noutput_items=100000):
self._tb.start(max_noutput_items)
-
+
def stop(self):
self._tb.stop()
diff --git a/gnuradio-core/src/python/gnuradio/gr_unittest.py b/gnuradio-core/src/python/gnuradio/gr_unittest.py
index c2c4df2ba..e4510a6eb 100755
--- a/gnuradio-core/src/python/gnuradio/gr_unittest.py
+++ b/gnuradio-core/src/python/gnuradio/gr_unittest.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
import unittest
import gr_xmlrunner
@@ -45,7 +45,7 @@ class TestCase(unittest.TestCase):
if round(second.imag-first.imag, places) != 0:
raise self.failureException, \
(msg or '%s != %s within %s places' % (`first`, `second`, `places` ))
-
+
def assertComplexAlmostEqual2 (self, ref, x, abs_eps=1e-12, rel_eps=1e-6, msg=None):
"""
Fail if the two complex objects are unequal as determined by...
@@ -64,7 +64,7 @@ class TestCase(unittest.TestCase):
`ref`, `x`, abs(ref-x)/abs(ref), `rel_eps` ))
-
+
def assertComplexTuplesAlmostEqual (self, a, b, places=7, msg=None):
self.assertEqual (len(a), len(b))
for i in xrange (len(a)):
@@ -108,7 +108,7 @@ TestProgram = unittest.TestProgram
main = TestProgram
def run(PUT, filename=None):
- '''
+ '''
Runs the unittest on a TestCase and produces an optional XML report
PUT: the program under test and should be a gr_unittest.TestCase
filename: an optional filename to save the XML report of the tests
@@ -149,7 +149,7 @@ def run(PUT, filename=None):
xmlrunner.run(suite)
main()
-
+
# This will run and fail make check if problem
# but does not output to screen.
#main(testRunner = xmlrunner)
diff --git a/gnuradio-core/src/python/gnuradio/gr_xmlrunner.py b/gnuradio-core/src/python/gnuradio/gr_xmlrunner.py
index c3dc5cf13..31298197f 100644
--- a/gnuradio-core/src/python/gnuradio/gr_xmlrunner.py
+++ b/gnuradio-core/src/python/gnuradio/gr_xmlrunner.py
@@ -25,9 +25,9 @@ except ImportError:
class _TestInfo(object):
"""Information about a particular test.
-
+
Used by _XMLTestResult.
-
+
"""
def __init__(self, test, time):
@@ -132,7 +132,7 @@ class _XMLTestResult(unittest.TestResult):
def print_report(self, stream, time_taken, out, err):
"""Prints the XML report to the supplied stream.
-
+
The time the tests took to perform as well as the captured standard
output and standard error streams must be passed in.a
@@ -210,7 +210,7 @@ class XMLTestRunner(object):
path = property(lambda self: self._path, _set_path, None,
"""The path where the XML files are stored.
-
+
This property is ignored when the XML file is written to a file
stream.""")
@@ -262,7 +262,7 @@ class XMLTestRunnerTest(unittest.TestCase):
def test_no_tests(self):
"""Regression test: Check whether a test run without any tests
matches a previous run.
-
+
"""
class TestTest(unittest.TestCase):
pass
@@ -275,7 +275,7 @@ class XMLTestRunnerTest(unittest.TestCase):
def test_success(self):
"""Regression test: Check whether a test run with a successful test
matches a previous run.
-
+
"""
class TestTest(unittest.TestCase):
def test_foo(self):
@@ -290,7 +290,7 @@ class XMLTestRunnerTest(unittest.TestCase):
def test_failure(self):
"""Regression test: Check whether a test run with a failing test
matches a previous run.
-
+
"""
class TestTest(unittest.TestCase):
def test_foo(self):
@@ -307,7 +307,7 @@ class XMLTestRunnerTest(unittest.TestCase):
def test_error(self):
"""Regression test: Check whether a test run with a erroneous test
matches a previous run.
-
+
"""
class TestTest(unittest.TestCase):
def test_foo(self):
@@ -324,7 +324,7 @@ class XMLTestRunnerTest(unittest.TestCase):
def test_stdout_capture(self):
"""Regression test: Check whether a test run with output to stdout
matches a previous run.
-
+
"""
class TestTest(unittest.TestCase):
def test_foo(self):
@@ -340,7 +340,7 @@ class XMLTestRunnerTest(unittest.TestCase):
def test_stderr_capture(self):
"""Regression test: Check whether a test run with output to stderr
matches a previous run.
-
+
"""
class TestTest(unittest.TestCase):
def test_foo(self):
diff --git a/gnuradio-core/src/python/gnuradio/gru/__init__.py b/gnuradio-core/src/python/gnuradio/gru/__init__.py
index 8fcdf83ed..c24439ff5 100644
--- a/gnuradio-core/src/python/gnuradio/gru/__init__.py
+++ b/gnuradio-core/src/python/gnuradio/gru/__init__.py
@@ -1,29 +1,29 @@
#
# Copyright 2005 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,
# Boston, MA 02110-1301, USA.
-#
+#
import glob
import os.path
# Semi-hideous kludge to import everything in the gruimpl directory
-# into the gnuradio.gru namespace. This keeps us from having to remember
+# into the gnuradio.gru namespace. This keeps us from having to remember
# to manually update this file.
for p in __path__:
diff --git a/gnuradio-core/src/python/gnuradio/gruimpl/daemon.py b/gnuradio-core/src/python/gnuradio/gruimpl/daemon.py
index 4fa972ad2..e04702152 100644
--- a/gnuradio-core/src/python/gnuradio/gruimpl/daemon.py
+++ b/gnuradio-core/src/python/gnuradio/gruimpl/daemon.py
@@ -1,23 +1,23 @@
#
# Copyright 2008 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,
# Boston, MA 02110-1301, USA.
-#
+#
import os, sys, signal
# Turn application into a background daemon process.
@@ -62,7 +62,7 @@ def daemonize(pidfile=None, logfile=None):
if pid == 0: # First child of first fork()
# Become session leader of new session
os.setsid()
-
+
# fork() into background again
try:
pid = os.fork()
@@ -74,14 +74,14 @@ def daemonize(pidfile=None, logfile=None):
else: # Second child of first fork()
os._exit(0)
-
+
os.umask(0111)
# Write pid
pid = os.getpid()
if pidfile is not None:
open(pidfile, 'w').write('%d\n'%pid)
-
+
# Redirect streams
if logfile is not None:
lf = open(logfile, 'a+')
diff --git a/gnuradio-core/src/python/gnuradio/gruimpl/freqz.py b/gnuradio-core/src/python/gnuradio/gruimpl/freqz.py
index 46696a50e..60dca64a5 100644
--- a/gnuradio-core/src/python/gnuradio/gruimpl/freqz.py
+++ b/gnuradio-core/src/python/gnuradio/gruimpl/freqz.py
@@ -1,34 +1,34 @@
#!/usr/bin/env python
#
# Copyright 2005,2007 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,
# Boston, MA 02110-1301, USA.
-#
+#
# This code lifted from various parts of www.scipy.org -eb 2005-01-24
# Copyright (c) 2001, 2002 Enthought, Inc.
-#
+#
# All rights reserved.
-#
+#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
-#
+#
# a. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
# b. Redistributions in binary form must reproduce the above copyright
@@ -37,8 +37,8 @@
# c. Neither the name of the Enthought nor the names of its contributors
# may be used to endorse or promote products derived from this software
# without specific prior written permission.
-#
-#
+#
+#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -50,7 +50,7 @@
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
# DAMAGE.
-#
+#
__all__ = ['freqz']
@@ -62,7 +62,7 @@ def atleast_1d(*arys):
""" Force a sequence of arrays to each be at least 1D.
Description:
- Force an array to be at least 1D. If an array is 0D, the
+ Force an array to be at least 1D. If an array is 0D, the
array is converted to a single row of values. Otherwise,
the array is unaltered.
Arguments:
@@ -73,7 +73,7 @@ def atleast_1d(*arys):
res = []
for ary in arys:
ary = asarray(ary)
- if len(ary.shape) == 0:
+ if len(ary.shape) == 0:
result = numpy.array([ary[0]])
else:
result = ary
@@ -147,7 +147,7 @@ class poly1d:
def __coerce__(self,other):
return None
-
+
def __repr__(self):
vals = repr(self.coeffs)
vals = vals[6:-1]
@@ -177,14 +177,14 @@ class poly1d:
newstr = ''
elif coefstr == '1':
newstr = 'x'
- else:
+ else:
newstr = '%s x' % (coefstr,)
else:
if coefstr == '0':
newstr = ''
elif coefstr == '1':
newstr = 'x**%d' % (power,)
- else:
+ else:
newstr = '%s x**%d' % (coefstr, power)
if k > 0:
@@ -198,7 +198,7 @@ class poly1d:
else:
thestr = newstr
return _raise_power(thestr)
-
+
def __call__(self, val):
return polyval(self.coeffs, val)
@@ -215,12 +215,12 @@ class poly1d:
return poly1d(other * self.coeffs)
else:
other = poly1d(other)
- return poly1d(polymul(self.coeffs, other.coeffs))
-
+ return poly1d(polymul(self.coeffs, other.coeffs))
+
def __add__(self, other):
other = poly1d(other)
- return poly1d(polyadd(self.coeffs, other.coeffs))
-
+ return poly1d(polyadd(self.coeffs, other.coeffs))
+
def __radd__(self, other):
other = poly1d(other)
return poly1d(polyadd(self.coeffs, other.coeffs))
@@ -267,7 +267,7 @@ class poly1d:
return self.order
else:
return self.__dict__[key]
-
+
def __getitem__(self, val):
ind = self.order - val
if val > self.order:
@@ -306,7 +306,7 @@ def freqz(b, a, worN=None, whole=0, plot=None):
jw B(e) b[0] + b[1]e + .... + b[m]e
H(e) = ---- = ------------------------------------
jw -jw -jnw
- A(e) a[0] + a[2]e + .... + a[n]e
+ A(e) a[0] + a[2]e + .... + a[n]e
Inputs:
diff --git a/gnuradio-core/src/python/gnuradio/gruimpl/gnuplot_freqz.py b/gnuradio-core/src/python/gnuradio/gruimpl/gnuplot_freqz.py
index 2c2a06847..defc47b59 100755
--- a/gnuradio-core/src/python/gnuradio/gruimpl/gnuplot_freqz.py
+++ b/gnuradio-core/src/python/gnuradio/gruimpl/gnuplot_freqz.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2005,2007 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,
# Boston, MA 02110-1301, USA.
-#
+#
__all__ = ['gnuplot_freqz']
@@ -40,14 +40,14 @@ def gnuplot_freqz (hw, Fs=None, logfreq=False):
Returns a handle to the gnuplot graph. When the handle is reclaimed
the graph is torn down."""
-
+
data_file = tempfile.NamedTemporaryFile ()
cmd_file = os.popen ('gnuplot', 'w')
h, w = hw
ampl = 20 * numpy.log10 (numpy.absolute (h) + 1e-9)
phase = map (lambda x: math.atan2 (x.imag, x.real), h)
-
+
if Fs:
w *= (Fs/(2*math.pi))
@@ -63,7 +63,7 @@ def gnuplot_freqz (hw, Fs=None, logfreq=False):
cmd_file.write ("unset logscale x\n")
cmd_file.write ("plot '%s' using 1:2 with lines\n" % (data_file.name,))
cmd_file.flush ()
-
+
return (cmd_file, data_file)
diff --git a/gnuradio-core/src/python/gnuradio/gruimpl/hexint.py b/gnuradio-core/src/python/gnuradio/gruimpl/hexint.py
index f2808c448..0fb5ecde0 100644
--- a/gnuradio-core/src/python/gnuradio/gruimpl/hexint.py
+++ b/gnuradio-core/src/python/gnuradio/gruimpl/hexint.py
@@ -1,23 +1,23 @@
#
# Copyright 2005 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,
# Boston, MA 02110-1301, USA.
-#
+#
def hexint(mask):
"""
diff --git a/gnuradio-core/src/python/gnuradio/gruimpl/listmisc.py b/gnuradio-core/src/python/gnuradio/gruimpl/listmisc.py
index 953bf90b1..9e70eb863 100644
--- a/gnuradio-core/src/python/gnuradio/gruimpl/listmisc.py
+++ b/gnuradio-core/src/python/gnuradio/gruimpl/listmisc.py
@@ -1,23 +1,23 @@
#
# Copyright 2005 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,
# Boston, MA 02110-1301, USA.
-#
+#
def list_reverse(x):
"""
diff --git a/gnuradio-core/src/python/gnuradio/gruimpl/lmx2306.py b/gnuradio-core/src/python/gnuradio/gruimpl/lmx2306.py
index 1a7741814..aa4efc3e9 100755
--- a/gnuradio-core/src/python/gnuradio/gruimpl/lmx2306.py
+++ b/gnuradio-core/src/python/gnuradio/gruimpl/lmx2306.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004 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,
# Boston, MA 02110-1301, USA.
-#
+#
'''Control National LMX2306 based frequency synthesizer'''
@@ -78,7 +78,7 @@ class lmx2306 (object):
self._set_fosc (fosc)
self._set_step (step_size)
-
+
def program (self, r, a, b):
if self.verbose:
print "lmx2306: r = %d a = %d b = %d" % (r, a, b)
@@ -102,10 +102,10 @@ class lmx2306 (object):
return actual
# ----------------------------------------------------------------
-
+
def _set_fosc (self, ref_oscillator_freq):
self.fosc = ref_oscillator_freq
-
+
def _set_step (self, step_size):
r = int (self.fosc / step_size)
if r * step_size != self.fosc:
@@ -114,7 +114,7 @@ class lmx2306 (object):
raise ValueError, "r is out of range"
self.r = r
self.step_size = step_size
-
+
def _compute_ab (self, divisor):
b = divisor / 8
a = divisor - (b * 8)
@@ -174,7 +174,7 @@ if __name__ == '__main__':
eng_notation.num_to_str (options.fosc),
eng_notation.num_to_str (options.step_size),
eng_notation.num_to_str (options.freq))
-
+
lmx = lmx2306 (options.fosc, options.step_size)
lmx.verbose = options.verbose
diff --git a/gnuradio-core/src/python/gnuradio/gruimpl/mathmisc.py b/gnuradio-core/src/python/gnuradio/gruimpl/mathmisc.py
index 77f2e03b5..7e6f23a34 100644
--- a/gnuradio-core/src/python/gnuradio/gruimpl/mathmisc.py
+++ b/gnuradio-core/src/python/gnuradio/gruimpl/mathmisc.py
@@ -1,23 +1,23 @@
#
# Copyright 2005 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,
# Boston, MA 02110-1301, USA.
-#
+#
import math
diff --git a/gnuradio-core/src/python/gnuradio/gruimpl/os_read_exactly.py b/gnuradio-core/src/python/gnuradio/gruimpl/os_read_exactly.py
index 0d999dd02..40b053770 100644
--- a/gnuradio-core/src/python/gnuradio/gruimpl/os_read_exactly.py
+++ b/gnuradio-core/src/python/gnuradio/gruimpl/os_read_exactly.py
@@ -1,23 +1,23 @@
#
# Copyright 2005 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,
# Boston, MA 02110-1301, USA.
-#
+#
import os
diff --git a/gnuradio-core/src/python/gnuradio/gruimpl/sdr_1000.py b/gnuradio-core/src/python/gnuradio/gruimpl/sdr_1000.py
index 8296831b1..5192a7155 100644
--- a/gnuradio-core/src/python/gnuradio/gruimpl/sdr_1000.py
+++ b/gnuradio-core/src/python/gnuradio/gruimpl/sdr_1000.py
@@ -1,23 +1,23 @@
#
# Copyright 2003,2004 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
@@ -33,7 +33,7 @@ class sdr_1000 (gr.sdr_1000_base):
self.write_latch (2, data, 0xff)
self.write_latch (3, 0x40, 0x40)
self.write_latch (3, 0x00, 0x40)
-
+
def set_freq(self, freq):
self.set_band (freq)
ftw = freq / 200e6;
@@ -56,23 +56,23 @@ class sdr_1000 (gr.sdr_1000_base):
band = 4
else:
band = 5
-
+
self.write_latch (1, 1 << band, 0x3f)
def set_bit (self, reg, bit, state):
val = 0x00
if state: val = 1<<bit
self.write_latch (reg, val, 1<<bit)
-
+
def set_tx (self, on = 1):
self.set_bit(1, 6, on)
def set_rx (self):
self.set_bit(1, 6, 0)
-
+
def set_gain (self, high):
self.set_bit(0, 7, high)
-
+
def set_mute (self, mute = 1):
self.set_bit(1, 7, mute)
diff --git a/gnuradio-core/src/python/gnuradio/gruimpl/seq_with_cursor.py b/gnuradio-core/src/python/gnuradio/gruimpl/seq_with_cursor.py
index 7416423bf..def3299b6 100644
--- a/gnuradio-core/src/python/gnuradio/gruimpl/seq_with_cursor.py
+++ b/gnuradio-core/src/python/gnuradio/gruimpl/seq_with_cursor.py
@@ -1,23 +1,23 @@
#
# Copyright 2003,2004 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,
# Boston, MA 02110-1301, USA.
-#
+#
# misc utilities
@@ -41,7 +41,7 @@ class seq_with_cursor (object):
self.index = initial_index
else:
raise exceptions.ValueError
-
+
def set_index_by_value(self, v):
"""
Set index to the smallest value such that items[index] >= v.
@@ -52,7 +52,7 @@ class seq_with_cursor (object):
more = True
while cv < v and more:
cv, more = self.next() # side effect!
-
+
def next (self):
new_index = self.index + 1
if new_index < len (self.items):
@@ -74,4 +74,4 @@ class seq_with_cursor (object):
def get_seq (self):
return self.items[:] # copy of items
-
+
diff --git a/gnuradio-core/src/python/gnuradio/gruimpl/socket_stuff.py b/gnuradio-core/src/python/gnuradio/gruimpl/socket_stuff.py
index cc2381d2e..329fd2ed3 100644
--- a/gnuradio-core/src/python/gnuradio/gruimpl/socket_stuff.py
+++ b/gnuradio-core/src/python/gnuradio/gruimpl/socket_stuff.py
@@ -1,23 +1,23 @@
#
# Copyright 2005 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,
# Boston, MA 02110-1301, USA.
-#
+#
# random socket related stuff
diff --git a/gnuradio-core/src/python/gnuradio/optfir.py b/gnuradio-core/src/python/gnuradio/optfir.py
index aee1d2a0c..bbf9ead74 100644
--- a/gnuradio-core/src/python/gnuradio/optfir.py
+++ b/gnuradio-core/src/python/gnuradio/optfir.py
@@ -1,23 +1,23 @@
#
# Copyright 2004,2005,2009 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,
# Boston, MA 02110-1301, USA.
-#
+#
'''
Routines for designing optimal FIR filters.
@@ -150,7 +150,7 @@ def high_pass (gain, Fs, freq1, freq2, passband_ripple_db, stopband_atten_db,
# In gr.remez, ntaps = n+1, so n must be even
if((n+nextra_taps)%2 == 1):
n += 1
-
+
# The remezord typically under-estimates the filter order, so add 2 taps by default
taps = gr.remez (n + nextra_taps, fo, ao, w, "bandpass")
return taps
@@ -210,7 +210,7 @@ def remezord (fcuts, mags, devs, fsamp = 2):
fcuts = fcuts[:]
mags = mags[:]
devs = devs[:]
-
+
for i in range (len (fcuts)):
fcuts[i] = float (fcuts[i]) / fsamp
@@ -224,11 +224,11 @@ def remezord (fcuts, mags, devs, fsamp = 2):
if nf != 2 * (nbands - 1):
raise ValueError, "Length of f must be 2 * len (mags) - 2"
-
+
for i in range (len (mags)):
if mags[i] != 0: # if not stopband, get relative deviation
devs[i] = devs[i] / mags[i]
-
+
# separate the passband and stopband edges
f1 = fcuts[0::2]
f2 = fcuts[1::2]
@@ -254,7 +254,7 @@ def remezord (fcuts, mags, devs, fsamp = 2):
l = max (l, l1, l2)
n = int (math.ceil (l)) - 1 # need order, not length for remez
-
+
# cook up remez compatible result
ff = [0] + fcuts + [1]
for i in range (1, len (ff) - 1):
diff --git a/gnuradio-core/src/python/gnuradio/window.py b/gnuradio-core/src/python/gnuradio/window.py
index e109a9892..4a1d0c516 100644
--- a/gnuradio-core/src/python/gnuradio/window.py
+++ b/gnuradio-core/src/python/gnuradio/window.py
@@ -1,23 +1,23 @@
#
# Copyright 2004,2005,2009 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,
# Boston, MA 02110-1301, USA.
-#
+#
'''
Routines for designing window functions.
@@ -54,7 +54,7 @@ def rate(fft_size):
def expn(fft_size):
math.log(2.0)/(midn(fft_size) + 1.0)
-
+
def hamming(fft_size):
window = []
for index in xrange(fft_size):
@@ -93,7 +93,7 @@ def bartlett(fft_size):
angle += freq
j -= 1
return window
-
+
def blackman2(fft_size):
mfrq = freq(fft_size)
angle = 0
@@ -105,7 +105,7 @@ def blackman2(fft_size):
angle += freq
j -= 1
return window
-
+
def blackman3(fft_size):
mfrq = freq(fft_size)
angle = 0
@@ -117,7 +117,7 @@ def blackman3(fft_size):
angle += freq
j -= 1
return window
-
+
def blackman4(fft_size):
mfrq = freq(fft_size)
angle = 0
@@ -129,7 +129,7 @@ def blackman4(fft_size):
angle += freq
j -= 1
return window
-
+
def exponential(fft_size):
expsum = 1.0
window = [0 for i in range(fft_size)]
diff --git a/gnuradio-core/src/tests/CMakeLists.txt b/gnuradio-core/src/tests/CMakeLists.txt
index 34ad36568..3c7f632b3 100644
--- a/gnuradio-core/src/tests/CMakeLists.txt
+++ b/gnuradio-core/src/tests/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2010-2012 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,
diff --git a/gnuradio-core/src/tests/benchmark_dotprod b/gnuradio-core/src/tests/benchmark_dotprod
index 69489e465..82f3b5c3f 100755
--- a/gnuradio-core/src/tests/benchmark_dotprod
+++ b/gnuradio-core/src/tests/benchmark_dotprod
@@ -1,19 +1,19 @@
#!/bin/sh
#
# Copyright 2008 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 this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
diff --git a/gnuradio-core/src/tests/benchmark_dotprod_fcc.cc b/gnuradio-core/src/tests/benchmark_dotprod_fcc.cc
index 8363a03b3..e9eeee43a 100644
--- a/gnuradio-core/src/tests/benchmark_dotprod_fcc.cc
+++ b/gnuradio-core/src/tests/benchmark_dotprod_fcc.cc
@@ -79,7 +79,7 @@ benchmark (fir_maker_t filter_maker, const char *implementation_name)
std::vector<gr_complex> taps (&coeffs[0], &coeffs[NTAPS]);
filter_t *f = filter_maker (taps);
-
+
// get starting CPU usage
#ifdef HAVE_SYS_RESOURCE_H
if (getrusage (RUSAGE_SELF, &rusage_start) < 0){
diff --git a/gnuradio-core/src/tests/benchmark_dotprod_scc.cc b/gnuradio-core/src/tests/benchmark_dotprod_scc.cc
index 49bbfe5bf..9a65bb4c6 100644
--- a/gnuradio-core/src/tests/benchmark_dotprod_scc.cc
+++ b/gnuradio-core/src/tests/benchmark_dotprod_scc.cc
@@ -66,7 +66,7 @@ benchmark (fir_maker_t filter_maker, const char *implementation_name)
double clock_start;
double clock_end;
#endif
-
+
// setup coefficients and input data
@@ -78,7 +78,7 @@ benchmark (fir_maker_t filter_maker, const char *implementation_name)
std::vector<gr_complex> taps (&coeffs[0], &coeffs[NTAPS]);
filter_t *f = filter_maker (taps);
-
+
// get starting CPU usage
#ifdef HAVE_SYS_RESOURCE_H
diff --git a/gnuradio-core/src/tests/benchmark_nco.cc b/gnuradio-core/src/tests/benchmark_nco.cc
index 9c4eff346..20d53e410 100644
--- a/gnuradio-core/src/tests/benchmark_nco.cc
+++ b/gnuradio-core/src/tests/benchmark_nco.cc
@@ -124,7 +124,7 @@ void native_sincos_vec (float *x, float *y)
gr_nco<float,float> nco;
nco.set_freq (2 * M_PI / FREQ);
-
+
for (int i = 0; i < ITERATIONS/BLOCK_SIZE; i++){
nco.sincos ((gr_complex*)x, BLOCK_SIZE);
}
@@ -133,9 +133,9 @@ void native_sincos_vec (float *x, float *y)
void fxpt_sincos_vec (float *x, float *y)
{
gr_fxpt_nco nco;
-
+
nco.set_freq (2 * M_PI / FREQ);
-
+
for (int i = 0; i < ITERATIONS/BLOCK_SIZE; i++){
nco.sincos ((gr_complex*)x, BLOCK_SIZE);
}
diff --git a/gnuradio-core/src/tests/test_all.cc b/gnuradio-core/src/tests/test_all.cc
index 6cec8ad0e..8a1423e9e 100644
--- a/gnuradio-core/src/tests/test_all.cc
+++ b/gnuradio-core/src/tests/test_all.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2002,2010,2011 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,
@@ -31,7 +31,7 @@
// FIXME add atsc back in.
-int
+int
main (int argc, char **argv)
{
CppUnit::TextTestRunner runner;
@@ -43,7 +43,7 @@ main (int argc, char **argv)
runner.addTest (qa_filter::suite ());
// runner.addTest (qa_atsc::suite ());
runner.setOutputter(xmlout);
-
+
bool was_successful = runner.run ("", false);
return was_successful ? 0 : 1;
diff --git a/gnuradio-core/src/tests/test_atsc.cc b/gnuradio-core/src/tests/test_atsc.cc
index 66cb2a312..d99bccce5 100644
--- a/gnuradio-core/src/tests/test_atsc.cc
+++ b/gnuradio-core/src/tests/test_atsc.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2002,2011 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,
@@ -26,7 +26,7 @@
#include <gr_unittests.h>
#include <qa_atsc.h>
-int
+int
main (int argc, char **argv)
{
CppUnit::TextTestRunner runner;
diff --git a/gnuradio-core/src/tests/test_buffers.py b/gnuradio-core/src/tests/test_buffers.py
index 186a60bb9..b867c727c 100755
--- a/gnuradio-core/src/tests/test_buffers.py
+++ b/gnuradio-core/src/tests/test_buffers.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2006 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gru
from gnuradio import audio
diff --git a/gnuradio-core/src/tests/test_filter.cc b/gnuradio-core/src/tests/test_filter.cc
index 3227a9ff2..8b17034c6 100644
--- a/gnuradio-core/src/tests/test_filter.cc
+++ b/gnuradio-core/src/tests/test_filter.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2002,2010,2011 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,
@@ -26,7 +26,7 @@
#include <gr_unittests.h>
#include <qa_filter.h>
-int
+int
main (int argc, char **argv)
{
CppUnit::TextTestRunner runner;
@@ -35,7 +35,7 @@ main (int argc, char **argv)
runner.addTest (qa_filter::suite ());
runner.setOutputter(xmlout);
-
+
bool was_successful = runner.run ("", false);
return was_successful ? 0 : 1;
diff --git a/gnuradio-core/src/tests/test_general.cc b/gnuradio-core/src/tests/test_general.cc
index ca6dee40a..32fac1b35 100644
--- a/gnuradio-core/src/tests/test_general.cc
+++ b/gnuradio-core/src/tests/test_general.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2002,2010,2011 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,
@@ -26,7 +26,7 @@
#include <gr_unittests.h>
#include <qa_general.h>
-int
+int
main (int argc, char **argv)
{
CppUnit::TextTestRunner runner;
@@ -35,7 +35,7 @@ main (int argc, char **argv)
runner.addTest (qa_general::suite ());
runner.setOutputter(xmlout);
-
+
bool was_successful = runner.run ("", false);
return was_successful ? 0 : 1;
diff --git a/gnuradio-core/src/tests/test_runtime.cc b/gnuradio-core/src/tests/test_runtime.cc
index 77af3001b..bd5378332 100644
--- a/gnuradio-core/src/tests/test_runtime.cc
+++ b/gnuradio-core/src/tests/test_runtime.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2002,2010,2011 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,
@@ -26,7 +26,7 @@
#include <gr_unittests.h>
#include <qa_runtime.h>
-int
+int
main (int argc, char **argv)
{
CppUnit::TextTestRunner runner;
@@ -35,7 +35,7 @@ main (int argc, char **argv)
runner.addTest (qa_runtime::suite ());
runner.setOutputter(xmlout);
-
+
bool was_successful = runner.run ("", false);
return was_successful ? 0 : 1;
diff --git a/gnuradio-core/src/tests/test_vmcircbuf.cc b/gnuradio-core/src/tests/test_vmcircbuf.cc
index 5145b17c4..ee24b6d62 100644
--- a/gnuradio-core/src/tests/test_vmcircbuf.cc
+++ b/gnuradio-core/src/tests/test_vmcircbuf.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2003 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,
@@ -23,7 +23,7 @@
#include <gr_vmcircbuf.h>
#include <stdio.h>
-int
+int
main (int argc, char **argv)
{
int verbose = 1; // summary
diff --git a/gnuradio-core/src/utils/cic_comp_taps.m b/gnuradio-core/src/utils/cic_comp_taps.m
index e0e0c2ebd..9ae5cb167 100644
--- a/gnuradio-core/src/utils/cic_comp_taps.m
+++ b/gnuradio-core/src/utils/cic_comp_taps.m
@@ -1,23 +1,23 @@
#
# Copyright 2008 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,
# Boston, MA 02110-1301, USA.
-#
+#
# See Altera Application Note AN455
#
diff --git a/gnuradio-core/src/utils/cool.m b/gnuradio-core/src/utils/cool.m
index e996a3a9f..f8b8a5cea 100644
--- a/gnuradio-core/src/utils/cool.m
+++ b/gnuradio-core/src/utils/cool.m
@@ -16,7 +16,7 @@
%% -*- texinfo -*-
%% @deftypefn {Function File} {} cool (@var{n})
-%% Create color colormap.
+%% Create color colormap.
%% (cyan to magenta)
%% The argument @var{n} should be a scalar. If it
%% is omitted, the length of the current colormap or 64 is assumed.
@@ -38,7 +38,7 @@ function map = cool (number)
end
if (number == 1)
- map = [0, 1, 1];
+ map = [0, 1, 1];
elseif (number > 1)
r = (0:number - 1)' ./ (number - 1);
g = 1 - r;
diff --git a/gnuradio-core/src/utils/db_width.m b/gnuradio-core/src/utils/db_width.m
index 204005c01..e9c64cc79 100644
--- a/gnuradio-core/src/utils/db_width.m
+++ b/gnuradio-core/src/utils/db_width.m
@@ -1,18 +1,18 @@
%
% Copyright 2001 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,
diff --git a/gnuradio-core/src/utils/filter_tools.m b/gnuradio-core/src/utils/filter_tools.m
index 6368edf5d..552791e33 100644
--- a/gnuradio-core/src/utils/filter_tools.m
+++ b/gnuradio-core/src/utils/filter_tools.m
@@ -1,23 +1,23 @@
%
% Copyright 2001 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,
% Boston, MA 02110-1301, USA.
-%
+%
%% equivalent to the C++ code in VrComplexFIRfilter::buildFilterComplex
1;
@@ -36,7 +36,7 @@ end
function new_taps = freq_shift_filter (old_taps, center_freq)
ntaps = length(old_taps);
-
+
new_taps = exp (j*2*pi*center_freq*(0:ntaps-1)') .* old_taps;
end
diff --git a/gnuradio-core/src/utils/is_complex.m b/gnuradio-core/src/utils/is_complex.m
index ce9a7010f..4700467b1 100644
--- a/gnuradio-core/src/utils/is_complex.m
+++ b/gnuradio-core/src/utils/is_complex.m
@@ -1,23 +1,23 @@
#
# Copyright 2004 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,
# Boston, MA 02110-1301, USA.
-#
+#
function p = is_complex (x)
p = any (imag (x) != 0);
diff --git a/gnuradio-core/src/utils/lp_to_bp.m b/gnuradio-core/src/utils/lp_to_bp.m
index e4ef3178d..4e73f6cc7 100644
--- a/gnuradio-core/src/utils/lp_to_bp.m
+++ b/gnuradio-core/src/utils/lp_to_bp.m
@@ -1,23 +1,23 @@
#
# 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,
# Boston, MA 02110-1301, USA.
-#
+#
## transform low pass coefficients into bandpass coefficients
diff --git a/gnuradio-core/src/utils/partition-cascaded-decimating-filters.scm b/gnuradio-core/src/utils/partition-cascaded-decimating-filters.scm
index 598f79d8c..6ae7877f9 100644
--- a/gnuradio-core/src/utils/partition-cascaded-decimating-filters.scm
+++ b/gnuradio-core/src/utils/partition-cascaded-decimating-filters.scm
@@ -1,7 +1,7 @@
;; Estimate the total work (ntaps * sampling rate) for two cascaded
;; decimating low pass filters.
;;
-;; The basic assumption is that the number of taps required in any
+;; The basic assumption is that the number of taps required in any
;; section is inversely proportional to the normalized transition width
;; for that section.
;;
@@ -65,4 +65,3 @@
(define (extract-nth n lst)
lst)
- \ No newline at end of file
diff --git a/gnuradio-core/src/utils/plot_cic_decimator_response.m b/gnuradio-core/src/utils/plot_cic_decimator_response.m
index 50d85e413..8f06aeafe 100644
--- a/gnuradio-core/src/utils/plot_cic_decimator_response.m
+++ b/gnuradio-core/src/utils/plot_cic_decimator_response.m
@@ -1,23 +1,23 @@
#
# Copyright 2004 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,
# Boston, MA 02110-1301, USA.
-#
+#
function plot_cic_decimator_response (R, N, M)
## R = decimation rate
@@ -42,4 +42,3 @@ function plot_cic_decimator_response (R, N, M)
endfunction
- \ No newline at end of file
diff --git a/gnuradio-core/src/utils/plot_freq_response.m b/gnuradio-core/src/utils/plot_freq_response.m
index 032d98961..335c51d62 100644
--- a/gnuradio-core/src/utils/plot_freq_response.m
+++ b/gnuradio-core/src/utils/plot_freq_response.m
@@ -1,23 +1,23 @@
#
# Copyright 2001 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,
# Boston, MA 02110-1301, USA.
-#
+#
function plot_freq_response (b,...)
if (nargin == 1)
diff --git a/gnuradio-core/src/utils/plot_freq_response_db.m b/gnuradio-core/src/utils/plot_freq_response_db.m
index 6cd9bbfc2..10ce7d6e1 100644
--- a/gnuradio-core/src/utils/plot_freq_response_db.m
+++ b/gnuradio-core/src/utils/plot_freq_response_db.m
@@ -1,23 +1,23 @@
#
# Copyright 2001 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,
# Boston, MA 02110-1301, USA.
-#
+#
function plot_freq_response_db (b,...)
if (nargin == 1)
diff --git a/gnuradio-core/src/utils/plot_freq_response_phase.m b/gnuradio-core/src/utils/plot_freq_response_phase.m
index c593d5dd3..591bd5b94 100644
--- a/gnuradio-core/src/utils/plot_freq_response_phase.m
+++ b/gnuradio-core/src/utils/plot_freq_response_phase.m
@@ -1,23 +1,23 @@
#
# Copyright 2001 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,
# Boston, MA 02110-1301, USA.
-#
+#
function plot_freq_response_db (b,...)
if (nargin == 1)
diff --git a/gnuradio-core/src/utils/plotfft.m b/gnuradio-core/src/utils/plotfft.m
index ddb8d9de4..20a2efd4c 100644
--- a/gnuradio-core/src/utils/plotfft.m
+++ b/gnuradio-core/src/utils/plotfft.m
@@ -1,18 +1,18 @@
#
# Copyright 2001 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,
diff --git a/gnuradio-core/src/utils/plotfftavgk.m b/gnuradio-core/src/utils/plotfftavgk.m
index afe9aae5b..c82c540f3 100644
--- a/gnuradio-core/src/utils/plotfftavgk.m
+++ b/gnuradio-core/src/utils/plotfftavgk.m
@@ -1,23 +1,23 @@
#
# 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,
# Boston, MA 02110-1301, USA.
-#
+#
function plotfftavgk_db (all_data, k, sample_rate)
diff --git a/gnuradio-core/src/utils/plotfftavgk_db.m b/gnuradio-core/src/utils/plotfftavgk_db.m
index 420ee9fad..73cee140d 100644
--- a/gnuradio-core/src/utils/plotfftavgk_db.m
+++ b/gnuradio-core/src/utils/plotfftavgk_db.m
@@ -1,23 +1,23 @@
#
# Copyright 2001 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,
# Boston, MA 02110-1301, USA.
-#
+#
function plotfftavgk_db (all_data, k, sample_rate)
@@ -62,7 +62,7 @@ function plotfftavgk_db (all_data, k, sample_rate)
x = min_x:incr:max_x;
y = 20 * log10(s(1:len/2));
plot (x, y);
-
+
endif;
diff --git a/gnuradio-core/src/utils/plotfftk.m b/gnuradio-core/src/utils/plotfftk.m
index 94a8ffb77..df2bf3aca 100644
--- a/gnuradio-core/src/utils/plotfftk.m
+++ b/gnuradio-core/src/utils/plotfftk.m
@@ -1,23 +1,23 @@
#
# Copyright 2001 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,
# Boston, MA 02110-1301, USA.
-#
+#
function plotfftk (all_data, k, sample_rate)
diff --git a/gnuradio-core/src/utils/plotfftk_db.m b/gnuradio-core/src/utils/plotfftk_db.m
index 9ec981ac5..b2c85412f 100644
--- a/gnuradio-core/src/utils/plotfftk_db.m
+++ b/gnuradio-core/src/utils/plotfftk_db.m
@@ -1,23 +1,23 @@
#
# Copyright 2001 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,
# Boston, MA 02110-1301, USA.
-#
+#
function plotfftk_db (all_data, k, sample_rate)
diff --git a/gnuradio-core/src/utils/put_markers.m b/gnuradio-core/src/utils/put_markers.m
index 250702ce6..1244d31aa 100644
--- a/gnuradio-core/src/utils/put_markers.m
+++ b/gnuradio-core/src/utils/put_markers.m
@@ -1,23 +1,23 @@
#
# 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,
# Boston, MA 02110-1301, USA.
-#
+#
function put_markers (y)
diff --git a/gnuradio-core/src/utils/rainbow.m b/gnuradio-core/src/utils/rainbow.m
index 9b16aab25..35fab19b8 100644
--- a/gnuradio-core/src/utils/rainbow.m
+++ b/gnuradio-core/src/utils/rainbow.m
@@ -16,7 +16,7 @@
## -*- texinfo -*-
## @deftypefn {Function File} {} rainbow (@var{n})
-## Create color colormap.
+## Create color colormap.
## (red through yellow, green, cyan,blue,magenta to red)
## The argument @var{n} should be a scalar. If it
## is omitted, the length of the current colormap or 64 is assumed.
@@ -42,7 +42,7 @@ function map = rainbow (number)
endif
if (number == 1)
- map = [1, 0, 0];
+ map = [1, 0, 0];
elseif (number > 1)
h = linspace (0, 1, number)';
map = hsv2rgb ([h, ones(number, 1), ones(number, 1)]);
diff --git a/gnuradio-core/src/utils/read_char_binary.m b/gnuradio-core/src/utils/read_char_binary.m
index 27044b447..029cea783 100644
--- a/gnuradio-core/src/utils/read_char_binary.m
+++ b/gnuradio-core/src/utils/read_char_binary.m
@@ -1,23 +1,23 @@
%
% Copyright 2001 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,
% Boston, MA 02110-1301, USA.
-%
+%
function v = read_char_binary (filename, count)
diff --git a/gnuradio-core/src/utils/read_complex_binary.m b/gnuradio-core/src/utils/read_complex_binary.m
index 67158b528..eb81f0fa0 100644
--- a/gnuradio-core/src/utils/read_complex_binary.m
+++ b/gnuradio-core/src/utils/read_complex_binary.m
@@ -1,29 +1,29 @@
%
% Copyright 2001 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,
% Boston, MA 02110-1301, USA.
-%
+%
function v = read_complex_binary (filename, count)
%% usage: read_complex_binary (filename, [count])
%%
- %% open filename and return the contents as a column vector,
+ %% open filename and return the contents as a column vector,
%% treating them as 32 bit complex numbers
%%
diff --git a/gnuradio-core/src/utils/read_cshort_binary.m b/gnuradio-core/src/utils/read_cshort_binary.m
index 047067107..149b6ca88 100644
--- a/gnuradio-core/src/utils/read_cshort_binary.m
+++ b/gnuradio-core/src/utils/read_cshort_binary.m
@@ -1,23 +1,23 @@
%
% Copyright 2001,2008 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,
% Boston, MA 02110-1301, USA.
-%
+%
function cv = read_cshort_binary (filename, count)
diff --git a/gnuradio-core/src/utils/read_float_binary.m b/gnuradio-core/src/utils/read_float_binary.m
index 69d064096..d27d09b9c 100644
--- a/gnuradio-core/src/utils/read_float_binary.m
+++ b/gnuradio-core/src/utils/read_float_binary.m
@@ -1,23 +1,23 @@
%
% Copyright 2001 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,
% Boston, MA 02110-1301, USA.
-%
+%
function v = read_float_binary (filename, count)
diff --git a/gnuradio-core/src/utils/read_int_binary.m b/gnuradio-core/src/utils/read_int_binary.m
index 821f68829..cd83bb663 100644
--- a/gnuradio-core/src/utils/read_int_binary.m
+++ b/gnuradio-core/src/utils/read_int_binary.m
@@ -1,23 +1,23 @@
%
% Copyright 2001,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,
% Boston, MA 02110-1301, USA.
-%
+%
function v = read_int_binary (filename, count)
diff --git a/gnuradio-core/src/utils/read_short_binary.m b/gnuradio-core/src/utils/read_short_binary.m
index 92720856a..7b42f5e2b 100644
--- a/gnuradio-core/src/utils/read_short_binary.m
+++ b/gnuradio-core/src/utils/read_short_binary.m
@@ -1,23 +1,23 @@
%
% Copyright 2001 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,
% Boston, MA 02110-1301, USA.
-%
+%
function v = read_short_binary (filename, count)
diff --git a/gnuradio-core/src/utils/read_xambi.m b/gnuradio-core/src/utils/read_xambi.m
index ac5bf389b..5adb94264 100644
--- a/gnuradio-core/src/utils/read_xambi.m
+++ b/gnuradio-core/src/utils/read_xambi.m
@@ -1,23 +1,23 @@
#
# Copyright 2001,2005 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,
# Boston, MA 02110-1301, USA.
-#
+#
function v = read_xambi (filename)
diff --git a/gnuradio-core/src/utils/single_pole_iir.m b/gnuradio-core/src/utils/single_pole_iir.m
index 8ff4c3247..12e21f2ac 100644
--- a/gnuradio-core/src/utils/single_pole_iir.m
+++ b/gnuradio-core/src/utils/single_pole_iir.m
@@ -1,23 +1,23 @@
#
# 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,
# Boston, MA 02110-1301, USA.
-#
+#
function [b, a] = single_pole_iir (alpha)
b = [alpha];
diff --git a/gnuradio-core/src/utils/split_vect.m b/gnuradio-core/src/utils/split_vect.m
index c492581e4..aef5c5c38 100644
--- a/gnuradio-core/src/utils/split_vect.m
+++ b/gnuradio-core/src/utils/split_vect.m
@@ -3,7 +3,7 @@
function y = split_vect(vect,N)
Z = floor(max(size(vect))/N);
y = [];
- if(size(vect)(1)>size(vect)(2))
+ if(size(vect)(1)>size(vect)(2))
v = vect';
else
v = vect;
diff --git a/gnuradio-core/src/utils/write_float_binary.m b/gnuradio-core/src/utils/write_float_binary.m
index 99f375790..79414878b 100644
--- a/gnuradio-core/src/utils/write_float_binary.m
+++ b/gnuradio-core/src/utils/write_float_binary.m
@@ -1,23 +1,23 @@
#
# Copyright 2001 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,
# Boston, MA 02110-1301, USA.
-#
+#
function v = write_float_binary (data, filename)
diff --git a/gnuradio-core/src/utils/write_short_binary.m b/gnuradio-core/src/utils/write_short_binary.m
index 0266e434b..72b3c408e 100644
--- a/gnuradio-core/src/utils/write_short_binary.m
+++ b/gnuradio-core/src/utils/write_short_binary.m
@@ -1,23 +1,23 @@
#
# Copyright 2001 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,
# Boston, MA 02110-1301, USA.
-#
+#
function v = write_short_binary (data, filename)
diff --git a/gr-atsc/CMakeLists.txt b/gr-atsc/CMakeLists.txt
index 670ff7e40..26f99a157 100644
--- a/gr-atsc/CMakeLists.txt
+++ b/gr-atsc/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gr-atsc/README b/gr-atsc/README
index c6837aebb..aa73910bd 100644
--- a/gr-atsc/README
+++ b/gr-atsc/README
@@ -1,25 +1,25 @@
#
# Copyright 2006 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,
# Boston, MA 02110-1301, USA.
-#
+#
-This module contains the GNU Radio 2.x code for the
+This module contains the GNU Radio 2.x code for the
ATSC (HDTV) transmitter and receiver.
See http://www.atsc.org for specifications. The most relevant ones
diff --git a/gr-atsc/README.signal_flow b/gr-atsc/README.signal_flow
index 879cb2c42..eee83a484 100644
--- a/gr-atsc/README.signal_flow
+++ b/gr-atsc/README.signal_flow
@@ -12,7 +12,7 @@ GrAtscRSEncoder atsc_mpeg_packet_no_sync atsc_mpeg_packet_rs_encode
GrAtscInterleaver atsc_mpeg_packet_rs_encoded atsc_mpeg_packet_rs_encoded convolutional interleaver
GrAtscTrellisEncoder atsc_mpeg_packet_rs_encoded atsc_data_segment trellis encoder
GrAtscFieldSyncMux atsc_data_segment atsc_data_segment add in field syncs
-GrAtscSymbolMapper atsc_data_segment float map [0,7] to +/- {1,3,5,7} and add pilot
+GrAtscSymbolMapper atsc_data_segment float map [0,7] to +/- {1,3,5,7} and add pilot
GrWeaverModHead float float,float front half of Weaver VSB modulator
GrFIRfilterFFF (2x) float float low pass root raised cosine (matched filter)
GrWeaverModTail float,float short back half of Weaver VSB modulator
@@ -22,7 +22,7 @@ VrFileSink short "16-bit passband data"
ATSC Receiver
=============
-module input output notes
+module input output notes
-------------------- ---------------- ------------------- -------
VrFileSource "16-bit passband data" short
GrConvertSF short float convert short to float
@@ -38,4 +38,4 @@ GrAtscViterbiDecoder atsc_soft_data_segment atsc_mpeg_packet_rs_encod
GrAtscDeinterleaver atsc_mpeg_packet_rs_encoded atsc_mpeg_packet_rs_encoded convolutional de-interleaver (52 seg delay)
GrAtscRSDecoder atsc_mpeg_packet_rs_encoded atsc_mpeg_packet_no_sync Reed-Solomon decoder
GrAtscDerandomizer atsc_mpeg_packet_no_sync atsc_mpeg_packet de-whiten with LFSR
-VrFileSink atsc_mpeg_packet "MPEG transport stream"
+VrFileSink atsc_mpeg_packet "MPEG transport stream"
diff --git a/gr-atsc/src/lib/GrAtscBitTimingLoop.cc b/gr-atsc/src/lib/GrAtscBitTimingLoop.cc
index 97b62cb93..8053736ee 100644
--- a/gr-atsc/src/lib/GrAtscBitTimingLoop.cc
+++ b/gr-atsc/src/lib/GrAtscBitTimingLoop.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,
@@ -46,7 +46,7 @@ GrAtscBitTimingLoop::GrAtscBitTimingLoop ()
{
d_timing_rate = DEFAULT_TIMING_RATE;
loop.set_taps (DEFAULT_LOOP_TAP);
-
+
history = 1500; // spare input samples in case we need them.
#ifdef _BT_DIAG_OUTPUT_
@@ -55,7 +55,7 @@ GrAtscBitTimingLoop::GrAtscBitTimingLoop ()
perror ("loop.out");
exit (1);
}
-
+
fp_ps = fopen ("ps.out", "w");
if (fp_ps == 0){
perror ("ps.out");
@@ -79,13 +79,13 @@ GrAtscBitTimingLoop::forecast(VrSampleRange output,
inputs[i].size=output.size*decimation + history-1;
}
return 0;
-}
+}
inline double
GrAtscBitTimingLoop::filter_error (double e)
{
static const double limit = 50 * FPLL_BTLOOP_COUPLING_CONST;
-
+
// first limit
if (e > limit)
@@ -96,7 +96,7 @@ GrAtscBitTimingLoop::filter_error (double e)
return loop.filter (e);
}
-int
+int
GrAtscBitTimingLoop::work (VrSampleRange output, void *ao[],
VrSampleRange inputs[], void *ai[])
{
@@ -107,8 +107,8 @@ GrAtscBitTimingLoop::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.
@@ -158,7 +158,7 @@ GrAtscBitTimingLoop::work (VrSampleRange output, void *ao[],
if (!debug_no_update){
mu += filtered_timing_error * d_timing_rate;
}
-
+
#ifdef _BT_DIAG_OUTPUT_
float iodata[8];
iodata[0] = left;
diff --git a/gr-atsc/src/lib/GrAtscBitTimingLoop.h b/gr-atsc/src/lib/GrAtscBitTimingLoop.h
index 9fcffcffe..fa64f4d37 100644
--- a/gr-atsc/src/lib/GrAtscBitTimingLoop.h
+++ b/gr-atsc/src/lib/GrAtscBitTimingLoop.h
@@ -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,
@@ -80,7 +80,7 @@ class GrAtscBitTimingLoop : public VrDecimatingSigProc<float,float> {
double d_loop_filter_tap;
double d_timing_rate;
-
+
#ifdef _BT_DIAG_OUTPUT_
FILE *fp_loop;
FILE *fp_ps;
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;
}
diff --git a/gr-atsc/src/lib/GrAtscBitTimingLoop2.h b/gr-atsc/src/lib/GrAtscBitTimingLoop2.h
index c03e64a0c..4f36c902e 100644
--- a/gr-atsc/src/lib/GrAtscBitTimingLoop2.h
+++ b/gr-atsc/src/lib/GrAtscBitTimingLoop2.h
@@ -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,
diff --git a/gr-atsc/src/lib/GrAtscBitTimingLoop3.cc b/gr-atsc/src/lib/GrAtscBitTimingLoop3.cc
index 3ee2880e6..f9c1eb02e 100644
--- a/gr-atsc/src/lib/GrAtscBitTimingLoop3.cc
+++ b/gr-atsc/src/lib/GrAtscBitTimingLoop3.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,
@@ -37,7 +37,7 @@ GrAtscBitTimingLoop3::GrAtscBitTimingLoop3 (double ratio_of_rx_clock_to_symbol_f
{
assert (ratio_of_rx_clock_to_symbol_freq >= 1.8); // sanity check
-
+
history = 1500; // spare input samples in case we need them.
}
@@ -51,17 +51,17 @@ int
GrAtscBitTimingLoop3::forecast(VrSampleRange output,
VrSampleRange inputs[]) {
assert (numberInputs == 1);
-
+
/* dec:1 ratio with history */
inputs[0].index = d_next_input;
inputs[0].size =
((unsigned long) (output.size * d_rx_clock_to_symbol_freq) + history - 1);
return 0;
-}
+}
-int
+int
GrAtscBitTimingLoop3::work (VrSampleRange output, void *ao[],
VrSampleRange inputs[], void *ai[])
{
@@ -73,7 +73,7 @@ GrAtscBitTimingLoop3::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.
int si = 0; // source index
@@ -93,7 +93,7 @@ GrAtscBitTimingLoop3::work (VrSampleRange output, void *ao[],
fprintf (stderr, "GrAtscBitTimingLoop3: ran short on data...\n");
break;
}
-
+
d_sssr.update (interp_sample, &seg_locked, &symbol_index, &timing_adjustment);
out_sample[k] = interp_sample;
tag.valid = seg_locked;
diff --git a/gr-atsc/src/lib/GrAtscBitTimingLoop3.h b/gr-atsc/src/lib/GrAtscBitTimingLoop3.h
index fd2ea03e5..7e019e49c 100644
--- a/gr-atsc/src/lib/GrAtscBitTimingLoop3.h
+++ b/gr-atsc/src/lib/GrAtscBitTimingLoop3.h
@@ -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,
diff --git a/gr-atsc/src/lib/GrAtscConvert2xTo20.cc b/gr-atsc/src/lib/GrAtscConvert2xTo20.cc
index ec74503e8..1f540464d 100644
--- a/gr-atsc/src/lib/GrAtscConvert2xTo20.cc
+++ b/gr-atsc/src/lib/GrAtscConvert2xTo20.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,
@@ -51,7 +51,7 @@ GrAtscConvert2xTo20::pre_initialize ()
fprintf (stderr,
"GrAtscConvert2xTo20: argument to setSamplingFrequency = %g\n",
getInputSamplingFrequencyN(0) / DEC_RATIO);
-
+
int r;
r = setSamplingFrequency (getInputSamplingFrequencyN (0) / DEC_RATIO);
@@ -99,7 +99,7 @@ GrAtscConvert2xTo20::work (VrSampleRange output, void *ao[],
int incr = (int) float_incr;
si += incr;
}
-
+
d_next_input += si;
d_frac_part = frac_part;
return output.size;
diff --git a/gr-atsc/src/lib/GrAtscConvert2xTo20.h b/gr-atsc/src/lib/GrAtscConvert2xTo20.h
index eba6f715e..05b1023e5 100644
--- a/gr-atsc/src/lib/GrAtscConvert2xTo20.h
+++ b/gr-atsc/src/lib/GrAtscConvert2xTo20.h
@@ -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,
@@ -29,7 +29,7 @@ class GrAtscConvert2xTo20 : public VrDecimatingSigProc<float,float> {
gr_mmse_fir_interpolator d_interp;
double d_frac_part;
VrSampleIndex d_next_input;
-
+
public:
GrAtscConvert2xTo20 ();
~GrAtscConvert2xTo20 ();
diff --git a/gr-atsc/src/lib/GrAtscDataSegToSoftDataSeg.cc b/gr-atsc/src/lib/GrAtscDataSegToSoftDataSeg.cc
index 417e108d4..09c3db4e0 100644
--- a/gr-atsc/src/lib/GrAtscDataSegToSoftDataSeg.cc
+++ b/gr-atsc/src/lib/GrAtscDataSegToSoftDataSeg.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,
@@ -49,7 +49,7 @@ GrAtscDataSegToSoftDataSeg::GrAtscDataSegToSoftDataSeg ()
// used by the superclass's forecast routine to get us the correct
// range on our inputs.
// We're one-to-one input-to-output so set it to 1.
- history = 1;
+ history = 1;
// any other init here.
}
@@ -65,7 +65,7 @@ GrAtscDataSegToSoftDataSeg::~GrAtscDataSegToSoftDataSeg ()
* use a single input and output stream.
*/
-int
+int
GrAtscDataSegToSoftDataSeg::work (VrSampleRange output, void *ao[],
VrSampleRange inputs[], void *ai[])
{
diff --git a/gr-atsc/src/lib/GrAtscDataSegToSoftDataSeg.h b/gr-atsc/src/lib/GrAtscDataSegToSoftDataSeg.h
index 7579bedf1..207324d55 100644
--- a/gr-atsc/src/lib/GrAtscDataSegToSoftDataSeg.h
+++ b/gr-atsc/src/lib/GrAtscDataSegToSoftDataSeg.h
@@ -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,
diff --git a/gr-atsc/src/lib/GrAtscDeinterleaver.cc b/gr-atsc/src/lib/GrAtscDeinterleaver.cc
index 357b9be38..fd67d7a20 100644
--- a/gr-atsc/src/lib/GrAtscDeinterleaver.cc
+++ b/gr-atsc/src/lib/GrAtscDeinterleaver.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,
@@ -37,7 +37,7 @@ GrAtscDeinterleaver::GrAtscDeinterleaver ()
// used by the superclass's forecast routine to get us the correct
// range on our inputs.
// We're one-to-one input-to-output so set it to 1.
- history = 1;
+ history = 1;
// any other init here.
}
@@ -53,7 +53,7 @@ GrAtscDeinterleaver::~GrAtscDeinterleaver ()
* use a single input and output stream.
*/
-int
+int
GrAtscDeinterleaver::work (VrSampleRange output, void *ao[],
VrSampleRange inputs[], void *ai[])
{
diff --git a/gr-atsc/src/lib/GrAtscDeinterleaver.h b/gr-atsc/src/lib/GrAtscDeinterleaver.h
index c10e17dfb..f0f9830b6 100644
--- a/gr-atsc/src/lib/GrAtscDeinterleaver.h
+++ b/gr-atsc/src/lib/GrAtscDeinterleaver.h
@@ -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,
diff --git a/gr-atsc/src/lib/GrAtscDerandomizer.cc b/gr-atsc/src/lib/GrAtscDerandomizer.cc
index 4935483c7..db3583a62 100644
--- a/gr-atsc/src/lib/GrAtscDerandomizer.cc
+++ b/gr-atsc/src/lib/GrAtscDerandomizer.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,
@@ -37,7 +37,7 @@ GrAtscDerandomizer::GrAtscDerandomizer ()
// used by the superclass's forecast routine to get us the correct
// range on our inputs.
// We're one-to-one input-to-output so set it to 1.
- history = 1;
+ history = 1;
// any other init here.
}
@@ -53,7 +53,7 @@ GrAtscDerandomizer::~GrAtscDerandomizer ()
* use a single input and output stream.
*/
-int
+int
GrAtscDerandomizer::work (VrSampleRange output, void *ao[],
VrSampleRange inputs[], void *ai[])
{
@@ -85,7 +85,7 @@ GrAtscDerandomizer::work (VrSampleRange output, void *ao[],
if (in[i].pli.first_regular_seg_p ())
rand.reset ();
-
+
rand.derandomize (out[i], in[i]);
// take a look at the transport error bit in the pipeline info
@@ -102,5 +102,5 @@ GrAtscDerandomizer::work (VrSampleRange output, void *ao[],
// Note that for all intents and purposes, it is an error to
// produce less than you are asked for.
- return output.size;
+ return output.size;
}
diff --git a/gr-atsc/src/lib/GrAtscDerandomizer.h b/gr-atsc/src/lib/GrAtscDerandomizer.h
index d1de3a54a..bd0d70d94 100644
--- a/gr-atsc/src/lib/GrAtscDerandomizer.h
+++ b/gr-atsc/src/lib/GrAtscDerandomizer.h
@@ -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,
diff --git a/gr-atsc/src/lib/GrAtscEqualizer.cc b/gr-atsc/src/lib/GrAtscEqualizer.cc
index b0a9d9987..27f64c2b7 100644
--- a/gr-atsc/src/lib/GrAtscEqualizer.cc
+++ b/gr-atsc/src/lib/GrAtscEqualizer.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,
@@ -28,7 +28,7 @@
typedef float dataType;
typedef atsc::syminfo tagType;
-static const int NUMBER_OF_OUTPUTS = 2; // # of output streams
+static const int NUMBER_OF_OUTPUTS = 2; // # of output streams
GrAtscEqualizer::GrAtscEqualizer (atsci_equalizer *equalizer)
@@ -36,7 +36,7 @@ GrAtscEqualizer::GrAtscEqualizer (atsci_equalizer *equalizer)
{
// due to limitation of runtime, all inputs must be the same size
assert (sizeof (dataType) == sizeof (tagType));
-
+
d_equalizer = equalizer;
// 1 + number of extra input elements at which we look. This is
@@ -63,19 +63,19 @@ GrAtscEqualizer::~GrAtscEqualizer ()
int
GrAtscEqualizer::forecast (VrSampleRange output,
- VrSampleRange inputs[])
+ VrSampleRange inputs[])
{
assert (numberInputs == 2);
-
+
int ntaps = d_equalizer->ntaps ();
int npretaps = d_equalizer->npretaps ();
-
+
assert (ntaps >= 1);
assert (npretaps >= 0 && npretaps < ntaps);
-
+
inputs[0].index = output.index; // the equalizer data
inputs[0].size = output.size + ntaps - 1; // history on data
-
+
// FIXME if there's a problem, it's probably on the next line...
int offset = ntaps - npretaps - 1;
@@ -85,19 +85,19 @@ GrAtscEqualizer::forecast (VrSampleRange output,
inputs[1].size = output.size; // N.B., no extra history on tags
return 0;
-}
+}
/*
* This is the real work horse. We consume 2 input streams
* and produce 2 output streams.
*/
-int
+int
GrAtscEqualizer::work (VrSampleRange output, void *ao[],
VrSampleRange inputs[], void *ai[])
{
// assert (numberInputs == 2);
-
+
// If we have state that persists across invocations (e.g., we have
// instance variables that we modify), we must use the sync method
// to indicate to the scheduler that our output must be computed in
diff --git a/gr-atsc/src/lib/GrAtscEqualizer.h b/gr-atsc/src/lib/GrAtscEqualizer.h
index b67e98400..ff944deb7 100644
--- a/gr-atsc/src/lib/GrAtscEqualizer.h
+++ b/gr-atsc/src/lib/GrAtscEqualizer.h
@@ -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,
diff --git a/gr-atsc/src/lib/GrAtscFPLL.cc b/gr-atsc/src/lib/GrAtscFPLL.cc
index ce5b183e6..df7d6b8c0 100644
--- a/gr-atsc/src/lib/GrAtscFPLL.cc
+++ b/gr-atsc/src/lib/GrAtscFPLL.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,
@@ -59,7 +59,7 @@ GrAtscFPLL::initialize ()
float Fs = getInputSamplingFrequencyN (0);
float alpha = 1 - exp(-1.0 / Fs / 5e-6);
-
+
afci.set_taps (alpha);
afcq.set_taps (alpha);
@@ -67,7 +67,7 @@ GrAtscFPLL::initialize ()
nco.set_phase (initial_phase);
}
-int
+int
GrAtscFPLL::work (VrSampleRange output, void *ao[],
VrSampleRange inputs[], void *ai[])
{
@@ -109,7 +109,7 @@ GrAtscFPLL::work (VrSampleRange output, void *ao[],
// static const float alpha = 0.037; // Max value
// static const float alpha = 0.005; // takes about 5k samples to pull in, stddev = 323
// static const float alpha = 0.002; // takes about 15k samples to pull in, stddev = 69
- // or about 120k samples on noisy data,
+ // or about 120k samples on noisy data,
static const float alpha = 0.001;
static const float beta = alpha * alpha / 4;
diff --git a/gr-atsc/src/lib/GrAtscFPLL.h b/gr-atsc/src/lib/GrAtscFPLL.h
index f89411a50..597a4a891 100644
--- a/gr-atsc/src/lib/GrAtscFPLL.h
+++ b/gr-atsc/src/lib/GrAtscFPLL.h
@@ -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,
@@ -37,7 +37,7 @@
*
* Used as follows:
* float float
- * A/D --> GrFIRfilterFFF ----> GrAtscFPLL ---->
+ * A/D --> GrFIRfilterFFF ----> GrAtscFPLL ---->
*
* We use GrFIRfilterFFF to bandpass filter the signal of interest.
*
@@ -49,7 +49,7 @@ class GrAtscFPLL : public VrSigProc {
typedef float iType;
typedef float oType;
-
+
public:
GrAtscFPLL (double a_initial_freq);
@@ -77,7 +77,7 @@ class GrAtscFPLL : public VrSigProc {
gr_agc agc; // automatic gain control
gr_single_pole_iir<float,float,float> afci;
gr_single_pole_iir<float,float,float> afcq;
-
+
#ifdef _FPLL_DIAG_OUTPUT_
FILE *fp;
#endif
diff --git a/gr-atsc/src/lib/GrAtscFieldSyncChecker.cc b/gr-atsc/src/lib/GrAtscFieldSyncChecker.cc
index c52b18442..d2c82d6d4 100644
--- a/gr-atsc/src/lib/GrAtscFieldSyncChecker.cc
+++ b/gr-atsc/src/lib/GrAtscFieldSyncChecker.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,
@@ -31,7 +31,7 @@ typedef atsc::syminfo iTagType;
typedef float oDataType;
typedef atsc::syminfo oTagType;
-static const int NUMBER_OF_OUTPUTS = 2; // # of output streams
+static const int NUMBER_OF_OUTPUTS = 2; // # of output streams
GrAtscFieldSyncChecker::GrAtscFieldSyncChecker ()
@@ -45,7 +45,7 @@ GrAtscFieldSyncChecker::GrAtscFieldSyncChecker ()
// used by the superclass's forecast routine to get us the correct
// range on our inputs.
// We're one-to-one input-to-output so set it to 1.
- history = 1;
+ history = 1;
d_fsc = create_atsci_fs_checker ();
}
@@ -63,7 +63,7 @@ GrAtscFieldSyncChecker::~GrAtscFieldSyncChecker ()
* use a single input and output stream.
*/
-int
+int
GrAtscFieldSyncChecker::work (VrSampleRange output, void *ao[],
VrSampleRange inputs[], void *ai[])
{
diff --git a/gr-atsc/src/lib/GrAtscFieldSyncChecker.h b/gr-atsc/src/lib/GrAtscFieldSyncChecker.h
index e2f48281b..28458a19b 100644
--- a/gr-atsc/src/lib/GrAtscFieldSyncChecker.h
+++ b/gr-atsc/src/lib/GrAtscFieldSyncChecker.h
@@ -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,
diff --git a/gr-atsc/src/lib/GrAtscFieldSyncCorrelator.cc b/gr-atsc/src/lib/GrAtscFieldSyncCorrelator.cc
index 4cbf17103..42f93aa8c 100644
--- a/gr-atsc/src/lib/GrAtscFieldSyncCorrelator.cc
+++ b/gr-atsc/src/lib/GrAtscFieldSyncCorrelator.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,
@@ -29,7 +29,7 @@
typedef float iType;
typedef float oType;
-static const int NUMBER_OF_OUTPUTS = 2; // # of output streams
+static const int NUMBER_OF_OUTPUTS = 2; // # of output streams
GrAtscFieldSyncCorrelator::GrAtscFieldSyncCorrelator ()
@@ -39,7 +39,7 @@ GrAtscFieldSyncCorrelator::GrAtscFieldSyncCorrelator ()
// used by the superclass's forecast routine to get us the correct
// range on our inputs.
// We're one-to-one input-to-output so set it to 1.
- history = 1;
+ history = 1;
d_fsc = create_atsci_fs_correlator ();
}
@@ -57,7 +57,7 @@ GrAtscFieldSyncCorrelator::~GrAtscFieldSyncCorrelator ()
* use a single input and output stream.
*/
-int
+int
GrAtscFieldSyncCorrelator::work (VrSampleRange output, void *ao[],
VrSampleRange inputs[], void *ai[])
{
diff --git a/gr-atsc/src/lib/GrAtscFieldSyncCorrelator.h b/gr-atsc/src/lib/GrAtscFieldSyncCorrelator.h
index 9f5c43563..1a16048b2 100644
--- a/gr-atsc/src/lib/GrAtscFieldSyncCorrelator.h
+++ b/gr-atsc/src/lib/GrAtscFieldSyncCorrelator.h
@@ -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,
diff --git a/gr-atsc/src/lib/GrAtscFieldSyncDemux.cc b/gr-atsc/src/lib/GrAtscFieldSyncDemux.cc
index 239499325..e311acc8a 100644
--- a/gr-atsc/src/lib/GrAtscFieldSyncDemux.cc
+++ b/gr-atsc/src/lib/GrAtscFieldSyncDemux.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,
@@ -50,13 +50,13 @@ GrAtscFieldSyncDemux::forecast (VrSampleRange output,
/* dec:1 ratio with history */
assert (numberInputs == 2);
-
+
for (unsigned int i = 0; i < numberInputs; i++) {
inputs[i].index = d_next_input;
inputs[i].size = output.size * decimation + history - 1;
}
return 0;
-}
+}
inline static bool
tag_is_seg_sync_or_field_sync (atsc::syminfo tag)
@@ -103,12 +103,12 @@ GrAtscFieldSyncDemux::work (VrSampleRange output, void *ao[],
str = "FIELD-2";
else
str = "SEGMENT";
-
+
cerr << "GrAtscFieldSyncDemux: synced (" << str << ") at "
<< inputs[0].index + ii
<< " [delta = " << inputs[0].index + ii - d_lost_index
<< "]\n";
-
+
d_next_input += ii; // update for forecast
return 0; // no work completed so far
}
@@ -117,7 +117,7 @@ GrAtscFieldSyncDemux::work (VrSampleRange output, void *ao[],
d_next_input += ii; // update for forecast
return 0; // no work completed so far
}
-
+
// We are in sync. Produce output...
unsigned int k = 0; // output index
@@ -135,7 +135,7 @@ GrAtscFieldSyncDemux::work (VrSampleRange output, void *ao[],
// lost sync...
// cerr << "GrAtscFieldSyncDemux: lost sync at "
// << inputs[0].index + ii << endl;
-
+
d_next_input += ii; // update for forecast
return k; // return amount of work completed so far
}
@@ -146,7 +146,7 @@ GrAtscFieldSyncDemux::work (VrSampleRange output, void *ao[],
ii += ATSC_DATA_SEGMENT_LENGTH; // skip over field sync
continue;
}
-
+
if (atsc::tag_is_start_field_sync_2 (input_tags[ii])){
d_in_field2 = true;
d_segment_number = 0;
diff --git a/gr-atsc/src/lib/GrAtscFieldSyncDemux.h b/gr-atsc/src/lib/GrAtscFieldSyncDemux.h
index 5796aa233..f5bab9b87 100644
--- a/gr-atsc/src/lib/GrAtscFieldSyncDemux.h
+++ b/gr-atsc/src/lib/GrAtscFieldSyncDemux.h
@@ -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,
diff --git a/gr-atsc/src/lib/GrAtscFieldSyncMux.cc b/gr-atsc/src/lib/GrAtscFieldSyncMux.cc
index 8df36ba4b..7ebab72ad 100644
--- a/gr-atsc/src/lib/GrAtscFieldSyncMux.cc
+++ b/gr-atsc/src/lib/GrAtscFieldSyncMux.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,
@@ -54,7 +54,7 @@ init_field_sync_common (unsigned char *p, int mask,
for (int j = 0; j < 63; j++) // PN63, toggled on field 2
p[i++] = bin_map[atsc_pn63[j] ^ mask];
-
+
for (int j = 0; j < 63; j++) // PN63
p[i++] = bin_map[atsc_pn63[j]];
@@ -124,7 +124,7 @@ save_last_symbols (unsigned char saved_symbols[N_SAVED_SYMBOLS],
}
-inline static bool
+inline static bool
last_regular_seg_p (const plinfo &pli)
{
return pli.regular_seg_p () && (pli.segno () == ATSC_DSEGS_PER_FIELD - 1);
@@ -138,7 +138,7 @@ GrAtscFieldSyncMux::GrAtscFieldSyncMux ()
// 1 + number of extra input elements at which we look. This is
// used by the superclass's forecast routine to get us the correct
// range on our inputs.
- history = 1;
+ history = 1;
// any other init here.
}
@@ -160,7 +160,7 @@ GrAtscFieldSyncMux::pre_initialize ()
* exactly 1:1 with our input.
*/
-int
+int
GrAtscFieldSyncMux::forecast (VrSampleRange output, VrSampleRange inputs[])
{
for(unsigned int i = 0; i < numberInputs; i++) {
@@ -175,7 +175,7 @@ GrAtscFieldSyncMux::forecast (VrSampleRange output, VrSampleRange inputs[])
* multiple streams of input and output, but we almost always
* use a single input and output stream.
*/
-int
+int
GrAtscFieldSyncMux::work (VrSampleRange output, void *ao[],
VrSampleRange inputs[], void *ai[])
{
@@ -204,7 +204,7 @@ GrAtscFieldSyncMux::work (VrSampleRange output, void *ao[],
for (unsigned int outdex = 0; outdex < output.size; outdex++){
assert (in[index].pli.regular_seg_p ());
-
+
if (!in[index].pli.first_regular_seg_p ()){
out[outdex] = in[index]; // just copy in to out
@@ -242,5 +242,5 @@ GrAtscFieldSyncMux::work (VrSampleRange output, void *ao[],
// Note that for all intents and purposes, it is an error to
// produce less than you are asked for.
- return output.size;
+ return output.size;
}
diff --git a/gr-atsc/src/lib/GrAtscFieldSyncMux.h b/gr-atsc/src/lib/GrAtscFieldSyncMux.h
index 66dd4494a..ae52b8e5c 100644
--- a/gr-atsc/src/lib/GrAtscFieldSyncMux.h
+++ b/gr-atsc/src/lib/GrAtscFieldSyncMux.h
@@ -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,
@@ -46,7 +46,7 @@ public:
int forecast (VrSampleRange output, VrSampleRange inputs[]);
void pre_initialize ();
-
+
static const int N_SAVED_SYMBOLS = 12;
protected:
diff --git a/gr-atsc/src/lib/GrAtscInterleaver.cc b/gr-atsc/src/lib/GrAtscInterleaver.cc
index cd50a8679..2c8f0c7e8 100644
--- a/gr-atsc/src/lib/GrAtscInterleaver.cc
+++ b/gr-atsc/src/lib/GrAtscInterleaver.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,
@@ -37,7 +37,7 @@ GrAtscInterleaver::GrAtscInterleaver ()
// used by the superclass's forecast routine to get us the correct
// range on our inputs.
// We're one-to-one input-to-output so set it to 1.
- history = 1;
+ history = 1;
// any other init here.
}
@@ -53,7 +53,7 @@ GrAtscInterleaver::~GrAtscInterleaver ()
* use a single input and output stream.
*/
-int
+int
GrAtscInterleaver::work (VrSampleRange output, void *ao[],
VrSampleRange inputs[], void *ai[])
{
@@ -97,5 +97,5 @@ GrAtscInterleaver::work (VrSampleRange output, void *ao[],
// Note that for all intents and purposes, it is an error to
// produce less than you are asked for.
- return output.size;
+ return output.size;
}
diff --git a/gr-atsc/src/lib/GrAtscInterleaver.h b/gr-atsc/src/lib/GrAtscInterleaver.h
index 07066133a..76be38a21 100644
--- a/gr-atsc/src/lib/GrAtscInterleaver.h
+++ b/gr-atsc/src/lib/GrAtscInterleaver.h
@@ -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,
diff --git a/gr-atsc/src/lib/GrAtscRSDecoder.cc b/gr-atsc/src/lib/GrAtscRSDecoder.cc
index c9092a298..fd0122ad2 100644
--- a/gr-atsc/src/lib/GrAtscRSDecoder.cc
+++ b/gr-atsc/src/lib/GrAtscRSDecoder.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,
@@ -37,7 +37,7 @@ GrAtscRSDecoder::GrAtscRSDecoder ()
// used by the superclass's forecast routine to get us the correct
// range on our inputs.
// We're one-to-one input-to-output so set it to 1.
- history = 1;
+ history = 1;
// any other init here.
}
@@ -53,7 +53,7 @@ GrAtscRSDecoder::~GrAtscRSDecoder ()
* use a single input and output stream.
*/
-int
+int
GrAtscRSDecoder::work (VrSampleRange output, void *ao[],
VrSampleRange inputs[], void *ai[])
{
@@ -77,5 +77,5 @@ GrAtscRSDecoder::work (VrSampleRange output, void *ao[],
// Note that for all intents and purposes, it is an error to
// produce less than you are asked for.
- return output.size;
+ return output.size;
}
diff --git a/gr-atsc/src/lib/GrAtscRSDecoder.h b/gr-atsc/src/lib/GrAtscRSDecoder.h
index 4586a20b2..d64102d10 100644
--- a/gr-atsc/src/lib/GrAtscRSDecoder.h
+++ b/gr-atsc/src/lib/GrAtscRSDecoder.h
@@ -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,
diff --git a/gr-atsc/src/lib/GrAtscRSEncoder.cc b/gr-atsc/src/lib/GrAtscRSEncoder.cc
index 2954779a1..249678427 100644
--- a/gr-atsc/src/lib/GrAtscRSEncoder.cc
+++ b/gr-atsc/src/lib/GrAtscRSEncoder.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,
@@ -37,7 +37,7 @@ GrAtscRSEncoder::GrAtscRSEncoder ()
// used by the superclass's forecast routine to get us the correct
// range on our inputs.
// We're one-to-one input-to-output so set it to 1.
- history = 1;
+ history = 1;
// any other init here.
}
@@ -53,7 +53,7 @@ GrAtscRSEncoder::~GrAtscRSEncoder ()
* use a single input and output stream.
*/
-int
+int
GrAtscRSEncoder::work (VrSampleRange output, void *ao[],
VrSampleRange inputs[], void *ai[])
{
@@ -80,5 +80,5 @@ GrAtscRSEncoder::work (VrSampleRange output, void *ao[],
// Note that for all intents and purposes, it is an error to
// produce less than you are asked for.
- return output.size;
+ return output.size;
}
diff --git a/gr-atsc/src/lib/GrAtscRSEncoder.h b/gr-atsc/src/lib/GrAtscRSEncoder.h
index 3f41d7797..29921d8b3 100644
--- a/gr-atsc/src/lib/GrAtscRSEncoder.h
+++ b/gr-atsc/src/lib/GrAtscRSEncoder.h
@@ -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,
diff --git a/gr-atsc/src/lib/GrAtscRandomizer.cc b/gr-atsc/src/lib/GrAtscRandomizer.cc
index 3217b9b87..c5172699c 100644
--- a/gr-atsc/src/lib/GrAtscRandomizer.cc
+++ b/gr-atsc/src/lib/GrAtscRandomizer.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,
@@ -38,7 +38,7 @@ GrAtscRandomizer::GrAtscRandomizer ()
// used by the superclass's forecast routine to get us the correct
// range on our inputs.
// We're one-to-one input-to-output so set it to 1.
- history = 1;
+ history = 1;
// any other init here.
}
@@ -54,7 +54,7 @@ GrAtscRandomizer::~GrAtscRandomizer ()
* use a single input and output stream.
*/
-int
+int
GrAtscRandomizer::work (VrSampleRange output, void *ao[],
VrSampleRange inputs[], void *ai[])
{
@@ -106,5 +106,5 @@ GrAtscRandomizer::work (VrSampleRange output, void *ao[],
// Note that for all intents and purposes, it is an error to
// produce less than you are asked for.
- return output.size;
+ return output.size;
}
diff --git a/gr-atsc/src/lib/GrAtscRandomizer.h b/gr-atsc/src/lib/GrAtscRandomizer.h
index 7a1908d01..f56f7178e 100644
--- a/gr-atsc/src/lib/GrAtscRandomizer.h
+++ b/gr-atsc/src/lib/GrAtscRandomizer.h
@@ -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,
diff --git a/gr-atsc/src/lib/GrAtscSegSymSync.cc b/gr-atsc/src/lib/GrAtscSegSymSync.cc
index 721f36c10..2d9419c25 100644
--- a/gr-atsc/src/lib/GrAtscSegSymSync.cc
+++ b/gr-atsc/src/lib/GrAtscSegSymSync.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,
diff --git a/gr-atsc/src/lib/GrAtscSegSymSync.h b/gr-atsc/src/lib/GrAtscSegSymSync.h
index 0f01a8de3..750483f54 100644
--- a/gr-atsc/src/lib/GrAtscSegSymSync.h
+++ b/gr-atsc/src/lib/GrAtscSegSymSync.h
@@ -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,
@@ -48,7 +48,7 @@ public:
GrAtscSegSymSync ();
~GrAtscSegSymSync ();
-
+
/*!
* \brief reset bit timing loop on channel change
*/
diff --git a/gr-atsc/src/lib/GrAtscSegSymSyncImpl.cc b/gr-atsc/src/lib/GrAtscSegSymSyncImpl.cc
index a7925bf8f..8e2cfc208 100644
--- a/gr-atsc/src/lib/GrAtscSegSymSyncImpl.cc
+++ b/gr-atsc/src/lib/GrAtscSegSymSyncImpl.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,
@@ -33,7 +33,7 @@ GrAtscSegSymSyncImpl::GrAtscSegSymSyncImpl (
decimation = (int) rint (nominal_ratio_of_rx_clock_to_symbol_freq);
history = 1500; // spare input samples in case we need them.
-
+
d_sssr.reset ();
d_interp.reset ();
d_next_input = 0;
diff --git a/gr-atsc/src/lib/GrAtscSegSymSyncImpl.h b/gr-atsc/src/lib/GrAtscSegSymSyncImpl.h
index b1052cf5e..650dab569 100644
--- a/gr-atsc/src/lib/GrAtscSegSymSyncImpl.h
+++ b/gr-atsc/src/lib/GrAtscSegSymSyncImpl.h
@@ -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 @@ class GrAtscSegSymSyncImpl : public GrAtscSegSymSync {
public:
// the standard methods...
-
+
GrAtscSegSymSyncImpl (double nominal_ratio_of_rx_clock_to_symbol_freq);
virtual ~GrAtscSegSymSyncImpl ();
@@ -58,7 +58,7 @@ public:
VrSampleRange inputs[], void *i[]);
void pre_initialize ();
-
+
// reset on channel change
diff --git a/gr-atsc/src/lib/GrAtscSegSymSyncImpl_export.h b/gr-atsc/src/lib/GrAtscSegSymSyncImpl_export.h
index 569c0dd27..187f1a039 100644
--- a/gr-atsc/src/lib/GrAtscSegSymSyncImpl_export.h
+++ b/gr-atsc/src/lib/GrAtscSegSymSyncImpl_export.h
@@ -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,
diff --git a/gr-atsc/src/lib/GrAtscSymbolMapper.h b/gr-atsc/src/lib/GrAtscSymbolMapper.h
index 41bea5917..a37703f1f 100644
--- a/gr-atsc/src/lib/GrAtscSymbolMapper.h
+++ b/gr-atsc/src/lib/GrAtscSymbolMapper.h
@@ -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,
@@ -58,15 +58,15 @@ protected:
template<class oType>
-int
+int
GrAtscSymbolMapper<oType>::work (VrSampleRange output, void *ao[],
VrSampleRange inputs[], void *ai[])
{
atsc_data_segment *in = ((atsc_data_segment **) ai)[0];
oType *out = ((oType **) ao)[0];
-
+
assert ((output.size % INTERP_FACTOR) == 0);
-
+
static const float pilot_add = 1.25;
static const float map[8] = {
-7 + pilot_add,
diff --git a/gr-atsc/src/lib/GrAtscTrellisEncoder.cc b/gr-atsc/src/lib/GrAtscTrellisEncoder.cc
index 9def275d7..a0df3e9a7 100644
--- a/gr-atsc/src/lib/GrAtscTrellisEncoder.cc
+++ b/gr-atsc/src/lib/GrAtscTrellisEncoder.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,
@@ -43,7 +43,7 @@ GrAtscTrellisEncoder::GrAtscTrellisEncoder ()
// any other init here.
- // Let the bottom end know we must produce output in multiples of 12 segments.
+ // Let the bottom end know we must produce output in multiples of 12 segments.
setOutputSize (atsci_trellis_encoder::NCODERS);
}
@@ -58,7 +58,7 @@ GrAtscTrellisEncoder::~GrAtscTrellisEncoder ()
* use a single input and output stream.
*/
-int
+int
GrAtscTrellisEncoder::work (VrSampleRange output, void *ao[],
VrSampleRange inputs[], void *ai[])
{
@@ -88,7 +88,7 @@ GrAtscTrellisEncoder::work (VrSampleRange output, void *ao[],
<< " sum = " << output.index + output.size
<< " \t[in = " << in << "]"
<< endl;
-#endif
+#endif
assert (output.size % atsci_trellis_encoder::NCODERS == 0);
@@ -140,5 +140,5 @@ GrAtscTrellisEncoder::work (VrSampleRange output, void *ao[],
// Note that for all intents and purposes, it is an error to
// produce less than you are asked for.
- return output.size;
+ return output.size;
}
diff --git a/gr-atsc/src/lib/GrAtscTrellisEncoder.h b/gr-atsc/src/lib/GrAtscTrellisEncoder.h
index ebe8dafa9..e4de388ae 100644
--- a/gr-atsc/src/lib/GrAtscTrellisEncoder.h
+++ b/gr-atsc/src/lib/GrAtscTrellisEncoder.h
@@ -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,
diff --git a/gr-atsc/src/lib/GrAtscViterbiDecoder.cc b/gr-atsc/src/lib/GrAtscViterbiDecoder.cc
index 98e0a81a5..c89b3556b 100644
--- a/gr-atsc/src/lib/GrAtscViterbiDecoder.cc
+++ b/gr-atsc/src/lib/GrAtscViterbiDecoder.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,
@@ -44,7 +44,7 @@ GrAtscViterbiDecoder::GrAtscViterbiDecoder ()
// any other init here.
- // Let the bottom end know we must produce output in multiples of 12 segments.
+ // Let the bottom end know we must produce output in multiples of 12 segments.
setOutputSize (atsci_viterbi_decoder::NCODERS);
}
@@ -59,7 +59,7 @@ GrAtscViterbiDecoder::~GrAtscViterbiDecoder ()
* use a single input and output stream.
*/
-int
+int
GrAtscViterbiDecoder::work (VrSampleRange output, void *ao[],
VrSampleRange inputs[], void *ai[])
{
@@ -126,10 +126,10 @@ GrAtscViterbiDecoder::work (VrSampleRange output, void *ao[],
<< " output.size = " << output.size
<< " sum = " << output.index + output.size << endl;
#endif
-
+
// Return the number of units we produced.
// Note that for all intents and purposes, it is an error to
// produce less than you are asked for.
- return output.size;
+ return output.size;
}
diff --git a/gr-atsc/src/lib/GrAtscViterbiDecoder.h b/gr-atsc/src/lib/GrAtscViterbiDecoder.h
index 4bc93e88a..1b3bdd84a 100644
--- a/gr-atsc/src/lib/GrAtscViterbiDecoder.h
+++ b/gr-atsc/src/lib/GrAtscViterbiDecoder.h
@@ -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,
diff --git a/gr-atsc/src/lib/atsc.i b/gr-atsc/src/lib/atsc.i
index c26584cc2..6e5662ae6 100644
--- a/gr-atsc/src/lib/atsc.i
+++ b/gr-atsc/src/lib/atsc.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009 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,
diff --git a/gr-atsc/src/lib/atsc_bit_timing_loop.cc b/gr-atsc/src/lib/atsc_bit_timing_loop.cc
index d87a2c3fd..7abd907cc 100644
--- a/gr-atsc/src/lib/atsc_bit_timing_loop.cc
+++ b/gr-atsc/src/lib/atsc_bit_timing_loop.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2010 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,
@@ -102,7 +102,7 @@ atsc_bit_timing_loop::work (int noutput_items,
// ammount actually consumed
d_si = 0;
-
+
for (k = 0; k < noutput_items; k++){
if (!d_interp.update (in, input_size, &d_si, timing_adjustment, &interp_sample)){
fprintf (stderr, "GrAtscBitTimingLoop3: ran short on data...\n");
diff --git a/gr-atsc/src/lib/atsc_bit_timing_loop.h b/gr-atsc/src/lib/atsc_bit_timing_loop.h
index 2adff26b8..8b352f7eb 100644
--- a/gr-atsc/src/lib/atsc_bit_timing_loop.h
+++ b/gr-atsc/src/lib/atsc_bit_timing_loop.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gr-atsc/src/lib/atsc_consts.h b/gr-atsc/src/lib/atsc_consts.h
index 160ad7633..bbe2ec69a 100644
--- a/gr-atsc/src/lib/atsc_consts.h
+++ b/gr-atsc/src/lib/atsc_consts.h
@@ -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,
@@ -28,7 +28,7 @@ static const double ATSC_DATA_SEGMENT_RATE = ATSC_SYMBOL_RATE / 832; // ~12.935
static const int ATSC_MPEG_DATA_LENGTH = 187;
-static const int ATSC_MPEG_PKT_LENGTH = 188; // sync + data
+static const int ATSC_MPEG_PKT_LENGTH = 188; // sync + data
static const int ATSC_MPEG_RS_ENCODED_LENGTH = 207;
static const int ATSC_DATA_SEGMENT_LENGTH = 832; // includes 4 sync symbols at beginning
static const int ATSC_DSEGS_PER_FIELD = 312; // regular data segs / field
diff --git a/gr-atsc/src/lib/atsc_deinterleaver.cc b/gr-atsc/src/lib/atsc_deinterleaver.cc
index aee9cd58b..f251c7f4e 100644
--- a/gr-atsc/src/lib/atsc_deinterleaver.cc
+++ b/gr-atsc/src/lib/atsc_deinterleaver.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2010 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,
diff --git a/gr-atsc/src/lib/atsc_deinterleaver.h b/gr-atsc/src/lib/atsc_deinterleaver.h
index 8cab62b62..e398dfcc7 100644
--- a/gr-atsc/src/lib/atsc_deinterleaver.h
+++ b/gr-atsc/src/lib/atsc_deinterleaver.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gr-atsc/src/lib/atsc_depad.cc b/gr-atsc/src/lib/atsc_depad.cc
index 5cf0c3de2..9792a4e6a 100644
--- a/gr-atsc/src/lib/atsc_depad.cc
+++ b/gr-atsc/src/lib/atsc_depad.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2008,2010 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,
diff --git a/gr-atsc/src/lib/atsc_depad.h b/gr-atsc/src/lib/atsc_depad.h
index b514efe28..9d1a381bf 100644
--- a/gr-atsc/src/lib/atsc_depad.h
+++ b/gr-atsc/src/lib/atsc_depad.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gr-atsc/src/lib/atsc_derandomizer.cc b/gr-atsc/src/lib/atsc_derandomizer.cc
index 7dc4cf4c1..6642adb25 100644
--- a/gr-atsc/src/lib/atsc_derandomizer.cc
+++ b/gr-atsc/src/lib/atsc_derandomizer.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2010 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,
diff --git a/gr-atsc/src/lib/atsc_derandomizer.h b/gr-atsc/src/lib/atsc_derandomizer.h
index 54254d0c5..1881a69a3 100644
--- a/gr-atsc/src/lib/atsc_derandomizer.h
+++ b/gr-atsc/src/lib/atsc_derandomizer.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
@@ -35,7 +35,7 @@ ATSC_API atsc_derandomizer_sptr atsc_make_derandomizer();
* \brief "dewhiten" incoming mpeg transport stream packets
* \ingroup atsc
*
- * input: atsc_mpeg_packet_no_sync; output: atsc_mpeg_packet;
+ * input: atsc_mpeg_packet_no_sync; output: atsc_mpeg_packet;
*/
class ATSC_API atsc_derandomizer : public gr_sync_block
{
diff --git a/gr-atsc/src/lib/atsc_ds_to_softds.cc b/gr-atsc/src/lib/atsc_ds_to_softds.cc
index c589bbb9f..a8f93bde4 100644
--- a/gr-atsc/src/lib/atsc_ds_to_softds.cc
+++ b/gr-atsc/src/lib/atsc_ds_to_softds.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2010 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,
diff --git a/gr-atsc/src/lib/atsc_ds_to_softds.h b/gr-atsc/src/lib/atsc_ds_to_softds.h
index 1021eed6f..0ba61c7d6 100644
--- a/gr-atsc/src/lib/atsc_ds_to_softds.h
+++ b/gr-atsc/src/lib/atsc_ds_to_softds.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gr-atsc/src/lib/atsc_equalizer.cc b/gr-atsc/src/lib/atsc_equalizer.cc
index 3e68de992..b8f31aeb4 100644
--- a/gr-atsc/src/lib/atsc_equalizer.cc
+++ b/gr-atsc/src/lib/atsc_equalizer.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2010 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,
diff --git a/gr-atsc/src/lib/atsc_equalizer.h b/gr-atsc/src/lib/atsc_equalizer.h
index 773cd1a04..32b449b62 100644
--- a/gr-atsc/src/lib/atsc_equalizer.h
+++ b/gr-atsc/src/lib/atsc_equalizer.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gr-atsc/src/lib/atsc_field_sync_demux.cc b/gr-atsc/src/lib/atsc_field_sync_demux.cc
index 3b321eae6..2783e4a90 100644
--- a/gr-atsc/src/lib/atsc_field_sync_demux.cc
+++ b/gr-atsc/src/lib/atsc_field_sync_demux.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2010 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,
@@ -52,7 +52,7 @@ atsc_field_sync_demux::atsc_field_sync_demux()
gr_make_io_signature(2, 2, sizeof(float)),
gr_make_io_signature(1, 1, sizeof(atsc_soft_data_segment))),
d_locked(false), d_in_field2(true), d_segment_number(0),
- d_next_input(0), d_lost_index(0), d_inputs0_index(0),
+ d_next_input(0), d_lost_index(0), d_inputs0_index(0),
d_inputs0_size(0), d_consume(0)
{
reset();
diff --git a/gr-atsc/src/lib/atsc_field_sync_demux.h b/gr-atsc/src/lib/atsc_field_sync_demux.h
index 0e3a5003d..ea9a5d1ac 100644
--- a/gr-atsc/src/lib/atsc_field_sync_demux.h
+++ b/gr-atsc/src/lib/atsc_field_sync_demux.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gr-atsc/src/lib/atsc_field_sync_mux.cc b/gr-atsc/src/lib/atsc_field_sync_mux.cc
index 3d0e20a1c..99fa5bff3 100644
--- a/gr-atsc/src/lib/atsc_field_sync_mux.cc
+++ b/gr-atsc/src/lib/atsc_field_sync_mux.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2010 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,
@@ -147,9 +147,9 @@ void
atsc_field_sync_mux::forecast (int noutput_items, gr_vector_int &ninput_items_required)
{
unsigned ninputs = ninput_items_required.size();
- for (unsigned i = 0; i < ninputs; i++)
+ for (unsigned i = 0; i < ninputs; i++)
ninput_items_required[i] = fixed_rate_noutput_to_ninput (noutput_items);
-
+
}
diff --git a/gr-atsc/src/lib/atsc_field_sync_mux.h b/gr-atsc/src/lib/atsc_field_sync_mux.h
index d08a99b5b..ce4514e9c 100644
--- a/gr-atsc/src/lib/atsc_field_sync_mux.h
+++ b/gr-atsc/src/lib/atsc_field_sync_mux.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gr-atsc/src/lib/atsc_fpll.cc b/gr-atsc/src/lib/atsc_fpll.cc
index 676a7453e..c8d62c415 100644
--- a/gr-atsc/src/lib/atsc_fpll.cc
+++ b/gr-atsc/src/lib/atsc_fpll.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2010 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,
diff --git a/gr-atsc/src/lib/atsc_fpll.h b/gr-atsc/src/lib/atsc_fpll.h
index dac3cda86..0474b8f76 100644
--- a/gr-atsc/src/lib/atsc_fpll.h
+++ b/gr-atsc/src/lib/atsc_fpll.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gr-atsc/src/lib/atsc_fs_checker.cc b/gr-atsc/src/lib/atsc_fs_checker.cc
index 6162c9ef6..f8c4e43d5 100644
--- a/gr-atsc/src/lib/atsc_fs_checker.cc
+++ b/gr-atsc/src/lib/atsc_fs_checker.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2010 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,
diff --git a/gr-atsc/src/lib/atsc_fs_checker.h b/gr-atsc/src/lib/atsc_fs_checker.h
index c08f06c9d..d034fdd28 100644
--- a/gr-atsc/src/lib/atsc_fs_checker.h
+++ b/gr-atsc/src/lib/atsc_fs_checker.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gr-atsc/src/lib/atsc_interleaver.cc b/gr-atsc/src/lib/atsc_interleaver.cc
index a87091436..fff5b2fa6 100644
--- a/gr-atsc/src/lib/atsc_interleaver.cc
+++ b/gr-atsc/src/lib/atsc_interleaver.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2010 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,
diff --git a/gr-atsc/src/lib/atsc_interleaver.h b/gr-atsc/src/lib/atsc_interleaver.h
index 00cd54c11..3090d49de 100644
--- a/gr-atsc/src/lib/atsc_interleaver.h
+++ b/gr-atsc/src/lib/atsc_interleaver.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
@@ -31,7 +31,7 @@ typedef boost::shared_ptr<atsc_interleaver> atsc_interleaver_sptr;
ATSC_API atsc_interleaver_sptr atsc_make_interleaver();
-/*! \brief Interleave RS encoded ATSC data ( atsc_mpeg_packet_rs_encoded --> atsc_mpeg_packet_rs_encoded)*
+/*! \brief Interleave RS encoded ATSC data ( atsc_mpeg_packet_rs_encoded --> atsc_mpeg_packet_rs_encoded)*
* \ingroup atsc
*
* input: atsc_mpeg_packet_rs_encoded; output: atsc_mpeg_packet_rs_encoded
diff --git a/gr-atsc/src/lib/atsc_pad.cc b/gr-atsc/src/lib/atsc_pad.cc
index 8a36307af..317b16aca 100644
--- a/gr-atsc/src/lib/atsc_pad.cc
+++ b/gr-atsc/src/lib/atsc_pad.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2010 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,
@@ -49,7 +49,7 @@ void
atsc_pad::forecast (int noutput_items, gr_vector_int &ninput_items_required)
{
unsigned ninputs = ninput_items_required.size();
- for (unsigned i = 0; i < ninputs; i++)
+ for (unsigned i = 0; i < ninputs; i++)
ninput_items_required[i] = noutput_items * ATSC_MPEG_PKT_LENGTH;
}
@@ -61,7 +61,7 @@ atsc_pad::work (int noutput_items,
{
const unsigned char *in = (const unsigned char *) input_items[0];
atsc_mpeg_packet *out = (atsc_mpeg_packet *) output_items[0];
-
+
int i;
for (i = 0; i < noutput_items; i++){
diff --git a/gr-atsc/src/lib/atsc_pad.h b/gr-atsc/src/lib/atsc_pad.h
index 866c72552..139d951a6 100644
--- a/gr-atsc/src/lib/atsc_pad.h
+++ b/gr-atsc/src/lib/atsc_pad.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
@@ -31,7 +31,7 @@ typedef boost::shared_ptr<atsc_pad> atsc_pad_sptr;
ATSC_API atsc_pad_sptr atsc_make_pad();
/*!
- * \brief pad mpeg ts packets from 188 byte char to
+ * \brief pad mpeg ts packets from 188 byte char to
* to 256 byte atsc_mpeg_packet
* \ingroup atsc
*
diff --git a/gr-atsc/src/lib/atsc_randomizer.cc b/gr-atsc/src/lib/atsc_randomizer.cc
index cd797b8f5..73375e84c 100644
--- a/gr-atsc/src/lib/atsc_randomizer.cc
+++ b/gr-atsc/src/lib/atsc_randomizer.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2010 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,
diff --git a/gr-atsc/src/lib/atsc_randomizer.h b/gr-atsc/src/lib/atsc_randomizer.h
index 1178f06c0..7d00efcf9 100644
--- a/gr-atsc/src/lib/atsc_randomizer.h
+++ b/gr-atsc/src/lib/atsc_randomizer.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gr-atsc/src/lib/atsc_rs_decoder.cc b/gr-atsc/src/lib/atsc_rs_decoder.cc
index aa3f9369e..e4bb6e57a 100644
--- a/gr-atsc/src/lib/atsc_rs_decoder.cc
+++ b/gr-atsc/src/lib/atsc_rs_decoder.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2010 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,
diff --git a/gr-atsc/src/lib/atsc_rs_decoder.h b/gr-atsc/src/lib/atsc_rs_decoder.h
index 4b8d6c1b4..9e4bf8d44 100644
--- a/gr-atsc/src/lib/atsc_rs_decoder.h
+++ b/gr-atsc/src/lib/atsc_rs_decoder.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gr-atsc/src/lib/atsc_rs_encoder.cc b/gr-atsc/src/lib/atsc_rs_encoder.cc
index f98ff664c..7c4ec293b 100644
--- a/gr-atsc/src/lib/atsc_rs_encoder.cc
+++ b/gr-atsc/src/lib/atsc_rs_encoder.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2010 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,
diff --git a/gr-atsc/src/lib/atsc_rs_encoder.h b/gr-atsc/src/lib/atsc_rs_encoder.h
index d9812678a..b0d69d95d 100644
--- a/gr-atsc/src/lib/atsc_rs_encoder.h
+++ b/gr-atsc/src/lib/atsc_rs_encoder.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gr-atsc/src/lib/atsc_trellis_encoder.cc b/gr-atsc/src/lib/atsc_trellis_encoder.cc
index 4cf81a045..fa0a889aa 100644
--- a/gr-atsc/src/lib/atsc_trellis_encoder.cc
+++ b/gr-atsc/src/lib/atsc_trellis_encoder.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2010 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,
diff --git a/gr-atsc/src/lib/atsc_trellis_encoder.h b/gr-atsc/src/lib/atsc_trellis_encoder.h
index c84816118..da51f633d 100644
--- a/gr-atsc/src/lib/atsc_trellis_encoder.h
+++ b/gr-atsc/src/lib/atsc_trellis_encoder.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gr-atsc/src/lib/atsc_types.h b/gr-atsc/src/lib/atsc_types.h
index d505a51c1..ed4dedace 100644
--- a/gr-atsc/src/lib/atsc_types.h
+++ b/gr-atsc/src/lib/atsc_types.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2001,2006 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,
@@ -33,7 +33,7 @@
*
* Not all modules need all the info
*/
-class plinfo {
+class plinfo {
public:
plinfo () : _flags (0), _segno (0) { }
@@ -108,7 +108,7 @@ public:
* confirm that \p X is plausible
*/
static void sanity_check (const plinfo &in);
-
+
protected:
unsigned short _flags; // bitmask
@@ -213,7 +213,7 @@ class atsc_data_segment {
/*!
* Contains 832 bipolar floating point symbols.
- * Nominal values are +/- {1, 3, 5, 7}.
+ * Nominal values are +/- {1, 3, 5, 7}.
* This data type represents the input to the viterbi decoder.
*/
diff --git a/gr-atsc/src/lib/atsc_viterbi_decoder.cc b/gr-atsc/src/lib/atsc_viterbi_decoder.cc
index 81ad9178a..72b9a965b 100644
--- a/gr-atsc/src/lib/atsc_viterbi_decoder.cc
+++ b/gr-atsc/src/lib/atsc_viterbi_decoder.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2010 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,
diff --git a/gr-atsc/src/lib/atsc_viterbi_decoder.h b/gr-atsc/src/lib/atsc_viterbi_decoder.h
index 1a43b4952..de571db33 100644
--- a/gr-atsc/src/lib/atsc_viterbi_decoder.h
+++ b/gr-atsc/src/lib/atsc_viterbi_decoder.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gr-atsc/src/lib/atsci_basic_trellis_encoder.cc b/gr-atsc/src/lib/atsci_basic_trellis_encoder.cc
index 6b6fc19cb..2ae481cbc 100644
--- a/gr-atsc/src/lib/atsci_basic_trellis_encoder.cc
+++ b/gr-atsc/src/lib/atsci_basic_trellis_encoder.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,
@@ -55,7 +55,7 @@ int
atsci_basic_trellis_encoder::encode (unsigned int input)
{
assert (input < 4);
- int index = (state << 2) + input;
+ int index = (state << 2) + input;
state = next_state[index];
return out_symbol[index];
}
diff --git a/gr-atsc/src/lib/atsci_basic_trellis_encoder.h b/gr-atsc/src/lib/atsci_basic_trellis_encoder.h
index c17e5653e..a1bbbf5a0 100644
--- a/gr-atsc/src/lib/atsci_basic_trellis_encoder.h
+++ b/gr-atsc/src/lib/atsci_basic_trellis_encoder.h
@@ -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,
diff --git a/gr-atsc/src/lib/atsci_data_interleaver.cc b/gr-atsc/src/lib/atsci_data_interleaver.cc
index b20dde941..a2eef0fea 100644
--- a/gr-atsc/src/lib/atsci_data_interleaver.cc
+++ b/gr-atsc/src/lib/atsci_data_interleaver.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,
@@ -22,7 +22,7 @@
#include <atsci_data_interleaver.h>
-void
+void
atsci_data_interleaver::interleave (atsc_mpeg_packet_rs_encoded &out,
const atsc_mpeg_packet_rs_encoded &in)
{
@@ -37,7 +37,7 @@ atsci_data_interleaver::interleave (atsc_mpeg_packet_rs_encoded &out,
}
-void
+void
atsci_data_deinterleaver::deinterleave (atsc_mpeg_packet_rs_encoded &out,
const atsc_mpeg_packet_rs_encoded &in)
{
@@ -47,7 +47,7 @@ atsci_data_deinterleaver::deinterleave (atsc_mpeg_packet_rs_encoded &out,
// reset commutator if required using INPUT pipeline info
if (in.pli.first_regular_seg_p ())
sync ();
-
+
// remap OUTPUT pipeline info to reflect 52 data segment end-to-end delay
plinfo::delay (out.pli, in.pli, 52);
diff --git a/gr-atsc/src/lib/atsci_data_interleaver.h b/gr-atsc/src/lib/atsci_data_interleaver.h
index e7f982db4..290607ea3 100644
--- a/gr-atsc/src/lib/atsci_data_interleaver.h
+++ b/gr-atsc/src/lib/atsci_data_interleaver.h
@@ -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,
diff --git a/gr-atsc/src/lib/atsci_diag_output.h b/gr-atsc/src/lib/atsci_diag_output.h
index 5e3239d67..09fd763d6 100644
--- a/gr-atsc/src/lib/atsci_diag_output.h
+++ b/gr-atsc/src/lib/atsci_diag_output.h
@@ -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,
diff --git a/gr-atsc/src/lib/atsci_equalizer.cc b/gr-atsc/src/lib/atsci_equalizer.cc
index fb04db7c2..4aec47495 100644
--- a/gr-atsc/src/lib/atsci_equalizer.cc
+++ b/gr-atsc/src/lib/atsci_equalizer.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,
@@ -53,7 +53,7 @@ atsci_equalizer::reset ()
d_offset_from_last_field_sync = 0;
d_current_field = 0;
}
-
+
/*
* Errrr.... Define to 1 if compiler handles tail recursion without pushing
* unnecessary stack frames, else define to 0 for lame compilers.
@@ -71,7 +71,7 @@ atsci_equalizer::reset ()
* Today's strategy: get it working.
*/
-void
+void
atsci_equalizer::filter (const float *input_samples,
const atsc::syminfo *input_tags,
float *output_samples,
@@ -138,15 +138,15 @@ atsci_equalizer::filter (const float *input_samples,
else { // we're lost... no field sync where we expected it
cerr << "!!! atsci_equalizer: expected field sync, didn't find one\n";
-
+
d_locked_p = false;
- d_offset_from_last_field_sync = 0;
+ d_offset_from_last_field_sync = 0;
if (WINNING_COMPILER)
filter (input_samples, input_tags, output_samples, nsamples);
else
goto lame_compiler_kludge;
-
+
return;
}
@@ -206,7 +206,7 @@ atsci_equalizer::filter (const float *input_samples,
int n = min (4 - seg_offset, nsamples);
filter_data_seg_sync (input_samples, output_samples, n, seg_offset);
-
+
d_offset_from_last_field_sync += n;
nsamples -= n;
@@ -227,7 +227,7 @@ atsci_equalizer::filter (const float *input_samples,
// otherwise... we're in the normal zone
int n = min (ATSC_DATA_SEGMENT_LENGTH - seg_offset, nsamples);
-
+
filter_normal (input_samples, output_samples, n);
d_offset_from_last_field_sync += n;
@@ -235,7 +235,7 @@ atsci_equalizer::filter (const float *input_samples,
if (nsamples <= 0)
return;
-
+
if (WINNING_COMPILER)
filter (&input_samples[n], &input_tags[n],
&output_samples[n], nsamples);
diff --git a/gr-atsc/src/lib/atsci_equalizer.h b/gr-atsc/src/lib/atsci_equalizer.h
index 853c52689..a0a1fc674 100644
--- a/gr-atsc/src/lib/atsci_equalizer.h
+++ b/gr-atsc/src/lib/atsci_equalizer.h
@@ -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,
@@ -53,7 +53,7 @@ public:
// CREATORS
atsci_equalizer ();
virtual ~atsci_equalizer ();
-
+
// MANIPULATORS
/*!
@@ -62,7 +62,7 @@ public:
* Note, subclasses must invoke the superclass's method too!
*/
virtual void reset ();
-
+
/*!
* \brief produce \p nsamples of output from given inputs and tags
*
@@ -71,11 +71,11 @@ public:
* to handle each sub-segment of the input data.
*
* \p input_samples must have (nsamples + ntaps() - 1) valid entries.
- * input_samples[0] .. input_samples[nsamples - 1 + ntaps() - 1] are
+ * input_samples[0] .. input_samples[nsamples - 1 + ntaps() - 1] are
* referenced to compute the output values.
*
* \p input_tags must have nsamples valid entries.
- * input_tags[0] .. input_tags[nsamples - 1] are referenced to
+ * input_tags[0] .. input_tags[nsamples - 1] are referenced to
* compute the output values.
*/
virtual void filter (const float *input_samples,
@@ -94,10 +94,10 @@ public:
virtual int ntaps () const = 0;
/*!
- * \brief how many taps are "in the future".
+ * \brief how many taps are "in the future".
*
* This allows us to handle what the ATSC folks call "pre-ghosts".
- * What it really does is allow the caller to jack with the offset
+ * What it really does is allow the caller to jack with the offset
* between the tags and the data so that everything magically works out.
*
* npretaps () must return a value between 0 and ntaps() - 1.
@@ -107,7 +107,7 @@ public:
* like 15% - 20% of ntaps ().
*/
virtual int npretaps () const = 0;
-
+
protected:
@@ -139,14 +139,14 @@ protected:
float *output_samples,
int nsamples,
int offset) = 0;
-
+
/*!
* Input range is known to consist of only a field sync segment or a
* portion of a field sync segment. \p nsamples will be in [1,832].
* \p offset will be in [0,831]. \p offset is the offset of the input
* from the beginning of the data segment sync pattern. We consider the
* 4 symbols of the immediately preceding data segment sync to be the
- * first symbols of the field sync segment. \p which_field is in [0,1]
+ * first symbols of the field sync segment. \p which_field is in [0,1]
* and specifies which field (duh).
*
* \p input_samples has (nsamples + ntaps() - 1) valid entries.
diff --git a/gr-atsc/src/lib/atsci_equalizer_lms.cc b/gr-atsc/src/lib/atsci_equalizer_lms.cc
index 6358b5334..bab962e32 100644
--- a/gr-atsc/src/lib/atsci_equalizer_lms.cc
+++ b/gr-atsc/src/lib/atsci_equalizer_lms.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,
@@ -86,7 +86,7 @@ atsci_equalizer_lms::npretaps () const
* input_samples[0] .. input_samples[nsamples - 1 + ntaps() - 1] may be
* referenced to compute the output values.
*/
-void
+void
atsci_equalizer_lms::filter_normal (const float *input_samples,
float *output_samples,
int nsamples)
@@ -106,7 +106,7 @@ atsci_equalizer_lms::filter_normal (const float *input_samples,
* input_samples[0] .. input_samples[nsamples - 1 + ntaps() - 1] may be
* referenced to compute the output values.
*/
-void
+void
atsci_equalizer_lms::filter_data_seg_sync (const float *input_samples,
float *output_samples,
int nsamples,
@@ -119,24 +119,24 @@ atsci_equalizer_lms::filter_data_seg_sync (const float *input_samples,
// cerr << "Seg Sync: offset " << offset << "\tnsamples\t" << nsamples << "\t pre, 5 -5 -5 5\t" <<
// output_samples[0] << "\t" << output_samples[1] << "\t" << output_samples[2] << "\t" << output_samples[3] << endl;
-
+
}
-
+
/*!
* Input range is known to consist of only a field sync segment or a
* portion of a field sync segment. \p nsamples will be in [1,832].
* \p offset will be in [0,831]. \p offset is the offset of the input
* from the beginning of the data segment sync pattern. We consider the
* 4 symbols of the immediately preceding data segment sync to be the
- * first symbols of the field sync segment. \p which_field is in [0,1]
+ * first symbols of the field sync segment. \p which_field is in [0,1]
* and specifies which field (duh).
*
* \p input_samples has (nsamples + ntaps() - 1) valid entries.
* input_samples[0] .. input_samples[nsamples - 1 + ntaps() - 1] may be
* referenced to compute the output values.
*/
-void
+void
atsci_equalizer_lms::filter_field_sync (const float *input_samples,
float *output_samples,
int nsamples,
@@ -144,11 +144,11 @@ atsci_equalizer_lms::filter_field_sync (const float *input_samples,
int which_field)
{
// Only the first 4 + 511 + 3 * 63 symbols are completely defined.
- // Those after that the symbols are bilevel, so we could use decision feedback and use
+ // Those after that the symbols are bilevel, so we could use decision feedback and use
// that to train, but for now, don't train on them.
int n = min (nsamples, get_field_sync_training_sequence_length (offset));
-
+
// handle known training sequence
adaptN (input_samples, get_field_sync_training_sequence (which_field, offset),
output_samples, n);
@@ -205,7 +205,7 @@ float
atsci_equalizer_lms::adapt1 (const float input[], float ideal_output)
{
static const double BETA = 0.00005; // FIXME figure out what this ought to be
- // FIXME add gear-shifting
+ // FIXME add gear-shifting
double y = filter1 (input);
double e = y - ideal_output;
@@ -228,7 +228,7 @@ atsci_equalizer_lms::filterN (const float *input_samples,
}
-void
+void
atsci_equalizer_lms::adaptN (const float *input_samples,
const float *training_pattern,
float *output_samples,
@@ -248,7 +248,7 @@ bin_map (int bit)
static void
init_field_sync_common (float *p, int mask)
-
+
{
int i = 0;
@@ -265,7 +265,7 @@ init_field_sync_common (float *p, int mask)
for (int j = 0; j < 63; j++) // PN63, toggled on field 2
p[i++] = bin_map (atsc_pn63[j] ^ mask);
-
+
for (int j = 0; j < 63; j++) // PN63
p[i++] = bin_map (atsc_pn63[j]);
@@ -281,7 +281,7 @@ get_data_seg_sync_training_sequence (int offset)
}
#endif
-static int
+static int
get_field_sync_training_sequence_length (int offset)
{
return max (0, KNOWN_FIELD_SYNC_LENGTH - offset);
diff --git a/gr-atsc/src/lib/atsci_equalizer_lms.h b/gr-atsc/src/lib/atsci_equalizer_lms.h
index 8a39255c6..68aa34ca5 100644
--- a/gr-atsc/src/lib/atsci_equalizer_lms.h
+++ b/gr-atsc/src/lib/atsci_equalizer_lms.h
@@ -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,
@@ -37,7 +37,7 @@ public:
virtual void reset ();
virtual int ntaps () const;
virtual int npretaps () const;
-
+
protected:
FILE *trainingfile;
virtual void filter_normal (const float *input_samples,
@@ -48,7 +48,7 @@ protected:
float *output_samples,
int nsamples,
int offset);
-
+
virtual void filter_field_sync (const float *input_samples,
float *output_samples,
int nsamples,
diff --git a/gr-atsc/src/lib/atsci_equalizer_lms2.cc b/gr-atsc/src/lib/atsci_equalizer_lms2.cc
index f9fb57c7b..2825aad50 100644
--- a/gr-atsc/src/lib/atsci_equalizer_lms2.cc
+++ b/gr-atsc/src/lib/atsci_equalizer_lms2.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,
@@ -43,22 +43,22 @@ static const int KNOWN_FIELD_SYNC_LENGTH = 4 + 511 + 3 * 63;
static int get_field_sync_training_sequence_length (int offset);
static const float *get_field_sync_training_sequence (int which_field, int offset);
-static inline int
-wrap (int d)
+static inline int
+wrap (int d)
{
assert (d >= 0 && d <= (2 * NFBTAPS));
-
+
if(d >= NFBTAPS)
return d - NFBTAPS;
return d;
}
-static inline float
+static inline float
slice (float d)
{
if (boost::math::isnan (d))
return 0.0;
-
+
if (d >= 0.0){
if (d >= 4.0){
if (d >= 6.0)
@@ -129,7 +129,7 @@ atsci_equalizer_lms2::npretaps () const
* input_samples[0] .. input_samples[nsamples - 1 + ntaps() - 1] may be
* referenced to compute the output values.
*/
-void
+void
atsci_equalizer_lms2::filter_normal (const float *input_samples,
float *output_samples,
int nsamples)
@@ -149,7 +149,7 @@ atsci_equalizer_lms2::filter_normal (const float *input_samples,
* input_samples[0] .. input_samples[nsamples - 1 + ntaps() - 1] may be
* referenced to compute the output values.
*/
-void
+void
atsci_equalizer_lms2::filter_data_seg_sync (const float *input_samples,
float *output_samples,
int nsamples,
@@ -162,24 +162,24 @@ atsci_equalizer_lms2::filter_data_seg_sync (const float *input_samples,
// cerr << "Seg Sync: offset " << offset << "\tnsamples\t" << nsamples << "\t pre, 5 -5 -5 5\t" <<
// output_samples[0] << "\t" << output_samples[1] << "\t" << output_samples[2] << "\t" << output_samples[3] << endl;
-
+
}
-
+
/*!
* Input range is known to consist of only a field sync segment or a
* portion of a field sync segment. \p nsamples will be in [1,832].
* \p offset will be in [0,831]. \p offset is the offset of the input
* from the beginning of the data segment sync pattern. We consider the
* 4 symbols of the immediately preceding data segment sync to be the
- * first symbols of the field sync segment. \p which_field is in [0,1]
+ * first symbols of the field sync segment. \p which_field is in [0,1]
* and specifies which field (duh).
*
* \p input_samples has (nsamples + ntaps() - 1) valid entries.
* input_samples[0] .. input_samples[nsamples - 1 + ntaps() - 1] may be
* referenced to compute the output values.
*/
-void
+void
atsci_equalizer_lms2::filter_field_sync (const float *input_samples,
float *output_samples,
int nsamples,
@@ -187,11 +187,11 @@ atsci_equalizer_lms2::filter_field_sync (const float *input_samples,
int which_field)
{
// Only the first 4 + 511 + 3 * 63 symbols are completely defined.
- // Those after that the symbols are bilevel, so we could use decision feedback and use
+ // Those after that the symbols are bilevel, so we could use decision feedback and use
// that to train, but for now, don't train on them.
int n = min (nsamples, get_field_sync_training_sequence_length (offset));
-
+
// handle known training sequence
adaptN (input_samples, get_field_sync_training_sequence (which_field, offset),
output_samples, n);
@@ -268,7 +268,7 @@ float
atsci_equalizer_lms2::adapt1 (const float input[], float ideal_output)
{
static const double BETA = 0.00005; // FIXME figure out what this ought to be
- // FIXME add gear-shifting
+ // FIXME add gear-shifting
double y = filter1 (input);
double e = y - ideal_output;
@@ -296,7 +296,7 @@ atsci_equalizer_lms2::filterN (const float *input_samples,
}
-void
+void
atsci_equalizer_lms2::adaptN (const float *input_samples,
const float *training_pattern,
float *output_samples,
@@ -316,7 +316,7 @@ bin_map (int bit)
static void
init_field_sync_common (float *p, int mask)
-
+
{
int i = 0;
@@ -333,7 +333,7 @@ init_field_sync_common (float *p, int mask)
for (int j = 0; j < 63; j++) // PN63, toggled on field 2
p[i++] = bin_map (atsc_pn63[j] ^ mask);
-
+
for (int j = 0; j < 63; j++) // PN63
p[i++] = bin_map (atsc_pn63[j]);
@@ -349,7 +349,7 @@ get_data_seg_sync_training_sequence (int offset)
}
#endif
-static int
+static int
get_field_sync_training_sequence_length (int offset)
{
return max (0, KNOWN_FIELD_SYNC_LENGTH - offset);
diff --git a/gr-atsc/src/lib/atsci_equalizer_lms2.h b/gr-atsc/src/lib/atsci_equalizer_lms2.h
index 7c60fc174..d0f2660d5 100644
--- a/gr-atsc/src/lib/atsci_equalizer_lms2.h
+++ b/gr-atsc/src/lib/atsci_equalizer_lms2.h
@@ -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,
@@ -37,7 +37,7 @@ public:
virtual void reset ();
virtual int ntaps () const;
virtual int npretaps () const;
-
+
protected:
FILE *trainingfile;
virtual void filter_normal (const float *input_samples,
@@ -48,7 +48,7 @@ protected:
float *output_samples,
int nsamples,
int offset);
-
+
virtual void filter_field_sync (const float *input_samples,
float *output_samples,
int nsamples,
diff --git a/gr-atsc/src/lib/atsci_equalizer_nop.cc b/gr-atsc/src/lib/atsci_equalizer_nop.cc
index 9b2b53269..5af2cc4e7 100644
--- a/gr-atsc/src/lib/atsci_equalizer_nop.cc
+++ b/gr-atsc/src/lib/atsci_equalizer_nop.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,
@@ -38,7 +38,7 @@ atsci_equalizer_nop::reset ()
atsci_equalizer::reset (); // invoke superclass
}
-int
+int
atsci_equalizer_nop::ntaps () const
{
return 1;
@@ -60,7 +60,7 @@ atsci_equalizer_nop::npretaps () const
* input_samples[0] .. input_samples[nsamples - 1 + ntaps() - 1] may be
* referenced to compute the output values.
*/
-void
+void
atsci_equalizer_nop::filter_normal (const float *input_samples,
float *output_samples,
int nsamples)
@@ -81,7 +81,7 @@ atsci_equalizer_nop::filter_normal (const float *input_samples,
* input_samples[0] .. input_samples[nsamples - 1 + ntaps() - 1] may be
* referenced to compute the output values.
*/
-void
+void
atsci_equalizer_nop::filter_data_seg_sync (const float *input_samples,
float *output_samples,
int nsamples,
@@ -92,21 +92,21 @@ atsci_equalizer_nop::filter_data_seg_sync (const float *input_samples,
}
}
-
+
/*!
* Input range is known to consist of only a field sync segment or a
* portion of a field sync segment. \p nsamples will be in [1,832].
* \p offset will be in [0,831]. \p offset is the offset of the input
* from the beginning of the data segment sync pattern. We consider the
* 4 symbols of the immediately preceding data segment sync to be the
- * first symbols of the field sync segment. \p which_field is in [0,1]
+ * first symbols of the field sync segment. \p which_field is in [0,1]
* and specifies which field (duh).
*
* \p input_samples has (nsamples + ntaps() - 1) valid entries.
* input_samples[0] .. input_samples[nsamples - 1 + ntaps() - 1] may be
* referenced to compute the output values.
*/
-void
+void
atsci_equalizer_nop::filter_field_sync (const float *input_samples,
float *output_samples,
int nsamples,
@@ -114,7 +114,7 @@ atsci_equalizer_nop::filter_field_sync (const float *input_samples,
int which_field)
{
int i = 0;
-
+
if (offset == 0 && nsamples > 0){
output_samples[0] = scale_and_train (input_samples[0]);
i++;
diff --git a/gr-atsc/src/lib/atsci_equalizer_nop.h b/gr-atsc/src/lib/atsci_equalizer_nop.h
index 6d842601f..d29fded64 100644
--- a/gr-atsc/src/lib/atsci_equalizer_nop.h
+++ b/gr-atsc/src/lib/atsci_equalizer_nop.h
@@ -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,
@@ -32,7 +32,7 @@ private:
float scale (float input) { return input; }
float scale_and_train (float input);
-
+
public:
atsci_equalizer_nop ();
@@ -41,7 +41,7 @@ public:
virtual void reset ();
virtual int ntaps () const;
virtual int npretaps () const;
-
+
protected:
virtual void filter_normal (const float *input_samples,
float *output_samples,
@@ -51,7 +51,7 @@ protected:
float *output_samples,
int nsamples,
int offset);
-
+
virtual void filter_field_sync (const float *input_samples,
float *output_samples,
int nsamples,
diff --git a/gr-atsc/src/lib/atsci_exp2_lp.cc b/gr-atsc/src/lib/atsci_exp2_lp.cc
index 38e62d929..8f411977e 100644
--- a/gr-atsc/src/lib/atsci_exp2_lp.cc
+++ b/gr-atsc/src/lib/atsci_exp2_lp.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,
@@ -35,8 +35,8 @@ using std::endl;
* FILTER TYPE:LOW PASS 1H
* PASSBAND RIPPLE IN -dB -.0100
* STOPBAND RIPPLE IN -dB -66.0000
- * PASSBAND CUTOFF FREQUENCY 5.69000 HERTZ
- * STOPBAND CUTOFF FREQUENCY 6.12000 HERTZ
+ * PASSBAND CUTOFF FREQUENCY 5.69000 HERTZ
+ * STOPBAND CUTOFF FREQUENCY 6.12000 HERTZ
* SAMPLING FREQUENCY 21.5200 HERTZ
*/
static const float atsci_exp2_lp2x[] = {
@@ -48,8 +48,8 @@ static const float atsci_exp2_lp2x[] = {
* FILTER TYPE:LOW PASS 1H
* PASSBAND RIPPLE IN -dB -.0100
* STOPBAND RIPPLE IN -dB -66.0000
- * PASSBAND CUTOFF FREQUENCY 5.69000 HERTZ
- * STOPBAND CUTOFF FREQUENCY 6.12000 HERTZ
+ * PASSBAND CUTOFF FREQUENCY 5.69000 HERTZ
+ * STOPBAND CUTOFF FREQUENCY 6.12000 HERTZ
* SAMPLING FREQUENCY 20.0000 HERTZ
*/
static const float atsci_exp2_lp20[] = {
@@ -61,7 +61,7 @@ static const float atsci_exp2_lp20[] = {
// is A within 5% of TARGET?
-static bool
+static bool
close_enough_p (double a, double target)
{
double delta = fabs (target * 0.05); // 5 percent
@@ -69,7 +69,7 @@ close_enough_p (double a, double target)
return fabs (target - a) <= delta;
}
-vector<float>
+vector<float>
atsci_exp2_lp::taps (double sampling_freq)
{
if (close_enough_p (sampling_freq, 20e6)){
diff --git a/gr-atsc/src/lib/atsci_exp2_lp.h b/gr-atsc/src/lib/atsci_exp2_lp.h
index 12d08fa6d..e04c42528 100644
--- a/gr-atsc/src/lib/atsci_exp2_lp.h
+++ b/gr-atsc/src/lib/atsci_exp2_lp.h
@@ -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,
diff --git a/gr-atsc/src/lib/atsci_exp2_lp20.dat b/gr-atsc/src/lib/atsci_exp2_lp20.dat
index b810fac70..d09c5aca2 100644
--- a/gr-atsc/src/lib/atsci_exp2_lp20.dat
+++ b/gr-atsc/src/lib/atsci_exp2_lp20.dat
@@ -3,8 +3,8 @@
* FILTER TYPE:LOW PASS 1H
* PASSBAND RIPPLE IN -dB -.0100
* STOPBAND RIPPLE IN -dB -66.0000
- * PASSBAND CUTOFF FREQUENCY 5.69000 HERTZ
- * STOPBAND CUTOFF FREQUENCY 6.12000 HERTZ
+ * PASSBAND CUTOFF FREQUENCY 5.69000 HERTZ
+ * STOPBAND CUTOFF FREQUENCY 6.12000 HERTZ
* SAMPLING FREQUENCY 20.0000 HERTZ
*/
-.3137849271297455e-03,
diff --git a/gr-atsc/src/lib/atsci_exp2_lp2x.dat b/gr-atsc/src/lib/atsci_exp2_lp2x.dat
index 16b2b47df..67dd204cb 100644
--- a/gr-atsc/src/lib/atsci_exp2_lp2x.dat
+++ b/gr-atsc/src/lib/atsci_exp2_lp2x.dat
@@ -3,8 +3,8 @@
* FILTER TYPE:LOW PASS 1H
* PASSBAND RIPPLE IN -dB -.0100
* STOPBAND RIPPLE IN -dB -66.0000
- * PASSBAND CUTOFF FREQUENCY 5.69000 HERTZ
- * STOPBAND CUTOFF FREQUENCY 6.12000 HERTZ
+ * PASSBAND CUTOFF FREQUENCY 5.69000 HERTZ
+ * STOPBAND CUTOFF FREQUENCY 6.12000 HERTZ
* SAMPLING FREQUENCY 21.5200 HERTZ
*/
diff --git a/gr-atsc/src/lib/atsci_fake_single_viterbi.cc b/gr-atsc/src/lib/atsci_fake_single_viterbi.cc
index bf5cf9ab7..6246a9050 100644
--- a/gr-atsc/src/lib/atsci_fake_single_viterbi.cc
+++ b/gr-atsc/src/lib/atsci_fake_single_viterbi.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,
@@ -46,7 +46,7 @@ char
atsci_fake_single_viterbi::decode (float input)
{
int y2, y1;
-
+
if (input < -4){
y2 = 0;
y1 = 0;
diff --git a/gr-atsc/src/lib/atsci_fake_single_viterbi.h b/gr-atsc/src/lib/atsci_fake_single_viterbi.h
index b4cb6e3b3..561afb3d3 100644
--- a/gr-atsc/src/lib/atsci_fake_single_viterbi.h
+++ b/gr-atsc/src/lib/atsci_fake_single_viterbi.h
@@ -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,
@@ -30,7 +30,7 @@
*/
class ATSC_API atsci_fake_single_viterbi
{
-
+
public:
atsci_fake_single_viterbi ();
@@ -49,4 +49,4 @@ protected:
int post_coder_state;
};
-#endif
+#endif
diff --git a/gr-atsc/src/lib/atsci_fs_checker.cc b/gr-atsc/src/lib/atsci_fs_checker.cc
index 80af1239c..7d321307c 100644
--- a/gr-atsc/src/lib/atsci_fs_checker.cc
+++ b/gr-atsc/src/lib/atsci_fs_checker.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,
diff --git a/gr-atsc/src/lib/atsci_fs_checker.h b/gr-atsc/src/lib/atsci_fs_checker.h
index cdcd541e8..7a426b742 100644
--- a/gr-atsc/src/lib/atsci_fs_checker.h
+++ b/gr-atsc/src/lib/atsci_fs_checker.h
@@ -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,
@@ -31,7 +31,7 @@
* Processes input samples one at a time looking for
* an occurence of either the field sync 1 or field sync 2 pattern.
*
- * Note that unlike atsci_fs_correlator, this class uses the symbol_num in
+ * Note that unlike atsci_fs_correlator, this class uses the symbol_num in
* input_tag to avoid having to test each symbol position.
*
* For each sample processed, an output sample and an output tag are produced.
@@ -66,5 +66,5 @@ public:
//! return delay in samples from input to output
virtual int delay () const = 0;
};
-
+
#endif /* _ATSC_FS_CHECKER_H_ */
diff --git a/gr-atsc/src/lib/atsci_fs_checker_naive.cc b/gr-atsc/src/lib/atsci_fs_checker_naive.cc
index ab50aff8b..f14472aa2 100644
--- a/gr-atsc/src/lib/atsci_fs_checker_naive.cc
+++ b/gr-atsc/src/lib/atsci_fs_checker_naive.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,
@@ -85,7 +85,7 @@ atsci_fs_checker_naive::filter (float input_sample, atsc::syminfo input_tag,
atsc::syminfo proto_tag = d_tag_sr[d_index]; // oldest tag in the queue
if (proto_tag.symbol_num == 0){ // check for field sync pattern
-
+
d_segment_num = (d_segment_num + 1) & atsc::SI_SEGMENT_NUM_MASK; // increment
// check for a hit on the PN 511 pattern
@@ -119,7 +119,7 @@ atsci_fs_checker_naive::filter (float input_sample, atsc::syminfo input_tag,
}
}
- proto_tag.segment_num = d_segment_num; // fill in segment number and field number
+ proto_tag.segment_num = d_segment_num; // fill in segment number and field number
proto_tag.field_num = d_field_num;
// return oldest sample
diff --git a/gr-atsc/src/lib/atsci_fs_checker_naive.h b/gr-atsc/src/lib/atsci_fs_checker_naive.h
index 3ef507111..21c628a1d 100644
--- a/gr-atsc/src/lib/atsci_fs_checker_naive.h
+++ b/gr-atsc/src/lib/atsci_fs_checker_naive.h
@@ -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,
@@ -67,7 +67,7 @@ class ATSC_API atsci_fs_checker_naive : public atsci_fs_checker {
//! return delay in samples from input to output
int delay () const;
-
+
};
diff --git a/gr-atsc/src/lib/atsci_fs_correlator.cc b/gr-atsc/src/lib/atsci_fs_correlator.cc
index 9e76537a0..efeb35176 100644
--- a/gr-atsc/src/lib/atsci_fs_correlator.cc
+++ b/gr-atsc/src/lib/atsci_fs_correlator.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,
diff --git a/gr-atsc/src/lib/atsci_fs_correlator.h b/gr-atsc/src/lib/atsci_fs_correlator.h
index a6db7f518..ff70245c9 100644
--- a/gr-atsc/src/lib/atsci_fs_correlator.h
+++ b/gr-atsc/src/lib/atsci_fs_correlator.h
@@ -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,
@@ -61,5 +61,5 @@ public:
//! return delay in samples from input to output
virtual int delay () const = 0;
};
-
+
#endif /* _ATSC_FS_CORRELATOR_H_ */
diff --git a/gr-atsc/src/lib/atsci_fs_correlator_naive.cc b/gr-atsc/src/lib/atsci_fs_correlator_naive.cc
index 695641c20..ccf903531 100644
--- a/gr-atsc/src/lib/atsci_fs_correlator_naive.cc
+++ b/gr-atsc/src/lib/atsci_fs_correlator_naive.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,
diff --git a/gr-atsc/src/lib/atsci_fs_correlator_naive.h b/gr-atsc/src/lib/atsci_fs_correlator_naive.h
index 92e3f7499..d8afc2ca6 100644
--- a/gr-atsc/src/lib/atsci_fs_correlator_naive.h
+++ b/gr-atsc/src/lib/atsci_fs_correlator_naive.h
@@ -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,
@@ -63,7 +63,7 @@ class ATSC_API atsci_fs_correlator_naive : public atsci_fs_correlator {
//! return delay in samples from input to output
int delay () const;
-
+
};
diff --git a/gr-atsc/src/lib/atsci_pnXXX.cc b/gr-atsc/src/lib/atsci_pnXXX.cc
index cfcf87f0b..128582d2d 100644
--- a/gr-atsc/src/lib/atsci_pnXXX.cc
+++ b/gr-atsc/src/lib/atsci_pnXXX.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 @@ const unsigned char atsc_pn511[511] = {
1,0,0,0, 1,1,0,0, 0,0,0,1, 1,1,1,0, 1,1,1,1, 1,1,0,1, 0,1,1,0, 1,0,1,0,
1,1,0,0, 1,0,0,1, 1,0,0,1, 0,0,0,1, 1,1,0,1, 1,1,0,0, 0,0,1,0, 1,1,0,1,
- 0,0,0,0, 0,1,1,0, 1,1,0,0, 0,0,0,0, 1,0,0,1, 0,0,0,0, 0,0,0,1, 1,1,0
+ 0,0,0,0, 0,1,1,0, 1,1,0,0, 0,0,0,0, 1,0,0,1, 0,0,0,0, 0,0,0,1, 1,1,0
};
const unsigned char atsc_pn63[63] = {
diff --git a/gr-atsc/src/lib/atsci_pnXXX.h b/gr-atsc/src/lib/atsci_pnXXX.h
index 58cb2d02d..612ed2034 100644
--- a/gr-atsc/src/lib/atsci_pnXXX.h
+++ b/gr-atsc/src/lib/atsci_pnXXX.h
@@ -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,
diff --git a/gr-atsc/src/lib/atsci_randomizer.cc b/gr-atsc/src/lib/atsci_randomizer.cc
index 4a18e263a..8766bbef0 100644
--- a/gr-atsc/src/lib/atsci_randomizer.cc
+++ b/gr-atsc/src/lib/atsci_randomizer.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,
@@ -48,19 +48,19 @@ void
atsci_randomizer::initialize_output_map ()
{
s_output_map_initialized_p = true;
-
+
for (int i = 0; i < (1 << 14); i++)
s_output_map[i] = slow_output_map (i << 2);
}
-void
+void
atsci_randomizer::reset ()
{
d_state = PRELOAD_VALUE;
}
-void
+void
atsci_randomizer::randomize (atsc_mpeg_packet_no_sync &out, const atsc_mpeg_packet &in)
{
assert (in.data[0] == MPEG_SYNC_BYTE); // confirm it's there, then drop
diff --git a/gr-atsc/src/lib/atsci_randomizer.h b/gr-atsc/src/lib/atsci_randomizer.h
index 30c3235bb..aedd0d808 100644
--- a/gr-atsc/src/lib/atsci_randomizer.h
+++ b/gr-atsc/src/lib/atsci_randomizer.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2001 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,
@@ -26,16 +26,16 @@
#include <atsc_api.h>
#include <atsc_types.h>
-/*!
+/*!
* \brief ATSC data "whitener"
*
- * The data randomizer described in ATSC standard A/53B.
+ * The data randomizer described in ATSC standard A/53B.
* See figure D4 on page 54.
*/
class ATSC_API atsci_randomizer {
friend class qa_atsci_randomizer;
-
+
public:
atsci_randomizer();
@@ -60,12 +60,12 @@ class ATSC_API atsci_randomizer {
static unsigned char slow_output_map (int st);
static unsigned char fast_output_map (int st){
- return s_output_map[(st & 0xb23c) >> 2]; // Magic const with 8 bits set improves cache
+ return s_output_map[(st & 0xb23c) >> 2]; // Magic const with 8 bits set improves cache
// utilization. The bits correspond to the taps
- // used in output calculation. Others may be
+ // used in output calculation. Others may be
// safely ignored.
}
-
+
//! return current output value
unsigned char output (){
return fast_output_map (d_state);
diff --git a/gr-atsc/src/lib/atsci_reed_solomon.cc b/gr-atsc/src/lib/atsci_reed_solomon.cc
index e20e76d71..a4a40e3f1 100644
--- a/gr-atsc/src/lib/atsci_reed_solomon.cc
+++ b/gr-atsc/src/lib/atsci_reed_solomon.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,
@@ -60,7 +60,7 @@ atsci_reed_solomon::encode (atsc_mpeg_packet_rs_encoded &out, const atsc_mpeg_pa
unsigned char tmp[K];
assert ((int)(amount_of_pad + sizeof (in.data)) == K);
-
+
// add missing prefix zero padding to message
memset (tmp, 0, amount_of_pad);
memcpy (&tmp[amount_of_pad], in.data, sizeof (in.data));
@@ -79,14 +79,14 @@ atsci_reed_solomon::decode (atsc_mpeg_packet_no_sync &out, const atsc_mpeg_packe
int ncorrections;
assert ((int)(amount_of_pad + sizeof (in.data)) == N);
-
+
// add missing prefix zero padding to message
memset (tmp, 0, amount_of_pad);
memcpy (&tmp[amount_of_pad], in.data, sizeof (in.data));
- // correct message...
+ // correct message...
ncorrections = decode_rs_char (d_rs, tmp, 0, 0);
-
+
// copy corrected message to output, skipping prefix zero padding
memcpy (out.data, &tmp[amount_of_pad], sizeof (out.data));
diff --git a/gr-atsc/src/lib/atsci_reed_solomon.h b/gr-atsc/src/lib/atsci_reed_solomon.h
index 6f53c77ca..8f6e26426 100644
--- a/gr-atsc/src/lib/atsci_reed_solomon.h
+++ b/gr-atsc/src/lib/atsci_reed_solomon.h
@@ -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,
diff --git a/gr-atsc/src/lib/atsci_root_raised_cosine.cc b/gr-atsc/src/lib/atsci_root_raised_cosine.cc
index 9409d2b9c..f555d90ac 100644
--- a/gr-atsc/src/lib/atsci_root_raised_cosine.cc
+++ b/gr-atsc/src/lib/atsci_root_raised_cosine.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,
@@ -24,7 +24,7 @@
#include <atsci_root_raised_cosine.h>
#include <gr_firdes.h>
-vector<float>
+vector<float>
atsc_root_raised_cosine::taps (double sampling_rate)
{
static const double symbol_rate = ATSC_SYMBOL_RATE/2; // 1/2 as wide because we're designing lp filter
diff --git a/gr-atsc/src/lib/atsci_root_raised_cosine.h b/gr-atsc/src/lib/atsci_root_raised_cosine.h
index 12870faba..f24606992 100644
--- a/gr-atsc/src/lib/atsci_root_raised_cosine.h
+++ b/gr-atsc/src/lib/atsci_root_raised_cosine.h
@@ -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,
diff --git a/gr-atsc/src/lib/atsci_root_raised_cosine_bandpass.cc b/gr-atsc/src/lib/atsci_root_raised_cosine_bandpass.cc
index a7c427d06..f795a4166 100644
--- a/gr-atsc/src/lib/atsci_root_raised_cosine_bandpass.cc
+++ b/gr-atsc/src/lib/atsci_root_raised_cosine_bandpass.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,
@@ -29,7 +29,7 @@ using std::cerr;
using std::endl;
-vector<float>
+vector<float>
atsc_root_raised_cosine_bandpass::taps (double sampling_freq)
{
@@ -37,7 +37,7 @@ atsc_root_raised_cosine_bandpass::taps (double sampling_freq)
cerr << "atsc_root_raised_cosine_bandpass::taps -- " << t.size () << endl;
- // heterodyne the low pass coefficients up to the specified bandpass
+ // heterodyne the low pass coefficients up to the specified bandpass
// center frequency. Note that when we do this, the filter bandwidth
// is effectively twice the low pass (2.69 * 2 = 5.38) and hence
// matches the diagram in the ATSC spec.
diff --git a/gr-atsc/src/lib/atsci_root_raised_cosine_bandpass.h b/gr-atsc/src/lib/atsci_root_raised_cosine_bandpass.h
index 98329ab53..bdb33c28d 100644
--- a/gr-atsc/src/lib/atsci_root_raised_cosine_bandpass.h
+++ b/gr-atsc/src/lib/atsci_root_raised_cosine_bandpass.h
@@ -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,
diff --git a/gr-atsc/src/lib/atsci_single_viterbi.cc b/gr-atsc/src/lib/atsci_single_viterbi.cc
index f9d66ff8a..a1bf2ea49 100644
--- a/gr-atsc/src/lib/atsci_single_viterbi.cc
+++ b/gr-atsc/src/lib/atsci_single_viterbi.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,
@@ -70,11 +70,11 @@ atsci_single_viterbi::decode(float input)
float min_metric = fabs(input - was_sent[index + 0]) +
path_metrics[phase][transition_table[index + 0]];
- for (unsigned int symbol_sent = 1; symbol_sent < 4; symbol_sent++)
- if( (fabs(input-was_sent[index+symbol_sent]) +
+ for (unsigned int symbol_sent = 1; symbol_sent < 4; symbol_sent++)
+ if( (fabs(input-was_sent[index+symbol_sent]) +
path_metrics[phase][transition_table[index+symbol_sent]])
< min_metric) {
- min_metric = fabs(input-was_sent[index+symbol_sent]) +
+ min_metric = fabs(input-was_sent[index+symbol_sent]) +
path_metrics[phase][transition_table[index+symbol_sent]];
min_metric_symb = symbol_sent;
}
diff --git a/gr-atsc/src/lib/atsci_single_viterbi.h b/gr-atsc/src/lib/atsci_single_viterbi.h
index cc752cb3a..01b13fb25 100644
--- a/gr-atsc/src/lib/atsci_single_viterbi.h
+++ b/gr-atsc/src/lib/atsci_single_viterbi.h
@@ -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,
@@ -30,7 +30,7 @@
*/
class ATSC_API atsci_single_viterbi
{
-
+
public:
atsci_single_viterbi ();
@@ -55,4 +55,4 @@ protected:
unsigned char phase;
};
-#endif
+#endif
diff --git a/gr-atsc/src/lib/atsci_slicer_agc.h b/gr-atsc/src/lib/atsci_slicer_agc.h
index 520fec44b..8a3927b70 100644
--- a/gr-atsc/src/lib/atsci_slicer_agc.h
+++ b/gr-atsc/src/lib/atsci_slicer_agc.h
@@ -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,
@@ -38,7 +38,7 @@ class ATSC_API atsci_slicer_agc {
public:
atsci_slicer_agc () : _gain(1), dc(0.0025) {};
-
+
float gain () { return _gain; }
#if 1
@@ -59,7 +59,7 @@ class ATSC_API atsci_slicer_agc {
#endif
protected:
-
+
static const float REFERENCE = 1.25; // pilot reference value
static const float RATE = 1.0e-5; // adjustment rate
float _gain; // current gain
diff --git a/gr-atsc/src/lib/atsci_sliding_correlator.cc b/gr-atsc/src/lib/atsci_sliding_correlator.cc
index bde8022e0..877037db7 100644
--- a/gr-atsc/src/lib/atsci_sliding_correlator.cc
+++ b/gr-atsc/src/lib/atsci_sliding_correlator.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2002,2006 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,
diff --git a/gr-atsc/src/lib/atsci_sliding_correlator.h b/gr-atsc/src/lib/atsci_sliding_correlator.h
index 64834a4e2..ffa2124ed 100644
--- a/gr-atsc/src/lib/atsci_sliding_correlator.h
+++ b/gr-atsc/src/lib/atsci_sliding_correlator.h
@@ -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,
@@ -39,13 +39,13 @@ class ATSC_API atsci_sliding_correlator {
~atsci_sliding_correlator (){};
//! input hard decision bit, return correlation (0,511)
- // Result is the number of wrong bits.
+ // Result is the number of wrong bits.
// E.g., 0 -> perfect match; 511 -> all bits are wrong
int input_bit (int bit);
//! input sample, return correlation (0,511)
- // Result is the number of wrong bits.
+ // Result is the number of wrong bits.
// E.g., 0 -> perfect match; 511 -> all bits are wrong
int input_int (int sample){
@@ -53,7 +53,7 @@ class ATSC_API atsci_sliding_correlator {
}
//! input sample, return correlation (0,511)
- // Result is the number of wrong bits.
+ // Result is the number of wrong bits.
// E.g., 0 -> perfect match; 511 -> all bits are wrong
int input_float (float sample){
@@ -61,7 +61,7 @@ class ATSC_API atsci_sliding_correlator {
}
void reset () { input.reset (); }
-
+
private:
typedef unsigned long srblock;
diff --git a/gr-atsc/src/lib/atsci_sssr.cc b/gr-atsc/src/lib/atsci_sssr.cc
index 4ccee85de..48c0c51fb 100644
--- a/gr-atsc/src/lib/atsci_sssr.cc
+++ b/gr-atsc/src/lib/atsci_sssr.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2002,2008 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,
@@ -47,7 +47,7 @@ sipp (bool digcorr_output)
return -1; // no correlation
}
-/*
+/*
* ----------------------------------------------------------------
* Segment Sync Integrator...
*/
@@ -61,7 +61,7 @@ sssr::seg_sync_integrator::reset ()
for (int i = 0; i < ATSC_DATA_SEGMENT_LENGTH; i++)
d_integrator[i] = SSI_MIN;
}
-
+
int
sssr::seg_sync_integrator::update (int weight, int index)
{
@@ -78,7 +78,7 @@ sssr::seg_sync_integrator::find_max (int *v)
{
int best_value = d_integrator[0];
int best_index = 0;
-
+
for (int i = 1; i < ATSC_DATA_SEGMENT_LENGTH; i++)
if (d_integrator[i] > best_value){
best_value = d_integrator[i];
@@ -101,7 +101,7 @@ atsci_sssr::atsci_sssr ()
: d_debug_fp(0)
{
reset ();
-
+
if (_SSSR_DIAG_OUTPUT_){
const char *file = "sssr.ssout";
if ((d_debug_fp = fopen (file, "wb")) == 0){
@@ -126,7 +126,7 @@ atsci_sssr::reset ()
for (int i = 0; i < ATSC_DATA_SEGMENT_LENGTH; i++)
d_quad_output[i] = 0;
-
+
d_timing_adjust = 0;
d_counter = 0;
d_symbol_index = 0;
@@ -189,7 +189,7 @@ atsci_sssr::update (sssr::sample_t sample_in, // input
static const double LOOP_FILTER_TAP = 0.00025; // 0.0005 works
static const double ADJUSTMENT_GAIN = 1.0e-5 / (10 * ATSC_DATA_SEGMENT_LENGTH);
-
+
atsci_interpolator::atsci_interpolator (double nominal_ratio_of_rx_clock_to_symbol_freq)
: d_debug_fp(0)
{
@@ -239,10 +239,10 @@ atsci_interpolator::update (
return false;
// FIXME Confirm that this is right. I think it is. It was (1-d_mu)
- *output_sample = d_interp.interpolate (&input_samples[*index], d_mu);
+ *output_sample = d_interp.interpolate (&input_samples[*index], d_mu);
double filter_out = 0;
-
+
#if 0
filter_out = d_loop.filter (timing_adjustment);
@@ -262,9 +262,9 @@ atsci_interpolator::update (
d_mu = d_mu + alpha * x; // conceptually "phase"
d_w = d_w + beta * x; // conceptually "frequency"
-
+
#endif
-
+
double s = d_mu + d_w;
double float_incr = floor (s);
d_mu = s - float_incr;
diff --git a/gr-atsc/src/lib/atsci_sssr.h b/gr-atsc/src/lib/atsci_sssr.h
index 1dee54c1d..f3b825b3c 100644
--- a/gr-atsc/src/lib/atsci_sssr.h
+++ b/gr-atsc/src/lib/atsci_sssr.h
@@ -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,
@@ -48,7 +48,7 @@ namespace sssr {
int d_sr; // 4 bit shift register
public:
-
+
// Constructor
digital_correlator () { reset (); }
@@ -73,7 +73,7 @@ namespace sssr {
class ATSC_API seg_sync_integrator {
signed char d_integrator[ATSC_DATA_SEGMENT_LENGTH];
-
+
public:
// Constructor
@@ -83,7 +83,7 @@ namespace sssr {
//! called on channel change
void reset ();
-
+
//! update current tap with weight and return integrated correlation value
int update (int weight, int index);
@@ -91,7 +91,7 @@ namespace sssr {
int find_max (int *value);
};
-
+
// ----------------------------------------------------------------
//! quad filter (used to compute timing error)
@@ -140,7 +140,7 @@ class ATSC_API atsci_sssr {
bool d_seg_locked;
FILE *d_debug_fp;
-
+
bool incr_counter () {
d_counter++;
if (d_counter >= ATSC_DATA_SEGMENT_LENGTH){
@@ -149,7 +149,7 @@ class ATSC_API atsci_sssr {
}
return false;
}
-
+
void incr_symbol_index () {
d_symbol_index++;
if (d_symbol_index >= ATSC_DATA_SEGMENT_LENGTH)
@@ -175,9 +175,9 @@ public:
* track of where the segment sync's occur. \p timing_adjust is
* returned to indicate how the interpolator timing needs to be
* adjusted to track the transmitter's symbol timing. If \p seg_locked
- * is true, then \p symbol_index is the index of this sample in
- * the current segment. The symbols are numbered from 0 to 831, where
- * symbols 0, 1, 2 and 3 correspond to the data segment sync pattern,
+ * is true, then \p symbol_index is the index of this sample in
+ * the current segment. The symbols are numbered from 0 to 831, where
+ * symbols 0, 1, 2 and 3 correspond to the data segment sync pattern,
* nominally +5, -5, -5, +5.
*/
@@ -193,7 +193,7 @@ public:
/*!
* \brief interpolator control for segment and symbol sync recovery
*/
-
+
class ATSC_API atsci_interpolator {
gri_mmse_fir_interpolator d_interp;
gr_single_pole_iir<float,float,float> d_loop; // ``VCO'' loop filter
@@ -235,7 +235,7 @@ public:
double mu () const { return d_mu; }
double w () const { return d_w; }
int incr () const { return d_incr; }
-
+
};
#endif /* _ATSC_SSSR_H_ */
diff --git a/gr-atsc/src/lib/atsci_syminfo.h b/gr-atsc/src/lib/atsci_syminfo.h
index a8999e77a..9f25e4902 100644
--- a/gr-atsc/src/lib/atsci_syminfo.h
+++ b/gr-atsc/src/lib/atsci_syminfo.h
@@ -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,
diff --git a/gr-atsc/src/lib/atsci_sync_tag.h b/gr-atsc/src/lib/atsci_sync_tag.h
index c644da39f..bdb64c5d3 100644
--- a/gr-atsc/src/lib/atsci_sync_tag.h
+++ b/gr-atsc/src/lib/atsci_sync_tag.h
@@ -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,
@@ -34,7 +34,7 @@
* type and all output streams share the same type. We'd use unsigned
* char otherwise.
*/
-
+
namespace atsc_sync_tag {
// Nothing special
diff --git a/gr-atsc/src/lib/atsci_trellis_encoder.cc b/gr-atsc/src/lib/atsci_trellis_encoder.cc
index 2ebccc371..2b3e851bc 100644
--- a/gr-atsc/src/lib/atsci_trellis_encoder.cc
+++ b/gr-atsc/src/lib/atsci_trellis_encoder.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2002,2006 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,
@@ -65,7 +65,7 @@ atsci_trellis_encoder::reset ()
enc[i].reset ();
}
-void
+void
atsci_trellis_encoder::encode (atsc_data_segment out[NCODERS],
const atsc_mpeg_packet_rs_encoded in[NCODERS])
{
@@ -85,7 +85,7 @@ atsci_trellis_encoder::encode (atsc_data_segment out[NCODERS],
}
memset (out_copy, 0, sizeof (out_copy)); // FIXME, sanity check
-
+
// do the deed...
encode_helper (out_copy, in_copy);
@@ -108,7 +108,7 @@ atsci_trellis_encoder::encode (atsc_data_segment out[NCODERS],
* the correct answer. Maybe someday, when we've run out of better
* things to do, rework to avoid the copying in encode.
*/
-void
+void
atsci_trellis_encoder::encode_helper (unsigned char output[OUTPUT_SIZE],
const unsigned char input[INPUT_SIZE])
{
@@ -123,7 +123,7 @@ atsci_trellis_encoder::encode_helper (unsigned char output[OUTPUT_SIZE],
unsigned char symbol;
int skip_encoder_bump;
- /* FIXME, we may want special processing here
+ /* FIXME, we may want special processing here
for a flag byte to keep track of which part of the field we're in? */
encoder = NCODERS - ENCODER_SEG_BUMP;
@@ -136,7 +136,7 @@ atsci_trellis_encoder::encode_helper (unsigned char output[OUTPUT_SIZE],
chunk += NCODERS) {
/* Load a new chunk of bytes into the Trellis encoder buffers.
They get loaded in an order that depends on where we are in the
- segment sync progress (sigh).
+ segment sync progress (sigh).
GRR! When the chunk reload happens at the same time as the
segment boundary, we should bump the encoder NOW for the reload,
rather than LATER during the bitshift transition!!! */
@@ -144,7 +144,7 @@ atsci_trellis_encoder::encode_helper (unsigned char output[OUTPUT_SIZE],
encoder = (encoder + ENCODER_SEG_BUMP) % NCODERS;
skip_encoder_bump = 1;
}
-
+
for (i = 0; i < NCODERS; i++) {
/* for debug */ trellis_wherefrom[encoder] = chunk+i;
trellis_buffer[encoder] = input [chunk+i];
@@ -193,7 +193,7 @@ atsci_trellis_encoder::encode_helper (unsigned char output[OUTPUT_SIZE],
} /* Encoders */
} /* Bit shifts */
} /* Chunks */
-
+
/* Check up on ourselves */
#if 0
assertIntsEqual (0, (INPUT_SIZE * DIBITS_PER_BYTE) % NCODERS, "not %");
diff --git a/gr-atsc/src/lib/atsci_trellis_encoder.h b/gr-atsc/src/lib/atsci_trellis_encoder.h
index 53be3fc22..294ad860f 100644
--- a/gr-atsc/src/lib/atsci_trellis_encoder.h
+++ b/gr-atsc/src/lib/atsci_trellis_encoder.h
@@ -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,
@@ -50,12 +50,12 @@ class ATSC_API atsci_trellis_encoder {
void encode (atsc_data_segment out[NCODERS],
const atsc_mpeg_packet_rs_encoded in[NCODERS]);
-
+
protected:
static const int SEGMENT_SIZE = ATSC_MPEG_RS_ENCODED_LENGTH; // 207
static const int INPUT_SIZE = (SEGMENT_SIZE * 12);
static const int OUTPUT_SIZE = (ATSC_DATA_SEGMENT_LENGTH * 12);
-
+
void encode_helper (unsigned char out[OUTPUT_SIZE],
const unsigned char in[INPUT_SIZE]);
diff --git a/gr-atsc/src/lib/atsci_viterbi_decoder.cc b/gr-atsc/src/lib/atsci_viterbi_decoder.cc
index 5b9ae4e10..8804f6007 100644
--- a/gr-atsc/src/lib/atsci_viterbi_decoder.cc
+++ b/gr-atsc/src/lib/atsci_viterbi_decoder.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,
@@ -49,7 +49,7 @@ atsci_viterbi_decoder::atsci_viterbi_decoder ()
* If anybody cares, it is possible to do it with less delay, but
* this approach is at least somewhat understandable...
*/
-
+
// the -4 is for the 4 sync symbols
int fifo_size = ATSC_DATA_SEGMENT_LENGTH - 4 - viterbi[0].delay ();
for (int i = 0; i < NCODERS; i++)
@@ -90,7 +90,7 @@ atsci_viterbi_decoder::decode (atsc_mpeg_packet_rs_encoded out[NCODERS],
}
memset (out_copy, 0, sizeof (out_copy)); // sanity check
-
+
// do the deed...
decode_helper (out_copy, in_copy);
@@ -99,8 +99,8 @@ atsci_viterbi_decoder::decode (atsc_mpeg_packet_rs_encoded out[NCODERS],
memcpy (&out[i].data[0],
&out_copy[i * OUTPUT_SIZE/NCODERS],
ATSC_MPEG_RS_ENCODED_LENGTH * sizeof (out_copy[0]));
-
-
+
+
// adjust pipeline info to reflect 12 segment delay
plinfo::delay (out[i].pli, in[i].pli, NCODERS);
}
@@ -150,13 +150,13 @@ atsci_viterbi_decoder::decode_helper (unsigned char out[OUTPUT_SIZE],
#undef VERBOSE
// printf ("@@@ DIBITS @@@\n");
-
+
/* Now run each of the 12 Trellis encoders over their subset of
the input symbols */
for (encoder = 0; encoder < NCODERS; encoder++) {
dbi = 0; /* Reinitialize dibit index for new encoder */
fifo_t *dibit_fifo = fifo[encoder];
-
+
/* Feed all the incoming symbols into one encoder;
pump them into the relevant dibits. */
for (i = 0; i < enco_which_max; i++) {
diff --git a/gr-atsc/src/lib/atsci_viterbi_decoder.h b/gr-atsc/src/lib/atsci_viterbi_decoder.h
index 1243feeb5..f339ce79a 100644
--- a/gr-atsc/src/lib/atsci_viterbi_decoder.h
+++ b/gr-atsc/src/lib/atsci_viterbi_decoder.h
@@ -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,
@@ -61,20 +61,20 @@ public:
const atsc_soft_data_segment in[NCODERS]);
-
+
protected:
typedef interleaver_fifo<unsigned char> fifo_t;
static const int SEGMENT_SIZE = ATSC_MPEG_RS_ENCODED_LENGTH; // 207
static const int OUTPUT_SIZE = (SEGMENT_SIZE * 12);
static const int INPUT_SIZE = (ATSC_DATA_SEGMENT_LENGTH * 12);
-
+
void decode_helper (unsigned char out[OUTPUT_SIZE],
const float in[INPUT_SIZE]);
-
+
single_viterbi_t viterbi[NCODERS];
- fifo_t *fifo[NCODERS];
+ fifo_t *fifo[NCODERS];
bool debug;
};
diff --git a/gr-atsc/src/lib/atsci_viterbi_gen.cc b/gr-atsc/src/lib/atsci_viterbi_gen.cc
index ea5c3fa87..bff3c4773 100644
--- a/gr-atsc/src/lib/atsci_viterbi_gen.cc
+++ b/gr-atsc/src/lib/atsci_viterbi_gen.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2002,2006 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,
@@ -71,7 +71,7 @@ static const int bit2[8] = {0, 99, 2, 98, 4, 97, 6, 96};
/* Detailed Debugging */
int debug_dec = 0;
-/*
+/*
* Build indirect data structures to say which symbols go into which
* encoder, and then where the resulting dibits from the encoders go.
*/
@@ -116,7 +116,7 @@ build_decode_structures (char *fileout)
chunk += ENCODERS) {
/* Associate data bytes with the Trellis encoders.
They get loaded or stored in an order that depends on where we are in the
- segment sync progress (sigh).
+ segment sync progress (sigh).
GRR! When the chunk reload happens at the same time as the
segment boundary, we should bump the encoder NOW for the reload,
rather than LATER during the bitshift transition!!! */
@@ -124,7 +124,7 @@ build_decode_structures (char *fileout)
encoder = (encoder + ENCODER_SEG_BUMP) % ENCODERS;
skip_encoder_bump = 1;
}
-
+
/* Remember where the data bytes are going to go, once we've
accumulated them from the 12 interleaved decoders */
for (i = 0; i < ENCODERS; i++) {
@@ -175,7 +175,7 @@ build_decode_structures (char *fileout)
encoder++; if (encoder >= ENCODERS) encoder = 0;
} /* Encoders */
} /* Bit shifts */
-
+
#if 0
/* Now dump out the chunk of 12 data bytes that the twelve decoders have
accumulated. */
@@ -190,7 +190,7 @@ build_decode_structures (char *fileout)
} /* Dumping encoder bytes */
#endif
} /* Chunks */
-
+
/* Now print the resulting data structures in C++ */
if (!freopen(fileout, "w", stdout))
@@ -215,7 +215,7 @@ build_decode_structures (char *fileout)
printf ("};\n\n");
enco_which_max = enco_dibits[0] - enco_which_dibits[0];
- for (i = 0; i < ENCODERS; i++)
+ for (i = 0; i < ENCODERS; i++)
if (enco_which_max != enco_dibits[i] - enco_which_dibits[i]) {
cerr << "Encoder " << i << " has different max_dibits " <<
enco_dibits[i] - enco_which_dibits[i] << " than " << enco_which_max;
@@ -248,7 +248,7 @@ build_decode_structures (char *fileout)
int
usage()
-{
+{
cerr << "atsc_viterbi_gen: Usage:\n";
cerr << " ./atsc_viterbi_gen -o atsc_viterbi_mux.cc\n";
cerr << "That's all, folks!\n";
@@ -257,7 +257,7 @@ usage()
int
-main(int argc, char **argv)
+main(int argc, char **argv)
{
if (argc != 3) return usage();
if (argv[1][0] != '-'
diff --git a/gr-atsc/src/lib/atsci_vsbtx_lp.cc b/gr-atsc/src/lib/atsci_vsbtx_lp.cc
index 224d29ac1..704cd00ca 100644
--- a/gr-atsc/src/lib/atsci_vsbtx_lp.cc
+++ b/gr-atsc/src/lib/atsci_vsbtx_lp.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,
@@ -39,7 +39,7 @@ static const float atsc_vsbtx_lp2x[] = {
// is a within 5% of target?
-static bool
+static bool
close_enough_p (double a, double target)
{
double delta = fabs (target * 0.05); // 5 percent
@@ -47,7 +47,7 @@ close_enough_p (double a, double target)
return fabs (target - a) <= delta;
}
-vector<float>
+vector<float>
atsc_vsbtx_lp::taps (double sampling_freq)
{
if (close_enough_p (sampling_freq, 2 * ATSC_SYMBOL_RATE)){
diff --git a/gr-atsc/src/lib/atsci_vsbtx_lp.dat b/gr-atsc/src/lib/atsci_vsbtx_lp.dat
index 448fda7a2..0fa54d42b 100644
--- a/gr-atsc/src/lib/atsci_vsbtx_lp.dat
+++ b/gr-atsc/src/lib/atsci_vsbtx_lp.dat
@@ -3,9 +3,9 @@
* FILTER TYPE:LOW PASS 1H
* PASSBAND RIPPLE IN -dB -.0100
* STOPBAND RIPPLE IN -dB -76.0000
- * PASSBAND CUTOFF FREQUENCY .250000 HERTZ
- * STOPBAND CUTOFF FREQUENCY .360000 HERTZ
- * SAMPLING FREQUENCY 1.00000 HERTZ
+ * PASSBAND CUTOFF FREQUENCY .250000 HERTZ
+ * STOPBAND CUTOFF FREQUENCY .360000 HERTZ
+ * SAMPLING FREQUENCY 1.00000 HERTZ
*/
/*
* gain of 2
diff --git a/gr-atsc/src/lib/atsci_vsbtx_lp.h b/gr-atsc/src/lib/atsci_vsbtx_lp.h
index d3bb0c9d1..b892641c9 100644
--- a/gr-atsc/src/lib/atsci_vsbtx_lp.h
+++ b/gr-atsc/src/lib/atsci_vsbtx_lp.h
@@ -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,
diff --git a/gr-atsc/src/lib/convolutional_interleaver.h b/gr-atsc/src/lib/convolutional_interleaver.h
index 0b5ae6f4b..35a31d487 100644
--- a/gr-atsc/src/lib/convolutional_interleaver.h
+++ b/gr-atsc/src/lib/convolutional_interleaver.h
@@ -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,
@@ -40,7 +40,7 @@ class convolutional_interleaver {
//! reset interleaver (flushes contents and resets commutator)
void reset ();
-
+
//! sync interleaver (resets commutator, but doesn't flush fifos)
void sync () { m_commutator = 0; }
@@ -79,7 +79,7 @@ convolutional_interleaver<symbol_type>::convolutional_interleaver (
m_fifo_size_incr = fifo_size_incr;
m_fifo.resize (nbanks);
-
+
if (interleave_p){ // configure as interleaver
for (int i = 0; i < nbanks; i++)
m_fifo[i] = new interleaver_fifo<symbol_type>(i * fifo_size_incr);
diff --git a/gr-atsc/src/lib/create_atsci_equalizer.cc b/gr-atsc/src/lib/create_atsci_equalizer.cc
index bc4eecfb3..f784116d2 100644
--- a/gr-atsc/src/lib/create_atsci_equalizer.cc
+++ b/gr-atsc/src/lib/create_atsci_equalizer.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,
diff --git a/gr-atsc/src/lib/create_atsci_equalizer.h b/gr-atsc/src/lib/create_atsci_equalizer.h
index fd26237d8..b291e0bbd 100644
--- a/gr-atsc/src/lib/create_atsci_equalizer.h
+++ b/gr-atsc/src/lib/create_atsci_equalizer.h
@@ -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,
diff --git a/gr-atsc/src/lib/create_atsci_fs_checker.cc b/gr-atsc/src/lib/create_atsci_fs_checker.cc
index 107e35ce7..5b9a4092c 100644
--- a/gr-atsc/src/lib/create_atsci_fs_checker.cc
+++ b/gr-atsc/src/lib/create_atsci_fs_checker.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,
diff --git a/gr-atsc/src/lib/create_atsci_fs_checker.h b/gr-atsc/src/lib/create_atsci_fs_checker.h
index 23451757a..42119a6d4 100644
--- a/gr-atsc/src/lib/create_atsci_fs_checker.h
+++ b/gr-atsc/src/lib/create_atsci_fs_checker.h
@@ -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,
diff --git a/gr-atsc/src/lib/create_atsci_fs_correlator.cc b/gr-atsc/src/lib/create_atsci_fs_correlator.cc
index 6f65a7e7d..414b2d7f4 100644
--- a/gr-atsc/src/lib/create_atsci_fs_correlator.cc
+++ b/gr-atsc/src/lib/create_atsci_fs_correlator.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,
diff --git a/gr-atsc/src/lib/create_atsci_fs_correlator.h b/gr-atsc/src/lib/create_atsci_fs_correlator.h
index 7b663fd56..b9b037403 100644
--- a/gr-atsc/src/lib/create_atsci_fs_correlator.h
+++ b/gr-atsc/src/lib/create_atsci_fs_correlator.h
@@ -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,
diff --git a/gr-atsc/src/lib/fpll_btloop_coupling.h b/gr-atsc/src/lib/fpll_btloop_coupling.h
index e17425d04..9a1a99d86 100644
--- a/gr-atsc/src/lib/fpll_btloop_coupling.h
+++ b/gr-atsc/src/lib/fpll_btloop_coupling.h
@@ -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,
diff --git a/gr-atsc/src/lib/gen_encoder.py b/gr-atsc/src/lib/gen_encoder.py
index 4356cdc6a..6c8fabf7a 100755
--- a/gr-atsc/src/lib/gen_encoder.py
+++ b/gr-atsc/src/lib/gen_encoder.py
@@ -1,24 +1,24 @@
#!/usr/bin/python
#
# 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,
# Boston, MA 02110-1301, USA.
-#
+#
def output(input, state):
x2 = (input >> 1) & 0x1
@@ -43,7 +43,7 @@ def next_state(input, state):
s1 = x2 ^ s0
t1 = u0
u1 = t0 ^ x1
-
+
return (s1 << 2) | (t1 << 1) | u1
print "@@@ NEXT @@@"
@@ -60,4 +60,4 @@ for i in range (32):
state = (i >> 2) & 0x7
input = i & 0x3
print output (input, state)
-
+
diff --git a/gr-atsc/src/lib/interleaver_fifo.h b/gr-atsc/src/lib/interleaver_fifo.h
index 6d1a44580..cacac85a3 100644
--- a/gr-atsc/src/lib/interleaver_fifo.h
+++ b/gr-atsc/src/lib/interleaver_fifo.h
@@ -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,
@@ -40,7 +40,7 @@ class interleaver_fifo {
//! reset interleaver (flushes contents and resets commutator)
void reset ();
-
+
//! stuff a symbol into the fifo and return the oldest
symbol_type stuff (symbol_type input){
if (m_size == 0)
diff --git a/gr-atsc/src/lib/plinfo.cc b/gr-atsc/src/lib/plinfo.cc
index 905037b4b..30e192907 100644
--- a/gr-atsc/src/lib/plinfo.cc
+++ b/gr-atsc/src/lib/plinfo.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2002,2006 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,
@@ -28,7 +28,7 @@ plinfo::delay (plinfo &out, const plinfo &in, int nsegs_of_delay)
{
assert (in.regular_seg_p ());
assert (nsegs_of_delay >= 0);
-
+
int s = in.segno ();
if (in.in_field2_p ())
s += ATSC_DSEGS_PER_FIELD;
diff --git a/gr-atsc/src/lib/qa_atsci.cc b/gr-atsc/src/lib/qa_atsci.cc
index 262b52841..8dc940bcb 100644
--- a/gr-atsc/src/lib/qa_atsci.cc
+++ b/gr-atsc/src/lib/qa_atsci.cc
@@ -1,18 +1,18 @@
/*
* 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,
@@ -58,6 +58,6 @@ qa_atsc::suite ()
s->addTest (qa_atsci_viterbi_decoder::suite ());
s->addTest (qa_atsci_fs_correlator::suite ());
s->addTest (qa_atsci_equalizer_nop::suite ());
-
+
return s;
}
diff --git a/gr-atsc/src/lib/qa_atsci.h b/gr-atsc/src/lib/qa_atsci.h
index abf3aab58..86aca2d32 100644
--- a/gr-atsc/src/lib/qa_atsci.h
+++ b/gr-atsc/src/lib/qa_atsci.h
@@ -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,
diff --git a/gr-atsc/src/lib/qa_atsci_basic_trellis_encoder.cc b/gr-atsc/src/lib/qa_atsci_basic_trellis_encoder.cc
index c7ed016d4..4a8137424 100644
--- a/gr-atsc/src/lib/qa_atsci_basic_trellis_encoder.cc
+++ b/gr-atsc/src/lib/qa_atsci_basic_trellis_encoder.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,
diff --git a/gr-atsc/src/lib/qa_atsci_basic_trellis_encoder.h b/gr-atsc/src/lib/qa_atsci_basic_trellis_encoder.h
index 1ac4867ba..e413d0d3d 100644
--- a/gr-atsc/src/lib/qa_atsci_basic_trellis_encoder.h
+++ b/gr-atsc/src/lib/qa_atsci_basic_trellis_encoder.h
@@ -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,
diff --git a/gr-atsc/src/lib/qa_atsci_data_interleaver.cc b/gr-atsc/src/lib/qa_atsci_data_interleaver.cc
index e76a2f1f5..6069e8680 100644
--- a/gr-atsc/src/lib/qa_atsci_data_interleaver.cc
+++ b/gr-atsc/src/lib/qa_atsci_data_interleaver.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,
@@ -62,7 +62,7 @@ qa_atsci_data_interleaver::print_packet (FILE *fp,
for (int i = 0; i < 8; i++)
fprintf (fp, "%02X", p[i]);
-
+
fprintf (fp, " ... ");
p = &in.data[191];
for (int i = 0; i < 8; i++)
@@ -102,7 +102,7 @@ qa_atsci_data_interleaver::t0 ()
atsc_mpeg_packet_rs_encoded zero;
memset (&zero, 0, sizeof (zero));
-
+
for (int frame = 0; frame < 4; frame++){
for (int field = 0; field < 2; field++){
for (int segment = 0; segment < 312; segment++, counter++){
@@ -149,9 +149,9 @@ qa_atsci_data_interleaver::t1 ()
atsc_mpeg_packet_rs_encoded zero;
memset (&zero, 0, sizeof (zero));
-
+
static const int NCRAP = 13;
-
+
// push NCRAP segments of crap into the interleaver,
// but don't change the deinterleaver state
@@ -164,7 +164,7 @@ qa_atsci_data_interleaver::t1 ()
// now run the normal test.
// we should get good segments after NCRAP + 52
-
+
int starting_counter = 3141;
counter = starting_counter;
diff --git a/gr-atsc/src/lib/qa_atsci_data_interleaver.h b/gr-atsc/src/lib/qa_atsci_data_interleaver.h
index c5088bb5a..6b9408c9a 100644
--- a/gr-atsc/src/lib/qa_atsci_data_interleaver.h
+++ b/gr-atsc/src/lib/qa_atsci_data_interleaver.h
@@ -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 @@ class qa_atsci_data_interleaver : public CppUnit::TestCase {
private:
atsci_data_interleaver outbound;
atsci_data_deinterleaver inbound;
-
+
void t0 ();
void t1 ();
diff --git a/gr-atsc/src/lib/qa_atsci_equalizer_nop.cc b/gr-atsc/src/lib/qa_atsci_equalizer_nop.cc
index 85584f55f..7039eeb8e 100644
--- a/gr-atsc/src/lib/qa_atsci_equalizer_nop.cc
+++ b/gr-atsc/src/lib/qa_atsci_equalizer_nop.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,
@@ -83,7 +83,7 @@ init_field_sync_tags (atsc::syminfo *tags, int fieldnum)
static void
init_field_sync_common (float *p, int mask)
-
+
{
int i = 0;
@@ -100,7 +100,7 @@ init_field_sync_common (float *p, int mask)
for (int j = 0; j < 63; j++) // PN63, toggled on field 2
p[i++] = bin_map (atsc_pn63[j] ^ mask);
-
+
for (int j = 0; j < 63; j++) // PN63
p[i++] = bin_map (atsc_pn63[j]);
diff --git a/gr-atsc/src/lib/qa_atsci_equalizer_nop.h b/gr-atsc/src/lib/qa_atsci_equalizer_nop.h
index a0d23da08..244daf8b3 100644
--- a/gr-atsc/src/lib/qa_atsci_equalizer_nop.h
+++ b/gr-atsc/src/lib/qa_atsci_equalizer_nop.h
@@ -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,
diff --git a/gr-atsc/src/lib/qa_atsci_fake_single_viterbi.cc b/gr-atsc/src/lib/qa_atsci_fake_single_viterbi.cc
index 1f5ba6b59..2cc646daf 100644
--- a/gr-atsc/src/lib/qa_atsci_fake_single_viterbi.cc
+++ b/gr-atsc/src/lib/qa_atsci_fake_single_viterbi.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,
@@ -39,7 +39,7 @@ static const int NN = 200;
static const int MAXDIBIT = 3;
void
-qa_atsci_fake_single_viterbi::encode_block (unsigned char *out, unsigned char *in,
+qa_atsci_fake_single_viterbi::encode_block (unsigned char *out, unsigned char *in,
unsigned int n)
{
for (unsigned int i = 0; i < n; i++) {
@@ -49,7 +49,7 @@ qa_atsci_fake_single_viterbi::encode_block (unsigned char *out, unsigned char *i
void
-qa_atsci_fake_single_viterbi::decode_block (unsigned char *out, unsigned char *in,
+qa_atsci_fake_single_viterbi::decode_block (unsigned char *out, unsigned char *in,
unsigned int n)
{
for (unsigned int i = 0; i < n; i++) {
@@ -79,9 +79,9 @@ qa_atsci_fake_single_viterbi::t0 ()
int i;
// printf (" Delay is %d.\n", delay);
-
+
srandom (27); // reproducable sequence of "random" values
-
+
for (int nt = 0; nt < NTRIALS; nt++){
// load block with random data and encode
diff --git a/gr-atsc/src/lib/qa_atsci_fake_single_viterbi.h b/gr-atsc/src/lib/qa_atsci_fake_single_viterbi.h
index 60a8d964e..47805952c 100644
--- a/gr-atsc/src/lib/qa_atsci_fake_single_viterbi.h
+++ b/gr-atsc/src/lib/qa_atsci_fake_single_viterbi.h
@@ -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,
@@ -33,7 +33,7 @@ class qa_atsci_fake_single_viterbi : public CppUnit::TestCase {
private:
atsci_fake_single_viterbi decoder;
atsci_basic_trellis_encoder encoder;
-
+
CPPUNIT_TEST_SUITE (qa_atsci_fake_single_viterbi);
CPPUNIT_TEST (t0);
CPPUNIT_TEST_SUITE_END ();
diff --git a/gr-atsc/src/lib/qa_atsci_fs_correlator.cc b/gr-atsc/src/lib/qa_atsci_fs_correlator.cc
index ebfc564de..591c84050 100644
--- a/gr-atsc/src/lib/qa_atsci_fs_correlator.cc
+++ b/gr-atsc/src/lib/qa_atsci_fs_correlator.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,
@@ -52,7 +52,7 @@ bin_map (int bit)
static void
init_field_sync_common (float *p, int mask)
-
+
{
int i = 0;
@@ -69,7 +69,7 @@ init_field_sync_common (float *p, int mask)
for (int j = 0; j < 63; j++) // PN63, toggled on field 2
p[i++] = bin_map(atsc_pn63[j] ^ mask);
-
+
for (int j = 0; j < 63; j++) // PN63
p[i++] = bin_map(atsc_pn63[j]);
@@ -191,9 +191,9 @@ qa_atsci_fs_correlator::util (int which_field, int nerrs1, int nerrs2)
float input[ISIZE];
fsc->reset (); // known starting conditions
-
+
// build input
-
+
for (i = 0; i < PAD; i++)
input[i] = uniform () * 7;
@@ -205,7 +205,7 @@ qa_atsci_fs_correlator::util (int which_field, int nerrs1, int nerrs2)
input[i] = uniform () * 7;
// run the input and check
-
+
for (i = 0; i < ISIZE; i++){
fsc->filter (input[i], &output_sample, &output_tag);
if (i == delay + PAD){ // should be field sync
diff --git a/gr-atsc/src/lib/qa_atsci_fs_correlator.h b/gr-atsc/src/lib/qa_atsci_fs_correlator.h
index 9d984d94f..4785f096e 100644
--- a/gr-atsc/src/lib/qa_atsci_fs_correlator.h
+++ b/gr-atsc/src/lib/qa_atsci_fs_correlator.h
@@ -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,
@@ -30,7 +30,7 @@ class atsci_fs_correlator;
class qa_atsci_fs_correlator : public CppUnit::TestCase {
private:
atsci_fs_correlator *fsc;
-
+
public:
void setUp ();
@@ -47,7 +47,7 @@ private:
private:
void util (int which_field, int nerr1, int nerr2);
-
+
void t0 ();
void t1 ();
void t2 ();
diff --git a/gr-atsc/src/lib/qa_atsci_randomizer.cc b/gr-atsc/src/lib/qa_atsci_randomizer.cc
index b2d0bde8a..c12582dfd 100644
--- a/gr-atsc/src/lib/qa_atsci_randomizer.cc
+++ b/gr-atsc/src/lib/qa_atsci_randomizer.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,
@@ -93,7 +93,7 @@ qa_atsci_randomizer::t3_reset ()
}
randomizer.reset (); // reset LFSR
-
+
// and now should repeat expected values
for (unsigned int i = 0; i < NELEMENTS (expected_initial_values); i++){
@@ -110,7 +110,7 @@ qa_atsci_randomizer::t4_high_level ()
atsc_mpeg_packet in[N];
atsc_mpeg_packet_no_sync middle[N];
atsc_mpeg_packet out[N];
-
+
memset (in, 0, sizeof (in));
memset (middle, 0, sizeof (middle));
memset (out, 0, sizeof (out));
diff --git a/gr-atsc/src/lib/qa_atsci_randomizer.h b/gr-atsc/src/lib/qa_atsci_randomizer.h
index f1b1a1b26..16d12754f 100644
--- a/gr-atsc/src/lib/qa_atsci_randomizer.h
+++ b/gr-atsc/src/lib/qa_atsci_randomizer.h
@@ -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,
@@ -30,7 +30,7 @@
class qa_atsci_randomizer : public CppUnit::TestCase {
private:
atsci_randomizer randomizer;
-
+
public:
void setUp (){
@@ -56,7 +56,7 @@ class qa_atsci_randomizer : public CppUnit::TestCase {
void t2_initial_values ();
void t3_reset ();
void t4_high_level ();
-
+
};
#endif /* _QA_ATSC_RANDOMIZER_H_ */
diff --git a/gr-atsc/src/lib/qa_atsci_reed_solomon.cc b/gr-atsc/src/lib/qa_atsci_reed_solomon.cc
index b08c8af52..81766f856 100644
--- a/gr-atsc/src/lib/qa_atsci_reed_solomon.cc
+++ b/gr-atsc/src/lib/qa_atsci_reed_solomon.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,
diff --git a/gr-atsc/src/lib/qa_atsci_reed_solomon.h b/gr-atsc/src/lib/qa_atsci_reed_solomon.h
index 22f1743de..95d642e72 100644
--- a/gr-atsc/src/lib/qa_atsci_reed_solomon.h
+++ b/gr-atsc/src/lib/qa_atsci_reed_solomon.h
@@ -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,
diff --git a/gr-atsc/src/lib/qa_atsci_single_viterbi.cc b/gr-atsc/src/lib/qa_atsci_single_viterbi.cc
index 95e595026..ca0cf7464 100644
--- a/gr-atsc/src/lib/qa_atsci_single_viterbi.cc
+++ b/gr-atsc/src/lib/qa_atsci_single_viterbi.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,
@@ -40,7 +40,7 @@ static const int NN = 200;
static const int MAXDIBIT = 3;
void
-qa_atsci_single_viterbi::encode_block (unsigned char *out, unsigned char *in,
+qa_atsci_single_viterbi::encode_block (unsigned char *out, unsigned char *in,
unsigned int n)
{
for (unsigned int i = 0; i < n; i++) {
@@ -50,7 +50,7 @@ qa_atsci_single_viterbi::encode_block (unsigned char *out, unsigned char *in,
void
-qa_atsci_single_viterbi::decode_block (unsigned char *out, unsigned char *in,
+qa_atsci_single_viterbi::decode_block (unsigned char *out, unsigned char *in,
unsigned int n, float noise_factor)
{
for (unsigned int i = 0; i < n; i++) {
@@ -76,9 +76,9 @@ qa_atsci_single_viterbi::t0 ()
int i;
// printf (" Delay is %d.\n", delay);
-
+
srandom (27); // reproducable sequence of "random" values
-
+
for (int nt = 0; nt < NTRIALS; nt++){
// load block with random data and encode
@@ -154,9 +154,9 @@ qa_atsci_single_viterbi::t1 ()
int i;
// printf (" Delay is %d.\n", delay);
-
+
srandom (1); // reproducable sequence of "random" values
-
+
for (int nt = 0; nt < NTRIALS; nt++){
// test up to the error correction capacity of the code
@@ -180,7 +180,7 @@ qa_atsci_single_viterbi::t1 ()
// If we munge any or all of the three bits of the symbol,
// our decoder frequently gets the wrong data even with a single
// error.
- //
+ //
// Let's see what it can do with just the two low-order bits.
//
// ALSO: Don't let any error be within 12 spots of another
@@ -198,7 +198,7 @@ qa_atsci_single_viterbi::t1 ()
// Don't insert errors in the first delay slot, since we
// don't have valid history to correct them. Also, don't
// insert burst errors (adjacent errors), or errors within 2,
- // since we can't reliably correct them. Also we must not choose
+ // since we can't reliably correct them. Also we must not choose
// the same location twice when inserting an error.
do {
diff --git a/gr-atsc/src/lib/qa_atsci_single_viterbi.h b/gr-atsc/src/lib/qa_atsci_single_viterbi.h
index 057c29e8e..07585de22 100644
--- a/gr-atsc/src/lib/qa_atsci_single_viterbi.h
+++ b/gr-atsc/src/lib/qa_atsci_single_viterbi.h
@@ -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,
@@ -33,7 +33,7 @@ class qa_atsci_single_viterbi : public CppUnit::TestCase {
private:
atsci_single_viterbi decoder;
atsci_basic_trellis_encoder encoder;
-
+
CPPUNIT_TEST_SUITE (qa_atsci_single_viterbi);
CPPUNIT_TEST (t0);
CPPUNIT_TEST (t1);
diff --git a/gr-atsc/src/lib/qa_atsci_sliding_correlator.cc b/gr-atsc/src/lib/qa_atsci_sliding_correlator.cc
index 0c5d98701..4b215ba85 100644
--- a/gr-atsc/src/lib/qa_atsci_sliding_correlator.cc
+++ b/gr-atsc/src/lib/qa_atsci_sliding_correlator.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,
diff --git a/gr-atsc/src/lib/qa_atsci_sliding_correlator.h b/gr-atsc/src/lib/qa_atsci_sliding_correlator.h
index 6e7417326..bdcd09319 100644
--- a/gr-atsc/src/lib/qa_atsci_sliding_correlator.h
+++ b/gr-atsc/src/lib/qa_atsci_sliding_correlator.h
@@ -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,
@@ -33,7 +33,7 @@ class qa_atsci_sliding_correlator : public CppUnit::TestCase {
public:
- void setUp (void)
+ void setUp (void)
{
corr.reset ();
}
@@ -44,7 +44,7 @@ class qa_atsci_sliding_correlator : public CppUnit::TestCase {
private:
atsci_sliding_correlator corr;
-
+
void t0 ();
};
diff --git a/gr-atsc/src/lib/qa_atsci_trellis_encoder.cc b/gr-atsc/src/lib/qa_atsci_trellis_encoder.cc
index 390776e82..d3a3482f0 100644
--- a/gr-atsc/src/lib/qa_atsci_trellis_encoder.cc
+++ b/gr-atsc/src/lib/qa_atsci_trellis_encoder.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 @@ qa_atsci_trellis_encoder::t0 ()
atsc_mpeg_packet_rs_encoded in[NCODERS];
atsc_data_segment out[NCODERS];
-
+
memset (in, 0, sizeof (in));
memset (out, 0, sizeof (out));
@@ -59,7 +59,7 @@ qa_atsci_trellis_encoder::t0 ()
printf ("%d\n", t);
}
}
-
+
enc.reset ();
enc.encode (out, in);
diff --git a/gr-atsc/src/lib/qa_atsci_trellis_encoder.h b/gr-atsc/src/lib/qa_atsci_trellis_encoder.h
index 42b33239d..fcd114330 100644
--- a/gr-atsc/src/lib/qa_atsci_trellis_encoder.h
+++ b/gr-atsc/src/lib/qa_atsci_trellis_encoder.h
@@ -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,
@@ -33,7 +33,7 @@ class qa_atsci_trellis_encoder : public CppUnit::TestCase {
public:
- void setUp (void)
+ void setUp (void)
{
enc.reset ();
}
@@ -45,7 +45,7 @@ class qa_atsci_trellis_encoder : public CppUnit::TestCase {
private:
atsci_trellis_encoder enc;
-
+
void t0 ();
void t1 ();
};
diff --git a/gr-atsc/src/lib/qa_atsci_viterbi_decoder.cc b/gr-atsc/src/lib/qa_atsci_viterbi_decoder.cc
index 4632ec40a..8902b6eb8 100644
--- a/gr-atsc/src/lib/qa_atsci_viterbi_decoder.cc
+++ b/gr-atsc/src/lib/qa_atsci_viterbi_decoder.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,
@@ -75,7 +75,7 @@ qa_atsci_viterbi_decoder::t0 ()
atsc_mpeg_packet_rs_encoded decoder_out[NCODERS];
atsc_mpeg_packet_rs_encoded decoder_out_pad[NCODERS];
-
+
memset (encoder_in, 0, sizeof (encoder_in));
memset (encoder_out, 0, sizeof (encoder_out));
memset (decoder_out_pad, 0, sizeof (decoder_out_pad));
@@ -88,7 +88,7 @@ qa_atsci_viterbi_decoder::t0 ()
encoder_in[i].data[j] = t;
}
}
-
+
fflush (stdout);
printf ("@@@ ENCODER INPUT @@@\n");
for (int i = 0; i < NCODERS; i++){
@@ -113,7 +113,7 @@ qa_atsci_viterbi_decoder::t0 ()
viterbi.reset ();
// this has only the previous (non-existant) output
- viterbi.decode (decoder_out_pad, decoder_in);
+ viterbi.decode (decoder_out_pad, decoder_in);
// now we'll see the real output
pad_decoder_input (decoder_in_pad);
@@ -166,7 +166,7 @@ qa_atsci_viterbi_decoder::t1 ()
viterbi.reset ();
// this has only the previous (non-existant) output
- viterbi.decode (decoder_out_pad, decoder_in);
+ viterbi.decode (decoder_out_pad, decoder_in);
// now we'll see the real output
pad_decoder_input (decoder_in_pad);
diff --git a/gr-atsc/src/lib/qa_atsci_viterbi_decoder.h b/gr-atsc/src/lib/qa_atsci_viterbi_decoder.h
index 3e74d2bb6..440c79caf 100644
--- a/gr-atsc/src/lib/qa_atsci_viterbi_decoder.h
+++ b/gr-atsc/src/lib/qa_atsci_viterbi_decoder.h
@@ -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,
@@ -33,7 +33,7 @@ class qa_atsci_viterbi_decoder : public CppUnit::TestCase {
public:
- void setUp (void)
+ void setUp (void)
{
viterbi.reset ();
}
@@ -45,7 +45,7 @@ class qa_atsci_viterbi_decoder : public CppUnit::TestCase {
private:
atsci_viterbi_decoder viterbi;
-
+
void t0 ();
void t1 ();
};
diff --git a/gr-atsc/src/lib/qa_convolutional_interleaver.cc b/gr-atsc/src/lib/qa_convolutional_interleaver.cc
index fff6e61c9..bfe86f0ea 100644
--- a/gr-atsc/src/lib/qa_convolutional_interleaver.cc
+++ b/gr-atsc/src/lib/qa_convolutional_interleaver.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,
@@ -79,7 +79,7 @@ qa_convolutional_interleaver::t2 ()
int icount = 6000;
int dcount = 6000;
-
+
int end_to_end_delay = intl->end_to_end_delay ();
for (int i = 0; i < end_to_end_delay; i++){
CPPUNIT_ASSERT_EQUAL (0, deintl->transform (intl->transform (icount++)));
@@ -98,7 +98,7 @@ qa_convolutional_interleaver::t3 ()
int icount = 6000;
int dcount = 6000;
-
+
int end_to_end_delay = intl->end_to_end_delay ();
for (int i = 0; i < end_to_end_delay; i++){
CPPUNIT_ASSERT_EQUAL (0, deintl->transform (intl->transform (icount++)));
@@ -117,10 +117,10 @@ qa_convolutional_interleaver::t4 ()
int icount = 6000;
int dcount = 6000;
-
+
int end_to_end_delay = intl->end_to_end_delay ();
CPPUNIT_ASSERT_EQUAL (10608, end_to_end_delay);
-
+
for (int i = 0; i < end_to_end_delay; i++){
CPPUNIT_ASSERT_EQUAL (0, deintl->transform (intl->transform (icount++)));
}
diff --git a/gr-atsc/src/lib/qa_convolutional_interleaver.h b/gr-atsc/src/lib/qa_convolutional_interleaver.h
index 3f96065e0..b60181d73 100644
--- a/gr-atsc/src/lib/qa_convolutional_interleaver.h
+++ b/gr-atsc/src/lib/qa_convolutional_interleaver.h
@@ -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,
@@ -32,7 +32,7 @@ class qa_convolutional_interleaver : public CppUnit::TestCase {
private:
convolutional_interleaver<int> *intl;
convolutional_interleaver<int> *deintl;
-
+
CPPUNIT_TEST_SUITE (qa_convolutional_interleaver);
CPPUNIT_TEST (t0);
CPPUNIT_TEST (t1);
diff --git a/gr-atsc/src/lib/qa_interleaver_fifo.cc b/gr-atsc/src/lib/qa_interleaver_fifo.cc
index 3c3aad43c..a9de97ff3 100644
--- a/gr-atsc/src/lib/qa_interleaver_fifo.cc
+++ b/gr-atsc/src/lib/qa_interleaver_fifo.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,
@@ -38,7 +38,7 @@ qa_interleaver_fifo::t1 ()
fifo = new interleaver_fifo<int>(1);
CPPUNIT_ASSERT_EQUAL (0, fifo->stuff (2));
-
+
for (int i = 1; i < 10; i++)
CPPUNIT_ASSERT_EQUAL (i * 2, fifo->stuff ((i + 1) * 2));
}
diff --git a/gr-atsc/src/lib/qa_interleaver_fifo.h b/gr-atsc/src/lib/qa_interleaver_fifo.h
index bd29baaed..9783548ca 100644
--- a/gr-atsc/src/lib/qa_interleaver_fifo.h
+++ b/gr-atsc/src/lib/qa_interleaver_fifo.h
@@ -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,
@@ -31,7 +31,7 @@
class qa_interleaver_fifo : public CppUnit::TestCase {
private:
interleaver_fifo<int> *fifo;
-
+
public:
void tearDown (){
diff --git a/gr-atsc/src/lib/test_atsci.cc b/gr-atsc/src/lib/test_atsci.cc
index 031ca42ae..bf0a7eafc 100644
--- a/gr-atsc/src/lib/test_atsci.cc
+++ b/gr-atsc/src/lib/test_atsci.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2002,2006,2010,2011 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,
@@ -25,7 +25,7 @@
#include <cppunit/XmlOutputter.h>
#include <qa_atsci.h>
-int
+int
main (int argc, char **argv)
{
CppUnit::TextTestRunner runner;
@@ -34,7 +34,7 @@ main (int argc, char **argv)
runner.addTest (qa_atsc::suite ());
runner.setOutputter(xmlout);
-
+
bool was_successful = runner.run ("", false);
return was_successful ? 0 : 1;
diff --git a/gr-atsc/src/python/CMakeLists.txt b/gr-atsc/src/python/CMakeLists.txt
index 4c2442ba0..d38d6d803 100644
--- a/gr-atsc/src/python/CMakeLists.txt
+++ b/gr-atsc/src/python/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011-2012 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,
diff --git a/gr-atsc/src/python/README b/gr-atsc/src/python/README
index 6c23b46fd..74d6ba134 100644
--- a/gr-atsc/src/python/README
+++ b/gr-atsc/src/python/README
@@ -7,7 +7,7 @@ station frequency from the fcc video database, and sample rate to 6.4e6.
2) Capture data - adjust gain (-g) frequency (-f) and which side
the tvrx is on to fit your local setup:
-uhd_rx_cfile.py -s --samp-rate=6.4e6 -g 65 -f 503e6 atsc_data_6-4m_complex
+uhd_rx_cfile.py -s --samp-rate=6.4e6 -g 65 -f 503e6 atsc_data_6-4m_complex
You probably still need fast disks to take the data, like a raid-0 set of
striped sata drives. Make sure there are no or very few Ou overruns. Saving
diff --git a/gr-atsc/src/python/atsc_utils.py b/gr-atsc/src/python/atsc_utils.py
index 1e74d22ed..fced6d190 100644
--- a/gr-atsc/src/python/atsc_utils.py
+++ b/gr-atsc/src/python/atsc_utils.py
@@ -1,23 +1,23 @@
#
# Copyright 2006 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,
# Boston, MA 02110-1301, USA.
-#
+#
import random
import sys
@@ -42,7 +42,7 @@ def make_fake_transport_stream_packet(npkts):
for n in range(186):
r[i + n] = random.randint(0, 255)
i = i + 186
-
+
return r
diff --git a/gr-atsc/src/python/btl-fsd.py b/gr-atsc/src/python/btl-fsd.py
index 37f3f9806..826e71016 100755
--- a/gr-atsc/src/python/btl-fsd.py
+++ b/gr-atsc/src/python/btl-fsd.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2005,2007 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., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
-#
+#
from gnuradio import gr
from gnuradio import atsc
diff --git a/gr-atsc/src/python/fpll.py b/gr-atsc/src/python/fpll.py
index 24bc7277f..aed975557 100755
--- a/gr-atsc/src/python/fpll.py
+++ b/gr-atsc/src/python/fpll.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2005 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., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
-#
+#
from gnuradio import gr, atsc
import math, os
@@ -36,7 +36,7 @@ def main():
# 1/2 as wide because we're designing lp filter
- symbol_rate = atsc.ATSC_SYMBOL_RATE/2.
+ symbol_rate = atsc.ATSC_SYMBOL_RATE/2.
NTAPS = 279
tt = gr.firdes.root_raised_cosine (1.0, input_rate, symbol_rate, .115, NTAPS)
# heterodyne the low pass coefficients up to the specified bandpass
diff --git a/gr-atsc/src/python/interp.py b/gr-atsc/src/python/interp.py
index b17b3a312..8a3cc8d4c 100755
--- a/gr-atsc/src/python/interp.py
+++ b/gr-atsc/src/python/interp.py
@@ -1,31 +1,31 @@
#!/usr/bin/env /usr/bin/python
#
# Copyright 2004,2007 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., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
-#
+#
# This module starts the atsc processing chain taking the captured
# off-air signal created with:
#
# uhd_rx_cfile.py --samp-rate=6.4e6
# -f <center of tv signal channel freq>
# -g <appropriate gain for best signal / noise>
-#
+#
# All this module does is multiply the sample rate by 3, from 6.4e6 to
# 19.2e6 complex samples / sec, then lowpass filter with a cutoff of 3.2MHz
# and a transition band width of .5MHz. Center of the tv channels is
diff --git a/gr-atsc/src/python/interp_short.py b/gr-atsc/src/python/interp_short.py
index 732ca831d..c5ea337f9 100755
--- a/gr-atsc/src/python/interp_short.py
+++ b/gr-atsc/src/python/interp_short.py
@@ -1,24 +1,24 @@
#!/usr/bin/env /usr/bin/python
#
# Copyright 2004 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 2, 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., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
-#
+#
# This module starts the atsc processing chain taking the captured
# off-air signal created with:
#
diff --git a/gr-atsc/src/python/qa_atsc.py b/gr-atsc/src/python/qa_atsc.py
index 63621bd90..c6b8d2e95 100755
--- a/gr-atsc/src/python/qa_atsc.py
+++ b/gr-atsc/src/python/qa_atsc.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2006,2007 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
import atsc # qa code needs to run without being installed
@@ -44,7 +44,7 @@ class memoize(object):
"""
Make a fake transport stream that's big enough for our purposes.
We generate 8 full fields. This is relatively expensive. It
-takes about 2 seconds to execute.
+takes about 2 seconds to execute.
"""
make_transport_stream = \
memoize(lambda : tuple(make_fake_transport_stream_packet(8 * atsc.ATSC_DSEGS_PER_FIELD)))
@@ -75,11 +75,11 @@ class vector_source_ts(gr.hier_block2):
def __init__(self, ts):
"""
Pad tranport stream packets to 256 bytes and reformat appropriately.
-
+
@param ts: MPEG transport stream.
@type ts: sequence of ints in [0,255]; len(ts) % 188 == 0
"""
-
+
src = gr.vector_source_b(pad_transport_stream(ts))
s2v = gr.stream_to_vector(gr.sizeof_char, atsc.sizeof_atsc_mpeg_packet)
@@ -163,7 +163,7 @@ class qa_atsc(gr_unittest.TestCase):
def test_loopback_002(self):
"""
Loopback randomizer/rs_encoder/interleaver to
- deinterleaver/rs_decoder/derandomizer
+ deinterleaver/rs_decoder/derandomizer
"""
src_data = make_transport_stream()
interleaver_delay = 52
@@ -188,7 +188,7 @@ class qa_atsc(gr_unittest.TestCase):
"""
Loopback randomizer/rs_encoder/interleaver/trellis_encoder
via ds_to_softds to
- viterbi_decoder/deinterleaver/rs_decoder/derandomizer
+ viterbi_decoder/deinterleaver/rs_decoder/derandomizer
"""
src_data = make_transport_stream()
interleaver_delay = 52
@@ -211,7 +211,7 @@ class qa_atsc(gr_unittest.TestCase):
result_data = dst.data ()[((interleaver_delay+viterbi_delay)*atsc.ATSC_MPEG_PKT_LENGTH):len(dst.data())]
self.assertEqual (expected_result, result_data)
-
+
if __name__ == '__main__':
gr_unittest.main()
diff --git a/gr-atsc/src/python/viterbi-out.py b/gr-atsc/src/python/viterbi-out.py
index eedbaa5d6..67edd99b2 100755
--- a/gr-atsc/src/python/viterbi-out.py
+++ b/gr-atsc/src/python/viterbi-out.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2006,2007 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., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
-#
+#
from gnuradio import gr, atsc
import sys, os
@@ -46,7 +46,7 @@ def main(args):
tb.connect(src, viterbi, deinter, rs_dec, derand, depad, dst)
tb.run ()
-
+
if __name__ == '__main__':
main(sys.argv[1:])
diff --git a/gr-atsc/src/python/xlate.py b/gr-atsc/src/python/xlate.py
index e37af9a22..68e280a8c 100755
--- a/gr-atsc/src/python/xlate.py
+++ b/gr-atsc/src/python/xlate.py
@@ -1,24 +1,24 @@
#!/usr/bin/env /usr/bin/python
#
# Copyright 2004,2007 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., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
-#
+#
# This module upconverts the 19.2e6 sample rate signal from a center
# of 0 to 5.75e6 and converts to float, to prepare the signal for
# the old gnuradio 0.9 block (bit timing loop, field sync checker,
diff --git a/gr-audio/CMakeLists.txt b/gr-audio/CMakeLists.txt
index f9975cf08..35fd7fc23 100644
--- a/gr-audio/CMakeLists.txt
+++ b/gr-audio/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gr-audio/doc/CMakeLists.txt b/gr-audio/doc/CMakeLists.txt
index f4e6c4a07..483554a0e 100644
--- a/gr-audio/doc/CMakeLists.txt
+++ b/gr-audio/doc/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gr-audio/doc/README.audio b/gr-audio/doc/README.audio
index ebd0fe5d7..754c849c8 100644
--- a/gr-audio/doc/README.audio
+++ b/gr-audio/doc/README.audio
@@ -14,7 +14,7 @@ based on the system it is run on. Import this package with:
See the Doxygen documentation for details about the blocks available
in this package. A quick listing of the details can be found in Python
-after importing by using:
+after importing by using:
help(audio)
diff --git a/gr-audio/examples/c++/CMakeLists.txt b/gr-audio/examples/c++/CMakeLists.txt
index 28bbc52a5..f0d45817c 100644
--- a/gr-audio/examples/c++/CMakeLists.txt
+++ b/gr-audio/examples/c++/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gr-audio/examples/c++/dial_tone.cc b/gr-audio/examples/c++/dial_tone.cc
index e4e3d8ceb..4cd0ff59c 100644
--- a/gr-audio/examples/c++/dial_tone.cc
+++ b/gr-audio/examples/c++/dial_tone.cc
@@ -1,18 +1,18 @@
/*
* Copyright 2011 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,
diff --git a/gr-audio/examples/python/audio_copy.py b/gr-audio/examples/python/audio_copy.py
index 3094c9f7a..946aae1c2 100755
--- a/gr-audio/examples/python/audio_copy.py
+++ b/gr-audio/examples/python/audio_copy.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2005,2007 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
from gnuradio import audio
@@ -61,4 +61,4 @@ if __name__ == '__main__':
my_top_block().run()
except KeyboardInterrupt:
pass
-
+
diff --git a/gr-audio/examples/python/audio_fft.py b/gr-audio/examples/python/audio_fft.py
index 960e0f94d..519963da5 100755
--- a/gr-audio/examples/python/audio_fft.py
+++ b/gr-audio/examples/python/audio_fft.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2005,2007 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gru, audio
from gnuradio import eng_notation
@@ -34,7 +34,7 @@ class app_top_block(stdgui2.std_top_block):
self.frame = frame
self.panel = panel
-
+
parser = OptionParser(option_class=eng_option)
parser.add_option("-W", "--waterfall", action="store_true", default=False,
help="Enable waterfall display")
@@ -45,15 +45,15 @@ class app_top_block(stdgui2.std_top_block):
parser.add_option("-r", "--sample-rate", type="eng_float", default=48000,
help="set sample rate to RATE (48000)")
- (options, args) = parser.parse_args()
+ (options, args) = parser.parse_args()
sample_rate = int(options.sample_rate)
-
+
if len(args) != 0:
parser.print_help()
sys.exit(1)
self.show_debug_info = True
-
+
# build the graph
if options.waterfall:
self.scope = \
@@ -79,9 +79,9 @@ class app_top_block(stdgui2.std_top_block):
def _form_set_freq(kv):
return self.set_freq(kv['freq'])
-
+
vbox.Add(self.scope.win, 10, wx.EXPAND)
-
+
#self._build_subpanel(vbox)
def _build_subpanel(self, vbox_arg):
@@ -89,7 +89,7 @@ class app_top_block(stdgui2.std_top_block):
# FIXME figure out how to have this be a subpanel that is always
# created, but has its visibility controlled by foo.Show(True/False)
-
+
def _form_set_decim(kv):
return self.set_decim(kv['decim'])
@@ -129,7 +129,7 @@ class app_top_block(stdgui2.std_top_block):
hbox.Add((5,0), 0)
vbox.Add(hbox, 0, wx.EXPAND)
-
+
def main ():
app = stdgui2.stdapp(app_top_block, "Audio FFT", nstatus=1)
app.MainLoop()
diff --git a/gr-audio/examples/python/audio_play.py b/gr-audio/examples/python/audio_play.py
index f9520c7cf..465590f69 100755
--- a/gr-audio/examples/python/audio_play.py
+++ b/gr-audio/examples/python/audio_play.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2005,2007 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
from gnuradio import audio
diff --git a/gr-audio/examples/python/audio_to_file.py b/gr-audio/examples/python/audio_to_file.py
index 0d54f7bd2..3f7a4f8d1 100755
--- a/gr-audio/examples/python/audio_to_file.py
+++ b/gr-audio/examples/python/audio_to_file.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2007 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
from gnuradio import audio
@@ -38,7 +38,7 @@ class my_top_block(gr.top_block):
help="set sample rate to RATE (48000)")
parser.add_option("-N", "--nsamples", type="eng_float", default=None,
help="number of samples to collect [default=+inf]")
-
+
(options, args) = parser.parse_args ()
if len(args) != 1:
parser.print_help()
diff --git a/gr-audio/examples/python/dial_tone.py b/gr-audio/examples/python/dial_tone.py
index 65c5e50b2..5661d13d4 100755
--- a/gr-audio/examples/python/dial_tone.py
+++ b/gr-audio/examples/python/dial_tone.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2005,2007 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
from gnuradio import audio
diff --git a/gr-audio/examples/python/dial_tone_daemon.py b/gr-audio/examples/python/dial_tone_daemon.py
index d30d0e117..b25baebee 100755
--- a/gr-audio/examples/python/dial_tone_daemon.py
+++ b/gr-audio/examples/python/dial_tone_daemon.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2005,2007,2008 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gru
from gnuradio import audio
diff --git a/gr-audio/examples/python/dial_tone_wav.py b/gr-audio/examples/python/dial_tone_wav.py
index 6e87b2a48..c06af55b7 100755
--- a/gr-audio/examples/python/dial_tone_wav.py
+++ b/gr-audio/examples/python/dial_tone_wav.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2005,2007,2008 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,
# Boston, MA 02110-1301, USA.
-#
+#
# GNU Radio example program to record a dial tone to a WAV file
diff --git a/gr-audio/examples/python/mono_tone.py b/gr-audio/examples/python/mono_tone.py
index 869c2e5ff..bce486e4a 100755
--- a/gr-audio/examples/python/mono_tone.py
+++ b/gr-audio/examples/python/mono_tone.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2005,2007 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
from gnuradio import audio
@@ -55,7 +55,7 @@ class my_top_block(gr.top_block):
dst = audio.sink (sample_rate,
options.audio_output,
options.ok_to_block)
-
+
self.connect (src0, (dst, 0))
diff --git a/gr-audio/examples/python/multi_tone.py b/gr-audio/examples/python/multi_tone.py
index 7d47dd5d5..00c213b63 100755
--- a/gr-audio/examples/python/multi_tone.py
+++ b/gr-audio/examples/python/multi_tone.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2006,2007 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
from gnuradio import audio
@@ -72,7 +72,7 @@ class my_top_block(gr.top_block):
dst = audio.sink (sample_rate,
options.audio_output,
options.ok_to_block)
-
+
max_chan = dst.input_signature().max_streams()
if (max_chan == -1) or (max_chan > limit_channels):
max_chan = limit_channels
diff --git a/gr-audio/examples/python/noise.py b/gr-audio/examples/python/noise.py
index 75f741082..12eee1906 100755
--- a/gr-audio/examples/python/noise.py
+++ b/gr-audio/examples/python/noise.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2007 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
from gnuradio import audio
diff --git a/gr-audio/examples/python/spectrum_inversion.py b/gr-audio/examples/python/spectrum_inversion.py
index 021e23f2d..e152430cd 100755
--- a/gr-audio/examples/python/spectrum_inversion.py
+++ b/gr-audio/examples/python/spectrum_inversion.py
@@ -1,19 +1,19 @@
#!/usr/bin/env python
#
# Copyright 2004,2005,2007 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,
diff --git a/gr-audio/examples/python/test_resampler.py b/gr-audio/examples/python/test_resampler.py
index 4644c5e2f..db7f79fba 100755
--- a/gr-audio/examples/python/test_resampler.py
+++ b/gr-audio/examples/python/test_resampler.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2005,2007 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gru, blks2
from gnuradio import audio
diff --git a/gr-audio/grc/CMakeLists.txt b/gr-audio/grc/CMakeLists.txt
index a077f7fb4..35c540ad3 100644
--- a/gr-audio/grc/CMakeLists.txt
+++ b/gr-audio/grc/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gr-audio/include/CMakeLists.txt b/gr-audio/include/CMakeLists.txt
index 6db55e92c..a41506373 100644
--- a/gr-audio/include/CMakeLists.txt
+++ b/gr-audio/include/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gr-audio/include/gr_audio_api.h b/gr-audio/include/gr_audio_api.h
index 65782d308..2ddd0fec6 100644
--- a/gr-audio/include/gr_audio_api.h
+++ b/gr-audio/include/gr_audio_api.h
@@ -1,18 +1,18 @@
/*
* Copyright 2011 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,
diff --git a/gr-audio/include/gr_audio_sink.h b/gr-audio/include/gr_audio_sink.h
index 7a1caaf80..c2c8bdc30 100644
--- a/gr-audio/include/gr_audio_sink.h
+++ b/gr-audio/include/gr_audio_sink.h
@@ -1,18 +1,18 @@
/*
* Copyright 2011 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,
diff --git a/gr-audio/include/gr_audio_source.h b/gr-audio/include/gr_audio_source.h
index 8fe2b9b47..0e46ab198 100644
--- a/gr-audio/include/gr_audio_source.h
+++ b/gr-audio/include/gr_audio_source.h
@@ -1,18 +1,18 @@
/*
* Copyright 2011 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,
diff --git a/gr-audio/lib/CMakeLists.txt b/gr-audio/lib/CMakeLists.txt
index 28188a77b..7e0252a8b 100644
--- a/gr-audio/lib/CMakeLists.txt
+++ b/gr-audio/lib/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gr-audio/lib/alsa/audio_alsa_sink.cc b/gr-audio/lib/alsa/audio_alsa_sink.cc
index 0bda42470..687f24bde 100644
--- a/gr-audio/lib/alsa/audio_alsa_sink.cc
+++ b/gr-audio/lib/alsa/audio_alsa_sink.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004-2011 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,
@@ -51,7 +51,7 @@ static snd_pcm_format_t acceptable_formats[] = {
#define NELEMS(x) (sizeof(x)/sizeof(x[0]))
-static std::string
+static std::string
default_device_name ()
{
return gr_prefs::singleton()->get_string("audio_alsa", "default_output_device", "hw:0,0");
@@ -131,7 +131,7 @@ audio_alsa_sink::audio_alsa_sink (int sampling_rate,
}
set_input_signature (gr_make_io_signature (min_chan, max_chan,
sizeof (float)));
-
+
// fill in portions of the d_hw_params that we know now...
// Specify the access methods we implement
@@ -156,14 +156,14 @@ audio_alsa_sink::audio_alsa_sink (int sampling_rate,
"audio_alsa_sink",
CHATTY_DEBUG))
throw std::runtime_error ("audio_alsa_sink");
-
+
// sampling rate
unsigned int orig_sampling_rate = d_sampling_rate;
if ((error = snd_pcm_hw_params_set_rate_near (d_pcm_handle, d_hw_params,
&d_sampling_rate, 0)) < 0)
bail ("failed to set rate near", error);
-
+
if (orig_sampling_rate != d_sampling_rate){
fprintf (stderr, "audio_alsa_sink[%s]: unable to support sampling rate %d\n",
snd_pcm_name (d_pcm_handle), orig_sampling_rate);
@@ -204,7 +204,7 @@ audio_alsa_sink::audio_alsa_sink (int sampling_rate,
&d_period_size, &dir);
if (error < 0)
bail ("get_period_size failed", error);
-
+
set_output_multiple (d_period_size);
}
@@ -226,11 +226,11 @@ audio_alsa_sink::check_topology (int ninputs, int noutputs)
return true; // If stream is running, don't change any parameters
else if(state == SND_PCM_STATE_XRUN )
snd_pcm_prepare ( d_pcm_handle ); // Prepare stream on underrun, and we can set parameters;
-
+
bool special_case = nchan == 1 && d_special_case_mono_to_stereo;
if (special_case)
nchan = 2;
-
+
err = snd_pcm_hw_params_set_channels (d_pcm_handle, d_hw_params, nchan);
if (err < 0){
@@ -249,7 +249,7 @@ audio_alsa_sink::check_topology (int ninputs, int noutputs)
err = snd_pcm_sw_params_current (d_pcm_handle, d_sw_params);
if (err < 0)
bail ("snd_pcm_sw_params_current", err);
-
+
// Tell the PCM device to wait to start until we've filled
// it's buffers half way full. This helps avoid audio underruns.
@@ -327,7 +327,7 @@ audio_alsa_sink::work_s16 (int noutput_items,
{
typedef gr_int16 sample_t; // the type of samples we're creating
static const float scale_factor = std::pow(2.0f, 16-1) - 1;
-
+
unsigned int nchan = input_items.size ();
const float **in = (const float **) &input_items[0];
sample_t *buf = (sample_t *) d_buffer;
@@ -351,7 +351,7 @@ audio_alsa_sink::work_s16 (int noutput_items,
for (unsigned int chan = 0; chan < nchan; chan++)
in[chan] += d_period_size;
- if (!write_buffer (buf, d_period_size, sizeof_frame))
+ if (!write_buffer (buf, d_period_size, sizeof_frame))
return -1; // No fixing this problem. Say we're done.
}
@@ -369,7 +369,7 @@ audio_alsa_sink::work_s32 (int noutput_items,
{
typedef gr_int32 sample_t; // the type of samples we're creating
static const float scale_factor = std::pow(2.0f, 32-1) - 1;
-
+
unsigned int nchan = input_items.size ();
const float **in = (const float **) &input_items[0];
sample_t *buf = (sample_t *) d_buffer;
@@ -393,7 +393,7 @@ audio_alsa_sink::work_s32 (int noutput_items,
for (unsigned int chan = 0; chan < nchan; chan++)
in[chan] += d_period_size;
- if (!write_buffer (buf, d_period_size, sizeof_frame))
+ if (!write_buffer (buf, d_period_size, sizeof_frame))
return -1; // No fixing this problem. Say we're done.
}
@@ -411,7 +411,7 @@ audio_alsa_sink::work_s16_1x2 (int noutput_items,
{
typedef gr_int16 sample_t; // the type of samples we're creating
static const float scale_factor = std::pow(2.0f, 16-1) - 1;
-
+
assert (input_items.size () == 1);
static const unsigned int nchan = 2;
const float **in = (const float **) &input_items[0];
@@ -435,7 +435,7 @@ audio_alsa_sink::work_s16_1x2 (int noutput_items,
// update src pointers
in[0] += d_period_size;
- if (!write_buffer (buf, d_period_size, sizeof_frame))
+ if (!write_buffer (buf, d_period_size, sizeof_frame))
return -1; // No fixing this problem. Say we're done.
}
@@ -453,7 +453,7 @@ audio_alsa_sink::work_s32_1x2 (int noutput_items,
{
typedef gr_int32 sample_t; // the type of samples we're creating
static const float scale_factor = std::pow(2.0f, 32-1) - 1;
-
+
assert (input_items.size () == 1);
static unsigned int nchan = 2;
const float **in = (const float **) &input_items[0];
@@ -477,7 +477,7 @@ audio_alsa_sink::work_s32_1x2 (int noutput_items,
// update src pointers
in[0] += d_period_size;
- if (!write_buffer (buf, d_period_size, sizeof_frame))
+ if (!write_buffer (buf, d_period_size, sizeof_frame))
return -1; // No fixing this problem. Say we're done.
}
@@ -496,7 +496,7 @@ audio_alsa_sink::write_buffer (const void *vbuffer,
{
if (d_ok_to_block == true)
continue; // try again
-
+
break;
}
diff --git a/gr-audio/lib/alsa/audio_alsa_sink.h b/gr-audio/lib/alsa/audio_alsa_sink.h
index b33b84644..d456e53de 100644
--- a/gr-audio/lib/alsa/audio_alsa_sink.h
+++ b/gr-audio/lib/alsa/audio_alsa_sink.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004-2011 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,
@@ -74,7 +74,7 @@ public:
bool ok_to_block);
~audio_alsa_sink ();
-
+
bool check_topology (int ninputs, int noutputs);
int work (int noutput_items,
diff --git a/gr-audio/lib/alsa/audio_alsa_source.cc b/gr-audio/lib/alsa/audio_alsa_source.cc
index a90552ff5..9fdf80b43 100644
--- a/gr-audio/lib/alsa/audio_alsa_source.cc
+++ b/gr-audio/lib/alsa/audio_alsa_source.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004-2011 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,
@@ -50,7 +50,7 @@ static snd_pcm_format_t acceptable_formats[] = {
#define NELEMS(x) (sizeof(x)/sizeof(x[0]))
-static std::string
+static std::string
default_device_name ()
{
return gr_prefs::singleton()->get_string("audio_alsa", "default_input_device", "hw:0,0");
@@ -127,10 +127,10 @@ audio_alsa_source::audio_alsa_source (int sampling_rate,
min_chan = 1;
d_special_case_stereo_to_mono = true;
}
-
+
set_output_signature (gr_make_io_signature (min_chan, max_chan,
sizeof (float)));
-
+
// fill in portions of the d_hw_params that we know now...
// Specify the access methods we implement
@@ -155,14 +155,14 @@ audio_alsa_source::audio_alsa_source (int sampling_rate,
"audio_alsa_source",
CHATTY_DEBUG))
throw std::runtime_error ("audio_alsa_source");
-
+
// sampling rate
unsigned int orig_sampling_rate = d_sampling_rate;
if ((error = snd_pcm_hw_params_set_rate_near (d_pcm_handle, d_hw_params,
&d_sampling_rate, 0)) < 0)
bail ("failed to set rate near", error);
-
+
if (orig_sampling_rate != d_sampling_rate){
fprintf (stderr, "audio_alsa_source[%s]: unable to support sampling rate %d\n",
snd_pcm_name (d_pcm_handle), orig_sampling_rate);
@@ -204,7 +204,7 @@ audio_alsa_source::audio_alsa_source (int sampling_rate,
&d_period_size, &dir);
if (error < 0)
bail ("get_period_size failed", error);
-
+
set_output_multiple (d_period_size);
}
@@ -309,7 +309,7 @@ audio_alsa_source::work_s16 (int noutput_items,
{
typedef gr_int16 sample_t; // the type of samples we're creating
static const float scale_factor = 1.0 / std::pow(2.0f, 16-1);
-
+
unsigned int nchan = output_items.size ();
float **out = (float **) &output_items[0];
sample_t *buf = (sample_t *) d_buffer;
@@ -321,7 +321,7 @@ audio_alsa_source::work_s16 (int noutput_items,
// To minimize latency, return at most a single period's worth of samples.
// [We could also read the first one in a blocking mode and subsequent
// ones in non-blocking mode, but we'll leave that for later (or never).]
-
+
if (!read_buffer (buf, d_period_size, sizeof_frame))
return -1; // No fixing this problem. Say we're done.
@@ -347,7 +347,7 @@ audio_alsa_source::work_s16_2x1 (int noutput_items,
{
typedef gr_int16 sample_t; // the type of samples we're creating
static const float scale_factor = 1.0 / std::pow(2.0f, 16-1);
-
+
float **out = (float **) &output_items[0];
sample_t *buf = (sample_t *) d_buffer;
int bi;
@@ -360,7 +360,7 @@ audio_alsa_source::work_s16_2x1 (int noutput_items,
// To minimize latency, return at most a single period's worth of samples.
// [We could also read the first one in a blocking mode and subsequent
// ones in non-blocking mode, but we'll leave that for later (or never).]
-
+
if (!read_buffer (buf, d_period_size, sizeof_frame))
return -1; // No fixing this problem. Say we're done.
@@ -385,7 +385,7 @@ audio_alsa_source::work_s32 (int noutput_items,
{
typedef gr_int32 sample_t; // the type of samples we're creating
static const float scale_factor = 1.0 / std::pow(2.0f, 32-1);
-
+
unsigned int nchan = output_items.size ();
float **out = (float **) &output_items[0];
sample_t *buf = (sample_t *) d_buffer;
@@ -397,7 +397,7 @@ audio_alsa_source::work_s32 (int noutput_items,
// To minimize latency, return at most a single period's worth of samples.
// [We could also read the first one in a blocking mode and subsequent
// ones in non-blocking mode, but we'll leave that for later (or never).]
-
+
if (!read_buffer (buf, d_period_size, sizeof_frame))
return -1; // No fixing this problem. Say we're done.
@@ -423,7 +423,7 @@ audio_alsa_source::work_s32_2x1 (int noutput_items,
{
typedef gr_int32 sample_t; // the type of samples we're creating
static const float scale_factor = 1.0 / std::pow(2.0f, 32-1);
-
+
float **out = (float **) &output_items[0];
sample_t *buf = (sample_t *) d_buffer;
int bi;
@@ -436,7 +436,7 @@ audio_alsa_source::work_s32_2x1 (int noutput_items,
// To minimize latency, return at most a single period's worth of samples.
// [We could also read the first one in a blocking mode and subsequent
// ones in non-blocking mode, but we'll leave that for later (or never).]
-
+
if (!read_buffer (buf, d_period_size, sizeof_frame))
return -1; // No fixing this problem. Say we're done.
diff --git a/gr-audio/lib/alsa/audio_alsa_source.h b/gr-audio/lib/alsa/audio_alsa_source.h
index 142ae711a..320d49bd2 100644
--- a/gr-audio/lib/alsa/audio_alsa_source.h
+++ b/gr-audio/lib/alsa/audio_alsa_source.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004-2011 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,
@@ -77,7 +77,7 @@ public:
bool ok_to_block);
~audio_alsa_source ();
-
+
bool check_topology (int ninputs, int noutputs);
int work (int noutput_items,
diff --git a/gr-audio/lib/alsa/gri_alsa.cc b/gr-audio/lib/alsa/gri_alsa.cc
index d9fda0f7d..7bae0937d 100644
--- a/gr-audio/lib/alsa/gri_alsa.cc
+++ b/gr-audio/lib/alsa/gri_alsa.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -87,7 +87,7 @@ void
gri_alsa_dump_hw_params (snd_pcm_t *pcm, snd_pcm_hw_params_t *hwparams, FILE *fp)
{
fprintf (fp, "PCM name: %s\n", snd_pcm_name (pcm));
-
+
fprintf (fp, "Access types:\n");
for (unsigned i = 0; i < NELEMS (access_types); i++){
snd_pcm_access_t at = access_types[i];
@@ -168,7 +168,7 @@ gri_alsa_pick_acceptable_format (snd_pcm_t *pcm,
return true;
}
}
-
+
fprintf (stderr, "%s[%s]: failed to find acceptable format",
error_msg_tag, snd_pcm_name (pcm));
return false;
diff --git a/gr-audio/lib/alsa/gri_alsa.h b/gr-audio/lib/alsa/gri_alsa.h
index 3d72fd950..9c64e2c36 100644
--- a/gr-audio/lib/alsa/gri_alsa.h
+++ b/gr-audio/lib/alsa/gri_alsa.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -26,7 +26,7 @@
#include <stdio.h>
#include <alsa/asoundlib.h>
-void
+void
gri_alsa_dump_hw_params (snd_pcm_t *pcm,
snd_pcm_hw_params_t *hwparams,
FILE *fp);
diff --git a/gr-audio/lib/gr_audio_registry.cc b/gr-audio/lib/gr_audio_registry.cc
index da4b16b35..e07bf844a 100644
--- a/gr-audio/lib/gr_audio_registry.cc
+++ b/gr-audio/lib/gr_audio_registry.cc
@@ -1,18 +1,18 @@
/*
* Copyright 2011 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,
diff --git a/gr-audio/lib/gr_audio_registry.h b/gr-audio/lib/gr_audio_registry.h
index ec341e95e..c40e15657 100644
--- a/gr-audio/lib/gr_audio_registry.h
+++ b/gr-audio/lib/gr_audio_registry.h
@@ -1,18 +1,18 @@
/*
* Copyright 2011 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,
diff --git a/gr-audio/lib/jack/audio_jack_sink.cc b/gr-audio/lib/jack/audio_jack_sink.cc
index f06e77bd5..9caabe8e2 100644
--- a/gr-audio/lib/jack/audio_jack_sink.cc
+++ b/gr-audio/lib/jack/audio_jack_sink.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005-2011 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,
@@ -50,7 +50,7 @@ typedef jack_default_audio_sample_t sample_t;
// TODO: make it to match at least the quantity of items passed by work()
static const unsigned int N_BUFFERS = 16;
-static std::string
+static std::string
default_device_name ()
{
return gr_prefs::singleton()->get_string("audio_jack", "default_output_device", "gr_sink");
@@ -77,7 +77,7 @@ jack_sink_process (jack_nframes_t nframes, void *arg)
// Tell the sink thread there is room in the ringbuffer.
// If it is already running, the lock will not be available.
// We can't wait here in the process() thread, but we don't
- // need to signal in that case, because the sink thread will
+ // need to signal in that case, because the sink thread will
// check for room availability.
if (pthread_mutex_trylock (&self->d_jack_process_lock) == 0) {
@@ -108,7 +108,7 @@ audio_jack_sink::audio_jack_sink (int sampling_rate,
pthread_cond_init(&d_ringbuffer_ready, NULL);;
pthread_mutex_init(&d_jack_process_lock, NULL);
#endif
-
+
// try to become a client of the JACK server
jack_options_t options = JackNullOption;
jack_status_t status;
@@ -130,9 +130,9 @@ audio_jack_sink::audio_jack_sink (int sampling_rate,
// just decides to stop calling us.
//jack_on_shutdown (d_jack_client, &jack_shutdown, (void*)this);
-
- d_jack_output_port =
- jack_port_register (d_jack_client, "out",
+
+ d_jack_output_port =
+ jack_port_register (d_jack_client, "out",
JACK_DEFAULT_AUDIO_TYPE, JackPortIsOutput, 0);
@@ -165,7 +165,7 @@ audio_jack_sink::check_topology (int ninputs, int noutputs)
if (ninputs != 1)
return false;
- // tell the JACK server that we are ready to roll
+ // tell the JACK server that we are ready to roll
if (jack_activate (d_jack_client))
throw std::runtime_error ("audio_jack_sink");
@@ -191,7 +191,7 @@ audio_jack_sink::work (int noutput_items,
unsigned int write_space; // bytes
#ifdef NO_PTHREAD
- while ((write_space=jack_ringbuffer_write_space (d_ringbuffer)) <
+ while ((write_space=jack_ringbuffer_write_space (d_ringbuffer)) <
d_jack_buffer_size*sizeof(sample_t)) {
usleep(1000000*((d_jack_buffer_size-write_space/sizeof(sample_t))/d_sampling_rate));
}
@@ -199,7 +199,7 @@ audio_jack_sink::work (int noutput_items,
// JACK actually requires POSIX
pthread_mutex_lock (&d_jack_process_lock);
- while ((write_space=jack_ringbuffer_write_space (d_ringbuffer)) <
+ while ((write_space=jack_ringbuffer_write_space (d_ringbuffer)) <
d_jack_buffer_size*sizeof(sample_t)) {
// wait until jack_sink_process() signals more room
diff --git a/gr-audio/lib/jack/audio_jack_sink.h b/gr-audio/lib/jack/audio_jack_sink.h
index 5500b3641..8cc343937 100644
--- a/gr-audio/lib/jack/audio_jack_sink.h
+++ b/gr-audio/lib/jack/audio_jack_sink.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005-2011 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,
@@ -69,7 +69,7 @@ public:
audio_jack_sink (int sampling_rate, const std::string device_name, bool ok_to_block);
~audio_jack_sink ();
-
+
bool check_topology (int ninputs, int noutputs);
int work (int noutput_items,
diff --git a/gr-audio/lib/jack/audio_jack_source.cc b/gr-audio/lib/jack/audio_jack_source.cc
index dcd41c3ac..137fd538e 100644
--- a/gr-audio/lib/jack/audio_jack_source.cc
+++ b/gr-audio/lib/jack/audio_jack_source.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2006,2010 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,
@@ -50,7 +50,7 @@ typedef jack_default_audio_sample_t sample_t;
// TODO: make it to match at least the quantity of items passed to work()
static const unsigned int N_BUFFERS = 16;
-static std::string
+static std::string
default_device_name ()
{
return gr_prefs::singleton()->get_string("audio_jack", "default_input_device", "gr_source");
@@ -78,7 +78,7 @@ jack_source_process (jack_nframes_t nframes, void *arg)
// Tell the source thread there is data in the ringbuffer.
// If it is already running, the lock will not be available.
// We can't wait here in the process() thread, but we don't
- // need to signal in that case, because the source thread will
+ // need to signal in that case, because the source thread will
// check for data availability.
if (pthread_mutex_trylock (&self->d_jack_process_lock) == 0) {
@@ -131,8 +131,8 @@ audio_jack_source::audio_jack_source (int sampling_rate,
// just decides to stop calling us.
//jack_on_shutdown (d_jack_client, &jack_shutdown, (void*)this);
-
- d_jack_input_port = jack_port_register (d_jack_client, "in",
+
+ d_jack_input_port = jack_port_register (d_jack_client, "in",
JACK_DEFAULT_AUDIO_TYPE,
JackPortIsInput, 0);
@@ -162,7 +162,7 @@ audio_jack_source::audio_jack_source (int sampling_rate,
bool
audio_jack_source::check_topology (int ninputs, int noutputs)
{
- // tell the JACK server that we are ready to roll
+ // tell the JACK server that we are ready to roll
if (jack_activate (d_jack_client))
throw std::runtime_error ("audio_jack_source");
@@ -192,7 +192,7 @@ audio_jack_source::work (int noutput_items,
unsigned int read_space; // bytes
#ifdef NO_PTHREAD
- while ((read_space=jack_ringbuffer_read_space (d_ringbuffer)) <
+ while ((read_space=jack_ringbuffer_read_space (d_ringbuffer)) <
d_jack_buffer_size*sizeof(sample_t)) {
usleep(1000000*((d_jack_buffer_size-read_space/sizeof(sample_t))/d_sampling_rate));
}
@@ -200,7 +200,7 @@ audio_jack_source::work (int noutput_items,
// JACK actually requires POSIX
pthread_mutex_lock (&d_jack_process_lock);
- while ((read_space=jack_ringbuffer_read_space (d_ringbuffer)) <
+ while ((read_space=jack_ringbuffer_read_space (d_ringbuffer)) <
d_jack_buffer_size*sizeof(sample_t)) {
// wait until jack_source_process() signals more data
diff --git a/gr-audio/lib/jack/audio_jack_source.h b/gr-audio/lib/jack/audio_jack_source.h
index a155bf95b..2849c84b0 100644
--- a/gr-audio/lib/jack/audio_jack_source.h
+++ b/gr-audio/lib/jack/audio_jack_source.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005-2011 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,
@@ -69,7 +69,7 @@ public:
audio_jack_source (int sampling_rate, const std::string device_name, bool ok_to_block);
~audio_jack_source ();
-
+
bool check_topology (int ninputs, int noutputs);
int work (int noutput_items,
diff --git a/gr-audio/lib/jack/gri_jack.cc b/gr-audio/lib/jack/gri_jack.cc
index fef1c58a6..793ed8336 100644
--- a/gr-audio/lib/jack/gri_jack.cc
+++ b/gr-audio/lib/jack/gri_jack.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gr-audio/lib/jack/gri_jack.h b/gr-audio/lib/jack/gri_jack.h
index ddc0b744d..5dcd3b811 100644
--- a/gr-audio/lib/jack/gri_jack.h
+++ b/gr-audio/lib/jack/gri_jack.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gr-audio/lib/oss/audio_oss_sink.cc b/gr-audio/lib/oss/audio_oss_sink.cc
index 34af16cce..26b71be24 100644
--- a/gr-audio/lib/oss/audio_oss_sink.cc
+++ b/gr-audio/lib/oss/audio_oss_sink.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004-2011 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,
@@ -66,7 +66,7 @@ audio_oss_sink::audio_oss_sink (int sampling_rate,
throw std::runtime_error ("audio_oss_sink");
}
- double CHUNK_TIME =
+ double CHUNK_TIME =
std::max(0.001, gr_prefs::singleton()->get_double("audio_oss", "latency", 0.005));
d_chunk_size = (int) (d_sampling_rate * CHUNK_TIME);
@@ -121,7 +121,7 @@ audio_oss_sink::work (int noutput_items,
gr_vector_void_star &output_items)
{
const float *f0, *f1;
-
+
switch (input_items.size ()){
case 1: // mono input
@@ -138,7 +138,7 @@ audio_oss_sink::work (int noutput_items,
perror ("audio_oss_sink: write");
}
break;
-
+
case 2: // stereo input
f0 = (const float *) input_items[0];
diff --git a/gr-audio/lib/oss/audio_oss_sink.h b/gr-audio/lib/oss/audio_oss_sink.h
index 47b1407d3..8148ec34b 100644
--- a/gr-audio/lib/oss/audio_oss_sink.h
+++ b/gr-audio/lib/oss/audio_oss_sink.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004-2011 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,
@@ -46,7 +46,7 @@ public:
audio_oss_sink (int sampling_rate, const std::string device_name = "", bool ok_to_block = true);
~audio_oss_sink ();
-
+
int work (int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items);
diff --git a/gr-audio/lib/oss/audio_oss_source.cc b/gr-audio/lib/oss/audio_oss_source.cc
index eefe4dd04..e186e30ae 100644
--- a/gr-audio/lib/oss/audio_oss_source.cc
+++ b/gr-audio/lib/oss/audio_oss_source.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004-2011 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,
@@ -126,13 +126,13 @@ audio_oss_source::work (int noutput_items,
const int bytes_per_item = shorts_per_item * sizeof (short);
// To minimize latency, never return more than CHUNK_TIME
- // worth of samples per call to work.
+ // worth of samples per call to work.
noutput_items = std::min (noutput_items, d_chunk_size);
int base = 0;
int ntogo = noutput_items;
-
+
while (ntogo > 0){
int nbytes = std::min (ntogo, d_chunk_size) * bytes_per_item;
int result_nbytes = read (d_fd, d_buffer, nbytes);
@@ -158,7 +158,7 @@ audio_oss_source::work (int noutput_items,
}
break;
- case 2: // stereo output
+ case 2: // stereo output
for (int i = 0; i < result_nitems; i++){
f0[base+i] = d_buffer[2*i+0] * (1.0 / 32767);
f1[base+i] = d_buffer[2*i+1] * (1.0 / 32767);
diff --git a/gr-audio/lib/oss/audio_oss_source.h b/gr-audio/lib/oss/audio_oss_source.h
index df9f68e42..abb2db1f8 100644
--- a/gr-audio/lib/oss/audio_oss_source.h
+++ b/gr-audio/lib/oss/audio_oss_source.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004-2011 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,
@@ -48,7 +48,7 @@ public:
bool ok_to_block = true);
~audio_oss_source ();
-
+
int work (int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items);
diff --git a/gr-audio/lib/osx/audio_osx.h b/gr-audio/lib/osx/audio_osx.h
index 79e79e36c..0a98b71ef 100644
--- a/gr-audio/lib/osx/audio_osx.h
+++ b/gr-audio/lib/osx/audio_osx.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gr-audio/lib/osx/audio_osx_sink.cc b/gr-audio/lib/osx/audio_osx_sink.cc
index 901881da6..939e5e0a1 100644
--- a/gr-audio/lib/osx/audio_osx_sink.cc
+++ b/gr-audio/lib/osx/audio_osx_sink.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006-2011 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,
@@ -144,10 +144,10 @@ audio_osx_sink::audio_osx_sink (int sample_rate,
input.inputProcRefCon = this;
err = AudioUnitSetProperty (d_OutputAU,
- kAudioUnitProperty_SetRenderCallback,
+ kAudioUnitProperty_SetRenderCallback,
kAudioUnitScope_Input,
- 0,
- &input,
+ 0,
+ &input,
sizeof (input));
CheckErrorAndThrow (err, "AudioUnitSetProperty Render Callback", "audio_osx_sink::audio_osx_sink");
@@ -355,11 +355,11 @@ audio_osx_sink::work (int noutput_items,
}
OSStatus audio_osx_sink::AUOutputCallback
-(void *inRefCon,
- AudioUnitRenderActionFlags *ioActionFlags,
- const AudioTimeStamp *inTimeStamp,
- UInt32 inBusNumber,
- UInt32 inNumberFrames,
+(void *inRefCon,
+ AudioUnitRenderActionFlags *ioActionFlags,
+ const AudioTimeStamp *inTimeStamp,
+ UInt32 inBusNumber,
+ UInt32 inNumberFrames,
AudioBufferList *ioData)
{
audio_osx_sink* This = (audio_osx_sink*) inRefCon;
diff --git a/gr-audio/lib/osx/audio_osx_sink.h b/gr-audio/lib/osx/audio_osx_sink.h
index e7598097d..73b3db40d 100644
--- a/gr-audio/lib/osx/audio_osx_sink.h
+++ b/gr-audio/lib/osx/audio_osx_sink.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006-2011 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,
@@ -69,11 +69,11 @@ public:
gr_vector_void_star &output_items);
private:
- static OSStatus AUOutputCallback (void *inRefCon,
- AudioUnitRenderActionFlags *ioActionFlags,
- const AudioTimeStamp *inTimeStamp,
- UInt32 inBusNumber,
- UInt32 inNumberFrames,
+ static OSStatus AUOutputCallback (void *inRefCon,
+ AudioUnitRenderActionFlags *ioActionFlags,
+ const AudioTimeStamp *inTimeStamp,
+ UInt32 inBusNumber,
+ UInt32 inNumberFrames,
AudioBufferList *ioData);
};
diff --git a/gr-audio/lib/osx/audio_osx_source.cc b/gr-audio/lib/osx/audio_osx_source.cc
index 6c5609d20..29f0ac381 100644
--- a/gr-audio/lib/osx/audio_osx_source.cc
+++ b/gr-audio/lib/osx/audio_osx_source.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006-2011 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,
@@ -134,7 +134,7 @@ audio_osx_source::audio_osx_source (int sample_rate,
#else
ComponentDescription InputDesc;
#endif
-
+
InputDesc.componentType = kAudioUnitType_Output;
InputDesc.componentSubType = kAudioUnitSubType_HALOutput;
@@ -147,7 +147,7 @@ audio_osx_source::audio_osx_source (int sample_rate,
#else
Component comp = FindNextComponent (NULL, &InputDesc);
#endif
-
+
if (comp == NULL) {
#ifndef GR_USE_OLD_AUDIO_UNIT
std::cerr << "AudioComponentFindNext Error" << std::endl;
@@ -166,11 +166,11 @@ audio_osx_source::audio_osx_source (int sample_rate,
CheckErrorAndThrow (err, "OpenAComponent",
"audio_osx_source::audio_osx_source");
#endif
-
+
UInt32 enableIO;
-// must enable the AUHAL for input and disable output
+// must enable the AUHAL for input and disable output
// before setting the AUHAL's current device
// Enable input on the AUHAL
@@ -392,7 +392,7 @@ audio_osx_source::audio_osx_source (int sample_rate,
// UInt32 ACPrimeMethod = kConverterPrimeMethod_None;
UInt32 ACPrimeMethod = kConverterPrimeMethod_Pre;
propertySize = sizeof (ACPrimeMethod);
- err = AudioConverterSetProperty (d_AudioConverter,
+ err = AudioConverterSetProperty (d_AudioConverter,
kAudioConverterPrimeMethod,
propertySize,
&ACPrimeMethod);
@@ -400,12 +400,12 @@ audio_osx_source::audio_osx_source (int sample_rate,
"audio_osx_source::audio_osx_source");
// Get the size of the I/O buffer(s) to allow for pre-allocated buffers
-
+
// lead frame info (trail frame info is ignored)
AudioConverterPrimeInfo ACPrimeInfo = {0, 0};
propertySize = sizeof (ACPrimeInfo);
- err = AudioConverterGetProperty (d_AudioConverter,
+ err = AudioConverterGetProperty (d_AudioConverter,
kAudioConverterPrimeInfo,
&propertySize,
&ACPrimeInfo);
@@ -981,7 +981,7 @@ audio_osx_source::SetDefaultInputDeviceAsCurrent
#if _OSX_DO_LISTENERS_
OSStatus
audio_osx_source::HardwareListener
-(AudioHardwarePropertyID inPropertyID,
+(AudioHardwarePropertyID inPropertyID,
void *inClientData)
{
OSStatus err = noErr;
@@ -1012,7 +1012,7 @@ audio_osx_source::UnitListener
{
OSStatus err = noErr;
audio_osx_source* This = static_cast<audio_osx_source*>(inRefCon);
- AudioStreamBasicDescription asbd;
+ AudioStreamBasicDescription asbd;
std::cerr << "a_o_s::UnitListener" << std::endl;
diff --git a/gr-audio/lib/osx/audio_osx_source.h b/gr-audio/lib/osx/audio_osx_source.h
index 435172a2c..bb34d972c 100644
--- a/gr-audio/lib/osx/audio_osx_source.h
+++ b/gr-audio/lib/osx/audio_osx_source.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006-2011 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,
@@ -108,7 +108,7 @@ private:
AudioUnitScope inScope,
AudioUnitElement inElement);
- static OSStatus HardwareListener (AudioHardwarePropertyID inPropertyID,
+ static OSStatus HardwareListener (AudioHardwarePropertyID inPropertyID,
void *inClientData);
#endif
};
diff --git a/gr-audio/lib/osx/circular_buffer.h b/gr-audio/lib/osx/circular_buffer.h
index 48758bf87..65788d482 100644
--- a/gr-audio/lib/osx/circular_buffer.h
+++ b/gr-audio/lib/osx/circular_buffer.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2009,2010 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,
diff --git a/gr-audio/lib/portaudio/audio_portaudio_sink.cc b/gr-audio/lib/portaudio/audio_portaudio_sink.cc
index 7fdb99577..af7f1e48c 100644
--- a/gr-audio/lib/portaudio/audio_portaudio_sink.cc
+++ b/gr-audio/lib/portaudio/audio_portaudio_sink.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006-2011 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 he 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,
@@ -49,7 +49,7 @@ typedef float sample_t;
// Number of portaudio buffers in the ringbuffer
static const unsigned int N_BUFFERS = 4;
-static std::string
+static std::string
default_device_name ()
{
return gr_prefs::singleton()->get_string("audio_portaudio", "default_output_device", "");
@@ -59,7 +59,7 @@ void
audio_portaudio_sink::create_ringbuffer(void)
{
int bufsize_samples = d_portaudio_buffer_size_frames * d_output_parameters.channelCount;
-
+
if (d_verbose)
fprintf(stderr,"ring buffer size = %d frames\n",
N_BUFFERS*bufsize_samples/d_output_parameters.channelCount);
@@ -89,7 +89,7 @@ portaudio_sink_callback (const void *inputBuffer,
framesPerBuffer * self->d_output_parameters.channelCount;
int navail_samples = self->d_reader->items_available();
-
+
if (nreqd_samples <= navail_samples) { // We've got enough data...
{
gruel::scoped_lock guard(self->d_ringbuffer_mutex);
@@ -167,7 +167,7 @@ audio_portaudio_sink::audio_portaudio_sink(int sampling_rate,
if (numDevices == 0)
bail("no devices available", 0);
- if (d_device_name.empty())
+ if (d_device_name.empty())
{
// FIXME Get smarter about picking something
fprintf(stderr,"\nUsing Default Device\n");
@@ -259,7 +259,7 @@ audio_portaudio_sink::check_topology (int ninputs, int noutputs)
return false;
}
-#if 0
+#if 0
const PaStreamInfo *psi = Pa_GetStreamInfo(d_stream);
d_portaudio_buffer_size_frames = (int)(d_output_parameters.suggestedLatency * psi->sampleRate);
@@ -332,11 +332,11 @@ audio_portaudio_sink::work (int noutput_items,
int nf = std::min(noutput_items - k, nframes);
float *p = (float *) d_writer->write_pointer();
-
+
for (int i = 0; i < nf; i++)
for (unsigned int c = 0; c < nchan; c++)
*p++ = in[c][k + i];
-
+
d_writer->update_write_pointer(nf * nchan);
k += nf;
diff --git a/gr-audio/lib/portaudio/audio_portaudio_sink.h b/gr-audio/lib/portaudio/audio_portaudio_sink.h
index 04a881f7e..cf64d3da0 100644
--- a/gr-audio/lib/portaudio/audio_portaudio_sink.h
+++ b/gr-audio/lib/portaudio/audio_portaudio_sink.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006-2011 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,
@@ -75,7 +75,7 @@ public:
bool ok_to_block);
~audio_portaudio_sink ();
-
+
bool check_topology (int ninputs, int noutputs);
int work (int noutput_items,
diff --git a/gr-audio/lib/portaudio/audio_portaudio_source.cc b/gr-audio/lib/portaudio/audio_portaudio_source.cc
index 55828ad21..ddb1a6fb6 100644
--- a/gr-audio/lib/portaudio/audio_portaudio_source.cc
+++ b/gr-audio/lib/portaudio/audio_portaudio_source.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006-2011 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 he 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,
@@ -49,7 +49,7 @@ typedef float sample_t;
// Number of portaudio buffers in the ringbuffer
static const unsigned int N_BUFFERS = 4;
-static std::string
+static std::string
default_device_name ()
{
return gr_prefs::singleton()->get_string("audio_portaudio", "default_input_device", "");
@@ -59,7 +59,7 @@ void
audio_portaudio_source::create_ringbuffer(void)
{
int bufsize_samples = d_portaudio_buffer_size_frames * d_input_parameters.channelCount;
-
+
if (d_verbose)
fprintf(stderr, "ring buffer size = %d frames\n",
N_BUFFERS*bufsize_samples/d_input_parameters.channelCount);
@@ -101,7 +101,7 @@ portaudio_source_callback (const void *inputBuffer,
inputBuffer,
nframes_to_copy * nchan * sizeof(sample_t));
self->d_writer->update_write_pointer(nframes_to_copy * nchan);
-
+
// Tell the source thread there is new data in the ringbuffer.
self->d_ringbuffer_ready = true;
}
@@ -167,7 +167,7 @@ audio_portaudio_source::audio_portaudio_source(int sampling_rate,
if (numDevices == 0)
bail("no devices available", 0);
- if (d_device_name.empty())
+ if (d_device_name.empty())
{
// FIXME Get smarter about picking something
device = Pa_GetDefaultInputDevice();
@@ -178,7 +178,7 @@ audio_portaudio_source::audio_portaudio_source(int sampling_rate,
else
{
bool found = false;
-
+
for (i=0;i<numDevices;i++) {
deviceInfo = Pa_GetDeviceInfo( i );
fprintf(stderr,"Testing device name: %s",deviceInfo->name);
@@ -257,7 +257,7 @@ audio_portaudio_source::check_topology (int ninputs, int noutputs)
return false;
}
-#if 0
+#if 0
const PaStreamInfo *psi = Pa_GetStreamInfo(d_stream);
d_portaudio_buffer_size_frames = (int)(d_input_parameters.suggestedLatency * psi->sampleRate);
@@ -309,7 +309,7 @@ audio_portaudio_source::work (int noutput_items,
d_ringbuffer_cond.wait(guard); // block here, then try again
continue;
}
-
+
assert(k == 0);
// There's no data and we're not allowed to block.
@@ -343,7 +343,7 @@ audio_portaudio_source::work (int noutput_items,
gruel::scoped_lock guard(d_ringbuffer_mutex);
int nf = std::min(noutput_items - k, nframes);
-
+
const float *p = (const float *) d_reader->read_pointer();
for (int i = 0; i < nf; i++){
for (unsigned int c = 0; c < nchan; c++){
diff --git a/gr-audio/lib/portaudio/audio_portaudio_source.h b/gr-audio/lib/portaudio/audio_portaudio_source.h
index b555bc759..e81389a3b 100644
--- a/gr-audio/lib/portaudio/audio_portaudio_source.h
+++ b/gr-audio/lib/portaudio/audio_portaudio_source.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006-2011 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,
@@ -73,7 +73,7 @@ public:
bool ok_to_block);
~audio_portaudio_source ();
-
+
bool check_topology (int ninputs, int noutputs);
int work (int ninput_items,
diff --git a/gr-audio/lib/portaudio/gri_portaudio.cc b/gr-audio/lib/portaudio/gri_portaudio.cc
index faa472337..66f3d4647 100644
--- a/gr-audio/lib/portaudio/gri_portaudio.cc
+++ b/gr-audio/lib/portaudio/gri_portaudio.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
@@ -80,7 +80,7 @@ gri_print_devices()
printf( "[ Default %s Input", hostInfo->name );
defaultDisplayed = 1;
}
-
+
if( i == Pa_GetDefaultOutputDevice() )
{
printf( (defaultDisplayed ? "," : "[") );
@@ -90,7 +90,7 @@ gri_print_devices()
else if( i == Pa_GetHostApiInfo( deviceInfo->hostApi )->defaultOutputDevice )
{
const PaHostApiInfo *hostInfo = Pa_GetHostApiInfo( deviceInfo->hostApi );
- printf( (defaultDisplayed ? "," : "[") );
+ printf( (defaultDisplayed ? "," : "[") );
printf( " Default %s Output", hostInfo->name );
defaultDisplayed = 1;
}
diff --git a/gr-audio/lib/portaudio/gri_portaudio.h b/gr-audio/lib/portaudio/gri_portaudio.h
index 36191e25a..c3ea7d064 100644
--- a/gr-audio/lib/portaudio/gri_portaudio.h
+++ b/gr-audio/lib/portaudio/gri_portaudio.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gr-audio/swig/CMakeLists.txt b/gr-audio/swig/CMakeLists.txt
index 8a3258f66..4997ca3f7 100644
--- a/gr-audio/swig/CMakeLists.txt
+++ b/gr-audio/swig/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gr-audio/swig/__init__.py b/gr-audio/swig/__init__.py
index c1b9a0493..ff10a8976 100644
--- a/gr-audio/swig/__init__.py
+++ b/gr-audio/swig/__init__.py
@@ -1,18 +1,18 @@
#
# Copyright 2011 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,
diff --git a/gr-audio/swig/audio_swig.i b/gr-audio/swig/audio_swig.i
index 71db0ae09..089055dac 100644
--- a/gr-audio/swig/audio_swig.i
+++ b/gr-audio/swig/audio_swig.i
@@ -1,18 +1,18 @@
/*
* Copyright 2011 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,
diff --git a/gr-comedi/CMakeLists.txt b/gr-comedi/CMakeLists.txt
index b12177fda..a10a66a4b 100644
--- a/gr-comedi/CMakeLists.txt
+++ b/gr-comedi/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gr-comedi/src/CMakeLists.txt b/gr-comedi/src/CMakeLists.txt
index 6ad14737b..1d3d16908 100644
--- a/gr-comedi/src/CMakeLists.txt
+++ b/gr-comedi/src/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gr-comedi/src/comedi.i b/gr-comedi/src/comedi.i
index 6fa4438fc..d3660580a 100644
--- a/gr-comedi/src/comedi.i
+++ b/gr-comedi/src/comedi.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2009 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,
diff --git a/gr-comedi/src/comedi_sink_s.cc b/gr-comedi/src/comedi_sink_s.cc
index fc5c14931..de1decfb6 100644
--- a/gr-comedi/src/comedi_sink_s.cc
+++ b/gr-comedi/src/comedi_sink_s.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2010 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,
@@ -40,7 +40,7 @@
* Feedback is welcome! --SF
*/
-static std::string
+static std::string
default_device_name ()
{
return "/dev/comedi0";
diff --git a/gr-comedi/src/comedi_sink_s.h b/gr-comedi/src/comedi_sink_s.h
index b36d41304..94d39710c 100644
--- a/gr-comedi/src/comedi_sink_s.h
+++ b/gr-comedi/src/comedi_sink_s.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
@@ -78,7 +78,7 @@ class comedi_sink_s : public gr_sync_block {
public:
~comedi_sink_s ();
-
+
bool check_topology (int ninputs, int noutputs);
int work (int noutput_items,
diff --git a/gr-comedi/src/comedi_source_s.cc b/gr-comedi/src/comedi_source_s.cc
index 5d9f2f6b0..517f1440b 100644
--- a/gr-comedi/src/comedi_source_s.cc
+++ b/gr-comedi/src/comedi_source_s.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2010 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,
@@ -38,7 +38,7 @@
// FIXME these should query some kind of user preference
-static std::string
+static std::string
default_device_name ()
{
return "/dev/comedi0";
@@ -197,7 +197,7 @@ comedi_source_s::work (int noutput_items,
int o_idx = noutput_items-work_left/d_n_chan/sizeof(sampl_t)+(i-d_buf_back/sizeof(sampl_t))/d_n_chan;
if (output_items[chan])
- ((short*)(output_items[chan]))[o_idx] =
+ ((short*)(output_items[chan]))[o_idx] =
(int)pbuf[i%(d_buffer_size/sizeof(sampl_t))] - 32767;
}
diff --git a/gr-comedi/src/comedi_source_s.h b/gr-comedi/src/comedi_source_s.h
index c406f274b..b9fde4c1e 100644
--- a/gr-comedi/src/comedi_source_s.h
+++ b/gr-comedi/src/comedi_source_s.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
@@ -79,7 +79,7 @@ class comedi_source_s : public gr_sync_block {
public:
~comedi_source_s ();
-
+
bool check_topology (int ninputs, int noutputs);
int work (int noutput_items,
diff --git a/gr-comedi/src/gri_comedi.cc b/gr-comedi/src/gri_comedi.cc
index 15caac4d4..97b3ccd3e 100644
--- a/gr-comedi/src/gri_comedi.cc
+++ b/gr-comedi/src/gri_comedi.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gr-comedi/src/gri_comedi.h b/gr-comedi/src/gri_comedi.h
index 410db842d..571a41180 100644
--- a/gr-comedi/src/gri_comedi.h
+++ b/gr-comedi/src/gri_comedi.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gr-comedi/src/qa_comedi.py b/gr-comedi/src/qa_comedi.py
index e690dfa19..a407ab62b 100755
--- a/gr-comedi/src/qa_comedi.py
+++ b/gr-comedi/src/qa_comedi.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2005,2007 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
import comedi
@@ -35,6 +35,6 @@ class qa_comedi (gr_unittest.TestCase):
"""Just see if we can import the module...
They may not have COMEDI library, etc. Don't try to run anything"""
pass
-
+
if __name__ == '__main__':
gr_unittest.main ()
diff --git a/gr-fcd/CMakeLists.txt b/gr-fcd/CMakeLists.txt
index 10dd8b8cd..1185b3a32 100644
--- a/gr-fcd/CMakeLists.txt
+++ b/gr-fcd/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2012 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,
@@ -44,7 +44,7 @@ else()
ENABLE_GR_CORE
ENABLE_GR_AUDIO
)
-endif()
+endif()
GR_SET_GLOBAL(GR_FCD_INCLUDE_DIRS
${CMAKE_CURRENT_SOURCE_DIR}/lib
diff --git a/gr-fcd/doc/CMakeLists.txt b/gr-fcd/doc/CMakeLists.txt
index d080b384e..6a4b7962d 100644
--- a/gr-fcd/doc/CMakeLists.txt
+++ b/gr-fcd/doc/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2012 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,
diff --git a/gr-fcd/doc/README.fcd b/gr-fcd/doc/README.fcd
index 6fff012b8..83b4da1ce 100644
--- a/gr-fcd/doc/README.fcd
+++ b/gr-fcd/doc/README.fcd
@@ -8,6 +8,6 @@ imported as:
See the Doxygen documentation for details about the blocks available
in this package. A quick listing of the details can be found in Python
-after importing by using:
+after importing by using:
help(fcd)
diff --git a/gr-fcd/doc/fcd.dox b/gr-fcd/doc/fcd.dox
index a4420f6b3..6e07c585b 100644
--- a/gr-fcd/doc/fcd.dox
+++ b/gr-fcd/doc/fcd.dox
@@ -14,7 +14,7 @@ imported as:
See the Doxygen documentation for details about the blocks available
in this package. A quick listing of the details can be found in Python
-after importing by using:
+after importing by using:
\code
help(fcd)
diff --git a/gr-fcd/examples/c++/fcd_nfm_rx.cc b/gr-fcd/examples/c++/fcd_nfm_rx.cc
index 97ef7cf19..0ebc5d288 100644
--- a/gr-fcd/examples/c++/fcd_nfm_rx.cc
+++ b/gr-fcd/examples/c++/fcd_nfm_rx.cc
@@ -1,16 +1,16 @@
/*
* Copyright 2011 Free Software Foundation, Inc.
- *
+ *
* 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,
@@ -19,10 +19,10 @@
/*
* Simple GNU Radio C++ example for using the Funcube Dongle.
- *
+ *
* Construct a simple narrow band FM receiver using the gr-fcd
* block as source.
- *
+ *
* This example uses "hw:1" as FCD source device and the default
* audio device for output.
*
@@ -83,7 +83,7 @@ int main(int argc, char **argv)
fcd_source_c_sptr fcd = fcd_make_source_c(device);
fcd->set_freq_khz(freq);
fcd->set_lna_gain(gain);
-
+
// Low pass filter
std::vector<float> taps = gr_firdes::low_pass(1.0, 96000, 5000.0, 1000.0);
gr_fir_filter_ccf_sptr filter = gr_make_fir_filter_ccf (2, taps);
diff --git a/gr-fcd/grc/CMakeLists.txt b/gr-fcd/grc/CMakeLists.txt
index 16af2cdba..d1eb00e32 100644
--- a/gr-fcd/grc/CMakeLists.txt
+++ b/gr-fcd/grc/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2012 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,
diff --git a/gr-fcd/include/fcd/fcd_source_c.h b/gr-fcd/include/fcd/fcd_source_c.h
index 988925c2e..19c589023 100644
--- a/gr-fcd/include/fcd/fcd_source_c.h
+++ b/gr-fcd/include/fcd/fcd_source_c.h
@@ -1,17 +1,17 @@
/* -*- c++ -*- */
/*
* Copyright 2011-2012 Free Software Foundation, Inc.
- *
+ *
* 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,
@@ -38,11 +38,11 @@ typedef boost::shared_ptr<fcd_source_c> fcd_source_c_sptr;
FCD_API fcd_source_c_sptr fcd_make_source_c(const std::string device_name = "");
/*! \brief Funcube Dongle source block.
- *
+ *
* This class provides a Funcube Dongle soure block by wrapping the
* USB audio interface and the USB HID control interface of the Funcube
* Dongle into one convenient source block.
- *
+ *
* The Funcube Dongle needs to have firmware 18f or later for the control
* interface to work properly. As of early 2011, FCDs still come with firmware
* 18b. You can use qthid 2.2 (not 3) to upgrade the firmware: http://qthid.sf.net
@@ -52,42 +52,42 @@ class FCD_API fcd_source_c : virtual public gr_hier_block2
public:
/*! \brief Set frequency with Hz resolution.
* \param freq The frequency in Hz
- *
+ *
* Set the frequency of the Funcube Dongle with 1 Hz resolution applying
* the frequency correction set by set_freq_corr().
- *
+ *
* \see set_freq_khz()
*/
virtual void set_freq(int freq) = 0;
/*! \brief Set frequency with Hz resolution.
* \param freq The frequency in Hz
- *
+ *
* This is a convenience function that uses float parameter in order to allow
* using engineering notation in GRC.
- *
+ *
* \see set_freq_khz()
*/
virtual void set_freq(float freq) = 0;
-
+
/*! \brief Set frequency with kHz resolution.
* \param freq The frequency in kHz
- *
+ *
* Sets the frequency of the Funcube Dongle with 1 kHz resolution
* applying the frequency correction set by set_freq_corr().
- *
+ *
* \see set_freq()
*/
virtual void set_freq_khz(int freq) = 0;
-
+
/*! \brief Set LNA gain.
* \param gain The new gain in dB.
- *
+ *
* Set the LNA gain in the FCD. Valid range is -5 to 30. Although
* the LNA gain in the FCD takes enumerated values corresponding to
* 2.5 dB steps, you can can call this method with any float value
* and it will be rounded to the nearest valid value.
- *
+ *
* By default the LNA gain is set to 20 dB and this is a good value for
* most cases. In noisy areas you may try to reduce the gain.
*/
@@ -105,26 +105,26 @@ public:
/*! \brief Set new frequency correction.
* \param ppm The new frequency correction in parts per million
- *
+ *
* Version 1.1 FCDs (S/N 810 or later) need a correction of -12 ppm.
* Earlier FCDs need roughly -120 ppm (default for gr-fcd).
- *
+ *
* Ref: http://www.funcubedongle.com/?p=617
*/
virtual void set_freq_corr(int ppm) = 0;
-
+
/*! \brief Set DC offset correction.
* \param _dci DC correction for I component (-1.0 to 1.0)
* \param _dcq DC correction for Q component (-1.0 to 1.0)
- *
+ *
* Set DC offset correction in the device. Default is 0.0.
*/
virtual void set_dc_corr(double _dci, double _dcq) = 0;
-
+
/*! \brief Set IQ phase and gain balance.
* \param _gain The gain correction (-1.0 to 1.0)
* \param _phase The phase correction (-1.0 to 1.0)
- *
+ *
* Set IQ phase and gain balance in the device. The default values
* are 0.0 for phase and 1.0 for gain.
*/
diff --git a/gr-fcd/lib/fcd/fcd.c b/gr-fcd/lib/fcd/fcd.c
index ca9050231..011d77be9 100644
--- a/gr-fcd/lib/fcd/fcd.c
+++ b/gr-fcd/lib/fcd/fcd.c
@@ -1,10 +1,10 @@
/***************************************************************************
* This file is part of Qthid.
- *
+ *
* Copyright (C) 2010 Howard Long, G6LVB
* CopyRight (C) 2011 Alexandru Csete, OZ9AEC
* Mario Lorenz, DL5MLO
- *
+ *
* Qthid 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 of the License, or
diff --git a/gr-fcd/lib/fcd/fcdhidcmd.h b/gr-fcd/lib/fcd/fcdhidcmd.h
index fad55f15f..1741ede30 100644
--- a/gr-fcd/lib/fcd/fcdhidcmd.h
+++ b/gr-fcd/lib/fcd/fcdhidcmd.h
@@ -87,7 +87,7 @@
#define FCD_CMD_APP_RESET 255 // Reset to bootloader
-typedef enum
+typedef enum
{
TLGE_N5_0DB=0,
TLGE_N2_5DB=1,
diff --git a/gr-fcd/lib/fcd_source_c_impl.cc b/gr-fcd/lib/fcd_source_c_impl.cc
index ca370d9f3..34a221827 100644
--- a/gr-fcd/lib/fcd_source_c_impl.cc
+++ b/gr-fcd/lib/fcd_source_c_impl.cc
@@ -1,17 +1,17 @@
/* -*- c++ -*- */
/*
* Copyright 2011-2012 Free Software Foundation, Inc.
- *
+ *
* 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,
@@ -46,7 +46,7 @@ static const int MAX_IN = 0; /*!< Maximum number of input streams. */
static const int MIN_OUT = 1; /*!< Minimum number of output streams. */
static const int MAX_OUT = 1; /*!< Maximum number of output streams. */
-fcd_source_c_impl::fcd_source_c_impl(const std::string device_name)
+fcd_source_c_impl::fcd_source_c_impl(const std::string device_name)
: gr_hier_block2 ("fcd_source_c",
gr_make_io_signature (MIN_IN, MAX_IN, sizeof (gr_complex)),
gr_make_io_signature (MIN_OUT, MAX_OUT, sizeof (gr_complex))),
@@ -54,13 +54,13 @@ fcd_source_c_impl::fcd_source_c_impl(const std::string device_name)
d_freq_req(0)
{
gr_float_to_complex_sptr f2c;
-
+
/* Audio source; sample rate fixed at 96kHz */
fcd = audio_make_source(96000, device_name, true);
-
+
/* block to convert stereo audio to a complex stream */
f2c = gr_make_float_to_complex(1);
-
+
connect(fcd, 0, f2c, 0);
connect(fcd, 1, f2c, 1);
connect(f2c, 0, self(), 0);
@@ -71,15 +71,15 @@ void fcd_source_c_impl::set_freq(int freq)
{
FCD_MODE_ENUM __GR_ATTR_UNUSED fme;
double f = (double)freq;
-
+
/* valid range 50 MHz - 2.0 GHz */
if ((freq < 50000000) || (freq > 2000000000)) {
return;
}
-
+
d_freq_req = freq;
f *= 1.0 + d_freq_corr/1000000.0;
-
+
fme = fcdAppSetFreq((int)f);
/* TODO: check fme */
}
@@ -89,34 +89,34 @@ void fcd_source_c_impl::set_freq(float freq)
{
FCD_MODE_ENUM __GR_ATTR_UNUSED fme;
double f = (double)freq;
-
+
/* valid range 50 MHz - 2.0 GHz */
if ((freq < 50.0e6) || (freq > 2.0e9)) {
return;
}
-
+
d_freq_req = (int)freq;
f *= 1.0 + d_freq_corr/1000000.0;
-
+
fme = fcdAppSetFreq((int)f);
/* TODO: check fme */
}
-
+
// Set frequency with kHz resolution.
void fcd_source_c_impl::set_freq_khz(int freq)
{
FCD_MODE_ENUM __GR_ATTR_UNUSED fme;
double f = freq*1000.0;
-
+
/* valid range 50 MHz - 2.0 GHz */
if ((freq < 50000) || (freq > 2000000)) {
return;
}
-
+
d_freq_req = freq*1000;
f *= 1.0 + d_freq_corr/1000000.0;
-
+
fme = fcdAppSetFreqkHz((int)(f/1000.0));
/* TODO: check fme */
}
@@ -127,7 +127,7 @@ void fcd_source_c_impl::set_lna_gain(float gain)
{
FCD_MODE_ENUM __GR_ATTR_UNUSED fme;
unsigned char g;
-
+
/* convert to nearest discrete value */
if (gain > 27.5) {
g = 14; // 30.0 dB
@@ -168,7 +168,7 @@ void fcd_source_c_impl::set_lna_gain(float gain)
else {
g = 0; // -5.0 dB
}
-
+
fme = fcdAppSetParam(FCD_CMD_APP_SET_LNA_GAIN, &g, 1);
/* TODO: check fme */
}
@@ -207,13 +207,13 @@ void fcd_source_c_impl::set_dc_corr(double _dci, double _dcq)
signed short dcq;
};
} dcinfo;
-
+
if ((_dci < -1.0) || (_dci > 1.0) || (_dcq < -1.0) || (_dcq > 1.0))
return;
-
+
dcinfo.dci = static_cast<signed short>(_dci*32768.0);
dcinfo.dcq = static_cast<signed short>(_dcq*32768.0);
-
+
fcdAppSetParam(FCD_CMD_APP_SET_DC_CORR, dcinfo.auc, 4);
}
@@ -227,12 +227,12 @@ void fcd_source_c_impl::set_iq_corr(double _gain, double _phase)
signed short gain;
};
} iqinfo;
-
+
if ((_gain < -1.0) || (_gain > 1.0) || (_phase < -1.0) || (_phase > 1.0))
return;
-
+
iqinfo.phase = static_cast<signed short>(_phase*32768.0);
iqinfo.gain = static_cast<signed short>(_gain*32768.0);
-
+
fcdAppSetParam(FCD_CMD_APP_SET_IQ_CORR, iqinfo.auc, 4);
}
diff --git a/gr-fcd/lib/fcd_source_c_impl.h b/gr-fcd/lib/fcd_source_c_impl.h
index d082ecc1e..d4ac40417 100644
--- a/gr-fcd/lib/fcd_source_c_impl.h
+++ b/gr-fcd/lib/fcd_source_c_impl.h
@@ -1,17 +1,17 @@
/* -*- c++ -*- */
/*
* Copyright 2011-2012 Free Software Foundation, Inc.
- *
+ *
* 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,
@@ -36,12 +36,12 @@ public:
void set_freq_corr(int ppm);
void set_dc_corr(double _dci, double _dcq);
void set_iq_corr(double _gain, double _phase);
-
+
private:
fcd_source_c_impl(const std::string device_name = "");
friend FCD_API fcd_source_c_sptr
fcd_make_source_c(const std::string device_name);
-
+
audio_source::sptr fcd; /*!< The audio input source */
int d_freq_corr; /*!< The frequency correction in ppm */
int d_freq_req; /*!< The latest requested frequency in Hz */
diff --git a/gr-fcd/lib/hid/hid-libusb.c b/gr-fcd/lib/hid/hid-libusb.c
index 7069f50d0..82cbc9151 100644
--- a/gr-fcd/lib/hid/hid-libusb.c
+++ b/gr-fcd/lib/hid/hid-libusb.c
@@ -10,7 +10,7 @@
Libusb Version - 8/13/2010
Copyright 2009, All Rights Reserved.
-
+
At the discretion of the user of this library,
this software may be licensed under the terms of the
GNU Public License v3, a BSD-Style license, or the
@@ -77,23 +77,23 @@ struct input_report {
struct hid_device_ {
/* Handle to the actual device. */
libusb_device_handle *device_handle;
-
+
/* Endpoint information */
int input_endpoint;
int output_endpoint;
int input_ep_max_packet_size;
- /* The interface number of the HID */
+ /* The interface number of the HID */
int interface;
-
+
/* Indexes of Strings */
int manufacturer_index;
int product_index;
int serial_index;
-
+
/* Whether blocking reads are used */
int blocking; /* boolean */
-
+
/* Read thread objects */
pthread_t thread;
pthread_mutex_t mutex; /* Protects input_reports */
@@ -126,11 +126,11 @@ static hid_device *new_hid_device(void)
dev->shutdown_thread = 0;
dev->transfer = NULL;
dev->input_reports = NULL;
-
+
pthread_mutex_init(&dev->mutex, NULL);
pthread_cond_init(&dev->condition, NULL);
pthread_barrier_init(&dev->barrier, NULL, 2);
-
+
return dev;
}
@@ -191,13 +191,13 @@ static int get_usage(uint8_t *report_descriptor, size_t size,
int size_code;
int data_len, key_size;
int usage_found = 0, usage_page_found = 0;
-
+
while (i < size) {
int key = report_descriptor[i];
int key_cmd = key & 0xfc;
//printf("key: %02hhx\n", key);
-
+
if ((key & 0xf0) == 0xf0) {
/* This is a Long Item. The next byte contains the
length of the data section (value) for this key.
@@ -232,7 +232,7 @@ static int get_usage(uint8_t *report_descriptor, size_t size,
};
key_size = 1;
}
-
+
if (key_cmd == 0x4) {
*usage_page = get_bytes(report_descriptor, size, data_len, i);
usage_page_found = 1;
@@ -246,11 +246,11 @@ static int get_usage(uint8_t *report_descriptor, size_t size,
if (usage_page_found && usage_found)
return 0; /* success */
-
+
/* Skip over this key and it's associated data */
i += data_len + key_size;
}
-
+
return -1; /* failure */
}
#endif // INVASIVE_GET_USAGE
@@ -262,7 +262,7 @@ static uint16_t get_first_language(libusb_device_handle *dev)
{
uint16_t buf[32];
int len;
-
+
/* Get the string from libusb. */
len = libusb_get_string_descriptor(dev,
0x0, /* String ID */
@@ -271,7 +271,7 @@ static uint16_t get_first_language(libusb_device_handle *dev)
sizeof(buf));
if (len < 4)
return 0x0;
-
+
return buf[1]; // First two bytes are len and descriptor type.
}
@@ -280,7 +280,7 @@ static int is_language_supported(libusb_device_handle *dev, uint16_t lang)
uint16_t buf[32];
int len;
int i;
-
+
/* Get the string from libusb. */
len = libusb_get_string_descriptor(dev,
0x0, /* String ID */
@@ -289,8 +289,8 @@ static int is_language_supported(libusb_device_handle *dev, uint16_t lang)
sizeof(buf));
if (len < 4)
return 0x0;
-
-
+
+
len /= 2; /* language IDs are two-bytes each. */
/* Start at index 1 because there are two bytes of protocol data. */
for (i = 1; i < len; i++) {
@@ -325,7 +325,7 @@ static wchar_t *get_usb_string(libusb_device_handle *dev, uint8_t idx)
lang = get_usb_code_for_current_locale();
if (!is_language_supported(dev, lang))
lang = get_first_language(dev);
-
+
/* Get the string from libusb. */
len = libusb_get_string_descriptor(dev,
idx,
@@ -334,17 +334,17 @@ static wchar_t *get_usb_string(libusb_device_handle *dev, uint8_t idx)
sizeof(buf));
if (len < 0)
return NULL;
-
+
buf[sizeof(buf)-1] = '\0';
-
+
if (len+1 < sizeof(buf))
buf[len+1] = '\0';
-
+
/* Initialize iconv. */
ic = iconv_open("UTF-32", "UTF-16");
if (ic == (iconv_t)-1)
return NULL;
-
+
/* Convert to UTF-32 (wchar_t on glibc systems).
Skip the first character (2-bytes). */
inptr = buf+2;
@@ -359,13 +359,13 @@ static wchar_t *get_usb_string(libusb_device_handle *dev, uint8_t idx)
wbuf[sizeof(wbuf)/sizeof(wbuf[0])-1] = 0x00000000;
if (outbytes >= sizeof(wbuf[0]))
*((wchar_t*)outptr) = 0x00000000;
-
+
/* Allocate and copy the string. */
str = wcsdup(wbuf+1);
err:
iconv_close(ic);
-
+
return str;
}
@@ -377,7 +377,7 @@ static char *make_path(libusb_device *dev, int interface_number)
libusb_get_device_address(dev),
interface_number);
str[sizeof(str)-1] = '\0';
-
+
return strdup(str);
}
@@ -410,12 +410,12 @@ struct hid_device_info HID_API_EXPORT *hid_enumerate(unsigned short vendor_id,
libusb_device_handle *handle;
ssize_t num_devs;
int i = 0;
-
+
struct hid_device_info *root = NULL; // return object
struct hid_device_info *cur_dev = NULL;
-
+
setlocale(LC_ALL,"");
-
+
if (!initialized)
hid_init();
@@ -431,7 +431,7 @@ struct hid_device_info HID_API_EXPORT *hid_enumerate(unsigned short vendor_id,
int res = libusb_get_device_descriptor(dev, &desc);
unsigned short dev_vid = desc.idVendor;
unsigned short dev_pid = desc.idProduct;
-
+
/* HID's are defined at the interface level. */
if (desc.bDeviceClass != LIBUSB_CLASS_PER_INTERFACE)
continue;
@@ -462,11 +462,11 @@ struct hid_device_info HID_API_EXPORT *hid_enumerate(unsigned short vendor_id,
root = tmp;
}
cur_dev = tmp;
-
+
/* Fill out the record */
cur_dev->next = NULL;
cur_dev->path = make_path(dev, interface_num);
-
+
res = libusb_open(dev, &handle);
if (res >= 0) {
@@ -501,7 +501,7 @@ struct hid_device_info HID_API_EXPORT *hid_enumerate(unsigned short vendor_id,
between interfaces. */
int detached = 0;
unsigned char data[256];
-
+
/* Usage Page and Usage */
res = libusb_kernel_driver_active(handle, interface_num);
if (res == 1) {
@@ -550,7 +550,7 @@ struct hid_device_info HID_API_EXPORT *hid_enumerate(unsigned short vendor_id,
/* Release Number */
cur_dev->release_number = desc.bcdDevice;
-
+
/* Interface Number */
cur_dev->interface_number = interface_num;
}
@@ -585,7 +585,7 @@ hid_device * hid_open(unsigned short vendor_id, unsigned short product_id, wchar
struct hid_device_info *devs, *cur_dev;
const char *path_to_open = NULL;
hid_device *handle = NULL;
-
+
devs = hid_enumerate(vendor_id, product_id);
cur_dev = devs;
while (cur_dev) {
@@ -611,14 +611,14 @@ hid_device * hid_open(unsigned short vendor_id, unsigned short product_id, wchar
}
hid_free_enumeration(devs);
-
+
return handle;
}
static void read_callback(struct libusb_transfer *transfer)
{
hid_device *dev = transfer->user_data;
-
+
if (transfer->status == LIBUSB_TRANSFER_COMPLETED) {
struct input_report *rpt = malloc(sizeof(*rpt));
@@ -644,13 +644,13 @@ static void read_callback(struct libusb_transfer *transfer)
num_queued++;
}
cur->next = rpt;
-
+
/* Pop one off if we've reached 30 in the queue. This
way we don't grow forever if the user never reads
anything from the device. */
if (num_queued > 30) {
return_data(dev, NULL, 0);
- }
+ }
}
pthread_mutex_unlock(&dev->mutex);
}
@@ -668,7 +668,7 @@ static void read_callback(struct libusb_transfer *transfer)
else {
LOG("Unknown transfer code: %d\n", transfer->status);
}
-
+
/* Re-submit the transfer object. */
libusb_submit_transfer(transfer);
}
@@ -691,14 +691,14 @@ static void *read_thread(void *param)
read_callback,
dev,
5000/*timeout*/);
-
+
/* Make the first submission. Further submissions are made
from inside read_callback() */
libusb_submit_transfer(dev->transfer);
// Notify the main thread that the read thread is up and running.
pthread_barrier_wait(&dev->barrier);
-
+
/* Handle all the events. */
while (!dev->shutdown_thread) {
int res;
@@ -708,14 +708,14 @@ static void *read_thread(void *param)
break;
}
}
-
+
/* Cancel any transfer that may be pending. This call will fail
if no transfers are pending, but that's OK. */
if (libusb_cancel_transfer(dev->transfer) == 0) {
/* The transfer was cancelled, so wait for its completion. */
libusb_handle_events(NULL);
}
-
+
/* Now that the read thread is stopping, Wake any threads which are
waiting on data (in hid_read_timeout()). Do this under a mutex to
make sure that a thread which is about to go to sleep waiting on
@@ -732,7 +732,7 @@ static void *read_thread(void *param)
cleaned up after the call to pthread_join() (in hid_close()), but
since hid_close() calls libusb_cancel_transfer(), on these objects,
they can not be cleaned up here. */
-
+
return NULL;
}
@@ -749,9 +749,9 @@ hid_device * HID_API_EXPORT hid_open_path(const char *path)
int res;
int d = 0;
int good_open = 0;
-
+
setlocale(LC_ALL,"");
-
+
if (!initialized)
hid_init();
@@ -782,7 +782,7 @@ hid_device * HID_API_EXPORT hid_open_path(const char *path)
break;
}
good_open = 1;
-
+
/* Detach the kernel driver, but only if the
device is managed by the kernel */
if (libusb_kernel_driver_active(dev->device_handle, intf_desc->bInterfaceNumber) == 1) {
@@ -795,7 +795,7 @@ hid_device * HID_API_EXPORT hid_open_path(const char *path)
break;
}
}
-
+
res = libusb_claim_interface(dev->device_handle, intf_desc->bInterfaceNumber);
if (res < 0) {
LOG("can't claim interface %d: %d\n", intf_desc->bInterfaceNumber, res);
@@ -812,7 +812,7 @@ hid_device * HID_API_EXPORT hid_open_path(const char *path)
/* Store off the interface number */
dev->interface = intf_desc->bInterfaceNumber;
-
+
/* Find the INPUT and OUTPUT endpoints. An
OUTPUT endpoint is not required. */
for (i = 0; i < intf_desc->bNumEndpoints; i++) {
@@ -824,10 +824,10 @@ hid_device * HID_API_EXPORT hid_open_path(const char *path)
int is_interrupt =
(ep->bmAttributes & LIBUSB_TRANSFER_TYPE_MASK)
== LIBUSB_TRANSFER_TYPE_INTERRUPT;
- int is_output =
+ int is_output =
(ep->bEndpointAddress & LIBUSB_ENDPOINT_DIR_MASK)
== LIBUSB_ENDPOINT_OUT;
- int is_input =
+ int is_input =
(ep->bEndpointAddress & LIBUSB_ENDPOINT_DIR_MASK)
== LIBUSB_ENDPOINT_IN;
@@ -844,12 +844,12 @@ hid_device * HID_API_EXPORT hid_open_path(const char *path)
dev->output_endpoint = ep->bEndpointAddress;
}
}
-
+
pthread_create(&dev->thread, NULL, read_thread, dev);
-
+
// Wait here for the read thread to be initialized.
pthread_barrier_wait(&dev->barrier);
-
+
}
free(dev_path);
}
@@ -860,7 +860,7 @@ hid_device * HID_API_EXPORT hid_open_path(const char *path)
}
libusb_free_device_list(devs, 1);
-
+
// If we have a good handle, return it.
if (good_open) {
return dev;
@@ -895,13 +895,13 @@ int HID_API_EXPORT hid_write(hid_device *dev, const unsigned char *data, size_t
dev->interface,
(unsigned char *)data, length,
1000/*timeout millis*/);
-
+
if (res < 0)
return -1;
-
+
if (skipped_report_id)
length++;
-
+
return length;
}
else {
@@ -912,13 +912,13 @@ int HID_API_EXPORT hid_write(hid_device *dev, const unsigned char *data, size_t
(unsigned char*)data,
length,
&actual_length, 1000);
-
+
if (res < 0)
return -1;
-
+
if (skipped_report_id)
actual_length++;
-
+
return actual_length;
}
}
@@ -966,14 +966,14 @@ int HID_API_EXPORT hid_read_timeout(hid_device *dev, unsigned char *data, size_t
bytes_read = return_data(dev, data, length);
goto ret;
}
-
+
if (dev->shutdown_thread) {
/* This means the device has been disconnected.
An error code of -1 should be returned. */
bytes_read = -1;
goto ret;
}
-
+
if (milliseconds == -1) {
/* Blocking */
while (!dev->input_reports && !dev->shutdown_thread) {
@@ -994,7 +994,7 @@ int HID_API_EXPORT hid_read_timeout(hid_device *dev, unsigned char *data, size_t
ts.tv_sec++;
ts.tv_nsec -= 1000000000L;
}
-
+
while (!dev->input_reports && !dev->shutdown_thread) {
res = pthread_cond_timedwait(&dev->condition, &dev->mutex, &ts);
if (res == 0) {
@@ -1002,7 +1002,7 @@ int HID_API_EXPORT hid_read_timeout(hid_device *dev, unsigned char *data, size_t
bytes_read = return_data(dev, data, length);
break;
}
-
+
/* If we're here, there was a spurious wake up
or the read thread was shutdown. Run the
loop again (ie: don't break). */
@@ -1039,7 +1039,7 @@ int HID_API_EXPORT hid_read(hid_device *dev, unsigned char *data, size_t length)
int HID_API_EXPORT hid_set_nonblocking(hid_device *dev, int nonblock)
{
dev->blocking = !nonblock;
-
+
return 0;
}
@@ -1063,14 +1063,14 @@ int HID_API_EXPORT hid_send_feature_report(hid_device *dev, const unsigned char
dev->interface,
(unsigned char *)data, length,
1000/*timeout millis*/);
-
+
if (res < 0)
return -1;
-
+
/* Account for the report ID */
if (skipped_report_id)
length++;
-
+
return length;
}
@@ -1094,13 +1094,13 @@ int HID_API_EXPORT hid_get_feature_report(hid_device *dev, unsigned char *data,
dev->interface,
(unsigned char *)data, length,
1000/*timeout millis*/);
-
+
if (res < 0)
return -1;
if (skipped_report_id)
res++;
-
+
return res;
}
@@ -1109,31 +1109,31 @@ void HID_API_EXPORT hid_close(hid_device *dev)
{
if (!dev)
return;
-
+
/* Cause read_thread() to stop. */
dev->shutdown_thread = 1;
libusb_cancel_transfer(dev->transfer);
/* Wait for read_thread() to end. */
pthread_join(dev->thread, NULL);
-
+
/* Clean up the Transfer objects allocated in read_thread(). */
free(dev->transfer->buffer);
libusb_free_transfer(dev->transfer);
-
+
/* release the interface */
libusb_release_interface(dev->device_handle, dev->interface);
-
+
/* Close the handle */
libusb_close(dev->device_handle);
-
+
/* Clear out the queue of received reports. */
pthread_mutex_lock(&dev->mutex);
while (dev->input_reports) {
return_data(dev, NULL, 0);
}
pthread_mutex_unlock(&dev->mutex);
-
+
free_hid_device(dev);
}
@@ -1316,7 +1316,7 @@ static struct lang_map_entry lang_map[] = {
LANG("Xhosa", "xh", 0x0434),
LANG("Yiddish", "yi", 0x043D),
LANG("Zulu", "zu", 0x0435),
- LANG(NULL, NULL, 0x0),
+ LANG(NULL, NULL, 0x0),
};
uint16_t get_usb_code_for_current_locale(void)
@@ -1324,16 +1324,16 @@ uint16_t get_usb_code_for_current_locale(void)
char *locale;
char search_string[64];
char *ptr;
-
+
/* Get the current locale. */
locale = setlocale(0, NULL);
if (!locale)
return 0x0;
-
+
/* Make a copy of the current locale string. */
strncpy(search_string, locale, sizeof(search_string));
search_string[sizeof(search_string)-1] = '\0';
-
+
/* Chop off the encoding part, and make it lower case. */
ptr = search_string;
while (*ptr) {
@@ -1350,10 +1350,10 @@ uint16_t get_usb_code_for_current_locale(void)
while (lang->string_code) {
if (!strcmp(lang->string_code, search_string)) {
return lang->usb_code;
- }
+ }
lang++;
}
-
+
/* There was no match. Find with just the language only. */
/* Chop off the variant. Chop it off at the '_'. */
ptr = search_string;
@@ -1365,18 +1365,18 @@ uint16_t get_usb_code_for_current_locale(void)
}
ptr++;
}
-
+
#if 0 // TODO: Do we need this?
/* Find the entry which matches the string code of our language. */
lang = lang_map;
while (lang->string_code) {
if (!strcmp(lang->string_code, search_string)) {
return lang->usb_code;
- }
+ }
lang++;
}
#endif
-
+
/* Found nothing. */
return 0x0;
}
diff --git a/gr-fcd/lib/hid/hidapi.h b/gr-fcd/lib/hid/hidapi.h
index 31b1cf206..8e55c8474 100644
--- a/gr-fcd/lib/hid/hidapi.h
+++ b/gr-fcd/lib/hid/hidapi.h
@@ -87,7 +87,7 @@ extern "C" {
needed. This function should be called at the beginning of
execution however, if there is a chance of HIDAPI handles
being opened by different threads simultaneously.
-
+
@ingroup API
@returns
diff --git a/gr-fcd/lib/hid/hidmac.c b/gr-fcd/lib/hid/hidmac.c
index 276541be1..d8c69a8e5 100644
--- a/gr-fcd/lib/hid/hidmac.c
+++ b/gr-fcd/lib/hid/hidmac.c
@@ -1,14 +1,14 @@
/*******************************************************
HIDAPI - Multi-Platform library for
communication with HID devices.
-
+
Alan Ott
Signal 11 Software
2010-07-03
Copyright 2010, All Rights Reserved.
-
+
At the discretion of the user of this library,
this software may be licensed under the terms of the
GNU Public License v3, a BSD-Style license, or the
@@ -51,7 +51,7 @@ static int pthread_barrier_init(pthread_barrier_t *barrier, const pthread_barrie
errno = EINVAL;
return -1;
}
-
+
if(pthread_mutex_init(&barrier->mutex, 0) < 0) {
return -1;
}
@@ -118,7 +118,7 @@ struct hid_device_ {
pthread_barrier_t barrier; /* Ensures correct startup sequence */
pthread_barrier_t shutdown_barrier; /* Ensures correct shutdown sequence */
int shutdown_thread;
-
+
hid_device *next;
};
@@ -148,7 +148,7 @@ static hid_device *new_hid_device(void)
pthread_cond_init(&dev->condition, NULL);
pthread_barrier_init(&dev->barrier, NULL, 2);
pthread_barrier_init(&dev->shutdown_barrier, NULL, 2);
-
+
/* Add the new record to the device_list. */
pthread_mutex_lock(&device_list_mutex);
if (!device_list)
@@ -164,7 +164,7 @@ static hid_device *new_hid_device(void)
}
}
pthread_mutex_unlock(&device_list_mutex);
-
+
return dev;
}
@@ -172,7 +172,7 @@ static void free_hid_device(hid_device *dev)
{
if (!dev)
return;
-
+
/* Delete any input reports still left over. */
struct input_report *rpt = dev->input_reports;
while (rpt) {
@@ -209,7 +209,7 @@ static void free_hid_device(hid_device *dev)
d->next = d->next->next;
break;
}
-
+
d = d->next;
}
}
@@ -234,7 +234,7 @@ static int32_t get_int_property(IOHIDDeviceRef device, CFStringRef key)
{
CFTypeRef ref;
int32_t value;
-
+
ref = IOHIDDeviceGetProperty(device, key);
if (ref) {
if (CFGetTypeID(ref) == CFNumberGetTypeID()) {
@@ -285,7 +285,7 @@ static int get_string_property(IOHIDDeviceRef device, CFStringRef prop, wchar_t
}
else
return 0;
-
+
}
static int get_string_property_utf8(IOHIDDeviceRef device, CFStringRef prop, char *buf, size_t len)
@@ -312,7 +312,7 @@ static int get_string_property_utf8(IOHIDDeviceRef device, CFStringRef prop, cha
}
else
return 0;
-
+
}
@@ -354,7 +354,7 @@ static int make_path(IOHIDDeviceRef device, char *buf, size_t len)
res = get_string_property_utf8(
device, CFSTR(kIOHIDTransportKey),
transport, sizeof(transport));
-
+
if (!res)
return -1;
@@ -363,8 +363,8 @@ static int make_path(IOHIDDeviceRef device, char *buf, size_t len)
res = snprintf(buf, len, "%s_%04hx_%04hx_%p",
transport, vid, pid, device);
-
-
+
+
buf[len-1] = '\0';
return res+1;
}
@@ -372,7 +372,7 @@ static int make_path(IOHIDDeviceRef device, char *buf, size_t len)
static int init_hid_manager(void)
{
IOReturn res;
-
+
/* Initialize all the HID Manager Objects */
hid_mgr = IOHIDManagerCreate(kCFAllocatorDefault, kIOHIDOptionsTypeNone);
IOHIDManagerSetDeviceMatching(hid_mgr, NULL);
@@ -400,7 +400,7 @@ int HID_API_EXPORT hid_exit(void)
CFRelease(hid_mgr);
hid_mgr = NULL;
}
-
+
return 0;
}
@@ -410,21 +410,21 @@ struct hid_device_info HID_API_EXPORT *hid_enumerate(unsigned short vendor_id,
struct hid_device_info *cur_dev = NULL;
CFIndex num_devices;
int i;
-
+
setlocale(LC_ALL,"");
/* Set up the HID Manager if it hasn't been done */
hid_init();
-
+
/* Get a list of the Devices */
CFSetRef device_set = IOHIDManagerCopyDevices(hid_mgr);
- /* Convert the list into a C array so we can iterate easily. */
+ /* Convert the list into a C array so we can iterate easily. */
num_devices = CFSetGetCount(device_set);
IOHIDDeviceRef *device_array = calloc(num_devices, sizeof(IOHIDDeviceRef));
CFSetGetValues(device_set, (const void **) device_array);
- /* Iterate over each device, making an entry for it. */
+ /* Iterate over each device, making an entry for it. */
for (i = 0; i < num_devices; i++) {
unsigned short dev_vid;
unsigned short dev_pid;
@@ -474,7 +474,7 @@ struct hid_device_info HID_API_EXPORT *hid_enumerate(unsigned short vendor_id,
cur_dev->manufacturer_string = dup_wcs(buf);
get_product_string(dev, buf, BUF_LEN);
cur_dev->product_string = dup_wcs(buf);
-
+
/* VID/PID */
cur_dev->vendor_id = dev_vid;
cur_dev->product_id = dev_pid;
@@ -486,10 +486,10 @@ struct hid_device_info HID_API_EXPORT *hid_enumerate(unsigned short vendor_id,
cur_dev->interface_number = -1;
}
}
-
+
free(device_array);
CFRelease(device_set);
-
+
return root;
}
@@ -514,7 +514,7 @@ hid_device * HID_API_EXPORT hid_open(unsigned short vendor_id, unsigned short pr
struct hid_device_info *devs, *cur_dev;
const char *path_to_open = NULL;
hid_device * handle = NULL;
-
+
devs = hid_enumerate(vendor_id, product_id);
cur_dev = devs;
while (cur_dev) {
@@ -540,7 +540,7 @@ hid_device * HID_API_EXPORT hid_open(unsigned short vendor_id, unsigned short pr
}
hid_free_enumeration(devs);
-
+
return handle;
}
@@ -555,7 +555,7 @@ static void hid_device_removal_callback(void *context, IOReturn result,
d->disconnected = 1;
CFRunLoopStop(d->run_loop);
}
-
+
d = d->next;
}
pthread_mutex_unlock(&device_list_mutex);
@@ -580,7 +580,7 @@ static void hid_report_callback(void *context, IOReturn result, void *sender,
/* Lock this section */
pthread_mutex_lock(&dev->mutex);
-
+
/* Attach the new report object to the end of the list. */
if (dev->input_reports == NULL) {
/* The list is empty. Put it at the root. */
@@ -623,7 +623,7 @@ static void perform_signal_callback(void *context)
static void *read_thread(void *param)
{
hid_device *dev = param;
-
+
/* Move the device's run loop to this thread. */
IOHIDDeviceScheduleWithRunLoop(dev->device_handle, CFRunLoopGetCurrent(), dev->run_loop_mode);
@@ -636,7 +636,7 @@ static void *read_thread(void *param)
ctx.perform = &perform_signal_callback;
dev->source = CFRunLoopSourceCreate(kCFAllocatorDefault, 0/*order*/, &ctx);
CFRunLoopAddSource(CFRunLoopGetCurrent(), dev->source, dev->run_loop_mode);
-
+
/* Store off the Run Loop so it can be stopped from hid_close()
and on device disconnection. */
dev->run_loop = CFRunLoopGetCurrent();
@@ -682,7 +682,7 @@ static void *read_thread(void *param)
if (!dev->disconnected) {
IOHIDDeviceClose(dev->device_handle, kIOHIDOptionsTypeNone);
}
-
+
/* Wait here until hid_close() is called and makes it past
the call to CFRunLoopWakeUp(). This thread still needs to
be valid when that function is called on the other thread. */
@@ -696,22 +696,22 @@ hid_device * HID_API_EXPORT hid_open_path(const char *path)
int i;
hid_device *dev = NULL;
CFIndex num_devices;
-
+
dev = new_hid_device();
/* Set up the HID Manager if it hasn't been done */
hid_init();
CFSetRef device_set = IOHIDManagerCopyDevices(hid_mgr);
-
+
num_devices = CFSetGetCount(device_set);
IOHIDDeviceRef *device_array = calloc(num_devices, sizeof(IOHIDDeviceRef));
- CFSetGetValues(device_set, (const void **) device_array);
+ CFSetGetValues(device_set, (const void **) device_array);
for (i = 0; i < num_devices; i++) {
char cbuf[BUF_LEN];
size_t len;
IOHIDDeviceRef os_dev = device_array[i];
-
+
len = make_path(os_dev, cbuf, sizeof(cbuf));
if (!strcmp(cbuf, path)) {
// Matched Paths. Open this Device.
@@ -722,29 +722,29 @@ hid_device * HID_API_EXPORT hid_open_path(const char *path)
free(device_array);
CFRelease(device_set);
dev->device_handle = os_dev;
-
+
/* Create the buffers for receiving data */
dev->max_input_report_len = (CFIndex) get_max_report_length(os_dev);
dev->input_report_buf = calloc(dev->max_input_report_len, sizeof(uint8_t));
-
+
/* Create the Run Loop Mode for this device.
printing the reference seems to work. */
sprintf(str, "HIDAPI_%p", os_dev);
- dev->run_loop_mode =
+ dev->run_loop_mode =
CFStringCreateWithCString(NULL, str, kCFStringEncodingASCII);
-
+
/* Attach the device to a Run Loop */
IOHIDDeviceRegisterInputReportCallback(
os_dev, dev->input_report_buf, dev->max_input_report_len,
&hid_report_callback, dev);
IOHIDManagerRegisterDeviceRemovalCallback(hid_mgr, hid_device_removal_callback, NULL);
-
+
/* Start the read thread */
pthread_create(&dev->thread, NULL, read_thread, dev);
/* Wait here for the read thread to be initialized. */
pthread_barrier_wait(&dev->barrier);
-
+
return dev;
}
else {
@@ -782,20 +782,20 @@ static int set_report(hid_device *dev, IOHIDReportType type, const unsigned char
data_to_send = data;
length_to_send = length;
}
-
+
if (!dev->disconnected) {
res = IOHIDDeviceSetReport(dev->device_handle,
type,
data[0], /* Report ID*/
data_to_send, length_to_send);
-
+
if (res == kIOReturnSuccess) {
return length;
}
else
return -1;
}
-
+
return -1;
}
@@ -830,11 +830,11 @@ static int cond_wait(const hid_device *dev, pthread_cond_t *cond, pthread_mutex_
data in the queue before returning, and if not, go back
to sleep. See the pthread_cond_timedwait() man page for
details. */
-
+
if (dev->shutdown_thread || dev->disconnected)
return -1;
}
-
+
return 0;
}
@@ -850,11 +850,11 @@ static int cond_timedwait(const hid_device *dev, pthread_cond_t *cond, pthread_m
data in the queue before returning, and if not, go back
to sleep. See the pthread_cond_timedwait() man page for
details. */
-
+
if (dev->shutdown_thread || dev->disconnected)
return -1;
}
-
+
return 0;
}
@@ -865,7 +865,7 @@ int HID_API_EXPORT hid_read_timeout(hid_device *dev, unsigned char *data, size_t
/* Lock the access to the report list. */
pthread_mutex_lock(&dev->mutex);
-
+
/* There's an input report queued up. Return it. */
if (dev->input_reports) {
/* Return the first one */
@@ -878,7 +878,7 @@ int HID_API_EXPORT hid_read_timeout(hid_device *dev, unsigned char *data, size_t
bytes_read = -1;
goto ret;
}
-
+
if (dev->shutdown_thread) {
/* This means the device has been closed (or there
has been an error. An error code of -1 should
@@ -888,7 +888,7 @@ int HID_API_EXPORT hid_read_timeout(hid_device *dev, unsigned char *data, size_t
}
/* There is no data. Go to sleep and wait for data. */
-
+
if (milliseconds == -1) {
/* Blocking */
int res;
@@ -913,7 +913,7 @@ int HID_API_EXPORT hid_read_timeout(hid_device *dev, unsigned char *data, size_t
ts.tv_sec++;
ts.tv_nsec -= 1000000000L;
}
-
+
res = cond_timedwait(dev, &dev->condition, &dev->mutex, &ts);
if (res == 0)
bytes_read = return_data(dev, data, length);
@@ -942,7 +942,7 @@ int HID_API_EXPORT hid_set_nonblocking(hid_device *dev, int nonblock)
{
/* All Nonblocking operation is handled by the library. */
dev->blocking = !nonblock;
-
+
return 0;
}
@@ -985,14 +985,14 @@ void HID_API_EXPORT hid_close(hid_device *dev)
IOHIDDeviceUnscheduleFromRunLoop(dev->device_handle, dev->run_loop, dev->run_loop_mode);
IOHIDDeviceScheduleWithRunLoop(dev->device_handle, CFRunLoopGetMain(), kCFRunLoopDefaultMode);
}
-
+
/* Cause read_thread() to stop. */
dev->shutdown_thread = 1;
-
+
/* Wake up the run thread's event loop so that the thread can exit. */
CFRunLoopSourceSignal(dev->source);
CFRunLoopWakeUp(dev->run_loop);
-
+
/* Notify the read thread that it can shut down now. */
pthread_barrier_wait(&dev->shutdown_barrier);
@@ -1005,7 +1005,7 @@ void HID_API_EXPORT hid_close(hid_device *dev)
if (!dev->disconnected) {
IOHIDDeviceClose(dev->device_handle, kIOHIDOptionsTypeNone);
}
-
+
/* Clear out the queue of received reports. */
pthread_mutex_lock(&dev->mutex);
while (dev->input_reports) {
@@ -1085,19 +1085,19 @@ int main(void)
{
IOHIDManagerRef mgr;
int i;
-
+
mgr = IOHIDManagerCreate(kCFAllocatorDefault, kIOHIDOptionsTypeNone);
IOHIDManagerSetDeviceMatching(mgr, NULL);
IOHIDManagerOpen(mgr, kIOHIDOptionsTypeNone);
-
+
CFSetRef device_set = IOHIDManagerCopyDevices(mgr);
-
+
CFIndex num_devices = CFSetGetCount(device_set);
IOHIDDeviceRef *device_array = calloc(num_devices, sizeof(IOHIDDeviceRef));
CFSetGetValues(device_set, (const void **) device_array);
-
+
setlocale(LC_ALL, "");
-
+
for (i = 0; i < num_devices; i++) {
IOHIDDeviceRef dev = device_array[i];
printf("Device: %p\n", dev);
@@ -1107,16 +1107,16 @@ int main(void)
char cbuf[256];
get_serial_number(dev, serial, 256);
-
+
printf(" Serial: %ls\n", serial);
printf(" Loc: %ld\n", get_location_id(dev));
get_transport(dev, buf, 256);
printf(" Trans: %ls\n", buf);
make_path(dev, cbuf, 256);
printf(" Path: %s\n", cbuf);
-
+
}
-
+
return 0;
}
#endif
diff --git a/gr-fcd/lib/hid/hidwin.c b/gr-fcd/lib/hid/hidwin.c
index 26d870fd8..5d34aadf4 100644
--- a/gr-fcd/lib/hid/hidwin.c
+++ b/gr-fcd/lib/hid/hidwin.c
@@ -8,7 +8,7 @@
8/22/2009
Copyright 2009, All Rights Reserved.
-
+
At the discretion of the user of this library,
this software may be licensed under the terms of the
GNU Public License v3, a BSD-Style license, or the
@@ -162,7 +162,7 @@ static void register_error(hid_device *device, const char *op)
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
(LPWSTR)&msg, 0/*sz*/,
NULL);
-
+
// Get rid of the CR and LF that FormatMessage() sticks at the
// end of the message. Thanks Microsoft!
ptr = msg;
@@ -174,7 +174,7 @@ static void register_error(hid_device *device, const char *op)
ptr++;
}
- // Store the message off in the Device entry so that
+ // Store the message off in the Device entry so that
// the hid_error() function can pick it up.
LocalFree(device->last_error_str);
device->last_error_str = msg;
@@ -284,9 +284,9 @@ struct hid_device_info HID_API_EXPORT * HID_API_CALL hid_enumerate(unsigned shor
// Get information for all the devices belonging to the HID class.
device_info_set = SetupDiGetClassDevsA(&InterfaceClassGuid, NULL, NULL, DIGCF_PRESENT | DIGCF_DEVICEINTERFACE);
-
+
// Iterate over each device in the HID class, looking for the right one.
-
+
for (;;) {
HANDLE write_handle = INVALID_HANDLE_VALUE;
DWORD required_size = 0;
@@ -297,7 +297,7 @@ struct hid_device_info HID_API_EXPORT * HID_API_CALL hid_enumerate(unsigned shor
&InterfaceClassGuid,
device_index,
&device_interface_data);
-
+
if (!res) {
// A return of FALSE from this function means that
// there are no more devices.
@@ -344,7 +344,7 @@ struct hid_device_info HID_API_EXPORT * HID_API_CALL hid_enumerate(unsigned shor
// Unable to open the device.
//register_error(dev, "CreateFile");
goto cont_close;
- }
+ }
// Get the Vendor ID and Product ID for this device.
@@ -354,7 +354,7 @@ struct hid_device_info HID_API_EXPORT * HID_API_CALL hid_enumerate(unsigned shor
// Check the VID/PID to see if we should add this
// device to the enumeration list.
- if ((vendor_id == 0x0 && product_id == 0x0) ||
+ if ((vendor_id == 0x0 && product_id == 0x0) ||
(attrib.VendorID == vendor_id && attrib.ProductID == product_id)) {
#define WSTR_LEN 512
@@ -388,7 +388,7 @@ struct hid_device_info HID_API_EXPORT * HID_API_CALL hid_enumerate(unsigned shor
HidD_FreePreparsedData(pp_data);
}
-
+
/* Fill out the record */
cur_dev->next = NULL;
str = device_interface_detail_data->DevicePath;
@@ -488,7 +488,7 @@ HID_API_EXPORT hid_device * HID_API_CALL hid_open(unsigned short vendor_id, unsi
struct hid_device_info *devs, *cur_dev;
const char *path_to_open = NULL;
hid_device *handle = NULL;
-
+
devs = hid_enumerate(vendor_id, product_id);
cur_dev = devs;
while (cur_dev) {
@@ -514,7 +514,7 @@ HID_API_EXPORT hid_device * HID_API_CALL hid_open(unsigned short vendor_id, unsi
}
hid_free_enumeration(devs);
-
+
return handle;
}
@@ -550,7 +550,7 @@ HID_API_EXPORT hid_device * HID_API_CALL hid_open_path(const char *path)
}
nt_res = HidP_GetCaps(pp_data, &caps);
if (nt_res != HIDP_STATUS_SUCCESS) {
- register_error(dev, "HidP_GetCaps");
+ register_error(dev, "HidP_GetCaps");
goto err_pp_data;
}
dev->input_report_length = caps.InputReportByteLength;
@@ -562,7 +562,7 @@ HID_API_EXPORT hid_device * HID_API_CALL hid_open_path(const char *path)
err_pp_data:
HidD_FreePreparsedData(pp_data);
-err:
+err:
CloseHandle(dev->device_handle);
free(dev);
return NULL;
@@ -577,7 +577,7 @@ int HID_API_EXPORT HID_API_CALL hid_write(hid_device *dev, const unsigned char *
memset(&ol, 0, sizeof(ol));
res = WriteFile(dev->device_handle, data, length, NULL, &ol);
-
+
if (!res) {
if (GetLastError() != ERROR_IO_PENDING) {
// WriteFile() failed. Return error.
@@ -612,7 +612,7 @@ int HID_API_EXPORT HID_API_CALL hid_read_timeout(hid_device *dev, unsigned char
dev->read_pending = TRUE;
ResetEvent(ev);
res = ReadFile(dev->device_handle, dev->read_buf, dev->input_report_length, &bytes_read, &dev->ol);
-
+
if (!res) {
if (GetLastError() != ERROR_IO_PENDING) {
// ReadFile() has failed.
@@ -638,7 +638,7 @@ int HID_API_EXPORT HID_API_CALL hid_read_timeout(hid_device *dev, unsigned char
// we are in non-blocking mode. Get the number of bytes read. The actual
// data has been copied to the data[] array which was passed to ReadFile().
res = GetOverlappedResult(dev->device_handle, &dev->ol, &bytes_read, TRUE/*wait*/);
-
+
// Set pending back to false, even if GetOverlappedResult() returned error.
dev->read_pending = FALSE;
@@ -656,13 +656,13 @@ int HID_API_EXPORT HID_API_CALL hid_read_timeout(hid_device *dev, unsigned char
memcpy(data, dev->read_buf, length);
}
}
-
+
end_of_function:
if (!res) {
register_error(dev, "GetOverlappedResult");
return -1;
}
-
+
return bytes_read;
}
@@ -805,7 +805,7 @@ HID_API_EXPORT const wchar_t * HID_API_CALL hid_error(hid_device *dev)
//#define PICPGM
//#define S11
#define P32
-#ifdef S11
+#ifdef S11
unsigned short VendorID = 0xa0a0;
unsigned short ProductID = 0x0001;
#endif
@@ -835,7 +835,7 @@ int __cdecl main(int argc, char* argv[])
memset(buf,0x00,sizeof(buf));
buf[0] = 0;
buf[1] = 0x81;
-
+
// Open the device.
int handle = open(VendorID, ProductID, L"12345");
diff --git a/gr-fcd/python/CMakeLists.txt b/gr-fcd/python/CMakeLists.txt
index 1c5dde35f..55233d256 100644
--- a/gr-fcd/python/CMakeLists.txt
+++ b/gr-fcd/python/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2012 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,
diff --git a/gr-fcd/python/__init__.py b/gr-fcd/python/__init__.py
index 9e573450f..daf9c890d 100644
--- a/gr-fcd/python/__init__.py
+++ b/gr-fcd/python/__init__.py
@@ -1,23 +1,23 @@
#
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
'''
This is the gr-fcd package. This package provides a GNU Radio
diff --git a/gr-fcd/python/qa_fcd.py b/gr-fcd/python/qa_fcd.py
index f2546ce92..0993cab42 100755
--- a/gr-fcd/python/qa_fcd.py
+++ b/gr-fcd/python/qa_fcd.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2012 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
import fcd_swig
@@ -34,6 +34,6 @@ class test_fcd(gr_unittest.TestCase):
def test_000_nop (self):
"""Just see if we can import the module..."""
pass
-
+
if __name__ == '__main__':
gr_unittest.run(test_fcd, "test_fcd.xml")
diff --git a/gr-fcd/swig/fcd_swig.i b/gr-fcd/swig/fcd_swig.i
index d75e57b85..f4ad1b320 100644
--- a/gr-fcd/swig/fcd_swig.i
+++ b/gr-fcd/swig/fcd_swig.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2012 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,
diff --git a/gr-howto-write-a-block/CMakeLists.txt b/gr-howto-write-a-block/CMakeLists.txt
index cb5a0fe2e..5d2477f89 100644
--- a/gr-howto-write-a-block/CMakeLists.txt
+++ b/gr-howto-write-a-block/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gr-howto-write-a-block/apps/CMakeLists.txt b/gr-howto-write-a-block/apps/CMakeLists.txt
index a736fb2d0..875b6b4ce 100644
--- a/gr-howto-write-a-block/apps/CMakeLists.txt
+++ b/gr-howto-write-a-block/apps/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gr-howto-write-a-block/cmake/Modules/GrMiscUtils.cmake b/gr-howto-write-a-block/cmake/Modules/GrMiscUtils.cmake
index 0e1f40027..9331d5deb 100644
--- a/gr-howto-write-a-block/cmake/Modules/GrMiscUtils.cmake
+++ b/gr-howto-write-a-block/cmake/Modules/GrMiscUtils.cmake
@@ -1,17 +1,17 @@
# Copyright 2010-2011 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,
diff --git a/gr-howto-write-a-block/cmake/Modules/GrPlatform.cmake b/gr-howto-write-a-block/cmake/Modules/GrPlatform.cmake
index ce2e15fef..a2e4f3b34 100644
--- a/gr-howto-write-a-block/cmake/Modules/GrPlatform.cmake
+++ b/gr-howto-write-a-block/cmake/Modules/GrPlatform.cmake
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gr-howto-write-a-block/cmake/Modules/GrSwig.cmake b/gr-howto-write-a-block/cmake/Modules/GrSwig.cmake
index 47e18085b..6ba5ee3a5 100644
--- a/gr-howto-write-a-block/cmake/Modules/GrSwig.cmake
+++ b/gr-howto-write-a-block/cmake/Modules/GrSwig.cmake
@@ -1,17 +1,17 @@
# Copyright 2010-2011 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,
diff --git a/gr-howto-write-a-block/cmake/Modules/GrTest.cmake b/gr-howto-write-a-block/cmake/Modules/GrTest.cmake
index 9ec3141f9..6174c034e 100644
--- a/gr-howto-write-a-block/cmake/Modules/GrTest.cmake
+++ b/gr-howto-write-a-block/cmake/Modules/GrTest.cmake
@@ -1,17 +1,17 @@
# Copyright 2010-2011 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,
diff --git a/gr-howto-write-a-block/docs/CMakeLists.txt b/gr-howto-write-a-block/docs/CMakeLists.txt
index 1491898a1..f16fbf6db 100644
--- a/gr-howto-write-a-block/docs/CMakeLists.txt
+++ b/gr-howto-write-a-block/docs/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gr-howto-write-a-block/docs/doxygen/CMakeLists.txt b/gr-howto-write-a-block/docs/doxygen/CMakeLists.txt
index 7826630e8..1b4479929 100644
--- a/gr-howto-write-a-block/docs/doxygen/CMakeLists.txt
+++ b/gr-howto-write-a-block/docs/doxygen/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gr-howto-write-a-block/docs/doxygen/Doxyfile.in b/gr-howto-write-a-block/docs/doxygen/Doxyfile.in
index 7105c0f39..cb6a913bb 100644
--- a/gr-howto-write-a-block/docs/doxygen/Doxyfile.in
+++ b/gr-howto-write-a-block/docs/doxygen/Doxyfile.in
@@ -14,204 +14,204 @@
# Project related configuration options
#---------------------------------------------------------------------------
-# This tag specifies the encoding used for all characters in the config file
-# that follow. The default is UTF-8 which is also the encoding used for all
-# text before the first occurrence of this tag. Doxygen uses libiconv (or the
-# iconv built into libc) for the transcoding. See
+# This tag specifies the encoding used for all characters in the config file
+# that follow. The default is UTF-8 which is also the encoding used for all
+# text before the first occurrence of this tag. Doxygen uses libiconv (or the
+# iconv built into libc) for the transcoding. See
# http://www.gnu.org/software/libiconv for the list of possible encodings.
DOXYFILE_ENCODING = UTF-8
-# The PROJECT_NAME tag is a single word (or a sequence of words surrounded
+# The PROJECT_NAME tag is a single word (or a sequence of words surrounded
# by quotes) that should identify the project.
PROJECT_NAME = "GNU Radio's HOWTO Package"
-# The PROJECT_NUMBER tag can be used to enter a project or revision number.
-# This could be handy for archiving the generated documentation or
+# The PROJECT_NUMBER tag can be used to enter a project or revision number.
+# This could be handy for archiving the generated documentation or
# if some version control system is used.
-PROJECT_NUMBER =
+PROJECT_NUMBER =
-# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
-# base path where the generated documentation will be put.
-# If a relative path is entered, it will be relative to the location
+# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
+# base path where the generated documentation will be put.
+# If a relative path is entered, it will be relative to the location
# where doxygen was started. If left blank the current directory will be used.
-OUTPUT_DIRECTORY =
+OUTPUT_DIRECTORY =
-# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create
-# 4096 sub-directories (in 2 levels) under the output directory of each output
-# format and will distribute the generated files over these directories.
-# Enabling this option can be useful when feeding doxygen a huge amount of
-# source files, where putting all generated files in the same directory would
+# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create
+# 4096 sub-directories (in 2 levels) under the output directory of each output
+# format and will distribute the generated files over these directories.
+# Enabling this option can be useful when feeding doxygen a huge amount of
+# source files, where putting all generated files in the same directory would
# otherwise cause performance problems for the file system.
CREATE_SUBDIRS = NO
-# The OUTPUT_LANGUAGE tag is used to specify the language in which all
-# documentation generated by doxygen is written. Doxygen will use this
-# information to generate all constant output in the proper language.
-# The default language is English, other supported languages are:
-# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional,
-# Croatian, Czech, Danish, Dutch, Farsi, Finnish, French, German, Greek,
-# Hungarian, Italian, Japanese, Japanese-en (Japanese with English messages),
-# Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, Polish,
-# Portuguese, Romanian, Russian, Serbian, Serbian-Cyrilic, Slovak, Slovene,
+# The OUTPUT_LANGUAGE tag is used to specify the language in which all
+# documentation generated by doxygen is written. Doxygen will use this
+# information to generate all constant output in the proper language.
+# The default language is English, other supported languages are:
+# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional,
+# Croatian, Czech, Danish, Dutch, Farsi, Finnish, French, German, Greek,
+# Hungarian, Italian, Japanese, Japanese-en (Japanese with English messages),
+# Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, Polish,
+# Portuguese, Romanian, Russian, Serbian, Serbian-Cyrilic, Slovak, Slovene,
# Spanish, Swedish, and Ukrainian.
OUTPUT_LANGUAGE = English
-# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will
-# include brief member descriptions after the members that are listed in
-# the file and class documentation (similar to JavaDoc).
+# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will
+# include brief member descriptions after the members that are listed in
+# the file and class documentation (similar to JavaDoc).
# Set to NO to disable this.
BRIEF_MEMBER_DESC = YES
-# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend
-# the brief description of a member or function before the detailed description.
-# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the
+# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend
+# the brief description of a member or function before the detailed description.
+# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the
# brief descriptions will be completely suppressed.
REPEAT_BRIEF = YES
-# This tag implements a quasi-intelligent brief description abbreviator
-# that is used to form the text in various listings. Each string
-# in this list, if found as the leading text of the brief description, will be
-# stripped from the text and the result after processing the whole list, is
-# used as the annotated text. Otherwise, the brief description is used as-is.
-# If left blank, the following values are used ("$name" is automatically
-# replaced with the name of the entity): "The $name class" "The $name widget"
-# "The $name file" "is" "provides" "specifies" "contains"
+# This tag implements a quasi-intelligent brief description abbreviator
+# that is used to form the text in various listings. Each string
+# in this list, if found as the leading text of the brief description, will be
+# stripped from the text and the result after processing the whole list, is
+# used as the annotated text. Otherwise, the brief description is used as-is.
+# If left blank, the following values are used ("$name" is automatically
+# replaced with the name of the entity): "The $name class" "The $name widget"
+# "The $name file" "is" "provides" "specifies" "contains"
# "represents" "a" "an" "the"
-ABBREVIATE_BRIEF =
+ABBREVIATE_BRIEF =
-# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then
-# Doxygen will generate a detailed section even if there is only a brief
+# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then
+# Doxygen will generate a detailed section even if there is only a brief
# description.
ALWAYS_DETAILED_SEC = YES
-# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all
-# inherited members of a class in the documentation of that class as if those
-# members were ordinary class members. Constructors, destructors and assignment
+# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all
+# inherited members of a class in the documentation of that class as if those
+# members were ordinary class members. Constructors, destructors and assignment
# operators of the base classes will not be shown.
INLINE_INHERITED_MEMB = NO
-# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full
-# path before files name in the file list and in the header files. If set
+# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full
+# path before files name in the file list and in the header files. If set
# to NO the shortest path that makes the file name unique will be used.
FULL_PATH_NAMES = NO
-# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag
-# can be used to strip a user-defined part of the path. Stripping is
-# only done if one of the specified strings matches the left-hand part of
-# the path. The tag can be used to show relative paths in the file list.
-# If left blank the directory from which doxygen is run is used as the
+# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag
+# can be used to strip a user-defined part of the path. Stripping is
+# only done if one of the specified strings matches the left-hand part of
+# the path. The tag can be used to show relative paths in the file list.
+# If left blank the directory from which doxygen is run is used as the
# path to strip.
-STRIP_FROM_PATH =
+STRIP_FROM_PATH =
-# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of
-# the path mentioned in the documentation of a class, which tells
-# the reader which header file to include in order to use a class.
-# If left blank only the name of the header file containing the class
-# definition is used. Otherwise one should specify the include paths that
+# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of
+# the path mentioned in the documentation of a class, which tells
+# the reader which header file to include in order to use a class.
+# If left blank only the name of the header file containing the class
+# definition is used. Otherwise one should specify the include paths that
# are normally passed to the compiler using the -I flag.
-STRIP_FROM_INC_PATH =
+STRIP_FROM_INC_PATH =
-# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter
-# (but less readable) file names. This can be useful is your file systems
+# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter
+# (but less readable) file names. This can be useful is your file systems
# doesn't support long names like on DOS, Mac, or CD-ROM.
SHORT_NAMES = NO
-# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen
-# will interpret the first line (until the first dot) of a JavaDoc-style
-# comment as the brief description. If set to NO, the JavaDoc
-# comments will behave just like regular Qt-style comments
+# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen
+# will interpret the first line (until the first dot) of a JavaDoc-style
+# comment as the brief description. If set to NO, the JavaDoc
+# comments will behave just like regular Qt-style comments
# (thus requiring an explicit @brief command for a brief description.)
JAVADOC_AUTOBRIEF = NO
-# If the QT_AUTOBRIEF tag is set to YES then Doxygen will
-# interpret the first line (until the first dot) of a Qt-style
-# comment as the brief description. If set to NO, the comments
-# will behave just like regular Qt-style comments (thus requiring
+# If the QT_AUTOBRIEF tag is set to YES then Doxygen will
+# interpret the first line (until the first dot) of a Qt-style
+# comment as the brief description. If set to NO, the comments
+# will behave just like regular Qt-style comments (thus requiring
# an explicit \brief command for a brief description.)
QT_AUTOBRIEF = NO
-# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen
-# treat a multi-line C++ special comment block (i.e. a block of //! or ///
-# comments) as a brief description. This used to be the default behaviour.
-# The new default is to treat a multi-line C++ comment block as a detailed
+# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen
+# treat a multi-line C++ special comment block (i.e. a block of //! or ///
+# comments) as a brief description. This used to be the default behaviour.
+# The new default is to treat a multi-line C++ comment block as a detailed
# description. Set this tag to YES if you prefer the old behaviour instead.
MULTILINE_CPP_IS_BRIEF = YES
-# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented
-# member inherits the documentation from any documented member that it
+# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented
+# member inherits the documentation from any documented member that it
# re-implements.
INHERIT_DOCS = YES
-# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce
-# a new page for each member. If set to NO, the documentation of a member will
+# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce
+# a new page for each member. If set to NO, the documentation of a member will
# be part of the file/class/namespace that contains it.
SEPARATE_MEMBER_PAGES = NO
-# The TAB_SIZE tag can be used to set the number of spaces in a tab.
+# The TAB_SIZE tag can be used to set the number of spaces in a tab.
# Doxygen uses this value to replace tabs by spaces in code fragments.
TAB_SIZE = 8
-# This tag can be used to specify a number of aliases that acts
-# as commands in the documentation. An alias has the form "name=value".
-# For example adding "sideeffect=\par Side Effects:\n" will allow you to
-# put the command \sideeffect (or @sideeffect) in the documentation, which
-# will result in a user-defined paragraph with heading "Side Effects:".
+# This tag can be used to specify a number of aliases that acts
+# as commands in the documentation. An alias has the form "name=value".
+# For example adding "sideeffect=\par Side Effects:\n" will allow you to
+# put the command \sideeffect (or @sideeffect) in the documentation, which
+# will result in a user-defined paragraph with heading "Side Effects:".
# You can put \n's in the value part of an alias to insert newlines.
-ALIASES =
+ALIASES =
-# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C
-# sources only. Doxygen will then generate output that is more tailored for C.
-# For instance, some of the names that are used will be different. The list
+# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C
+# sources only. Doxygen will then generate output that is more tailored for C.
+# For instance, some of the names that are used will be different. The list
# of all members will be omitted, etc.
OPTIMIZE_OUTPUT_FOR_C = NO
-# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java
-# sources only. Doxygen will then generate output that is more tailored for
-# Java. For instance, namespaces will be presented as packages, qualified
+# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java
+# sources only. Doxygen will then generate output that is more tailored for
+# Java. For instance, namespaces will be presented as packages, qualified
# scopes will look different, etc.
OPTIMIZE_OUTPUT_JAVA = NO
-# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran
-# sources only. Doxygen will then generate output that is more tailored for
+# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran
+# sources only. Doxygen will then generate output that is more tailored for
# Fortran.
OPTIMIZE_FOR_FORTRAN = NO
-# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL
-# sources. Doxygen will then generate output that is tailored for
+# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL
+# sources. Doxygen will then generate output that is tailored for
# VHDL.
OPTIMIZE_OUTPUT_VHDL = NO
-# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want
-# to include (a tag file for) the STL sources as input, then you should
-# set this tag to YES in order to let doxygen match functions declarations and
-# definitions whose arguments contain STL classes (e.g. func(std::string); v.s.
-# func(std::string) {}). This also make the inheritance and collaboration
+# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want
+# to include (a tag file for) the STL sources as input, then you should
+# set this tag to YES in order to let doxygen match functions declarations and
+# definitions whose arguments contain STL classes (e.g. func(std::string); v.s.
+# func(std::string) {}). This also make the inheritance and collaboration
# diagrams that involve STL classes more complete and accurate.
BUILTIN_STL_SUPPORT = YES
@@ -221,58 +221,58 @@ BUILTIN_STL_SUPPORT = YES
CPP_CLI_SUPPORT = NO
-# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only.
-# Doxygen will parse them like normal C++ but will assume all classes use public
+# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only.
+# Doxygen will parse them like normal C++ but will assume all classes use public
# instead of private inheritance when no explicit protection keyword is present.
SIP_SUPPORT = NO
-# For Microsoft's IDL there are propget and propput attributes to indicate getter
-# and setter methods for a property. Setting this option to YES (the default)
-# will make doxygen to replace the get and set methods by a property in the
-# documentation. This will only work if the methods are indeed getting or
-# setting a simple type. If this is not the case, or you want to show the
+# For Microsoft's IDL there are propget and propput attributes to indicate getter
+# and setter methods for a property. Setting this option to YES (the default)
+# will make doxygen to replace the get and set methods by a property in the
+# documentation. This will only work if the methods are indeed getting or
+# setting a simple type. If this is not the case, or you want to show the
# methods anyway, you should set this option to NO.
IDL_PROPERTY_SUPPORT = YES
-# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC
-# tag is set to YES, then doxygen will reuse the documentation of the first
-# member in the group (if any) for the other members of the group. By default
+# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC
+# tag is set to YES, then doxygen will reuse the documentation of the first
+# member in the group (if any) for the other members of the group. By default
# all members of a group must be documented explicitly.
DISTRIBUTE_GROUP_DOC = NO
-# Set the SUBGROUPING tag to YES (the default) to allow class member groups of
-# the same type (for instance a group of public functions) to be put as a
-# subgroup of that type (e.g. under the Public Functions section). Set it to
-# NO to prevent subgrouping. Alternatively, this can be done per class using
+# Set the SUBGROUPING tag to YES (the default) to allow class member groups of
+# the same type (for instance a group of public functions) to be put as a
+# subgroup of that type (e.g. under the Public Functions section). Set it to
+# NO to prevent subgrouping. Alternatively, this can be done per class using
# the \nosubgrouping command.
SUBGROUPING = YES
-# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum
-# is documented as struct, union, or enum with the name of the typedef. So
-# typedef struct TypeS {} TypeT, will appear in the documentation as a struct
-# with name TypeT. When disabled the typedef will appear as a member of a file,
-# namespace, or class. And the struct will be named TypeS. This can typically
-# be useful for C code in case the coding convention dictates that all compound
+# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum
+# is documented as struct, union, or enum with the name of the typedef. So
+# typedef struct TypeS {} TypeT, will appear in the documentation as a struct
+# with name TypeT. When disabled the typedef will appear as a member of a file,
+# namespace, or class. And the struct will be named TypeS. This can typically
+# be useful for C code in case the coding convention dictates that all compound
# types are typedef'ed and only the typedef is referenced, never the tag name.
TYPEDEF_HIDES_STRUCT = NO
-# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to
+# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to
# determine which symbols to keep in memory and which to flush to disk.
# When the cache is full, less often used symbols will be written to disk.
-# For small to medium size projects (<1000 input files) the default value is
-# probably good enough. For larger projects a too small cache size can cause
-# doxygen to be busy swapping symbols to and from disk most of the time
-# causing a significant performance penality.
-# If the system has enough physical memory increasing the cache will improve the
-# performance by keeping more symbols in memory. Note that the value works on
-# a logarithmic scale so increasing the size by one will rougly double the
-# memory usage. The cache size is given by this formula:
-# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0,
+# For small to medium size projects (<1000 input files) the default value is
+# probably good enough. For larger projects a too small cache size can cause
+# doxygen to be busy swapping symbols to and from disk most of the time
+# causing a significant performance penality.
+# If the system has enough physical memory increasing the cache will improve the
+# performance by keeping more symbols in memory. Note that the value works on
+# a logarithmic scale so increasing the size by one will rougly double the
+# memory usage. The cache size is given by this formula:
+# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0,
# corresponding to a cache size of 2^16 = 65536 symbols
SYMBOL_CACHE_SIZE = 4
@@ -281,305 +281,305 @@ SYMBOL_CACHE_SIZE = 4
# Build related configuration options
#---------------------------------------------------------------------------
-# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in
-# documentation are documented, even if no documentation was available.
-# Private class members and static file members will be hidden unless
+# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in
+# documentation are documented, even if no documentation was available.
+# Private class members and static file members will be hidden unless
# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES
EXTRACT_ALL = YES
-# If the EXTRACT_PRIVATE tag is set to YES all private members of a class
+# If the EXTRACT_PRIVATE tag is set to YES all private members of a class
# will be included in the documentation.
EXTRACT_PRIVATE = NO
-# If the EXTRACT_STATIC tag is set to YES all static members of a file
+# If the EXTRACT_STATIC tag is set to YES all static members of a file
# will be included in the documentation.
EXTRACT_STATIC = YES
-# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs)
-# defined locally in source files will be included in the documentation.
+# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs)
+# defined locally in source files will be included in the documentation.
# If set to NO only classes defined in header files are included.
EXTRACT_LOCAL_CLASSES = YES
-# This flag is only useful for Objective-C code. When set to YES local
-# methods, which are defined in the implementation section but not in
-# the interface are included in the documentation.
+# This flag is only useful for Objective-C code. When set to YES local
+# methods, which are defined in the implementation section but not in
+# the interface are included in the documentation.
# If set to NO (the default) only methods in the interface are included.
EXTRACT_LOCAL_METHODS = NO
-# If this flag is set to YES, the members of anonymous namespaces will be
-# extracted and appear in the documentation as a namespace called
-# 'anonymous_namespace{file}', where file will be replaced with the base
-# name of the file that contains the anonymous namespace. By default
+# If this flag is set to YES, the members of anonymous namespaces will be
+# extracted and appear in the documentation as a namespace called
+# 'anonymous_namespace{file}', where file will be replaced with the base
+# name of the file that contains the anonymous namespace. By default
# anonymous namespace are hidden.
EXTRACT_ANON_NSPACES = NO
-# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all
-# undocumented members of documented classes, files or namespaces.
-# If set to NO (the default) these members will be included in the
-# various overviews, but no documentation section is generated.
+# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all
+# undocumented members of documented classes, files or namespaces.
+# If set to NO (the default) these members will be included in the
+# various overviews, but no documentation section is generated.
# This option has no effect if EXTRACT_ALL is enabled.
HIDE_UNDOC_MEMBERS = NO
-# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all
-# undocumented classes that are normally visible in the class hierarchy.
-# If set to NO (the default) these classes will be included in the various
+# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all
+# undocumented classes that are normally visible in the class hierarchy.
+# If set to NO (the default) these classes will be included in the various
# overviews. This option has no effect if EXTRACT_ALL is enabled.
HIDE_UNDOC_CLASSES = NO
-# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all
-# friend (class|struct|union) declarations.
-# If set to NO (the default) these declarations will be included in the
+# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all
+# friend (class|struct|union) declarations.
+# If set to NO (the default) these declarations will be included in the
# documentation.
HIDE_FRIEND_COMPOUNDS = NO
-# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any
-# documentation blocks found inside the body of a function.
-# If set to NO (the default) these blocks will be appended to the
+# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any
+# documentation blocks found inside the body of a function.
+# If set to NO (the default) these blocks will be appended to the
# function's detailed documentation block.
HIDE_IN_BODY_DOCS = NO
-# The INTERNAL_DOCS tag determines if documentation
-# that is typed after a \internal command is included. If the tag is set
-# to NO (the default) then the documentation will be excluded.
+# The INTERNAL_DOCS tag determines if documentation
+# that is typed after a \internal command is included. If the tag is set
+# to NO (the default) then the documentation will be excluded.
# Set it to YES to include the internal documentation.
INTERNAL_DOCS = NO
-# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate
-# file names in lower-case letters. If set to YES upper-case letters are also
-# allowed. This is useful if you have classes or files whose names only differ
-# in case and if your file system supports case sensitive file names. Windows
+# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate
+# file names in lower-case letters. If set to YES upper-case letters are also
+# allowed. This is useful if you have classes or files whose names only differ
+# in case and if your file system supports case sensitive file names. Windows
# and Mac users are advised to set this option to NO.
CASE_SENSE_NAMES = YES
-# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen
-# will show members with their full class and namespace scopes in the
+# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen
+# will show members with their full class and namespace scopes in the
# documentation. If set to YES the scope will be hidden.
HIDE_SCOPE_NAMES = NO
-# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen
-# will put a list of the files that are included by a file in the documentation
+# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen
+# will put a list of the files that are included by a file in the documentation
# of that file.
SHOW_INCLUDE_FILES = YES
-# If the INLINE_INFO tag is set to YES (the default) then a tag [inline]
+# If the INLINE_INFO tag is set to YES (the default) then a tag [inline]
# is inserted in the documentation for inline members.
INLINE_INFO = YES
-# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen
-# will sort the (detailed) documentation of file and class members
-# alphabetically by member name. If set to NO the members will appear in
+# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen
+# will sort the (detailed) documentation of file and class members
+# alphabetically by member name. If set to NO the members will appear in
# declaration order.
SORT_MEMBER_DOCS = YES
-# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the
-# brief documentation of file, namespace and class members alphabetically
-# by member name. If set to NO (the default) the members will appear in
+# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the
+# brief documentation of file, namespace and class members alphabetically
+# by member name. If set to NO (the default) the members will appear in
# declaration order.
SORT_BRIEF_DOCS = NO
-# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the
-# hierarchy of group names into alphabetical order. If set to NO (the default)
+# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the
+# hierarchy of group names into alphabetical order. If set to NO (the default)
# the group names will appear in their defined order.
SORT_GROUP_NAMES = NO
-# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be
-# sorted by fully-qualified names, including namespaces. If set to
-# NO (the default), the class list will be sorted only by class name,
-# not including the namespace part.
+# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be
+# sorted by fully-qualified names, including namespaces. If set to
+# NO (the default), the class list will be sorted only by class name,
+# not including the namespace part.
# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES.
-# Note: This option applies only to the class list, not to the
+# Note: This option applies only to the class list, not to the
# alphabetical list.
SORT_BY_SCOPE_NAME = NO
-# The GENERATE_TODOLIST tag can be used to enable (YES) or
-# disable (NO) the todo list. This list is created by putting \todo
+# The GENERATE_TODOLIST tag can be used to enable (YES) or
+# disable (NO) the todo list. This list is created by putting \todo
# commands in the documentation.
GENERATE_TODOLIST = NO
-# The GENERATE_TESTLIST tag can be used to enable (YES) or
-# disable (NO) the test list. This list is created by putting \test
+# The GENERATE_TESTLIST tag can be used to enable (YES) or
+# disable (NO) the test list. This list is created by putting \test
# commands in the documentation.
GENERATE_TESTLIST = NO
-# The GENERATE_BUGLIST tag can be used to enable (YES) or
-# disable (NO) the bug list. This list is created by putting \bug
+# The GENERATE_BUGLIST tag can be used to enable (YES) or
+# disable (NO) the bug list. This list is created by putting \bug
# commands in the documentation.
GENERATE_BUGLIST = NO
-# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or
-# disable (NO) the deprecated list. This list is created by putting
+# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or
+# disable (NO) the deprecated list. This list is created by putting
# \deprecated commands in the documentation.
GENERATE_DEPRECATEDLIST= NO
-# The ENABLED_SECTIONS tag can be used to enable conditional
+# The ENABLED_SECTIONS tag can be used to enable conditional
# documentation sections, marked by \if sectionname ... \endif.
-ENABLED_SECTIONS =
+ENABLED_SECTIONS =
-# The MAX_INITIALIZER_LINES tag determines the maximum number of lines
-# the initial value of a variable or define consists of for it to appear in
-# the documentation. If the initializer consists of more lines than specified
-# here it will be hidden. Use a value of 0 to hide initializers completely.
-# The appearance of the initializer of individual variables and defines in the
-# documentation can be controlled using \showinitializer or \hideinitializer
+# The MAX_INITIALIZER_LINES tag determines the maximum number of lines
+# the initial value of a variable or define consists of for it to appear in
+# the documentation. If the initializer consists of more lines than specified
+# here it will be hidden. Use a value of 0 to hide initializers completely.
+# The appearance of the initializer of individual variables and defines in the
+# documentation can be controlled using \showinitializer or \hideinitializer
# command in the documentation regardless of this setting.
MAX_INITIALIZER_LINES = 30
-# Set the SHOW_USED_FILES tag to NO to disable the list of files generated
-# at the bottom of the documentation of classes and structs. If set to YES the
+# Set the SHOW_USED_FILES tag to NO to disable the list of files generated
+# at the bottom of the documentation of classes and structs. If set to YES the
# list will mention the files that were used to generate the documentation.
SHOW_USED_FILES = YES
-# If the sources in your project are distributed over multiple directories
-# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy
+# If the sources in your project are distributed over multiple directories
+# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy
# in the documentation. The default is NO.
SHOW_DIRECTORIES = NO
# Set the SHOW_FILES tag to NO to disable the generation of the Files page.
-# This will remove the Files entry from the Quick Index and from the
+# This will remove the Files entry from the Quick Index and from the
# Folder Tree View (if specified). The default is YES.
SHOW_FILES = YES
-# Set the SHOW_NAMESPACES tag to NO to disable the generation of the
+# Set the SHOW_NAMESPACES tag to NO to disable the generation of the
# Namespaces page. This will remove the Namespaces entry from the Quick Index
# and from the Folder Tree View (if specified). The default is YES.
SHOW_NAMESPACES = NO
-# The FILE_VERSION_FILTER tag can be used to specify a program or script that
-# doxygen should invoke to get the current version for each file (typically from
-# the version control system). Doxygen will invoke the program by executing (via
-# popen()) the command <command> <input-file>, where <command> is the value of
-# the FILE_VERSION_FILTER tag, and <input-file> is the name of an input file
-# provided by doxygen. Whatever the program writes to standard output
+# The FILE_VERSION_FILTER tag can be used to specify a program or script that
+# doxygen should invoke to get the current version for each file (typically from
+# the version control system). Doxygen will invoke the program by executing (via
+# popen()) the command <command> <input-file>, where <command> is the value of
+# the FILE_VERSION_FILTER tag, and <input-file> is the name of an input file
+# provided by doxygen. Whatever the program writes to standard output
# is used as the file version. See the manual for examples.
-FILE_VERSION_FILTER =
+FILE_VERSION_FILTER =
-# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed by
-# doxygen. The layout file controls the global structure of the generated output files
-# in an output format independent way. The create the layout file that represents
-# doxygen's defaults, run doxygen with the -l option. You can optionally specify a
-# file name after the option, if omitted DoxygenLayout.xml will be used as the name
+# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed by
+# doxygen. The layout file controls the global structure of the generated output files
+# in an output format independent way. The create the layout file that represents
+# doxygen's defaults, run doxygen with the -l option. You can optionally specify a
+# file name after the option, if omitted DoxygenLayout.xml will be used as the name
# of the layout file.
-LAYOUT_FILE =
+LAYOUT_FILE =
#---------------------------------------------------------------------------
# configuration options related to warning and progress messages
#---------------------------------------------------------------------------
-# The QUIET tag can be used to turn on/off the messages that are generated
+# The QUIET tag can be used to turn on/off the messages that are generated
# by doxygen. Possible values are YES and NO. If left blank NO is used.
QUIET = YES
-# The WARNINGS tag can be used to turn on/off the warning messages that are
-# generated by doxygen. Possible values are YES and NO. If left blank
+# The WARNINGS tag can be used to turn on/off the warning messages that are
+# generated by doxygen. Possible values are YES and NO. If left blank
# NO is used.
WARNINGS = YES
-# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings
-# for undocumented members. If EXTRACT_ALL is set to YES then this flag will
+# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings
+# for undocumented members. If EXTRACT_ALL is set to YES then this flag will
# automatically be disabled.
WARN_IF_UNDOCUMENTED = YES
-# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for
-# potential errors in the documentation, such as not documenting some
-# parameters in a documented function, or documenting parameters that
+# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for
+# potential errors in the documentation, such as not documenting some
+# parameters in a documented function, or documenting parameters that
# don't exist or using markup commands wrongly.
WARN_IF_DOC_ERROR = YES
-# This WARN_NO_PARAMDOC option can be abled to get warnings for
-# functions that are documented, but have no documentation for their parameters
-# or return value. If set to NO (the default) doxygen will only warn about
-# wrong or incomplete parameter documentation, but not about the absence of
+# This WARN_NO_PARAMDOC option can be abled to get warnings for
+# functions that are documented, but have no documentation for their parameters
+# or return value. If set to NO (the default) doxygen will only warn about
+# wrong or incomplete parameter documentation, but not about the absence of
# documentation.
WARN_NO_PARAMDOC = NO
-# The WARN_FORMAT tag determines the format of the warning messages that
-# doxygen can produce. The string should contain the $file, $line, and $text
-# tags, which will be replaced by the file and line number from which the
-# warning originated and the warning text. Optionally the format may contain
-# $version, which will be replaced by the version of the file (if it could
+# The WARN_FORMAT tag determines the format of the warning messages that
+# doxygen can produce. The string should contain the $file, $line, and $text
+# tags, which will be replaced by the file and line number from which the
+# warning originated and the warning text. Optionally the format may contain
+# $version, which will be replaced by the version of the file (if it could
# be obtained via FILE_VERSION_FILTER)
WARN_FORMAT = "$file:$line: $text "
-# The WARN_LOGFILE tag can be used to specify a file to which warning
-# and error messages should be written. If left blank the output is written
+# The WARN_LOGFILE tag can be used to specify a file to which warning
+# and error messages should be written. If left blank the output is written
# to stderr.
-WARN_LOGFILE =
+WARN_LOGFILE =
#---------------------------------------------------------------------------
# configuration options related to the input files
#---------------------------------------------------------------------------
-# The INPUT tag can be used to specify the files and/or directories that contain
-# documented source files. You may enter file names like "myfile.cpp" or
-# directories like "/usr/src/myproject". Separate the files or directories
+# The INPUT tag can be used to specify the files and/or directories that contain
+# documented source files. You may enter file names like "myfile.cpp" or
+# directories like "/usr/src/myproject". Separate the files or directories
# with spaces.
INPUT = @top_srcdir@ @top_builddir@
-# This tag can be used to specify the character encoding of the source files
-# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
-# also the default input encoding. Doxygen uses libiconv (or the iconv built
-# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for
+# This tag can be used to specify the character encoding of the source files
+# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
+# also the default input encoding. Doxygen uses libiconv (or the iconv built
+# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for
# the list of possible encodings.
INPUT_ENCODING = UTF-8
-# If the value of the INPUT tag contains directories, you can use the
-# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
-# and *.h) to filter out the source-files in the directories. If left
-# blank the following patterns are tested:
-# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx
+# If the value of the INPUT tag contains directories, you can use the
+# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
+# and *.h) to filter out the source-files in the directories. If left
+# blank the following patterns are tested:
+# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx
# *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py *.f90
FILE_PATTERNS = *.h \
*.dox
-# The RECURSIVE tag can be used to turn specify whether or not subdirectories
-# should be searched for input files as well. Possible values are YES and NO.
+# The RECURSIVE tag can be used to turn specify whether or not subdirectories
+# should be searched for input files as well. Possible values are YES and NO.
# If left blank NO is used.
RECURSIVE = YES
-# The EXCLUDE tag can be used to specify files and/or directories that should
-# excluded from the INPUT source files. This way you can easily exclude a
+# The EXCLUDE tag can be used to specify files and/or directories that should
+# excluded from the INPUT source files. This way you can easily exclude a
# subdirectory from a directory tree whose root is specified with the INPUT tag.
EXCLUDE = @abs_top_builddir@/docs/doxygen/html \
@@ -588,16 +588,16 @@ EXCLUDE = @abs_top_builddir@/docs/doxygen/html \
@abs_top_builddir@/_CPack_Packages \
@abs_top_srcdir@/cmake
-# The EXCLUDE_SYMLINKS tag can be used select whether or not files or
-# directories that are symbolic links (a Unix filesystem feature) are excluded
+# The EXCLUDE_SYMLINKS tag can be used select whether or not files or
+# directories that are symbolic links (a Unix filesystem feature) are excluded
# from the input.
EXCLUDE_SYMLINKS = NO
-# If the value of the INPUT tag contains directories, you can use the
-# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude
-# certain files from those directories. Note that the wildcards are matched
-# against the file with absolute path, so to exclude all test directories
+# If the value of the INPUT tag contains directories, you can use the
+# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude
+# certain files from those directories. Note that the wildcards are matched
+# against the file with absolute path, so to exclude all test directories
# for example use the pattern */test/*
EXCLUDE_PATTERNS = */.deps/* \
@@ -609,10 +609,10 @@ EXCLUDE_PATTERNS = */.deps/* \
*/qa_*.h \
*/qa_*.py
-# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
-# (namespaces, classes, functions, etc.) that should be excluded from the
-# output. The symbol name can be a fully qualified name, a word, or if the
-# wildcard * is used, a substring. Examples: ANamespace, AClass,
+# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
+# (namespaces, classes, functions, etc.) that should be excluded from the
+# output. The symbol name can be a fully qualified name, a word, or if the
+# wildcard * is used, a substring. Examples: ANamespace, AClass,
# AClass::ANamespace, ANamespace::*Test
EXCLUDE_SYMBOLS = ad9862 \
@@ -636,53 +636,53 @@ EXCLUDE_SYMBOLS = ad9862 \
*wxapt_rx_block* \
*example_signal*
-# The EXAMPLE_PATH tag can be used to specify one or more files or
-# directories that contain example code fragments that are included (see
+# The EXAMPLE_PATH tag can be used to specify one or more files or
+# directories that contain example code fragments that are included (see
# the \include command).
-EXAMPLE_PATH =
+EXAMPLE_PATH =
-# If the value of the EXAMPLE_PATH tag contains directories, you can use the
-# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
-# and *.h) to filter out the source-files in the directories. If left
+# If the value of the EXAMPLE_PATH tag contains directories, you can use the
+# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
+# and *.h) to filter out the source-files in the directories. If left
# blank all files are included.
-EXAMPLE_PATTERNS =
+EXAMPLE_PATTERNS =
-# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be
-# searched for input files to be used with the \include or \dontinclude
-# commands irrespective of the value of the RECURSIVE tag.
+# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be
+# searched for input files to be used with the \include or \dontinclude
+# commands irrespective of the value of the RECURSIVE tag.
# Possible values are YES and NO. If left blank NO is used.
EXAMPLE_RECURSIVE = NO
-# The IMAGE_PATH tag can be used to specify one or more files or
-# directories that contain image that are included in the documentation (see
+# The IMAGE_PATH tag can be used to specify one or more files or
+# directories that contain image that are included in the documentation (see
# the \image command).
-IMAGE_PATH =
+IMAGE_PATH =
-# The INPUT_FILTER tag can be used to specify a program that doxygen should
-# invoke to filter for each input file. Doxygen will invoke the filter program
-# by executing (via popen()) the command <filter> <input-file>, where <filter>
-# is the value of the INPUT_FILTER tag, and <input-file> is the name of an
-# input file. Doxygen will then use the output that the filter program writes
-# to standard output. If FILTER_PATTERNS is specified, this tag will be
+# The INPUT_FILTER tag can be used to specify a program that doxygen should
+# invoke to filter for each input file. Doxygen will invoke the filter program
+# by executing (via popen()) the command <filter> <input-file>, where <filter>
+# is the value of the INPUT_FILTER tag, and <input-file> is the name of an
+# input file. Doxygen will then use the output that the filter program writes
+# to standard output. If FILTER_PATTERNS is specified, this tag will be
# ignored.
-INPUT_FILTER =
+INPUT_FILTER =
-# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern
-# basis. Doxygen will compare the file name with each pattern and apply the
-# filter if there is a match. The filters are a list of the form:
-# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further
-# info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER
+# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern
+# basis. Doxygen will compare the file name with each pattern and apply the
+# filter if there is a match. The filters are a list of the form:
+# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further
+# info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER
# is applied to all files.
FILTER_PATTERNS = *.py=@top_srcdir@/gnuradio-core/doc/other/doxypy.py
-# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using
-# INPUT_FILTER) will be used to filter the input files when producing source
+# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using
+# INPUT_FILTER) will be used to filter the input files when producing source
# files to browse (i.e. when SOURCE_BROWSER is set to YES).
FILTER_SOURCE_FILES = NO
@@ -691,32 +691,32 @@ FILTER_SOURCE_FILES = NO
# configuration options related to source browsing
#---------------------------------------------------------------------------
-# If the SOURCE_BROWSER tag is set to YES then a list of source files will
-# be generated. Documented entities will be cross-referenced with these sources.
-# Note: To get rid of all source code in the generated output, make sure also
+# If the SOURCE_BROWSER tag is set to YES then a list of source files will
+# be generated. Documented entities will be cross-referenced with these sources.
+# Note: To get rid of all source code in the generated output, make sure also
# VERBATIM_HEADERS is set to NO.
SOURCE_BROWSER = NO
-# Setting the INLINE_SOURCES tag to YES will include the body
+# Setting the INLINE_SOURCES tag to YES will include the body
# of functions and classes directly in the documentation.
INLINE_SOURCES = NO
-# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct
-# doxygen to hide any special comment blocks from generated source code
+# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct
+# doxygen to hide any special comment blocks from generated source code
# fragments. Normal C and C++ comments will always remain visible.
STRIP_CODE_COMMENTS = NO
-# If the REFERENCED_BY_RELATION tag is set to YES
-# then for each documented function all documented
+# If the REFERENCED_BY_RELATION tag is set to YES
+# then for each documented function all documented
# functions referencing it will be listed.
REFERENCED_BY_RELATION = YES
-# If the REFERENCES_RELATION tag is set to YES
-# then for each documented function all documented entities
+# If the REFERENCES_RELATION tag is set to YES
+# then for each documented function all documented entities
# called/used by that function will be listed.
REFERENCES_RELATION = YES
@@ -728,16 +728,16 @@ REFERENCES_RELATION = YES
REFERENCES_LINK_SOURCE = YES
-# If the USE_HTAGS tag is set to YES then the references to source code
-# will point to the HTML generated by the htags(1) tool instead of doxygen
-# built-in source browser. The htags tool is part of GNU's global source
-# tagging system (see http://www.gnu.org/software/global/global.html). You
+# If the USE_HTAGS tag is set to YES then the references to source code
+# will point to the HTML generated by the htags(1) tool instead of doxygen
+# built-in source browser. The htags tool is part of GNU's global source
+# tagging system (see http://www.gnu.org/software/global/global.html). You
# will need version 4.8.6 or higher.
USE_HTAGS = NO
-# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen
-# will generate a verbatim copy of the header file for each class for
+# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen
+# will generate a verbatim copy of the header file for each class for
# which an include is specified. Set to NO to disable this.
VERBATIM_HEADERS = YES
@@ -746,130 +746,130 @@ VERBATIM_HEADERS = YES
# configuration options related to the alphabetical class index
#---------------------------------------------------------------------------
-# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index
-# of all compounds will be generated. Enable this if the project
+# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index
+# of all compounds will be generated. Enable this if the project
# contains a lot of classes, structs, unions or interfaces.
ALPHABETICAL_INDEX = YES
-# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then
-# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns
+# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then
+# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns
# in which this list will be split (can be a number in the range [1..20])
COLS_IN_ALPHA_INDEX = 5
-# In case all classes in a project start with a common prefix, all
-# classes will be put under the same header in the alphabetical index.
-# The IGNORE_PREFIX tag can be used to specify one or more prefixes that
+# In case all classes in a project start with a common prefix, all
+# classes will be put under the same header in the alphabetical index.
+# The IGNORE_PREFIX tag can be used to specify one or more prefixes that
# should be ignored while generating the index headers.
-IGNORE_PREFIX =
+IGNORE_PREFIX =
#---------------------------------------------------------------------------
# configuration options related to the HTML output
#---------------------------------------------------------------------------
-# If the GENERATE_HTML tag is set to YES (the default) Doxygen will
+# If the GENERATE_HTML tag is set to YES (the default) Doxygen will
# generate HTML output.
GENERATE_HTML = @enable_html_docs@
-# The HTML_OUTPUT tag is used to specify where the HTML docs will be put.
-# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# The HTML_OUTPUT tag is used to specify where the HTML docs will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
# put in front of it. If left blank `html' will be used as the default path.
HTML_OUTPUT = html
-# The HTML_FILE_EXTENSION tag can be used to specify the file extension for
-# each generated HTML page (for example: .htm,.php,.asp). If it is left blank
+# The HTML_FILE_EXTENSION tag can be used to specify the file extension for
+# each generated HTML page (for example: .htm,.php,.asp). If it is left blank
# doxygen will generate files with .html extension.
HTML_FILE_EXTENSION = .html
-# The HTML_HEADER tag can be used to specify a personal HTML header for
-# each generated HTML page. If it is left blank doxygen will generate a
+# The HTML_HEADER tag can be used to specify a personal HTML header for
+# each generated HTML page. If it is left blank doxygen will generate a
# standard header.
-HTML_HEADER =
+HTML_HEADER =
-# The HTML_FOOTER tag can be used to specify a personal HTML footer for
-# each generated HTML page. If it is left blank doxygen will generate a
+# The HTML_FOOTER tag can be used to specify a personal HTML footer for
+# each generated HTML page. If it is left blank doxygen will generate a
# standard footer.
-HTML_FOOTER =
+HTML_FOOTER =
-# The HTML_STYLESHEET tag can be used to specify a user-defined cascading
-# style sheet that is used by each HTML page. It can be used to
-# fine-tune the look of the HTML output. If the tag is left blank doxygen
-# will generate a default style sheet. Note that doxygen will try to copy
-# the style sheet file to the HTML output directory, so don't put your own
+# The HTML_STYLESHEET tag can be used to specify a user-defined cascading
+# style sheet that is used by each HTML page. It can be used to
+# fine-tune the look of the HTML output. If the tag is left blank doxygen
+# will generate a default style sheet. Note that doxygen will try to copy
+# the style sheet file to the HTML output directory, so don't put your own
# stylesheet in the HTML output directory as well, or it will be erased!
-HTML_STYLESHEET =
+HTML_STYLESHEET =
-# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes,
-# files or namespaces will be aligned in HTML using tables. If set to
+# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes,
+# files or namespaces will be aligned in HTML using tables. If set to
# NO a bullet list will be used.
HTML_ALIGN_MEMBERS = YES
-# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML
-# documentation will contain sections that can be hidden and shown after the
-# page has loaded. For this to work a browser that supports
-# JavaScript and DHTML is required (for instance Mozilla 1.0+, Firefox
+# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML
+# documentation will contain sections that can be hidden and shown after the
+# page has loaded. For this to work a browser that supports
+# JavaScript and DHTML is required (for instance Mozilla 1.0+, Firefox
# Netscape 6.0+, Internet explorer 5.0+, Konqueror, or Safari).
HTML_DYNAMIC_SECTIONS = NO
-# If the GENERATE_DOCSET tag is set to YES, additional index files
-# will be generated that can be used as input for Apple's Xcode 3
-# integrated development environment, introduced with OSX 10.5 (Leopard).
-# To create a documentation set, doxygen will generate a Makefile in the
-# HTML output directory. Running make will produce the docset in that
-# directory and running "make install" will install the docset in
-# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find
-# it at startup.
+# If the GENERATE_DOCSET tag is set to YES, additional index files
+# will be generated that can be used as input for Apple's Xcode 3
+# integrated development environment, introduced with OSX 10.5 (Leopard).
+# To create a documentation set, doxygen will generate a Makefile in the
+# HTML output directory. Running make will produce the docset in that
+# directory and running "make install" will install the docset in
+# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find
+# it at startup.
# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html for more information.
GENERATE_DOCSET = NO
-# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the
-# feed. A documentation feed provides an umbrella under which multiple
-# documentation sets from a single provider (such as a company or product suite)
+# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the
+# feed. A documentation feed provides an umbrella under which multiple
+# documentation sets from a single provider (such as a company or product suite)
# can be grouped.
DOCSET_FEEDNAME = "Doxygen generated docs"
-# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that
-# should uniquely identify the documentation set bundle. This should be a
-# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen
+# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that
+# should uniquely identify the documentation set bundle. This should be a
+# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen
# will append .docset to the name.
DOCSET_BUNDLE_ID = org.doxygen.Project
-# If the GENERATE_HTMLHELP tag is set to YES, additional index files
-# will be generated that can be used as input for tools like the
-# Microsoft HTML help workshop to generate a compiled HTML help file (.chm)
+# If the GENERATE_HTMLHELP tag is set to YES, additional index files
+# will be generated that can be used as input for tools like the
+# Microsoft HTML help workshop to generate a compiled HTML help file (.chm)
# of the generated HTML documentation.
GENERATE_HTMLHELP = NO
-# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can
-# be used to specify the file name of the resulting .chm file. You
-# can add a path in front of the file if the result should not be
+# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can
+# be used to specify the file name of the resulting .chm file. You
+# can add a path in front of the file if the result should not be
# written to the html output directory.
-CHM_FILE =
+CHM_FILE =
-# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can
-# be used to specify the location (absolute path including file name) of
-# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run
+# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can
+# be used to specify the location (absolute path including file name) of
+# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run
# the HTML help compiler on the generated index.hhp.
-HHC_LOCATION =
+HHC_LOCATION =
-# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag
-# controls if a separate .chi index file is generated (YES) or that
+# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag
+# controls if a separate .chi index file is generated (YES) or that
# it should be included in the master .chm file (NO).
GENERATE_CHI = NO
@@ -878,58 +878,58 @@ GENERATE_CHI = NO
# is used to encode HtmlHelp index (hhk), content (hhc) and project file
# content.
-CHM_INDEX_ENCODING =
+CHM_INDEX_ENCODING =
-# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag
-# controls whether a binary table of contents is generated (YES) or a
+# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag
+# controls whether a binary table of contents is generated (YES) or a
# normal table of contents (NO) in the .chm file.
BINARY_TOC = NO
-# The TOC_EXPAND flag can be set to YES to add extra items for group members
+# The TOC_EXPAND flag can be set to YES to add extra items for group members
# to the contents of the HTML help documentation and to the tree view.
TOC_EXPAND = YES
-# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and QHP_VIRTUAL_FOLDER
-# are set, an additional index file will be generated that can be used as input for
-# Qt's qhelpgenerator to generate a Qt Compressed Help (.qch) of the generated
+# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and QHP_VIRTUAL_FOLDER
+# are set, an additional index file will be generated that can be used as input for
+# Qt's qhelpgenerator to generate a Qt Compressed Help (.qch) of the generated
# HTML documentation.
GENERATE_QHP = NO
-# If the QHG_LOCATION tag is specified, the QCH_FILE tag can
-# be used to specify the file name of the resulting .qch file.
+# If the QHG_LOCATION tag is specified, the QCH_FILE tag can
+# be used to specify the file name of the resulting .qch file.
# The path specified is relative to the HTML output folder.
-QCH_FILE =
+QCH_FILE =
-# The QHP_NAMESPACE tag specifies the namespace to use when generating
-# Qt Help Project output. For more information please see
+# The QHP_NAMESPACE tag specifies the namespace to use when generating
+# Qt Help Project output. For more information please see
# <a href="http://doc.trolltech.com/qthelpproject.html#namespace">Qt Help Project / Namespace</a>.
QHP_NAMESPACE = org.doxygen.Project
-# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating
-# Qt Help Project output. For more information please see
+# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating
+# Qt Help Project output. For more information please see
# <a href="http://doc.trolltech.com/qthelpproject.html#virtual-folders">Qt Help Project / Virtual Folders</a>.
QHP_VIRTUAL_FOLDER = doc
-# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can
-# be used to specify the location of Qt's qhelpgenerator.
-# If non-empty doxygen will try to run qhelpgenerator on the generated
+# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can
+# be used to specify the location of Qt's qhelpgenerator.
+# If non-empty doxygen will try to run qhelpgenerator on the generated
# .qhp file .
-QHG_LOCATION =
+QHG_LOCATION =
-# The DISABLE_INDEX tag can be used to turn on/off the condensed index at
-# top of each HTML page. The value NO (the default) enables the index and
+# The DISABLE_INDEX tag can be used to turn on/off the condensed index at
+# top of each HTML page. The value NO (the default) enables the index and
# the value YES disables it.
DISABLE_INDEX = YES
-# This tag can be used to set the number of enum values (range [1..20])
+# This tag can be used to set the number of enum values (range [1..20])
# that doxygen will group on one line in the generated HTML documentation.
ENUM_VALUES_PER_LINE = 4
@@ -937,11 +937,11 @@ ENUM_VALUES_PER_LINE = 4
# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index
# structure should be generated to display hierarchical information.
# If the tag value is set to FRAME, a side panel will be generated
-# containing a tree-like index structure (just like the one that
-# is generated for HTML Help). For this to work a browser that supports
-# JavaScript, DHTML, CSS and frames is required (for instance Mozilla 1.0+,
-# Netscape 6.0+, Internet explorer 5.0+, or Konqueror). Windows users are
-# probably better off using the HTML help feature. Other possible values
+# containing a tree-like index structure (just like the one that
+# is generated for HTML Help). For this to work a browser that supports
+# JavaScript, DHTML, CSS and frames is required (for instance Mozilla 1.0+,
+# Netscape 6.0+, Internet explorer 5.0+, or Konqueror). Windows users are
+# probably better off using the HTML help feature. Other possible values
# for this tag are: HIERARCHIES, which will generate the Groups, Directories,
# and Class Hierarchy pages using a tree view instead of an ordered list;
# ALL, which combines the behavior of FRAME and HIERARCHIES; and NONE, which
@@ -951,16 +951,16 @@ ENUM_VALUES_PER_LINE = 4
GENERATE_TREEVIEW = YES
-# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be
-# used to set the initial width (in pixels) of the frame in which the tree
+# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be
+# used to set the initial width (in pixels) of the frame in which the tree
# is shown.
TREEVIEW_WIDTH = 180
-# Use this tag to change the font size of Latex formulas included
-# as images in the HTML documentation. The default is 10. Note that
-# when you change the font size after a successful doxygen run you need
-# to manually remove any form_*.png images from the HTML output directory
+# Use this tag to change the font size of Latex formulas included
+# as images in the HTML documentation. The default is 10. Note that
+# when you change the font size after a successful doxygen run you need
+# to manually remove any form_*.png images from the HTML output directory
# to force them to be regenerated.
FORMULA_FONTSIZE = 10
@@ -969,74 +969,74 @@ FORMULA_FONTSIZE = 10
# configuration options related to the LaTeX output
#---------------------------------------------------------------------------
-# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will
+# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will
# generate Latex output.
GENERATE_LATEX = @enable_latex_docs@
-# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put.
-# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
# put in front of it. If left blank `latex' will be used as the default path.
LATEX_OUTPUT = latex
-# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be
+# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be
# invoked. If left blank `latex' will be used as the default command name.
LATEX_CMD_NAME = latex
-# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to
-# generate index for LaTeX. If left blank `makeindex' will be used as the
+# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to
+# generate index for LaTeX. If left blank `makeindex' will be used as the
# default command name.
MAKEINDEX_CMD_NAME = makeindex
-# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact
-# LaTeX documents. This may be useful for small projects and may help to
+# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact
+# LaTeX documents. This may be useful for small projects and may help to
# save some trees in general.
COMPACT_LATEX = NO
-# The PAPER_TYPE tag can be used to set the paper type that is used
-# by the printer. Possible values are: a4, a4wide, letter, legal and
+# The PAPER_TYPE tag can be used to set the paper type that is used
+# by the printer. Possible values are: a4, a4wide, letter, legal and
# executive. If left blank a4wide will be used.
PAPER_TYPE = letter
-# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX
+# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX
# packages that should be included in the LaTeX output.
-EXTRA_PACKAGES =
+EXTRA_PACKAGES =
-# The LATEX_HEADER tag can be used to specify a personal LaTeX header for
-# the generated latex document. The header should contain everything until
-# the first chapter. If it is left blank doxygen will generate a
+# The LATEX_HEADER tag can be used to specify a personal LaTeX header for
+# the generated latex document. The header should contain everything until
+# the first chapter. If it is left blank doxygen will generate a
# standard header. Notice: only use this tag if you know what you are doing!
-LATEX_HEADER =
+LATEX_HEADER =
-# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated
-# is prepared for conversion to pdf (using ps2pdf). The pdf file will
-# contain links (just like the HTML output) instead of page references
+# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated
+# is prepared for conversion to pdf (using ps2pdf). The pdf file will
+# contain links (just like the HTML output) instead of page references
# This makes the output suitable for online browsing using a pdf viewer.
PDF_HYPERLINKS = YES
-# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of
-# plain latex in the generated Makefile. Set this option to YES to get a
+# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of
+# plain latex in the generated Makefile. Set this option to YES to get a
# higher quality PDF documentation.
USE_PDFLATEX = NO
-# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode.
-# command to the generated LaTeX files. This will instruct LaTeX to keep
-# running if errors occur, instead of asking the user for help.
+# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode.
+# command to the generated LaTeX files. This will instruct LaTeX to keep
+# running if errors occur, instead of asking the user for help.
# This option is also used when generating formulas in HTML.
LATEX_BATCHMODE = NO
-# If LATEX_HIDE_INDICES is set to YES then doxygen will not
-# include the index chapters (such as File Index, Compound Index, etc.)
+# If LATEX_HIDE_INDICES is set to YES then doxygen will not
+# include the index chapters (such as File Index, Compound Index, etc.)
# in the output.
LATEX_HIDE_INDICES = NO
@@ -1045,68 +1045,68 @@ LATEX_HIDE_INDICES = NO
# configuration options related to the RTF output
#---------------------------------------------------------------------------
-# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output
-# The RTF output is optimized for Word 97 and may not look very pretty with
+# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output
+# The RTF output is optimized for Word 97 and may not look very pretty with
# other RTF readers or editors.
GENERATE_RTF = NO
-# The RTF_OUTPUT tag is used to specify where the RTF docs will be put.
-# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# The RTF_OUTPUT tag is used to specify where the RTF docs will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
# put in front of it. If left blank `rtf' will be used as the default path.
RTF_OUTPUT = rtf
-# If the COMPACT_RTF tag is set to YES Doxygen generates more compact
-# RTF documents. This may be useful for small projects and may help to
+# If the COMPACT_RTF tag is set to YES Doxygen generates more compact
+# RTF documents. This may be useful for small projects and may help to
# save some trees in general.
COMPACT_RTF = NO
-# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated
-# will contain hyperlink fields. The RTF file will
-# contain links (just like the HTML output) instead of page references.
-# This makes the output suitable for online browsing using WORD or other
-# programs which support those fields.
+# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated
+# will contain hyperlink fields. The RTF file will
+# contain links (just like the HTML output) instead of page references.
+# This makes the output suitable for online browsing using WORD or other
+# programs which support those fields.
# Note: wordpad (write) and others do not support links.
RTF_HYPERLINKS = NO
-# Load stylesheet definitions from file. Syntax is similar to doxygen's
-# config file, i.e. a series of assignments. You only have to provide
+# Load stylesheet definitions from file. Syntax is similar to doxygen's
+# config file, i.e. a series of assignments. You only have to provide
# replacements, missing definitions are set to their default value.
-RTF_STYLESHEET_FILE =
+RTF_STYLESHEET_FILE =
-# Set optional variables used in the generation of an rtf document.
+# Set optional variables used in the generation of an rtf document.
# Syntax is similar to doxygen's config file.
-RTF_EXTENSIONS_FILE =
+RTF_EXTENSIONS_FILE =
#---------------------------------------------------------------------------
# configuration options related to the man page output
#---------------------------------------------------------------------------
-# If the GENERATE_MAN tag is set to YES (the default) Doxygen will
+# If the GENERATE_MAN tag is set to YES (the default) Doxygen will
# generate man pages
GENERATE_MAN = NO
-# The MAN_OUTPUT tag is used to specify where the man pages will be put.
-# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# The MAN_OUTPUT tag is used to specify where the man pages will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
# put in front of it. If left blank `man' will be used as the default path.
MAN_OUTPUT = man
-# The MAN_EXTENSION tag determines the extension that is added to
+# The MAN_EXTENSION tag determines the extension that is added to
# the generated man pages (default is the subroutine's section .3)
MAN_EXTENSION = .3
-# If the MAN_LINKS tag is set to YES and Doxygen generates man output,
-# then it will generate one additional man file for each entity
-# documented in the real man page(s). These additional files
-# only source the real man page, but without them the man command
+# If the MAN_LINKS tag is set to YES and Doxygen generates man output,
+# then it will generate one additional man file for each entity
+# documented in the real man page(s). These additional files
+# only source the real man page, but without them the man command
# would be unable to find the correct page. The default is NO.
MAN_LINKS = NO
@@ -1115,33 +1115,33 @@ MAN_LINKS = NO
# configuration options related to the XML output
#---------------------------------------------------------------------------
-# If the GENERATE_XML tag is set to YES Doxygen will
-# generate an XML file that captures the structure of
+# If the GENERATE_XML tag is set to YES Doxygen will
+# generate an XML file that captures the structure of
# the code including all documentation.
GENERATE_XML = @enable_xml_docs@
-# The XML_OUTPUT tag is used to specify where the XML pages will be put.
-# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# The XML_OUTPUT tag is used to specify where the XML pages will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
# put in front of it. If left blank `xml' will be used as the default path.
XML_OUTPUT = xml
-# The XML_SCHEMA tag can be used to specify an XML schema,
-# which can be used by a validating XML parser to check the
+# The XML_SCHEMA tag can be used to specify an XML schema,
+# which can be used by a validating XML parser to check the
# syntax of the XML files.
-XML_SCHEMA =
+XML_SCHEMA =
-# The XML_DTD tag can be used to specify an XML DTD,
-# which can be used by a validating XML parser to check the
+# The XML_DTD tag can be used to specify an XML DTD,
+# which can be used by a validating XML parser to check the
# syntax of the XML files.
-XML_DTD =
+XML_DTD =
-# If the XML_PROGRAMLISTING tag is set to YES Doxygen will
-# dump the program listings (including syntax highlighting
-# and cross-referencing information) to the XML output. Note that
+# If the XML_PROGRAMLISTING tag is set to YES Doxygen will
+# dump the program listings (including syntax highlighting
+# and cross-referencing information) to the XML output. Note that
# enabling this will significantly increase the size of the XML output.
XML_PROGRAMLISTING = NO
@@ -1150,10 +1150,10 @@ XML_PROGRAMLISTING = NO
# configuration options for the AutoGen Definitions output
#---------------------------------------------------------------------------
-# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will
-# generate an AutoGen Definitions (see autogen.sf.net) file
-# that captures the structure of the code including all
-# documentation. Note that this feature is still experimental
+# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will
+# generate an AutoGen Definitions (see autogen.sf.net) file
+# that captures the structure of the code including all
+# documentation. Note that this feature is still experimental
# and incomplete at the moment.
GENERATE_AUTOGEN_DEF = NO
@@ -1162,343 +1162,343 @@ GENERATE_AUTOGEN_DEF = NO
# configuration options related to the Perl module output
#---------------------------------------------------------------------------
-# If the GENERATE_PERLMOD tag is set to YES Doxygen will
-# generate a Perl module file that captures the structure of
-# the code including all documentation. Note that this
-# feature is still experimental and incomplete at the
+# If the GENERATE_PERLMOD tag is set to YES Doxygen will
+# generate a Perl module file that captures the structure of
+# the code including all documentation. Note that this
+# feature is still experimental and incomplete at the
# moment.
GENERATE_PERLMOD = NO
-# If the PERLMOD_LATEX tag is set to YES Doxygen will generate
-# the necessary Makefile rules, Perl scripts and LaTeX code to be able
+# If the PERLMOD_LATEX tag is set to YES Doxygen will generate
+# the necessary Makefile rules, Perl scripts and LaTeX code to be able
# to generate PDF and DVI output from the Perl module output.
PERLMOD_LATEX = NO
-# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be
-# nicely formatted so it can be parsed by a human reader. This is useful
-# if you want to understand what is going on. On the other hand, if this
-# tag is set to NO the size of the Perl module output will be much smaller
+# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be
+# nicely formatted so it can be parsed by a human reader. This is useful
+# if you want to understand what is going on. On the other hand, if this
+# tag is set to NO the size of the Perl module output will be much smaller
# and Perl will parse it just the same.
PERLMOD_PRETTY = YES
-# The names of the make variables in the generated doxyrules.make file
-# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX.
-# This is useful so different doxyrules.make files included by the same
+# The names of the make variables in the generated doxyrules.make file
+# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX.
+# This is useful so different doxyrules.make files included by the same
# Makefile don't overwrite each other's variables.
-PERLMOD_MAKEVAR_PREFIX =
+PERLMOD_MAKEVAR_PREFIX =
#---------------------------------------------------------------------------
-# Configuration options related to the preprocessor
+# Configuration options related to the preprocessor
#---------------------------------------------------------------------------
-# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will
-# evaluate all C-preprocessor directives found in the sources and include
+# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will
+# evaluate all C-preprocessor directives found in the sources and include
# files.
ENABLE_PREPROCESSING = YES
-# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro
-# names in the source code. If set to NO (the default) only conditional
-# compilation will be performed. Macro expansion can be done in a controlled
+# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro
+# names in the source code. If set to NO (the default) only conditional
+# compilation will be performed. Macro expansion can be done in a controlled
# way by setting EXPAND_ONLY_PREDEF to YES.
MACRO_EXPANSION = NO
-# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES
-# then the macro expansion is limited to the macros specified with the
+# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES
+# then the macro expansion is limited to the macros specified with the
# PREDEFINED and EXPAND_AS_DEFINED tags.
EXPAND_ONLY_PREDEF = NO
-# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files
+# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files
# in the INCLUDE_PATH (see below) will be search if a #include is found.
SEARCH_INCLUDES = YES
-# The INCLUDE_PATH tag can be used to specify one or more directories that
-# contain include files that are not input files but should be processed by
+# The INCLUDE_PATH tag can be used to specify one or more directories that
+# contain include files that are not input files but should be processed by
# the preprocessor.
-INCLUDE_PATH =
+INCLUDE_PATH =
-# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard
-# patterns (like *.h and *.hpp) to filter out the header-files in the
-# directories. If left blank, the patterns specified with FILE_PATTERNS will
+# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard
+# patterns (like *.h and *.hpp) to filter out the header-files in the
+# directories. If left blank, the patterns specified with FILE_PATTERNS will
# be used.
-INCLUDE_FILE_PATTERNS =
+INCLUDE_FILE_PATTERNS =
-# The PREDEFINED tag can be used to specify one or more macro names that
-# are defined before the preprocessor is started (similar to the -D option of
-# gcc). The argument of the tag is a list of macros of the form: name
-# or name=definition (no spaces). If the definition and the = are
-# omitted =1 is assumed. To prevent a macro definition from being
-# undefined via #undef or recursively expanded use the := operator
+# The PREDEFINED tag can be used to specify one or more macro names that
+# are defined before the preprocessor is started (similar to the -D option of
+# gcc). The argument of the tag is a list of macros of the form: name
+# or name=definition (no spaces). If the definition and the = are
+# omitted =1 is assumed. To prevent a macro definition from being
+# undefined via #undef or recursively expanded use the := operator
# instead of the = operator.
-PREDEFINED =
+PREDEFINED =
-# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then
-# this tag can be used to specify a list of macro names that should be expanded.
-# The macro definition that is found in the sources will be used.
+# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then
+# this tag can be used to specify a list of macro names that should be expanded.
+# The macro definition that is found in the sources will be used.
# Use the PREDEFINED tag if you want to use a different macro definition.
-EXPAND_AS_DEFINED =
+EXPAND_AS_DEFINED =
-# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then
-# doxygen's preprocessor will remove all function-like macros that are alone
-# on a line, have an all uppercase name, and do not end with a semicolon. Such
-# function macros are typically used for boiler-plate code, and will confuse
+# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then
+# doxygen's preprocessor will remove all function-like macros that are alone
+# on a line, have an all uppercase name, and do not end with a semicolon. Such
+# function macros are typically used for boiler-plate code, and will confuse
# the parser if not removed.
SKIP_FUNCTION_MACROS = YES
#---------------------------------------------------------------------------
-# Configuration::additions related to external references
+# Configuration::additions related to external references
#---------------------------------------------------------------------------
-# The TAGFILES option can be used to specify one or more tagfiles.
-# Optionally an initial location of the external documentation
-# can be added for each tagfile. The format of a tag file without
-# this location is as follows:
-# TAGFILES = file1 file2 ...
-# Adding location for the tag files is done as follows:
-# TAGFILES = file1=loc1 "file2 = loc2" ...
-# where "loc1" and "loc2" can be relative or absolute paths or
-# URLs. If a location is present for each tag, the installdox tool
+# The TAGFILES option can be used to specify one or more tagfiles.
+# Optionally an initial location of the external documentation
+# can be added for each tagfile. The format of a tag file without
+# this location is as follows:
+# TAGFILES = file1 file2 ...
+# Adding location for the tag files is done as follows:
+# TAGFILES = file1=loc1 "file2 = loc2" ...
+# where "loc1" and "loc2" can be relative or absolute paths or
+# URLs. If a location is present for each tag, the installdox tool
# does not have to be run to correct the links.
# Note that each tag file must have a unique name
# (where the name does NOT include the path)
-# If a tag file is not located in the directory in which doxygen
+# If a tag file is not located in the directory in which doxygen
# is run, you must also specify the path to the tagfile here.
-TAGFILES =
+TAGFILES =
-# When a file name is specified after GENERATE_TAGFILE, doxygen will create
+# When a file name is specified after GENERATE_TAGFILE, doxygen will create
# a tag file that is based on the input files it reads.
-GENERATE_TAGFILE =
+GENERATE_TAGFILE =
-# If the ALLEXTERNALS tag is set to YES all external classes will be listed
-# in the class index. If set to NO only the inherited external classes
+# If the ALLEXTERNALS tag is set to YES all external classes will be listed
+# in the class index. If set to NO only the inherited external classes
# will be listed.
ALLEXTERNALS = NO
-# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed
-# in the modules index. If set to NO, only the current project's groups will
+# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed
+# in the modules index. If set to NO, only the current project's groups will
# be listed.
EXTERNAL_GROUPS = YES
-# The PERL_PATH should be the absolute path and name of the perl script
+# The PERL_PATH should be the absolute path and name of the perl script
# interpreter (i.e. the result of `which perl').
PERL_PATH = /usr/bin/perl
#---------------------------------------------------------------------------
-# Configuration options related to the dot tool
+# Configuration options related to the dot tool
#---------------------------------------------------------------------------
-# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will
-# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base
-# or super classes. Setting the tag to NO turns the diagrams off. Note that
-# this option is superseded by the HAVE_DOT option below. This is only a
-# fallback. It is recommended to install and use dot, since it yields more
+# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will
+# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base
+# or super classes. Setting the tag to NO turns the diagrams off. Note that
+# this option is superseded by the HAVE_DOT option below. This is only a
+# fallback. It is recommended to install and use dot, since it yields more
# powerful graphs.
CLASS_DIAGRAMS = YES
-# You can define message sequence charts within doxygen comments using the \msc
-# command. Doxygen will then run the mscgen tool (see
-# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the
-# documentation. The MSCGEN_PATH tag allows you to specify the directory where
-# the mscgen tool resides. If left empty the tool is assumed to be found in the
+# You can define message sequence charts within doxygen comments using the \msc
+# command. Doxygen will then run the mscgen tool (see
+# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the
+# documentation. The MSCGEN_PATH tag allows you to specify the directory where
+# the mscgen tool resides. If left empty the tool is assumed to be found in the
# default search path.
-MSCGEN_PATH =
+MSCGEN_PATH =
-# If set to YES, the inheritance and collaboration graphs will hide
-# inheritance and usage relations if the target is undocumented
+# If set to YES, the inheritance and collaboration graphs will hide
+# inheritance and usage relations if the target is undocumented
# or is not a class.
HIDE_UNDOC_RELATIONS = YES
-# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is
-# available from the path. This tool is part of Graphviz, a graph visualization
-# toolkit from AT&T and Lucent Bell Labs. The other options in this section
+# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is
+# available from the path. This tool is part of Graphviz, a graph visualization
+# toolkit from AT&T and Lucent Bell Labs. The other options in this section
# have no effect if this option is set to NO (the default)
HAVE_DOT = @HAVE_DOT@
-# By default doxygen will write a font called FreeSans.ttf to the output
-# directory and reference it in all dot files that doxygen generates. This
-# font does not include all possible unicode characters however, so when you need
-# these (or just want a differently looking font) you can specify the font name
-# using DOT_FONTNAME. You need need to make sure dot is able to find the font,
-# which can be done by putting it in a standard location or by setting the
-# DOTFONTPATH environment variable or by setting DOT_FONTPATH to the directory
+# By default doxygen will write a font called FreeSans.ttf to the output
+# directory and reference it in all dot files that doxygen generates. This
+# font does not include all possible unicode characters however, so when you need
+# these (or just want a differently looking font) you can specify the font name
+# using DOT_FONTNAME. You need need to make sure dot is able to find the font,
+# which can be done by putting it in a standard location or by setting the
+# DOTFONTPATH environment variable or by setting DOT_FONTPATH to the directory
# containing the font.
DOT_FONTNAME = FreeSans
-# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs.
+# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs.
# The default size is 10pt.
DOT_FONTSIZE = 10
-# By default doxygen will tell dot to use the output directory to look for the
-# FreeSans.ttf font (which doxygen will put there itself). If you specify a
-# different font using DOT_FONTNAME you can set the path where dot
+# By default doxygen will tell dot to use the output directory to look for the
+# FreeSans.ttf font (which doxygen will put there itself). If you specify a
+# different font using DOT_FONTNAME you can set the path where dot
# can find it using this tag.
-DOT_FONTPATH =
+DOT_FONTPATH =
-# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen
-# will generate a graph for each documented class showing the direct and
-# indirect inheritance relations. Setting this tag to YES will force the
+# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen
+# will generate a graph for each documented class showing the direct and
+# indirect inheritance relations. Setting this tag to YES will force the
# the CLASS_DIAGRAMS tag to NO.
CLASS_GRAPH = YES
-# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen
-# will generate a graph for each documented class showing the direct and
-# indirect implementation dependencies (inheritance, containment, and
+# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen
+# will generate a graph for each documented class showing the direct and
+# indirect implementation dependencies (inheritance, containment, and
# class references variables) of the class with other documented classes.
COLLABORATION_GRAPH = NO
-# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen
+# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen
# will generate a graph for groups, showing the direct groups dependencies
GROUP_GRAPHS = YES
-# If the UML_LOOK tag is set to YES doxygen will generate inheritance and
-# collaboration diagrams in a style similar to the OMG's Unified Modeling
+# If the UML_LOOK tag is set to YES doxygen will generate inheritance and
+# collaboration diagrams in a style similar to the OMG's Unified Modeling
# Language.
UML_LOOK = NO
-# If set to YES, the inheritance and collaboration graphs will show the
+# If set to YES, the inheritance and collaboration graphs will show the
# relations between templates and their instances.
TEMPLATE_RELATIONS = NO
-# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT
-# tags are set to YES then doxygen will generate a graph for each documented
-# file showing the direct and indirect include dependencies of the file with
+# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT
+# tags are set to YES then doxygen will generate a graph for each documented
+# file showing the direct and indirect include dependencies of the file with
# other documented files.
INCLUDE_GRAPH = YES
-# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and
-# HAVE_DOT tags are set to YES then doxygen will generate a graph for each
-# documented header file showing the documented files that directly or
+# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and
+# HAVE_DOT tags are set to YES then doxygen will generate a graph for each
+# documented header file showing the documented files that directly or
# indirectly include this file.
INCLUDED_BY_GRAPH = YES
-# If the CALL_GRAPH and HAVE_DOT options are set to YES then
-# doxygen will generate a call dependency graph for every global function
-# or class method. Note that enabling this option will significantly increase
-# the time of a run. So in most cases it will be better to enable call graphs
+# If the CALL_GRAPH and HAVE_DOT options are set to YES then
+# doxygen will generate a call dependency graph for every global function
+# or class method. Note that enabling this option will significantly increase
+# the time of a run. So in most cases it will be better to enable call graphs
# for selected functions only using the \callgraph command.
CALL_GRAPH = NO
-# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then
-# doxygen will generate a caller dependency graph for every global function
-# or class method. Note that enabling this option will significantly increase
-# the time of a run. So in most cases it will be better to enable caller
+# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then
+# doxygen will generate a caller dependency graph for every global function
+# or class method. Note that enabling this option will significantly increase
+# the time of a run. So in most cases it will be better to enable caller
# graphs for selected functions only using the \callergraph command.
CALLER_GRAPH = NO
-# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen
+# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen
# will graphical hierarchy of all classes instead of a textual one.
GRAPHICAL_HIERARCHY = YES
-# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES
-# then doxygen will show the dependencies a directory has on other directories
+# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES
+# then doxygen will show the dependencies a directory has on other directories
# in a graphical way. The dependency relations are determined by the #include
# relations between the files in the directories.
DIRECTORY_GRAPH = YES
-# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images
+# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images
# generated by dot. Possible values are png, jpg, or gif
# If left blank png will be used.
DOT_IMAGE_FORMAT = png
-# The tag DOT_PATH can be used to specify the path where the dot tool can be
+# The tag DOT_PATH can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found in the path.
-DOT_PATH =
+DOT_PATH =
-# The DOTFILE_DIRS tag can be used to specify one or more directories that
-# contain dot files that are included in the documentation (see the
+# The DOTFILE_DIRS tag can be used to specify one or more directories that
+# contain dot files that are included in the documentation (see the
# \dotfile command).
-DOTFILE_DIRS =
+DOTFILE_DIRS =
-# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of
-# nodes that will be shown in the graph. If the number of nodes in a graph
-# becomes larger than this value, doxygen will truncate the graph, which is
-# visualized by representing a node as a red box. Note that doxygen if the
-# number of direct children of the root node in a graph is already larger than
-# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note
+# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of
+# nodes that will be shown in the graph. If the number of nodes in a graph
+# becomes larger than this value, doxygen will truncate the graph, which is
+# visualized by representing a node as a red box. Note that doxygen if the
+# number of direct children of the root node in a graph is already larger than
+# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note
# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH.
DOT_GRAPH_MAX_NODES = 50
-# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the
-# graphs generated by dot. A depth value of 3 means that only nodes reachable
-# from the root by following a path via at most 3 edges will be shown. Nodes
-# that lay further from the root node will be omitted. Note that setting this
-# option to 1 or 2 may greatly reduce the computation time needed for large
-# code bases. Also note that the size of a graph can be further restricted by
+# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the
+# graphs generated by dot. A depth value of 3 means that only nodes reachable
+# from the root by following a path via at most 3 edges will be shown. Nodes
+# that lay further from the root node will be omitted. Note that setting this
+# option to 1 or 2 may greatly reduce the computation time needed for large
+# code bases. Also note that the size of a graph can be further restricted by
# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction.
MAX_DOT_GRAPH_DEPTH = 0
-# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent
-# background. This is disabled by default, because dot on Windows does not
-# seem to support this out of the box. Warning: Depending on the platform used,
-# enabling this option may lead to badly anti-aliased labels on the edges of
+# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent
+# background. This is disabled by default, because dot on Windows does not
+# seem to support this out of the box. Warning: Depending on the platform used,
+# enabling this option may lead to badly anti-aliased labels on the edges of
# a graph (i.e. they become hard to read).
DOT_TRANSPARENT = NO
-# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output
-# files in one run (i.e. multiple -o and -T options on the command line). This
-# makes dot run faster, but since only newer versions of dot (>1.8.10)
+# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output
+# files in one run (i.e. multiple -o and -T options on the command line). This
+# makes dot run faster, but since only newer versions of dot (>1.8.10)
# support this, this feature is disabled by default.
DOT_MULTI_TARGETS = YES
-# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will
-# generate a legend page explaining the meaning of the various boxes and
+# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will
+# generate a legend page explaining the meaning of the various boxes and
# arrows in the dot generated graphs.
GENERATE_LEGEND = YES
-# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will
-# remove the intermediate dot files that are used to generate
+# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will
+# remove the intermediate dot files that are used to generate
# the various graphs.
DOT_CLEANUP = YES
#---------------------------------------------------------------------------
-# Configuration::additions related to the search engine
+# Configuration::additions related to the search engine
#---------------------------------------------------------------------------
-# The SEARCHENGINE tag specifies whether or not a search engine should be
+# The SEARCHENGINE tag specifies whether or not a search engine should be
# used. If set to NO the values of all tags below this one will be ignored.
SEARCHENGINE = NO
diff --git a/gr-howto-write-a-block/docs/doxygen/doxyxml/__init__.py b/gr-howto-write-a-block/docs/doxygen/doxyxml/__init__.py
index c9786c3f8..5cd0b3c6c 100644
--- a/gr-howto-write-a-block/docs/doxygen/doxyxml/__init__.py
+++ b/gr-howto-write-a-block/docs/doxygen/doxyxml/__init__.py
@@ -1,23 +1,23 @@
#
# Copyright 2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
"""
Python interface to contents of doxygen xml documentation.
@@ -27,7 +27,7 @@ doxygen-generated xml used in this example.
>>> # Parse the doxygen docs.
>>> import os
->>> this_dir = os.path.dirname(globals()['__file__'])
+>>> this_dir = os.path.dirname(globals()['__file__'])
>>> xml_path = this_dir + "/example/xml/"
>>> di = DoxyIndex(xml_path)
@@ -68,7 +68,7 @@ from doxyindex import DoxyIndex, DoxyFunction, DoxyParam, DoxyClass, DoxyFile, D
def _test():
import os
- this_dir = os.path.dirname(globals()['__file__'])
+ this_dir = os.path.dirname(globals()['__file__'])
xml_path = this_dir + "/example/xml/"
di = DoxyIndex(xml_path)
# Get the Aadvark class
diff --git a/gr-howto-write-a-block/docs/doxygen/doxyxml/base.py b/gr-howto-write-a-block/docs/doxygen/doxyxml/base.py
index 097e3f15b..e8f026ab9 100644
--- a/gr-howto-write-a-block/docs/doxygen/doxyxml/base.py
+++ b/gr-howto-write-a-block/docs/doxygen/doxyxml/base.py
@@ -1,23 +1,23 @@
#
# Copyright 2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
"""
A base class is created.
@@ -144,7 +144,7 @@ class Base(object):
self._in_category[cat] = [mem for mem in self._members
if cat.includes(mem)]
return self._in_category[cat]
-
+
def get_member(self, name, cat=None):
self.confirm_no_error()
# Check if it's in a namespace or class.
@@ -173,7 +173,7 @@ class Base(object):
def members(self):
self.confirm_no_error()
return self._members
-
+
def process_memberdefs(self):
mdtss = []
for sec in self._retrieved_data.compounddef.sectiondef:
@@ -188,7 +188,7 @@ class Base(object):
if pair not in uniques:
uniques.add(pair)
self._members.append(converted)
-
+
def retrieve_data(self):
filename = os.path.join(self._xml_path, self.refid + '.xml')
try:
@@ -197,7 +197,7 @@ class Base(object):
print('Error in xml in file %s' % filename)
self._error = True
self._retrieved_data = None
-
+
def check_parsed(self):
if not self._parsed:
self._parse()
diff --git a/gr-howto-write-a-block/docs/doxygen/doxyxml/doxyindex.py b/gr-howto-write-a-block/docs/doxygen/doxyxml/doxyindex.py
index 42aa4ca58..0132ab86f 100644
--- a/gr-howto-write-a-block/docs/doxygen/doxyxml/doxyindex.py
+++ b/gr-howto-write-a-block/docs/doxygen/doxyxml/doxyindex.py
@@ -1,23 +1,23 @@
#
# Copyright 2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
"""
Classes providing more user-friendly interfaces to the doxygen xml
docs than the generated classes provide.
@@ -40,7 +40,7 @@ class DoxyIndex(Base):
if self._parsed:
return
super(DoxyIndex, self)._parse()
- self._root = index.parse(os.path.join(self._xml_path, 'index.xml'))
+ self._root = index.parse(os.path.join(self._xml_path, 'index.xml'))
for mem in self._root.compound:
converted = self.convert_mem(mem)
# For files we want the contents to be accessible directly
@@ -78,14 +78,14 @@ class DoxyCompMem(Base):
bd = description(getattr(parse_data, 'briefdescription', None))
dd = description(getattr(parse_data, 'detaileddescription', None))
self._data['brief_description'] = bd
- self._data['detailed_description'] = dd
+ self._data['detailed_description'] = dd
class DoxyCompound(DoxyCompMem):
pass
class DoxyMember(DoxyCompMem):
pass
-
+
class DoxyFunction(DoxyMember):
@@ -111,7 +111,7 @@ Base.mem_classes.append(DoxyFunction)
class DoxyParam(DoxyMember):
-
+
__module__ = "gnuradio.utils.doxyxml"
def _parse(self):
@@ -126,11 +126,11 @@ class DoxyParam(DoxyMember):
declname = property(lambda self: self.data()['declname'])
class DoxyClass(DoxyCompound):
-
+
__module__ = "gnuradio.utils.doxyxml"
kind = 'class'
-
+
def _parse(self):
if self._parsed:
return
@@ -147,14 +147,14 @@ class DoxyClass(DoxyCompound):
detailed_description = property(lambda self: self.data()['detailed_description'])
Base.mem_classes.append(DoxyClass)
-
+
class DoxyFile(DoxyCompound):
-
+
__module__ = "gnuradio.utils.doxyxml"
kind = 'file'
-
+
def _parse(self):
if self._parsed:
return
@@ -164,7 +164,7 @@ class DoxyFile(DoxyCompound):
if self._error:
return
self.process_memberdefs()
-
+
brief_description = property(lambda self: self.data()['brief_description'])
detailed_description = property(lambda self: self.data()['detailed_description'])
@@ -172,16 +172,16 @@ Base.mem_classes.append(DoxyFile)
class DoxyNamespace(DoxyCompound):
-
+
__module__ = "gnuradio.utils.doxyxml"
kind = 'namespace'
-
+
Base.mem_classes.append(DoxyNamespace)
class DoxyGroup(DoxyCompound):
-
+
__module__ = "gnuradio.utils.doxyxml"
kind = 'group'
@@ -209,7 +209,7 @@ class DoxyGroup(DoxyCompound):
self.process_memberdefs()
title = property(lambda self: self.data()['title'])
-
+
Base.mem_classes.append(DoxyGroup)
@@ -224,7 +224,7 @@ Base.mem_classes.append(DoxyFriend)
class DoxyOther(Base):
-
+
__module__ = "gnuradio.utils.doxyxml"
kinds = set(['variable', 'struct', 'union', 'define', 'typedef', 'enum', 'dir', 'page'])
@@ -232,6 +232,6 @@ class DoxyOther(Base):
@classmethod
def can_parse(cls, obj):
return obj.kind in cls.kinds
-
+
Base.mem_classes.append(DoxyOther)
diff --git a/gr-howto-write-a-block/docs/doxygen/doxyxml/example/aadvark.cc b/gr-howto-write-a-block/docs/doxygen/doxyxml/example/aadvark.cc
index 5744c428a..f91c1ba56 100644
--- a/gr-howto-write-a-block/docs/doxygen/doxyxml/example/aadvark.cc
+++ b/gr-howto-write-a-block/docs/doxygen/doxyxml/example/aadvark.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010 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,
diff --git a/gr-howto-write-a-block/docs/doxygen/doxyxml/example/aadvark.h b/gr-howto-write-a-block/docs/doxygen/doxyxml/example/aadvark.h
index 7b8f29c98..d3c17445e 100644
--- a/gr-howto-write-a-block/docs/doxygen/doxyxml/example/aadvark.h
+++ b/gr-howto-write-a-block/docs/doxygen/doxyxml/example/aadvark.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010 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,
diff --git a/gr-howto-write-a-block/docs/doxygen/doxyxml/example/xml/combine.xslt b/gr-howto-write-a-block/docs/doxygen/doxyxml/example/xml/combine.xslt
index abdd9ac75..6de203a2b 100644
--- a/gr-howto-write-a-block/docs/doxygen/doxyxml/example/xml/combine.xslt
+++ b/gr-howto-write-a-block/docs/doxygen/doxyxml/example/xml/combine.xslt
@@ -1,4 +1,4 @@
-<!-- XSLT script to combine the generated output into a single file.
+<!-- XSLT script to combine the generated output into a single file.
If you have xsltproc you could use:
xsltproc combine.xslt index.xml >all.xml
-->
diff --git a/gr-howto-write-a-block/docs/doxygen/doxyxml/example/xml/compound.xsd b/gr-howto-write-a-block/docs/doxygen/doxyxml/example/xml/compound.xsd
index 369e2300f..5bb567052 100644
--- a/gr-howto-write-a-block/docs/doxygen/doxyxml/example/xml/compound.xsd
+++ b/gr-howto-write-a-block/docs/doxygen/doxyxml/example/xml/compound.xsd
@@ -173,7 +173,7 @@
<xsd:complexType name="descriptionType" mixed="true">
<xsd:sequence>
- <xsd:element name="title" type="xsd:string" minOccurs="0"/>
+ <xsd:element name="title" type="xsd:string" minOccurs="0"/>
<xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="sect1" type="docSect1Type" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="internal" type="docInternalType" minOccurs="0" />
@@ -283,7 +283,7 @@
<xsd:complexType name="docSect1Type" mixed="true">
<xsd:sequence>
- <xsd:element name="title" type="xsd:string" />
+ <xsd:element name="title" type="xsd:string" />
<xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="sect2" type="docSect2Type" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="internal" type="docInternalS1Type" minOccurs="0" />
@@ -293,7 +293,7 @@
<xsd:complexType name="docSect2Type" mixed="true">
<xsd:sequence>
- <xsd:element name="title" type="xsd:string" />
+ <xsd:element name="title" type="xsd:string" />
<xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="sect3" type="docSect3Type" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="internal" type="docInternalS2Type" minOccurs="0" />
@@ -303,7 +303,7 @@
<xsd:complexType name="docSect3Type" mixed="true">
<xsd:sequence>
- <xsd:element name="title" type="xsd:string" />
+ <xsd:element name="title" type="xsd:string" />
<xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="sect4" type="docSect4Type" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="internal" type="docInternalS3Type" minOccurs="0" />
@@ -313,7 +313,7 @@
<xsd:complexType name="docSect4Type" mixed="true">
<xsd:sequence>
- <xsd:element name="title" type="xsd:string" />
+ <xsd:element name="title" type="xsd:string" />
<xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="internal" type="docInternalS4Type" minOccurs="0" />
</xsd:sequence>
@@ -353,7 +353,7 @@
<xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
</xsd:complexType>
-
+
<xsd:group name="docTitleCmdGroup">
<xsd:choice>
<xsd:element name="ulink" type="docURLLink" />
@@ -532,20 +532,20 @@
<xsd:complexType name="docImageType" mixed="true">
<xsd:group ref="docTitleCmdGroup" minOccurs="0" maxOccurs="unbounded" />
- <xsd:attribute name="type" type="DoxImageKind" />
- <xsd:attribute name="name" type="xsd:string" />
- <xsd:attribute name="width" type="xsd:string" />
- <xsd:attribute name="height" type="xsd:string" />
+ <xsd:attribute name="type" type="DoxImageKind" />
+ <xsd:attribute name="name" type="xsd:string" />
+ <xsd:attribute name="width" type="xsd:string" />
+ <xsd:attribute name="height" type="xsd:string" />
</xsd:complexType>
<xsd:complexType name="docDotFileType" mixed="true">
<xsd:group ref="docTitleCmdGroup" minOccurs="0" maxOccurs="unbounded" />
- <xsd:attribute name="name" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
<xsd:complexType name="docTocItemType" mixed="true">
<xsd:group ref="docTitleCmdGroup" minOccurs="0" maxOccurs="unbounded" />
- <xsd:attribute name="id" type="xsd:string" />
+ <xsd:attribute name="id" type="xsd:string" />
</xsd:complexType>
<xsd:complexType name="docTocListType">
@@ -558,14 +558,14 @@
<xsd:sequence>
<xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
- <xsd:attribute name="langid" type="xsd:string" />
+ <xsd:attribute name="langid" type="xsd:string" />
</xsd:complexType>
<xsd:complexType name="docParamListType">
<xsd:sequence>
<xsd:element name="parameteritem" type="docParamListItem" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
- <xsd:attribute name="kind" type="DoxParamListKind" />
+ <xsd:attribute name="kind" type="DoxParamListKind" />
</xsd:complexType>
<xsd:complexType name="docParamListItem">
@@ -593,7 +593,7 @@
<xsd:element name="xreftitle" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="xrefdescription" type="descriptionType" />
</xsd:sequence>
- <xsd:attribute name="id" type="xsd:string" />
+ <xsd:attribute name="id" type="xsd:string" />
</xsd:complexType>
<xsd:complexType name="docCopyType">
@@ -602,11 +602,11 @@
<xsd:element name="sect1" type="docSect1Type" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="internal" type="docInternalType" minOccurs="0" />
</xsd:sequence>
- <xsd:attribute name="link" type="xsd:string" />
+ <xsd:attribute name="link" type="xsd:string" />
</xsd:complexType>
<xsd:complexType name="docCharType">
- <xsd:attribute name="char" type="DoxCharRange"/>
+ <xsd:attribute name="char" type="DoxCharRange"/>
</xsd:complexType>
<xsd:complexType name="docEmptyType"/>
diff --git a/gr-howto-write-a-block/docs/doxygen/doxyxml/example/xml/index.xsd b/gr-howto-write-a-block/docs/doxygen/doxyxml/example/xml/index.xsd
index d7ab2a906..bfe960c0f 100644
--- a/gr-howto-write-a-block/docs/doxygen/doxyxml/example/xml/index.xsd
+++ b/gr-howto-write-a-block/docs/doxygen/doxyxml/example/xml/index.xsd
@@ -25,7 +25,7 @@
<xsd:attribute name="refid" type="xsd:string" use="required"/>
<xsd:attribute name="kind" type="MemberKind" use="required"/>
</xsd:complexType>
-
+
<xsd:simpleType name="CompoundKind">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="class"/>
diff --git a/gr-howto-write-a-block/docs/doxygen/doxyxml/text.py b/gr-howto-write-a-block/docs/doxygen/doxyxml/text.py
index ddf2c36e2..629edd180 100644
--- a/gr-howto-write-a-block/docs/doxygen/doxyxml/text.py
+++ b/gr-howto-write-a-block/docs/doxygen/doxyxml/text.py
@@ -1,23 +1,23 @@
#
# Copyright 2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
"""
Utilities for extracting text from generated classes.
"""
diff --git a/gr-howto-write-a-block/docs/doxygen/other/group_defs.dox b/gr-howto-write-a-block/docs/doxygen/other/group_defs.dox
index ac40c0960..708f8c6d9 100644
--- a/gr-howto-write-a-block/docs/doxygen/other/group_defs.dox
+++ b/gr-howto-write-a-block/docs/doxygen/other/group_defs.dox
@@ -1,5 +1,5 @@
-/*!
- * \defgroup block GNU Radio HOWTO C++ Signal Processing Blocks
+/*!
+ * \defgroup block GNU Radio HOWTO C++ Signal Processing Blocks
* \brief All C++ blocks that can be used from the HOWTO GNU Radio
* module are listed here or in the subcategories below.
*
diff --git a/gr-howto-write-a-block/docs/doxygen/swig_doc.py b/gr-howto-write-a-block/docs/doxygen/swig_doc.py
index 62c8437e1..4e1ce2e47 100644
--- a/gr-howto-write-a-block/docs/doxygen/swig_doc.py
+++ b/gr-howto-write-a-block/docs/doxygen/swig_doc.py
@@ -1,23 +1,23 @@
#
# Copyright 2010,2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
"""
Creates the swig_doc.i SWIG interface file.
Execute using: python swig_doc.py xml_path outputfilename
@@ -82,13 +82,13 @@ def combine_descriptions(obj):
if dd:
description.append(dd)
return utoascii('\n\n'.join(description)).strip()
-
+
entry_templ = '%feature("docstring") {name} "{docstring}"'
def make_entry(obj, name=None, templ="{description}", description=None):
"""
Create a docstring entry for a swig interface file.
-
+
obj - a doxyxml object from which documentation will be extracted.
name - the name of the C object (defaults to obj.name())
templ - an optional template for the docstring containing only one
@@ -182,11 +182,11 @@ def make_block_entry(di, block):
def make_swig_interface_file(di, swigdocfilename, custom_output=None):
-
+
output = ["""
/*
* This file was automatically generated using swig_doc.py.
- *
+ *
* Any changes to it will be lost next time it is regenerated.
*/
"""]
diff --git a/gr-howto-write-a-block/grc/CMakeLists.txt b/gr-howto-write-a-block/grc/CMakeLists.txt
index cc43db7ba..b7bd11d80 100644
--- a/gr-howto-write-a-block/grc/CMakeLists.txt
+++ b/gr-howto-write-a-block/grc/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gr-howto-write-a-block/include/howto_square2_ff.h b/gr-howto-write-a-block/include/howto_square2_ff.h
index c45a1851f..2d6c7938b 100644
--- a/gr-howto-write-a-block/include/howto_square2_ff.h
+++ b/gr-howto-write-a-block/include/howto_square2_ff.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gr-howto-write-a-block/include/howto_square_ff.h b/gr-howto-write-a-block/include/howto_square_ff.h
index 729f1cf44..2efc7fc71 100644
--- a/gr-howto-write-a-block/include/howto_square_ff.h
+++ b/gr-howto-write-a-block/include/howto_square_ff.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gr-howto-write-a-block/lib/howto_square2_ff.cc b/gr-howto-write-a-block/lib/howto_square2_ff.cc
index 5e0fd7a43..3586559ff 100644
--- a/gr-howto-write-a-block/lib/howto_square2_ff.cc
+++ b/gr-howto-write-a-block/lib/howto_square2_ff.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
@@ -36,7 +36,7 @@
* Create a new instance of howto_square2_ff and return
* a boost shared_ptr. This is effectively the public constructor.
*/
-howto_square2_ff_sptr
+howto_square2_ff_sptr
howto_make_square2_ff ()
{
return gnuradio::get_initial_sptr(new howto_square2_ff ());
@@ -75,7 +75,7 @@ howto_square2_ff::~howto_square2_ff ()
// nothing else required in this example
}
-int
+int
howto_square2_ff::work (int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items)
diff --git a/gr-howto-write-a-block/lib/howto_square_ff.cc b/gr-howto-write-a-block/lib/howto_square_ff.cc
index f1d5a7848..f0d2e1f86 100644
--- a/gr-howto-write-a-block/lib/howto_square_ff.cc
+++ b/gr-howto-write-a-block/lib/howto_square_ff.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
@@ -36,7 +36,7 @@
* Create a new instance of howto_square_ff and return
* a boost shared_ptr. This is effectively the public constructor.
*/
-howto_square_ff_sptr
+howto_square_ff_sptr
howto_make_square_ff ()
{
return gnuradio::get_initial_sptr(new howto_square_ff ());
@@ -75,7 +75,7 @@ howto_square_ff::~howto_square_ff ()
// nothing else required in this example
}
-int
+int
howto_square_ff::general_work (int noutput_items,
gr_vector_int &ninput_items,
gr_vector_const_void_star &input_items,
diff --git a/gr-howto-write-a-block/lib/qa_howto_square2_ff.cc b/gr-howto-write-a-block/lib/qa_howto_square2_ff.cc
index 9c37b62c1..ff1e5d5b0 100644
--- a/gr-howto-write-a-block/lib/qa_howto_square2_ff.cc
+++ b/gr-howto-write-a-block/lib/qa_howto_square2_ff.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
diff --git a/gr-howto-write-a-block/lib/qa_howto_square_ff.cc b/gr-howto-write-a-block/lib/qa_howto_square_ff.cc
index da1d3040a..98f6cc587 100644
--- a/gr-howto-write-a-block/lib/qa_howto_square_ff.cc
+++ b/gr-howto-write-a-block/lib/qa_howto_square_ff.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
diff --git a/gr-howto-write-a-block/python/CMakeLists.txt b/gr-howto-write-a-block/python/CMakeLists.txt
index 5da80ef15..d5fb19523 100644
--- a/gr-howto-write-a-block/python/CMakeLists.txt
+++ b/gr-howto-write-a-block/python/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gr-howto-write-a-block/python/__init__.py b/gr-howto-write-a-block/python/__init__.py
index 86395851d..575cbfc22 100644
--- a/gr-howto-write-a-block/python/__init__.py
+++ b/gr-howto-write-a-block/python/__init__.py
@@ -1,16 +1,16 @@
#
# Copyright 2008,2009 Free Software Foundation, Inc.
-#
+#
# This application 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.
-#
+#
# This application 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 this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -34,7 +34,7 @@ except ImportError:
from DLFCN import RTLD_GLOBAL as _RTLD_GLOBAL
except ImportError:
pass
-
+
if _RTLD_GLOBAL != 0:
_dlopenflags = sys.getdlopenflags()
sys.setdlopenflags(_dlopenflags|_RTLD_GLOBAL)
diff --git a/gr-howto-write-a-block/python/qa_howto.py b/gr-howto-write-a-block/python/qa_howto.py
index 630f57bf4..7321941d5 100755
--- a/gr-howto-write-a-block/python/qa_howto.py
+++ b/gr-howto-write-a-block/python/qa_howto.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2007 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
import howto_swig
@@ -54,6 +54,6 @@ class qa_howto (gr_unittest.TestCase):
self.tb.run ()
result_data = dst.data ()
self.assertFloatTuplesAlmostEqual (expected_result, result_data, 6)
-
+
if __name__ == '__main__':
gr_unittest.main ()
diff --git a/gr-noaa/CMakeLists.txt b/gr-noaa/CMakeLists.txt
index fc10caff4..09ce2a329 100644
--- a/gr-noaa/CMakeLists.txt
+++ b/gr-noaa/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gr-noaa/grc/CMakeLists.txt b/gr-noaa/grc/CMakeLists.txt
index 92d707477..ae04d4b6e 100644
--- a/gr-noaa/grc/CMakeLists.txt
+++ b/gr-noaa/grc/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gr-noaa/lib/noaa_hrpt.h b/gr-noaa/lib/noaa_hrpt.h
index 3812e9368..f0f0e53f4 100644
--- a/gr-noaa/lib/noaa_hrpt.h
+++ b/gr-noaa/lib/noaa_hrpt.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009 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,
diff --git a/gr-noaa/lib/noaa_hrpt_decoder.cc b/gr-noaa/lib/noaa_hrpt_decoder.cc
index 243310089..d6a063285 100644
--- a/gr-noaa/lib/noaa_hrpt_decoder.cc
+++ b/gr-noaa/lib/noaa_hrpt_decoder.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009 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,
@@ -142,7 +142,7 @@ noaa_hrpt_decoder::process_mfnum()
else
if (d_verbose)
fprintf(stderr, " ");
-
+
if (d_verbose)
fprintf(stderr, "%i ", d_current_mfnum);
d_expected_mfnum = (d_current_mfnum == 3) ? 1 : d_current_mfnum+1;
diff --git a/gr-noaa/lib/noaa_hrpt_decoder.h b/gr-noaa/lib/noaa_hrpt_decoder.h
index 4db09106e..3b3214b72 100644
--- a/gr-noaa/lib/noaa_hrpt_decoder.h
+++ b/gr-noaa/lib/noaa_hrpt_decoder.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009 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,
diff --git a/gr-noaa/lib/noaa_hrpt_deframer.cc b/gr-noaa/lib/noaa_hrpt_deframer.cc
index 1a2af6c37..d668ccad3 100644
--- a/gr-noaa/lib/noaa_hrpt_deframer.cc
+++ b/gr-noaa/lib/noaa_hrpt_deframer.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009 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,
@@ -86,7 +86,7 @@ noaa_hrpt_deframer::general_work(int noutput_items,
switch (d_state) {
case ST_IDLE:
d_shifter = (d_shifter << 1) | bit; // MSB transmitted first
-
+
if ((d_shifter & 0x0FFFFFFFFFFFFFFFLL) == HRPT_MINOR_FRAME_SYNC) {
out[j++] = HRPT_SYNC1;
out[j++] = HRPT_SYNC2;
@@ -97,7 +97,7 @@ noaa_hrpt_deframer::general_work(int noutput_items,
enter_synced();
}
break;
-
+
case ST_SYNCED:
d_word = (d_word << 1) | bit; // MSB transmitted first
if (--d_bit_count == 0) {
@@ -109,7 +109,7 @@ noaa_hrpt_deframer::general_work(int noutput_items,
}
}
break;
-
+
default:
throw std::runtime_error("noaa_hrpt_deframer: bad state\n");
}
diff --git a/gr-noaa/lib/noaa_hrpt_deframer.h b/gr-noaa/lib/noaa_hrpt_deframer.h
index d254746af..475ad90f6 100644
--- a/gr-noaa/lib/noaa_hrpt_deframer.h
+++ b/gr-noaa/lib/noaa_hrpt_deframer.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009 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,
@@ -47,7 +47,7 @@ class NOAA_API noaa_hrpt_deframer : public gr_block
void enter_idle();
void enter_synced();
-
+
public:
int general_work(int noutput_items,
gr_vector_int &ninput_items,
diff --git a/gr-noaa/lib/noaa_hrpt_pll_cf.cc b/gr-noaa/lib/noaa_hrpt_pll_cf.cc
index ba2ce98d5..ea948f04b 100644
--- a/gr-noaa/lib/noaa_hrpt_pll_cf.cc
+++ b/gr-noaa/lib/noaa_hrpt_pll_cf.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009 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,
diff --git a/gr-noaa/lib/noaa_hrpt_pll_cf.h b/gr-noaa/lib/noaa_hrpt_pll_cf.h
index 8d3e8f8d5..178dccfb3 100644
--- a/gr-noaa/lib/noaa_hrpt_pll_cf.h
+++ b/gr-noaa/lib/noaa_hrpt_pll_cf.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009 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,
diff --git a/gr-noaa/oct/frames_to_ppm.m b/gr-noaa/oct/frames_to_ppm.m
index 73842f0a9..099f96f2b 100644
--- a/gr-noaa/oct/frames_to_ppm.m
+++ b/gr-noaa/oct/frames_to_ppm.m
@@ -1,24 +1,24 @@
% -*- octave -*-
%
% Copyright 2009 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,
% Boston, MA 02110-1301, USA.
-%
+%
% Extract AVHRR images from HRPT frames.dat
clear
@@ -40,7 +40,7 @@ for line = 1:len
start = start + frame_len;
stop = stop + frame_len;
end
-
+
start = 752;
stop = 10987;
@@ -49,7 +49,7 @@ for line = 1:len
start = start + frame_len;
stop = stop + frame_len;
end
-
+
start = 753;
stop = 10988;
@@ -58,7 +58,7 @@ for line = 1:len
start = start + frame_len;
stop = stop + frame_len;
end
-
+
start = 754;
stop = 10989;
@@ -67,7 +67,7 @@ for line = 1:len
start = start + frame_len;
stop = stop + frame_len;
end
-
+
start = 755;
stop = 10990;
@@ -77,7 +77,7 @@ for line = 1:len
stop = stop + frame_len;
end
-colormap(gray)
+colormap(gray)
saveimage("chan1.ppm", chan1/4, 'ppm')
saveimage("chan2.ppm", chan2/4, 'ppm')
saveimage("chan3.ppm", chan3/4, 'ppm')
diff --git a/gr-noaa/swig/__init__.py b/gr-noaa/swig/__init__.py
index b82603953..5ea4d934c 100644
--- a/gr-noaa/swig/__init__.py
+++ b/gr-noaa/swig/__init__.py
@@ -1,23 +1,23 @@
#
# Copyright 2009 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,
# Boston, MA 02110-1301, USA.
-#
+#
# The presence of this file turns this directory into a Python package
diff --git a/gr-noaa/swig/noaa_hrpt_decoder.i b/gr-noaa/swig/noaa_hrpt_decoder.i
index 220a5714d..a3f8f48c3 100644
--- a/gr-noaa/swig/noaa_hrpt_decoder.i
+++ b/gr-noaa/swig/noaa_hrpt_decoder.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009 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,
diff --git a/gr-noaa/swig/noaa_hrpt_deframer.i b/gr-noaa/swig/noaa_hrpt_deframer.i
index 6914b93e6..833ad18ad 100644
--- a/gr-noaa/swig/noaa_hrpt_deframer.i
+++ b/gr-noaa/swig/noaa_hrpt_deframer.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009 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,
diff --git a/gr-noaa/swig/noaa_hrpt_pll_cf.i b/gr-noaa/swig/noaa_hrpt_pll_cf.i
index 859548a2d..2a5f524b3 100644
--- a/gr-noaa/swig/noaa_hrpt_pll_cf.i
+++ b/gr-noaa/swig/noaa_hrpt_pll_cf.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009 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,
diff --git a/gr-noaa/swig/noaa_swig.i b/gr-noaa/swig/noaa_swig.i
index 8f120cfa6..3c4d19650 100644
--- a/gr-noaa/swig/noaa_swig.i
+++ b/gr-noaa/swig/noaa_swig.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009 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,
diff --git a/gr-pager/CMakeLists.txt b/gr-pager/CMakeLists.txt
index 8dfecced7..845444859 100644
--- a/gr-pager/CMakeLists.txt
+++ b/gr-pager/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gr-pager/README b/gr-pager/README
index 2d4f3c95c..441fee0b4 100644
--- a/gr-pager/README
+++ b/gr-pager/README
@@ -26,10 +26,10 @@ usrp_flex.py - Receives and displays pages from a single paging channel. To
Example, to receive from 931.95M (a common nationwide channel) with DBSRX in
side A of USRP:
-
+
$ usrp_flex.py -f 931.95M -g 32 -R A
-
+
usrp_flex_band.py - Receives and displays pages from a 1 MHz paging band (40 pager
channels.) To work from recorded data, record from USRP with
decimation 64 at center frequency.
@@ -48,8 +48,8 @@ Usage: usrp_flex_band.py [options]
Example, to receive from the lower third of the pager band with DBSRX in side B
of USRP:
-
- $ usrp_flex_band.py -f 929.5M -g 32 -R B
+
+ $ usrp_flex_band.py -f 929.5M -g 32 -R B
usrp_flex_all.py - Receives and displays pages from entire pager band (3 MHz,
120 pager channels.) This does not work in real time due
@@ -69,11 +69,11 @@ usrp_flex_all.py - Receives and displays pages from entire pager band (3 MHz,
-v, --verbose display debug output
Example, to receive all pager channels with DBSRX in side A:
-
+
$ usrp_flex_all.py -R A
The demodulator is relatively sensitive to frequency offset and can capture a signal
-within 3k of the actual signal.
+within 3k of the actual signal.
All three scripts take a 'calibration' parameter, which specifies the frequency offset
of the daughterboard. This causes the USRP to be tuned to the given center frequency
diff --git a/gr-pager/apps/CMakeLists.txt b/gr-pager/apps/CMakeLists.txt
index 5fa926031..a02cad56e 100644
--- a/gr-pager/apps/CMakeLists.txt
+++ b/gr-pager/apps/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gr-pager/apps/usrp_flex b/gr-pager/apps/usrp_flex
index 7d0d66a95..33877ea4e 100755
--- a/gr-pager/apps/usrp_flex
+++ b/gr-pager/apps/usrp_flex
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2006,2007,2009,2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gru, uhd, optfir, eng_notation, pager
from gnuradio.eng_option import eng_option
@@ -32,7 +32,7 @@ class app_top_block(gr.top_block):
self.offset = 0.0
self.adj_time = time.time()
self.verbose = options.verbose
-
+
if options.from_file is None:
# Set up USRP source
self.u = uhd.usrp_source(device_addr=options.address, stream_args=uhd.stream_args('fc32'))
@@ -44,7 +44,7 @@ class app_top_block(gr.top_block):
if rate != 250e3:
print "Unable to set required sample rate of 250 Ksps (got %f)" % rate
sys.exit(1)
-
+
# Tune daughterboard
r = self.u.set_center_freq(options.freq+options.calibration, 0)
if not r:
@@ -60,15 +60,15 @@ class app_top_block(gr.top_block):
print "\nNo gain specified."
print "Setting gain to %f (from [%f, %f])" % \
(options.rx_gain, grange.start(), grange.stop())
-
+
self.u.set_gain(options.rx_gain, 0)
-
+
else:
# Use supplied file as source of samples
self.u = gr.file_source(gr.sizeof_gr_complex, options.from_file)
if options.verbose:
print "Reading samples from", options.from_file
-
+
if options.log and not options.from_file:
usrp_sink = gr.file_sink(gr.sizeof_gr_complex, 'usrp.dat')
self.connect(self.u, usrp_sink)
@@ -81,7 +81,7 @@ class app_top_block(gr.top_block):
12500, # One-sided channel bandwidth
0.1, # Passband ripple
60) # Stopband attenuation
-
+
if options.verbose:
print "Channel filter has", len(taps), "taps."
@@ -109,7 +109,7 @@ class app_top_block(gr.top_block):
self.chan.set_center_freq(self.offset)
if self.verbose:
print "Channel frequency offset (Hz):", int(self.offset)
-
+
def get_options():
parser = OptionParser(option_class=eng_option)
@@ -140,7 +140,7 @@ def get_options():
if (options.freq is None):
sys.stderr.write("You must specify -f FREQ or --freq FREQ\n")
sys.exit(1)
-
+
return (options, args)
if __name__ == "__main__":
@@ -151,7 +151,7 @@ if __name__ == "__main__":
queue = gr.msg_queue()
tb = app_top_block(options, queue)
runner = pager.queue_runner(queue)
-
+
try:
tb.run()
except KeyboardInterrupt:
diff --git a/gr-pager/apps/usrp_flex_all b/gr-pager/apps/usrp_flex_all
index 36bd90034..75c4c1e73 100755
--- a/gr-pager/apps/usrp_flex_all
+++ b/gr-pager/apps/usrp_flex_all
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2006,2007,2009 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gru, uhd, optfir, eng_notation, blks2, pager
from gnuradio.eng_option import eng_option
@@ -59,7 +59,7 @@ class app_top_block(gr.top_block):
print "\nNo gain specified."
print "Setting gain to %f (from [%f, %f])" % \
(options.rx_gain, grange.start(), grange.stop())
-
+
self.u.set_gain(options.rx_gain, 0)
# Grab >=3 MHz of spectrum, evenly divisible by 25 KHz channels
@@ -74,11 +74,11 @@ class app_top_block(gr.top_block):
if (rate != 3.2e6):
print "Unable to set required sample rate for >= 3MHz of 25 KHz channels."
sys.exit(1)
-
+
self.nchan = int(rate/25e3)
if options.verbose:
print "\nReceiving", rate/1e6, "MHz of bandwidth containing", self.nchan, "baseband channels."
-
+
taps = gr.firdes.low_pass(1.0,
1.0,
1.0/self.nchan*0.4,
@@ -143,7 +143,7 @@ def get_options():
sys.exit(1)
return (options, args)
-
+
def main():
@@ -159,6 +159,6 @@ def main():
pass
runner.end()
-
+
if __name__ == "__main__":
main()
diff --git a/gr-pager/apps/usrp_flex_band b/gr-pager/apps/usrp_flex_band
index 63fb93fa1..5ec0065d6 100755
--- a/gr-pager/apps/usrp_flex_band
+++ b/gr-pager/apps/usrp_flex_band
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2006,2007,2009,2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gru, uhd, optfir, eng_notation, blks2, pager
from gnuradio.eng_option import eng_option
@@ -44,7 +44,7 @@ class app_top_block(gr.top_block):
if rate != 1e6:
print "Unable to set required sample rate of 1 Msps (got %f)" % rate
sys.exit(1)
-
+
# Tune daughterboard
r = self.u.set_center_freq(options.freq+options.calibration, 0)
if not r:
@@ -60,7 +60,7 @@ class app_top_block(gr.top_block):
print "\nNo gain specified."
print "Setting gain to %f (from [%f, %f])" % \
(options.rx_gain, grange.start(), grange.stop())
-
+
self.u.set_gain(options.rx_gain, 0)
@@ -120,10 +120,10 @@ def get_options():
if (options.freq is None):
sys.stderr.write("You must specify -f FREQ or --freq FREQ\n")
sys.exit(1)
-
+
return (options, args)
-
+
if __name__ == "__main__":
(options, args) = get_options()
diff --git a/gr-pager/grc/CMakeLists.txt b/gr-pager/grc/CMakeLists.txt
index 2b01a1e0b..c982995b0 100644
--- a/gr-pager/grc/CMakeLists.txt
+++ b/gr-pager/grc/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gr-pager/lib/pager_flex_deinterleave.cc b/gr-pager/lib/pager_flex_deinterleave.cc
index a51670b22..f7f1d9f69 100644
--- a/gr-pager/lib/pager_flex_deinterleave.cc
+++ b/gr-pager/lib/pager_flex_deinterleave.cc
@@ -1,18 +1,18 @@
/*
* Copyright 2004,2006,2010 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,
@@ -46,7 +46,7 @@ int pager_flex_deinterleave::work(int noutput_items,
gr_vector_void_star &output_items)
{
const unsigned char *in = (const unsigned char *)input_items[0];
- gr_int32 *out = (gr_int32 *)output_items[0];
+ gr_int32 *out = (gr_int32 *)output_items[0];
// FLEX codewords are interleaved in blocks of 256 bits or 8, 32 bit
// codes. To deinterleave we parcel each incoming bit into the MSB
@@ -56,7 +56,7 @@ int pager_flex_deinterleave::work(int noutput_items,
// conversion to data words.
//
// FLEX data words are recovered by reversing the bit order of the code
- // word, masking off the (reversed) ECC, and inverting the remainder of
+ // word, masking off the (reversed) ECC, and inverting the remainder of
// the bits (!).
//
// The data portion of a FLEX frame consists of 11 of these deinterleaved
@@ -73,14 +73,14 @@ int pager_flex_deinterleave::work(int noutput_items,
}
}
- // Now convert code words into data words
+ // Now convert code words into data words
for (j = 0; j < 8; j++) {
gr_int32 codeword = d_codewords[j];
-
+
// Apply BCH 32,21 error correction
// TODO: mark dataword when codeword fails ECC
pageri_bch3221(codeword);
-
+
// Reverse bit order
codeword = pageri_reverse_bits32(codeword);
@@ -89,6 +89,6 @@ int pager_flex_deinterleave::work(int noutput_items,
*out++ = codeword;
}
-
+
return j;
}
diff --git a/gr-pager/lib/pager_flex_deinterleave.h b/gr-pager/lib/pager_flex_deinterleave.h
index 87094490d..c702da23d 100644
--- a/gr-pager/lib/pager_flex_deinterleave.h
+++ b/gr-pager/lib/pager_flex_deinterleave.h
@@ -1,18 +1,18 @@
/*
* Copyright 2006 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,
@@ -44,11 +44,11 @@ private:
// One FLEX block of deinterleaved data
gr_int32 d_codewords[8];
-
+
public:
int work(int noutput_items,
- gr_vector_const_void_star &input_items,
+ gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items);
};
diff --git a/gr-pager/lib/pager_flex_frame.cc b/gr-pager/lib/pager_flex_frame.cc
index b707dbbc4..949f60320 100644
--- a/gr-pager/lib/pager_flex_frame.cc
+++ b/gr-pager/lib/pager_flex_frame.cc
@@ -1,18 +1,18 @@
/*
* Copyright 2006 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,
diff --git a/gr-pager/lib/pager_flex_frame.h b/gr-pager/lib/pager_flex_frame.h
index 857b49d29..61973f722 100644
--- a/gr-pager/lib/pager_flex_frame.h
+++ b/gr-pager/lib/pager_flex_frame.h
@@ -1,18 +1,18 @@
/*
* Copyright 2006 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,
diff --git a/gr-pager/lib/pager_flex_parse.cc b/gr-pager/lib/pager_flex_parse.cc
index 19d3d96c6..9418c4461 100644
--- a/gr-pager/lib/pager_flex_parse.cc
+++ b/gr-pager/lib/pager_flex_parse.cc
@@ -1,18 +1,18 @@
/*
* Copyright 2004,2006,2007,2010 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,
@@ -50,7 +50,7 @@ int pager_flex_parse::work(int noutput_items,
gr_vector_void_star &output_items)
{
const gr_int32 *in = (const gr_int32 *)input_items[0];
-
+
int i = 0;
while (i < noutput_items) {
// Accumulate one whole frame's worth of data words (88 of them)
@@ -74,8 +74,8 @@ void pager_flex_parse::parse_capcode(gr_int32 aw1, gr_int32 aw2)
{
d_laddr = (aw1 < 0x008001L) ||
(aw1 > 0x1E0000L) ||
- (aw1 > 0x1E7FFEL);
-
+ (aw1 > 0x1E7FFEL);
+
if (d_laddr)
d_capcode = aw1+((aw2^0x001FFFFF)<<15)+0x1F9000; // Don't ask
else
@@ -95,7 +95,7 @@ void pager_flex_parse::parse_data()
// Address start address is bits 9-8, plus one for offset
int voffset = (biw >> 10) & 0x3f;
int aoffset = ((biw >> 8) & 0x03) + 1;
-
+
//printf("BIW:%08X AW:%02i-%02i\n", biw, aoffset, voffset);
// Iterate through pages and dispatch to appropriate handler
@@ -109,9 +109,9 @@ void pager_flex_parse::parse_data()
parse_capcode(d_datawords[i], d_datawords[i+1]);
if (d_laddr)
i++;
-
+
if (d_capcode < 0) // Invalid address, skip
- continue;
+ continue;
// Parse vector information word for address @ offset 'i'
gr_int32 viw = d_datawords[j];
@@ -122,7 +122,7 @@ void pager_flex_parse::parse_data()
if (is_numeric_page(d_type))
len &= 0x07;
int mw2 = mw1+len;
-
+
if (mw1 == 0 && mw2 == 0)
continue; // Invalid VIW
@@ -135,7 +135,7 @@ void pager_flex_parse::parse_data()
d_payload.str("");
d_payload.setf(std::ios::showpoint);
d_payload << std::setprecision(6) << std::setw(7)
- << d_freq/1e6 << FIELD_DELIM
+ << d_freq/1e6 << FIELD_DELIM
<< std::setw(10) << d_capcode << FIELD_DELIM
<< flex_page_desc[d_type] << FIELD_DELIM;
@@ -167,7 +167,7 @@ void pager_flex_parse::parse_alphanumeric(int mw1, int mw2, int j)
frag = (d_datawords[j+1] >> 11) & 0x03;
cont = (d_datawords[j+1] >> 10) & 0x01;
mw2--;
- }
+ }
//d_payload << frag << FIELD_DELIM;
//d_payload << cont << FIELD_DELIM;
@@ -175,17 +175,17 @@ void pager_flex_parse::parse_alphanumeric(int mw1, int mw2, int j)
for (int i = mw1; i <= mw2; i++) {
gr_int32 dw = d_datawords[i];
unsigned char ch;
-
+
if (i > mw1 || frag != 0x03) {
ch = dw & 0x7F;
if (ch != 0x03)
d_payload << ch;
}
-
+
ch = (dw >> 7) & 0x7F;
if (ch != 0x03) // Fill
d_payload << ch;
-
+
ch = (dw >> 14) & 0x7F;
if (ch != 0x03) // Fill
d_payload << ch;
@@ -212,7 +212,7 @@ void pager_flex_parse::parse_numeric(int mw1, int mw2, int j)
count += 10; // Skip 10 header bits for numbered numeric pages
else
count += 2; // Otherwise skip 2
-
+
for (int i = mw1; i <= mw2; i++) {
for (int k = 0; k < 21; k++) {
// Shift LSB from data word into digit
@@ -226,7 +226,7 @@ void pager_flex_parse::parse_numeric(int mw1, int mw2, int j)
count = 4;
}
}
-
+
dw = d_datawords[i];
}
}
diff --git a/gr-pager/lib/pager_flex_parse.h b/gr-pager/lib/pager_flex_parse.h
index dcbd19eae..499be299a 100644
--- a/gr-pager/lib/pager_flex_parse.h
+++ b/gr-pager/lib/pager_flex_parse.h
@@ -1,18 +1,18 @@
/*
* Copyright 2006 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,
@@ -56,17 +56,17 @@ private:
int d_capcode; // Current page destination address
bool d_laddr; // Current page has long address
float d_freq; // Channel frequency
-
+
void parse_data(); // Handle a frame's worth of data
- void parse_capcode(gr_int32 aw1, gr_int32 aw2);
+ void parse_capcode(gr_int32 aw1, gr_int32 aw2);
void parse_alphanumeric(int mw1, int mw2, int j);
void parse_numeric(int mw1, int mw2, int j);
void parse_tone_only();
void parse_unknown(int mw1, int mw2);
-
+
public:
int work(int noutput_items,
- gr_vector_const_void_star &input_items,
+ gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items);
};
diff --git a/gr-pager/lib/pager_flex_sync.cc b/gr-pager/lib/pager_flex_sync.cc
index 30666298f..c31acd7d2 100644
--- a/gr-pager/lib/pager_flex_sync.cc
+++ b/gr-pager/lib/pager_flex_sync.cc
@@ -1,18 +1,18 @@
/*
* Copyright 2004,2006,2010 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,
@@ -36,7 +36,7 @@ pager_flex_sync_sptr pager_make_flex_sync()
return gnuradio::get_initial_sptr(new pager_flex_sync());
}
-// FLEX sync block takes input from sliced baseband stream [0-3] at specified
+// FLEX sync block takes input from sliced baseband stream [0-3] at specified
// channel rate. Symbol timing is established based on receiving one of the
// defined FLEX protocol synchronization words. The block outputs one FLEX frame
// worth of bits on each output phase for the data portion of the frame. Unused phases
@@ -75,7 +75,7 @@ bool pager_flex_sync::test_sync(unsigned char sym)
//
// Where BBBBBBBB is always 0xA6C6AAAA
// and AAAA^CCCC is 0xFFFF
- //
+ //
// Specific values of AAAA determine what bps and encoding the
// packet is beyond the frame information word
//
@@ -158,9 +158,9 @@ void pager_flex_sync::enter_sync2()
// We're here at the center of a 1600 baud bit
// So this hack puts the index and bit counter
// in the right place for 3200 bps.
- d_index = d_index/2-d_spb/2;
- d_count = -1;
- }
+ d_index = d_index/2-d_spb/2;
+ d_count = -1;
+ }
}
void pager_flex_sync::enter_data()
@@ -177,7 +177,7 @@ void pager_flex_sync::parse_fiw()
// Bits 31-28 are frame number related, but unknown function
// This might be a checksum
d_unknown2 = pageri_reverse_bits8((d_fiw >> 24) & 0xF0);
-
+
// Cycle is bits 27-24, reversed
d_cycle = pageri_reverse_bits8((d_fiw >> 20) & 0xF0);
@@ -204,7 +204,7 @@ int pager_flex_sync::output_symbol(unsigned char sym)
// At 1600 bps, 2-level, a single "phase" is transmitted with bit
// value '0' using level '3' and bit value '1' using level '0'.
//
- // At 1600 bps, 4-level, a second "phase" is transmitted, and the
+ // At 1600 bps, 4-level, a second "phase" is transmitted, and the
// di-bits are encoded with a gray code:
//
// Symbol Phase 1 Phase 2
@@ -220,9 +220,9 @@ int pager_flex_sync::output_symbol(unsigned char sym)
// additionally two streams are interleaved on alternating symbols.
// Thus, PHASE A (and PHASE B if 4-level) are decoded on one symbol,
// then PHASE C (and PHASE D if 4-level) are decoded on the next.
-
+
int bits = 0;
-
+
if (d_baudrate == 1600) {
d_bit_a = (sym < 2);
if (d_levels == 4)
@@ -275,7 +275,7 @@ int pager_flex_sync::general_work(int noutput_items,
while (i < ninputs && j < noutput_items) {
unsigned char sym = *in++; i++;
d_index = (d_index+1) % d_spb;
-
+
switch (d_state) {
case ST_IDLE:
// Continually compare the received symbol stream
@@ -283,14 +283,14 @@ int pager_flex_sync::general_work(int noutput_items,
if (test_sync(sym))
enter_syncing();
break;
-
+
case ST_SYNCING:
// Wait until we stop seeing sync, then calculate
// the center of the bit period (d_center)
if (!test_sync(sym))
enter_sync1();
break;
-
+
case ST_SYNC1:
// Skip 16 bits of dotting, then accumulate 32 bits
// of Frame Information Word.
@@ -300,11 +300,11 @@ int pager_flex_sync::general_work(int noutput_items,
// FIW is accumulated, call BCH to error correct it
pageri_bch3221(d_fiw);
parse_fiw();
- enter_sync2();
+ enter_sync2();
}
}
break;
-
+
case ST_SYNC2:
// This part and the remainder of the frame are transmitted
// at either 1600 bps or 3200 bps based on the received
@@ -316,14 +316,14 @@ int pager_flex_sync::general_work(int noutput_items,
enter_data();
}
break;
-
+
case ST_DATA:
- // The data portion of the frame is 1760 ms long at either
+ // The data portion of the frame is 1760 ms long at either
// baudrate. This is 2816 bits @ 1600 bps and 5632 bits @ 3200 bps.
// The output_symbol() routine decodes and doles out the bits
// to each of the four transmitted phases of FLEX interleaved codes.
if (d_index == d_center) {
- j += output_symbol(sym);
+ j += output_symbol(sym);
if (++d_count == d_baudrate*1760/1000)
enter_idle();
}
diff --git a/gr-pager/lib/pager_flex_sync.h b/gr-pager/lib/pager_flex_sync.h
index 53b6f950a..b53737d12 100644
--- a/gr-pager/lib/pager_flex_sync.h
+++ b/gr-pager/lib/pager_flex_sync.h
@@ -1,18 +1,18 @@
/*
* Copyright 2006 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,
@@ -42,7 +42,7 @@ private:
// Constructors
friend PAGER_API pager_flex_sync_sptr pager_make_flex_sync();
pager_flex_sync();
-
+
// State machine transitions
void enter_idle();
void enter_syncing();
@@ -53,14 +53,14 @@ private:
int index_avg(int start, int end);
bool test_sync(unsigned char sym);
void parse_fiw();
- int output_symbol(unsigned char sym);
-
+ int output_symbol(unsigned char sym);
+
// Simple state machine
enum state_t { ST_IDLE, ST_SYNCING, ST_SYNC1, ST_SYNC2, ST_DATA };
- state_t d_state;
+ state_t d_state;
int d_index; // Index into current baud
- int d_start; // Start of good sync
+ int d_start; // Start of good sync
int d_center; // Center of bit
int d_end; // End of good sync
int d_count; // Bit counter
@@ -70,7 +70,7 @@ private:
int d_levels; // Current decoding levels
int d_spb; // Current samples per baud
bool d_hibit; // Alternating bit indicator for 3200 bps
-
+
gr_int32 d_fiw; // Frame information word
int d_frame; // Current FLEX frame
int d_cycle; // Current FLEX cycle
@@ -81,12 +81,12 @@ private:
unsigned char d_bit_b;
unsigned char d_bit_c;
unsigned char d_bit_d;
-
- unsigned char *d_phase_a;
+
+ unsigned char *d_phase_a;
unsigned char *d_phase_b;
unsigned char *d_phase_c;
unsigned char *d_phase_d;
-
+
gr_int64_vector d_sync; // Trial synchronizers
public:
@@ -94,7 +94,7 @@ public:
int general_work(int noutput_items,
gr_vector_int &ninput_items,
- gr_vector_const_void_star &input_items,
+ gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items);
};
diff --git a/gr-pager/lib/pager_slicer_fb.cc b/gr-pager/lib/pager_slicer_fb.cc
index 53ba7b9de..415e898cd 100644
--- a/gr-pager/lib/pager_slicer_fb.cc
+++ b/gr-pager/lib/pager_slicer_fb.cc
@@ -1,18 +1,18 @@
/*
* Copyright 2004,2006,2007,2010 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,
@@ -53,7 +53,7 @@ unsigned char pager_slicer_fb::slice(float sample)
sample -= d_avg;
if (sample > 0) {
- if (sample > 2.0)
+ if (sample > 2.0)
decision = 3;
else
decision = 2;
diff --git a/gr-pager/lib/pager_slicer_fb.h b/gr-pager/lib/pager_slicer_fb.h
index b3d92780f..cbbf9cd22 100644
--- a/gr-pager/lib/pager_slicer_fb.h
+++ b/gr-pager/lib/pager_slicer_fb.h
@@ -1,18 +1,18 @@
/*
* Copyright 2006,2007 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,
@@ -48,7 +48,7 @@ private:
public:
int work (int noutput_items,
- gr_vector_const_void_star &input_items,
+ gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items);
float dc_offset() const { return d_avg; }
diff --git a/gr-pager/lib/pageri_bch3221.cc b/gr-pager/lib/pageri_bch3221.cc
index 984ed4d44..9c6dd8148 100644
--- a/gr-pager/lib/pageri_bch3221.cc
+++ b/gr-pager/lib/pageri_bch3221.cc
@@ -1,18 +1,18 @@
/*
* Copyright 2006 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,
diff --git a/gr-pager/lib/pageri_bch3221.h b/gr-pager/lib/pageri_bch3221.h
index 9dd2be86a..54227e438 100644
--- a/gr-pager/lib/pageri_bch3221.h
+++ b/gr-pager/lib/pageri_bch3221.h
@@ -1,18 +1,18 @@
/*
* Copyright 2006 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,
diff --git a/gr-pager/lib/pageri_flex_modes.cc b/gr-pager/lib/pageri_flex_modes.cc
index 4553e0bf3..ad424fda1 100644
--- a/gr-pager/lib/pageri_flex_modes.cc
+++ b/gr-pager/lib/pageri_flex_modes.cc
@@ -1,18 +1,18 @@
/*
* Copyright 2006,2007 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,
@@ -21,7 +21,7 @@
#include "pageri_flex_modes.h"
-const flex_mode_t flex_modes[] =
+const flex_mode_t flex_modes[] =
{
{ 0x870C78F3, 1600, 2 },
{ 0xB0684F97, 1600, 4 },
@@ -51,7 +51,7 @@ int find_flex_mode(gr_int32 sync_code)
for (int i = 0; i < num_flex_modes; i++)
if (flex_modes[i].sync == sync_code)
return i;
-
+
// Not found
return -1;
}
diff --git a/gr-pager/lib/pageri_flex_modes.h b/gr-pager/lib/pageri_flex_modes.h
index bc53c12bf..6d81613d7 100644
--- a/gr-pager/lib/pageri_flex_modes.h
+++ b/gr-pager/lib/pageri_flex_modes.h
@@ -1,18 +1,18 @@
/*
* Copyright 2006,2007 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,
diff --git a/gr-pager/lib/pageri_util.cc b/gr-pager/lib/pageri_util.cc
index bdd095706..7fa85e6ed 100644
--- a/gr-pager/lib/pageri_util.cc
+++ b/gr-pager/lib/pageri_util.cc
@@ -1,18 +1,18 @@
/*
* Copyright 2006 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,
@@ -27,8 +27,8 @@
unsigned char pageri_reverse_bits8(unsigned char val)
{
- // This method was attributed to Rich Schroeppel in the Programming
- // Hacks section of Beeler, M., Gosper, R. W., and Schroeppel, R.
+ // This method was attributed to Rich Schroeppel in the Programming
+ // Hacks section of Beeler, M., Gosper, R. W., and Schroeppel, R.
// HAKMEM. MIT AI Memo 239, Feb. 29, 1972.
//
// Reverses 8 bits in 5 machine operations with 64 bit arch
diff --git a/gr-pager/lib/pageri_util.h b/gr-pager/lib/pageri_util.h
index 78ae7aab3..b90cddcce 100644
--- a/gr-pager/lib/pageri_util.h
+++ b/gr-pager/lib/pageri_util.h
@@ -1,18 +1,18 @@
/*
* Copyright 2006 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,
diff --git a/gr-pager/python/CMakeLists.txt b/gr-pager/python/CMakeLists.txt
index 08915aa00..c0e1b1be1 100644
--- a/gr-pager/python/CMakeLists.txt
+++ b/gr-pager/python/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011-2012 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,
diff --git a/gr-pager/python/__init__.py b/gr-pager/python/__init__.py
index fffefd51d..c395d4e45 100644
--- a/gr-pager/python/__init__.py
+++ b/gr-pager/python/__init__.py
@@ -1,23 +1,23 @@
#
# Copyright 2006 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,
# Boston, MA 02110-1301, USA.
-#
+#
# The presence of this file turns this directory into a Python package
diff --git a/gr-pager/python/flex_demod.py b/gr-pager/python/flex_demod.py
index b79c1adaa..4146695f8 100644
--- a/gr-pager/python/flex_demod.py
+++ b/gr-pager/python/flex_demod.py
@@ -1,23 +1,23 @@
#
# Copyright 2006,2007 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gru, optfir, blks2
from math import pi
@@ -27,7 +27,7 @@ class flex_demod(gr.hier_block2):
"""
FLEX pager protocol demodulation block.
- This block demodulates a band-limited, complex down-converted baseband
+ This block demodulates a band-limited, complex down-converted baseband
channel into FLEX protocol frames.
"""
@@ -40,7 +40,7 @@ class flex_demod(gr.hier_block2):
k = 25000/(2*pi*1600) # 4800 Hz max deviation
quad = gr.quadrature_demod_cf(k)
self.connect(self, quad)
-
+
rsamp = blks2.rational_resampler_fff(16, 25)
self.slicer = pager_swig.slicer_fb(5e-6) # DC removal averaging filter constant
self.sync = pager_swig.flex_sync()
@@ -61,4 +61,3 @@ class flex_demod(gr.hier_block2):
def dc_offset(self):
return self.slicer.dc_offset()
- \ No newline at end of file
diff --git a/gr-pager/python/pager_utils.py b/gr-pager/python/pager_utils.py
index 72aac6826..e935c86d4 100644
--- a/gr-pager/python/pager_utils.py
+++ b/gr-pager/python/pager_utils.py
@@ -1,18 +1,18 @@
#
# Copyright 2008,2009 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 this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -50,11 +50,11 @@ class queue_runner(_threading.Thread):
msg = self.msgq.delete_head() # Blocking read
if msg.type() != 0:
break
-
+
page = join(split(msg.to_string(), chr(128)), '|')
s = make_printable(page)
print msg.type(), s
-
+
def end(self):
self.msgq.insert_tail(gr.message(1))
self.done = True
diff --git a/gr-pager/python/qa_pager.py b/gr-pager/python/qa_pager.py
index 12a45d4c3..87f0d0026 100755
--- a/gr-pager/python/qa_pager.py
+++ b/gr-pager/python/qa_pager.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2006,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
import pager_swig
diff --git a/gr-pager/swig/pager_flex_frame.i b/gr-pager/swig/pager_flex_frame.i
index d754f5f79..0ea996500 100644
--- a/gr-pager/swig/pager_flex_frame.i
+++ b/gr-pager/swig/pager_flex_frame.i
@@ -1,18 +1,18 @@
/*
* Copyright 2006 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,
diff --git a/gr-pager/swig/pager_swig.i b/gr-pager/swig/pager_swig.i
index afa3532b8..04f804157 100644
--- a/gr-pager/swig/pager_swig.i
+++ b/gr-pager/swig/pager_swig.i
@@ -1,18 +1,18 @@
/*
* Copyright 2005,2006,2009 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,
diff --git a/gr-qtgui/CMakeLists.txt b/gr-qtgui/CMakeLists.txt
index 32bf5bfcb..f6260bc7e 100644
--- a/gr-qtgui/CMakeLists.txt
+++ b/gr-qtgui/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2010-2011 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,
diff --git a/gr-qtgui/apps/uhd_display.py b/gr-qtgui/apps/uhd_display.py
index 30325a2c8..d02fbad9e 100755
--- a/gr-qtgui/apps/uhd_display.py
+++ b/gr-qtgui/apps/uhd_display.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2009,2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
from gnuradio import uhd
@@ -92,14 +92,14 @@ class main_window(QtGui.QMainWindow):
else:
self.fg.start()
self.gui.pauseButton.setText("Pause")
-
+
# Functions to set the values in the GUI
def set_frequency(self, freq):
self.freq = freq
sfreq = eng_notation.num_to_str(self.freq)
self.gui.frequencyEdit.setText(QtCore.QString("%1").arg(sfreq))
-
+
def set_gain(self, gain):
self.gain = gain
self.gui.gainEdit.setText(QtCore.QString("%1").arg(self.gain))
@@ -117,7 +117,7 @@ class main_window(QtGui.QMainWindow):
# Functions called when signals are triggered in the GUI
def frequencyEditText(self):
try:
- freq = eng_notation.str_to_num(self.gui.frequencyEdit.text().toAscii())
+ freq = eng_notation.str_to_num(self.gui.frequencyEdit.text().toAscii())
self.fg.set_frequency(freq)
self.freq = freq
except RuntimeError:
@@ -130,7 +130,7 @@ class main_window(QtGui.QMainWindow):
self.gain = gain
except ValueError:
pass
-
+
def bandwidthEditText(self):
try:
bw = eng_notation.str_to_num(self.gui.bandwidthEdit.text().toAscii())
@@ -138,7 +138,7 @@ class main_window(QtGui.QMainWindow):
self.bw = bw
except ValueError:
pass
-
+
def amplifierEditText(self):
try:
amp = float(self.gui.amplifierEdit.text())
@@ -155,20 +155,20 @@ class main_window(QtGui.QMainWindow):
def dcGainEditText(self):
gain = float(self.gui.dcGainEdit.text())
self.fg.set_dc_gain(gain)
-
+
def dcCancelClicked(self, state):
self.dcGainEditText()
self.fg.cancel_dc(state)
-
-
+
+
class my_top_block(gr.top_block):
def __init__(self, options):
gr.top_block.__init__(self)
self.options = options
self.show_debug_info = True
-
+
self.qapp = QtGui.QApplication(sys.argv)
self.u = uhd.usrp_source(device_addr=options.address, stream_args=uhd.stream_args('fc32'))
@@ -267,7 +267,7 @@ class my_top_block(gr.top_block):
def set_dc_gain(self, gain):
self.dc.set_taps(gain)
-
+
def cancel_dc(self, state):
self.lock()
@@ -300,7 +300,7 @@ def main ():
parser.add_option("--fft-size", type="int", default=2048,
help="Set number of FFT bins [default=%default]")
(options, args) = parser.parse_args()
-
+
if len(args) != 0:
parser.print_help()
sys.exit(1)
@@ -314,4 +314,4 @@ if __name__ == '__main__':
main ()
except KeyboardInterrupt:
pass
-
+
diff --git a/gr-qtgui/doc/CMakeLists.txt b/gr-qtgui/doc/CMakeLists.txt
index e6d01b8b0..668ed59f5 100644
--- a/gr-qtgui/doc/CMakeLists.txt
+++ b/gr-qtgui/doc/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gr-qtgui/doc/README.qtgui b/gr-qtgui/doc/README.qtgui
index e54c3d907..b5b523bf6 100644
--- a/gr-qtgui/doc/README.qtgui
+++ b/gr-qtgui/doc/README.qtgui
@@ -7,6 +7,6 @@ imported as:
See the Doxygen documentation for details about the blocks available
in this package. A quick listing of the details can be found in Python
-after importing by using:
+after importing by using:
help(qtgui)
diff --git a/gr-qtgui/doc/qtgui.dox b/gr-qtgui/doc/qtgui.dox
index c7f4b7146..8664af163 100644
--- a/gr-qtgui/doc/qtgui.dox
+++ b/gr-qtgui/doc/qtgui.dox
@@ -60,7 +60,7 @@ class grclass(gr.top_block):
self.snk = qtgui.sink_c(1024, #fftsize
samp_rate, #bw
"QT GUI Plot") #name
-
+
self.snk_win = sip.wrapinstance(self.snk.pyqwidget(), Qt.QWidget)
self.snk_win.show()
diff --git a/gr-qtgui/examples/CMakeLists.txt b/gr-qtgui/examples/CMakeLists.txt
index 4622bec29..998d17bd9 100644
--- a/gr-qtgui/examples/CMakeLists.txt
+++ b/gr-qtgui/examples/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gr-qtgui/examples/pyqt_example_c.py b/gr-qtgui/examples/pyqt_example_c.py
index 553d346c9..0b43fce0e 100755
--- a/gr-qtgui/examples/pyqt_example_c.py
+++ b/gr-qtgui/examples/pyqt_example_c.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
import sys
@@ -111,7 +111,7 @@ class control_box(QtGui.QWidget):
except ValueError:
print "Bad amplitude value entered"
-
+
def freq2EditText(self):
try:
newfreq = float(self.freq2Edit.text())
@@ -138,7 +138,7 @@ class my_top_block(gr.top_block):
fftsize = 2048
self.qapp = QtGui.QApplication(sys.argv)
-
+
src1 = gr.sig_source_c(Rs, gr.GR_SIN_WAVE, f1, 0.1, 0)
src2 = gr.sig_source_c(Rs, gr.GR_SIN_WAVE, f2, 0.1, 0)
src = gr.add_cc()
@@ -167,10 +167,10 @@ class my_top_block(gr.top_block):
self.main_box = dialog_box(pyWin, self.ctrl_win)
self.main_box.show()
-
+
if __name__ == "__main__":
tb = my_top_block();
tb.start()
tb.qapp.exec_()
tb.stop()
-
+
diff --git a/gr-qtgui/examples/pyqt_example_f.py b/gr-qtgui/examples/pyqt_example_f.py
index 5e432fe78..d00011f40 100755
--- a/gr-qtgui/examples/pyqt_example_f.py
+++ b/gr-qtgui/examples/pyqt_example_f.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
import sys
@@ -111,7 +111,7 @@ class control_box(QtGui.QWidget):
except ValueError:
print "Bad amplitude value entered"
-
+
def freq2EditText(self):
try:
newfreq = float(self.freq2Edit.text())
@@ -138,7 +138,7 @@ class my_top_block(gr.top_block):
fftsize = 2048
self.qapp = QtGui.QApplication(sys.argv)
-
+
src1 = gr.sig_source_f(Rs, gr.GR_SIN_WAVE, f1, 0.1, 0)
src2 = gr.sig_source_f(Rs, gr.GR_SIN_WAVE, f2, 0.1, 0)
src = gr.add_ff()
@@ -170,7 +170,7 @@ class my_top_block(gr.top_block):
self.main_box = dialog_box(pyWin, self.ctrl_win)
self.main_box.show()
-
+
if __name__ == "__main__":
tb = my_top_block();
tb.start()
diff --git a/gr-qtgui/examples/pyqt_time_c.py b/gr-qtgui/examples/pyqt_time_c.py
index a47302d19..04425e11f 100755
--- a/gr-qtgui/examples/pyqt_time_c.py
+++ b/gr-qtgui/examples/pyqt_time_c.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
import sys
@@ -111,7 +111,7 @@ class control_box(QtGui.QWidget):
except ValueError:
print "Bad amplitude value entered"
-
+
def freq2EditText(self):
try:
newfreq = float(self.freq2Edit.text())
@@ -138,7 +138,7 @@ class my_top_block(gr.top_block):
npts = 2048
self.qapp = QtGui.QApplication(sys.argv)
-
+
src1 = gr.sig_source_c(Rs, gr.GR_SIN_WAVE, f1, 0.1, 0)
src2 = gr.sig_source_c(Rs, gr.GR_SIN_WAVE, f2, 0.1, 0)
src = gr.add_cc()
@@ -180,10 +180,10 @@ class my_top_block(gr.top_block):
#pyWin.show()
self.main_box = dialog_box(pyWin, self.ctrl_win)
self.main_box.show()
-
+
if __name__ == "__main__":
tb = my_top_block();
tb.start()
tb.qapp.exec_()
tb.stop()
-
+
diff --git a/gr-qtgui/examples/pyqt_time_f.py b/gr-qtgui/examples/pyqt_time_f.py
index 835b42a75..464d8939b 100755
--- a/gr-qtgui/examples/pyqt_time_f.py
+++ b/gr-qtgui/examples/pyqt_time_f.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
import sys
@@ -111,7 +111,7 @@ class control_box(QtGui.QWidget):
except ValueError:
print "Bad amplitude value entered"
-
+
def freq2EditText(self):
try:
newfreq = float(self.freq2Edit.text())
@@ -138,7 +138,7 @@ class my_top_block(gr.top_block):
npts = 2048
self.qapp = QtGui.QApplication(sys.argv)
-
+
src1 = gr.sig_source_f(Rs, gr.GR_SIN_WAVE, f1, 0.1, 0)
src2 = gr.sig_source_f(Rs, gr.GR_SIN_WAVE, f2, 0.1, 0)
src = gr.add_ff()
@@ -180,10 +180,10 @@ class my_top_block(gr.top_block):
#pyWin.show()
self.main_box = dialog_box(pyWin, self.ctrl_win)
self.main_box.show()
-
+
if __name__ == "__main__":
tb = my_top_block();
tb.start()
tb.qapp.exec_()
tb.stop()
-
+
diff --git a/gr-qtgui/grc/CMakeLists.txt b/gr-qtgui/grc/CMakeLists.txt
index 370a71725..d56158ac7 100644
--- a/gr-qtgui/grc/CMakeLists.txt
+++ b/gr-qtgui/grc/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gr-qtgui/include/qtgui_sink_c.h b/gr-qtgui/include/qtgui_sink_c.h
index 024ea360b..68fff368a 100644
--- a/gr-qtgui/include/qtgui_sink_c.h
+++ b/gr-qtgui/include/qtgui_sink_c.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2009,2011 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,
@@ -50,7 +50,7 @@ GR_QTGUI_API qtgui_sink_c_sptr qtgui_make_sink_c (int fftsize, int wintype,
* plots it. The default action is to plot the signal as a PSD (FFT),
* spectrogram (waterfall), time domain I&Q, and constellation (I
* vs. Q) plots. The plots may be turned off by setting the
- * appropriate boolean value in the constructor to False.
+ * appropriate boolean value in the constructor to False.
*/
class GR_QTGUI_API qtgui_sink_c : public gr_block
@@ -63,7 +63,7 @@ private:
bool plottime, bool plotconst,
QWidget *parent);
qtgui_sink_c (int fftsize, int wintype,
- double fc, double bw,
+ double fc, double bw,
const std::string &name,
bool plotfreq, bool plotwaterfall,
bool plottime, bool plotconst,
@@ -81,7 +81,7 @@ private:
std::string d_name;
gruel::high_res_timer_type d_last_update;
bool d_update_active;
-
+
bool d_shift;
gri_fft_complex *d_fft;
@@ -89,7 +89,7 @@ private:
gr_complex *d_residbuf;
bool d_plotfreq, d_plotwaterfall, d_plottime, d_plotconst;
-
+
gruel::high_res_timer_type d_update_time;
QWidget *d_parent;
@@ -99,7 +99,7 @@ private:
void buildwindow();
void fftresize();
void fft(const gr_complex *data_in, int size);
-
+
public:
~qtgui_sink_c();
void exec_();
diff --git a/gr-qtgui/include/qtgui_sink_f.h b/gr-qtgui/include/qtgui_sink_f.h
index 2d79b5eef..709f02a2f 100644
--- a/gr-qtgui/include/qtgui_sink_f.h
+++ b/gr-qtgui/include/qtgui_sink_f.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2009,2011 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,
@@ -78,7 +78,7 @@ private:
double d_center_freq;
double d_bandwidth;
std::string d_name;
-
+
bool d_shift;
gri_fft_complex *d_fft;
@@ -90,13 +90,13 @@ private:
double d_update_time;
QWidget *d_parent;
- SpectrumGUIClass *d_main_gui;
+ SpectrumGUIClass *d_main_gui;
void windowreset();
void buildwindow();
void fftresize();
void fft(const float *data_in, int size);
-
+
public:
~qtgui_sink_f();
void exec_();
diff --git a/gr-qtgui/include/qtgui_time_sink_c.h b/gr-qtgui/include/qtgui_time_sink_c.h
index ec7cc490b..561d796cf 100644
--- a/gr-qtgui/include/qtgui_time_sink_c.h
+++ b/gr-qtgui/include/qtgui_time_sink_c.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
@@ -61,7 +61,7 @@ private:
const std::string &name,
int nconnections,
QWidget *parent=NULL);
-
+
void initialize();
int d_size;
diff --git a/gr-qtgui/include/qtgui_time_sink_f.h b/gr-qtgui/include/qtgui_time_sink_f.h
index ff17f8a1b..993e0556c 100644
--- a/gr-qtgui/include/qtgui_time_sink_f.h
+++ b/gr-qtgui/include/qtgui_time_sink_f.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
@@ -59,7 +59,7 @@ private:
const std::string &name,
int nconnections,
QWidget *parent=NULL);
-
+
void initialize();
int d_size;
diff --git a/gr-qtgui/include/qtgui_util.h b/gr-qtgui/include/qtgui_util.h
index 7b3692e75..2deaddb94 100644
--- a/gr-qtgui/include/qtgui_util.h
+++ b/gr-qtgui/include/qtgui_util.h
@@ -43,12 +43,12 @@ class GR_QTGUI_API QwtPickerDblClickPointMachine: public QwtPickerMachine
public:
QwtPickerDblClickPointMachine();
~QwtPickerDblClickPointMachine();
-
+
#if QWT_VERSION < 0x060000
virtual CommandList transition( const QwtEventPattern &eventPattern,
const QEvent *e);
#else
- virtual QList<QwtPickerMachine::Command>
+ virtual QList<QwtPickerMachine::Command>
transition( const QwtEventPattern &eventPattern,
const QEvent *e);
#endif
diff --git a/gr-qtgui/lib/ConstellationDisplayPlot.cc b/gr-qtgui/lib/ConstellationDisplayPlot.cc
index fb549b697..7a595fef4 100644
--- a/gr-qtgui/lib/ConstellationDisplayPlot.cc
+++ b/gr-qtgui/lib/ConstellationDisplayPlot.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2009,2010,2011 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,
@@ -40,14 +40,14 @@ public:
virtual ~ConstellationDisplayZoomer(){
}
-
+
virtual void updateTrackerText(){
updateDisplay();
}
protected:
using QwtPlotZoomer::trackerText;
- virtual QwtText trackerText( const QwtDoublePoint& p ) const
+ virtual QwtText trackerText( const QwtDoublePoint& p ) const
{
QwtText t(QString("(%1, %2)").arg(p.x(), 0, 'f', 4).
arg(p.y(), 0, 'f', 4));
@@ -73,7 +73,7 @@ ConstellationDisplayPlot::ConstellationDisplayPlot(QWidget* parent)
#else
QwtPainter::setPolylineSplitting(false);
#endif
-
+
#if QWT_VERSION < 0x060000
// We don't need the cache here
canvas()->setPaintAttribute(QwtPlotCanvas::PaintCached, false);
@@ -82,7 +82,7 @@ ConstellationDisplayPlot::ConstellationDisplayPlot(QWidget* parent)
QPalette palette;
palette.setColor(canvas()->backgroundRole(), QColor("white"));
- canvas()->setPalette(palette);
+ canvas()->setPalette(palette);
setAxisScaleEngine(QwtPlot::xBottom, new QwtLinearScaleEngine);
set_xaxis(-2.0, 2.0);
@@ -144,7 +144,7 @@ ConstellationDisplayPlot::ConstellationDisplayPlot(QWidget* parent)
this, SLOT(OnPickerPointSelected6(const QPointF &)));
#endif
- connect(this, SIGNAL(legendChecked(QwtPlotItem *, bool ) ),
+ connect(this, SIGNAL(legendChecked(QwtPlotItem *, bool ) ),
this, SLOT(LegendEntryChecked(QwtPlotItem *, bool ) ));
}
@@ -157,7 +157,7 @@ ConstellationDisplayPlot::~ConstellationDisplayPlot()
// _zoomer and _panner deleted when parent deleted
}
-void
+void
ConstellationDisplayPlot::set_pen_size(int size)
{
if(size > 0 && size < 30){
@@ -203,7 +203,7 @@ void ConstellationDisplayPlot::PlotNewData(const double* realDataPoints,
const int64_t numDataPoints,
const double timeInterval)
{
- if((numDataPoints > 0) &&
+ if((numDataPoints > 0) &&
(gruel::high_res_timer_now() - _lastReplot > timeInterval*gruel::high_res_timer_tps())) {
if(numDataPoints != _numPoints){
@@ -213,12 +213,12 @@ void ConstellationDisplayPlot::PlotNewData(const double* realDataPoints,
delete[] _imagDataPoints;
_realDataPoints = new double[_numPoints];
_imagDataPoints = new double[_numPoints];
-
+
#if QWT_VERSION < 0x060000
_plot_curve->setRawData(_realDataPoints, _imagDataPoints, _numPoints);
#else
_plot_curve->setRawSamples(_realDataPoints, _imagDataPoints, _numPoints);
-#endif
+#endif
}
memcpy(_realDataPoints, realDataPoints, numDataPoints*sizeof(double));
diff --git a/gr-qtgui/lib/ConstellationDisplayPlot.h b/gr-qtgui/lib/ConstellationDisplayPlot.h
index 80ac3a63a..9e0f6f26a 100644
--- a/gr-qtgui/lib/ConstellationDisplayPlot.h
+++ b/gr-qtgui/lib/ConstellationDisplayPlot.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2009,2010,2011 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,
@@ -51,11 +51,11 @@ public:
ConstellationDisplayPlot(QWidget*);
virtual ~ConstellationDisplayPlot();
- void PlotNewData(const double* realDataPoints,
- const double* imagDataPoints,
+ void PlotNewData(const double* realDataPoints,
+ const double* imagDataPoints,
const int64_t numDataPoints,
const double timeInterval);
-
+
virtual void replot();
void set_xaxis(double min, double max);
@@ -86,7 +86,7 @@ private:
QwtPlotPanner* _panner;
QwtPlotZoomer* _zoomer;
-
+
QwtDblClickPlotPicker *_picker;
double* _realDataPoints;
diff --git a/gr-qtgui/lib/FrequencyDisplayPlot.cc b/gr-qtgui/lib/FrequencyDisplayPlot.cc
index b48cd7233..b74d46015 100644
--- a/gr-qtgui/lib/FrequencyDisplayPlot.cc
+++ b/gr-qtgui/lib/FrequencyDisplayPlot.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2009,2010,2011 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,
@@ -63,7 +63,7 @@ public:
{
}
- virtual ~FreqDisplayScaleDraw()
+ virtual ~FreqDisplayScaleDraw()
{
}
@@ -90,7 +90,7 @@ public:
virtual ~FreqDisplayZoomer(){
}
-
+
virtual void updateTrackerText(){
updateDisplay();
}
@@ -119,11 +119,11 @@ FrequencyDisplayPlot::FrequencyDisplayPlot(QWidget* parent)
{
_startFrequency = 0;
_stopFrequency = 4000;
-
+
_lastReplot = 0;
resize(parent->width(), parent->height());
-
+
_useCenterFrequencyFlag = false;
_numPoints = 1024;
@@ -138,16 +138,16 @@ FrequencyDisplayPlot::FrequencyDisplayPlot(QWidget* parent)
#else
QwtPainter::setPolylineSplitting(false);
#endif
-
+
#if QWT_VERSION < 0x060000
// We don't need the cache here
canvas()->setPaintAttribute(QwtPlotCanvas::PaintCached, false);
canvas()->setPaintAttribute(QwtPlotCanvas::PaintPacked, false);
#endif
-
+
QPalette palette;
palette.setColor(canvas()->backgroundRole(), QColor("white"));
- canvas()->setPalette(palette);
+ canvas()->setPalette(palette);
setAxisTitle(QwtPlot::xBottom, "Frequency (Hz)");
setAxisScaleDraw(QwtPlot::xBottom, new FreqDisplayScaleDraw(0));
@@ -229,7 +229,7 @@ FrequencyDisplayPlot::FrequencyDisplayPlot(QWidget* parent)
/// THIS CAUSES A PROBLEM!
//_markerPeakAmplitude->attach(this);
-
+
_markerNoiseFloorAmplitude = new QwtPlotMarker();
_markerNoiseFloorAmplitude->setLineStyle(QwtPlotMarker::HLine);
_markerNoiseFloorAmplitude->setLinePen(QPen(Qt::darkRed, 0, Qt::DotLine));
@@ -344,7 +344,7 @@ FrequencyDisplayPlot::SetFrequencyRange(const double constStartFreq,
if(stopFreq > startFreq) {
_startFrequency = startFreq;
_stopFrequency = stopFreq;
-
+
if((axisScaleDraw(QwtPlot::xBottom) != NULL) && (_zoomer != NULL)){
double display_units = ceil(log10(units)/2.0);
setAxisScaleDraw(QwtPlot::xBottom, new FreqDisplayScaleDraw(display_units));
@@ -352,7 +352,7 @@ FrequencyDisplayPlot::SetFrequencyRange(const double constStartFreq,
if(reset)
_resetXAxisPoints();
-
+
((FreqDisplayZoomer*)_zoomer)->SetFrequencyPrecision(display_units);
((FreqDisplayZoomer*)_zoomer)->SetUnitType(strunits);
}
@@ -376,7 +376,7 @@ void
FrequencyDisplayPlot::replot()
{
_markerNoiseFloorAmplitude->setYValue(_noiseFloorAmplitude);
-
+
// Make sure to take into account the start frequency
if(_useCenterFrequencyFlag){
_markerPeakAmplitude->setXValue((_peakFrequency/1000.0) + _startFrequency);
@@ -385,10 +385,10 @@ FrequencyDisplayPlot::replot()
_markerPeakAmplitude->setXValue(_peakFrequency + _startFrequency);
}
_markerPeakAmplitude->setYValue(_peakAmplitude);
-
+
QwtPlot::replot();
}
-
+
void
FrequencyDisplayPlot::resizeSlot( QSize *s )
{
@@ -401,12 +401,12 @@ FrequencyDisplayPlot::PlotNewData(const double* dataPoints, const int64_t numDat
const double peakAmplitude, const double timeInterval)
{
// Only update plot if there is data and if the time interval has elapsed
- if((numDataPoints > 0) &&
+ if((numDataPoints > 0) &&
(gruel::high_res_timer_now() - _lastReplot > timeInterval*gruel::high_res_timer_tps())) {
-
+
if(numDataPoints != _numPoints) {
_numPoints = numDataPoints;
-
+
delete[] _dataPoints;
delete[] _minFFTPoints;
delete[] _maxFFTPoints;
@@ -425,7 +425,7 @@ FrequencyDisplayPlot::PlotNewData(const double* dataPoints, const int64_t numDat
_min_fft_plot_curve->setRawSamples(_xAxisPoints, _minFFTPoints, _numPoints);
_max_fft_plot_curve->setRawSamples(_xAxisPoints, _maxFFTPoints, _numPoints);
#endif
-
+
_resetXAxisPoints();
ClearMaxData();
ClearMinData();
@@ -521,7 +521,7 @@ FrequencyDisplayPlot::SetTraceColour (QColor c)
_fft_plot_curve->setPen(QPen(c));
}
-void
+void
FrequencyDisplayPlot::SetBGColour (QColor c)
{
QPalette palette;
diff --git a/gr-qtgui/lib/FrequencyDisplayPlot.h b/gr-qtgui/lib/FrequencyDisplayPlot.h
index e79000789..5c3ea708c 100644
--- a/gr-qtgui/lib/FrequencyDisplayPlot.h
+++ b/gr-qtgui/lib/FrequencyDisplayPlot.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2009,2010,2011 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,
@@ -50,9 +50,9 @@ public:
FrequencyDisplayPlot(QWidget*);
virtual ~FrequencyDisplayPlot();
- void SetFrequencyRange(const double, const double,
+ void SetFrequencyRange(const double, const double,
const double, const bool,
- const double units=1000.0,
+ const double units=1000.0,
const std::string &strunits = "kHz");
double GetStartFrequency()const;
double GetStopFrequency()const;
@@ -60,13 +60,13 @@ public:
void PlotNewData(const double* dataPoints, const int64_t numDataPoints,
const double noiseFloorAmplitude, const double peakFrequency,
const double peakAmplitude, const double timeInterval);
-
+
void ClearMaxData();
void ClearMinData();
-
+
void SetMaxFFTVisible(const bool);
void SetMinFFTVisible(const bool);
-
+
virtual void replot();
void set_yaxis(double min, double max);
@@ -94,12 +94,12 @@ protected:
private:
void _resetXAxisPoints();
-
+
double _startFrequency;
double _stopFrequency;
double _maxYAxis;
double _minYAxis;
-
+
QwtPlotCurve* _fft_plot_curve;
QwtPlotCurve* _min_fft_plot_curve;
QwtPlotCurve* _max_fft_plot_curve;
@@ -115,9 +115,9 @@ private:
QwtPlotMarker *_markerCF;
QwtDblClickPlotPicker *_picker;
-
+
QwtPlotMagnifier *_magnifier;
-
+
double* _dataPoints;
double* _xAxisPoints;
int _xAxisMultiplier;
diff --git a/gr-qtgui/lib/SpectrumGUIClass.cc b/gr-qtgui/lib/SpectrumGUIClass.cc
index 1e9aa0169..d2dbc7772 100644
--- a/gr-qtgui/lib/SpectrumGUIClass.cc
+++ b/gr-qtgui/lib/SpectrumGUIClass.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2009,2010,2011 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,
@@ -54,7 +54,7 @@ SpectrumGUIClass::SpectrumGUIClass(const uint64_t maxDataSize,
_windowType = 5;
- _lastGUIUpdateTime = 0;
+ _lastGUIUpdateTime = 0;
_windowOpennedFlag = false;
_fftBuffersCreatedFlag = false;
@@ -92,16 +92,16 @@ SpectrumGUIClass::OpenSpectrumWindow(QWidget* parent,
_realTimeDomainPoints = new double[_dataPoints];
_imagTimeDomainPoints = new double[_dataPoints];
_fftBuffersCreatedFlag = true;
-
-
+
+
memset(_fftPoints, 0x0, _dataPoints*sizeof(std::complex<float>));
memset(_realTimeDomainPoints, 0x0, _dataPoints*sizeof(double));
memset(_imagTimeDomainPoints, 0x0, _dataPoints*sizeof(double));
}
-
+
// Called from the Event Thread
_spectrumDisplayForm = new SpectrumDisplayForm(parent);
-
+
// Toggle Windows on/off
_spectrumDisplayForm->ToggleTabFrequency(frequency);
_spectrumDisplayForm->ToggleTabWaterfall(waterfall);
@@ -140,8 +140,8 @@ SpectrumGUIClass::Reset()
{
if(GetWindowOpenFlag()) {
qApp->postEvent(_spectrumDisplayForm,
- new SpectrumFrequencyRangeEvent(_centerFrequency,
- _startFrequency,
+ new SpectrumFrequencyRangeEvent(_centerFrequency,
+ _startFrequency,
_stopFrequency));
qApp->postEvent(_spectrumDisplayForm, new SpectrumWindowResetEvent());
}
@@ -304,7 +304,7 @@ SpectrumGUIClass::UpdateWindow(const bool updateDisplayFlag,
lastOfMultipleFFTUpdateFlag,
currentTime,
_droppedEntriesCount));
-
+
// Only reset the dropped entries counter if this is not
// repeat data since repeat data is dropped by the display systems
if(!repeatDataFlag){
diff --git a/gr-qtgui/lib/SpectrumGUIClass.h b/gr-qtgui/lib/SpectrumGUIClass.h
index 857c2515f..e0612413b 100644
--- a/gr-qtgui/lib/SpectrumGUIClass.h
+++ b/gr-qtgui/lib/SpectrumGUIClass.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2009,2010,2011 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,
@@ -44,7 +44,7 @@ class SpectrumGUIClass
public:
SpectrumGUIClass(const uint64_t maxDataSize, const uint64_t fftSize,
const double newCenterFrequency,
- const double newStartFrequency,
+ const double newStartFrequency,
const double newStopFrequency);
~SpectrumGUIClass();
void Reset();
diff --git a/gr-qtgui/lib/TimeDomainDisplayPlot.cc b/gr-qtgui/lib/TimeDomainDisplayPlot.cc
index 192ec82ee..84b09af90 100644
--- a/gr-qtgui/lib/TimeDomainDisplayPlot.cc
+++ b/gr-qtgui/lib/TimeDomainDisplayPlot.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2009,2010,2011 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,
@@ -68,7 +68,7 @@ public:
virtual ~TimeDomainDisplayZoomer(){
}
-
+
virtual void updateTrackerText(){
updateDisplay();
}
@@ -80,7 +80,7 @@ public:
protected:
using QwtPlotZoomer::trackerText;
- virtual QwtText trackerText( const QwtDoublePoint& p ) const
+ virtual QwtText trackerText( const QwtDoublePoint& p ) const
{
QwtText t(QString("%1 %2, %3 V").arg(p.x(), 0, 'f', GetTimePrecision()).
arg(_unitType.c_str()).
@@ -114,7 +114,7 @@ TimeDomainDisplayPlot::TimeDomainDisplayPlot(int nplots, QWidget* parent)
#else
QwtPainter::setPolylineSplitting(false);
#endif
-
+
#if QWT_VERSION < 0x060000
// We don't need the cache here
canvas()->setPaintAttribute(QwtPlotCanvas::PaintCached, false);
@@ -123,7 +123,7 @@ TimeDomainDisplayPlot::TimeDomainDisplayPlot(int nplots, QWidget* parent)
QPalette palette;
palette.setColor(canvas()->backgroundRole(), QColor("white"));
- canvas()->setPalette(palette);
+ canvas()->setPalette(palette);
setAxisScaleEngine(QwtPlot::xBottom, new QwtLinearScaleEngine);
setXaxis(0, _numPoints);
@@ -198,7 +198,7 @@ TimeDomainDisplayPlot::TimeDomainDisplayPlot(int nplots, QWidget* parent)
legendDisplay->setItemMode(QwtLegend::CheckableItem);
insertLegend(legendDisplay);
- connect(this, SIGNAL( legendChecked(QwtPlotItem *, bool ) ),
+ connect(this, SIGNAL( legendChecked(QwtPlotItem *, bool ) ),
this, SLOT( LegendEntryChecked(QwtPlotItem *, bool ) ));
}
@@ -270,7 +270,7 @@ void TimeDomainDisplayPlot::PlotNewData(const std::vector<double*> dataPoints,
_plot_curve[i]->setRawSamples(_xAxisPoints, _dataPoints[i], _numPoints);
#endif
}
-
+
setXaxis(0, numDataPoints);
_resetXAxisPoints();
}
@@ -314,7 +314,7 @@ TimeDomainDisplayPlot::SetSampleRate(double sr, double units,
if(newsr != _sampleRate) {
_sampleRate = sr/units;
_resetXAxisPoints();
-
+
// While we could change the displayed sigfigs based on the unit being
// displayed, I think it looks better by just setting it to 4 regardless.
//double display_units = ceil(log10(units)/2.0);
diff --git a/gr-qtgui/lib/TimeDomainDisplayPlot.h b/gr-qtgui/lib/TimeDomainDisplayPlot.h
index 1f3f2c574..356da25ad 100644
--- a/gr-qtgui/lib/TimeDomainDisplayPlot.h
+++ b/gr-qtgui/lib/TimeDomainDisplayPlot.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2009,2010,2011 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,
@@ -50,9 +50,9 @@ public:
TimeDomainDisplayPlot(int nplots, QWidget*);
virtual ~TimeDomainDisplayPlot();
- void PlotNewData(const std::vector<double*> dataPoints,
+ void PlotNewData(const std::vector<double*> dataPoints,
const int64_t numDataPoints, const double timeInterval);
-
+
virtual void replot();
public slots:
@@ -62,7 +62,7 @@ public slots:
void setColor(int which, QString color);
void resizeSlot( QSize *s );
- void SetSampleRate(double sr, double units,
+ void SetSampleRate(double sr, double units,
const std::string &strunits);
// Because of the preprocessing of slots in QT, these are no
@@ -87,10 +87,10 @@ private:
QwtPlotPanner* _panner;
QwtPlotZoomer* _zoomer;
-
+
QwtDblClickPlotPicker *_picker;
QwtPlotMagnifier *_magnifier;
-
+
std::vector<double*> _dataPoints;
double* _xAxisPoints;
diff --git a/gr-qtgui/lib/WaterfallDisplayPlot.cc b/gr-qtgui/lib/WaterfallDisplayPlot.cc
index ffb27f2aa..63eb57ffe 100644
--- a/gr-qtgui/lib/WaterfallDisplayPlot.cc
+++ b/gr-qtgui/lib/WaterfallDisplayPlot.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2009,2010,2011 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,
@@ -113,16 +113,16 @@ public:
_zeroTime = 0;
_secondsPerLine = 1.0;
}
-
+
virtual ~TimeScaleData()
- {
+ {
}
virtual gruel::high_res_timer_type GetZeroTime() const
{
return _zeroTime;
}
-
+
virtual void SetZeroTime(const gruel::high_res_timer_type newTime)
{
_zeroTime = newTime - gruel::high_res_timer_epoch();
@@ -138,13 +138,13 @@ public:
return _secondsPerLine;
}
-
+
protected:
gruel::high_res_timer_type _zeroTime;
double _secondsPerLine;
-
+
private:
-
+
};
static QString
@@ -164,11 +164,11 @@ class QwtTimeScaleDraw: public QwtScaleDraw, public TimeScaleData
{
public:
QwtTimeScaleDraw():QwtScaleDraw(),TimeScaleData()
- {
+ {
}
virtual ~QwtTimeScaleDraw()
- {
+ {
}
virtual QwtText label(double value) const
@@ -183,19 +183,19 @@ public:
// updates is to prevent the display from being updated too often...
invalidateCache();
}
-
+
protected:
private:
};
-class WaterfallZoomer: public QwtPlotZoomer, public TimeScaleData,
+class WaterfallZoomer: public QwtPlotZoomer, public TimeScaleData,
public FreqOffsetAndPrecisionClass
{
public:
WaterfallZoomer(QwtPlotCanvas* canvas, const unsigned int freqPrecision)
- : QwtPlotZoomer(canvas), TimeScaleData(),
+ : QwtPlotZoomer(canvas), TimeScaleData(),
FreqOffsetAndPrecisionClass(freqPrecision)
{
setTrackerMode(QwtPicker::AlwaysOn);
@@ -204,7 +204,7 @@ public:
virtual ~WaterfallZoomer()
{
}
-
+
virtual void updateTrackerText()
{
updateDisplay();
@@ -217,7 +217,7 @@ public:
protected:
using QwtPlotZoomer::trackerText;
- virtual QwtText trackerText( const QwtDoublePoint& p ) const
+ virtual QwtText trackerText( const QwtDoublePoint& p ) const
{
double secs = GetZeroTime()/double(gruel::high_res_timer_tps()) - (p.y() * GetSecondsPerLine());
QwtText t(QString("%1 %2, %3").
@@ -289,13 +289,13 @@ WaterfallDisplayPlot::WaterfallDisplayPlot(QWidget* parent)
_zoomer = NULL;
_startFrequency = 0;
_stopFrequency = 4000;
-
+
resize(parent->width(), parent->height());
_numPoints = 1024;
QPalette palette;
palette.setColor(canvas()->backgroundRole(), QColor("white"));
- canvas()->setPalette(palette);
+ canvas()->setPalette(palette);
setAxisTitle(QwtPlot::xBottom, "Frequency (Hz)");
setAxisScaleDraw(QwtPlot::xBottom, new WaterfallFreqDisplayScaleDraw(0));
@@ -309,7 +309,7 @@ WaterfallDisplayPlot::WaterfallDisplayPlot(QWidget* parent)
d_data = new WaterfallData(_startFrequency, _stopFrequency,
_numPoints, 200);
-
+
#if QWT_VERSION < 0x060000
d_spectrogram = new PlotWaterfall(d_data, "Waterfall Display");
@@ -324,7 +324,7 @@ WaterfallDisplayPlot::WaterfallDisplayPlot(QWidget* parent)
#endif
d_spectrogram->attach(this);
-
+
// LeftButton for the zooming
// MidButton for the panning
// RightButton: zoom out by 1
@@ -337,11 +337,11 @@ WaterfallDisplayPlot::WaterfallDisplayPlot(QWidget* parent)
Qt::RightButton, Qt::ControlModifier);
_zoomer->setMousePattern(QwtEventPattern::MouseSelect3,
Qt::RightButton);
-
+
_panner = new QwtPlotPanner(canvas());
_panner->setAxisEnabled(QwtPlot::yRight, false);
_panner->setMouseButton(Qt::MidButton);
-
+
// emit the position of clicks on widget
_picker = new QwtDblClickPlotPicker(canvas());
#if QWT_VERSION < 0x060000
@@ -354,11 +354,11 @@ WaterfallDisplayPlot::WaterfallDisplayPlot(QWidget* parent)
// Avoid jumping when labels with more/less digits
// appear/disappear when scrolling vertically
-
+
const QFontMetrics fm(axisWidget(QwtPlot::yLeft)->font());
QwtScaleDraw *sd = axisScaleDraw(QwtPlot::yLeft);
sd->setMinimumExtent( fm.width("100.00") );
-
+
const QColor c(Qt::black);
_zoomer->setRubberBandPen(c);
_zoomer->setTrackerPen(c);
@@ -374,7 +374,7 @@ WaterfallDisplayPlot::~WaterfallDisplayPlot()
delete d_spectrogram;
}
-void
+void
WaterfallDisplayPlot::Reset()
{
d_data->ResizeData(_startFrequency, _stopFrequency, _numPoints);
@@ -418,7 +418,7 @@ WaterfallDisplayPlot::SetFrequencyRange(const double constStartFreq,
if(stopFreq > startFreq) {
_startFrequency = startFreq;
_stopFrequency = stopFreq;
-
+
if((axisScaleDraw(QwtPlot::xBottom) != NULL) && (_zoomer != NULL)){
double display_units = ceil(log10(units)/2.0);
setAxisScaleDraw(QwtPlot::xBottom, new WaterfallFreqDisplayScaleDraw(display_units));
@@ -448,7 +448,7 @@ WaterfallDisplayPlot::GetStopFrequency() const
}
void
-WaterfallDisplayPlot::PlotNewData(const double* dataPoints,
+WaterfallDisplayPlot::PlotNewData(const double* dataPoints,
const int64_t numDataPoints,
const double timePerFFT,
const gruel::high_res_timer_type timestamp,
@@ -457,30 +457,30 @@ WaterfallDisplayPlot::PlotNewData(const double* dataPoints,
if(numDataPoints > 0){
if(numDataPoints != _numPoints){
_numPoints = numDataPoints;
-
+
Reset();
-
+
d_spectrogram->invalidateCache();
d_spectrogram->itemChanged();
-
+
if(isVisible()){
replot();
}
-
+
_lastReplot = gruel::high_res_timer_now();
}
if(gruel::high_res_timer_now() - _lastReplot > timePerFFT*gruel::high_res_timer_tps()) {
d_data->addFFTData(dataPoints, numDataPoints, droppedFrames);
d_data->IncrementNumLinesToUpdate();
-
+
QwtTimeScaleDraw* timeScale = (QwtTimeScaleDraw*)axisScaleDraw(QwtPlot::yLeft);
timeScale->SetSecondsPerLine(timePerFFT);
timeScale->SetZeroTime(timestamp);
-
+
((WaterfallZoomer*)_zoomer)->SetSecondsPerLine(timePerFFT);
((WaterfallZoomer*)_zoomer)->SetZeroTime(timestamp);
-
+
d_spectrogram->invalidateCache();
d_spectrogram->itemChanged();
@@ -492,7 +492,7 @@ WaterfallDisplayPlot::PlotNewData(const double* dataPoints,
}
void
-WaterfallDisplayPlot::SetIntensityRange(const double minIntensity,
+WaterfallDisplayPlot::SetIntensityRange(const double minIntensity,
const double maxIntensity)
{
#if QWT_VERSION < 0x060000
@@ -547,11 +547,11 @@ WaterfallDisplayPlot::GetIntensityColorMapType() const
}
void
-WaterfallDisplayPlot::SetIntensityColorMapType(const int newType,
- const QColor lowColor,
+WaterfallDisplayPlot::SetIntensityColorMapType(const int newType,
+ const QColor lowColor,
const QColor highColor)
{
- if((_intensityColorMapType != newType) ||
+ if((_intensityColorMapType != newType) ||
((newType == INTENSITY_COLOR_MAP_TYPE_USER_DEFINED) &&
(lowColor.isValid() && highColor.isValid()))){
switch(newType){
@@ -609,7 +609,7 @@ WaterfallDisplayPlot::SetIntensityColorMapType(const int newType,
}
default: break;
}
-
+
_UpdateIntensityRangeDisplay();
}
}
@@ -636,7 +636,7 @@ WaterfallDisplayPlot::_UpdateIntensityRangeDisplay()
#if QWT_VERSION < 0x060000
rightAxis->setColorMap(d_spectrogram->data()->range(),
d_spectrogram->colorMap());
- setAxisScale(QwtPlot::yRight,
+ setAxisScale(QwtPlot::yRight,
d_spectrogram->data()->range().minValue(),
d_spectrogram->data()->range().maxValue());
#else
@@ -660,7 +660,7 @@ WaterfallDisplayPlot::_UpdateIntensityRangeDisplay()
#endif
enableAxis(QwtPlot::yRight);
-
+
plotLayout()->setAlignCanvasToScales(true);
// Tell the display to redraw everything
diff --git a/gr-qtgui/lib/WaterfallDisplayPlot.h b/gr-qtgui/lib/WaterfallDisplayPlot.h
index b78c750ff..d189ca2cb 100644
--- a/gr-qtgui/lib/WaterfallDisplayPlot.h
+++ b/gr-qtgui/lib/WaterfallDisplayPlot.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2009,2010,2011 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,
@@ -49,9 +49,9 @@ public:
void Reset();
- void SetFrequencyRange(const double, const double,
+ void SetFrequencyRange(const double, const double,
const double, const bool,
- const double units=1000.0,
+ const double units=1000.0,
const std::string &strunits = "kHz");
double GetStartFrequency()const;
double GetStopFrequency()const;
@@ -85,7 +85,7 @@ public slots:
// version until it's worked out.
void OnPickerPointSelected(const QwtDoublePoint & p);
void OnPickerPointSelected6(const QPointF & p);
-
+
signals:
void UpdatedLowerIntensityLevel(const double);
void UpdatedUpperIntensityLevel(const double);
diff --git a/gr-qtgui/lib/plot_waterfall.cc b/gr-qtgui/lib/plot_waterfall.cc
index dbba657b8..517ec0275 100644
--- a/gr-qtgui/lib/plot_waterfall.cc
+++ b/gr-qtgui/lib/plot_waterfall.cc
@@ -21,12 +21,12 @@ public:
? QImage::Format_ARGB32 : QImage::Format_Indexed8 )
{
}
-
+
PlotWaterfallImage(const QImage &other):
QImage(other)
{
}
-
+
void initColorTable(const QImage& other)
{
setColorTable(other.colorTable());
@@ -45,7 +45,7 @@ public:
{
delete colorMap;
}
-
+
WaterfallData *data;
QwtColorMap *colorMap;
};
@@ -56,7 +56,7 @@ public:
- QwtPlotItem::Legend: false
The z value is initialized by 8.0.
-
+
\param title Title
\sa QwtPlotItem::setItemAttribute(), QwtPlotItem::setZ()
@@ -131,7 +131,7 @@ QwtDoubleRect PlotWaterfall::boundingRect() const
{
return d_data->data->boundingRect();
}
-#endif
+#endif
/*!
\brief Returns the recommended raster for a given rect.
@@ -152,7 +152,7 @@ QSize PlotWaterfall::rasterHint(const QwtDoubleRect &rect) const
/*!
\brief Render an image from the data and color map.
- The area is translated into a rect of the paint device.
+ The area is translated into a rect of the paint device.
For each pixel of this rect the intensity is mapped
into a color.
@@ -160,7 +160,7 @@ QSize PlotWaterfall::rasterHint(const QwtDoubleRect &rect) const
\param yMap Y-Scale Map
\param area Area that should be rendered in scale coordinates.
- \return A QImage::Format_Indexed8 or QImage::Format_ARGB32 depending
+ \return A QImage::Format_Indexed8 or QImage::Format_ARGB32 depending
on the color map.
\sa QwtRasterData::intensity(), QwtColorMap::rgb(),
@@ -168,11 +168,11 @@ QSize PlotWaterfall::rasterHint(const QwtDoubleRect &rect) const
*/
#if QWT_VERSION < 0x060000
QImage PlotWaterfall::renderImage(const QwtScaleMap &xMap,
- const QwtScaleMap &yMap,
+ const QwtScaleMap &yMap,
const QwtDoubleRect &area) const
#else
QImage PlotWaterfall::renderImage(const QwtScaleMap &xMap,
- const QwtScaleMap &yMap,
+ const QwtScaleMap &yMap,
const QRectF &area,
const QSize &size) const
#endif
@@ -224,7 +224,7 @@ QImage PlotWaterfall::renderImage(const QwtScaleMap &xMap,
xxMap.setPaintInterval(px1, px2);
xxMap.setScaleInterval(sx1, sx2);
yyMap.setPaintInterval(py1, py2);
- yyMap.setScaleInterval(sy1, sy2);
+ yyMap.setScaleInterval(sy1, sy2);
}
PlotWaterfallImage image(rect.size(), d_data->colorMap->format());
@@ -233,7 +233,7 @@ QImage PlotWaterfall::renderImage(const QwtScaleMap &xMap,
const QwtDoubleInterval intensityRange = d_data->data->range();
#else
const QwtInterval intensityRange = d_data->data->interval(Qt::ZAxis);
-#endif
+#endif
if ( !intensityRange.isValid() )
return image;
@@ -294,9 +294,9 @@ QImage PlotWaterfall::renderImage(const QwtScaleMap &xMap,
\param painter Painter
\param xMap Maps x-values into pixel coordinates.
\param yMap Maps y-values into pixel coordinates.
- \param canvasRect Contents rect of the canvas in painter coordinates
+ \param canvasRect Contents rect of the canvas in painter coordinates
- \sa setDisplayMode, renderImage,
+ \sa setDisplayMode, renderImage,
QwtPlotRasterItem::draw, drawContourLines
*/
diff --git a/gr-qtgui/lib/plot_waterfall.h b/gr-qtgui/lib/plot_waterfall.h
index 1613dd8de..df2537b57 100644
--- a/gr-qtgui/lib/plot_waterfall.h
+++ b/gr-qtgui/lib/plot_waterfall.h
@@ -18,7 +18,7 @@ class QwtColorMap;
A waterfall displays threedimenional data, where the 3rd dimension
( the intensity ) is displayed using colors. The colors are calculated
from the values using a color map.
-
+
\sa QwtRasterData, QwtColorMap
*/
@@ -50,11 +50,11 @@ public:
protected:
#if QWT_VERSION < 0x060000
QImage renderImage(const QwtScaleMap &xMap,
- const QwtScaleMap &yMap,
+ const QwtScaleMap &yMap,
const QwtDoubleRect &rect) const;
#else
QImage renderImage(const QwtScaleMap &xMap,
- const QwtScaleMap &yMap,
+ const QwtScaleMap &yMap,
const QRectF &rect,
const QSize &size=QSize(0,0)) const;
#endif
diff --git a/gr-qtgui/lib/qtgui_sink_c.cc b/gr-qtgui/lib/qtgui_sink_c.cc
index b99a0c56a..de730a871 100644
--- a/gr-qtgui/lib/qtgui_sink_c.cc
+++ b/gr-qtgui/lib/qtgui_sink_c.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2009,2010,2011 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,
@@ -55,7 +55,7 @@ qtgui_sink_c::qtgui_sink_c (int fftsize, int wintype,
gr_make_io_signature (1, -1, sizeof(gr_complex)),
gr_make_io_signature (0, 0, 0)),
d_fftsize(fftsize),
- d_wintype((gr_firdes::win_type)(wintype)),
+ d_wintype((gr_firdes::win_type)(wintype)),
d_center_freq(fc), d_bandwidth(bw), d_name(name),
d_plotfreq(plotfreq), d_plotwaterfall(plotwaterfall),
d_plottime(plottime), d_plotconst(plotconst),
@@ -65,7 +65,7 @@ qtgui_sink_c::qtgui_sink_c (int fftsize, int wintype,
// Perform fftshift operation;
// this is usually desired when plotting
- d_shift = true;
+ d_shift = true;
d_fft = new gri_fft_complex (d_fftsize, true);
@@ -110,16 +110,16 @@ qtgui_sink_c::initialize()
}
uint64_t maxBufferSize = 32768;
- d_main_gui = new SpectrumGUIClass(maxBufferSize, d_fftsize,
- d_center_freq,
- -d_bandwidth/2.0,
+ d_main_gui = new SpectrumGUIClass(maxBufferSize, d_fftsize,
+ d_center_freq,
+ -d_bandwidth/2.0,
d_bandwidth/2.0);
d_main_gui->SetDisplayTitle(d_name);
d_main_gui->SetFFTSize(d_fftsize);
d_main_gui->SetWindowType((int)d_wintype);
- d_main_gui->OpenSpectrumWindow(d_parent,
+ d_main_gui->OpenSpectrumWindow(d_parent,
d_plotfreq, d_plotwaterfall,
d_plottime, d_plotconst);
@@ -152,12 +152,12 @@ qtgui_sink_c::pyqwidget()
}
void
-qtgui_sink_c::set_frequency_range(const double centerfreq,
+qtgui_sink_c::set_frequency_range(const double centerfreq,
const double bandwidth)
{
d_center_freq = centerfreq;
d_bandwidth = bandwidth;
- d_main_gui->SetFrequencyRange(d_center_freq,
+ d_main_gui->SetFrequencyRange(d_center_freq,
-d_bandwidth/2.0,
d_bandwidth/2.0);
}
@@ -175,7 +175,7 @@ qtgui_sink_c::set_constellation_axis(double xmin, double xmax,
d_main_gui->SetConstellationAxis(xmin, xmax, ymin, ymax);
}
-void
+void
qtgui_sink_c::set_constellation_pen_size(int size)
{
d_main_gui->SetConstellationPenSize(size);
@@ -211,10 +211,10 @@ qtgui_sink_c::fft(const gr_complex *data_in, int size)
d_fft->execute (); // compute the fft
}
-void
+void
qtgui_sink_c::windowreset()
{
- gr_firdes::win_type newwintype = (gr_firdes::win_type)d_main_gui->GetWindowType();
+ gr_firdes::win_type newwintype = (gr_firdes::win_type)d_main_gui->GetWindowType();
if(d_wintype != newwintype) {
d_wintype = newwintype;
buildwindow();
@@ -241,11 +241,11 @@ qtgui_sink_c::fftresize()
delete [] d_residbuf;
d_residbuf = new gr_complex[newfftsize];
- // Set new fft size and reset buffer index
- // (throws away any currently held data, but who cares?)
+ // Set new fft size and reset buffer index
+ // (throws away any currently held data, but who cares?)
d_fftsize = newfftsize;
d_index = 0;
-
+
// Reset window to reflect new size
buildwindow();
@@ -284,14 +284,14 @@ qtgui_sink_c::general_work (int noutput_items,
// If we have enough input for one full FFT, do it
if(datasize >= resid) {
const gruel::high_res_timer_type currentTime = gruel::high_res_timer_now();
-
+
// Fill up residbuf with d_fftsize number of items
memcpy(d_residbuf+d_index, &in[j], sizeof(gr_complex)*resid);
d_index = 0;
j += resid;
fft(d_residbuf, d_fftsize);
-
+
d_main_gui->UpdateWindow(true, d_fft->get_outbuf(), d_fftsize,
NULL, 0, (float*)d_residbuf, d_fftsize,
currentTime, true);
@@ -302,7 +302,7 @@ qtgui_sink_c::general_work (int noutput_items,
memcpy(d_residbuf+d_index, &in[j], sizeof(gr_complex)*datasize);
d_index += datasize;
j += datasize;
- }
+ }
}
consume_each(j);
diff --git a/gr-qtgui/lib/qtgui_sink_f.cc b/gr-qtgui/lib/qtgui_sink_f.cc
index a435064c0..a02f89d0a 100644
--- a/gr-qtgui/lib/qtgui_sink_f.cc
+++ b/gr-qtgui/lib/qtgui_sink_f.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2009,2010,2011 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,
@@ -108,8 +108,8 @@ qtgui_sink_f::initialize()
uint64_t maxBufferSize = 32768;
d_main_gui = new SpectrumGUIClass(maxBufferSize, d_fftsize,
- d_center_freq,
- -d_bandwidth/2.0,
+ d_center_freq,
+ -d_bandwidth/2.0,
d_bandwidth/2.0);
d_main_gui->SetDisplayTitle(d_name);
d_main_gui->SetFFTSize(d_fftsize);
@@ -144,12 +144,12 @@ qtgui_sink_f::pyqwidget()
}
void
-qtgui_sink_f::set_frequency_range(const double centerfreq,
+qtgui_sink_f::set_frequency_range(const double centerfreq,
const double bandwidth)
{
d_center_freq = centerfreq;
d_bandwidth = bandwidth;
- d_main_gui->SetFrequencyRange(d_center_freq,
+ d_main_gui->SetFrequencyRange(d_center_freq,
-d_bandwidth/2.0,
d_bandwidth/2.0);
}
@@ -167,7 +167,7 @@ qtgui_sink_f::set_constellation_axis(double xmin, double xmax,
d_main_gui->SetConstellationAxis(xmin, xmax, ymin, ymax);
}
-void
+void
qtgui_sink_f::set_constellation_pen_size(int size)
{
d_main_gui->SetConstellationPenSize(size);
@@ -200,14 +200,14 @@ qtgui_sink_f::fft(const float *data_in, int size)
for (int i = 0; i < size; i++) // float to complex conversion
dst[i] = data_in[i];
}
-
+
d_fft->execute (); // compute the fft
}
-void
+void
qtgui_sink_f::windowreset()
{
- gr_firdes::win_type newwintype = (gr_firdes::win_type)d_main_gui->GetWindowType();
+ gr_firdes::win_type newwintype = (gr_firdes::win_type)d_main_gui->GetWindowType();
if(d_wintype != newwintype) {
d_wintype = newwintype;
buildwindow();
@@ -234,11 +234,11 @@ qtgui_sink_f::fftresize()
delete [] d_residbuf;
d_residbuf = new float[newfftsize];
- // Set new fft size and reset buffer index
- // (throws away any currently held data, but who cares?)
+ // Set new fft size and reset buffer index
+ // (throws away any currently held data, but who cares?)
d_fftsize = newfftsize;
d_index = 0;
-
+
// Reset window to reflect new size
buildwindow();
@@ -269,14 +269,14 @@ qtgui_sink_f::general_work (int noutput_items,
// If we have enough input for one full FFT, do it
if(datasize >= resid) {
const gruel::high_res_timer_type currentTime = gruel::high_res_timer_now();
-
+
// Fill up residbuf with d_fftsize number of items
memcpy(d_residbuf+d_index, &in[j], sizeof(float)*resid);
d_index = 0;
j += resid;
fft(d_residbuf, d_fftsize);
-
+
d_main_gui->UpdateWindow(true, d_fft->get_outbuf(), d_fftsize,
(float*)d_residbuf, d_fftsize, NULL, 0,
currentTime, true);
@@ -286,7 +286,7 @@ qtgui_sink_f::general_work (int noutput_items,
memcpy(d_residbuf+d_index, &in[j], sizeof(float)*datasize);
d_index += datasize;
j += datasize;
- }
+ }
}
consume_each(j);
diff --git a/gr-qtgui/lib/qtgui_time_sink_c.cc b/gr-qtgui/lib/qtgui_time_sink_c.cc
index 207d4a924..574fd93ad 100644
--- a/gr-qtgui/lib/qtgui_time_sink_c.cc
+++ b/gr-qtgui/lib/qtgui_time_sink_c.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
@@ -147,11 +147,11 @@ qtgui_time_sink_c::work (int noutput_items,
unsigned int datasize = noutput_items - i;
unsigned int resid = d_size-d_index;
idx = 0;
-
+
// If we have enough input for one full plot, do it
if(datasize >= resid) {
d_current_time = gruel::high_res_timer_now();
-
+
// Fill up residbufs with d_size number of items
for(n = 0; n < d_nconnections; n+=2) {
in = (const gr_complex*)input_items[idx++];
@@ -159,15 +159,15 @@ qtgui_time_sink_c::work (int noutput_items,
d_residbufs[n][d_index+k] = in[j+k].real();
d_residbufs[n+1][d_index+k] = in[j+k].imag();
}
- }
+ }
// Update the plot if its time
if(gruel::high_res_timer_now() - d_last_time > d_update_time) {
d_last_time = d_current_time;
d_qApplication->postEvent(d_main_gui,
- new TimeUpdateEvent(d_residbufs, d_size));
+ new TimeUpdateEvent(d_residbufs, d_size));
}
-
+
d_index = 0;
j += resid;
}
@@ -184,7 +184,7 @@ qtgui_time_sink_c::work (int noutput_items,
}
d_index += datasize;
j += datasize;
- }
+ }
}
return noutput_items;
diff --git a/gr-qtgui/lib/qtgui_time_sink_f.cc b/gr-qtgui/lib/qtgui_time_sink_f.cc
index 2fe99f43c..09fdf0a92 100644
--- a/gr-qtgui/lib/qtgui_time_sink_f.cc
+++ b/gr-qtgui/lib/qtgui_time_sink_f.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
@@ -147,26 +147,26 @@ qtgui_time_sink_f::work (int noutput_items,
unsigned int datasize = noutput_items - i;
unsigned int resid = d_size-d_index;
idx = 0;
-
+
// If we have enough input for one full plot, do it
if(datasize >= resid) {
d_current_time = gruel::high_res_timer_now();
-
+
// Fill up residbufs with d_size number of items
for(n = 0; n < d_nconnections; n++) {
in = (const float*)input_items[idx++];
for(unsigned int k = 0; k < resid; k++) {
d_residbufs[n][d_index+k] = in[j+k];
}
- }
+ }
// Update the plot if its time
if(gruel::high_res_timer_now() - d_last_time > d_update_time) {
d_last_time = d_current_time;
d_qApplication->postEvent(d_main_gui,
- new TimeUpdateEvent(d_residbufs, d_size));
+ new TimeUpdateEvent(d_residbufs, d_size));
}
-
+
d_index = 0;
j += resid;
}
@@ -184,6 +184,6 @@ qtgui_time_sink_f::work (int noutput_items,
j += datasize;
}
}
-
+
return noutput_items;
}
diff --git a/gr-qtgui/lib/spectrumUpdateEvents.cc b/gr-qtgui/lib/spectrumUpdateEvents.cc
index 9be2f5357..bec39747b 100644
--- a/gr-qtgui/lib/spectrumUpdateEvents.cc
+++ b/gr-qtgui/lib/spectrumUpdateEvents.cc
@@ -145,7 +145,7 @@ SpectrumWindowResetEvent::~SpectrumWindowResetEvent()
{
}
-SpectrumFrequencyRangeEvent::SpectrumFrequencyRangeEvent(const double centerFreq,
+SpectrumFrequencyRangeEvent::SpectrumFrequencyRangeEvent(const double centerFreq,
const double startFreq,
const double stopFreq)
: QEvent(QEvent::Type(10010))
diff --git a/gr-qtgui/lib/spectrumUpdateEvents.h b/gr-qtgui/lib/spectrumUpdateEvents.h
index 760619f88..faef0f087 100644
--- a/gr-qtgui/lib/spectrumUpdateEvents.h
+++ b/gr-qtgui/lib/spectrumUpdateEvents.h
@@ -95,7 +95,7 @@ class TimeUpdateEvent: public QEvent
public:
TimeUpdateEvent(const std::vector<double*> timeDomainPoints,
const uint64_t numTimeDomainDataPoints);
-
+
~TimeUpdateEvent();
int which() const;
diff --git a/gr-qtgui/lib/spectrumdisplayform.cc b/gr-qtgui/lib/spectrumdisplayform.cc
index 9fe553557..dd9011dbd 100644
--- a/gr-qtgui/lib/spectrumdisplayform.cc
+++ b/gr-qtgui/lib/spectrumdisplayform.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008-2011 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,
@@ -41,30 +41,30 @@ SpectrumDisplayForm::SpectrumDisplayForm(QWidget* parent)
_realFFTDataPoints = new double[_numRealDataPoints];
_averagedValues = new double[_numRealDataPoints];
_historyVector = new std::vector<double*>;
-
+
_timeDomainDisplayPlot->setTitle(0, "real");
_timeDomainDisplayPlot->setTitle(1, "imag");
AvgLineEdit->setRange(0, 500); // Set range of Average box value from 0 to 500
MinHoldCheckBox_toggled( false );
MaxHoldCheckBox_toggled( false );
-
+
WaterfallMaximumIntensityWheel->setRange(-200, 0);
WaterfallMaximumIntensityWheel->setTickCnt(50);
WaterfallMinimumIntensityWheel->setRange(-200, 0);
WaterfallMinimumIntensityWheel->setTickCnt(50);
WaterfallMinimumIntensityWheel->setValue(-200);
-
+
_peakFrequency = 0;
_peakAmplitude = -HUGE_VAL;
-
+
_noiseFloorAmplitude = -HUGE_VAL;
- connect(_waterfallDisplayPlot, SIGNAL(UpdatedLowerIntensityLevel(const double)),
+ connect(_waterfallDisplayPlot, SIGNAL(UpdatedLowerIntensityLevel(const double)),
_frequencyDisplayPlot, SLOT(SetLowerIntensityLevel(const double)));
- connect(_waterfallDisplayPlot, SIGNAL(UpdatedUpperIntensityLevel(const double)),
+ connect(_waterfallDisplayPlot, SIGNAL(UpdatedUpperIntensityLevel(const double)),
_frequencyDisplayPlot, SLOT(SetUpperIntensityLevel(const double)));
-
+
_frequencyDisplayPlot->SetLowerIntensityLevel(-200);
_frequencyDisplayPlot->SetUpperIntensityLevel(-200);
@@ -90,13 +90,13 @@ SpectrumDisplayForm::SpectrumDisplayForm(QWidget* parent)
// Connect double click signals up
connect(_frequencyDisplayPlot, SIGNAL(plotPointSelected(const QPointF)),
this, SLOT(onFFTPlotPointSelected(const QPointF)));
-
+
connect(_waterfallDisplayPlot, SIGNAL(plotPointSelected(const QPointF)),
this, SLOT(onWFallPlotPointSelected(const QPointF)));
-
+
connect(_timeDomainDisplayPlot, SIGNAL(plotPointSelected(const QPointF)),
this, SLOT(onTimePlotPointSelected(const QPointF)));
-
+
connect(_constellationDisplayPlot, SIGNAL(plotPointSelected(const QPointF)),
this, SLOT(onConstPlotPointSelected(const QPointF)));
}
@@ -122,12 +122,12 @@ SpectrumDisplayForm::~SpectrumDisplayForm()
}
void
-SpectrumDisplayForm::setSystem( SpectrumGUIClass * newSystem,
- const uint64_t numFFTDataPoints,
+SpectrumDisplayForm::setSystem( SpectrumGUIClass * newSystem,
+ const uint64_t numFFTDataPoints,
const uint64_t numTimeDomainDataPoints )
{
ResizeBuffers(numFFTDataPoints, numTimeDomainDataPoints);
-
+
if(newSystem != NULL){
_system = newSystem;
_systemSpecifiedFlag = true;
@@ -179,12 +179,12 @@ SpectrumDisplayForm::newFrequencyData( const SpectrumUpdateEvent* spectrumUpdate
localPeakAmplitude = *realFFTDataPointsPtr;
}
sumMean += *realFFTDataPointsPtr;
-
+
complexDataPointsPtr++;
realFFTDataPointsPtr++;
}
-
- // This loop takes the first half of the input data and puts it in the
+
+ // This loop takes the first half of the input data and puts it in the
// second half of the plotted data
complexDataPointsPtr = complexDataPoints;
for(uint64_t point = 0; point < numFFTDataPoints/2; point++){
@@ -233,18 +233,18 @@ SpectrumDisplayForm::newFrequencyData( const SpectrumUpdateEvent* spectrumUpdate
if(lastOfMultipleUpdatesFlag){
int tabindex = SpectrumTypeTab->currentIndex();
if(tabindex == d_plot_fft) {
- _frequencyDisplayPlot->PlotNewData(_averagedValues, numFFTDataPoints,
- _noiseFloorAmplitude, _peakFrequency,
+ _frequencyDisplayPlot->PlotNewData(_averagedValues, numFFTDataPoints,
+ _noiseFloorAmplitude, _peakFrequency,
_peakAmplitude, d_update_time);
}
if(tabindex == d_plot_time) {
- _timeDomainDisplayPlot->PlotNewData(timeDomainDataPoints,
+ _timeDomainDisplayPlot->PlotNewData(timeDomainDataPoints,
numTimeDomainDataPoints,
d_update_time);
}
if(tabindex == d_plot_constellation) {
- _constellationDisplayPlot->PlotNewData(realTimeDomainDataPoints,
- imagTimeDomainDataPoints,
+ _constellationDisplayPlot->PlotNewData(realTimeDomainDataPoints,
+ imagTimeDomainDataPoints,
numTimeDomainDataPoints,
d_update_time);
}
@@ -252,12 +252,12 @@ SpectrumDisplayForm::newFrequencyData( const SpectrumUpdateEvent* spectrumUpdate
// Don't update the repeated data for the waterfall
if(!repeatDataFlag){
if(tabindex == d_plot_waterfall) {
- _waterfallDisplayPlot->PlotNewData(_realFFTDataPoints, numFFTDataPoints,
- d_update_time, dataTimestamp,
+ _waterfallDisplayPlot->PlotNewData(_realFFTDataPoints, numFFTDataPoints,
+ d_update_time, dataTimestamp,
spectrumUpdateEvent->getDroppedFFTFrames());
}
}
-
+
// Tell the system the GUI has been updated
if(_systemSpecifiedFlag){
_system->SetLastGUIUpdateTime(generatedTimestamp);
@@ -381,12 +381,12 @@ void
SpectrumDisplayForm::TabChanged(int index)
{
// This might be dangerous to call this with NULL
- resizeEvent(NULL);
+ resizeEvent(NULL);
}
void
SpectrumDisplayForm::SetFrequencyRange(const double newCenterFrequency,
- const double newStartFrequency,
+ const double newStartFrequency,
const double newStopFrequency)
{
double fdiff;
@@ -404,7 +404,7 @@ SpectrumDisplayForm::SetFrequencyRange(const double newCenterFrequency,
double units3 = std::max(floor(units10 / 3.0), 0.0);
double units = pow(10, (units10-fmod(units10, 3.0)));
int iunit = static_cast<int>(units3);
-
+
_startFrequency = newStartFrequency;
_stopFrequency = newStopFrequency;
_centerFrequency = newCenterFrequency;
@@ -491,15 +491,15 @@ SpectrumDisplayForm::ResizeBuffers( const uint64_t numFFTDataPoints,
_numRealDataPoints = numFFTDataPoints;
delete[] _realFFTDataPoints;
delete[] _averagedValues;
-
+
_realFFTDataPoints = new double[_numRealDataPoints];
_averagedValues = new double[_numRealDataPoints];
memset(_realFFTDataPoints, 0x0, _numRealDataPoints*sizeof(double));
-
+
const int historySize = _historyVector->size();
SetAverageCount(0); // Clear the existing history
SetAverageCount(historySize);
-
+
Reset();
}
}
@@ -622,7 +622,7 @@ SpectrumDisplayForm::WaterfallIntensityColorTypeChanged( int newType )
}
QMessageBox::information(this, "Low Intensity Color Selection", "In the next window, select the low intensity color for the waterfall display", QMessageBox::Ok);
lowIntensityColor = QColorDialog::getColor(lowIntensityColor, this);
-
+
// Select the High Intensity Color
highIntensityColor = _waterfallDisplayPlot->GetUserDefinedHighIntensityColor();
if(!highIntensityColor.isValid()){
@@ -631,7 +631,7 @@ SpectrumDisplayForm::WaterfallIntensityColorTypeChanged( int newType )
QMessageBox::information(this, "High Intensity Color Selection", "In the next window, select the high intensity color for the waterfall display", QMessageBox::Ok);
highIntensityColor = QColorDialog::getColor(highIntensityColor, this);
}
-
+
_waterfallDisplayPlot->SetIntensityColorMapType(newType, lowIntensityColor, highIntensityColor);
}
diff --git a/gr-qtgui/lib/spectrumdisplayform.h b/gr-qtgui/lib/spectrumdisplayform.h
index 30303a36f..63dd304d5 100644
--- a/gr-qtgui/lib/spectrumdisplayform.h
+++ b/gr-qtgui/lib/spectrumdisplayform.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2009,2010,2011 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,
@@ -44,7 +44,7 @@ class SpectrumDisplayForm : public QWidget, public Ui::SpectrumDisplayForm
public:
SpectrumDisplayForm(QWidget* parent = 0);
~SpectrumDisplayForm();
-
+
void setSystem( SpectrumGUIClass * newSystem, const uint64_t numFFTDataPoints,
const uint64_t numTimeDomainDataPoints );
@@ -54,7 +54,7 @@ class SpectrumDisplayForm : public QWidget, public Ui::SpectrumDisplayForm
void AverageDataReset();
void ResizeBuffers( const uint64_t numFFTDataPoints,
const uint64_t numTimeDomainDataPoints );
-
+
public slots:
void resizeEvent( QResizeEvent * e );
void customEvent( QEvent * e );
@@ -123,9 +123,9 @@ private:
double _peakFrequency;
double _peakAmplitude;
double _stopFrequency;
-
+
//SpectrumUpdateEvent _lastSpectrumEvent;
-
+
// whether or not to use a particular display
int d_plot_fft;
int d_plot_waterfall;
diff --git a/gr-qtgui/lib/timedisplayform.cc b/gr-qtgui/lib/timedisplayform.cc
index cc4ac9951..c650cd3eb 100644
--- a/gr-qtgui/lib/timedisplayform.cc
+++ b/gr-qtgui/lib/timedisplayform.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
@@ -67,7 +67,7 @@ TimeDisplayForm::newData( const TimeUpdateEvent* spectrumUpdateEvent)
{
const std::vector<double*> timeDomainDataPoints = spectrumUpdateEvent->getTimeDomainPoints();
const uint64_t numTimeDomainDataPoints = spectrumUpdateEvent->getNumTimeDomainDataPoints();
-
+
_timeDomainDisplayPlot->PlotNewData(timeDomainDataPoints,
numTimeDomainDataPoints,
d_update_time);
@@ -112,7 +112,7 @@ TimeDisplayForm::onTimePlotPointSelected(const QPointF p)
void
TimeDisplayForm::setFrequencyRange(const double newCenterFrequency,
- const double newStartFrequency,
+ const double newStartFrequency,
const double newStopFrequency)
{
double fdiff = std::max(fabs(newStartFrequency), fabs(newStopFrequency));
@@ -123,7 +123,7 @@ TimeDisplayForm::setFrequencyRange(const double newCenterFrequency,
double units3 = std::max(floor(units10 / 3.0), 0.0);
double units = pow(10, (units10-fmod(units10, 3.0)));
int iunit = static_cast<int>(units3);
-
+
_startFrequency = newStartFrequency;
_stopFrequency = newStopFrequency;
diff --git a/gr-qtgui/lib/timedisplayform.h b/gr-qtgui/lib/timedisplayform.h
index 1216a1ef5..dd3f62a83 100644
--- a/gr-qtgui/lib/timedisplayform.h
+++ b/gr-qtgui/lib/timedisplayform.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
@@ -41,9 +41,9 @@ class TimeDisplayForm : public QWidget
public:
TimeDisplayForm(int nplots=1, QWidget* parent = 0);
~TimeDisplayForm();
-
+
void Reset();
-
+
public slots:
void resizeEvent( QResizeEvent * e );
void customEvent( QEvent * e );
@@ -77,7 +77,7 @@ private:
bool _systemSpecifiedFlag;
double _startFrequency;
double _stopFrequency;
-
+
QTimer *displayTimer;
double d_update_time;
};
diff --git a/gr-qtgui/lib/waterfallGlobalData.cc b/gr-qtgui/lib/waterfallGlobalData.cc
index 04366a297..f64ed14f1 100644
--- a/gr-qtgui/lib/waterfallGlobalData.cc
+++ b/gr-qtgui/lib/waterfallGlobalData.cc
@@ -9,15 +9,15 @@ WaterfallData::WaterfallData(const double minimumFrequency,
const uint64_t fftPoints,
const unsigned int historyExtent)
#if QWT_VERSION < 0x060000
- : QwtRasterData(QwtDoubleRect(minimumFrequency /* X START */, 0 /* Y START */,
- maximumFrequency - minimumFrequency /* WIDTH */,
+ : QwtRasterData(QwtDoubleRect(minimumFrequency /* X START */, 0 /* Y START */,
+ maximumFrequency - minimumFrequency /* WIDTH */,
static_cast<double>(historyExtent)/* HEIGHT */))
#else
: QwtRasterData()
#endif
{
_intensityRange = QwtDoubleInterval(-200.0, 0.0);
-
+
_fftPoints = fftPoints;
_historyLength = historyExtent;
@@ -46,7 +46,7 @@ void WaterfallData::Reset()
void WaterfallData::Copy(const WaterfallData* rhs)
{
-#if QWT_VERSION < 0x060000
+#if QWT_VERSION < 0x060000
if((_fftPoints != rhs->GetNumFFTPoints()) ||
(boundingRect() != rhs->boundingRect()) ){
_fftPoints = rhs->GetNumFFTPoints();
@@ -66,24 +66,24 @@ void WaterfallData::Copy(const WaterfallData* rhs)
SetSpectrumDataBuffer(rhs->GetSpectrumDataBuffer());
SetNumLinesToUpdate(rhs->GetNumLinesToUpdate());
-#if QWT_VERSION < 0x060000
+#if QWT_VERSION < 0x060000
setRange(rhs->range());
#else
setInterval(Qt::XAxis, rhs->interval(Qt::XAxis));
setInterval(Qt::YAxis, rhs->interval(Qt::YAxis));
setInterval(Qt::ZAxis, rhs->interval(Qt::ZAxis));
-#endif
+#endif
}
void WaterfallData::ResizeData(const double startFreq,
const double stopFreq,
const uint64_t fftPoints)
{
-#if QWT_VERSION < 0x060000
+#if QWT_VERSION < 0x060000
if((fftPoints != GetNumFFTPoints()) ||
(boundingRect().width() != (stopFreq - startFreq)) ||
(boundingRect().left() != startFreq)){
-
+
setBoundingRect(QwtDoubleRect(startFreq, 0,
stopFreq-startFreq,
boundingRect().height()));
@@ -96,7 +96,7 @@ void WaterfallData::ResizeData(const double startFreq,
if((fftPoints != GetNumFFTPoints()) ||
(interval(Qt::XAxis).width() != (stopFreq - startFreq)) ||
(interval(Qt::XAxis).minValue() != startFreq)){
-
+
setInterval(Qt::XAxis, QwtInterval(startFreq, stopFreq));
_fftPoints = fftPoints;
@@ -104,13 +104,13 @@ void WaterfallData::ResizeData(const double startFreq,
_spectrumData = new double[_fftPoints * _historyLength];
}
#endif
-
+
Reset();
}
QwtRasterData *WaterfallData::copy() const
{
-#if QWT_VERSION < 0x060000
+#if QWT_VERSION < 0x060000
WaterfallData* returnData = new WaterfallData(boundingRect().left(),
boundingRect().right(),
_fftPoints, _historyLength);
@@ -142,11 +142,11 @@ void WaterfallData::setRange(const QwtDoubleInterval& newRange)
double WaterfallData::value(double x, double y) const
{
double returnValue = 0.0;
-
+
#if QWT_VERSION < 0x060000
- const unsigned int intY = static_cast<unsigned int>((1.0 - (y/boundingRect().height())) *
+ const unsigned int intY = static_cast<unsigned int>((1.0 - (y/boundingRect().height())) *
static_cast<double>(_historyLength-1));
- const unsigned int intX = static_cast<unsigned int>((((x - boundingRect().left()) / boundingRect().width()) *
+ const unsigned int intX = static_cast<unsigned int>((((x - boundingRect().left()) / boundingRect().width()) *
static_cast<double>(_fftPoints-1)) + 0.5);
#else
double height = interval(Qt::YAxis).maxValue();
@@ -183,7 +183,7 @@ void WaterfallData::addFFTData(const double* fftData,
heightOffset = 0;
drawingDroppedFrames = static_cast<uint64_t>(_historyLength-1);
}
-
+
// Copy the old data over if any available
if(heightOffset > 0){
memmove( _spectrumData, &_spectrumData[(drawingDroppedFrames+1) * _fftPoints],
diff --git a/gr-qtgui/lib/waterfallGlobalData.h b/gr-qtgui/lib/waterfallGlobalData.h
index 89e48da5f..928c3b175 100644
--- a/gr-qtgui/lib/waterfallGlobalData.h
+++ b/gr-qtgui/lib/waterfallGlobalData.h
@@ -14,12 +14,12 @@ class WaterfallData: public QwtRasterData
public:
WaterfallData(const double, const double, const uint64_t, const unsigned int);
virtual ~WaterfallData();
-
+
virtual void Reset();
virtual void Copy(const WaterfallData*);
-
+
virtual void ResizeData(const double, const double, const uint64_t);
-
+
virtual QwtRasterData *copy() const;
#if QWT_VERSION < 0x060000
@@ -28,13 +28,13 @@ public:
#endif
virtual double value(double x, double y) const;
-
+
virtual uint64_t GetNumFFTPoints()const;
virtual void addFFTData(const double*, const uint64_t, const int);
-
+
virtual double* GetSpectrumDataBuffer()const;
virtual void SetSpectrumDataBuffer(const double*);
-
+
virtual int GetNumLinesToUpdate()const;
virtual void SetNumLinesToUpdate(const int);
virtual void IncrementNumLinesToUpdate();
diff --git a/gr-qtgui/python/__init__.py b/gr-qtgui/python/__init__.py
index 236f211b1..c7024e4f7 100644
--- a/gr-qtgui/python/__init__.py
+++ b/gr-qtgui/python/__init__.py
@@ -1,23 +1,23 @@
#
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
'''
This is the gr-qtgui package. This package includes QT-based graphical
diff --git a/gr-qtgui/python/qa_qtgui.py b/gr-qtgui/python/qa_qtgui.py
index 9cafd4550..562706701 100755
--- a/gr-qtgui/python/qa_qtgui.py
+++ b/gr-qtgui/python/qa_qtgui.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
import qtgui_swig
@@ -30,19 +30,19 @@ class test_qtgui(gr_unittest.TestCase):
def tearDown (self):
self.tb = None
-
+
def test01 (self):
# Test to make sure we can instantiate the sink
- self.qtsnk = qtgui_swig.sink_c(1024, gr.firdes.WIN_BLACKMAN_hARRIS,
+ self.qtsnk = qtgui_swig.sink_c(1024, gr.firdes.WIN_BLACKMAN_hARRIS,
0, 1, "Test",
True, True, True, True)
def test02 (self):
# Test to make sure we can instantiate the sink
- self.qtsnk = qtgui_swig.sink_f(1024, gr.firdes.WIN_BLACKMAN_hARRIS,
+ self.qtsnk = qtgui_swig.sink_f(1024, gr.firdes.WIN_BLACKMAN_hARRIS,
0, 1, "Test",
True, True, True, True)
-
-
+
+
if __name__ == '__main__':
gr_unittest.run(test_qtgui, "test_qtgui.xml")
diff --git a/gr-qtgui/swig/CMakeLists.txt b/gr-qtgui/swig/CMakeLists.txt
index 7a976f917..9f092f6c6 100644
--- a/gr-qtgui/swig/CMakeLists.txt
+++ b/gr-qtgui/swig/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2010-2011 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,
diff --git a/gr-qtgui/swig/__init__.py b/gr-qtgui/swig/__init__.py
index 3986f2513..e52e326cb 100644
--- a/gr-qtgui/swig/__init__.py
+++ b/gr-qtgui/swig/__init__.py
@@ -1,23 +1,23 @@
#
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
# The presence of this file turns this directory into a Python package
diff --git a/gr-qtgui/swig/qtgui_sink_c.i b/gr-qtgui/swig/qtgui_sink_c.i
index ff6241482..65e7d1c82 100644
--- a/gr-qtgui/swig/qtgui_sink_c.i
+++ b/gr-qtgui/swig/qtgui_sink_c.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2009,2011 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,
@@ -50,7 +50,7 @@ private:
bool plotfreq, bool plotwaterfall,
bool plottime, bool plotconst,
QWidget *parent);
-
+
public:
void exec_();
PyObject* pyqwidget();
diff --git a/gr-qtgui/swig/qtgui_sink_f.i b/gr-qtgui/swig/qtgui_sink_f.i
index a34420461..b07eaa9ec 100644
--- a/gr-qtgui/swig/qtgui_sink_f.i
+++ b/gr-qtgui/swig/qtgui_sink_f.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2009,2011 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,
@@ -27,7 +27,7 @@
%}
GR_SWIG_BLOCK_MAGIC(qtgui,sink_f)
-
+
qtgui_sink_f_sptr qtgui_make_sink_f (int fftsize, int wintype,
double fc=0, double bw=0.0,
const std::string &name="Display",
diff --git a/gr-qtgui/swig/qtgui_swig.i b/gr-qtgui/swig/qtgui_swig.i
index 6e5f6e124..0d77e22da 100644
--- a/gr-qtgui/swig/qtgui_swig.i
+++ b/gr-qtgui/swig/qtgui_swig.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2009,2011 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,
diff --git a/gr-qtgui/swig/qtgui_time_sink_c.i b/gr-qtgui/swig/qtgui_time_sink_c.i
index e7240aa69..b78ca5386 100644
--- a/gr-qtgui/swig/qtgui_time_sink_c.i
+++ b/gr-qtgui/swig/qtgui_time_sink_c.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
@@ -44,7 +44,7 @@ private:
const std::string &name,
int nconnections,
QWidget *parent=NULL);
-
+
public:
void exec_();
PyObject* pyqwidget();
diff --git a/gr-qtgui/swig/qtgui_time_sink_f.i b/gr-qtgui/swig/qtgui_time_sink_f.i
index 06af42da3..9d59f9364 100644
--- a/gr-qtgui/swig/qtgui_time_sink_f.i
+++ b/gr-qtgui/swig/qtgui_time_sink_f.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
@@ -44,7 +44,7 @@ private:
const std::string &name,
int nconnections,
QWidget *parent=NULL);
-
+
public:
void exec_();
PyObject* pyqwidget();
diff --git a/gr-shd/CMakeLists.txt b/gr-shd/CMakeLists.txt
index a1b3b1a0b..7dad30cd8 100644
--- a/gr-shd/CMakeLists.txt
+++ b/gr-shd/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gr-shd/apps/shd_fft b/gr-shd/apps/shd_fft
index 46832784d..60d07e55e 100755
--- a/gr-shd/apps/shd_fft
+++ b/gr-shd/apps/shd_fft
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gru
from gnuradio import shd
@@ -37,7 +37,7 @@ class app_top_block(stdgui2.std_top_block):
self.frame = frame
self.panel = panel
-
+
parser = OptionParser(option_class=eng_option)
parser.add_option("-a", "--address", type="string",
default="type=xmini",
@@ -66,7 +66,7 @@ class app_top_block(stdgui2.std_top_block):
sys.exit(1)
self.options = options
self.show_debug_info = True
-
+
self.src = shd.smini_source(device_addr=options.address,
io_type=shd.io_type.COMPLEX_FLOAT32,
num_channels=1)
@@ -88,7 +88,7 @@ class app_top_block(stdgui2.std_top_block):
else:
self.scope = fftsink2.fft_sink_c (panel,
fft_size=options.fft_size,
- sample_rate=input_rate,
+ sample_rate=input_rate,
ref_scale=options.ref_scale,
ref_level=20.0,
y_divs = 12,
@@ -100,7 +100,7 @@ class app_top_block(stdgui2.std_top_block):
self._build_gui(vbox)
self._setup_events()
-
+
# set initial values
if options.gain is None:
@@ -112,7 +112,7 @@ class app_top_block(stdgui2.std_top_block):
# if no freq was specified, use the mid-point
r = self.src.get_freq_range()
options.freq = float(r.start()+r.stop())/2
-
+
self.set_gain(options.gain)
if self.show_debug_info:
@@ -137,9 +137,9 @@ class app_top_block(stdgui2.std_top_block):
def _form_set_freq(kv):
return self.set_freq(kv['freq'])
-
+
vbox.Add(self.scope.win, 10, wx.EXPAND)
-
+
# add control area at the bottom
self.myform = myform = form.form()
hbox = wx.BoxSizer(wx.HORIZONTAL)
@@ -171,7 +171,7 @@ class app_top_block(stdgui2.std_top_block):
# FIXME figure out how to have this be a subpanel that is always
# created, but has its visibility controlled by foo.Show(True/False)
-
+
def _form_set_samp_rate(kv):
return self.set_samp_rate(kv['samprate'])
@@ -204,7 +204,7 @@ class app_top_block(stdgui2.std_top_block):
hbox.Add((5,0), 0)
vbox.Add(hbox, 0, wx.EXPAND)
-
+
def set_freq(self, target_freq):
"""
Set the center frequency we're interested in.
@@ -244,12 +244,12 @@ class app_top_block(stdgui2.std_top_block):
self.myform['fs@gbe'].set_value(input_rate)
# shd set_samp_rate never fails; always falls back to closest requested.
- return True
+ return True
def _setup_events(self):
if not self.options.waterfall and not self.options.oscilloscope:
self.scope.win.Bind(wx.EVT_LEFT_DCLICK, self.evt_left_dclick)
-
+
def evt_left_dclick(self, event):
(ux, uy) = self.scope.win.GetXY(event)
if event.CmdDown():
@@ -265,13 +265,13 @@ class app_top_block(stdgui2.std_top_block):
(freq, pwr) = points[ind]
target_freq = freq/self.scope.win._scale_factor
print ind, freq, pwr
- self.set_freq(target_freq)
+ self.set_freq(target_freq)
else:
# Re-center on clicked frequency
target_freq = ux/self.scope.win._scale_factor
self.set_freq(target_freq)
-
-
+
+
def main ():
app = stdgui2.stdapp(app_top_block, "SHD FFT", nstatus=1)
app.MainLoop()
diff --git a/gr-shd/apps/shd_rx_cfile b/gr-shd/apps/shd_rx_cfile
index 007bc809f..5b4178cf7 100755
--- a/gr-shd/apps/shd_rx_cfile
+++ b/gr-shd/apps/shd_rx_cfile
@@ -1,28 +1,28 @@
#!/usr/bin/env python
#
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
"""
Read samples from a SHD device and write to file formatted as binary
-outputs single precision complex float values or complex short values
+outputs single precision complex float values or complex short values
(interleaved 16 bit signed short integers).
"""
@@ -50,7 +50,7 @@ class rx_cfile_block(gr.top_block):
io_type=shd.io_type.COMPLEX_FLOAT32,
num_channels=1)
self._sink = gr.file_sink(gr.sizeof_gr_complex, filename)
-
+
# Set receiver sample rate
self._src.set_samp_rate(options.samp_rate)
@@ -90,7 +90,7 @@ class rx_cfile_block(gr.top_block):
self.connect(self._src, self._head, self._sink)
input_rate = self._src.get_samp_rate()
-
+
if options.verbose:
print "Address:", options.address
print "Rx gain:", options.gain
@@ -106,7 +106,7 @@ class rx_cfile_block(gr.top_block):
else:
print "Writing 32-bit complex floats"
print "Output filename:", filename
-
+
def get_options():
usage="%prog: [options] output_filename"
parser = OptionParser(option_class=eng_option, usage=usage)
@@ -133,19 +133,19 @@ def get_options():
if len(args) != 1:
parser.print_help()
raise SystemExit, 1
-
+
if options.freq is None:
parser.print_help()
sys.stderr.write('You must specify the frequency with -f FREQ\n');
raise SystemExit, 1
-
+
return (options, args[0])
if __name__ == '__main__':
(options, filename) = get_options()
tb = rx_cfile_block(options, filename)
-
+
try:
tb.run()
except KeyboardInterrupt:
diff --git a/gr-shd/apps/shd_siggen b/gr-shd/apps/shd_siggen
index 112eeea15..9629d80d2 100755
--- a/gr-shd/apps/shd_siggen
+++ b/gr-shd/apps/shd_siggen
@@ -1,28 +1,28 @@
#!/usr/bin/env python
#
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
"""
Read samples from a SHD device and write to file formatted as binary
-outputs single precision complex float values or complex short values
+outputs single precision complex float values or complex short values
(interleaved 16 bit signed short integers).
"""
@@ -74,14 +74,14 @@ class shd_siggen(gr.top_block):
# Create head block if needed and wire it up
self.connect(self._src, self._snk)
input_rate = self._snk.get_samp_rate()
-
+
if options.verbose:
print "Address:", options.address
print "Rx gain:", options.gain
print "Rx baseband frequency:", n2s(tr.actual_rf_freq)
print "Rx DDC frequency:", n2s(tr.actual_dsp_freq)
print "Rx Sample Rate:", n2s(input_rate)
-
+
def get_options():
usage="%prog: [options]"
parser = OptionParser(option_class=eng_option, usage=usage)
@@ -106,14 +106,14 @@ def get_options():
parser.print_help()
sys.stderr.write('You must specify the frequency with -f FREQ\n');
raise SystemExit, 1
-
+
return (options)
if __name__ == '__main__':
options = get_options()
tb = shd_siggen(options)
-
+
try:
tb.run()
except KeyboardInterrupt:
diff --git a/gr-shd/grc/CMakeLists.txt b/gr-shd/grc/CMakeLists.txt
index f35d36ba3..67a8fc13f 100644
--- a/gr-shd/grc/CMakeLists.txt
+++ b/gr-shd/grc/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gr-shd/include/CMakeLists.txt b/gr-shd/include/CMakeLists.txt
index c4db1fd22..34349841c 100644
--- a/gr-shd/include/CMakeLists.txt
+++ b/gr-shd/include/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gr-shd/include/gr_shd_api.h b/gr-shd/include/gr_shd_api.h
index e6773c3f3..13b755cbd 100644
--- a/gr-shd/include/gr_shd_api.h
+++ b/gr-shd/include/gr_shd_api.h
@@ -1,18 +1,18 @@
/*
* Copyright 2011 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,
diff --git a/gr-shd/include/gr_shd_smini_sink.h b/gr-shd/include/gr_shd_smini_sink.h
index 938958687..b807e5c87 100644
--- a/gr-shd/include/gr_shd_smini_sink.h
+++ b/gr-shd/include/gr_shd_smini_sink.h
@@ -1,18 +1,18 @@
/*
* Copyright 2011 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,
@@ -34,30 +34,30 @@ GR_SHD_API boost::shared_ptr<shd_smini_sink> shd_make_smini_sink(
size_t num_channels
);
-class GR_SHD_API shd_smini_sink : virtual public gr_sync_block
+class GR_SHD_API shd_smini_sink : virtual public gr_sync_block
{
public:
-
+
/*!
* Set the subdevice specification.
* \param spec the subdev spec markup string
* \param mboard the motherboard index 0 to M-1
*/
virtual void set_subdev_spec(const std::string &spec, size_t mboard = 0) = 0;
-
+
/*!
* Set the sample rate for the smini device.
* \param rate a new rate in Sps
*/
virtual void set_samp_rate(double rate) = 0;
-
+
/*!
* Get the sample rate for the smini device.
* This is the actual sample rate and may differ from the rate set.
* \return the actual rate in Sps
*/
virtual double get_samp_rate(void) = 0;
-
+
/*!
* Tune the smini device to the desired center frequency.
* \param tune_request the tune request instructions
@@ -86,14 +86,14 @@ class GR_SHD_API shd_smini_sink : virtual public gr_sync_block
* \return the frequency in Hz
*/
virtual double get_center_freq(size_t chan = 0) = 0;
-
+
/*!
* Get the tunable frequency range.
* \param chan the channel index 0 to N-1
* \return the frequency range in Hz
*/
virtual shd::freq_range_t get_freq_range(size_t chan = 0) = 0;
-
+
/*!
* Set the gain for the dboard.
* \param gain the gain in dB
@@ -116,7 +116,7 @@ class GR_SHD_API shd_smini_sink : virtual public gr_sync_block
* \return the actual gain in dB
*/
virtual double get_gain(size_t chan = 0) = 0;
-
+
/*!
* Get the actual dboard gain setting of named stage.
* \param name the name of the gain stage
@@ -132,7 +132,7 @@ class GR_SHD_API shd_smini_sink : virtual public gr_sync_block
* \return the actual gain in dB
*/
virtual std::vector<std::string> get_gain_names(size_t chan = 0) = 0;
-
+
/*!
* Get the settable gain range.
* \param chan the channel index 0 to N-1
@@ -148,7 +148,7 @@ class GR_SHD_API shd_smini_sink : virtual public gr_sync_block
*/
virtual shd::gain_range_t get_gain_range(const std::string &name,
size_t chan = 0) = 0;
-
+
/*!
* Set the antenna to use.
* \param ant the antenna string
@@ -156,21 +156,21 @@ class GR_SHD_API shd_smini_sink : virtual public gr_sync_block
*/
virtual void set_antenna(const std::string &ant,
size_t chan = 0) = 0;
-
+
/*!
* Get the antenna in use.
* \param chan the channel index 0 to N-1
* \return the antenna string
*/
virtual std::string get_antenna(size_t chan = 0) = 0;
-
+
/*!
* Get a list of possible antennas.
* \param chan the channel index 0 to N-1
* \return a vector of antenna strings
*/
virtual std::vector<std::string> get_antennas(size_t chan = 0) = 0;
-
+
/*!
* Set the subdevice bandpass filter.
* \param chan the channel index 0 to N-1
@@ -186,14 +186,14 @@ class GR_SHD_API shd_smini_sink : virtual public gr_sync_block
*/
virtual shd::sensor_value_t get_dboard_sensor(const std::string &name,
size_t chan = 0) = 0;
-
+
/*!
* Get a list of possible daughterboard sensor names.
* \param chan the channel index 0 to N-1
* \return a vector of sensor names
*/
virtual std::vector<std::string> get_dboard_sensor_names(size_t chan = 0) = 0;
-
+
/*!
* Get a motherboard sensor value.
* \param name the name of the sensor
@@ -224,28 +224,28 @@ class GR_SHD_API shd_smini_sink : virtual public gr_sync_block
* \return the clock rate in Hz
*/
virtual double get_clock_rate(size_t mboard = 0) = 0;
-
+
/*!
* Set the master clock rate.
* \param rate the new rate in Hz
* \param mboard the motherboard index 0 to M-1
*/
virtual void set_clock_rate(double rate, size_t mboard = 0) = 0;
-
+
/*!
* Get the current time registers.
* \param mboard the motherboard index 0 to M-1
* \return the current smini time
*/
virtual shd::time_spec_t get_time_now(size_t mboard = 0) = 0;
-
+
/*!
* Get the time when the last pps pulse occured.
* \param mboard the motherboard index 0 to M-1
* \return the current smini time
*/
virtual shd::time_spec_t get_time_last_pps(size_t mboard = 0) = 0;
-
+
/*!
* Sets the time registers immediately.
* \param time_spec the new time
@@ -259,19 +259,19 @@ class GR_SHD_API shd_smini_sink : virtual public gr_sync_block
* \param time_spec the new time
*/
virtual void set_time_next_pps(const shd::time_spec_t &time_spec) = 0;
-
+
/*!
* Sync the time registers with an unknown pps edge.
* \param time_spec the new time
*/
virtual void set_time_unknown_pps(const shd::time_spec_t &time_spec) = 0;
-
+
/*!
* Get access to the underlying shd dboard iface object.
* \return the dboard_iface object
*/
virtual shd::xmini::dboard_iface::sptr get_dboard_iface(size_t chan = 0) = 0;
-
+
/*!
* Get access to the underlying shd device object.
* \return the multi smini device object
diff --git a/gr-shd/include/gr_shd_smini_source.h b/gr-shd/include/gr_shd_smini_source.h
index 3e3dbf427..11c8563fe 100644
--- a/gr-shd/include/gr_shd_smini_source.h
+++ b/gr-shd/include/gr_shd_smini_source.h
@@ -1,18 +1,18 @@
/*
* Copyright 2011 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,
@@ -37,7 +37,7 @@ GR_SHD_API boost::shared_ptr<shd_smini_source> shd_make_smini_source(
class GR_SHD_API shd_smini_source : virtual public gr_sync_block
{
public:
-
+
/*!
* Set the subdevice specification.
* \param spec the subdev spec markup string
@@ -45,7 +45,7 @@ class GR_SHD_API shd_smini_source : virtual public gr_sync_block
*/
virtual void set_subdev_spec(const std::string &spec,
size_t mboard = 0) = 0;
-
+
/*!
* Set the sample rate for the smini device.
* \param rate a new rate in Sps
@@ -58,7 +58,7 @@ class GR_SHD_API shd_smini_source : virtual public gr_sync_block
* \return the actual rate in Sps
*/
virtual double get_samp_rate(void) = 0;
-
+
/*!
* Tune the smini device to the desired center frequency.
* \param tune_request the tune request instructions
@@ -69,7 +69,7 @@ class GR_SHD_API shd_smini_source : virtual public gr_sync_block
const shd::tune_request_t tune_request,
size_t chan = 0
) = 0;
-
+
/*!
* Tune the smini device to the desired center frequency.
* This is a wrapper around set center freq so that in this case,
@@ -81,28 +81,28 @@ class GR_SHD_API shd_smini_source : virtual public gr_sync_block
shd::tune_result_t set_center_freq(double freq, size_t chan = 0){
return set_center_freq(shd::tune_request_t(freq), chan);
}
-
+
/*!
* Get the center frequency.
* \param chan the channel index 0 to N-1
* \return the frequency in Hz
*/
virtual double get_center_freq(size_t chan = 0) = 0;
-
+
/*!
* Get the tunable frequency range.
* \param chan the channel index 0 to N-1
* \return the frequency range in Hz
*/
virtual shd::freq_range_t get_freq_range(size_t chan = 0) = 0;
-
+
/*!
* Set the gain for the dboard.
* \param gain the gain in dB
* \param chan the channel index 0 to N-1
*/
virtual void set_gain(double gain, size_t chan = 0) = 0;
-
+
/*!
* Set the named gain on the dboard.
* \param gain the gain in dB
@@ -111,14 +111,14 @@ class GR_SHD_API shd_smini_source : virtual public gr_sync_block
*/
virtual void set_gain(double gain, const std::string &name,
size_t chan = 0) = 0;
-
+
/*!
* Get the actual dboard gain setting.
* \param chan the channel index 0 to N-1
* \return the actual gain in dB
*/
virtual double get_gain(size_t chan = 0) = 0;
-
+
/*!
* Get the actual dboard gain setting of named stage.
* \param name the name of the gain stage
@@ -127,21 +127,21 @@ class GR_SHD_API shd_smini_source : virtual public gr_sync_block
*/
virtual double get_gain(const std::string &name,
size_t chan = 0) = 0;
-
+
/*!
* Get the actual dboard gain setting of named stage.
* \param chan the channel index 0 to N-1
* \return the actual gain in dB
*/
virtual std::vector<std::string> get_gain_names(size_t chan = 0) = 0;
-
+
/*!
* Get the settable gain range.
* \param chan the channel index 0 to N-1
* \return the gain range in dB
*/
virtual shd::gain_range_t get_gain_range(size_t chan = 0) = 0;
-
+
/*!
* Get the settable gain range.
* \param name the name of the gain stage
@@ -150,7 +150,7 @@ class GR_SHD_API shd_smini_source : virtual public gr_sync_block
*/
virtual shd::gain_range_t get_gain_range(const std::string &name,
size_t chan = 0) = 0;
-
+
/*!
* Set the antenna to use.
* \param ant the antenna string
@@ -158,21 +158,21 @@ class GR_SHD_API shd_smini_source : virtual public gr_sync_block
*/
virtual void set_antenna(const std::string &ant,
size_t chan = 0) = 0;
-
+
/*!
* Get the antenna in use.
* \param chan the channel index 0 to N-1
* \return the antenna string
*/
virtual std::string get_antenna(size_t chan = 0) = 0;
-
+
/*!
* Get a list of possible antennas.
* \param chan the channel index 0 to N-1
* \return a vector of antenna strings
*/
virtual std::vector<std::string> get_antennas(size_t chan = 0) = 0;
-
+
/*!
* Set the subdevice bandpass filter.
* \param bandwidth the filter bandwidth in Hz
@@ -180,7 +180,7 @@ class GR_SHD_API shd_smini_source : virtual public gr_sync_block
*/
virtual void set_bandwidth(double bandwidth,
size_t chan = 0) = 0;
-
+
/*!
* Get a daughterboard sensor value.
* \param name the name of the sensor
@@ -189,14 +189,14 @@ class GR_SHD_API shd_smini_source : virtual public gr_sync_block
*/
virtual shd::sensor_value_t get_dboard_sensor(const std::string &name,
size_t chan = 0) = 0;
-
+
/*!
* Get a list of possible daughterboard sensor names.
* \param chan the channel index 0 to N-1
* \return a vector of sensor names
*/
virtual std::vector<std::string> get_dboard_sensor_names(size_t chan = 0) = 0;
-
+
/*!
* Get a motherboard sensor value.
* \param name the name of the sensor
@@ -205,14 +205,14 @@ class GR_SHD_API shd_smini_source : virtual public gr_sync_block
*/
virtual shd::sensor_value_t get_mboard_sensor(const std::string &name,
size_t mboard = 0) = 0;
-
+
/*!
* Get a list of possible motherboard sensor names.
* \param mboard the motherboard index 0 to M-1
* \return a vector of sensor names
*/
virtual std::vector<std::string> get_mboard_sensor_names(size_t mboard = 0) = 0;
-
+
/*!
* Set the clock configuration.
* \param clock_config the new configuration
@@ -220,14 +220,14 @@ class GR_SHD_API shd_smini_source : virtual public gr_sync_block
*/
virtual void set_clock_config(const shd::clock_config_t &clock_config,
size_t mboard = 0) = 0;
-
+
/*!
* Get the master clock rate.
* \param mboard the motherboard index 0 to M-1
* \return the clock rate in Hz
*/
virtual double get_clock_rate(size_t mboard = 0) = 0;
-
+
/*!
* Set the master clock rate.
* \param rate the new rate in Hz
@@ -242,14 +242,14 @@ class GR_SHD_API shd_smini_source : virtual public gr_sync_block
* \return the current smini time
*/
virtual shd::time_spec_t get_time_now(size_t mboard = 0) = 0;
-
+
/*!
* Get the time when the last pps pulse occured.
* \param mboard the motherboard index 0 to M-1
* \return the current smini time
*/
virtual shd::time_spec_t get_time_last_pps(size_t mboard = 0) = 0;
-
+
/*!
* Sets the time registers immediately.
* \param time_spec the new time
@@ -263,19 +263,19 @@ class GR_SHD_API shd_smini_source : virtual public gr_sync_block
* \param time_spec the new time
*/
virtual void set_time_next_pps(const shd::time_spec_t &time_spec) = 0;
-
+
/*!
* Sync the time registers with an unknown pps edge.
* \param time_spec the new time
*/
virtual void set_time_unknown_pps(const shd::time_spec_t &time_spec) = 0;
-
+
/*!
* Get access to the underlying shd dboard iface object.
* \return the dboard_iface object
*/
virtual shd::xmini::dboard_iface::sptr get_dboard_iface(size_t chan = 0) = 0;
-
+
/*!
* Get access to the underlying shd device object.
* \return the multi smini device object
diff --git a/gr-shd/lib/CMakeLists.txt b/gr-shd/lib/CMakeLists.txt
index e8528fddb..9ddf109af 100644
--- a/gr-shd/lib/CMakeLists.txt
+++ b/gr-shd/lib/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gr-shd/lib/gr_shd_smini_sink.cc b/gr-shd/lib/gr_shd_smini_sink.cc
index c9fb222d0..658f5719e 100644
--- a/gr-shd/lib/gr_shd_smini_sink.cc
+++ b/gr-shd/lib/gr_shd_smini_sink.cc
@@ -1,18 +1,18 @@
/*
* Copyright 2011 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,
@@ -52,11 +52,11 @@ public:
_dev->set_tx_rate(rate);
_sample_rate = this->get_samp_rate();
}
-
+
double get_samp_rate(void){
return _dev->get_tx_rate();
}
-
+
shd::tune_result_t set_center_freq(
const shd::tune_request_t tune_request, size_t chan)
{
@@ -67,142 +67,142 @@ public:
{
return _dev->get_tx_freq(chan);
}
-
+
shd::freq_range_t get_freq_range(size_t chan)
{
return _dev->get_tx_freq_range(chan);
}
-
+
void set_gain(double gain, size_t chan)
{
return _dev->set_tx_gain(gain, chan);
}
-
+
void set_gain(double gain, const std::string &name,
size_t chan)
{
return _dev->set_tx_gain(gain, name, chan);
}
-
+
double get_gain(size_t chan){
return _dev->get_tx_gain(chan);
}
-
+
double get_gain(const std::string &name, size_t chan)
{
return _dev->get_tx_gain(name, chan);
}
-
+
std::vector<std::string> get_gain_names(size_t chan)
{
return _dev->get_tx_gain_names(chan);
}
-
+
shd::gain_range_t get_gain_range(size_t chan)
{
return _dev->get_tx_gain_range(chan);
}
-
+
shd::gain_range_t get_gain_range(const std::string &name,
size_t chan)
{
return _dev->get_tx_gain_range(name, chan);
}
-
+
void set_antenna(const std::string &ant, size_t chan)
{
return _dev->set_tx_antenna(ant, chan);
}
-
+
std::string get_antenna(size_t chan)
{
return _dev->get_tx_antenna(chan);
}
-
+
std::vector<std::string> get_antennas(size_t chan)
{
return _dev->get_tx_antennas(chan);
}
-
+
void set_bandwidth(double bandwidth, size_t chan)
{
return _dev->set_tx_bandwidth(bandwidth, chan);
}
-
+
shd::sensor_value_t get_dboard_sensor(const std::string &name,
size_t chan)
{
return _dev->get_tx_sensor(name, chan);
}
-
+
std::vector<std::string> get_dboard_sensor_names(size_t chan)
{
return _dev->get_tx_sensor_names(chan);
}
-
+
shd::sensor_value_t get_mboard_sensor(const std::string &name,
size_t mboard)
{
return _dev->get_mboard_sensor(name, mboard);
}
-
+
std::vector<std::string> get_mboard_sensor_names(size_t mboard)
{
return _dev->get_mboard_sensor_names(mboard);
}
-
+
void set_clock_config(const shd::clock_config_t &clock_config,
size_t mboard)
{
return _dev->set_clock_config(clock_config, mboard);
}
-
+
double get_clock_rate(size_t mboard)
{
return _dev->get_master_clock_rate(mboard);
}
-
+
void set_clock_rate(double rate, size_t mboard)
{
return _dev->set_master_clock_rate(rate, mboard);
}
-
+
shd::time_spec_t get_time_now(size_t mboard = 0)
{
return _dev->get_time_now(mboard);
}
-
+
shd::time_spec_t get_time_last_pps(size_t mboard)
{
return _dev->get_time_last_pps(mboard);
}
-
+
void set_time_now(const shd::time_spec_t &time_spec,
size_t mboard)
{
return _dev->set_time_now(time_spec, mboard);
}
-
+
void set_time_next_pps(const shd::time_spec_t &time_spec)
{
return _dev->set_time_next_pps(time_spec);
}
-
+
void set_time_unknown_pps(const shd::time_spec_t &time_spec)
{
return _dev->set_time_unknown_pps(time_spec);
}
-
+
shd::xmini::dboard_iface::sptr get_dboard_iface(size_t chan)
{
return _dev->get_tx_dboard_iface(chan);
}
-
+
shd::xmini::multi_xmini::sptr get_device(void)
{
return _dev;
}
-
+
/*******************************************************************
* Work
******************************************************************/
@@ -214,7 +214,7 @@ public:
_metadata.start_of_burst = false;
_metadata.end_of_burst = false;
_metadata.has_time_spec = _has_time_spec;
-
+
size_t num_sent = _dev->get_device()->send(
input_items, noutput_items, _metadata,
_type, shd::device::SEND_MODE_FULL_BUFF, 1.0);
@@ -223,7 +223,7 @@ public:
_metadata.time_spec += shd::time_spec_t(0, num_sent, _sample_rate);
return num_sent;
}
-
+
//Send an empty start-of-burst packet to begin streaming.
//Set at a time in the near future to avoid late packets.
bool start(void)
@@ -232,13 +232,13 @@ public:
_metadata.end_of_burst = false;
_metadata.has_time_spec = _has_time_spec;
_metadata.time_spec = get_time_now() + shd::time_spec_t(0.01);
-
+
_dev->get_device()->send(
gr_vector_const_void_star(_nchan), 0, _metadata,
_type, shd::device::SEND_MODE_ONE_PACKET, 1.0);
return true;
}
-
+
//Send an empty end-of-burst packet to end streaming.
//Ending the burst avoids an underflow error on stop.
bool stop(void)
@@ -246,13 +246,13 @@ public:
_metadata.start_of_burst = false;
_metadata.end_of_burst = true;
_metadata.has_time_spec = false;
-
+
_dev->get_device()->send(
gr_vector_const_void_star(_nchan), 0, _metadata,
_type, shd::device::SEND_MODE_ONE_PACKET, 1.0);
return true;
}
-
+
protected:
shd::xmini::multi_xmini::sptr _dev;
const shd::io_type_t _type;
diff --git a/gr-shd/lib/gr_shd_smini_source.cc b/gr-shd/lib/gr_shd_smini_source.cc
index caf98f311..58559a623 100644
--- a/gr-shd/lib/gr_shd_smini_source.cc
+++ b/gr-shd/lib/gr_shd_smini_source.cc
@@ -1,18 +1,18 @@
/*
* Copyright 2011 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,
@@ -48,7 +48,7 @@ public:
{
_dev = shd::xmini::multi_xmini::make(device_addr);
}
-
+
void set_subdev_spec(const std::string &spec, size_t mboard)
{
return _dev->set_rx_subdev_spec(spec, mboard);
@@ -85,7 +85,7 @@ public:
return _dev->set_rx_gain(gain, chan);
}
- void set_gain(double gain, const std::string &name,
+ void set_gain(double gain, const std::string &name,
size_t chan)
{
return _dev->set_rx_gain(gain, name, chan);
@@ -100,7 +100,7 @@ public:
{
return _dev->get_rx_gain(name, chan);
}
-
+
std::vector<std::string> get_gain_names(size_t chan)
{
return _dev->get_rx_gain_names(chan);
@@ -111,7 +111,7 @@ public:
return _dev->get_rx_gain_range(chan);
}
- shd::gain_range_t get_gain_range(const std::string &name,
+ shd::gain_range_t get_gain_range(const std::string &name,
size_t chan)
{
return _dev->get_rx_gain_range(name, chan);
@@ -136,8 +136,8 @@ public:
{
return _dev->set_rx_bandwidth(bandwidth, chan);
}
-
- shd::sensor_value_t get_dboard_sensor(const std::string &name,
+
+ shd::sensor_value_t get_dboard_sensor(const std::string &name,
size_t chan)
{
return _dev->get_rx_sensor(name, chan);
@@ -147,18 +147,18 @@ public:
{
return _dev->get_rx_sensor_names(chan);
}
-
+
shd::sensor_value_t get_mboard_sensor(const std::string &name,
size_t mboard)
{
return _dev->get_mboard_sensor(name, mboard);
}
-
+
std::vector<std::string> get_mboard_sensor_names(size_t mboard)
{
return _dev->get_mboard_sensor_names(mboard);
}
-
+
void set_clock_config(const shd::clock_config_t &clock_config,
size_t mboard)
{
@@ -232,23 +232,23 @@ public:
output_items, noutput_items, _metadata,
_type, shd::device::RECV_MODE_ONE_PACKET, 1.0);
}
-
+
//handle possible errors conditions
switch(_metadata.error_code) {
case shd::rx_metadata_t::ERROR_CODE_NONE:
//TODO insert tag for time stamp
break;
-
+
case shd::rx_metadata_t::ERROR_CODE_TIMEOUT:
//Assume that the user called stop() on the flow graph.
//However, a timeout can occur under error conditions.
return WORK_DONE;
-
+
case shd::rx_metadata_t::ERROR_CODE_OVERFLOW:
//ignore overflows and try work again
//TODO insert tag for overflow
return work(noutput_items, input_items, output_items);
-
+
default:
std::cout << boost::format("SHD source block got error code 0x%x"
) % _metadata.error_code << std::endl;
@@ -257,7 +257,7 @@ public:
return num_samps;
}
-
+
bool start(void)
{
//setup a stream command that starts streaming slightly in the future
@@ -268,7 +268,7 @@ public:
_dev->issue_stream_cmd(stream_cmd);
return true;
}
-
+
bool stop(void)
{
_dev->issue_stream_cmd(shd::stream_cmd_t::STREAM_MODE_STOP_CONTINUOUS);
diff --git a/gr-shd/swig/__init__.py b/gr-shd/swig/__init__.py
index d34eb214a..a9dea9420 100644
--- a/gr-shd/swig/__init__.py
+++ b/gr-shd/swig/__init__.py
@@ -1,18 +1,18 @@
#
# Copyright 2011 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,
diff --git a/gr-shd/swig/qa_shd.py b/gr-shd/swig/qa_shd.py
index 538de918c..a589fee43 100755
--- a/gr-shd/swig/qa_shd.py
+++ b/gr-shd/swig/qa_shd.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2005,2008,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
import shd_swig
@@ -35,6 +35,6 @@ class test_shd(gr_unittest.TestCase):
"""Just see if we can import the module...
They may not have a SHD device connected, etc. Don't try to run anything"""
pass
-
+
if __name__ == '__main__':
gr_unittest.run(test_shd, "test_shd.xml")
diff --git a/gr-shd/swig/shd_swig.i b/gr-shd/swig/shd_swig.i
index 5f324a269..9d5dae51c 100644
--- a/gr-shd/swig/shd_swig.i
+++ b/gr-shd/swig/shd_swig.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
diff --git a/gr-trellis/CMakeLists.txt b/gr-trellis/CMakeLists.txt
index 4e0ddc4eb..16a3e7c19 100644
--- a/gr-trellis/CMakeLists.txt
+++ b/gr-trellis/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gr-trellis/README b/gr-trellis/README
index e6a31de02..11b925b00 100644
--- a/gr-trellis/README
+++ b/gr-trellis/README
@@ -1,23 +1,23 @@
#
# Copyright 2005,2006 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,
# Boston, MA 02110-1301, USA.
-#
+#
The doc directory is not built by default. This is to avoid spurious
diff --git a/gr-trellis/doc/CMakeLists.txt b/gr-trellis/doc/CMakeLists.txt
index a45202861..568539582 100644
--- a/gr-trellis/doc/CMakeLists.txt
+++ b/gr-trellis/doc/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gr-trellis/doc/gr-trellis.xml b/gr-trellis/doc/gr-trellis.xml
index 5f1921343..4657dab38 100644
--- a/gr-trellis/doc/gr-trellis.xml
+++ b/gr-trellis/doc/gr-trellis.xml
@@ -31,8 +31,8 @@
</revhistory>
-->
-<abstract><para>This document provides a description of the
-Finite State Machine (FSM) implementation and the related
+<abstract><para>This document provides a description of the
+Finite State Machine (FSM) implementation and the related
trellis-based encoding and decoding algorithms
for GNU Radio.
</para></abstract>
@@ -46,21 +46,21 @@ for GNU Radio.
<sect1 id="intro"><title>Introduction</title>
<para>
-The basic goal of the implementation is to have a generic way of
-describing an FSM that is decoupled from whether it describes a
-convolutional
-code (CC), a trellis code (TC), an inter-symbol interference (ISI)
+The basic goal of the implementation is to have a generic way of
+describing an FSM that is decoupled from whether it describes a
+convolutional
+code (CC), a trellis code (TC), an inter-symbol interference (ISI)
channel, or any
other communication system that can be modeled with an FSM.
To achieve this goal, we need to separate the pure FSM descrition from the
-rest of the model details. For instance, in the case of a rate 2/3 TC,
+rest of the model details. For instance, in the case of a rate 2/3 TC,
the FSM should not involve details about the modulation used (it can
be an 8-ary PAM, or 8-PSK, etc). Similarly, when attempting maximum likelihood
sequence detection (MLSD)--using for instance the Viterbi algorithm (VA)--
the VA implementation should not be concerned with the channel details
(such as modulations, channel type, hard or soft inputs, etc).
Clearly, having generality as the primary goal implies some penalty
-on the code efficiency, as compared to fully custom implementations.
+on the code efficiency, as compared to fully custom implementations.
</para>
<para>
@@ -74,11 +74,11 @@ We will now describe the implementation of the basic ingedient, the FSM.
<sect1 id="fsm"><title>The FSM class</title>
<para>An FSM describes the evolution of a system with inputs
-x<subscript>k</subscript>, states s<subscript>k</subscript> and outputs y<subscript>k</subscript>. At time k the FSM state is s<subscript>k</subscript>.
+x<subscript>k</subscript>, states s<subscript>k</subscript> and outputs y<subscript>k</subscript>. At time k the FSM state is s<subscript>k</subscript>.
Upon reception of a new input symbol x<subscript>k</subscript>, it outputs an output symbol
-y<subscript>k</subscript> which is a function of both x<subscript>k</subscript> and s<subscript>k</subscript>.
+y<subscript>k</subscript> which is a function of both x<subscript>k</subscript> and s<subscript>k</subscript>.
It will then move to a next state s<subscript>k+1</subscript>.
-An FSM has a finite number of states, input and output symbols.
+An FSM has a finite number of states, input and output symbols.
All these are formally described as follows:
</para>
@@ -86,19 +86,19 @@ All these are formally described as follows:
<listitem><para>The input alphabet A<subscript>I</subscript>={0,1,2,...,I-1}, with cardinality I, so that x<subscript>k</subscript> takes values in A<subscript>I</subscript>.</para></listitem>
<listitem><para>The state alphabet A<subscript>S</subscript>={0,1,2,...,S-1}, with cardinality S, so that s<subscript>k</subscript> takes values in A<subscript>S</subscript>.</para></listitem>
<listitem><para>The output alphabet A<subscript>O</subscript>={0,1,2,...,O-1}, with cardinality O, so that y<subscript>k</subscript> takes values in A<subscript>O</subscript></para></listitem>
-<listitem><para>The "next-state" function NS: A<subscript>S</subscript> x A<subscript>I</subscript> --> A<subscript>S</subscript>,
-with the meaning
+<listitem><para>The "next-state" function NS: A<subscript>S</subscript> x A<subscript>I</subscript> --> A<subscript>S</subscript>,
+with the meaning
s<subscript>k+1</subscript> = NS(s<subscript>k</subscript>, x<subscript>k</subscript>)</para></listitem>
-<listitem><para>The "output-symbol" function OS: A<subscript>S</subscript> x A<subscript>I</subscript> --> A<subscript>S</subscript>,
-with the meaning
+<listitem><para>The "output-symbol" function OS: A<subscript>S</subscript> x A<subscript>I</subscript> --> A<subscript>S</subscript>,
+with the meaning
y<subscript>k</subscript> = OS(s<subscript>k</subscript>, x<subscript>k</subscript>)</para></listitem>
</itemizedlist>
<para>
-Thus, a complete description of the FSM is given by the
+Thus, a complete description of the FSM is given by the
the five-tuple (I,S,O,NS,OS).
-Observe that implementation details are hidden
-in how the outside world interprets these input and output
+Observe that implementation details are hidden
+in how the outside world interprets these input and output
integer symbols.
Here is an example of an FSM describing the (2,1) CC
with constraint length 3 and generator polynomial matrix
@@ -112,15 +112,15 @@ from Proakis-Salehi pg. 779.
<para>
This CC accepts 1 bit at a time, and outputs 2 bits at a time.
It has a shift register storing the last two input bits.
-In particular,
+In particular,
b<subscript>k</subscript>(0)=x<subscript>k</subscript>+
x<subscript>k-1</subscript>+x<subscript>k-2</subscript>, and
b<subscript>k</subscript>(1)=x<subscript>k</subscript>+
-x<subscript>k-2</subscript>, where addition is mod-2.
+x<subscript>k-2</subscript>, where addition is mod-2.
We can represent the state of this system
as s<subscript>k</subscript> = (x<subscript>k-1</subscript> x<subscript>k-2</subscript>)<subscript>10</subscript>. In addition we can represent its
-output symbol as y<subscript>k</subscript> = (b<subscript>k</subscript>(1) b<subscript>k</subscript>(0))<subscript>10</subscript>.
-Based on the above assumptions, the input alphabet A<subscript>I</subscript>={0,1}, so I=2;
+output symbol as y<subscript>k</subscript> = (b<subscript>k</subscript>(1) b<subscript>k</subscript>(0))<subscript>10</subscript>.
+Based on the above assumptions, the input alphabet A<subscript>I</subscript>={0,1}, so I=2;
the state alphabet A<subscript>S</subscript>={0,1,2,3}, so S=4; and
the output alphabet A<subscript>O</subscript>={0,1,2,3}, so O=4.
The "next-state" function NS(,) is given by
@@ -150,12 +150,12 @@ s<subscript>k</subscript> x<subscript>k</subscript> y<subscript>k</subscript>
</para>
<para>
-Note that although the CC outputs 2 bits per time period, following
-our approach, there is only one (quaternary) output symbol per
-time period (for instance, here we use the decimal representation
-of the 2-bits). Also note that the modulation used is not part of
-the FSM description: it can be BPSK, OOK, BFSK, QPSK with or without Gray mapping, etc;
-it is up to the rest of the program to interpret the meaning of
+Note that although the CC outputs 2 bits per time period, following
+our approach, there is only one (quaternary) output symbol per
+time period (for instance, here we use the decimal representation
+of the 2-bits). Also note that the modulation used is not part of
+the FSM description: it can be BPSK, OOK, BFSK, QPSK with or without Gray mapping, etc;
+it is up to the rest of the program to interpret the meaning of
the symbol y<subscript>k</subscript>.
</para>
@@ -203,9 +203,9 @@ public:
</programlisting>
<para>
-As can be seen, other than the trivial and the copy constructor,
+As can be seen, other than the trivial and the copy constructor,
there are three additional
-ways to construct an FSM.
+ways to construct an FSM.
</para>
<itemizedlist>
@@ -258,10 +258,10 @@ For instance, the file containing the information for the example mentioned abov
<listitem>
<para>
-The third way is specific to FSMs representing binary (n,k) conolutional codes. These FSMs are specified by the number of input bits k, the number of output bits n, and the generator matrix, which is a k x n matrix of integers
+The third way is specific to FSMs representing binary (n,k) conolutional codes. These FSMs are specified by the number of input bits k, the number of output bits n, and the generator matrix, which is a k x n matrix of integers
G = [g<subscript>i,j</subscript>]<subscript>i=1:k, j=1:n</subscript>, given as an one-dimensional STL vector.
-Each integer g<subscript>i,j</subscript> is the decimal representation of the
-polynomial g<subscript>i,j</subscript>(D) (e.g., g<subscript>i,j</subscript>= 6 = 110<subscript>2</subscript> is interpreted as g<subscript>i,j</subscript>(D)=1+D) describing the connections from the sequence x<subscript>i</subscript> to
+Each integer g<subscript>i,j</subscript> is the decimal representation of the
+polynomial g<subscript>i,j</subscript>(D) (e.g., g<subscript>i,j</subscript>= 6 = 110<subscript>2</subscript> is interpreted as g<subscript>i,j</subscript>(D)=1+D) describing the connections from the sequence x<subscript>i</subscript> to
y<subscript>j</subscript> (e.g., in the above example y<subscript>j</subscript>(k) = x<subscript>i</subscript>(k) + x<subscript>i</subscript>(k-1)).
</para>
<programlisting>
@@ -293,29 +293,29 @@ I have added other constructors as well, eg, one that constructs an FSM appropri
<para>
As can be seen from the above description, there are
-two more variables included in the FSM class implementation,
-the PS and the PI matrices. These are computed internally
+two more variables included in the FSM class implementation,
+the PS and the PI matrices. These are computed internally
when an FSM is instantiated and their meaning is as follows.
Sometimes (eg, in the traceback operation of the VA) we need
-to trace the history of the state or the input sequence.
+to trace the history of the state or the input sequence.
To do this we would like to know for a given state s<subscript>k</subscript>, what are the possible previous states s<subscript>k-1</subscript>
-and what input symbols x<subscript>k-1</subscript> will get us from
-s<subscript>k-1</subscript> to s<subscript>k</subscript>. This information can be derived from NS; however we want to have it ready in a
-convenient format.
-In the following we assume that for any state,
-the number of incoming transitions is the same as the number of
-outgoing transitions, ie, equal to I. All applications of interest
+and what input symbols x<subscript>k-1</subscript> will get us from
+s<subscript>k-1</subscript> to s<subscript>k</subscript>. This information can be derived from NS; however we want to have it ready in a
+convenient format.
+In the following we assume that for any state,
+the number of incoming transitions is the same as the number of
+outgoing transitions, ie, equal to I. All applications of interest
have FSMs satisfying this requirement.
-If we arbitrarily index the incoming transitions to the current state
+If we arbitrarily index the incoming transitions to the current state
by "i", then as i goes from 0 to I-1, PS(s<subscript>k</subscript>,i)
gives all previous states s<subscript>k-1</subscript>,
and PI(s<subscript>k</subscript>,i) gives all previous inputs x<subscript>k-1</subscript>.
-In other words, for any given s<subscript>k</subscript> and any index i=0,1,...I-1, starting from
+In other words, for any given s<subscript>k</subscript> and any index i=0,1,...I-1, starting from
s<subscript>k-1</subscript>=PS(s<subscript>k</subscript>,i)
-with input
+with input
x<subscript>k-1</subscript>=PI(s<subscript>k</subscript>,i)
-will get us to the state s<subscript>k</subscript>.
+will get us to the state s<subscript>k</subscript>.
More formally, for any i=0,1,...I-1 we have
s<subscript>k</subscript> = NS(PS(s<subscript>k</subscript>,i),PI(s<subscript>k</subscript>,i)).
@@ -330,7 +330,7 @@ when an FSM is instantiated and their meaning is as follows.
TMl(i,j) is the minimum number of trellis steps required to go from state i to state j.
Similarly, TMi(i,j) is the initial input required to get you from state i to state j in the minimum number of steps. As an example, if TMl(1,4)=2, it means that you need 2 steps in the trellis to get from state 1 to state 4. Further,
if TMi(1,4)=0 it means that the first such step will be followed if when at state 1 the input is 0. Furthermore, suppose that NS(1,0)=2. Then, TMl(2,4) should be 1 (ie, one more step is needed when starting from state 2 and having state 4 as the final destination). Finally, TMi(2,4) will give us the second input required to complete the path from 1 to 4.
-These matrices are useful when we want to implement an encoder with proper state termination. For instance, based on these matrices we can evaluate how many
+These matrices are useful when we want to implement an encoder with proper state termination. For instance, based on these matrices we can evaluate how many
additional input symbols (and which particular inputs) are required to be appended at the end of an input sequence so that the final state is always 0.
</para>
@@ -351,18 +351,18 @@ In this section we give a brief description of the basic blocks implemented that
<!-- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -->
<sect2 id="encoder"><title>Trellis Encoder</title>
<para>
-The <methodname>trellis.encoder_XX(FSM, ST)</methodname> block instantiates an FSM encoder corresponding to the fsm FSM and having initial state ST. The input and output is a sequence of bytes, shorts or integers.
+The <methodname>trellis.encoder_XX(FSM, ST)</methodname> block instantiates an FSM encoder corresponding to the fsm FSM and having initial state ST. The input and output is a sequence of bytes, shorts or integers.
</para>
</sect2>
<!-- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -->
<sect2 id="decoder"><title>Viterbi Decoder</title>
<para>
-The <methodname>trellis.viterbi_X(FSM, K, S0, SK)</methodname> block instantiates a Viterbi decoder
+The <methodname>trellis.viterbi_X(FSM, K, S0, SK)</methodname> block instantiates a Viterbi decoder
for a sequence of K trellis steps generated by the given FSM and with initial and final states set to S0 and SK, respectively (S0 and/or SK are set to -1
if the corresponding states are not fixed/known at the receiver side).
The output of this block is a sequence of K bytes, shorts or integers representing the estimated input (i.e., uncoded) sequence.
-The input is a sequence of K x FSM.O( ) floats, where the k x K + i
+The input is a sequence of K x FSM.O( ) floats, where the k x K + i
float represents the cost associated with the k-th
step in the trellis and the i-th FSM output.
Observe that these inputs are generated externally and thus the Viterbi block is not informed of their meaning (they can be genarated as soft or hard inputs, etc); the only requirement is that they represent additive costs.
@@ -372,9 +372,9 @@ Observe that these inputs are generated externally and thus the Viterbi block is
<!-- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -->
<sect2 id="metrics"><title>Metrics Calculator</title>
<para>
-The <methodname>trellis.metrics_X(O,D,TABLE,TYPE)</methodname> block is responsible for
-transforming the channel output to the stream of metrics appropriate as
-inputs to the Viterbi block described above. For each D input bytes/shorts/integers/floats/complexes it produces O output floats
+The <methodname>trellis.metrics_X(O,D,TABLE,TYPE)</methodname> block is responsible for
+transforming the channel output to the stream of metrics appropriate as
+inputs to the Viterbi block described above. For each D input bytes/shorts/integers/floats/complexes it produces O output floats
</para>
@@ -384,9 +384,9 @@ The parameter TYPE dictates how these metrics are generated:
<itemizedlist>
<listitem><para>
-TRELLIS_EUCLIDEAN: for each D-dimensional vector
+TRELLIS_EUCLIDEAN: for each D-dimensional vector
r<subscript>k</subscript>=
-(r<subscript>k,1</subscript>,r<subscript>k,2</subscript>,...,r<subscript>k,D</subscript>)
+(r<subscript>k,1</subscript>,r<subscript>k,2</subscript>,...,r<subscript>k,D</subscript>)
evaluates
</para>
<para>
@@ -400,33 +400,33 @@ where TABLE[i * D + j] = c<subscript>i,j</subscript>.
<listitem><para>
-TRELLIS_HARD_SYMBOL: for each D-dimensional vector
+TRELLIS_HARD_SYMBOL: for each D-dimensional vector
r<subscript>k</subscript>=
-(r<subscript>k,1</subscript>,r<subscript>k,2</subscript>,...,r<subscript>k,D</subscript>)
+(r<subscript>k,1</subscript>,r<subscript>k,2</subscript>,...,r<subscript>k,D</subscript>)
evaluates
</para>
<para>
-i<subscript>0</subscript>= argmin<subscript>i</subscript> ||r<subscript>k</subscript>-c<subscript>i</subscript>||<superscript>2</superscript> =
+i<subscript>0</subscript>= argmin<subscript>i</subscript> ||r<subscript>k</subscript>-c<subscript>i</subscript>||<superscript>2</superscript> =
argmin<subscript>i</subscript> sum<subscript>j=1</subscript><superscript>D</superscript> |r<subscript>k,j</subscript>-c<subscript>i,j</subscript>|<superscript>2</superscript>
</para>
<para>
-and outputs a sequence of O floats of the form (0,...,0,1,0,...,0), where the
+and outputs a sequence of O floats of the form (0,...,0,1,0,...,0), where the
i<subscript>0</subscript> position is set to 1. This corresponds to generating hard inputs (based on the symbol-wise Hamming distance) to the Viterbi algorithm.
</para></listitem>
<listitem><para>
-TRELLIS_HARD_BIT (not yet implemented): for each D-dimensional vector
+TRELLIS_HARD_BIT (not yet implemented): for each D-dimensional vector
r<subscript>k</subscript>=
-(r<subscript>k,1</subscript>,r<subscript>k,2</subscript>,...,r<subscript>k,D</subscript>)
+(r<subscript>k,1</subscript>,r<subscript>k,2</subscript>,...,r<subscript>k,D</subscript>)
evaluates
</para>
<para>
-i<subscript>0</subscript>= argmin<subscript>i</subscript> ||r<subscript>k</subscript>-c<subscript>i</subscript>||<superscript>2</superscript> =
+i<subscript>0</subscript>= argmin<subscript>i</subscript> ||r<subscript>k</subscript>-c<subscript>i</subscript>||<superscript>2</superscript> =
argmin<subscript>i</subscript> sum<subscript>j=1</subscript><superscript>D</superscript> (r<subscript>k,j</subscript>-c<subscript>i,j</subscript>)<superscript>2</superscript>
</para>
<para>
-and outputs a sequence of O floats of the form (d<subscript>1</subscript>,d<subscript>2</subscript>,...,d<subscript>O</subscript>), where the
+and outputs a sequence of O floats of the form (d<subscript>1</subscript>,d<subscript>2</subscript>,...,d<subscript>O</subscript>), where the
d<subscript>i</subscript> is the bitwise Hamming distance between i and i<subscript>0</subscript>. This corresponds to generating hard inputs (based on the bit-wise Hamming distance) to the Viterbi algorithm.
</para></listitem>
@@ -444,9 +444,9 @@ d<subscript>i</subscript> is the bitwise Hamming distance between i and i<subsc
<sect2 id="viterbi_combined"><title>Combined Metrics Calculator and Viterbi Decoder</title>
<para>
Although the separation of metric calculation and Viterbi algorithm blocks
-is consistent with our goal of providing general blocks that can be easily
+is consistent with our goal of providing general blocks that can be easily
reused, this separation might result in large input/output buffer sizes
-betwen blocks. Indeed for an FSM with a large output alphabet, the
+betwen blocks. Indeed for an FSM with a large output alphabet, the
output of the metric block/input of the Viterbi block is FSM.O( ) floats for
each trellis step. Sometimes this results in buffer overflow even for
moderate sequence lengths.
@@ -471,7 +471,7 @@ the above FSM model can be used in GNU Radio.
The communication system that we want to simulate
consists of a source generating the
-input information in packets, a CC encoding each packet separately,
+input information in packets, a CC encoding each packet separately,
a memoryless modulator,
an additive white Gaussian noise (AWGN) channel, and
the VA performing MLSD.
@@ -486,14 +486,14 @@ The program is called by
./test_tcm.py fsm_fname Es/No_db repetitions
</literallayout>
where "fsm_fname" is the file containing the FSM specification of the
-tested TCM code, "Es/No_db" is the SNR in dB, and "repetitions"
+tested TCM code, "Es/No_db" is the SNR in dB, and "repetitions"
are the number of packets to be transmitted and received in order to
collect sufficient number of errors for an accurate estimate of the
error rate.
</para>
<para>
-The FSM is first intantiated in "main" by
+The FSM is first intantiated in "main" by
</para>
<programlisting>
62 f=trellis.fsm(fname) # get the FSM specification from a file
@@ -508,8 +508,8 @@ The FSM is first intantiated in "main" by
<para>
Each packet has size Kb bits
(we choose Kb to be a multiple of 16 so that all bits fit nicely into shorts and can be generated by the lfsr GNU Radio).
-Assuming that the FSM input has cardinality I, each input symbol consists
-of bitspersymbol=log<subscript>2</subscript>( I ). The Kb/16 shorts are now
+Assuming that the FSM input has cardinality I, each input symbol consists
+of bitspersymbol=log<subscript>2</subscript>( I ). The Kb/16 shorts are now
unpacked to K=Kb/bitspersymbol input
symbols that will drive the FSM encoder.
</para>
@@ -561,9 +561,9 @@ different noise realizations.
<para>
-Let us examine now the "run_test" function.
+Let us examine now the "run_test" function.
First we set up the transmitter blocks.
-The Kb/16 shorts are first unpacked to
+The Kb/16 shorts are first unpacked to
symbols consistent with the FSM input alphabet.
The FSm encoder requires the FSM specification,
and an initial state (which is set to 0 in this example).
@@ -581,9 +581,9 @@ and an initial state (which is set to 0 in this example).
<para>
We now need to modulate the FSM output symbols.
-The "chunks_to_symbols_sf" is essentially a memoryless mapper which
-for each input symbol y_k
-outputs a sequence of D numbers ci1,ci2,...,ciD representing the
+The "chunks_to_symbols_sf" is essentially a memoryless mapper which
+for each input symbol y_k
+outputs a sequence of D numbers ci1,ci2,...,ciD representing the
coordianates of the constellation symbol c_i with i=y_k.
</para>
<programlisting>
@@ -607,16 +607,16 @@ r_k=(rk1,rk2,...,rkD).
Part of the design methodology was to decouple the FSM and VA from
the details of the modulation, channel, receiver front-end etc.
In order for the VA to run, we only need to provide it with
-a number representing a cost associated with each transition
-in the trellis. Then the VA will find the sequence with
-the smallest total cost through the trellis.
+a number representing a cost associated with each transition
+in the trellis. Then the VA will find the sequence with
+the smallest total cost through the trellis.
The cost associated with a transition (s_k,x_k) is only a function
of the output y_k = OS(s_k,x_k), and the observation
vector r_k. Thus, for each time period, k,
we need to label each of the SxI transitions with such a cost.
-This means that for each time period we need to evaluate
-O such numbers (one for each possible output symbol y_k).
-This is done
+This means that for each time period we need to evaluate
+O such numbers (one for each possible output symbol y_k).
+This is done
in "metrics_f". In particular, metrics_f is a memoryless device
taking D inputs at a time and producing O outputs. The D inputs are
rk1,rk2,...,rkD.
@@ -627,7 +627,7 @@ if we choose to perform soft-input VA, we need to evaluate
the Euclidean distance between r_k and each of c_1,c_2,...,c_M,
for each of the K transmitted symbols.
Other options are available as well; for instance, we can
-do hard decision demodulation and feed the VA with
+do hard decision demodulation and feed the VA with
symbol Hamming distances, or even bit Hamming distances, etc.
These are all implemented in "metrics_f".
</para>
@@ -638,7 +638,7 @@ These are all implemented in "metrics_f".
<para>
Now the VA can run once it is supplied by the initial and final states.
-The initial state is known to be 0; the final state is usually
+The initial state is known to be 0; the final state is usually
forced to some value by padding the information sequence appropriately.
In this example, we always send the the same info sequence (we only randomize noise) so we can evaluate off line the final state and then provide it to the VA (a value of -1 signifies that there is no fixed initial
or final state). The VA outputs the estimates of the symbols x_k which
@@ -654,7 +654,7 @@ are then packed to shorts and compared with the transmitted sequence.
<para>
-The function returns the number of shorts and the number of shorts in error. Observe that this way the estimated error rate refers to
+The function returns the number of shorts and the number of shorts in error. Observe that this way the estimated error rate refers to
16-bit-symbol error rate.
</para>
<programlisting>
@@ -698,7 +698,7 @@ The program is called by
./test_viterbi_equalization1.py Es/No_db repetitions
</literallayout>
where
-"Es/No_db" is the SNR in dB, and "repetitions"
+"Es/No_db" is the SNR in dB, and "repetitions"
are the number of packets to be transmitted and received in order to
collect sufficient number of errors for an accurate estimate of the
error rate.
@@ -707,7 +707,7 @@ error rate.
<para>
Each packet has size Kb bits.
-The modulation is chosen to be 4-PAM in this example and the channel is chosen
+The modulation is chosen to be 4-PAM in this example and the channel is chosen
to be one of the test channels defined in fsm_utils.py
</para>
<programlisting>
@@ -729,8 +729,8 @@ Since in this example the channel has length 5 and the modulation is 4-ary, the
</para>
<para>
-Assuming that the FSM input has cardinality I, each input symbol consists
-of bitspersymbol=log<subscript>2</subscript>( I ) bits, and thus correspond to K = Kb/bitspersymbol symbols.
+Assuming that the FSM input has cardinality I, each input symbol consists
+of bitspersymbol=log<subscript>2</subscript>( I ) bits, and thus correspond to K = Kb/bitspersymbol symbols.
</para>
<programlisting>
75 bitspersymbol = int(round(math.log(f.I())/math.log(2))) # bits per FSM input symbol
@@ -740,26 +740,26 @@ of bitspersymbol=log<subscript>2</subscript>( I ) bits, and thus correspond to K
<para>
-The overall system with input the 4-ary input symbols
+The overall system with input the 4-ary input symbols
x<subscript>k</subscript>, modulated to the
4-PAM symbols s<subscript>k</subscript> and passed through the ISI channel to produce the
-noise-free observations
-z<subscript>k</subscript> =
+noise-free observations
+z<subscript>k</subscript> =
sum<subscript>j=0</subscript><superscript>L-1</superscript> c<subscript>j</subscript> s<subscript>k-j</subscript> (where L is the channel length)
-can be modeled as a FSM followed by a memoryless modulation.
-In particular, the FSM input is the sequence
+can be modeled as a FSM followed by a memoryless modulation.
+In particular, the FSM input is the sequence
x<subscript>k</subscript>
-and its output is the "combined" symbol
+and its output is the "combined" symbol
y<subscript>k</subscript>=
-(x<subscript>k</subscript>,x<subscript>k-1</subscript>,...,x<subscript>k-L+1</subscript>) (actually its decimal representation).
+(x<subscript>k</subscript>,x<subscript>k-1</subscript>,...,x<subscript>k-L+1</subscript>) (actually its decimal representation).
The memoryless modulator maps every "combined" symbol
-y<subscript>k</subscript> to
-z<subscript>k</subscript> =
-sum<subscript>j=0</subscript><superscript>L-1</superscript> c<subscript>j</subscript> s<subscript>k-j</subscript>
-Clearly this modulation is memoryless since
+y<subscript>k</subscript> to
+z<subscript>k</subscript> =
+sum<subscript>j=0</subscript><superscript>L-1</superscript> c<subscript>j</subscript> s<subscript>k-j</subscript>
+Clearly this modulation is memoryless since
each z<subscript>k</subscript> depends only on y<subscript>k</subscript>; the memory inherent in the ISI is hidden in the FSM structure.
-This memoryless modulator is automatically generated by a helper function in
-fsm_utils.py given the channel and modulation as in line 78, and has the
+This memoryless modulator is automatically generated by a helper function in
+fsm_utils.py given the channel and modulation as in line 78, and has the
familiar format tot_channel=(dimensionality,tot_constellation) as described in the TCM example.
This is exactly what the metrics block (or the viterbi_combined block) require in order to evaluate the VA metrics from the noisy observations.
</para>
@@ -786,14 +786,14 @@ different data and noise realizations.
<para>
-Let us examine now the "run_test" function.
+Let us examine now the "run_test" function.
First we set up the transmitter blocks.
-We generate a packet of K random symbols and add a head and a tail of L zeros,
+We generate a packet of K random symbols and add a head and a tail of L zeros,
L being the channel length. This is sufficient to drive the initial and final states to 0.
</para>
<programlisting>
14 L = len(channel)
- 15
+ 15
16 # TX
17 # this for loop is TOO slow in python!!!
18 packet = [0]*(K+2*L)
@@ -829,7 +829,7 @@ Also note that the first L observations are irrelevant and thus can be skipped.
34 skip = gr.skiphead(gr.sizeof_float, L) # skip the first L samples since you know they are coming from the L zero symbols
35 #metrics = trellis.metrics_f(f.O(),dimensionality,tot_constellation,trellis.TRELLIS_EUCLIDEAN) # data preprocessing to generate metrics for Viterbi
36 #va = trellis.viterbi_s(f,K+L,0,0) # Put -1 if the Initial/Final states are not set.
- 37 va = trellis.viterbi_combined_s(f,K+L,0,0,dimensionality,tot_constellation,trellis.TRELLIS_EUCLIDEAN) # using viterbi_combined_s instead of metrics_f/viterbi_s allows larger packet lengths because metrics_f is complaining for not being able to allocate large buffers. This is due to the large f.O() in this application...
+ 37 va = trellis.viterbi_combined_s(f,K+L,0,0,dimensionality,tot_constellation,trellis.TRELLIS_EUCLIDEAN) # using viterbi_combined_s instead of metrics_f/viterbi_s allows larger packet lengths because metrics_f is complaining for not being able to allocate large buffers. This is due to the large f.O() in this application...
38 dst = gr.vector_sink_s()
</programlisting>
@@ -852,7 +852,7 @@ are then compared with the transmitted sequence.
<para>
-The function returns the number of symbols and the number of symbols in error. Observe that this way the estimated error rate refers to
+The function returns the number of symbols and the number of symbols in error. Observe that this way the estimated error rate refers to
2-bit-symbol error rate.
</para>
<programlisting>
@@ -876,13 +876,13 @@ Soft versions of the algorithms have been implemented.
Also examples of turbo equalization/decoding and of sccc can
be found in the examples directory.
-Recently we added gnuradio blocks for sccc and pccc encoders and
+Recently we added gnuradio blocks for sccc and pccc encoders and
turbo decoders.
Although these can be generated by existing gr-trellis blocks (in particular,
the SISO blocks, as done in some of the python examples) there is an advantage
in having this functionality as a single block. To see why, think of a turbo decoder with 10 iterations. Previously we needed to concatenate 10 x 2 SISO blocks
(for a sccc decoder) to emulate the passing of soft information between SISOs over 10 iterartions. With the new block however, only a single such block is needed that internally loops through 10 iterations; this results in space savings
-and possibly time saving as well (since queueing at the input/ouput of the gr-blocks is avoided).
+and possibly time saving as well (since queueing at the input/ouput of the gr-blocks is avoided).
Still need to document them...
@@ -937,8 +937,8 @@ can be implemented.
<listitem>
<para>
-Although turbo decoding is rediculously slow in software,
-we can design it in principle. One question is, whether we should
+Although turbo decoding is rediculously slow in software,
+we can design it in principle. One question is, whether we should
use the encoder, and SISO blocks and connect them
through GNU radio or we should implement turbo-decoding
as a single block (issues with buffering between blocks).
diff --git a/gr-trellis/doc/make_numbered_listing.py b/gr-trellis/doc/make_numbered_listing.py
index 889c2d78d..c295dc876 100755
--- a/gr-trellis/doc/make_numbered_listing.py
+++ b/gr-trellis/doc/make_numbered_listing.py
@@ -42,4 +42,4 @@ def main ():
if __name__ == '__main__':
main ()
-
+
diff --git a/gr-trellis/doc/test_tcm.py b/gr-trellis/doc/test_tcm.py
index 2ff1c3db8..8c046d697 100644
--- a/gr-trellis/doc/test_tcm.py
+++ b/gr-trellis/doc/test_tcm.py
@@ -27,17 +27,17 @@ def run_test (f,Kb,bitspersymbol,K,dimensionality,constellation,N0,seed):
metrics = trellis.metrics_f(f.O(),dimensionality,constellation,digital.TRELLIS_EUCLIDEAN) # data preprocessing to generate metrics for Viterbi
va = trellis.viterbi_s(f,K,0,-1) # Put -1 if the Initial/Final states are not set.
fsmi2s = gr.unpacked_to_packed_ss(bitspersymbol,gr.GR_MSB_FIRST) # pack FSM input symbols to shorts
- dst = gr.check_lfsr_32k_s();
+ dst = gr.check_lfsr_32k_s();
tb.connect (src,src_head,s2fsmi,enc,mod)
tb.connect (mod,(add,0))
tb.connect (noise,(add,1))
tb.connect (add,metrics)
tb.connect (metrics,va,fsmi2s,dst)
-
+
tb.run()
-
- # A bit of cheating: run the program once and print the
+
+ # A bit of cheating: run the program once and print the
# final encoder state.
# Then put it as the last argument in the viterbi block
#print "final state = " , enc.ST()
@@ -65,7 +65,7 @@ def main(args):
K=Kb/bitspersymbol # packet size in trellis steps
modulation = fsm_utils.psk4 # see fsm_utlis.py for available predefined modulations
dimensionality = modulation[0]
- constellation = modulation[1]
+ constellation = modulation[1]
if len(constellation)/dimensionality != f.O():
sys.stderr.write ('Incompatible FSM output cardinality and modulation size.\n')
sys.exit (1)
@@ -75,7 +75,7 @@ def main(args):
Es = Es + constellation[i]**2
Es = Es / (len(constellation)/dimensionality)
N0=Es/pow(10.0,esn0_db/10.0); # noise variance
-
+
tot_s=0
terr_s=0
for i in range(rep):
diff --git a/gr-trellis/doc/test_tcm.py.xml b/gr-trellis/doc/test_tcm.py.xml
index b957f682d..b5074cb2f 100644
--- a/gr-trellis/doc/test_tcm.py.xml
+++ b/gr-trellis/doc/test_tcm.py.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<programlisting>
1 #!/usr/bin/env python
- 2
+ 2
3 from gnuradio import gr
4 from gnuradio import audio
5 from gnuradio import trellis
@@ -10,46 +10,46 @@
8 import sys
9 import random
10 import fsm_utils
- 11
+ 11
12 def run_test (f,Kb,bitspersymbol,K,dimensionality,constellation,N0,seed):
13 tb = gr.top_block ()
- 14
+ 14
15 # TX
16 src = gr.lfsr_32k_source_s()
17 src_head = gr.head (gr.sizeof_short,Kb/16) # packet size in shorts
18 s2fsmi = gr.packed_to_unpacked_ss(bitspersymbol,gr.GR_MSB_FIRST) # unpack shorts to symbols compatible with the FSM input cardinality
19 enc = trellis.encoder_ss(f,0) # initial state = 0
20 mod = gr.chunks_to_symbols_sf(constellation,dimensionality)
- 21
+ 21
22 # CHANNEL
23 add = gr.add_ff()
24 noise = gr.noise_source_f(gr.GR_GAUSSIAN,math.sqrt(N0/2),seed)
- 25
+ 25
26 # RX
27 metrics = trellis.metrics_f(f.O(),dimensionality,constellation,trellis.TRELLIS_EUCLIDEAN) # data preprocessing to generate metrics for Viterbi
28 va = trellis.viterbi_s(f,K,0,-1) # Put -1 if the Initial/Final states are not set.
29 fsmi2s = gr.unpacked_to_packed_ss(bitspersymbol,gr.GR_MSB_FIRST) # pack FSM input symbols to shorts
- 30 dst = gr.check_lfsr_32k_s();
- 31
+ 30 dst = gr.check_lfsr_32k_s();
+ 31
32 tb.connect (src,src_head,s2fsmi,enc,mod)
33 tb.connect (mod,(add,0))
34 tb.connect (noise,(add,1))
35 tb.connect (add,metrics)
36 tb.connect (metrics,va,fsmi2s,dst)
- 37
+ 37
38 tb.run()
- 39
- 40 # A bit of cheating: run the program once and print the
+ 39
+ 40 # A bit of cheating: run the program once and print the
41 # final encoder state.
42 # Then put it as the last argument in the viterbi block
43 #print &quot;final state = &quot; , enc.ST()
- 44
+ 44
45 ntotal = dst.ntotal ()
46 nright = dst.nright ()
47 runlength = dst.runlength ()
48 return (ntotal,ntotal-nright)
- 49
- 50
+ 49
+ 50
51 def main(args):
52 nargs = len (args)
53 if nargs == 3:
@@ -59,7 +59,7 @@
57 else:
58 sys.stderr.write (&apos;usage: test_tcm.py fsm_fname Es/No_db repetitions\n&apos;)
59 sys.exit (1)
- 60
+ 60
61 # system parameters
62 f=trellis.fsm(fname) # get the FSM specification from a file
63 Kb=1024*16 # packet size in bits (make it multiple of 16 so it can be packed in a short)
@@ -67,7 +67,7 @@
65 K=Kb/bitspersymbol # packet size in trellis steps
66 modulation = fsm_utils.psk4 # see fsm_utlis.py for available predefined modulations
67 dimensionality = modulation[0]
- 68 constellation = modulation[1]
+ 68 constellation = modulation[1]
69 if len(constellation)/dimensionality != f.O():
70 sys.stderr.write (&apos;Incompatible FSM output cardinality and modulation size.\n&apos;)
71 sys.exit (1)
@@ -77,7 +77,7 @@
75 Es = Es + constellation[i]**2
76 Es = Es / (len(constellation)/dimensionality)
77 N0=Es/pow(10.0,esn0_db/10.0); # noise variance
- 78
+ 78
79 tot_s=0
80 terr_s=0
81 for i in range(rep):
@@ -88,8 +88,8 @@
86 print i,s,e,tot_s,terr_s, &apos;%e&apos; % ((1.0*terr_s)/tot_s)
87 # estimate of the (short) error rate
88 print tot_s,terr_s, &apos;%e&apos; % ((1.0*terr_s)/tot_s)
- 89
- 90
+ 89
+ 90
91 if __name__ == &apos;__main__&apos;:
92 main (sys.argv[1:])
</programlisting>
diff --git a/gr-trellis/doc/test_viterbi_equalization1.py b/gr-trellis/doc/test_viterbi_equalization1.py
index 638e83e81..5967384cf 100755
--- a/gr-trellis/doc/test_viterbi_equalization1.py
+++ b/gr-trellis/doc/test_viterbi_equalization1.py
@@ -29,7 +29,7 @@ def run_test (f,Kb,bitspersymbol,K,channel,modulation,dimensionality,tot_constel
isi = gr.fir_filter_fff(1,channel)
add = gr.add_ff()
noise = gr.noise_source_f(gr.GR_GAUSSIAN,math.sqrt(N0/2),seed)
-
+
# RX
skip = gr.skiphead(gr.sizeof_float, L) # skip the first L samples since you know they are coming from the L zero symbols
#metrics = trellis.metrics_f(f.O(),dimensionality,tot_constellation,digital.TRELLIS_EUCLIDEAN) # data preprocessing to generate metrics for Viterbi
@@ -46,7 +46,7 @@ def run_test (f,Kb,bitspersymbol,K,channel,modulation,dimensionality,tot_constel
tb.run()
- data = dst.data()
+ data = dst.data()
ntotal = len(data) - L
nright=0
for i in range(ntotal):
@@ -54,7 +54,7 @@ def run_test (f,Kb,bitspersymbol,K,channel,modulation,dimensionality,tot_constel
nright=nright+1
#else:
#print "Error in ", i
-
+
return (ntotal,ntotal-nright)
diff --git a/gr-trellis/doc/test_viterbi_equalization1.py.xml b/gr-trellis/doc/test_viterbi_equalization1.py.xml
index a97d04d6e..27605870e 100644
--- a/gr-trellis/doc/test_viterbi_equalization1.py.xml
+++ b/gr-trellis/doc/test_viterbi_equalization1.py.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<programlisting>
1 #!/usr/bin/env python
- 2
+ 2
3 from gnuradio import gr
4 from gnuradio import audio
5 from gnuradio import trellis
@@ -10,11 +10,11 @@
8 import sys
9 import random
10 import fsm_utils
- 11
+ 11
12 def run_test (f,Kb,bitspersymbol,K,channel,modulation,dimensionality,tot_constellation,N0,seed):
13 tb = gr.top_block ()
14 L = len(channel)
- 15
+ 15
16 # TX
17 # this for loop is TOO slow in python!!!
18 packet = [0]*(K+2*L)
@@ -26,29 +26,29 @@
24 packet[len(packet)-i-1] = 0
25 src = gr.vector_source_s(packet,False)
26 mod = gr.chunks_to_symbols_sf(modulation[1],modulation[0])
- 27
+ 27
28 # CHANNEL
29 isi = gr.fir_filter_fff(1,channel)
30 add = gr.add_ff()
31 noise = gr.noise_source_f(gr.GR_GAUSSIAN,math.sqrt(N0/2),seed)
- 32
+ 32
33 # RX
34 skip = gr.skiphead(gr.sizeof_float, L) # skip the first L samples since you know they are coming from the L zero symbols
35 #metrics = trellis.metrics_f(f.O(),dimensionality,tot_constellation,trellis.TRELLIS_EUCLIDEAN) # data preprocessing to generate metrics for Viterbi
36 #va = trellis.viterbi_s(f,K+L,0,0) # Put -1 if the Initial/Final states are not set.
37 va = trellis.viterbi_combined_s(f,K+L,0,0,dimensionality,tot_constellation,trellis.TRELLIS_EUCLIDEAN) # using viterbi_combined_s instead of metrics_f/viterbi_s allows larger packet lengths because metrics_f is complaining for not being able to allocate large buffers. This is due to the large f.O() in this application...
38 dst = gr.vector_sink_s()
- 39
+ 39
40 tb.connect (src,mod)
41 tb.connect (mod,isi,(add,0))
42 tb.connect (noise,(add,1))
43 #tb.connect (add,metrics)
44 #tb.connect (metrics,va,dst)
45 tb.connect (add,skip,va,dst)
- 46
+ 46
47 tb.run()
- 48
- 49 data = dst.data()
+ 48
+ 49 data = dst.data()
50 ntotal = len(data) - L
51 nright=0
52 for i in range(ntotal):
@@ -56,10 +56,10 @@
54 nright=nright+1
55 #else:
56 #print &quot;Error in &quot;, i
- 57
+ 57
58 return (ntotal,ntotal-nright)
- 59
- 60
+ 59
+ 60
61 def main(args):
62 nargs = len (args)
63 if nargs == 2:
@@ -68,7 +68,7 @@
66 else:
67 sys.stderr.write (&apos;usage: test_viterbi_equalization1.py Es/No_db repetitions\n&apos;)
68 sys.exit (1)
- 69
+ 69
70 # system parameters
71 Kb=2048 # packet size in bits
72 modulation = fsm_utils.pam4 # see fsm_utlis.py for available predefined modulations
@@ -76,7 +76,7 @@
74 f=trellis.fsm(len(modulation[1]),len(channel)) # generate the FSM automatically
75 bitspersymbol = int(round(math.log(f.I())/math.log(2))) # bits per FSM input symbol
76 K=Kb/bitspersymbol # packet size in trellis steps
- 77
+ 77
78 tot_channel = fsm_utils.make_isi_lookup(modulation,channel,True) # generate the lookup table (normalize energy to 1)
79 dimensionality = tot_channel[0]
80 tot_constellation = tot_channel[1]
@@ -84,11 +84,11 @@
82 if len(tot_constellation)/dimensionality != f.O():
83 sys.stderr.write (&apos;Incompatible FSM output cardinality and lookup table size.\n&apos;)
84 sys.exit (1)
- 85
+ 85
86 tot_s=0 # total number of transmitted shorts
87 terr_s=0 # total number of shorts in error
88 terr_p=0 # total number of packets in error
- 89
+ 89
90 for i in range(rep):
91 (s,e)=run_test(f,Kb,bitspersymbol,K,channel,modulation,dimensionality,tot_constellation,N0,-long(666+i)) # run experiment with different seed to get different data and noise realizations
92 tot_s=tot_s+s
@@ -98,8 +98,8 @@
96 print i+1,terr_p, &apos;%.2e&apos; % ((1.0*terr_p)/(i+1)),tot_s,terr_s, &apos;%.2e&apos; % ((1.0*terr_s)/tot_s)
97 # estimate of the (short or symbol) error rate
98 print rep,terr_p, &apos;%.2e&apos; % ((1.0*terr_p)/(i+1)),tot_s,terr_s, &apos;%.2e&apos; % ((1.0*terr_s)/tot_s)
- 99
-100
+ 99
+100
101 if __name__ == &apos;__main__&apos;:
102 main (sys.argv[1:])
</programlisting>
diff --git a/gr-trellis/grc/trellis_pccc_decoder_combined_xx.xml b/gr-trellis/grc/trellis_pccc_decoder_combined_xx.xml
index bd5a44cde..005a88d66 100644
--- a/gr-trellis/grc/trellis_pccc_decoder_combined_xx.xml
+++ b/gr-trellis/grc/trellis_pccc_decoder_combined_xx.xml
@@ -12,9 +12,9 @@
<category>Error Correction/Trellis</category>
<import>from gnuradio import trellis, digital</import>
<make>trellis.pccc_decoder_combined_$(type)$(out_type)(
- trellis.fsm($o_fsm_args), $o_init_state, $o_final_state,
- trellis.fsm($i_fsm_args), $i_init_state, $i_final_state,
- trellis.interleaver($interleaver),
+ trellis.fsm($o_fsm_args), $o_init_state, $o_final_state,
+ trellis.fsm($i_fsm_args), $i_init_state, $i_final_state,
+ trellis.interleaver($interleaver),
$block_size,
$iterations,
$siso_type,
diff --git a/gr-trellis/grc/trellis_pccc_decoder_x.xml b/gr-trellis/grc/trellis_pccc_decoder_x.xml
index e6eb03f11..c79447826 100644
--- a/gr-trellis/grc/trellis_pccc_decoder_x.xml
+++ b/gr-trellis/grc/trellis_pccc_decoder_x.xml
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<!--
###################################################
-## PCCC Decoder
+## PCCC Decoder
###################################################
-->
@@ -12,9 +12,9 @@
<category>Error Correction/Trellis</category>
<import>from gnuradio import trellis</import>
<make>trellis.pccc_decoder_$(out_type)(
- trellis.fsm($o_fsm_args), $o_init_state, $o_final_state,
- trellis.fsm($i_fsm_args), $i_init_state, $i_final_state,
- trellis.interleaver($interleaver),
+ trellis.fsm($o_fsm_args), $o_init_state, $o_final_state,
+ trellis.fsm($i_fsm_args), $i_init_state, $i_final_state,
+ trellis.interleaver($interleaver),
$block_size,
$iterations,
$siso_type)
diff --git a/gr-trellis/grc/trellis_permutation.xml b/gr-trellis/grc/trellis_permutation.xml
index 125a78d4d..212693311 100644
--- a/gr-trellis/grc/trellis_permutation.xml
+++ b/gr-trellis/grc/trellis_permutation.xml
@@ -75,7 +75,7 @@
<vlen>$vlen</vlen>
</source>
<doc>
-Interleaver size is given in blocks.
-One Symbol = (in/out type) * (vector length)
+Interleaver size is given in blocks.
+One Symbol = (in/out type) * (vector length)
</doc>
</block>
diff --git a/gr-trellis/grc/trellis_sccc_decoder_combined_xx.xml b/gr-trellis/grc/trellis_sccc_decoder_combined_xx.xml
index 6b2bc0e38..324f06e7f 100644
--- a/gr-trellis/grc/trellis_sccc_decoder_combined_xx.xml
+++ b/gr-trellis/grc/trellis_sccc_decoder_combined_xx.xml
@@ -12,9 +12,9 @@
<category>Error Correction/Trellis</category>
<import>from gnuradio import trellis, digital</import>
<make>trellis.sccc_decoder_combined_$(type)$(out_type)(
- trellis.fsm($o_fsm_args), $o_init_state, $o_final_state,
- trellis.fsm($i_fsm_args), $i_init_state, $i_final_state,
- trellis.interleaver($interleaver),
+ trellis.fsm($o_fsm_args), $o_init_state, $o_final_state,
+ trellis.fsm($i_fsm_args), $i_init_state, $i_final_state,
+ trellis.interleaver($interleaver),
$block_size,
$iterations,
$siso_type,
diff --git a/gr-trellis/grc/trellis_sccc_decoder_x.xml b/gr-trellis/grc/trellis_sccc_decoder_x.xml
index 9fc24927b..4bf8d26d5 100644
--- a/gr-trellis/grc/trellis_sccc_decoder_x.xml
+++ b/gr-trellis/grc/trellis_sccc_decoder_x.xml
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<!--
###################################################
-## SCCC Decoder
+## SCCC Decoder
###################################################
-->
@@ -12,9 +12,9 @@
<category>Error Correction/Trellis</category>
<import>from gnuradio import trellis</import>
<make>trellis.sccc_decoder_$(out_type)(
- trellis.fsm($o_fsm_args), $o_init_state, $o_final_state,
- trellis.fsm($i_fsm_args), $i_init_state, $i_final_state,
- trellis.interleaver($interleaver),
+ trellis.fsm($o_fsm_args), $o_init_state, $o_final_state,
+ trellis.fsm($i_fsm_args), $i_init_state, $i_final_state,
+ trellis.interleaver($interleaver),
$block_size,
$iterations,
$siso_type)
diff --git a/gr-trellis/src/examples/grc/CMakeLists.txt b/gr-trellis/src/examples/grc/CMakeLists.txt
index 51197a9f4..46b825d88 100644
--- a/gr-trellis/src/examples/grc/CMakeLists.txt
+++ b/gr-trellis/src/examples/grc/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2012 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,
diff --git a/gr-trellis/src/examples/grc/readme.txt b/gr-trellis/src/examples/grc/readme.txt
index 9c7363af8..a5261ac0b 100644
--- a/gr-trellis/src/examples/grc/readme.txt
+++ b/gr-trellis/src/examples/grc/readme.txt
@@ -6,11 +6,11 @@ Two users are transmitting simultaneously using convolutionally encoded QPSK, ea
The combined signal is observed in noise and four different receivers are considered:
1) A viterbi decoder decoding user 1 assuming user 2 is noise
2) A viterbi decoder decoding user 2 assuming user 1 is noise
-3) A viterbi decoder decoding user 1 first
- and then reencoding this signal, subtracting it from the observation
+3) A viterbi decoder decoding user 1 first
+ and then reencoding this signal, subtracting it from the observation
and then running a Viterbi decoder decoding user 2
-4) A viterbi decoder decoding user 2 first
- and then reencoding this signal, subtracting it from the observation
+4) A viterbi decoder decoding user 2 first
+ and then reencoding this signal, subtracting it from the observation
and then running a Viterbi decoder decoding user 1
You can change the signal to noise ratio P/sigma^2 and the allocation of power to the two users, alpha.
diff --git a/gr-trellis/src/examples/python/README b/gr-trellis/src/examples/python/README
index bd28e3d61..d51f231ac 100644
--- a/gr-trellis/src/examples/python/README
+++ b/gr-trellis/src/examples/python/README
@@ -1,5 +1,5 @@
Here we have several test programs for use with the gr-trellis implementation.
-Documentation can be found in
+Documentation can be found in
http://gnuradio.utah.edu/svn/gnuradio/trunk/gr-trellis/doc/gr-trellis.html
fsm_utils.py contains several useful functions.
@@ -28,8 +28,8 @@ number of packets in error
estimated packet error rate
number of transmitted shorts (or symbols, or bits, depending on the specific program)
number of shorts (or symbols, or bits) in error
-estimated short (or symbol, or bit) error rate
+estimated short (or symbol, or bit) error rate
-for instance, the final number 1.10e-03 is the error rate estimate by sending 1000
-packets of 1024 shorts each, using an 1/2 4-state convolutional code
+for instance, the final number 1.10e-03 is the error rate estimate by sending 1000
+packets of 1024 shorts each, using an 1/2 4-state convolutional code
and QPSK modulation through an AWGN with Es/N0 = 6.0 dB
diff --git a/gr-trellis/src/examples/python/fsm_files/awgn1o2_128.fsm b/gr-trellis/src/examples/python/fsm_files/awgn1o2_128.fsm
index bb79c59da..4b47007c5 100644
--- a/gr-trellis/src/examples/python/fsm_files/awgn1o2_128.fsm
+++ b/gr-trellis/src/examples/python/fsm_files/awgn1o2_128.fsm
@@ -1,262 +1,262 @@
2 128 4
-0 64
-0 64
-1 65
-1 65
-2 66
-2 66
-3 67
-3 67
-4 68
-4 68
-5 69
-5 69
-6 70
-6 70
-7 71
-7 71
-8 72
-8 72
-9 73
-9 73
-10 74
-10 74
-11 75
-11 75
-12 76
-12 76
-13 77
-13 77
-14 78
-14 78
-15 79
-15 79
-16 80
-16 80
-17 81
-17 81
-18 82
-18 82
-19 83
-19 83
-20 84
-20 84
-21 85
-21 85
-22 86
-22 86
-23 87
-23 87
-24 88
-24 88
-25 89
-25 89
-26 90
-26 90
-27 91
-27 91
-28 92
-28 92
-29 93
-29 93
-30 94
-30 94
-31 95
-31 95
-32 96
-32 96
-33 97
-33 97
-34 98
-34 98
-35 99
-35 99
-36 100
-36 100
-37 101
-37 101
-38 102
-38 102
-39 103
-39 103
-40 104
-40 104
-41 105
-41 105
-42 106
-42 106
-43 107
-43 107
-44 108
-44 108
-45 109
-45 109
-46 110
-46 110
-47 111
-47 111
-48 112
-48 112
-49 113
-49 113
-50 114
-50 114
-51 115
-51 115
-52 116
-52 116
-53 117
-53 117
-54 118
-54 118
-55 119
-55 119
-56 120
-56 120
-57 121
-57 121
-58 122
-58 122
-59 123
-59 123
-60 124
-60 124
-61 125
-61 125
-62 126
-62 126
-63 127
-63 127
+0 64
+0 64
+1 65
+1 65
+2 66
+2 66
+3 67
+3 67
+4 68
+4 68
+5 69
+5 69
+6 70
+6 70
+7 71
+7 71
+8 72
+8 72
+9 73
+9 73
+10 74
+10 74
+11 75
+11 75
+12 76
+12 76
+13 77
+13 77
+14 78
+14 78
+15 79
+15 79
+16 80
+16 80
+17 81
+17 81
+18 82
+18 82
+19 83
+19 83
+20 84
+20 84
+21 85
+21 85
+22 86
+22 86
+23 87
+23 87
+24 88
+24 88
+25 89
+25 89
+26 90
+26 90
+27 91
+27 91
+28 92
+28 92
+29 93
+29 93
+30 94
+30 94
+31 95
+31 95
+32 96
+32 96
+33 97
+33 97
+34 98
+34 98
+35 99
+35 99
+36 100
+36 100
+37 101
+37 101
+38 102
+38 102
+39 103
+39 103
+40 104
+40 104
+41 105
+41 105
+42 106
+42 106
+43 107
+43 107
+44 108
+44 108
+45 109
+45 109
+46 110
+46 110
+47 111
+47 111
+48 112
+48 112
+49 113
+49 113
+50 114
+50 114
+51 115
+51 115
+52 116
+52 116
+53 117
+53 117
+54 118
+54 118
+55 119
+55 119
+56 120
+56 120
+57 121
+57 121
+58 122
+58 122
+59 123
+59 123
+60 124
+60 124
+61 125
+61 125
+62 126
+62 126
+63 127
+63 127
-0 3
-3 0
-1 2
-2 1
-3 0
-0 3
-2 1
-1 2
-1 2
-2 1
-0 3
-3 0
-2 1
-1 2
-3 0
-0 3
-1 2
-2 1
-0 3
-3 0
-2 1
-1 2
-3 0
-0 3
-0 3
-3 0
-1 2
-2 1
-3 0
-0 3
-2 1
-1 2
-2 1
-1 2
-3 0
-0 3
-1 2
-2 1
-0 3
-3 0
-3 0
-0 3
-2 1
-1 2
-0 3
-3 0
-1 2
-2 1
-3 0
-0 3
-2 1
-1 2
-0 3
-3 0
-1 2
-2 1
-2 1
-1 2
-3 0
-0 3
-1 2
-2 1
-0 3
-3 0
-2 1
-1 2
-3 0
-0 3
-1 2
-2 1
-0 3
-3 0
-3 0
-0 3
-2 1
-1 2
-0 3
-3 0
-1 2
-2 1
-3 0
-0 3
-2 1
-1 2
-0 3
-3 0
-1 2
-2 1
-2 1
-1 2
-3 0
-0 3
-1 2
-2 1
-0 3
-3 0
-0 3
-3 0
-1 2
-2 1
-3 0
-0 3
-2 1
-1 2
-1 2
-2 1
-0 3
-3 0
-2 1
-1 2
-3 0
-0 3
-1 2
-2 1
-0 3
-3 0
-2 1
-1 2
-3 0
-0 3
-0 3
-3 0
-1 2
-2 1
-3 0
-0 3
-2 1
-1 2
+0 3
+3 0
+1 2
+2 1
+3 0
+0 3
+2 1
+1 2
+1 2
+2 1
+0 3
+3 0
+2 1
+1 2
+3 0
+0 3
+1 2
+2 1
+0 3
+3 0
+2 1
+1 2
+3 0
+0 3
+0 3
+3 0
+1 2
+2 1
+3 0
+0 3
+2 1
+1 2
+2 1
+1 2
+3 0
+0 3
+1 2
+2 1
+0 3
+3 0
+3 0
+0 3
+2 1
+1 2
+0 3
+3 0
+1 2
+2 1
+3 0
+0 3
+2 1
+1 2
+0 3
+3 0
+1 2
+2 1
+2 1
+1 2
+3 0
+0 3
+1 2
+2 1
+0 3
+3 0
+2 1
+1 2
+3 0
+0 3
+1 2
+2 1
+0 3
+3 0
+3 0
+0 3
+2 1
+1 2
+0 3
+3 0
+1 2
+2 1
+3 0
+0 3
+2 1
+1 2
+0 3
+3 0
+1 2
+2 1
+2 1
+1 2
+3 0
+0 3
+1 2
+2 1
+0 3
+3 0
+0 3
+3 0
+1 2
+2 1
+3 0
+0 3
+2 1
+1 2
+1 2
+2 1
+0 3
+3 0
+2 1
+1 2
+3 0
+0 3
+1 2
+2 1
+0 3
+3 0
+2 1
+1 2
+3 0
+0 3
+0 3
+3 0
+1 2
+2 1
+3 0
+0 3
+2 1
+1 2
diff --git a/gr-trellis/src/examples/python/fsm_files/awgn2o3_4_msb.fsm b/gr-trellis/src/examples/python/fsm_files/awgn2o3_4_msb.fsm
index 551b71101..d834c5271 100644
--- a/gr-trellis/src/examples/python/fsm_files/awgn2o3_4_msb.fsm
+++ b/gr-trellis/src/examples/python/fsm_files/awgn2o3_4_msb.fsm
@@ -8,7 +8,7 @@
0 5 3 6
4 1 7 2
7 2 4 1
-3 6 0 5
+3 6 0 5
This is generated by the 1/2 AWGN code (5 7) operated twice, ie,
diff --git a/gr-trellis/src/examples/python/fsm_files/joint_16_16.fsm b/gr-trellis/src/examples/python/fsm_files/joint_16_16.fsm
index 3dae314b6..293ff4e7c 100644
--- a/gr-trellis/src/examples/python/fsm_files/joint_16_16.fsm
+++ b/gr-trellis/src/examples/python/fsm_files/joint_16_16.fsm
@@ -1,518 +1,518 @@
4 256 16
-0 8 128 136
-0 8 128 136
-1 9 129 137
-1 9 129 137
-2 10 130 138
-2 10 130 138
-3 11 131 139
-3 11 131 139
-4 12 132 140
-4 12 132 140
-5 13 133 141
-5 13 133 141
-6 14 134 142
-6 14 134 142
-7 15 135 143
-7 15 135 143
-0 8 128 136
-0 8 128 136
-1 9 129 137
-1 9 129 137
-2 10 130 138
-2 10 130 138
-3 11 131 139
-3 11 131 139
-4 12 132 140
-4 12 132 140
-5 13 133 141
-5 13 133 141
-6 14 134 142
-6 14 134 142
-7 15 135 143
-7 15 135 143
-16 24 144 152
-16 24 144 152
-17 25 145 153
-17 25 145 153
-18 26 146 154
-18 26 146 154
-19 27 147 155
-19 27 147 155
-20 28 148 156
-20 28 148 156
-21 29 149 157
-21 29 149 157
-22 30 150 158
-22 30 150 158
-23 31 151 159
-23 31 151 159
-16 24 144 152
-16 24 144 152
-17 25 145 153
-17 25 145 153
-18 26 146 154
-18 26 146 154
-19 27 147 155
-19 27 147 155
-20 28 148 156
-20 28 148 156
-21 29 149 157
-21 29 149 157
-22 30 150 158
-22 30 150 158
-23 31 151 159
-23 31 151 159
-32 40 160 168
-32 40 160 168
-33 41 161 169
-33 41 161 169
-34 42 162 170
-34 42 162 170
-35 43 163 171
-35 43 163 171
-36 44 164 172
-36 44 164 172
-37 45 165 173
-37 45 165 173
-38 46 166 174
-38 46 166 174
-39 47 167 175
-39 47 167 175
-32 40 160 168
-32 40 160 168
-33 41 161 169
-33 41 161 169
-34 42 162 170
-34 42 162 170
-35 43 163 171
-35 43 163 171
-36 44 164 172
-36 44 164 172
-37 45 165 173
-37 45 165 173
-38 46 166 174
-38 46 166 174
-39 47 167 175
-39 47 167 175
-48 56 176 184
-48 56 176 184
-49 57 177 185
-49 57 177 185
-50 58 178 186
-50 58 178 186
-51 59 179 187
-51 59 179 187
-52 60 180 188
-52 60 180 188
-53 61 181 189
-53 61 181 189
-54 62 182 190
-54 62 182 190
-55 63 183 191
-55 63 183 191
-48 56 176 184
-48 56 176 184
-49 57 177 185
-49 57 177 185
-50 58 178 186
-50 58 178 186
-51 59 179 187
-51 59 179 187
-52 60 180 188
-52 60 180 188
-53 61 181 189
-53 61 181 189
-54 62 182 190
-54 62 182 190
-55 63 183 191
-55 63 183 191
-64 72 192 200
-64 72 192 200
-65 73 193 201
-65 73 193 201
-66 74 194 202
-66 74 194 202
-67 75 195 203
-67 75 195 203
-68 76 196 204
-68 76 196 204
-69 77 197 205
-69 77 197 205
-70 78 198 206
-70 78 198 206
-71 79 199 207
-71 79 199 207
-64 72 192 200
-64 72 192 200
-65 73 193 201
-65 73 193 201
-66 74 194 202
-66 74 194 202
-67 75 195 203
-67 75 195 203
-68 76 196 204
-68 76 196 204
-69 77 197 205
-69 77 197 205
-70 78 198 206
-70 78 198 206
-71 79 199 207
-71 79 199 207
-80 88 208 216
-80 88 208 216
-81 89 209 217
-81 89 209 217
-82 90 210 218
-82 90 210 218
-83 91 211 219
-83 91 211 219
-84 92 212 220
-84 92 212 220
-85 93 213 221
-85 93 213 221
-86 94 214 222
-86 94 214 222
-87 95 215 223
-87 95 215 223
-80 88 208 216
-80 88 208 216
-81 89 209 217
-81 89 209 217
-82 90 210 218
-82 90 210 218
-83 91 211 219
-83 91 211 219
-84 92 212 220
-84 92 212 220
-85 93 213 221
-85 93 213 221
-86 94 214 222
-86 94 214 222
-87 95 215 223
-87 95 215 223
-96 104 224 232
-96 104 224 232
-97 105 225 233
-97 105 225 233
-98 106 226 234
-98 106 226 234
-99 107 227 235
-99 107 227 235
-100 108 228 236
-100 108 228 236
-101 109 229 237
-101 109 229 237
-102 110 230 238
-102 110 230 238
-103 111 231 239
-103 111 231 239
-96 104 224 232
-96 104 224 232
-97 105 225 233
-97 105 225 233
-98 106 226 234
-98 106 226 234
-99 107 227 235
-99 107 227 235
-100 108 228 236
-100 108 228 236
-101 109 229 237
-101 109 229 237
-102 110 230 238
-102 110 230 238
-103 111 231 239
-103 111 231 239
-112 120 240 248
-112 120 240 248
-113 121 241 249
-113 121 241 249
-114 122 242 250
-114 122 242 250
-115 123 243 251
-115 123 243 251
-116 124 244 252
-116 124 244 252
-117 125 245 253
-117 125 245 253
-118 126 246 254
-118 126 246 254
-119 127 247 255
-119 127 247 255
-112 120 240 248
-112 120 240 248
-113 121 241 249
-113 121 241 249
-114 122 242 250
-114 122 242 250
-115 123 243 251
-115 123 243 251
-116 124 244 252
-116 124 244 252
-117 125 245 253
-117 125 245 253
-118 126 246 254
-118 126 246 254
-119 127 247 255
-119 127 247 255
+0 8 128 136
+0 8 128 136
+1 9 129 137
+1 9 129 137
+2 10 130 138
+2 10 130 138
+3 11 131 139
+3 11 131 139
+4 12 132 140
+4 12 132 140
+5 13 133 141
+5 13 133 141
+6 14 134 142
+6 14 134 142
+7 15 135 143
+7 15 135 143
+0 8 128 136
+0 8 128 136
+1 9 129 137
+1 9 129 137
+2 10 130 138
+2 10 130 138
+3 11 131 139
+3 11 131 139
+4 12 132 140
+4 12 132 140
+5 13 133 141
+5 13 133 141
+6 14 134 142
+6 14 134 142
+7 15 135 143
+7 15 135 143
+16 24 144 152
+16 24 144 152
+17 25 145 153
+17 25 145 153
+18 26 146 154
+18 26 146 154
+19 27 147 155
+19 27 147 155
+20 28 148 156
+20 28 148 156
+21 29 149 157
+21 29 149 157
+22 30 150 158
+22 30 150 158
+23 31 151 159
+23 31 151 159
+16 24 144 152
+16 24 144 152
+17 25 145 153
+17 25 145 153
+18 26 146 154
+18 26 146 154
+19 27 147 155
+19 27 147 155
+20 28 148 156
+20 28 148 156
+21 29 149 157
+21 29 149 157
+22 30 150 158
+22 30 150 158
+23 31 151 159
+23 31 151 159
+32 40 160 168
+32 40 160 168
+33 41 161 169
+33 41 161 169
+34 42 162 170
+34 42 162 170
+35 43 163 171
+35 43 163 171
+36 44 164 172
+36 44 164 172
+37 45 165 173
+37 45 165 173
+38 46 166 174
+38 46 166 174
+39 47 167 175
+39 47 167 175
+32 40 160 168
+32 40 160 168
+33 41 161 169
+33 41 161 169
+34 42 162 170
+34 42 162 170
+35 43 163 171
+35 43 163 171
+36 44 164 172
+36 44 164 172
+37 45 165 173
+37 45 165 173
+38 46 166 174
+38 46 166 174
+39 47 167 175
+39 47 167 175
+48 56 176 184
+48 56 176 184
+49 57 177 185
+49 57 177 185
+50 58 178 186
+50 58 178 186
+51 59 179 187
+51 59 179 187
+52 60 180 188
+52 60 180 188
+53 61 181 189
+53 61 181 189
+54 62 182 190
+54 62 182 190
+55 63 183 191
+55 63 183 191
+48 56 176 184
+48 56 176 184
+49 57 177 185
+49 57 177 185
+50 58 178 186
+50 58 178 186
+51 59 179 187
+51 59 179 187
+52 60 180 188
+52 60 180 188
+53 61 181 189
+53 61 181 189
+54 62 182 190
+54 62 182 190
+55 63 183 191
+55 63 183 191
+64 72 192 200
+64 72 192 200
+65 73 193 201
+65 73 193 201
+66 74 194 202
+66 74 194 202
+67 75 195 203
+67 75 195 203
+68 76 196 204
+68 76 196 204
+69 77 197 205
+69 77 197 205
+70 78 198 206
+70 78 198 206
+71 79 199 207
+71 79 199 207
+64 72 192 200
+64 72 192 200
+65 73 193 201
+65 73 193 201
+66 74 194 202
+66 74 194 202
+67 75 195 203
+67 75 195 203
+68 76 196 204
+68 76 196 204
+69 77 197 205
+69 77 197 205
+70 78 198 206
+70 78 198 206
+71 79 199 207
+71 79 199 207
+80 88 208 216
+80 88 208 216
+81 89 209 217
+81 89 209 217
+82 90 210 218
+82 90 210 218
+83 91 211 219
+83 91 211 219
+84 92 212 220
+84 92 212 220
+85 93 213 221
+85 93 213 221
+86 94 214 222
+86 94 214 222
+87 95 215 223
+87 95 215 223
+80 88 208 216
+80 88 208 216
+81 89 209 217
+81 89 209 217
+82 90 210 218
+82 90 210 218
+83 91 211 219
+83 91 211 219
+84 92 212 220
+84 92 212 220
+85 93 213 221
+85 93 213 221
+86 94 214 222
+86 94 214 222
+87 95 215 223
+87 95 215 223
+96 104 224 232
+96 104 224 232
+97 105 225 233
+97 105 225 233
+98 106 226 234
+98 106 226 234
+99 107 227 235
+99 107 227 235
+100 108 228 236
+100 108 228 236
+101 109 229 237
+101 109 229 237
+102 110 230 238
+102 110 230 238
+103 111 231 239
+103 111 231 239
+96 104 224 232
+96 104 224 232
+97 105 225 233
+97 105 225 233
+98 106 226 234
+98 106 226 234
+99 107 227 235
+99 107 227 235
+100 108 228 236
+100 108 228 236
+101 109 229 237
+101 109 229 237
+102 110 230 238
+102 110 230 238
+103 111 231 239
+103 111 231 239
+112 120 240 248
+112 120 240 248
+113 121 241 249
+113 121 241 249
+114 122 242 250
+114 122 242 250
+115 123 243 251
+115 123 243 251
+116 124 244 252
+116 124 244 252
+117 125 245 253
+117 125 245 253
+118 126 246 254
+118 126 246 254
+119 127 247 255
+119 127 247 255
+112 120 240 248
+112 120 240 248
+113 121 241 249
+113 121 241 249
+114 122 242 250
+114 122 242 250
+115 123 243 251
+115 123 243 251
+116 124 244 252
+116 124 244 252
+117 125 245 253
+117 125 245 253
+118 126 246 254
+118 126 246 254
+119 127 247 255
+119 127 247 255
-0 3 12 15
-3 0 15 12
-1 2 13 14
-2 1 14 13
-1 2 13 14
-2 1 14 13
-0 3 12 15
-3 0 15 12
-2 1 14 13
-1 2 13 14
-3 0 15 12
-0 3 12 15
-3 0 15 12
-0 3 12 15
-2 1 14 13
-1 2 13 14
-12 15 0 3
-15 12 3 0
-13 14 1 2
-14 13 2 1
-13 14 1 2
-14 13 2 1
-12 15 0 3
-15 12 3 0
-14 13 2 1
-13 14 1 2
-15 12 3 0
-12 15 0 3
-15 12 3 0
-12 15 0 3
-14 13 2 1
-13 14 1 2
-4 7 8 11
-7 4 11 8
-5 6 9 10
-6 5 10 9
-5 6 9 10
-6 5 10 9
-4 7 8 11
-7 4 11 8
-6 5 10 9
-5 6 9 10
-7 4 11 8
-4 7 8 11
-7 4 11 8
-4 7 8 11
-6 5 10 9
-5 6 9 10
-8 11 4 7
-11 8 7 4
-9 10 5 6
-10 9 6 5
-9 10 5 6
-10 9 6 5
-8 11 4 7
-11 8 7 4
-10 9 6 5
-9 10 5 6
-11 8 7 4
-8 11 4 7
-11 8 7 4
-8 11 4 7
-10 9 6 5
-9 10 5 6
-4 7 8 11
-7 4 11 8
-5 6 9 10
-6 5 10 9
-5 6 9 10
-6 5 10 9
-4 7 8 11
-7 4 11 8
-6 5 10 9
-5 6 9 10
-7 4 11 8
-4 7 8 11
-7 4 11 8
-4 7 8 11
-6 5 10 9
-5 6 9 10
-8 11 4 7
-11 8 7 4
-9 10 5 6
-10 9 6 5
-9 10 5 6
-10 9 6 5
-8 11 4 7
-11 8 7 4
-10 9 6 5
-9 10 5 6
-11 8 7 4
-8 11 4 7
-11 8 7 4
-8 11 4 7
-10 9 6 5
-9 10 5 6
-0 3 12 15
-3 0 15 12
-1 2 13 14
-2 1 14 13
-1 2 13 14
-2 1 14 13
-0 3 12 15
-3 0 15 12
-2 1 14 13
-1 2 13 14
-3 0 15 12
-0 3 12 15
-3 0 15 12
-0 3 12 15
-2 1 14 13
-1 2 13 14
-12 15 0 3
-15 12 3 0
-13 14 1 2
-14 13 2 1
-13 14 1 2
-14 13 2 1
-12 15 0 3
-15 12 3 0
-14 13 2 1
-13 14 1 2
-15 12 3 0
-12 15 0 3
-15 12 3 0
-12 15 0 3
-14 13 2 1
-13 14 1 2
-8 11 4 7
-11 8 7 4
-9 10 5 6
-10 9 6 5
-9 10 5 6
-10 9 6 5
-8 11 4 7
-11 8 7 4
-10 9 6 5
-9 10 5 6
-11 8 7 4
-8 11 4 7
-11 8 7 4
-8 11 4 7
-10 9 6 5
-9 10 5 6
-4 7 8 11
-7 4 11 8
-5 6 9 10
-6 5 10 9
-5 6 9 10
-6 5 10 9
-4 7 8 11
-7 4 11 8
-6 5 10 9
-5 6 9 10
-7 4 11 8
-4 7 8 11
-7 4 11 8
-4 7 8 11
-6 5 10 9
-5 6 9 10
-12 15 0 3
-15 12 3 0
-13 14 1 2
-14 13 2 1
-13 14 1 2
-14 13 2 1
-12 15 0 3
-15 12 3 0
-14 13 2 1
-13 14 1 2
-15 12 3 0
-12 15 0 3
-15 12 3 0
-12 15 0 3
-14 13 2 1
-13 14 1 2
-0 3 12 15
-3 0 15 12
-1 2 13 14
-2 1 14 13
-1 2 13 14
-2 1 14 13
-0 3 12 15
-3 0 15 12
-2 1 14 13
-1 2 13 14
-3 0 15 12
-0 3 12 15
-3 0 15 12
-0 3 12 15
-2 1 14 13
-1 2 13 14
-12 15 0 3
-15 12 3 0
-13 14 1 2
-14 13 2 1
-13 14 1 2
-14 13 2 1
-12 15 0 3
-15 12 3 0
-14 13 2 1
-13 14 1 2
-15 12 3 0
-12 15 0 3
-15 12 3 0
-12 15 0 3
-14 13 2 1
-13 14 1 2
-0 3 12 15
-3 0 15 12
-1 2 13 14
-2 1 14 13
-1 2 13 14
-2 1 14 13
-0 3 12 15
-3 0 15 12
-2 1 14 13
-1 2 13 14
-3 0 15 12
-0 3 12 15
-3 0 15 12
-0 3 12 15
-2 1 14 13
-1 2 13 14
-8 11 4 7
-11 8 7 4
-9 10 5 6
-10 9 6 5
-9 10 5 6
-10 9 6 5
-8 11 4 7
-11 8 7 4
-10 9 6 5
-9 10 5 6
-11 8 7 4
-8 11 4 7
-11 8 7 4
-8 11 4 7
-10 9 6 5
-9 10 5 6
-4 7 8 11
-7 4 11 8
-5 6 9 10
-6 5 10 9
-5 6 9 10
-6 5 10 9
-4 7 8 11
-7 4 11 8
-6 5 10 9
-5 6 9 10
-7 4 11 8
-4 7 8 11
-7 4 11 8
-4 7 8 11
-6 5 10 9
-5 6 9 10
+0 3 12 15
+3 0 15 12
+1 2 13 14
+2 1 14 13
+1 2 13 14
+2 1 14 13
+0 3 12 15
+3 0 15 12
+2 1 14 13
+1 2 13 14
+3 0 15 12
+0 3 12 15
+3 0 15 12
+0 3 12 15
+2 1 14 13
+1 2 13 14
+12 15 0 3
+15 12 3 0
+13 14 1 2
+14 13 2 1
+13 14 1 2
+14 13 2 1
+12 15 0 3
+15 12 3 0
+14 13 2 1
+13 14 1 2
+15 12 3 0
+12 15 0 3
+15 12 3 0
+12 15 0 3
+14 13 2 1
+13 14 1 2
+4 7 8 11
+7 4 11 8
+5 6 9 10
+6 5 10 9
+5 6 9 10
+6 5 10 9
+4 7 8 11
+7 4 11 8
+6 5 10 9
+5 6 9 10
+7 4 11 8
+4 7 8 11
+7 4 11 8
+4 7 8 11
+6 5 10 9
+5 6 9 10
+8 11 4 7
+11 8 7 4
+9 10 5 6
+10 9 6 5
+9 10 5 6
+10 9 6 5
+8 11 4 7
+11 8 7 4
+10 9 6 5
+9 10 5 6
+11 8 7 4
+8 11 4 7
+11 8 7 4
+8 11 4 7
+10 9 6 5
+9 10 5 6
+4 7 8 11
+7 4 11 8
+5 6 9 10
+6 5 10 9
+5 6 9 10
+6 5 10 9
+4 7 8 11
+7 4 11 8
+6 5 10 9
+5 6 9 10
+7 4 11 8
+4 7 8 11
+7 4 11 8
+4 7 8 11
+6 5 10 9
+5 6 9 10
+8 11 4 7
+11 8 7 4
+9 10 5 6
+10 9 6 5
+9 10 5 6
+10 9 6 5
+8 11 4 7
+11 8 7 4
+10 9 6 5
+9 10 5 6
+11 8 7 4
+8 11 4 7
+11 8 7 4
+8 11 4 7
+10 9 6 5
+9 10 5 6
+0 3 12 15
+3 0 15 12
+1 2 13 14
+2 1 14 13
+1 2 13 14
+2 1 14 13
+0 3 12 15
+3 0 15 12
+2 1 14 13
+1 2 13 14
+3 0 15 12
+0 3 12 15
+3 0 15 12
+0 3 12 15
+2 1 14 13
+1 2 13 14
+12 15 0 3
+15 12 3 0
+13 14 1 2
+14 13 2 1
+13 14 1 2
+14 13 2 1
+12 15 0 3
+15 12 3 0
+14 13 2 1
+13 14 1 2
+15 12 3 0
+12 15 0 3
+15 12 3 0
+12 15 0 3
+14 13 2 1
+13 14 1 2
+8 11 4 7
+11 8 7 4
+9 10 5 6
+10 9 6 5
+9 10 5 6
+10 9 6 5
+8 11 4 7
+11 8 7 4
+10 9 6 5
+9 10 5 6
+11 8 7 4
+8 11 4 7
+11 8 7 4
+8 11 4 7
+10 9 6 5
+9 10 5 6
+4 7 8 11
+7 4 11 8
+5 6 9 10
+6 5 10 9
+5 6 9 10
+6 5 10 9
+4 7 8 11
+7 4 11 8
+6 5 10 9
+5 6 9 10
+7 4 11 8
+4 7 8 11
+7 4 11 8
+4 7 8 11
+6 5 10 9
+5 6 9 10
+12 15 0 3
+15 12 3 0
+13 14 1 2
+14 13 2 1
+13 14 1 2
+14 13 2 1
+12 15 0 3
+15 12 3 0
+14 13 2 1
+13 14 1 2
+15 12 3 0
+12 15 0 3
+15 12 3 0
+12 15 0 3
+14 13 2 1
+13 14 1 2
+0 3 12 15
+3 0 15 12
+1 2 13 14
+2 1 14 13
+1 2 13 14
+2 1 14 13
+0 3 12 15
+3 0 15 12
+2 1 14 13
+1 2 13 14
+3 0 15 12
+0 3 12 15
+3 0 15 12
+0 3 12 15
+2 1 14 13
+1 2 13 14
+12 15 0 3
+15 12 3 0
+13 14 1 2
+14 13 2 1
+13 14 1 2
+14 13 2 1
+12 15 0 3
+15 12 3 0
+14 13 2 1
+13 14 1 2
+15 12 3 0
+12 15 0 3
+15 12 3 0
+12 15 0 3
+14 13 2 1
+13 14 1 2
+0 3 12 15
+3 0 15 12
+1 2 13 14
+2 1 14 13
+1 2 13 14
+2 1 14 13
+0 3 12 15
+3 0 15 12
+2 1 14 13
+1 2 13 14
+3 0 15 12
+0 3 12 15
+3 0 15 12
+0 3 12 15
+2 1 14 13
+1 2 13 14
+8 11 4 7
+11 8 7 4
+9 10 5 6
+10 9 6 5
+9 10 5 6
+10 9 6 5
+8 11 4 7
+11 8 7 4
+10 9 6 5
+9 10 5 6
+11 8 7 4
+8 11 4 7
+11 8 7 4
+8 11 4 7
+10 9 6 5
+9 10 5 6
+4 7 8 11
+7 4 11 8
+5 6 9 10
+6 5 10 9
+5 6 9 10
+6 5 10 9
+4 7 8 11
+7 4 11 8
+6 5 10 9
+5 6 9 10
+7 4 11 8
+4 7 8 11
+7 4 11 8
+4 7 8 11
+6 5 10 9
+5 6 9 10
This is the joint trellis of two trellises described in awgn1o2_16.fsm
It is useful for application of joint decoding...
diff --git a/gr-trellis/src/examples/python/fsm_files/joint_4_16.fsm b/gr-trellis/src/examples/python/fsm_files/joint_4_16.fsm
index 8f2cdab81..427a18207 100644
--- a/gr-trellis/src/examples/python/fsm_files/joint_4_16.fsm
+++ b/gr-trellis/src/examples/python/fsm_files/joint_4_16.fsm
@@ -1,134 +1,134 @@
4 64 16
-0 8 32 40
-0 8 32 40
-1 9 33 41
-1 9 33 41
-2 10 34 42
-2 10 34 42
-3 11 35 43
-3 11 35 43
-4 12 36 44
-4 12 36 44
-5 13 37 45
-5 13 37 45
-6 14 38 46
-6 14 38 46
-7 15 39 47
-7 15 39 47
-0 8 32 40
-0 8 32 40
-1 9 33 41
-1 9 33 41
-2 10 34 42
-2 10 34 42
-3 11 35 43
-3 11 35 43
-4 12 36 44
-4 12 36 44
-5 13 37 45
-5 13 37 45
-6 14 38 46
-6 14 38 46
-7 15 39 47
-7 15 39 47
-16 24 48 56
-16 24 48 56
-17 25 49 57
-17 25 49 57
-18 26 50 58
-18 26 50 58
-19 27 51 59
-19 27 51 59
-20 28 52 60
-20 28 52 60
-21 29 53 61
-21 29 53 61
-22 30 54 62
-22 30 54 62
-23 31 55 63
-23 31 55 63
-16 24 48 56
-16 24 48 56
-17 25 49 57
-17 25 49 57
-18 26 50 58
-18 26 50 58
-19 27 51 59
-19 27 51 59
-20 28 52 60
-20 28 52 60
-21 29 53 61
-21 29 53 61
-22 30 54 62
-22 30 54 62
-23 31 55 63
-23 31 55 63
+0 8 32 40
+0 8 32 40
+1 9 33 41
+1 9 33 41
+2 10 34 42
+2 10 34 42
+3 11 35 43
+3 11 35 43
+4 12 36 44
+4 12 36 44
+5 13 37 45
+5 13 37 45
+6 14 38 46
+6 14 38 46
+7 15 39 47
+7 15 39 47
+0 8 32 40
+0 8 32 40
+1 9 33 41
+1 9 33 41
+2 10 34 42
+2 10 34 42
+3 11 35 43
+3 11 35 43
+4 12 36 44
+4 12 36 44
+5 13 37 45
+5 13 37 45
+6 14 38 46
+6 14 38 46
+7 15 39 47
+7 15 39 47
+16 24 48 56
+16 24 48 56
+17 25 49 57
+17 25 49 57
+18 26 50 58
+18 26 50 58
+19 27 51 59
+19 27 51 59
+20 28 52 60
+20 28 52 60
+21 29 53 61
+21 29 53 61
+22 30 54 62
+22 30 54 62
+23 31 55 63
+23 31 55 63
+16 24 48 56
+16 24 48 56
+17 25 49 57
+17 25 49 57
+18 26 50 58
+18 26 50 58
+19 27 51 59
+19 27 51 59
+20 28 52 60
+20 28 52 60
+21 29 53 61
+21 29 53 61
+22 30 54 62
+22 30 54 62
+23 31 55 63
+23 31 55 63
-0 3 12 15
-3 0 15 12
-1 2 13 14
-2 1 14 13
-1 2 13 14
-2 1 14 13
-0 3 12 15
-3 0 15 12
-2 1 14 13
-1 2 13 14
-3 0 15 12
-0 3 12 15
-3 0 15 12
-0 3 12 15
-2 1 14 13
-1 2 13 14
-12 15 0 3
-15 12 3 0
-13 14 1 2
-14 13 2 1
-13 14 1 2
-14 13 2 1
-12 15 0 3
-15 12 3 0
-14 13 2 1
-13 14 1 2
-15 12 3 0
-12 15 0 3
-15 12 3 0
-12 15 0 3
-14 13 2 1
-13 14 1 2
-4 7 8 11
-7 4 11 8
-5 6 9 10
-6 5 10 9
-5 6 9 10
-6 5 10 9
-4 7 8 11
-7 4 11 8
-6 5 10 9
-5 6 9 10
-7 4 11 8
-4 7 8 11
-7 4 11 8
-4 7 8 11
-6 5 10 9
-5 6 9 10
-8 11 4 7
-11 8 7 4
-9 10 5 6
-10 9 6 5
-9 10 5 6
-10 9 6 5
-8 11 4 7
-11 8 7 4
-10 9 6 5
-9 10 5 6
-11 8 7 4
-8 11 4 7
-11 8 7 4
-8 11 4 7
-10 9 6 5
-9 10 5 6
+0 3 12 15
+3 0 15 12
+1 2 13 14
+2 1 14 13
+1 2 13 14
+2 1 14 13
+0 3 12 15
+3 0 15 12
+2 1 14 13
+1 2 13 14
+3 0 15 12
+0 3 12 15
+3 0 15 12
+0 3 12 15
+2 1 14 13
+1 2 13 14
+12 15 0 3
+15 12 3 0
+13 14 1 2
+14 13 2 1
+13 14 1 2
+14 13 2 1
+12 15 0 3
+15 12 3 0
+14 13 2 1
+13 14 1 2
+15 12 3 0
+12 15 0 3
+15 12 3 0
+12 15 0 3
+14 13 2 1
+13 14 1 2
+4 7 8 11
+7 4 11 8
+5 6 9 10
+6 5 10 9
+5 6 9 10
+6 5 10 9
+4 7 8 11
+7 4 11 8
+6 5 10 9
+5 6 9 10
+7 4 11 8
+4 7 8 11
+7 4 11 8
+4 7 8 11
+6 5 10 9
+5 6 9 10
+8 11 4 7
+11 8 7 4
+9 10 5 6
+10 9 6 5
+9 10 5 6
+10 9 6 5
+8 11 4 7
+11 8 7 4
+10 9 6 5
+9 10 5 6
+11 8 7 4
+8 11 4 7
+11 8 7 4
+8 11 4 7
+10 9 6 5
+9 10 5 6
This is the joint trellis of two trellises described in awgn1o2_4.fsm and awgn1o2_16.fsm
It is useful for application of joint decoding...
diff --git a/gr-trellis/src/examples/python/fsm_utils.py b/gr-trellis/src/examples/python/fsm_utils.py
index e9243f899..06855ea77 100755
--- a/gr-trellis/src/examples/python/fsm_utils.py
+++ b/gr-trellis/src/examples/python/fsm_utils.py
@@ -72,7 +72,7 @@ def base2dec(s,base):
# to channel inputs corresponding to a channel 'channel' and a modulation
# 'mod'. Optional normalization of channel to unit energy.
# This table is used by the 'metrics' block to translate
-# channel outputs to metrics for use with the Viterbi algorithm.
+# channel outputs to metrics for use with the Viterbi algorithm.
# Limitations: currently supports only one-dimensional modulations.
######################################################################
def make_isi_lookup(mod,channel,normalize):
@@ -102,7 +102,7 @@ def make_isi_lookup(mod,channel,normalize):
######################################################################
# Automatically generate the signals appropriate for CPM
-# decomposition.
+# decomposition.
# This decomposition is based on the paper by B. Rimoldi
# "A decomposition approach to CPM", IEEE Trans. Info Theory, March 1988
# See also my own notes at http://www.eecs.umich.edu/~anastas/docs/cpm.pdf
@@ -118,7 +118,7 @@ def make_cpm_signals(K,P,M,L,q,frac):
for m in range(L):
qq=qq + q[m*Q:m*Q+Q]
w=math.pi*h*(M-1)*t-2*math.pi*h*(M-1)*qq+math.pi*h*(L-1)*(M-1)
-
+
X=(M**L)*P
PSI=numpy.empty((X,Q))
for x in range(X):
@@ -133,9 +133,9 @@ def make_cpm_signals(K,P,M,L,q,frac):
PSI = numpy.transpose(PSI)
SS=numpy.exp(1j*PSI) # contains all signals as columns
#print SS
-
- # Now we need to orthogonalize the signals
+
+ # Now we need to orthogonalize the signals
F = scipy.linalg.orth(SS) # find an orthonormal basis for SS
#print numpy.dot(numpy.transpose(F.conjugate()),F) # check for orthonormality
S = numpy.dot(numpy.transpose(F.conjugate()),SS)
@@ -162,11 +162,11 @@ def make_cpm_signals(K,P,M,L,q,frac):
#print Ff
Sf = S[Esi[0:v0+1]]
#print Sf
-
+
return (f0,SS,S,F,Sf,Ff,N)
#return f0
-
+
diff --git a/gr-trellis/src/examples/python/test_cpm.py b/gr-trellis/src/examples/python/test_cpm.py
index 06d54b1a6..5342e57e8 100755
--- a/gr-trellis/src/examples/python/test_cpm.py
+++ b/gr-trellis/src/examples/python/test_cpm.py
@@ -82,7 +82,7 @@ def run_test(seed,blocksize):
data[i]=0
for i in range(tail+1):
data[-i]=0
-
+
##################################################
@@ -125,7 +125,7 @@ def run_test(seed,blocksize):
tb.connect((gr_streams_to_stream_0, 0), (gr_skiphead_0, 0))
tb.connect((gr_skiphead_0, 0), (viterbi, 0))
tb.connect((viterbi, 0), (gr_vector_sink_x_0, 0))
-
+
tb.run()
dataest = gr_vector_sink_x_0.data()
diff --git a/gr-trellis/src/examples/python/test_pccc_turbo1.py b/gr-trellis/src/examples/python/test_pccc_turbo1.py
index 7f1ea26ae..0655b972d 100755
--- a/gr-trellis/src/examples/python/test_pccc_turbo1.py
+++ b/gr-trellis/src/examples/python/test_pccc_turbo1.py
@@ -30,10 +30,10 @@ def run_test (fo,fi,interleaver,Kb,bitspersymbol,K,dimensionality,constellation,
metrics_in = trellis.metrics_f(fi.O()*fo.O(),dimensionality,constellation,digital.TRELLIS_EUCLIDEAN) # data preprocessing to generate metrics for innner SISO
scale = gr.multiply_const_ff(1.0/N0)
dec = trellis.pccc_decoder_s(fo,0,-1,fi,0,-1,interleaver,K,IT,trellis.TRELLIS_MIN_SUM)
-
+
fsmi2s = gr.unpacked_to_packed_ss(bitspersymbol,gr.GR_MSB_FIRST) # pack FSM input symbols to shorts
dst = gr.check_lfsr_32k_s()
-
+
tb.connect (src,src_head,s2fsmi,enc,mod)
#tb.connect (src,enc,mod)
#tb.connect(enc,code)
@@ -42,9 +42,9 @@ def run_test (fo,fi,interleaver,Kb,bitspersymbol,K,dimensionality,constellation,
tb.connect (add,metrics_in,scale,dec,fsmi2s,dst)
tb.run()
-
+
#print code.data()
-
+
ntotal = dst.ntotal ()
nright = dst.nright ()
runlength = dst.runlength ()
@@ -100,7 +100,7 @@ def main(args):
Es = Es + constellation[i]**2
Es = Es / (len(constellation)/dimensionality)
N0=Es/pow(10.0,esn0_db/10.0); # calculate noise variance
-
+
tot_s=0 # total number of transmitted shorts
terr_s=0 # total number of shorts in error
terr_p=0 # total number of packets in error
diff --git a/gr-trellis/src/examples/python/test_sccc_hard.py b/gr-trellis/src/examples/python/test_sccc_hard.py
index e732ac2c0..4eeb94a12 100755
--- a/gr-trellis/src/examples/python/test_sccc_hard.py
+++ b/gr-trellis/src/examples/python/test_sccc_hard.py
@@ -33,7 +33,7 @@ def run_test (fo,fi,interleaver,Kb,bitspersymbol,K,dimensionality,constellation,
va_out = trellis.viterbi_s(fo,K,0,-1) # Put -1 if the Initial/Final states are not set.
fsmi2s = gr.unpacked_to_packed_ss(bitspersymbol,gr.GR_MSB_FIRST) # pack FSM input symbols to shorts
dst = gr.check_lfsr_32k_s()
-
+
tb.connect (src,src_head,s2fsmi,enc_out,inter,enc_in,mod)
tb.connect (mod,(add,0))
tb.connect (noise,(add,1))
@@ -41,7 +41,7 @@ def run_test (fo,fi,interleaver,Kb,bitspersymbol,K,dimensionality,constellation,
tb.connect (metrics_in,va_in,deinter,metrics_out,va_out,fsmi2s,dst)
tb.run()
-
+
ntotal = dst.ntotal ()
nright = dst.nright ()
runlength = dst.runlength ()
@@ -71,7 +71,7 @@ def main(args):
interleaver=trellis.interleaver(K,666) # construct a random interleaver
modulation = fsm_utils.psk8 # see fsm_utlis.py for available predefined modulations
dimensionality = modulation[0]
- constellation = modulation[1]
+ constellation = modulation[1]
if len(constellation)/dimensionality != fi.O():
sys.stderr.write ('Incompatible FSM output cardinality and modulation size.\n')
sys.exit (1)
@@ -81,7 +81,7 @@ def main(args):
Es = Es + constellation[i]**2
Es = Es / (len(constellation)/dimensionality)
N0=Es/pow(10.0,esn0_db/10.0); # calculate noise variance
-
+
tot_s=0 # total number of transmitted shorts
terr_s=0 # total number of shorts in error
terr_p=0 # total number of packets in error
diff --git a/gr-trellis/src/examples/python/test_sccc_soft.py b/gr-trellis/src/examples/python/test_sccc_soft.py
index 1c71e4ca7..10c28419a 100755
--- a/gr-trellis/src/examples/python/test_sccc_soft.py
+++ b/gr-trellis/src/examples/python/test_sccc_soft.py
@@ -36,7 +36,7 @@ def run_test (fo,fi,interleaver,Kb,bitspersymbol,K,dimensionality,constellation,
va_out = trellis.viterbi_s(fo,K,0,-1) # Put -1 if the Initial/Final states are not set.
fsmi2s = gr.unpacked_to_packed_ss(bitspersymbol,gr.GR_MSB_FIRST) # pack FSM input symbols to shorts
dst = gr.check_lfsr_32k_s()
-
+
tb.connect (src,src_head,s2fsmi,enc_out,inter,enc_in,mod)
tb.connect (mod,(add,0))
tb.connect (noise,(add,1))
@@ -46,7 +46,7 @@ def run_test (fo,fi,interleaver,Kb,bitspersymbol,K,dimensionality,constellation,
tb.connect (siso_in,deinter,va_out,fsmi2s,dst)
tb.run()
-
+
ntotal = dst.ntotal ()
nright = dst.nright ()
runlength = dst.runlength ()
@@ -76,7 +76,7 @@ def main(args):
interleaver=trellis.interleaver(K,666) # construct a random interleaver
modulation = fsm_utils.psk8 # see fsm_utlis.py for available predefined modulations
dimensionality = modulation[0]
- constellation = modulation[1]
+ constellation = modulation[1]
if len(constellation)/dimensionality != fi.O():
sys.stderr.write ('Incompatible FSM output cardinality and modulation size.\n')
sys.exit (1)
@@ -100,7 +100,7 @@ def main(args):
print i+1,terr_p, '%.2e' % ((1.0*terr_p)/(i+1)),tot_s,terr_s, '%.2e' % ((1.0*terr_s)/tot_s)
# estimate of the (short or bit) error rate
print rep,terr_p, '%.2e' % ((1.0*terr_p)/(i+1)),tot_s,terr_s, '%.2e' % ((1.0*terr_s)/tot_s)
-
+
if __name__ == '__main__':
diff --git a/gr-trellis/src/examples/python/test_sccc_turbo.py b/gr-trellis/src/examples/python/test_sccc_turbo.py
index b1007a864..762a93ba5 100755
--- a/gr-trellis/src/examples/python/test_sccc_turbo.py
+++ b/gr-trellis/src/examples/python/test_sccc_turbo.py
@@ -72,7 +72,7 @@ def run_test (fo,fi,interleaver,Kb,bitspersymbol,K,dimensionality,constellation,
#(head,tail) = make_rx(tb,fo,fi,dimensionality,constellation,K,interleaver,IT,Es,N0,trellis.TRELLIS_SUM_PRODUCT)
fsmi2s = gr.unpacked_to_packed_ss(bitspersymbol,gr.GR_MSB_FIRST) # pack FSM input symbols to shorts
dst = gr.check_lfsr_32k_s()
-
+
tb.connect (src,src_head,s2fsmi,enc_out,inter,enc_in,mod)
tb.connect (mod,(add,0))
tb.connect (noise,(add,1))
@@ -80,9 +80,9 @@ def run_test (fo,fi,interleaver,Kb,bitspersymbol,K,dimensionality,constellation,
tb.connect (tail,fsmi2s,dst)
tb.run()
-
+
#print enc_out.ST(), enc_in.ST()
-
+
ntotal = dst.ntotal ()
nright = dst.nright ()
runlength = dst.runlength ()
@@ -113,7 +113,7 @@ def main(args):
interleaver=trellis.interleaver(K,666) # construct a random interleaver
modulation = fsm_utils.psk8 # see fsm_utlis.py for available predefined modulations
dimensionality = modulation[0]
- constellation = modulation[1]
+ constellation = modulation[1]
if len(constellation)/dimensionality != fi.O():
sys.stderr.write ('Incompatible FSM output cardinality and modulation size.\n')
sys.exit (1)
@@ -123,7 +123,7 @@ def main(args):
Es = Es + constellation[i]**2
Es = Es / (len(constellation)/dimensionality)
N0=Es/pow(10.0,esn0_db/10.0); # calculate noise variance
-
+
tot_s=0 # total number of transmitted shorts
terr_s=0 # total number of shorts in error
terr_p=0 # total number of packets in error
diff --git a/gr-trellis/src/examples/python/test_sccc_turbo1.py b/gr-trellis/src/examples/python/test_sccc_turbo1.py
index ad2ed6bf9..187a75185 100755
--- a/gr-trellis/src/examples/python/test_sccc_turbo1.py
+++ b/gr-trellis/src/examples/python/test_sccc_turbo1.py
@@ -27,7 +27,7 @@ def run_test (fo,fi,interleaver,Kb,bitspersymbol,K,dimensionality,constellation,
dec = trellis.sccc_decoder_combined_fs(fo,0,-1,fi,0,-1,interleaver,K,IT,trellis.TRELLIS_MIN_SUM,dimensionality,constellation,digital.TRELLIS_EUCLIDEAN,1.0)
fsmi2s = gr.unpacked_to_packed_ss(bitspersymbol,gr.GR_MSB_FIRST) # pack FSM input symbols to shorts
dst = gr.check_lfsr_32k_s()
-
+
#tb.connect (src,src_head,s2fsmi,enc_out,inter,enc_in,mod)
tb.connect (src,src_head,s2fsmi,enc,mod)
tb.connect (mod,(add,0))
@@ -37,9 +37,9 @@ def run_test (fo,fi,interleaver,Kb,bitspersymbol,K,dimensionality,constellation,
tb.connect (add,dec,fsmi2s,dst)
tb.run()
-
+
#print enc_out.ST(), enc_in.ST()
-
+
ntotal = dst.ntotal ()
nright = dst.nright ()
runlength = dst.runlength ()
@@ -70,7 +70,7 @@ def main(args):
interleaver=trellis.interleaver(K,666) # construct a random interleaver
modulation = fsm_utils.psk8 # see fsm_utlis.py for available predefined modulations
dimensionality = modulation[0]
- constellation = modulation[1]
+ constellation = modulation[1]
if len(constellation)/dimensionality != fi.O():
sys.stderr.write ('Incompatible FSM output cardinality and modulation size.\n')
sys.exit (1)
@@ -80,7 +80,7 @@ def main(args):
Es = Es + constellation[i]**2
Es = Es / (len(constellation)/dimensionality)
N0=Es/pow(10.0,esn0_db/10.0); # calculate noise variance
-
+
tot_s=0 # total number of transmitted shorts
terr_s=0 # total number of shorts in error
terr_p=0 # total number of packets in error
diff --git a/gr-trellis/src/examples/python/test_sccc_turbo2.py b/gr-trellis/src/examples/python/test_sccc_turbo2.py
index fdb92adc8..dff1ba93c 100755
--- a/gr-trellis/src/examples/python/test_sccc_turbo2.py
+++ b/gr-trellis/src/examples/python/test_sccc_turbo2.py
@@ -29,7 +29,7 @@ def run_test (fo,fi,interleaver,Kb,bitspersymbol,K,dimensionality,constellation,
dec = trellis.sccc_decoder_s(fo,0,-1,fi,0,-1,interleaver,K,IT,trellis.TRELLIS_MIN_SUM)
fsmi2s = gr.unpacked_to_packed_ss(bitspersymbol,gr.GR_MSB_FIRST) # pack FSM input symbols to shorts
dst = gr.check_lfsr_32k_s()
-
+
#tb.connect (src,src_head,s2fsmi,enc_out,inter,enc_in,mod)
tb.connect (src,src_head,s2fsmi,enc,mod)
tb.connect (mod,(add,0))
@@ -39,9 +39,9 @@ def run_test (fo,fi,interleaver,Kb,bitspersymbol,K,dimensionality,constellation,
tb.connect (add,metrics_in,scale,dec,fsmi2s,dst)
tb.run()
-
+
#print enc_out.ST(), enc_in.ST()
-
+
ntotal = dst.ntotal ()
nright = dst.nright ()
runlength = dst.runlength ()
@@ -72,7 +72,7 @@ def main(args):
interleaver=trellis.interleaver(K,666) # construct a random interleaver
modulation = fsm_utils.psk8 # see fsm_utlis.py for available predefined modulations
dimensionality = modulation[0]
- constellation = modulation[1]
+ constellation = modulation[1]
if len(constellation)/dimensionality != fi.O():
sys.stderr.write ('Incompatible FSM output cardinality and modulation size.\n')
sys.exit (1)
@@ -82,7 +82,7 @@ def main(args):
Es = Es + constellation[i]**2
Es = Es / (len(constellation)/dimensionality)
N0=Es/pow(10.0,esn0_db/10.0); # calculate noise variance
-
+
tot_s=0 # total number of transmitted shorts
terr_s=0 # total number of shorts in error
terr_p=0 # total number of packets in error
diff --git a/gr-trellis/src/examples/python/test_tcm.py b/gr-trellis/src/examples/python/test_tcm.py
index 62fd5135e..a7d6a02d0 100755
--- a/gr-trellis/src/examples/python/test_tcm.py
+++ b/gr-trellis/src/examples/python/test_tcm.py
@@ -35,9 +35,9 @@ def run_test (f,Kb,bitspersymbol,K,dimensionality,constellation,N0,seed):
va = trellis.viterbi_s(f,K,0,-1) # Put -1 if the Initial/Final states are not set.
fsmi2s = gr.unpacked_to_packed_ss(bitspersymbol,gr.GR_MSB_FIRST) # pack FSM input symbols to shorts
#s2b = gr.packed_to_unpacked_ss(1,gr.GR_MSB_FIRST) # unpack shorts to bits
- #dst = gr.vector_sink_s();
+ #dst = gr.vector_sink_s();
dst = gr.check_lfsr_32k_s()
-
+
tb.connect (src,src_head,s2fsmi,enc,mod)
#tb.connect (src,b2s,s2fsmi,enc,mod)
@@ -46,11 +46,11 @@ def run_test (f,Kb,bitspersymbol,K,dimensionality,constellation,N0,seed):
tb.connect (add,metrics)
tb.connect (metrics,va,fsmi2s,dst)
#tb.connect (metrics,va,fsmi2s,s2b,dst)
-
+
tb.run()
-
- # A bit of cheating: run the program once and print the
+
+ # A bit of cheating: run the program once and print the
# final encoder state..
# Then put it as the last argument in the viterbi block
#print "final state = " , enc.ST()
@@ -90,13 +90,13 @@ def main():
# system parameters
f=trellis.fsm(fname) # get the FSM specification from a file
# alternatively you can specify the fsm from its generator matrix
- #f=trellis.fsm(1,2,[5,7])
+ #f=trellis.fsm(1,2,[5,7])
Kb=1024*16 # packet size in bits (make it multiple of 16 so it can be packed in a short)
bitspersymbol = int(round(math.log(f.I())/math.log(2))) # bits per FSM input symbol
K=Kb/bitspersymbol # packet size in trellis steps
modulation = fsm_utils.psk4 # see fsm_utlis.py for available predefined modulations
dimensionality = modulation[0]
- constellation = modulation[1]
+ constellation = modulation[1]
if len(constellation)/dimensionality != f.O():
sys.stderr.write ('Incompatible FSM output cardinality and modulation size.\n')
sys.exit (1)
@@ -106,7 +106,7 @@ def main():
Es = Es + constellation[i]**2
Es = Es / (len(constellation)/dimensionality)
N0=Es/pow(10.0,esn0_db/10.0); # calculate noise variance
-
+
tot_s=0 # total number of transmitted shorts
terr_s=0 # total number of shorts in error
terr_p=0 # total number of packets in error
diff --git a/gr-trellis/src/examples/python/test_tcm_bit.py b/gr-trellis/src/examples/python/test_tcm_bit.py
index cc5caefbc..7f69c0e29 100755
--- a/gr-trellis/src/examples/python/test_tcm_bit.py
+++ b/gr-trellis/src/examples/python/test_tcm_bit.py
@@ -27,7 +27,7 @@ def run_test (f,Kb,bitspersymbol,K,dimensionality,constellation,N0,seed):
enc = trellis.encoder_ss(f,0) # initial state = 0
mod = gr.chunks_to_symbols_sf(constellation,dimensionality)
-
+
# CHANNEL
add = gr.add_ff()
noise = gr.noise_source_f(gr.GR_GAUSSIAN,math.sqrt(N0/2),seed)
@@ -38,9 +38,9 @@ def run_test (f,Kb,bitspersymbol,K,dimensionality,constellation,N0,seed):
va = trellis.viterbi_s(f,K,0,-1) # Put -1 if the Initial/Final states are not set.
fsmi2s = gr.unpacked_to_packed_ss(bitspersymbol,gr.GR_MSB_FIRST) # pack FSM input symbols to shorts
s2b = gr.packed_to_unpacked_ss(1,gr.GR_MSB_FIRST) # unpack shorts to bits
- dst = gr.vector_sink_s();
- #dst = gr.check_lfsr_32k_s();
-
+ dst = gr.vector_sink_s();
+ #dst = gr.check_lfsr_32k_s();
+
#tb.connect (src,src_head,s2fsmi,enc,mod)
tb.connect (src,b2s,s2fsmi,enc,mod)
@@ -49,11 +49,11 @@ def run_test (f,Kb,bitspersymbol,K,dimensionality,constellation,N0,seed):
tb.connect (add,metrics)
#tb.connect (metrics,va,fsmi2s,dst)
tb.connect (metrics,va,fsmi2s,s2b,dst)
-
+
tb.run()
-
- # A bit of cheating: run the program once and print the
+
+ # A bit of cheating: run the program once and print the
# final encoder state..
# Then put it as the last argument in the viterbi block
#print "final state = " , enc.ST()
@@ -99,7 +99,7 @@ def main():
K=Kb/bitspersymbol # packet size in trellis steps
modulation = fsm_utils.psk4 # see fsm_utlis.py for available predefined modulations
dimensionality = modulation[0]
- constellation = modulation[1]
+ constellation = modulation[1]
if len(constellation)/dimensionality != f.O():
sys.stderr.write ('Incompatible FSM output cardinality and modulation size.\n')
sys.exit (1)
@@ -109,7 +109,7 @@ def main():
Es = Es + constellation[i]**2
Es = Es / (len(constellation)/dimensionality)
N0=Es/pow(10.0,esn0_db/10.0); # calculate noise variance
-
+
tot_s=0 # total number of transmitted shorts
terr_s=0 # total number of shorts in error
terr_p=0 # total number of packets in error
diff --git a/gr-trellis/src/examples/python/test_tcm_combined.py b/gr-trellis/src/examples/python/test_tcm_combined.py
index 55a3043b8..d98e36e27 100755
--- a/gr-trellis/src/examples/python/test_tcm_combined.py
+++ b/gr-trellis/src/examples/python/test_tcm_combined.py
@@ -25,22 +25,22 @@ def run_test (f,Kb,bitspersymbol,K,dimensionality,constellation,N0,seed):
add = gr.add_ff()
noise = gr.noise_source_f(gr.GR_GAUSSIAN,math.sqrt(N0/2),seed)
-
+
# RX
va = trellis.viterbi_combined_fs(f,K,0,-1,dimensionality,constellation,digital.TRELLIS_EUCLIDEAN) # Put -1 if the Initial/Final states are not set.
fsmi2s = gr.unpacked_to_packed_ss(bitspersymbol,gr.GR_MSB_FIRST) # pack FSM input symbols to shorts
- dst = gr.check_lfsr_32k_s();
-
+ dst = gr.check_lfsr_32k_s();
+
tb.connect (src,src_head,s2fsmi,enc,mod)
tb.connect (mod,(add,0))
tb.connect (noise,(add,1))
tb.connect (add,va,fsmi2s,dst)
-
+
tb.run()
-
- # A bit of cheating: run the program once and print the
+
+ # A bit of cheating: run the program once and print the
# final encoder state..
# Then put it as the last argument in the viterbi block
#print "final state = " , enc.ST()
@@ -48,7 +48,7 @@ def run_test (f,Kb,bitspersymbol,K,dimensionality,constellation,N0,seed):
ntotal = dst.ntotal ()
nright = dst.nright ()
runlength = dst.runlength ()
-
+
return (ntotal,ntotal-nright)
@@ -76,7 +76,7 @@ def main():
K=Kb/bitspersymbol # packet size in trellis steps
modulation = fsm_utils.psk4 # see fsm_utils.py for available predefined modulations
dimensionality = modulation[0]
- constellation = modulation[1]
+ constellation = modulation[1]
if len(constellation)/dimensionality != f.O():
sys.stderr.write ('Incompatible FSM output cardinality and modulation size.\n')
sys.exit (1)
diff --git a/gr-trellis/src/examples/python/test_tcm_parallel.py b/gr-trellis/src/examples/python/test_tcm_parallel.py
index 2b722c09e..0372351aa 100755
--- a/gr-trellis/src/examples/python/test_tcm_parallel.py
+++ b/gr-trellis/src/examples/python/test_tcm_parallel.py
@@ -43,11 +43,11 @@ def run_test (f,Kb,bitspersymbol,K,dimensionality,constellation,N0,seed,P):
tb.connect (add[i],(metrics,i))
tb.connect ((metrics,i),(va,i),(p2s,i))
tb.connect (p2s,fsmi2s,dst)
-
+
tb.run()
-
- # A bit of cheating: run the program once and print the
+
+ # A bit of cheating: run the program once and print the
# final encoder state.
# Then put it as the last argument in the viterbi block
#print "final state = " , enc.ST()
@@ -55,7 +55,7 @@ def run_test (f,Kb,bitspersymbol,K,dimensionality,constellation,N0,seed,P):
ntotal = dst.ntotal ()
nright = dst.nright ()
runlength = dst.runlength ()
-
+
return (ntotal,ntotal-nright)
diff --git a/gr-trellis/src/examples/python/test_turbo_equalization.py b/gr-trellis/src/examples/python/test_turbo_equalization.py
index 6fa6749f0..18bfb022a 100755
--- a/gr-trellis/src/examples/python/test_turbo_equalization.py
+++ b/gr-trellis/src/examples/python/test_turbo_equalization.py
@@ -44,7 +44,7 @@ def make_rx(tb,fo,fi,dimensionality,tot_constellation,K,interleaver,IT,Es,N0,typ
else:
tb.connect (siso_in[it],deinter[it],siso_out[it])
tb.connect (inter[it],(siso_in[it],0))
-
+
return (metrics_in,siso_out[IT-1])
@@ -64,25 +64,25 @@ def run_test (fo,fi,interleaver,Kb,bitspersymbol,K,dimensionality,tot_constellat
# CHANNEL
add = gr.add_ff()
noise = gr.noise_source_f(gr.GR_GAUSSIAN,math.sqrt(N0/2),seed)
-
+
# RX
- (head,tail) = make_rx(tb,fo,fi,dimensionality,tot_constellation,K,interleaver,IT,Es,N0,trellis.TRELLIS_MIN_SUM)
+ (head,tail) = make_rx(tb,fo,fi,dimensionality,tot_constellation,K,interleaver,IT,Es,N0,trellis.TRELLIS_MIN_SUM)
fsmi2s = gr.unpacked_to_packed_ss(bitspersymbol,gr.GR_MSB_FIRST) # pack FSM input symbols to shorts
- dst = gr.check_lfsr_32k_s();
-
+ dst = gr.check_lfsr_32k_s();
+
tb.connect (src,src_head,s2fsmi,enc_out,inter,enc_in,mod)
tb.connect (mod,(add,0))
tb.connect (noise,(add,1))
tb.connect (add,head)
tb.connect (tail,fsmi2s,dst)
-
+
tb.run()
ntotal = dst.ntotal ()
nright = dst.nright ()
runlength = dst.runlength ()
- #print ntotal,nright,runlength
-
+ #print ntotal,nright,runlength
+
return (ntotal,ntotal-nright)
diff --git a/gr-trellis/src/examples/python/test_turbo_equalization1.py b/gr-trellis/src/examples/python/test_turbo_equalization1.py
index 15a8f6809..17ad43023 100755
--- a/gr-trellis/src/examples/python/test_turbo_equalization1.py
+++ b/gr-trellis/src/examples/python/test_turbo_equalization1.py
@@ -67,17 +67,17 @@ def run_test (fo,fi,interleaver,Kb,bitspersymbol,K,channel,modulation,dimensiona
isi = gr.fir_filter_fff(1,channel)
add = gr.add_ff()
noise = gr.noise_source_f(gr.GR_GAUSSIAN,math.sqrt(N0/2),seed)
-
+
# RX
- (head,tail) = make_rx(tb,fo,fi,dimensionality,tot_constellation,K,interleaver,IT,Es,N0,trellis.TRELLIS_MIN_SUM)
- dst = gr.vector_sink_s();
-
+ (head,tail) = make_rx(tb,fo,fi,dimensionality,tot_constellation,K,interleaver,IT,Es,N0,trellis.TRELLIS_MIN_SUM)
+ dst = gr.vector_sink_s();
+
tb.connect (src,enc_out,inter,mod)
tb.connect (mod,isi,(add,0))
tb.connect (noise,(add,1))
tb.connect (add,head)
tb.connect (tail,dst)
-
+
tb.run()
data = dst.data()
@@ -88,7 +88,7 @@ def run_test (fo,fi,interleaver,Kb,bitspersymbol,K,channel,modulation,dimensiona
nright=nright+1
#else:
#print "Error in ", i
-
+
return (ntotal,ntotal-nright)
diff --git a/gr-trellis/src/examples/python/test_turbo_equalization2.py b/gr-trellis/src/examples/python/test_turbo_equalization2.py
index 7e4341cba..5a6c77e9d 100755
--- a/gr-trellis/src/examples/python/test_turbo_equalization2.py
+++ b/gr-trellis/src/examples/python/test_turbo_equalization2.py
@@ -65,17 +65,17 @@ def run_test (fo,fi,interleaver,Kb,bitspersymbol,K,channel,modulation,dimensiona
isi = gr.fir_filter_fff(1,channel)
add = gr.add_ff()
noise = gr.noise_source_f(gr.GR_GAUSSIAN,math.sqrt(N0/2),seed)
-
+
# RX
- (head,tail) = make_rx(tb,fo,fi,dimensionality,tot_constellation,K,interleaver,IT,Es,N0,trellis.TRELLIS_MIN_SUM)
- dst = gr.vector_sink_s();
-
+ (head,tail) = make_rx(tb,fo,fi,dimensionality,tot_constellation,K,interleaver,IT,Es,N0,trellis.TRELLIS_MIN_SUM)
+ dst = gr.vector_sink_s();
+
tb.connect (src,enc_out,inter,mod)
tb.connect (mod,isi,(add,0))
tb.connect (noise,(add,1))
tb.connect (add,head)
tb.connect (tail,dst)
-
+
tb.run()
data = dst.data()
@@ -86,7 +86,7 @@ def run_test (fo,fi,interleaver,Kb,bitspersymbol,K,channel,modulation,dimensiona
nright=nright+1
#else:
#print "Error in ", i
-
+
return (ntotal,ntotal-nright)
@@ -117,7 +117,7 @@ def main(args):
tot_channel = fsm_utils.make_isi_lookup(modulation,channel,True) # generate the lookup table (normalize energy to 1)
dimensionality = tot_channel[0]
N0=pow(10.0,-esn0_db/10.0); # noise variance
- tot_constellation =[0]*len(tot_channel[1])
+ tot_constellation =[0]*len(tot_channel[1])
for i in range(len(tot_channel[1])):
tot_constellation[i] = tot_channel[1][i] * math.sqrt(1.0/N0)
if len(tot_constellation)/dimensionality != fi.O():
diff --git a/gr-trellis/src/examples/python/test_viterbi_equalization.py b/gr-trellis/src/examples/python/test_viterbi_equalization.py
index d290a0d0a..9f3f7e391 100755
--- a/gr-trellis/src/examples/python/test_viterbi_equalization.py
+++ b/gr-trellis/src/examples/python/test_viterbi_equalization.py
@@ -21,26 +21,26 @@ def run_test (f,Kb,bitspersymbol,K,dimensionality,tot_constellation,N0,seed):
# CHANNEL
add = gr.add_ff()
noise = gr.noise_source_f(gr.GR_GAUSSIAN,math.sqrt(N0/2),seed)
-
+
# RX
metrics = trellis.metrics_f(f.O(),dimensionality,tot_constellation,digital.TRELLIS_EUCLIDEAN) # data preprocessing to generate metrics for Viterbi
va = trellis.viterbi_s(f,K,0,-1) # Put -1 if the Initial/Final states are not set.
fsmi2s = gr.unpacked_to_packed_ss(bitspersymbol,gr.GR_MSB_FIRST) # pack FSM input symbols to shorts
- dst = gr.check_lfsr_32k_s();
-
+ dst = gr.check_lfsr_32k_s();
+
tb.connect (src,src_head,s2fsmi,enc,mod)
tb.connect (mod,(add,0))
tb.connect (noise,(add,1))
tb.connect (add,metrics)
tb.connect (metrics,va,fsmi2s,dst)
-
+
tb.run()
ntotal = dst.ntotal ()
nright = dst.nright ()
runlength = dst.runlength ()
- #print ntotal,nright,runlength
-
+ #print ntotal,nright,runlength
+
return (ntotal,ntotal-nright)
diff --git a/gr-trellis/src/examples/python/test_viterbi_equalization1.py b/gr-trellis/src/examples/python/test_viterbi_equalization1.py
index 41f777551..90eb4790e 100755
--- a/gr-trellis/src/examples/python/test_viterbi_equalization1.py
+++ b/gr-trellis/src/examples/python/test_viterbi_equalization1.py
@@ -28,7 +28,7 @@ def run_test (f,Kb,bitspersymbol,K,channel,modulation,dimensionality,tot_constel
isi = gr.fir_filter_fff(1,channel)
add = gr.add_ff()
noise = gr.noise_source_f(gr.GR_GAUSSIAN,math.sqrt(N0/2),seed)
-
+
# RX
skip = gr.skiphead(gr.sizeof_float, L) # skip the first L samples since you know they are coming from the L zero symbols
#metrics = trellis.metrics_f(f.O(),dimensionality,tot_constellation,digital.TRELLIS_EUCLIDEAN) # data preprocessing to generate metrics for Viterbi
@@ -45,7 +45,7 @@ def run_test (f,Kb,bitspersymbol,K,channel,modulation,dimensionality,tot_constel
tb.run()
- data = dst.data()
+ data = dst.data()
ntotal = len(data) - L
nright=0
for i in range(ntotal):
@@ -53,7 +53,7 @@ def run_test (f,Kb,bitspersymbol,K,channel,modulation,dimensionality,tot_constel
nright=nright+1
#else:
#print "Error in ", i
-
+
return (ntotal,ntotal-nright)
diff --git a/gr-trellis/src/lib/calc_metric.cc b/gr-trellis/src/lib/calc_metric.cc
index 0e8f9c2d5..ce628209b 100644
--- a/gr-trellis/src/lib/calc_metric.cc
+++ b/gr-trellis/src/lib/calc_metric.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -26,12 +26,12 @@
-template <class T>
+template <class T>
void calc_metric(int O, int D, const std::vector<T> &TABLE, const T *in, float *metric, trellis_metric_type_t type)
{
float minm = FLT_MAX;
int minmi = 0;
-
+
switch (type){
case TRELLIS_EUCLIDEAN:
@@ -178,7 +178,7 @@ void calc_metric(int O, int D, const std::vector<float> &TABLE, const float *in,
float s=in[m]-TABLE[o*D+m];
metric[o]+=s*s;
}
- }
+ }
break;
case TRELLIS_HARD_SYMBOL:
for(int o=0;o<O;o++) {
diff --git a/gr-trellis/src/lib/calc_metric.h b/gr-trellis/src/lib/calc_metric.h
index fd20f8d36..7cad6160a 100644
--- a/gr-trellis/src/lib/calc_metric.h
+++ b/gr-trellis/src/lib/calc_metric.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -28,7 +28,7 @@
#include <digital_metric_type.h>
-template <class T>
+template <class T>
void calc_metric(int O, int D, const std::vector<T> &TABLE, const T *in, float *metric, trellis_metric_type_t type);
/*
diff --git a/gr-trellis/src/lib/core_algorithms.cc b/gr-trellis/src/lib/core_algorithms.cc
index 54193c818..3ed912c08 100644
--- a/gr-trellis/src/lib/core_algorithms.cc
+++ b/gr-trellis/src/lib/core_algorithms.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -42,8 +42,8 @@ float min_star(float a, float b)
-template <class T>
-void viterbi_algorithm(int I, int S, int O,
+template <class T>
+void viterbi_algorithm(int I, int S, int O,
const std::vector<int> &NS,
const std::vector<int> &OS,
const std::vector< std::vector<int> > &PS,
@@ -51,7 +51,7 @@ void viterbi_algorithm(int I, int S, int O,
int K,
int S0,int SK,
const float *in, T *out)//,
- //std::vector<int> &trace)
+ //std::vector<int> &trace)
{
std::vector<int> trace(S*K);
std::vector<float> alpha(S*2);
@@ -84,7 +84,7 @@ void viterbi_algorithm(int I, int S, int O,
alpha[((alphai+1)%2)*S+j]=minm;
if(minm<norm) norm=minm;
}
- for(int j=0;j<S;j++)
+ for(int j=0;j<S;j++)
alpha[((alphai+1)%2)*S+j]-=norm; // normalize total metrics so they do not explode
alphai=(alphai+1)%2;
}
@@ -190,7 +190,7 @@ void viterbi_algorithm_combined(int I, int S, int O,
alpha[((alphai+1)%2)*S+j]=minm;
if(minm<norm) norm=minm;
}
- for(int j=0;j<S;j++)
+ for(int j=0;j<S;j++)
alpha[((alphai+1)%2)*S+j]-=norm; // normalize total metrics so they do not explode
alphai=(alphai+1)%2;
}
@@ -211,7 +211,7 @@ void viterbi_algorithm_combined(int I, int S, int O,
out[k]= (To) PI[st][i0];
st=PS[st][i0];
}
-
+
delete [] metric;
}
@@ -415,7 +415,7 @@ void viterbi_algorithm_combined<gr_complex,int>(int I, int S, int O,
//===============================================
-void siso_algorithm(int I, int S, int O,
+void siso_algorithm(int I, int S, int O,
const std::vector<int> &NS,
const std::vector<int> &OS,
const std::vector< std::vector<int> > &PS,
@@ -427,7 +427,7 @@ void siso_algorithm(int I, int S, int O,
const float *priori, const float *prioro, float *post//,
//std::vector<float> &alpha,
//std::vector<float> &beta
- )
+ )
{
float norm,mm,minm;
std::vector<float> alpha(S*(K+1));
@@ -454,7 +454,7 @@ void siso_algorithm(int I, int S, int O,
alpha[(k+1)*S+j]=minm;
if(minm<norm) norm=minm;
}
- for(int j=0;j<S;j++)
+ for(int j=0;j<S;j++)
alpha[(k+1)*S+j]-=norm; // normalize total metrics so they do not explode
}
@@ -468,7 +468,7 @@ void siso_algorithm(int I, int S, int O,
for(int k=K-1;k>=0;k--) { // backward recursion
norm=INF;
- for(int j=0;j<S;j++) {
+ for(int j=0;j<S;j++) {
minm=INF;
for(int i=0;i<I;i++) {
int i0 = j*I+i;
@@ -517,8 +517,8 @@ if (POSTI && POSTO)
for(int n=0;n<O;n++)
post[k*(I+O)+I+n]-=norm; // normalize metrics
}
-}
-else if(POSTI)
+}
+else if(POSTI)
{
for(int k=0;k<K;k++) { // input combining
norm=INF;
@@ -563,7 +563,7 @@ else
//===========================================================
template <class T>
-void siso_algorithm_combined(int I, int S, int O,
+void siso_algorithm_combined(int I, int S, int O,
const std::vector<int> &NS,
const std::vector<int> &OS,
const std::vector< std::vector<int> > &PS,
@@ -576,7 +576,7 @@ void siso_algorithm_combined(int I, int S, int O,
const std::vector<T> &TABLE,
trellis_metric_type_t TYPE,
const float *priori, const T *observations, float *post
-)
+)
{
float norm,mm,minm;
std::vector<float> alpha(S*(K+1));
@@ -605,7 +605,7 @@ void siso_algorithm_combined(int I, int S, int O,
alpha[(k+1)*S+j]=minm;
if(minm<norm) norm=minm;
}
- for(int j=0;j<S;j++)
+ for(int j=0;j<S;j++)
alpha[(k+1)*S+j]-=norm; // normalize total metrics so they do not explode
}
@@ -619,7 +619,7 @@ void siso_algorithm_combined(int I, int S, int O,
for(int k=K-1;k>=0;k--) { // backward recursion
norm=INF;
- for(int j=0;j<S;j++) {
+ for(int j=0;j<S;j++) {
minm=INF;
for(int i=0;i<I;i++) {
int i0 = j*I+i;
@@ -668,8 +668,8 @@ void siso_algorithm_combined(int I, int S, int O,
for(int n=0;n<O;n++)
post[k*(I+O)+I+n]-=norm; // normalize metrics
}
- }
- else if(POSTI)
+ }
+ else if(POSTI)
{
for(int k=0;k<K;k++) { // input combining
norm=INF;
@@ -828,7 +828,7 @@ for(int rep=0;rep<iterations;rep++) {
//oprioro[k*FSMi.I()+i]=iposti[ki*FSMi.I()+i];
//}
memcpy(&(oprioro[k*FSMi.I()]),&(iposti[ki*FSMi.I()]),FSMi.I()*sizeof(float));
- }
+ }
// run outer SISO
@@ -849,10 +849,10 @@ for(int rep=0;rep<iterations;rep++) {
//ipriori[ki*FSMi.I()+i]=oposto[k*FSMi.I()+i];
//}
memcpy(&(ipriori[ki*FSMi.I()]),&(oposto[k*FSMi.I()]),FSMi.I()*sizeof(float));
- }
+ }
}
else // produce posti but not posto
-
+
siso_algorithm(FSMo.I(),FSMo.S(),FSMo.O(),
FSMo.NS(), FSMo.OS(), FSMo.PS(), FSMo.PI(),
blocklength,
@@ -861,7 +861,7 @@ for(int rep=0;rep<iterations;rep++) {
p2mymin,
&(opriori[0]), &(oprioro[0]), &(oposti[0])
);
-
+
/*
viterbi_algorithm(FSMo.I(),FSMo.S(),FSMo.O(),
FSMo.NS(), FSMo.OS(), FSMo.PS(), FSMo.PI(),
@@ -1006,7 +1006,7 @@ void sccc_decoder(
//oprioro[k*FSMi.I()+i]=iposti[ki*FSMi.I()+i];
//}
memcpy(&(oprioro[k*FSMi.I()]),&(iposti[ki*FSMi.I()]),FSMi.I()*sizeof(float));
- }
+ }
// run outer SISO
@@ -1027,10 +1027,10 @@ void sccc_decoder(
//ipriori[ki*FSMi.I()+i]=oposto[k*FSMi.I()+i];
//}
memcpy(&(ipriori[ki*FSMi.I()]),&(oposto[k*FSMi.I()]),FSMi.I()*sizeof(float));
- }
+ }
}
else {// produce posti but not posto
-
+
siso_algorithm(FSMo.I(),FSMo.S(),FSMo.O(),
FSMo.NS(), FSMo.OS(), FSMo.PS(), FSMo.PI(),
blocklength,
@@ -1039,7 +1039,7 @@ void sccc_decoder(
p2mymin,
&(opriori[0]), &(oprioro[0]), &(oposti[0])
);
-
+
/*
viterbi_algorithm(FSMo.I(),FSMo.S(),FSMo.O(),
FSMo.NS(), FSMo.OS(), FSMo.PS(), FSMo.PI(),
@@ -1120,7 +1120,7 @@ void pccc_decoder(
std::vector<float> priori2(blocklength*FSM2.I(),0.0);
std::vector<float> prioro2(blocklength*FSM2.O());
std::vector<float> posti2(blocklength*FSM2.I());
-
+
//generate prioro1,2 (metrics are not updated per iteration: this is not the best you can do...)
for (int k=0;k<blocklength;k++) {
//std::cout << k << std::endl;
@@ -1150,7 +1150,7 @@ void pccc_decoder(
p2mymin,
&(priori1[0]), &(prioro1[0]), &(posti1[0])
);
-
+
//for(int k=0;k<blocklength;k++){
//for(int i=0;i<FSM1.I();i++)
//std::cout << posti1[k*FSM1.I()+i] << ", ";
@@ -1164,7 +1164,7 @@ void pccc_decoder(
//oprioro[k*FSMi.I()+i]=iposti[ki*FSMi.I()+i];
//}
memcpy(&(priori2[k*FSM2.I()]),&(posti1[ki*FSM1.I()]),FSM1.I()*sizeof(float));
- }
+ }
// run SISO 2
siso_algorithm(FSM2.I(),FSM2.S(),FSM2.O(),
@@ -1272,7 +1272,7 @@ void pccc_decoder_combined(
calc_metric(O, D, TABLE, &(observations[k*D]), &(cprioro[k*O]),METRIC_TYPE);
cprioro[k*O] *= scaling;
}
-
+
//generate prioro1,2 (metrics are not updated per iteration: this is not the best you can do...)
for (int k=0;k<blocklength;k++) {
//std::cout << k << std::endl;
@@ -1302,7 +1302,7 @@ void pccc_decoder_combined(
p2mymin,
&(priori1[0]), &(prioro1[0]), &(posti1[0])
);
-
+
//for(int k=0;k<blocklength;k++){
//for(int i=0;i<FSM1.I();i++)
//std::cout << posti1[k*FSM1.I()+i] << ", ";
@@ -1316,7 +1316,7 @@ void pccc_decoder_combined(
//oprioro[k*FSMi.I()+i]=iposti[ki*FSMi.I()+i];
//}
memcpy(&(priori2[k*FSM2.I()]),&(posti1[ki*FSM1.I()]),FSM1.I()*sizeof(float));
- }
+ }
// run SISO 2
siso_algorithm(FSM2.I(),FSM2.S(),FSM2.O(),
diff --git a/gr-trellis/src/lib/core_algorithms.h b/gr-trellis/src/lib/core_algorithms.h
index cab7086ba..a8765225b 100644
--- a/gr-trellis/src/lib/core_algorithms.h
+++ b/gr-trellis/src/lib/core_algorithms.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -34,7 +34,7 @@
float min(float a, float b);
float min_star(float a, float b);
-template <class T>
+template <class T>
void viterbi_algorithm(int I, int S, int O,
const std::vector<int> &NS,
const std::vector<int> &OS,
@@ -99,7 +99,7 @@ void sccc_decoder(
float (*p2mymin)(float,float),
const float *iprioro, T *data
);
-
+
template<class Ti, class To>
void sccc_decoder_combined(
diff --git a/gr-trellis/src/lib/fsm.cc b/gr-trellis/src/lib/fsm.cc
index 65c4b4b32..fb2b4d2c9 100644
--- a/gr-trellis/src/lib/fsm.cc
+++ b/gr-trellis/src/lib/fsm.cc
@@ -64,7 +64,7 @@ fsm::fsm(int I, int S, int O, const std::vector<int> &NS, const std::vector<int>
d_O=O;
d_NS=NS;
d_OS=OS;
-
+
generate_PS_PI();
generate_TM();
}
@@ -79,11 +79,11 @@ fsm::fsm(int I, int S, int O, const std::vector<int> &NS, const std::vector<int>
//# output symbol matrix (S lines, each with I integers separated by spaces)
//# optional comments
//######################################################################
-fsm::fsm(const char *name)
+fsm::fsm(const char *name)
{
FILE *fsmfile;
- if((fsmfile=fopen(name,"r"))==NULL)
+ if((fsmfile=fopen(name,"r"))==NULL)
throw std::runtime_error ("fsm::fsm(const char *name): file open error\n");
//printf("file open error in fsm()\n");
@@ -91,7 +91,7 @@ fsm::fsm(const char *name)
if(ferror(fsmfile) != 0)
throw std::runtime_error ("fsm::fsm(const char *name): file read error\n");
}
-
+
d_NS.resize(d_I*d_S);
d_OS.resize(d_I*d_S);
@@ -113,7 +113,7 @@ fsm::fsm(const char *name)
}
fclose(fsmfile);
-
+
generate_PS_PI();
generate_TM();
}
@@ -141,7 +141,7 @@ fsm::fsm(int k, int n, const std::vector<int> &G)
max_mem=mem;
}
}
-
+
//printf("max_mem_x\n");
//for(int j=0;j<max_mem_x.size();j++) printf("%d ",max_mem_x[j]); printf("\n");
@@ -155,7 +155,7 @@ fsm::fsm(int k, int n, const std::vector<int> &G)
d_I=1<<k;
d_S=1<<sum_max_mem;
d_O=1<<n;
-
+
// binary representation of the G matrix
std::vector<std::vector<int> > Gb(k*n);
for(int j=0;j<k*n;j++) {
@@ -165,9 +165,9 @@ fsm::fsm(int k, int n, const std::vector<int> &G)
//for(int m=0;m<Gb[j].size();m++) printf("%d ",Gb[j][m]); printf("\n");
}
- // alphabet size of each shift register
+ // alphabet size of each shift register
std::vector<int> bases_x(k);
- for(int j=0;j<k ;j++)
+ for(int j=0;j<k ;j++)
bases_x[j] = 1 << max_mem_x[j];
//printf("bases_x\n");
//for(int j=0;j<max_mem_x.size();j++) printf("%d ",max_mem_x[j]); printf("\n");
@@ -229,7 +229,7 @@ fsm::fsm(int k, int n, const std::vector<int> &G)
//######################################################################
-//# Automatically generate an FSM specification describing the
+//# Automatically generate an FSM specification describing the
//# ISI for a channel
//# of length ch_length and a modulation of size mod_size
//######################################################################
@@ -243,13 +243,13 @@ fsm::fsm(int mod_size, int ch_length)
d_OS.resize(d_I*d_S);
for(int s=0;s<d_S;s++) {
- for(int i=0;i<d_I;i++) {
+ for(int i=0;i<d_I;i++) {
int t=i*d_S+s;
d_NS[s*d_I+i] = t/d_I;
d_OS[s*d_I+i] = t;
}
}
-
+
generate_PS_PI();
generate_TM();
}
@@ -258,8 +258,8 @@ fsm::fsm(int mod_size, int ch_length)
//######################################################################
-//# Automatically generate an FSM specification describing the
-//# the trellis for a CPM with h=K/P (relatively prime),
+//# Automatically generate an FSM specification describing the
+//# the trellis for a CPM with h=K/P (relatively prime),
//# alphabet size M, and frequency pulse duration L symbols
//#
//# This FSM is based on the paper by B. Rimoldi
@@ -303,7 +303,7 @@ fsm::fsm(int P, int M, int L)
//######################################################################
-//# Automatically generate an FSM specification describing the
+//# Automatically generate an FSM specification describing the
//# the joint trellis of fsm1 and fsm2
//######################################################################
fsm::fsm(const fsm &FSM1, const fsm &FSM2)
@@ -433,7 +433,7 @@ bool fsm::find_es(int es)
{
bool done = true;
for(int s=0;s<d_S;s++) {
- if(d_TMl[s*d_S+es] < d_S)
+ if(d_TMl[s*d_S+es] < d_S)
continue;
int minl=d_S;
int mini=-1;
@@ -477,7 +477,7 @@ void fsm::write_trellis_svg( std::string filename ,int number_stages)
for( int stage_num = 0;stage_num < number_stages;stage_num ++){
// draw states
for ( int state_num = 0;state_num < d_S ; state_num ++ ) {
- trellis_fname << "<circle cx = \"" << stage_num * STAGE_STATE_OFFSETS + TRELLIS_X_OFFSET <<
+ trellis_fname << "<circle cx = \"" << stage_num * STAGE_STATE_OFFSETS + TRELLIS_X_OFFSET <<
"\" cy = \"" << state_num * STAGE_STATE_OFFSETS + TRELLIS_Y_OFFSET << "\" r = \"1\"/>" << std::endl;
//draw branches
if(stage_num != number_stages-1){
@@ -495,7 +495,7 @@ void fsm::write_trellis_svg( std::string filename ,int number_stages)
// label the stages
trellis_fname << "<g font-size = \"4\" font= \"times\" fill = \"black\">" << std::endl;
for( int stage_num = 0;stage_num < number_stages ;stage_num ++){
- trellis_fname << "<text x = \"" << stage_num * STAGE_STATE_OFFSETS + STAGE_LABEL_X_OFFSET <<
+ trellis_fname << "<text x = \"" << stage_num * STAGE_STATE_OFFSETS + STAGE_LABEL_X_OFFSET <<
"\" y = \"" << STAGE_LABEL_Y_OFFSET << "\" >" << std::endl;
trellis_fname << stage_num << std::endl;
trellis_fname << "</text>" << std::endl;
@@ -505,7 +505,7 @@ void fsm::write_trellis_svg( std::string filename ,int number_stages)
// label the states
trellis_fname << "<g font-size = \"4\" font= \"times\" fill = \"black\">" << std::endl;
for( int state_num = 0;state_num < d_S ; state_num ++){
- trellis_fname << "<text y = \"" << state_num * STAGE_STATE_OFFSETS + STATE_LABEL_Y_OFFSET <<
+ trellis_fname << "<text y = \"" << state_num * STAGE_STATE_OFFSETS + STATE_LABEL_Y_OFFSET <<
"\" x = \"" << STATE_LABEL_X_OFFSET << "\" >" << std::endl;
trellis_fname << state_num << std::endl;
trellis_fname << "</text>" << std::endl;
diff --git a/gr-trellis/src/lib/fsm.h b/gr-trellis/src/lib/fsm.h
index 7dc7e0d9d..47e467898 100644
--- a/gr-trellis/src/lib/fsm.h
+++ b/gr-trellis/src/lib/fsm.h
@@ -46,7 +46,7 @@ private:
// next_state = d_NS[current_state * d_I + input_symbol]
std::vector<int> d_NS;
// OS means Output Symbol.
- // output_symbol = d_OS[current_state * d_I + input_symbol]
+ // output_symbol = d_OS[current_state * d_I + input_symbol]
std::vector<int> d_OS;
// PS means Previous State.
std::vector< std::vector<int> > d_PS;
@@ -83,7 +83,7 @@ public:
* \param NS A mapping from (current state, input symbol) to next state.
* next_state = NS[current_state * I + input_symbol]
* \param OS A mapping from (current state, input symbol) to output symbol.
- * output_symbol = OS[current_state * I + input_symbol]
+ * output_symbol = OS[current_state * I + input_symbol]
*
*/
fsm(int I, int S, int O, const std::vector<int> &NS, const std::vector<int> &OS);
@@ -152,7 +152,7 @@ public:
* \param filename filename
* \param number_stages ????
*
- */
+ */
void write_trellis_svg(std::string filename ,int number_stages);
/*!
* \brief Write the FSMS to a file.
diff --git a/gr-trellis/src/lib/generate_all.py b/gr-trellis/src/lib/generate_all.py
index ee1966b89..78e36270c 100644
--- a/gr-trellis/src/lib/generate_all.py
+++ b/gr-trellis/src/lib/generate_all.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2006,2007 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,
# Boston, MA 02110-1301, USA.
-#
+#
from build_utils import output_glue
diff --git a/gr-trellis/src/lib/generate_trellis.py b/gr-trellis/src/lib/generate_trellis.py
index 31bc44aac..60a81f77a 100644
--- a/gr-trellis/src/lib/generate_trellis.py
+++ b/gr-trellis/src/lib/generate_trellis.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2006,2007 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,
# Boston, MA 02110-1301, USA.
-#
+#
from build_utils import expand_template, copyright, open_and_log_name
from build_utils_codes import *
diff --git a/gr-trellis/src/lib/interleaver.cc b/gr-trellis/src/lib/interleaver.cc
index 131dcb07b..740f33ab3 100644
--- a/gr-trellis/src/lib/interleaver.cc
+++ b/gr-trellis/src/lib/interleaver.cc
@@ -20,7 +20,7 @@
* Boston, MA 02110-1301, USA.
*/
-#include <cstdlib>
+#include <cstdlib>
#include <cstdio>
#include <iostream>
#include <string>
@@ -52,7 +52,7 @@ interleaver::interleaver(int K, const std::vector<int> &INTER)
d_K=K;
d_INTER=INTER;
d_DEINTER.resize(d_K);
-
+
// generate DEINTER table
for(int i=0;i<d_K;i++) {
d_DEINTER[d_INTER[i]]=i;
@@ -67,14 +67,14 @@ interleaver::interleaver(int K, const std::vector<int> &INTER)
//# list of space separated K integers from 0 to K-1 in appropriate order
//# optional comments
//######################################################################
-interleaver::interleaver(const char *name)
+interleaver::interleaver(const char *name)
{
FILE *interleaverfile;
- if((interleaverfile=fopen(name,"r"))==NULL)
+ if((interleaverfile=fopen(name,"r"))==NULL)
throw std::runtime_error ("file open error in interleaver()");
//printf("file open error in interleaver()\n");
-
+
if(fscanf(interleaverfile,"%d\n",&d_K) == EOF) {
if(ferror(interleaverfile) != 0)
throw std::runtime_error ("interleaver::interleaver(const char *name): file read error\n");
@@ -89,7 +89,7 @@ interleaver::interleaver(const char *name)
throw std::runtime_error ("interleaver::interleaver(const char *name): file read error\n");
}
}
-
+
// generate DEINTER table
for(int i=0;i<d_K;i++) {
d_DEINTER[d_INTER[i]]=i;
@@ -105,11 +105,11 @@ interleaver::interleaver(int K, int seed)
d_INTER.resize(d_K);
d_DEINTER.resize(d_K);
- if(seed>=0) srand((unsigned int)seed);
+ if(seed>=0) srand((unsigned int)seed);
std::vector<int> tmp(d_K);
for(int i=0;i<d_K;i++) {
d_INTER[i]=i;
- tmp[i] = rand();
+ tmp[i] = rand();
}
quicksort_index <int> (tmp,d_INTER,0,d_K-1);
diff --git a/gr-trellis/src/lib/interleaver.i b/gr-trellis/src/lib/interleaver.i
index 403c2d09e..bb9078b1b 100644
--- a/gr-trellis/src/lib/interleaver.i
+++ b/gr-trellis/src/lib/interleaver.i
@@ -1,38 +1,38 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-class interleaver {
-private:
- int d_K;
- std::vector<int> d_INTER;
- std::vector<int> d_DEINTER;
-public:
- interleaver();
- interleaver(const interleaver & INTERLEAVER);
- interleaver(int K, const std::vector<int> & INTER);
- interleaver(const char *name);
- interleaver(int K, int seed);
- int K () const { return d_K; }
- const std::vector<int> & INTER () const { return d_INTER; }
- const std::vector<int> & DEINTER () const { return d_DEINTER; }
- void write_interleaver_txt(std::string filename);
-};
+/* -*- 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,
+ * Boston, MA 02110-1301, USA.
+ */
+
+class interleaver {
+private:
+ int d_K;
+ std::vector<int> d_INTER;
+ std::vector<int> d_DEINTER;
+public:
+ interleaver();
+ interleaver(const interleaver & INTERLEAVER);
+ interleaver(int K, const std::vector<int> & INTER);
+ interleaver(const char *name);
+ interleaver(int K, int seed);
+ int K () const { return d_K; }
+ const std::vector<int> & INTER () const { return d_INTER; }
+ const std::vector<int> & DEINTER () const { return d_DEINTER; }
+ void write_interleaver_txt(std::string filename);
+};
diff --git a/gr-trellis/src/lib/quicksort_index.cc b/gr-trellis/src/lib/quicksort_index.cc
index b75896a20..cf37e862e 100644
--- a/gr-trellis/src/lib/quicksort_index.cc
+++ b/gr-trellis/src/lib/quicksort_index.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gr-trellis/src/lib/quicksort_index.h b/gr-trellis/src/lib/quicksort_index.h
index da453972e..9583955db 100644
--- a/gr-trellis/src/lib/quicksort_index.h
+++ b/gr-trellis/src/lib/quicksort_index.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2007 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,
diff --git a/gr-trellis/src/lib/trellis_constellation_metrics_cf.cc b/gr-trellis/src/lib/trellis_constellation_metrics_cf.cc
index 91520e4ce..6e6aa2dd0 100644
--- a/gr-trellis/src/lib/trellis_constellation_metrics_cf.cc
+++ b/gr-trellis/src/lib/trellis_constellation_metrics_cf.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010,2011 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,
@@ -81,8 +81,8 @@ for (unsigned int m=0;m<nstreams;m++) {
float *out = (float *) output_items[m];
for (unsigned int i = 0; i < noutput_items / d_O ; i++){
- d_constellation->calc_metric(&(in[i*d_D]), &(out[i*d_O]), d_TYPE);
- }
+ d_constellation->calc_metric(&(in[i*d_D]), &(out[i*d_O]), d_TYPE);
+ }
}
consume_each (d_D * noutput_items / d_O);
diff --git a/gr-trellis/src/lib/trellis_constellation_metrics_cf.h b/gr-trellis/src/lib/trellis_constellation_metrics_cf.h
index 1851bb89c..2c2070522 100644
--- a/gr-trellis/src/lib/trellis_constellation_metrics_cf.h
+++ b/gr-trellis/src/lib/trellis_constellation_metrics_cf.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010,2011 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,
@@ -48,7 +48,7 @@ class TRELLIS_API trellis_constellation_metrics_cf : public gr_block
gr_vector_void_star &output_items);
protected:
trellis_constellation_metrics_cf (digital_constellation_sptr constellation, trellis_metric_type_t TYPE);
-
+
private:
digital_constellation_sptr d_constellation;
trellis_metric_type_t d_TYPE;
diff --git a/gr-trellis/src/lib/trellis_encoder_XX.cc.t b/gr-trellis/src/lib/trellis_encoder_XX.cc.t
index 698a0b307..dca92b08f 100644
--- a/gr-trellis/src/lib/trellis_encoder_XX.cc.t
+++ b/gr-trellis/src/lib/trellis_encoder_XX.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
@@ -30,7 +30,7 @@
#include <gr_io_signature.h>
#include <iostream>
-@SPTR_NAME@
+@SPTR_NAME@
trellis_make_@BASE_NAME@ (const fsm &FSM, int ST)
{
return gnuradio::get_initial_sptr (new @NAME@ (FSM,ST));
@@ -47,7 +47,7 @@ trellis_make_@BASE_NAME@ (const fsm &FSM, int ST)
-int
+int
@NAME@::work (int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items)
diff --git a/gr-trellis/src/lib/trellis_encoder_XX.h.t b/gr-trellis/src/lib/trellis_encoder_XX.h.t
index 4038caac9..7c4250a92 100644
--- a/gr-trellis/src/lib/trellis_encoder_XX.h.t
+++ b/gr-trellis/src/lib/trellis_encoder_XX.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -44,7 +44,7 @@ private:
friend TRELLIS_API @SPTR_NAME@ trellis_make_@BASE_NAME@ (const fsm &FSM, int ST);
fsm d_FSM;
int d_ST;
- @NAME@ (const fsm &FSM, int ST);
+ @NAME@ (const fsm &FSM, int ST);
public:
fsm FSM () const { return d_FSM; }
diff --git a/gr-trellis/src/lib/trellis_metrics_X.cc.t b/gr-trellis/src/lib/trellis_metrics_X.cc.t
index cd66df6fb..77eb8c81b 100644
--- a/gr-trellis/src/lib/trellis_metrics_X.cc.t
+++ b/gr-trellis/src/lib/trellis_metrics_X.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
@@ -89,7 +89,7 @@ for (int m=0;m<nstreams;m++) {
for (int i = 0; i < noutput_items / d_O ; i++){
calc_metric(d_O, d_D, d_TABLE,&(in[i*d_D]),&(out[i*d_O]), d_TYPE);
- }
+ }
}
consume_each (d_D * noutput_items / d_O);
diff --git a/gr-trellis/src/lib/trellis_metrics_X.h.t b/gr-trellis/src/lib/trellis_metrics_X.h.t
index 809c27e65..ab406c51e 100644
--- a/gr-trellis/src/lib/trellis_metrics_X.h.t
+++ b/gr-trellis/src/lib/trellis_metrics_X.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gr-trellis/src/lib/trellis_pccc_decoder_X.cc.t b/gr-trellis/src/lib/trellis_pccc_decoder_X.cc.t
index 34dd2eb87..d79192491 100644
--- a/gr-trellis/src/lib/trellis_pccc_decoder_X.cc.t
+++ b/gr-trellis/src/lib/trellis_pccc_decoder_X.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
@@ -32,10 +32,10 @@
#include <iostream>
#include "core_algorithms.h"
-
+
static const float INF = 1.0e9;
-@SPTR_NAME@
+@SPTR_NAME@
trellis_make_@BASE_NAME@ (
const fsm &FSM1, int ST10, int ST1K,
const fsm &FSM2, int ST20, int ST2K,
@@ -65,7 +65,7 @@ trellis_make_@BASE_NAME@ (
)
: gr_block ("@BASE_NAME@",
gr_make_io_signature (1, 1, sizeof (float)),
- gr_make_io_signature (1, 1, sizeof (@O_TYPE@))),
+ gr_make_io_signature (1, 1, sizeof (@O_TYPE@))),
d_FSM1 (FSM1), d_ST10 (ST10), d_ST1K (ST1K),
d_FSM2 (FSM2), d_ST20 (ST20), d_ST2K (ST2K),
d_INTERLEAVER (INTERLEAVER),
@@ -114,7 +114,7 @@ int
d_FSM1, d_ST10, d_ST1K,
d_FSM2, d_ST20, d_ST2K,
d_INTERLEAVER, d_blocklength, d_repetitions,
- p2min,
+ p2min,
&(in[n*d_blocklength*d_FSM1.O()*d_FSM2.O()]),&(out[n*d_blocklength])
);
}
diff --git a/gr-trellis/src/lib/trellis_pccc_decoder_X.h.t b/gr-trellis/src/lib/trellis_pccc_decoder_X.h.t
index a58a03264..e9bc94681 100644
--- a/gr-trellis/src/lib/trellis_pccc_decoder_X.h.t
+++ b/gr-trellis/src/lib/trellis_pccc_decoder_X.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -41,7 +41,7 @@ TRELLIS_API @SPTR_NAME@ trellis_make_@BASE_NAME@ (
const interleaver &INTERLEAVER,
int blocklength,
int repetitions,
- trellis_siso_type_t SISO_TYPE // perform "min-sum" or "sum-product" combining
+ trellis_siso_type_t SISO_TYPE // perform "min-sum" or "sum-product" combining
);
@@ -77,7 +77,7 @@ class TRELLIS_API @NAME@ : public gr_block
const interleaver &INTERLEAVER,
int blocklength,
int repetitions,
- trellis_siso_type_t SISO_TYPE
+ trellis_siso_type_t SISO_TYPE
);
public:
diff --git a/gr-trellis/src/lib/trellis_pccc_decoder_combined_XX.cc.t b/gr-trellis/src/lib/trellis_pccc_decoder_combined_XX.cc.t
index 48f68f1fe..03e21de1f 100644
--- a/gr-trellis/src/lib/trellis_pccc_decoder_combined_XX.cc.t
+++ b/gr-trellis/src/lib/trellis_pccc_decoder_combined_XX.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
@@ -32,10 +32,10 @@
#include <iostream>
#include "core_algorithms.h"
-
+
static const float INF = 1.0e9;
-@SPTR_NAME@
+@SPTR_NAME@
trellis_make_@BASE_NAME@ (
const fsm &FSMo, int STo0, int SToK,
const fsm &FSMi, int STi0, int STiK,
@@ -76,7 +76,7 @@ trellis_make_@BASE_NAME@ (
)
: gr_block ("@BASE_NAME@",
gr_make_io_signature (1, 1, sizeof (@I_TYPE@)),
- gr_make_io_signature (1, 1, sizeof (@O_TYPE@))),
+ gr_make_io_signature (1, 1, sizeof (@O_TYPE@))),
d_FSMo (FSMo), d_STo0 (STo0), d_SToK (SToK),
d_FSMi (FSMi), d_STi0 (STi0), d_STiK (STiK),
d_INTERLEAVER (INTERLEAVER),
@@ -134,9 +134,9 @@ int
d_FSMo, d_STo0, d_SToK,
d_FSMi, d_STi0, d_STiK,
d_INTERLEAVER, d_blocklength, d_repetitions,
- p2min,
- d_D,d_TABLE,
- d_METRIC_TYPE,
+ p2min,
+ d_D,d_TABLE,
+ d_METRIC_TYPE,
d_scaling,
&(in[n*d_blocklength*d_D]),&(out[n*d_blocklength])
);
diff --git a/gr-trellis/src/lib/trellis_pccc_decoder_combined_XX.h.t b/gr-trellis/src/lib/trellis_pccc_decoder_combined_XX.h.t
index ce118a3b1..6e45ea10a 100644
--- a/gr-trellis/src/lib/trellis_pccc_decoder_combined_XX.h.t
+++ b/gr-trellis/src/lib/trellis_pccc_decoder_combined_XX.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -42,7 +42,7 @@ TRELLIS_API @SPTR_NAME@ trellis_make_@BASE_NAME@ (
const interleaver &INTERLEAVER,
int blocklength,
int repetitions,
- trellis_siso_type_t SISO_TYPE, // perform "min-sum" or "sum-product" combining
+ trellis_siso_type_t SISO_TYPE, // perform "min-sum" or "sum-product" combining
int D,
const std::vector<@I_TYPE@> &TABLE,
trellis_metric_type_t METRIC_TYPE,
@@ -90,7 +90,7 @@ class TRELLIS_API @NAME@ : public gr_block
const interleaver &INTERLEAVER,
int blocklength,
int repetitions,
- trellis_siso_type_t SISO_TYPE,
+ trellis_siso_type_t SISO_TYPE,
int D,
const std::vector<@I_TYPE@> &TABLE,
trellis_metric_type_t METRIC_TYPE,
diff --git a/gr-trellis/src/lib/trellis_pccc_encoder_XX.cc.t b/gr-trellis/src/lib/trellis_pccc_encoder_XX.cc.t
index 40dcd4105..6cab858cd 100644
--- a/gr-trellis/src/lib/trellis_pccc_encoder_XX.cc.t
+++ b/gr-trellis/src/lib/trellis_pccc_encoder_XX.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
@@ -30,7 +30,7 @@
#include <gr_io_signature.h>
#include <iostream>
-@SPTR_NAME@
+@SPTR_NAME@
trellis_make_@BASE_NAME@ (
const fsm &FSM1, int ST1,
const fsm &FSM2, int ST2,
@@ -64,13 +64,13 @@ trellis_make_@BASE_NAME@ (
-int
+int
@NAME@::work (int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items)
{
assert(noutput_items%d_blocklength ==0);
- for (int b = 0 ; b<noutput_items/d_blocklength; b++) {
+ for (int b = 0 ; b<noutput_items/d_blocklength; b++) {
const @I_TYPE@ *in = (const @I_TYPE@ *) input_items[0]+b*d_blocklength;
@O_TYPE@ *out = (@O_TYPE@ *) output_items[0]+b*d_blocklength;
diff --git a/gr-trellis/src/lib/trellis_pccc_encoder_XX.h.t b/gr-trellis/src/lib/trellis_pccc_encoder_XX.h.t
index 2b6110e37..75a22b829 100644
--- a/gr-trellis/src/lib/trellis_pccc_encoder_XX.h.t
+++ b/gr-trellis/src/lib/trellis_pccc_encoder_XX.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -66,7 +66,7 @@ private:
const fsm &FSM2, int ST2,
const interleaver &INTERLEAVER,
int blocklength
- );
+ );
public:
fsm FSM1 () const { return d_FSM1; }
diff --git a/gr-trellis/src/lib/trellis_permutation.cc b/gr-trellis/src/lib/trellis_permutation.cc
index 416fc58ec..57c6d2693 100644
--- a/gr-trellis/src/lib/trellis_permutation.cc
+++ b/gr-trellis/src/lib/trellis_permutation.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
@@ -29,7 +29,7 @@
#include <iostream>
#include <string.h>
-trellis_permutation_sptr
+trellis_permutation_sptr
trellis_make_permutation (int K, const std::vector<int> &TABLE, int SYMS_PER_BLOCK, size_t BYTES_PER_SYMBOL)
{
return gnuradio::get_initial_sptr(new trellis_permutation (K,TABLE,SYMS_PER_BLOCK,BYTES_PER_SYMBOL));
@@ -50,7 +50,7 @@ trellis_permutation::trellis_permutation (int K, const std::vector<int> &TABLE,
-int
+int
trellis_permutation::work (int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items)
@@ -67,13 +67,13 @@ trellis_permutation::work (int noutput_items,
for (int i = 0; i < noutput_items/d_SYMS_PER_BLOCK; i++){
// Index i refers to blocks.
// Begining of packet (in blocks)
- int i0 = d_K*(i/d_K);
+ int i0 = d_K*(i/d_K);
// position of block within packet (in blocks)
int j0 = i%d_K;
// new position of block within packet (in blocks)
int k0 = d_TABLE[j0];
- memcpy(&(out[i*d_SYMS_PER_BLOCK*d_BYTES_PER_SYMBOL]),
- &(in[(i0+k0)*d_SYMS_PER_BLOCK*d_BYTES_PER_SYMBOL]),
+ memcpy(&(out[i*d_SYMS_PER_BLOCK*d_BYTES_PER_SYMBOL]),
+ &(in[(i0+k0)*d_SYMS_PER_BLOCK*d_BYTES_PER_SYMBOL]),
d_BYTES_PER_SYMBOL*d_SYMS_PER_BLOCK);
}
// end per stream processing
diff --git a/gr-trellis/src/lib/trellis_permutation.h b/gr-trellis/src/lib/trellis_permutation.h
index 2786de29a..cc40518c2 100644
--- a/gr-trellis/src/lib/trellis_permutation.h
+++ b/gr-trellis/src/lib/trellis_permutation.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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 @@ private:
std::vector<int> d_TABLE;
int d_SYMS_PER_BLOCK;
size_t d_BYTES_PER_SYMBOL;
- trellis_permutation (int K, const std::vector<int> &TABLE, int SYMS_PER_BLOCK, size_t NBYTES);
+ trellis_permutation (int K, const std::vector<int> &TABLE, int SYMS_PER_BLOCK, size_t NBYTES);
public:
int K () const { return d_K; }
diff --git a/gr-trellis/src/lib/trellis_permutation.i b/gr-trellis/src/lib/trellis_permutation.i
index 1433a6584..fdfaa44d3 100644
--- a/gr-trellis/src/lib/trellis_permutation.i
+++ b/gr-trellis/src/lib/trellis_permutation.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -31,7 +31,7 @@ private:
std::vector<int> d_TABLE;
int d_SYMS_PER_BLOCK;
size_t d_BYTES_PER_SYMBOL;
- trellis_permutation (int K, const std::vector<int> &TABLE, int SYMS_PER_BLOCK, size_t BYTES_PER_SYMBOL);
+ trellis_permutation (int K, const std::vector<int> &TABLE, int SYMS_PER_BLOCK, size_t BYTES_PER_SYMBOL);
public:
int K () const { return d_K; }
diff --git a/gr-trellis/src/lib/trellis_sccc_decoder_X.cc.t b/gr-trellis/src/lib/trellis_sccc_decoder_X.cc.t
index 4a0f471fa..c9b78aa8f 100644
--- a/gr-trellis/src/lib/trellis_sccc_decoder_X.cc.t
+++ b/gr-trellis/src/lib/trellis_sccc_decoder_X.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
@@ -32,10 +32,10 @@
#include <iostream>
#include "core_algorithms.h"
-
+
static const float INF = 1.0e9;
-@SPTR_NAME@
+@SPTR_NAME@
trellis_make_@BASE_NAME@ (
const fsm &FSMo, int STo0, int SToK,
const fsm &FSMi, int STi0, int STiK,
@@ -65,7 +65,7 @@ trellis_make_@BASE_NAME@ (
)
: gr_block ("@BASE_NAME@",
gr_make_io_signature (1, 1, sizeof (float)),
- gr_make_io_signature (1, 1, sizeof (@O_TYPE@))),
+ gr_make_io_signature (1, 1, sizeof (@O_TYPE@))),
d_FSMo (FSMo), d_STo0 (STo0), d_SToK (SToK),
d_FSMi (FSMi), d_STi0 (STi0), d_STiK (STiK),
d_INTERLEAVER (INTERLEAVER),
@@ -114,7 +114,7 @@ int
d_FSMo, d_STo0, d_SToK,
d_FSMi, d_STi0, d_STiK,
d_INTERLEAVER, d_blocklength, d_repetitions,
- p2min,
+ p2min,
&(in[n*d_blocklength*d_FSMi.O()]),&(out[n*d_blocklength])
);
}
diff --git a/gr-trellis/src/lib/trellis_sccc_decoder_X.h.t b/gr-trellis/src/lib/trellis_sccc_decoder_X.h.t
index 9857c6a34..d6fb72f68 100644
--- a/gr-trellis/src/lib/trellis_sccc_decoder_X.h.t
+++ b/gr-trellis/src/lib/trellis_sccc_decoder_X.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -41,7 +41,7 @@ TRELLIS_API @SPTR_NAME@ trellis_make_@BASE_NAME@ (
const interleaver &INTERLEAVER,
int blocklength,
int repetitions,
- trellis_siso_type_t SISO_TYPE // perform "min-sum" or "sum-product" combining
+ trellis_siso_type_t SISO_TYPE // perform "min-sum" or "sum-product" combining
);
@@ -77,7 +77,7 @@ class TRELLIS_API @NAME@ : public gr_block
const interleaver &INTERLEAVER,
int blocklength,
int repetitions,
- trellis_siso_type_t SISO_TYPE
+ trellis_siso_type_t SISO_TYPE
);
public:
diff --git a/gr-trellis/src/lib/trellis_sccc_decoder_combined_XX.cc.t b/gr-trellis/src/lib/trellis_sccc_decoder_combined_XX.cc.t
index 2927e3fe3..4508ca5cb 100644
--- a/gr-trellis/src/lib/trellis_sccc_decoder_combined_XX.cc.t
+++ b/gr-trellis/src/lib/trellis_sccc_decoder_combined_XX.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
@@ -32,10 +32,10 @@
#include <iostream>
#include "core_algorithms.h"
-
+
static const float INF = 1.0e9;
-@SPTR_NAME@
+@SPTR_NAME@
trellis_make_@BASE_NAME@ (
const fsm &FSMo, int STo0, int SToK,
const fsm &FSMi, int STi0, int STiK,
@@ -76,7 +76,7 @@ trellis_make_@BASE_NAME@ (
)
: gr_block ("@BASE_NAME@",
gr_make_io_signature (1, 1, sizeof (@I_TYPE@)),
- gr_make_io_signature (1, 1, sizeof (@O_TYPE@))),
+ gr_make_io_signature (1, 1, sizeof (@O_TYPE@))),
d_FSMo (FSMo), d_STo0 (STo0), d_SToK (SToK),
d_FSMi (FSMi), d_STi0 (STi0), d_STiK (STiK),
d_INTERLEAVER (INTERLEAVER),
@@ -134,9 +134,9 @@ int
d_FSMo, d_STo0, d_SToK,
d_FSMi, d_STi0, d_STiK,
d_INTERLEAVER, d_blocklength, d_repetitions,
- p2min,
- d_D,d_TABLE,
- d_METRIC_TYPE,
+ p2min,
+ d_D,d_TABLE,
+ d_METRIC_TYPE,
d_scaling,
&(in[n*d_blocklength*d_D]),&(out[n*d_blocklength])
);
diff --git a/gr-trellis/src/lib/trellis_sccc_decoder_combined_XX.h.t b/gr-trellis/src/lib/trellis_sccc_decoder_combined_XX.h.t
index 5d2c2b85c..3fdc53c62 100644
--- a/gr-trellis/src/lib/trellis_sccc_decoder_combined_XX.h.t
+++ b/gr-trellis/src/lib/trellis_sccc_decoder_combined_XX.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -42,7 +42,7 @@ TRELLIS_API @SPTR_NAME@ trellis_make_@BASE_NAME@ (
const interleaver &INTERLEAVER,
int blocklength,
int repetitions,
- trellis_siso_type_t SISO_TYPE, // perform "min-sum" or "sum-product" combining
+ trellis_siso_type_t SISO_TYPE, // perform "min-sum" or "sum-product" combining
int D,
const std::vector<@I_TYPE@> &TABLE,
trellis_metric_type_t METRIC_TYPE,
@@ -90,7 +90,7 @@ class TRELLIS_API @NAME@ : public gr_block
const interleaver &INTERLEAVER,
int blocklength,
int repetitions,
- trellis_siso_type_t SISO_TYPE,
+ trellis_siso_type_t SISO_TYPE,
int D,
const std::vector<@I_TYPE@> &TABLE,
trellis_metric_type_t METRIC_TYPE,
diff --git a/gr-trellis/src/lib/trellis_sccc_encoder_XX.cc.t b/gr-trellis/src/lib/trellis_sccc_encoder_XX.cc.t
index b1a46ca60..8054909db 100644
--- a/gr-trellis/src/lib/trellis_sccc_encoder_XX.cc.t
+++ b/gr-trellis/src/lib/trellis_sccc_encoder_XX.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
@@ -30,7 +30,7 @@
#include <gr_io_signature.h>
#include <iostream>
-@SPTR_NAME@
+@SPTR_NAME@
trellis_make_@BASE_NAME@ (
const fsm &FSMo, int STo,
const fsm &FSMi, int STi,
@@ -64,13 +64,13 @@ trellis_make_@BASE_NAME@ (
-int
+int
@NAME@::work (int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items)
{
assert(noutput_items%d_blocklength ==0);
- for (int b = 0 ; b<noutput_items/d_blocklength; b++) {
+ for (int b = 0 ; b<noutput_items/d_blocklength; b++) {
const @I_TYPE@ *in = (const @I_TYPE@ *) input_items[0]+b*d_blocklength;
@O_TYPE@ *out = (@O_TYPE@ *) output_items[0]+b*d_blocklength;
diff --git a/gr-trellis/src/lib/trellis_sccc_encoder_XX.h.t b/gr-trellis/src/lib/trellis_sccc_encoder_XX.h.t
index 0e8ff45a4..b16d7ffca 100644
--- a/gr-trellis/src/lib/trellis_sccc_encoder_XX.h.t
+++ b/gr-trellis/src/lib/trellis_sccc_encoder_XX.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -66,7 +66,7 @@ private:
const fsm &FSMi, int STi,
const interleaver &INTERLEAVER,
int blocklength
- );
+ );
public:
fsm FSMo () const { return d_FSMo; }
diff --git a/gr-trellis/src/lib/trellis_siso_combined_f.cc b/gr-trellis/src/lib/trellis_siso_combined_f.cc
index 2a4cfa123..d27fe4425 100644
--- a/gr-trellis/src/lib/trellis_siso_combined_f.cc
+++ b/gr-trellis/src/lib/trellis_siso_combined_f.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
@@ -29,10 +29,10 @@
#include <stdexcept>
#include <assert.h>
#include <iostream>
-
+
static const float INF = 1.0e9;
-trellis_siso_combined_f_sptr
+trellis_siso_combined_f_sptr
trellis_make_siso_combined_f (
const fsm &FSM,
int K,
@@ -61,7 +61,7 @@ trellis_siso_combined_f::trellis_siso_combined_f (
trellis_metric_type_t TYPE)
: gr_block ("siso_combined_f",
gr_make_io_signature (1, -1, sizeof (float)),
- gr_make_io_signature (1, -1, sizeof (float))),
+ gr_make_io_signature (1, -1, sizeof (float))),
d_FSM (FSM),
d_K (K),
d_S0 (S0),
@@ -76,7 +76,7 @@ trellis_siso_combined_f::trellis_siso_combined_f (
//d_beta(FSM.S()*(K+1))
{
int multiple;
- if (d_POSTI && d_POSTO)
+ if (d_POSTI && d_POSTO)
multiple = d_FSM.I()+d_FSM.O();
else if(d_POSTI)
multiple = d_FSM.I();
@@ -88,14 +88,14 @@ trellis_siso_combined_f::trellis_siso_combined_f (
set_output_multiple (d_K*multiple);
//what is the meaning of relative rate for a block with 2 inputs?
//set_relative_rate ( multiple / ((double) d_FSM.I()) );
- // it turns out that the above gives problems in the scheduler, so
+ // it turns out that the above gives problems in the scheduler, so
// let's try (assumption O>I)
//set_relative_rate ( multiple / ((double) d_FSM.O()) );
// I am tempted to automate like this
if(d_FSM.I() <= d_D)
set_relative_rate ( multiple / ((double) d_D) );
else
- set_relative_rate ( multiple / ((double) d_FSM.I()) );
+ set_relative_rate ( multiple / ((double) d_FSM.I()) );
}
@@ -111,7 +111,7 @@ trellis_siso_combined_f::forecast (int noutput_items, gr_vector_int &ninput_item
multiple = d_FSM.O();
else
throw std::runtime_error ("Not both POSTI and POSTO can be false.");
- //printf("forecast: Multiple = %d\n",multiple);
+ //printf("forecast: Multiple = %d\n",multiple);
assert (noutput_items % (d_K*multiple) == 0);
int input_required1 = d_FSM.I() * (noutput_items/multiple) ;
int input_required2 = d_D * (noutput_items/multiple) ;
@@ -142,7 +142,7 @@ inline float min_star(float a, float b)
return (a <= b ? a : b)-log(1+exp(a <= b ? a-b : b-a));
}
-void siso_algorithm_combined(int I, int S, int O,
+void siso_algorithm_combined(int I, int S, int O,
const std::vector<int> &NS,
const std::vector<int> &OS,
const std::vector< std::vector<int> > &PS,
@@ -157,7 +157,7 @@ void siso_algorithm_combined(int I, int S, int O,
const float *priori, const float *observations, float *post//,
//std::vector<float> &alpha,
//std::vector<float> &beta
- )
+ )
{
float norm,mm,minm;
std::vector<float> alpha(S*(K+1));
@@ -186,7 +186,7 @@ void siso_algorithm_combined(int I, int S, int O,
alpha[(k+1)*S+j]=minm;
if(minm<norm) norm=minm;
}
- for(int j=0;j<S;j++)
+ for(int j=0;j<S;j++)
alpha[(k+1)*S+j]-=norm; // normalize total metrics so they do not explode
}
@@ -200,7 +200,7 @@ void siso_algorithm_combined(int I, int S, int O,
for(int k=K-1;k>=0;k--) { // backward recursion
norm=INF;
- for(int j=0;j<S;j++) {
+ for(int j=0;j<S;j++) {
minm=INF;
for(int i=0;i<I;i++) {
int i0 = j*I+i;
@@ -249,8 +249,8 @@ void siso_algorithm_combined(int I, int S, int O,
for(int n=0;n<O;n++)
post[k*(I+O)+I+n]-=norm; // normalize metrics
}
- }
- else if(POSTI)
+ }
+ else if(POSTI)
{
for(int k=0;k<K;k++) { // input combining
norm=INF;
@@ -306,7 +306,7 @@ trellis_siso_combined_f::general_work (int noutput_items,
{
assert (input_items.size() == 2*output_items.size());
int nstreams = output_items.size();
- //printf("general_work:Streams: %d\n",nstreams);
+ //printf("general_work:Streams: %d\n",nstreams);
int multiple;
if (d_POSTI && d_POSTO)
multiple = d_FSM.I()+d_FSM.O();
@@ -319,11 +319,11 @@ trellis_siso_combined_f::general_work (int noutput_items,
assert (noutput_items % (d_K*multiple) == 0);
int nblocks = noutput_items / (d_K*multiple);
- //printf("general_work:Blocks: %d\n",nblocks);
+ //printf("general_work:Blocks: %d\n",nblocks);
//for(int i=0;i<ninput_items.size();i++)
//printf("general_work:Input items available: %d\n",ninput_items[i]);
- float (*p2min)(float, float) = NULL;
+ float (*p2min)(float, float) = NULL;
if(d_SISO_TYPE == TRELLIS_MIN_SUM)
p2min = &min;
else if(d_SISO_TYPE == TRELLIS_SUM_PRODUCT)
diff --git a/gr-trellis/src/lib/trellis_siso_combined_f.h b/gr-trellis/src/lib/trellis_siso_combined_f.h
index 2d043df62..4b28e8de4 100644
--- a/gr-trellis/src/lib/trellis_siso_combined_f.h
+++ b/gr-trellis/src/lib/trellis_siso_combined_f.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -40,7 +40,7 @@ TRELLIS_API trellis_siso_combined_f_sptr trellis_make_siso_combined_f (
int SK, // final state (put -1 if not specified)
bool POSTI, // true if you want a-posteriori info about the input symbols to be mux-ed in the output
bool POSTO, // true if you want a-posteriori info about the output symbols to be mux-ed in the output
- trellis_siso_type_t d_SISO_TYPE, // perform "min-sum" or "sum-product" combining
+ trellis_siso_type_t d_SISO_TYPE, // perform "min-sum" or "sum-product" combining
int D,
const std::vector<float> &TABLE,
trellis_metric_type_t TYPE
diff --git a/gr-trellis/src/lib/trellis_siso_f.cc b/gr-trellis/src/lib/trellis_siso_f.cc
index d478c13a3..ffebf1928 100644
--- a/gr-trellis/src/lib/trellis_siso_f.cc
+++ b/gr-trellis/src/lib/trellis_siso_f.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
@@ -29,10 +29,10 @@
#include <stdexcept>
#include <assert.h>
#include <iostream>
-
+
static const float INF = 1.0e9;
-trellis_siso_f_sptr
+trellis_siso_f_sptr
trellis_make_siso_f (
const fsm &FSM,
int K,
@@ -55,7 +55,7 @@ trellis_siso_f::trellis_siso_f (
trellis_siso_type_t SISO_TYPE)
: gr_block ("siso_f",
gr_make_io_signature (1, -1, sizeof (float)),
- gr_make_io_signature (1, -1, sizeof (float))),
+ gr_make_io_signature (1, -1, sizeof (float))),
d_FSM (FSM),
d_K (K),
d_S0 (S0),
@@ -67,7 +67,7 @@ trellis_siso_f::trellis_siso_f (
//d_beta(FSM.S()*(K+1))
{
int multiple;
- if (d_POSTI && d_POSTO)
+ if (d_POSTI && d_POSTO)
multiple = d_FSM.I()+d_FSM.O();
else if(d_POSTI)
multiple = d_FSM.I();
@@ -79,14 +79,14 @@ trellis_siso_f::trellis_siso_f (
set_output_multiple (d_K*multiple);
//what is the meaning of relative rate for a block with 2 inputs?
//set_relative_rate ( multiple / ((double) d_FSM.I()) );
- // it turns out that the above gives problems in the scheduler, so
+ // it turns out that the above gives problems in the scheduler, so
// let's try (assumption O>I)
//set_relative_rate ( multiple / ((double) d_FSM.O()) );
// I am tempted to automate like this
if(d_FSM.I() <= d_FSM.O())
set_relative_rate ( multiple / ((double) d_FSM.O()) );
else
- set_relative_rate ( multiple / ((double) d_FSM.I()) );
+ set_relative_rate ( multiple / ((double) d_FSM.I()) );
}
@@ -102,7 +102,7 @@ trellis_siso_f::forecast (int noutput_items, gr_vector_int &ninput_items_require
multiple = d_FSM.O();
else
throw std::runtime_error ("Not both POSTI and POSTO can be false.");
- //printf("forecast: Multiple = %d\n",multiple);
+ //printf("forecast: Multiple = %d\n",multiple);
assert (noutput_items % (d_K*multiple) == 0);
int input_required1 = d_FSM.I() * (noutput_items/multiple) ;
int input_required2 = d_FSM.O() * (noutput_items/multiple) ;
@@ -131,7 +131,7 @@ inline float min_star(float a, float b)
return (a <= b ? a : b)-log(1+exp(a <= b ? a-b : b-a));
}
-void siso_algorithm(int I, int S, int O,
+void siso_algorithm(int I, int S, int O,
const std::vector<int> &NS,
const std::vector<int> &OS,
const std::vector< std::vector<int> > &PS,
@@ -143,7 +143,7 @@ void siso_algorithm(int I, int S, int O,
const float *priori, const float *prioro, float *post//,
//std::vector<float> &alpha,
//std::vector<float> &beta
- )
+ )
{
float norm,mm,minm;
std::vector<float> alpha(S*(K+1));
@@ -170,7 +170,7 @@ void siso_algorithm(int I, int S, int O,
alpha[(k+1)*S+j]=minm;
if(minm<norm) norm=minm;
}
- for(int j=0;j<S;j++)
+ for(int j=0;j<S;j++)
alpha[(k+1)*S+j]-=norm; // normalize total metrics so they do not explode
}
@@ -184,7 +184,7 @@ void siso_algorithm(int I, int S, int O,
for(int k=K-1;k>=0;k--) { // backward recursion
norm=INF;
- for(int j=0;j<S;j++) {
+ for(int j=0;j<S;j++) {
minm=INF;
for(int i=0;i<I;i++) {
int i0 = j*I+i;
@@ -233,8 +233,8 @@ if (POSTI && POSTO)
for(int n=0;n<O;n++)
post[k*(I+O)+I+n]-=norm; // normalize metrics
}
-}
-else if(POSTI)
+}
+else if(POSTI)
{
for(int k=0;k<K;k++) { // input combining
norm=INF;
@@ -288,7 +288,7 @@ trellis_siso_f::general_work (int noutput_items,
{
assert (input_items.size() == 2*output_items.size());
int nstreams = output_items.size();
- //printf("general_work:Streams: %d\n",nstreams);
+ //printf("general_work:Streams: %d\n",nstreams);
int multiple;
if (d_POSTI && d_POSTO)
multiple = d_FSM.I()+d_FSM.O();
@@ -301,11 +301,11 @@ trellis_siso_f::general_work (int noutput_items,
assert (noutput_items % (d_K*multiple) == 0);
int nblocks = noutput_items / (d_K*multiple);
- //printf("general_work:Blocks: %d\n",nblocks);
+ //printf("general_work:Blocks: %d\n",nblocks);
//for(int i=0;i<ninput_items.size();i++)
//printf("general_work:Input items available: %d\n",ninput_items[i]);
- float (*p2min)(float, float) = NULL;
+ float (*p2min)(float, float) = NULL;
if(d_SISO_TYPE == TRELLIS_MIN_SUM)
p2min = &min;
else if(d_SISO_TYPE == TRELLIS_SUM_PRODUCT)
diff --git a/gr-trellis/src/lib/trellis_siso_f.h b/gr-trellis/src/lib/trellis_siso_f.h
index b3d02ad05..9341f2468 100644
--- a/gr-trellis/src/lib/trellis_siso_f.h
+++ b/gr-trellis/src/lib/trellis_siso_f.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -39,7 +39,7 @@ TRELLIS_API trellis_siso_f_sptr trellis_make_siso_f (
int SK, // final state (put -1 if not specified)
bool POSTI, // true if you want a-posteriori info about the input symbols to be mux-ed in the output
bool POSTO, // true if you want a-posteriori info about the output symbols to be mux-ed in the output
- trellis_siso_type_t d_SISO_TYPE // perform "min-sum" or "sum-product" combining
+ trellis_siso_type_t d_SISO_TYPE // perform "min-sum" or "sum-product" combining
);
diff --git a/gr-trellis/src/lib/trellis_viterbi_X.cc.t b/gr-trellis/src/lib/trellis_viterbi_X.cc.t
index 2254f6450..cadb89d57 100644
--- a/gr-trellis/src/lib/trellis_viterbi_X.cc.t
+++ b/gr-trellis/src/lib/trellis_viterbi_X.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
@@ -30,10 +30,10 @@
#include <gr_io_signature.h>
#include <assert.h>
#include <iostream>
-
+
static const float INF = 1.0e9;
-@SPTR_NAME@
+@SPTR_NAME@
trellis_make_@BASE_NAME@ (
const fsm &FSM,
int K,
@@ -50,7 +50,7 @@ trellis_make_@BASE_NAME@ (
int SK)
: gr_block ("@BASE_NAME@",
gr_make_io_signature (1, -1, sizeof (float)),
- gr_make_io_signature (1, -1, sizeof (@TYPE@))),
+ gr_make_io_signature (1, -1, sizeof (@TYPE@))),
d_FSM (FSM),
d_K (K),
d_S0 (S0),
@@ -89,7 +89,7 @@ void viterbi_algorithm<@O_TYPE@>(int I, int S, int O,
/* Moved it to "core_algorithms.cc" */
/*
-void viterbi_algorithm(int I, int S, int O,
+void viterbi_algorithm(int I, int S, int O,
const std::vector<int> &NS,
const std::vector<int> &OS,
const std::vector< std::vector<int> > &PS,
@@ -97,7 +97,7 @@ void viterbi_algorithm(int I, int S, int O,
int K,
int S0,int SK,
const float *in, @TYPE@ *out)//,
- //std::vector<int> &trace)
+ //std::vector<int> &trace)
{
std::vector<int> trace(S*K);
std::vector<float> alpha(S*2);
@@ -130,7 +130,7 @@ void viterbi_algorithm(int I, int S, int O,
alpha[((alphai+1)%2)*S+j]=minm;
if(minm<norm) norm=minm;
}
- for(int j=0;j<S;j++)
+ for(int j=0;j<S;j++)
alpha[((alphai+1)%2)*S+j]-=norm; // normalize total metrics so they do not explode
alphai=(alphai+1)%2;
}
diff --git a/gr-trellis/src/lib/trellis_viterbi_X.h.t b/gr-trellis/src/lib/trellis_viterbi_X.h.t
index c679649bb..c0400d341 100644
--- a/gr-trellis/src/lib/trellis_viterbi_X.h.t
+++ b/gr-trellis/src/lib/trellis_viterbi_X.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
@@ -34,7 +34,7 @@ class @NAME@;
typedef boost::shared_ptr<@NAME@> @SPTR_NAME@;
TRELLIS_API @SPTR_NAME@ trellis_make_@BASE_NAME@ (
- const fsm &FSM,
+ const fsm &FSM,
int K,
int S0,
int SK);
diff --git a/gr-trellis/src/lib/trellis_viterbi_combined_XX.cc.t b/gr-trellis/src/lib/trellis_viterbi_combined_XX.cc.t
index e883a0ba7..74611ab8f 100644
--- a/gr-trellis/src/lib/trellis_viterbi_combined_XX.cc.t
+++ b/gr-trellis/src/lib/trellis_viterbi_combined_XX.cc.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010 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,
@@ -30,10 +30,10 @@
#include <gr_io_signature.h>
#include <assert.h>
#include <iostream>
-
+
static const float INF = 1.0e9;
-@SPTR_NAME@
+@SPTR_NAME@
trellis_make_@BASE_NAME@ (
const fsm &FSM,
int K,
@@ -56,7 +56,7 @@ trellis_make_@BASE_NAME@ (
trellis_metric_type_t TYPE)
: gr_block ("@BASE_NAME@",
gr_make_io_signature (1, -1, sizeof (@I_TYPE@)),
- gr_make_io_signature (1, -1, sizeof (@O_TYPE@))),
+ gr_make_io_signature (1, -1, sizeof (@O_TYPE@))),
d_FSM (FSM),
d_K (K),
d_S0 (S0),
@@ -71,7 +71,7 @@ trellis_make_@BASE_NAME@ (
}
-void @NAME@::set_TABLE(const std::vector<@I_TYPE@> &table)
+void @NAME@::set_TABLE(const std::vector<@I_TYPE@> &table)
{
d_TABLE = table;
}
@@ -91,7 +91,7 @@ void
/*
-void viterbi_algorithm_combined(int I, int S, int O,
+void viterbi_algorithm_combined(int I, int S, int O,
const std::vector<int> &NS,
const std::vector<int> &OS,
const std::vector< std::vector<int> > &PS,
@@ -102,7 +102,7 @@ void viterbi_algorithm_combined(int I, int S, int O,
const std::vector<@I_TYPE@> &TABLE,
trellis_metric_type_t TYPE,
const @I_TYPE@ *in, @O_TYPE@ *out)//,
- //std::vector<int> &trace)
+ //std::vector<int> &trace)
{
std::vector<int> trace(S*K);
std::vector<float> alpha(S*2);
@@ -136,7 +136,7 @@ void viterbi_algorithm_combined(int I, int S, int O,
alpha[((alphai+1)%2)*S+j]=minm;
if(minm<norm) norm=minm;
}
- for(int j=0;j<S;j++)
+ for(int j=0;j<S;j++)
alpha[((alphai+1)%2)*S+j]-=norm; // normalize total metrics so they do not explode
alphai=(alphai+1)%2;
}
@@ -157,7 +157,7 @@ void viterbi_algorithm_combined(int I, int S, int O,
out[k]= (@O_TYPE@) PI[st][i0];
st=PS[st][i0];
}
-
+
delete [] metric;
}
diff --git a/gr-trellis/src/lib/trellis_viterbi_combined_XX.h.t b/gr-trellis/src/lib/trellis_viterbi_combined_XX.h.t
index 072f66158..c7e468e73 100644
--- a/gr-trellis/src/lib/trellis_viterbi_combined_XX.h.t
+++ b/gr-trellis/src/lib/trellis_viterbi_combined_XX.h.t
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004 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,
diff --git a/gr-trellis/src/python/CMakeLists.txt b/gr-trellis/src/python/CMakeLists.txt
index 66ca3eb13..ae2ab9cb4 100644
--- a/gr-trellis/src/python/CMakeLists.txt
+++ b/gr-trellis/src/python/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011-2012 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,
diff --git a/gr-trellis/src/python/qa_trellis.py b/gr-trellis/src/python/qa_trellis.py
index b50679f27..fcc651ec6 100755
--- a/gr-trellis/src/python/qa_trellis.py
+++ b/gr-trellis/src/python/qa_trellis.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
import math
@@ -111,9 +111,9 @@ class trellis_tb(gr.top_block):
# packet size in shorts
src_head = gr.head (gr.sizeof_short, packet_size/16)
# unpack shorts to symbols compatible with the FSM input cardinality
- s2fsmi = gr.packed_to_unpacked_ss(bitspersymbol, gr.GR_MSB_FIRST)
+ s2fsmi = gr.packed_to_unpacked_ss(bitspersymbol, gr.GR_MSB_FIRST)
# initial FSM state = 0
- enc = trellis.encoder_ss(f, 0)
+ enc = trellis.encoder_ss(f, 0)
mod = gr.chunks_to_symbols_sc(constellation.points(), 1)
# CHANNEL
@@ -122,14 +122,14 @@ class trellis_tb(gr.top_block):
# RX
# data preprocessing to generate metrics for Viterbi
- metrics = trellis.constellation_metrics_cf(constellation.base(), digital_swig.TRELLIS_EUCLIDEAN)
+ metrics = trellis.constellation_metrics_cf(constellation.base(), digital_swig.TRELLIS_EUCLIDEAN)
# Put -1 if the Initial/Final states are not set.
va = trellis.viterbi_s(f, K, 0, -1)
# pack FSM input symbols to shorts
- fsmi2s = gr.unpacked_to_packed_ss(bitspersymbol, gr.GR_MSB_FIRST)
+ fsmi2s = gr.unpacked_to_packed_ss(bitspersymbol, gr.GR_MSB_FIRST)
# check the output
self.dst = gr.check_lfsr_32k_s()
-
+
self.connect (src, src_head, s2fsmi, enc, mod)
self.connect (mod, (add, 0))
self.connect (noise, (add, 1))
diff --git a/gr-uhd/CMakeLists.txt b/gr-uhd/CMakeLists.txt
index 3ba4f5342..8d5c3a884 100644
--- a/gr-uhd/CMakeLists.txt
+++ b/gr-uhd/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gr-uhd/apps/hf_explorer/hfx.py b/gr-uhd/apps/hf_explorer/hfx.py
index 687adf82b..1f08bd8ba 100755
--- a/gr-uhd/apps/hf_explorer/hfx.py
+++ b/gr-uhd/apps/hf_explorer/hfx.py
@@ -56,7 +56,7 @@
# |
# V
# (dst)
-#
+#
#----------------------------------------------------------------------
#
# Versions 2.2.1 adds loop antenna automatic tuner
@@ -65,7 +65,7 @@
# added more comments.
#
# 2.4.1 updates usrp interface to support auto subdev
-#
+#
# 2.8.1 changed saved file format from 8-byte complex to
# 4-byte short for obvious storage space savings.
@@ -93,7 +93,7 @@ ID_BUTTON_3 = wx.NewId() # AM
ID_BUTTON_4 = wx.NewId() # CW
ID_BUTTON_5 = wx.NewId() # Powermate controls: Upper audio freq cutoff
ID_BUTTON_6 = wx.NewId() # " Lower audio freq cutoff
-ID_BUTTON_7 = wx.NewId() # " Frequency
+ID_BUTTON_7 = wx.NewId() # " Frequency
ID_BUTTON_8 = wx.NewId() # " Volume
ID_BUTTON_9 = wx.NewId() # " Time
ID_BUTTON_10 = wx.NewId() # Time Seek Forwards
@@ -105,7 +105,7 @@ ID_TEXT_1 = wx.NewId() # Band Center, USRP ddc Freq
ID_SPIN_1 = wx.NewId() # Frequency display and control
ID_SLIDER_1 = wx.NewId() # Upper audio freq cutoff
ID_SLIDER_2 = wx.NewId() # Lower audio freq cutoff
-ID_SLIDER_3 = wx.NewId() # Frequency
+ID_SLIDER_3 = wx.NewId() # Frequency
ID_SLIDER_4 = wx.NewId() # Volume
ID_SLIDER_5 = wx.NewId() # Programmable Gain Amp, PGA, RF gain
ID_SLIDER_6 = wx.NewId() # AM Sync carrier level
@@ -118,7 +118,7 @@ class MyFrame(wx.Frame):
# begin wxGlade: MyFrame.__init__
kwds["style"] = wx.DEFAULT_FRAME_STYLE
wx.Frame.__init__(self, *args, **kwds)
-
+
# Menu Bar
self.frame_1_menubar = wx.MenuBar()
self.SetMenuBar(self.frame_1_menubar)
@@ -215,7 +215,7 @@ class MyFrame(wx.Frame):
self.f_slider_scale = 10000
self.spin_ctrl_1.SetRange(self.f_lo,self.f_hi)
self.text_ctrl_1.SetValue(str(int(self.usrp_center)))
- self.slider_5.SetValue(0)
+ self.slider_5.SetValue(0)
self.AM_mode = False
self.slider_3.SetValue((self.frequency-self.f_slider_offset)/self.f_slider_scale)
@@ -265,7 +265,7 @@ class MyFrame(wx.Frame):
self.tb.connect((s2ss,1),s2f2)
self.tb.connect(s2f1,(src_f2c,0))
self.tb.connect(s2f2,(src_f2c,1))
-
+
# save radio data to a file
if SAVE_RADIO_TO_FILE:
radio_file = gr.file_sink(gr.sizeof_short, options.radio_file)
@@ -295,7 +295,7 @@ class MyFrame(wx.Frame):
sample_rate=self.af_sample_rate,
average=True, size=(640,240))
- # AM Sync carrier
+ # AM Sync carrier
if AM_SYNC_DISPLAY:
self.fft2 = fftsink.fft_sink_c(self.tb, self.panel_9,
y_per_div=20, fft_size=512,
@@ -698,10 +698,10 @@ class MyFrame(wx.Frame):
if self.AM_mode:
fRel = ( event.GetX() - 330. ) / 14.266666 - 7.5
else:
- fRel = ( event.GetX() - 330. ) / 14.266666
+ fRel = ( event.GetX() - 330. ) / 14.266666
self.fft.win.SetToolTip(wx.ToolTip(eng_notation.num_to_str(self.frequency + (fRel*1e3))))
- # Mouse clicked on fft display - change frequency
+ # Mouse clicked on fft display - change frequency
def Click(self,event):
fRel = ( event.GetX() - 330. ) / 14.266666
if self.AM_mode == False:
@@ -752,7 +752,7 @@ class MyFrame(wx.Frame):
dev.write_aux_dac(uhd.dboard_iface.UNIT_RX,
uhd.dboard_iface.AUX_DAC_C,
float(self.slider_7.GetValue()))
-
+
# Timer events - check for web commands
def OnUpdate(self):
cmds = os.listdir("/var/www/cgi-bin/commands/")
diff --git a/gr-uhd/apps/hf_explorer/hfx_help b/gr-uhd/apps/hf_explorer/hfx_help
index 9a52dd2bb..c8fa28dbd 100644
--- a/gr-uhd/apps/hf_explorer/hfx_help
+++ b/gr-uhd/apps/hf_explorer/hfx_help
@@ -10,7 +10,7 @@
Default is 3.9e6 80 meter ham band.
Example:
- hfx.py -c 9500k
+ hfx.py -c 9500k
starts up in the 31 meter band.
@@ -49,15 +49,15 @@
usrp hardware needed. Tune about the 800kHz wide band.
When playing a recorded file, time controls
fast-forward and rewind are available.
-
+
-d Decimation. Sets sample rate and bandwidth.
This is the factor that the usrp sample rate, 64e6,
is divided by. Default is 250 for 256kHz bandwidth
- which is enough to record a ham band without
+ which is enough to record a ham band without
eating up disk space too fast. The 64e6 sample
rate limits the upper practical frequency to 32MHz.
The Basic RX transformer limits the lower frequency
- to about 200kHz.
+ to about 200kHz.
Powermate Knob:
@@ -145,12 +145,12 @@
amp I like is a Minicircuits ZHL-32A 29db amp but they are
expensive and hard to find. Also it may help to use some filters
to keep strong local signals from the ADC, or limit rf input
- to the band of interest, etc.
+ to the band of interest, etc.
Resonant outdoor antennas, like a dipole, in a low-noise (away
from consumer electronics) environment are nice. Long random wires
with a tuner work. I like a small indoor tuned loop made from 10ft
of 1/4" copper tube, a 365pf tuning cap and a pickup loop connected
- to rg-58.
+ to rg-58.
Web Control:
@@ -167,7 +167,7 @@
IF Output:
- There is a provision for outputting un-demodulated complex
+ There is a provision for outputting un-demodulated complex
through the audio out in stereo for use with Digital Radio
Mondial (DRM) or using a seperate demodulation program like
SDRadio (by I2PHD).
diff --git a/gr-uhd/apps/hf_radio/README.TXT b/gr-uhd/apps/hf_radio/README.TXT
index 7c7edf5e0..c5c57f847 100644
--- a/gr-uhd/apps/hf_radio/README.TXT
+++ b/gr-uhd/apps/hf_radio/README.TXT
@@ -1,17 +1,17 @@
# 2008-02-07
-#
+#
# These files have not yet been update to use the new top_block/hier_block2
# interfaces. Until someone does that, this files will no longer run.
-#
+#
The files in this directory implement a fairly simple HF radio that works
with the basic rx daughter board on the USRP.
-Many thanks to the Gnu Radio folks for a great new way to waste large blocks
+Many thanks to the Gnu Radio folks for a great new way to waste large blocks
of time in infinitely tweaking a huge number of free parameters.
-Start the receiver by running the radio.py in this directory. Or from the
+Start the receiver by running the radio.py in this directory. Or from the
Python prompt type "from radio import *" and you'll get the prompt back
with the receiver running. You can then poke around to see what's going on.
@@ -19,7 +19,7 @@ There are two spectrum displays. One is the output of the USRP and displays
about 300KHz of bandwidth centered at the current tuning freq. The other
displays the output spectrum of the demodulator.
-The demodulator does AM demod using the complex modulus block from gr. It
+The demodulator does AM demod using the complex modulus block from gr. It
does SSB demod using the frequency translating fir filter as a complex
hilbert transformer. The taps for this filter were generated using a program
called Scilab and the Scilab program in the file hfir.sci. More details in
@@ -39,7 +39,7 @@ The audio bandwidth can be similarly adjusted from about 50Hz to 10KHz.
The GUI layout was produced using wxGlade. The file radio.xml is the GUI
specification. It will produce a file called ui.py which is subclassed
by classes defined in radio.py. The ui.py is purely generated by wxGlade
-all app specific code for the GUI is in radio.py.
+all app specific code for the GUI is in radio.py.
Most of the actual signal processing code is built up in the other included
files using the hierarchical block facilities. This organization should
@@ -50,7 +50,7 @@ Known bugs weakness and other
wxPython and wxGlade seem to conspire to insure that the layout can never
be exactly what you have in mind.
-Some of the controls don't behave as one might like. wx spin controls
+Some of the controls don't behave as one might like. wx spin controls
and spin boxes only support integers so it is rather a nuisance to make
units come out nice. In the process of development I came up with a reasonable
kluge so there is a mixture of approaches.
diff --git a/gr-uhd/apps/hf_radio/hfir.sci b/gr-uhd/apps/hf_radio/hfir.sci
index a2d5e2a62..64f5385d7 100644
--- a/gr-uhd/apps/hf_radio/hfir.sci
+++ b/gr-uhd/apps/hf_radio/hfir.sci
@@ -25,7 +25,7 @@
// This isn't as computationally efficient as using the hilbert transformer
// and compensating delay but fascinating none the less.
//
-// This program is for the scilab language a very powerful free math
+// This program is for the scilab language a very powerful free math
// package similar to Matlab with infinitely better price/performace.
//
// compute the prototype lowpass fir
diff --git a/gr-uhd/apps/hf_radio/input.py b/gr-uhd/apps/hf_radio/input.py
index 2626ddfb5..78e800bb6 100644
--- a/gr-uhd/apps/hf_radio/input.py
+++ b/gr-uhd/apps/hf_radio/input.py
@@ -1,22 +1,22 @@
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
# Basic USRP setup and control.
# It's only ever been tried with a basic rx daughter card.
@@ -24,7 +24,7 @@
# Imagine that the gnuradio boilerplate is here.
#
# M. Revnell 2005-Dec
-
+
from gnuradio import gr
from gnuradio import uhd
@@ -33,7 +33,7 @@ class uhd_input(gr.hier_block2):
gr.hier_block2.__init__(self, "uhd_input",
gr.io_signature(0,0,0),
gr.io_signature(1,1,gr.sizeof_gr_complex))
-
+
self.src = uhd.usrp_source(device_addr=address,
io_type=uhd.io_type.COMPLEX_FLOAT32,
num_channels=1)
@@ -65,7 +65,7 @@ class uhd_input(gr.hier_block2):
self.gain = gain
self.src.set_gain(gain, 0)
- def add_options(parser):
+ def add_options(parser):
parser.add_option("-a", "--address", type="string",
default="addr=192.168.10.2",
help="Address of UHD device, [default=%default]")
diff --git a/gr-uhd/apps/hf_radio/output.py b/gr-uhd/apps/hf_radio/output.py
index 8ee7dc54c..70add5b84 100644
--- a/gr-uhd/apps/hf_radio/output.py
+++ b/gr-uhd/apps/hf_radio/output.py
@@ -1,22 +1,22 @@
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
# Audio output with a volume control.
@@ -31,7 +31,7 @@ class output( gr.hier_block2 ):
gr.hier_block2.__init__(self, "output",
gr.io_signature(1,1,gr.sizeof_float),
gr.io_signature(0,0,0))
-
+
self.vol = gr.multiply_const_ff( 0.1 )
self.out = audio.sink( int(rate), device )
@@ -39,4 +39,4 @@ class output( gr.hier_block2 ):
def set( self, val ):
self.vol.set_k( val )
-
+
diff --git a/gr-uhd/apps/hf_radio/radio.py b/gr-uhd/apps/hf_radio/radio.py
index 32e26c7eb..93d985067 100755
--- a/gr-uhd/apps/hf_radio/radio.py
+++ b/gr-uhd/apps/hf_radio/radio.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
# GUI interactions and high level connections handled here.
#
@@ -107,7 +107,7 @@ class radio_frame( ui_frame ):
agc_ref = self.block.agc.offs.k()
self.agc_ref.SetValue( str( agc_ref ) )
self.agc_ref_s.SetValue( 5 )
-
+
self.fespectrum = fftsink2.fft_sink_c(
self.fe_panel,
fft_size=512,
@@ -138,7 +138,7 @@ class radio_frame( ui_frame ):
r = r + 5
self.agc_ref.SetValue( str( r ) )
self.block.agc.offs.set_k( r )
-
+
def agc_ref_down( self, event ):
self.agc_ref_s.SetValue( 5 )
r = float( self.agc_ref.GetValue() )
@@ -184,7 +184,7 @@ class radio_frame( ui_frame ):
def tune_evt( self, event ):
f = self.freq_disp.GetValue()
self.tune( f )
-
+
def tune( self, frequency ):
self.freq_disp.SetValue( frequency )
self.block.tune( frequency )
@@ -247,13 +247,13 @@ class radio_frame( ui_frame ):
def event_pga( self, event ):
self.block.src.set_gain(self.pga.GetValue())
-
+
def event_vol( self, event ):
self.block.out.set( self.volume.GetValue()/20.0 )
def set_usb( self, event ):
self.block.demod.upper_sb()
-
+
def set_lsb( self, event ):
self.block.demod.lower_sb()
@@ -310,9 +310,9 @@ def main():
thread2 = Thread( target = rssi_function )
thread2.start()
-
+
radio_obj.MainLoop()
-
+
if __name__ == "__main__":
main()
diff --git a/gr-uhd/apps/hf_radio/ssbagc.py b/gr-uhd/apps/hf_radio/ssbagc.py
index 494712863..6a2e0a7cd 100644
--- a/gr-uhd/apps/hf_radio/ssbagc.py
+++ b/gr-uhd/apps/hf_radio/ssbagc.py
@@ -1,22 +1,22 @@
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-
+
# post detection agc processing
#
diff --git a/gr-uhd/apps/hf_radio/ssbdemod.py b/gr-uhd/apps/hf_radio/ssbdemod.py
index 072d317a2..3c533f617 100644
--- a/gr-uhd/apps/hf_radio/ssbdemod.py
+++ b/gr-uhd/apps/hf_radio/ssbdemod.py
@@ -1,22 +1,22 @@
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
# This tries to push the hilbert transform for ssb demod back into the
# freq. xlating filter.
@@ -45,7 +45,7 @@ class ssb_demod( gr.hier_block2 ):
self.sideband = 1
self.xlate_taps = ([complex(v) for v in file('ssb_taps').readlines()])
-
+
self.audio_taps = gr.firdes.low_pass(
1.0,
self.af_rate,
@@ -69,7 +69,7 @@ class ssb_demod( gr.hier_block2 ):
self.sb_sel = gr.multiply_const_ff( 1 )
self.mixer = gr.add_ff()
self.am_det = gr.complex_to_mag()
-
+
self.connect(self, self.xlate)
self.connect(self.xlate, self.split)
self.connect((self.split, 0), (self.sum, 0))
@@ -83,7 +83,7 @@ class ssb_demod( gr.hier_block2 ):
self.connect(self.lpf, self)
def upper_sb( self ):
- self.xlate.set_taps([v.conjugate() for v in self.xlate_taps])
+ self.xlate.set_taps([v.conjugate() for v in self.xlate_taps])
self.sb_sel.set_k( 1.0 )
self.am_sel.set_k( 0.0 )
@@ -91,7 +91,7 @@ class ssb_demod( gr.hier_block2 ):
self.xlate.set_taps(self.xlate_taps)
self.sb_sel.set_k( 1.0 )
self.am_sel.set_k( 0.0 )
-
+
def set_am( self ):
taps = gr.firdes.low_pass( 1.0,
self.if_rate,
diff --git a/gr-uhd/apps/hf_radio/ui.py b/gr-uhd/apps/hf_radio/ui.py
index 551a30415..a20ba4fab 100755
--- a/gr-uhd/apps/hf_radio/ui.py
+++ b/gr-uhd/apps/hf_radio/ui.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
# -*- coding: UTF-8 -*-
# generated by wxGlade 0.4 on Mon Jan 2 19:02:03 2006
diff --git a/gr-uhd/apps/uhd_fft b/gr-uhd/apps/uhd_fft
index 0267ce46f..8bb5e0d2b 100755
--- a/gr-uhd/apps/uhd_fft
+++ b/gr-uhd/apps/uhd_fft
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2012 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gru
from gnuradio import uhd
@@ -44,7 +44,7 @@ class app_top_block(stdgui2.std_top_block):
self.frame = frame
self.panel = panel
-
+
parser = OptionParser(option_class=eng_option)
parser.add_option("-a", "--args", type="string", default="",
help="UHD device address args , [default=%default]")
@@ -84,7 +84,7 @@ class app_top_block(stdgui2.std_top_block):
sys.exit(1)
self.options = options
self.show_debug_info = True
-
+
self.u = uhd.usrp_source(device_addr=options.args,
stream_args=uhd.stream_args(cpu_format='fc32',
otw_format=options.wire_format, args=options.stream_args))
@@ -99,7 +99,7 @@ class app_top_block(stdgui2.std_top_block):
self.u.set_samp_rate(options.samp_rate)
input_rate = self.u.get_samp_rate()
-
+
if options.waterfall:
self.scope = \
waterfallsink2.waterfall_sink_c (panel, fft_size=1024,
@@ -111,7 +111,7 @@ class app_top_block(stdgui2.std_top_block):
else:
self.scope = fftsink2.fft_sink_c (panel,
fft_size=options.fft_size,
- sample_rate=input_rate,
+ sample_rate=input_rate,
ref_scale=options.ref_scale,
ref_level=20.0,
y_divs = 12,
@@ -125,7 +125,7 @@ class app_top_block(stdgui2.std_top_block):
self._build_gui(vbox)
self._setup_events()
-
+
# set initial values
if options.gain is None:
@@ -137,7 +137,7 @@ class app_top_block(stdgui2.std_top_block):
# if no freq was specified, use the mid-point
r = self.u.get_freq_range()
options.freq = float(r.start()+r.stop())/2
-
+
self.set_gain(options.gain)
if self.show_debug_info:
@@ -165,9 +165,9 @@ class app_top_block(stdgui2.std_top_block):
def _form_set_freq(kv):
return self.set_freq(kv['freq'])
-
+
vbox.Add(self.scope.win, 10, wx.EXPAND)
-
+
# add control area at the bottom
self.myform = myform = form.form()
hbox = wx.BoxSizer(wx.HORIZONTAL)
@@ -184,11 +184,11 @@ class app_top_block(stdgui2.std_top_block):
if g.stop() <= g.start():
glow = 0.0
ghigh = 1.0
-
+
else:
glow = g.start()
ghigh = g.stop()
-
+
myform['gain'] = form.slider_field(parent=self.panel,
sizer=hbox, label="Gain",
weight=3,
@@ -234,7 +234,7 @@ class app_top_block(stdgui2.std_top_block):
# FIXME figure out how to have this be a subpanel that is always
# created, but has its visibility controlled by foo.Show(True/False)
-
+
def _form_set_samp_rate(kv):
return self.set_samp_rate(kv['samprate'])
@@ -265,7 +265,7 @@ class app_top_block(stdgui2.std_top_block):
vbox.Add(hbox, 0, wx.EXPAND)
vbox.AddSpacer(5)
-
+
def set_freq(self, target_freq):
"""
Set the center frequency we're interested in.
@@ -299,12 +299,12 @@ class app_top_block(stdgui2.std_top_block):
self.myform['samprate'].set_value(self.u.get_samp_rate())
# uhd set_samp_rate never fails; always falls back to closest requested.
- return True
+ return True
def _setup_events(self):
if not self.options.waterfall and not self.options.oscilloscope:
self.scope.win.Bind(wx.EVT_LEFT_DCLICK, self.evt_left_dclick)
-
+
def evt_left_dclick(self, event):
(ux, uy) = self.scope.win.GetXY(event)
if event.CmdDown():
@@ -317,17 +317,17 @@ class app_top_block(stdgui2.std_top_block):
ind = int(points.shape()[0]/2)
else:
ind = numpy.argmax(points[:,1])
-
+
(freq, pwr) = points[ind]
target_freq = freq/self.scope.win._scale_factor
print ind, freq, pwr
- self.set_freq(target_freq)
+ self.set_freq(target_freq)
else:
# Re-center on clicked frequency
target_freq = ux/self.scope.win._scale_factor
self.set_freq(target_freq)
-
-
+
+
def main ():
app = stdgui2.stdapp(app_top_block, "UHD FFT", nstatus=1)
app.MainLoop()
diff --git a/gr-uhd/apps/uhd_rx_cfile b/gr-uhd/apps/uhd_rx_cfile
index a61361e43..fb639623e 100755
--- a/gr-uhd/apps/uhd_rx_cfile
+++ b/gr-uhd/apps/uhd_rx_cfile
@@ -1,28 +1,28 @@
#!/usr/bin/env python
#
# Copyright 2012 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,
# Boston, MA 02110-1301, USA.
-#
+#
"""
Read samples from a UHD device and write to file formatted as binary
-outputs single precision complex float values or complex short values
+outputs single precision complex float values or complex short values
(interleaved 16 bit signed short integers).
"""
@@ -89,7 +89,7 @@ class rx_cfile_block(gr.top_block):
self.connect(self._u, self._head, self._sink)
input_rate = self._u.get_samp_rate()
-
+
if options.verbose:
print "Args: ", options.args
print "Rx gain:", options.gain
@@ -116,7 +116,7 @@ class rx_cfile_block(gr.top_block):
md = self.async_src.msg_to_async_metadata_t(msg)
print "Channel: %i Time: %f Event: %i" % (md.channel, md.time_spec.get_real_secs(), md.event_code)
-
+
def get_options():
usage="%prog: [options] output_filename"
parser = OptionParser(option_class=eng_option, usage=usage)
@@ -151,19 +151,19 @@ def get_options():
if len(args) != 1:
parser.print_help()
raise SystemExit, 1
-
+
if options.freq is None:
parser.print_help()
sys.stderr.write('You must specify the frequency with -f FREQ\n');
raise SystemExit, 1
-
+
return (options, args[0])
if __name__ == '__main__':
(options, filename) = get_options()
tb = rx_cfile_block(options, filename)
-
+
try:
tb.run()
except KeyboardInterrupt:
diff --git a/gr-uhd/apps/uhd_rx_nogui b/gr-uhd/apps/uhd_rx_nogui
index bcb52c619..9977f55a3 100755
--- a/gr-uhd/apps/uhd_rx_nogui
+++ b/gr-uhd/apps/uhd_rx_nogui
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2006,2007,2011,2012 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gru, uhd, optfir, audio, blks2
from gnuradio import eng_notation
@@ -27,8 +27,8 @@ from optparse import OptionParser
import sys
"""
-This example application demonstrates receiving and demodulating
-different types of signals using the USRP.
+This example application demonstrates receiving and demodulating
+different types of signals using the USRP.
A receive chain is built up of the following signal processing
blocks:
@@ -77,11 +77,11 @@ demod_params = {
class uhd_src(gr.hier_block2):
"""
Create a UHD source object supplying complex floats.
-
+
Selects user supplied subdevice or chooses first available one.
- Calibration value is the offset from the tuned frequency to
- the actual frequency.
+ Calibration value is the offset from the tuned frequency to
+ the actual frequency.
"""
def __init__(self, args, spec, antenna, samp_rate, gain=None, calibration=0.0):
gr.hier_block2.__init__(self, "uhd_src",
@@ -93,19 +93,19 @@ class uhd_src(gr.hier_block2):
# Set the subdevice spec
if(spec):
self._src.set_subdev_spec(spec, 0)
-
+
# Set the antenna
if(antenna):
self._src.set_antenna(antenna, 0)
-
+
self._src.set_samp_rate(samp_rate)
dev_rate = self._src.get_samp_rate()
self._samp_rate = samp_rate
-
+
# Resampler to get to exactly samp_rate no matter what dev_rate is
self._rrate = samp_rate / dev_rate
self._resamp = blks2.pfb_arb_resampler_ccf(self._rrate)
-
+
# If no gain specified, set to midrange
gain_range = self._src.get_gain_range()
if gain is None:
@@ -121,7 +121,7 @@ class uhd_src(gr.hier_block2):
def rate(self):
return self._samp_rate
-
+
class app_top_block(gr.top_block):
def __init__(self, options):
gr.top_block.__init__(self)
@@ -160,7 +160,7 @@ class app_top_block(gr.top_block):
False) # Zero, not gate output
AGC = gr.agc_cc(1.0/channel_rate, # Time constant
- 1.0, # Reference power
+ 1.0, # Reference power
1.0, # Initial gain
1.0) # Maximum gain
@@ -184,7 +184,7 @@ class app_top_block(gr.top_block):
out_decim = int(out_lcm // options.output_rate)
RSAMP = blks2.rational_resampler_fff(out_interp, out_decim)
self.connect(tail, RSAMP)
- tail = RSAMP
+ tail = RSAMP
# Send to audio output device
AUDIO = audio.sink(int(options.output_rate),
@@ -201,7 +201,7 @@ class app_top_block(gr.top_block):
md = self.async_src.msg_to_async_metadata_t(msg)
print "Channel: %i Time: %f Event: %i" % (md.channel, md.time_spec.get_real_secs(), md.event_code)
-
+
def main():
parser = OptionParser(option_class=eng_option)
parser.add_option("-a", "--args", type="string", default="",
@@ -244,7 +244,7 @@ def main():
if options.modulation is None:
sys.stderr.write("Must supply a modulation type (AM, FM, WFM).\n")
sys.exit(1)
-
+
tb = app_top_block(options)
try:
tb.run()
diff --git a/gr-uhd/apps/uhd_siggen b/gr-uhd/apps/uhd_siggen
index 26e0d79a4..52fc24922 100755
--- a/gr-uhd/apps/uhd_siggen
+++ b/gr-uhd/apps/uhd_siggen
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2008,2009,2011,2012 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
from gnuradio.uhd import uhd_siggen_base as uhd_siggen
@@ -27,7 +27,7 @@ import sys
def main():
if gr.enable_realtime_scheduling() != gr.RT_OK:
print "Note: failed to enable realtime scheduling, continuing"
-
+
# Grab command line options and create top block
try:
(options, args) = uhd_siggen.get_options()
diff --git a/gr-uhd/apps/uhd_siggen_base.py b/gr-uhd/apps/uhd_siggen_base.py
index 3c16440ab..5fa881e42 100644
--- a/gr-uhd/apps/uhd_siggen_base.py
+++ b/gr-uhd/apps/uhd_siggen_base.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2008,2009,2011,2012 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,
# Boston, MA 02110-1301, USA.
-#
+#
DESC_KEY = 'desc'
SAMP_RATE_KEY = 'samp_rate'
@@ -85,7 +85,7 @@ class top_block(gr.top_block, pubsub):
self.subscribe(TYPE_KEY, self.set_waveform)
#force update on pubsub keys
- for key in (SAMP_RATE_KEY, GAIN_KEY, TX_FREQ_KEY,
+ for key in (SAMP_RATE_KEY, GAIN_KEY, TX_FREQ_KEY,
AMPLITUDE_KEY, WAVEFORM_FREQ_KEY,
WAVEFORM_OFFSET_KEY, WAVEFORM2_FREQ_KEY):
self[key] = self[key]
@@ -120,7 +120,7 @@ class top_block(gr.top_block, pubsub):
dboard_serial = "no serial"
subdev = self._u.get_subdev_spec()
antenna = self._u.get_antenna()
-
+
desc_key_str = "Motherboard: %s [%s]\n" % (mboard_id, mboard_serial)
desc_key_str += "Daughterboard: %s [%s]\n" % (dboard_id, dboard_serial)
desc_key_str += "Subdev: %s\n" % subdev
@@ -172,7 +172,7 @@ class top_block(gr.top_block, pubsub):
self._src2.set_sampling_freq(self[WAVEFORM_FREQ_KEY]*2*math.pi/self[SAMP_RATE_KEY])
else:
return True # Waveform not yet set
-
+
if self._verbose:
print "Set sample rate to:", sr
@@ -211,7 +211,7 @@ class top_block(gr.top_block, pubsub):
print "Tx RF frequency: %sHz" % (n2s(tr.actual_rf_freq),)
print "Tx DSP frequency: %sHz" % (n2s(tr.actual_dsp_freq),)
elif self._verbose:
- print "Failed to set freq."
+ print "Failed to set freq."
return tr
def set_waveform_freq(self, freq):
@@ -313,7 +313,7 @@ class top_block(gr.top_block, pubsub):
self._src.set_k(amplitude)
else:
return True # Waveform not yet set
-
+
if self._verbose:
print "Set amplitude to:", amplitude
return True
@@ -342,7 +342,7 @@ def get_options():
parser.add_option("--sine", dest="type", action="store_const", const=gr.GR_SIN_WAVE,
help="Generate a carrier modulated by a complex sine wave",
default=gr.GR_SIN_WAVE)
- parser.add_option("--const", dest="type", action="store_const", const=gr.GR_CONST_WAVE,
+ parser.add_option("--const", dest="type", action="store_const", const=gr.GR_CONST_WAVE,
help="Generate a constant carrier")
parser.add_option("--offset", type="eng_float", default=0,
help="Set waveform phase offset to OFFSET [default=%default]")
@@ -371,7 +371,7 @@ def get_options():
def test_main():
if gr.enable_realtime_scheduling() != gr.RT_OK:
print "Note: failed to enable realtime scheduling, continuing"
-
+
# Grab command line options and create top block
try:
(options, args) = get_options()
diff --git a/gr-uhd/apps/uhd_siggen_gui b/gr-uhd/apps/uhd_siggen_gui
index 7e0fdc041..70929b182 100755
--- a/gr-uhd/apps/uhd_siggen_gui
+++ b/gr-uhd/apps/uhd_siggen_gui
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2009,2011,2012 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,
# Boston, MA 02110-1301, USA.
-#
+#
import wx
from gnuradio import gr, uhd
@@ -152,7 +152,7 @@ class app_gui(pubsub):
key=uhd_siggen.TX_FREQ_KEY,
)
freq_hbox.AddSpacer(10)
-
+
forms.slider(
parent=self.panel, sizer=freq_hbox,
proportion=2,
diff --git a/gr-uhd/doc/CMakeLists.txt b/gr-uhd/doc/CMakeLists.txt
index da3021776..b78c50a02 100644
--- a/gr-uhd/doc/CMakeLists.txt
+++ b/gr-uhd/doc/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gr-uhd/doc/README.uhd b/gr-uhd/doc/README.uhd
index ec8024c09..b0720d6d0 100644
--- a/gr-uhd/doc/README.uhd
+++ b/gr-uhd/doc/README.uhd
@@ -8,7 +8,7 @@ as:
See the Doxygen documentation for details about the blocks available
in this package. A quick listing of the details can be found in Python
-after importing by using:
+after importing by using:
help(uhd)
diff --git a/gr-uhd/doc/uhd.dox b/gr-uhd/doc/uhd.dox
index 92ad7db4c..f03705fe1 100644
--- a/gr-uhd/doc/uhd.dox
+++ b/gr-uhd/doc/uhd.dox
@@ -66,7 +66,7 @@ To use these options to create a UHD source object:
g = self.u.get_gain_range()
options.gain = float(g.start()+g.stop())/2
self.u.set_gain(options.gain, 0)
-
+
# Set the center frequency
self.u.set_center_freq(options.freq, 0)
diff --git a/gr-uhd/examples/c++/tag_sink_demo.h b/gr-uhd/examples/c++/tag_sink_demo.h
index 7d49bd971..207cc47e6 100644
--- a/gr-uhd/examples/c++/tag_sink_demo.h
+++ b/gr-uhd/examples/c++/tag_sink_demo.h
@@ -1,18 +1,18 @@
/*
* Copyright 2011 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,
diff --git a/gr-uhd/examples/c++/tag_source_demo.h b/gr-uhd/examples/c++/tag_source_demo.h
index 9743c3407..7d48502b2 100644
--- a/gr-uhd/examples/c++/tag_source_demo.h
+++ b/gr-uhd/examples/c++/tag_source_demo.h
@@ -1,18 +1,18 @@
/*
* Copyright 2011 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,
diff --git a/gr-uhd/examples/c++/tags_demo.cc b/gr-uhd/examples/c++/tags_demo.cc
index f7442f098..cc4c93272 100644
--- a/gr-uhd/examples/c++/tags_demo.cc
+++ b/gr-uhd/examples/c++/tags_demo.cc
@@ -1,18 +1,18 @@
/*
* Copyright 2011 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,
diff --git a/gr-uhd/examples/python/fm_tx4.py b/gr-uhd/examples/python/fm_tx4.py
index aecb35b54..f412ffb5d 100755
--- a/gr-uhd/examples/python/fm_tx4.py
+++ b/gr-uhd/examples/python/fm_tx4.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2005-2007,2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
"""
Transmit N simultaneous narrow band FM signals.
@@ -60,10 +60,10 @@ class pipeline(gr.hier_block2):
sys.stderr.write(("\nError: Could not open file '%s'\n\n" % \
filename))
sys.exit(1)
-
+
print audio_rate, if_rate
fmtx = blks2.nbfm_tx (audio_rate, if_rate, max_dev=5e3, tau=75e-6)
-
+
# Local oscillator
lo = gr.sig_source_c (if_rate, # sample rate
gr.GR_SIN_WAVE, # waveform type
@@ -71,7 +71,7 @@ class pipeline(gr.hier_block2):
1.0, # amplitude
0) # DC Offset
mixer = gr.multiply_cc ()
-
+
self.connect (src, fmtx, (mixer, 0))
self.connect (lo, (mixer, 1))
self.connect (mixer, self)
@@ -107,7 +107,7 @@ class fm_tx_block(stdgui2.std_top_block):
if options.nchannels < 1 or options.nchannels > MAX_CHANNELS:
sys.stderr.write ("fm_tx4: nchannels out of range. Must be in [1,%d]\n" % MAX_CHANNELS)
sys.exit(1)
-
+
if options.freq is None:
sys.stderr.write("fm_tx4: must specify frequency with -f FREQ\n")
parser.print_help()
@@ -168,7 +168,7 @@ class fm_tx_block(stdgui2.std_top_block):
ref_level=40)
self.connect (self.gain, post_mod)
vbox.Add (post_mod.win, 1, wx.EXPAND)
-
+
#if options.debug:
# self.debugger = tx_debug_gui.tx_debug_gui(self.subdev)
diff --git a/gr-uhd/examples/python/fm_tx_2_daughterboards.py b/gr-uhd/examples/python/fm_tx_2_daughterboards.py
index c0a7112de..b5763e8e1 100755
--- a/gr-uhd/examples/python/fm_tx_2_daughterboards.py
+++ b/gr-uhd/examples/python/fm_tx_2_daughterboards.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2005-2007,2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
"""
Transmit 2 signals, one out each daughterboard.
@@ -52,7 +52,7 @@ class example_signal_0(gr.hier_block2):
600, # frequency
1.0, # amplitude
0) # DC Offset
-
+
self.connect(src, self)
@@ -179,7 +179,7 @@ class my_top_block(gr.top_block):
if(options.antenna):
self.u.set_antenna(options.antenna, 0)
self.u.set_antenna(options.antenna, 1)
-
+
def set_freq(self, target_freq, chan):
"""
Set the center frequency we're interested in.
@@ -199,7 +199,7 @@ class my_top_block(gr.top_block):
else:
print " Set Frequency Failed!"
-
+
return False
def set_gain(self, gain, chan):
diff --git a/gr-uhd/examples/python/max_power.py b/gr-uhd/examples/python/max_power.py
index a849432ee..5d23f16af 100755
--- a/gr-uhd/examples/python/max_power.py
+++ b/gr-uhd/examples/python/max_power.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2007,2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
"""
Setup USRP for maximum power consumption.
@@ -56,7 +56,7 @@ class build_block(gr.top_block):
else:
tx_nchan = 1
rx_nchan = 1
-
+
if tx_enable:
print "\nTRANSMIT CHAIN"
stream_args = uhd.stream_args('fc32', channels=range(tx_nchan))
diff --git a/gr-uhd/examples/python/usrp_am_mw_rcv.py b/gr-uhd/examples/python/usrp_am_mw_rcv.py
index 85ffd7632..28262f2bd 100755
--- a/gr-uhd/examples/python/usrp_am_mw_rcv.py
+++ b/gr-uhd/examples/python/usrp_am_mw_rcv.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2005-2007,2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, eng_notation, optfir
from gnuradio import audio
@@ -60,15 +60,15 @@ class wfm_rx_block (stdgui2.std_top_block):
if len(args) != 0:
parser.print_help()
sys.exit(1)
-
+
self.frame = frame
self.panel = panel
self.use_IF=options.use_if_freq
if self.use_IF:
- self.IF_freq=64000.0
+ self.IF_freq=64000.0
else:
self.IF_freq=0.0
-
+
self.vol = 0
self.state = "FREQ"
self.freq = 0
@@ -89,7 +89,7 @@ class wfm_rx_block (stdgui2.std_top_block):
audio_rate = 32e3
chanfilt_decim = int(usrp_rate // demod_rate)
audio_decim = int(demod_rate // audio_rate)
-
+
self.u.set_samp_rate(usrp_rate)
dev_rate = self.u.get_samp_rate()
@@ -97,7 +97,7 @@ class wfm_rx_block (stdgui2.std_top_block):
# FIXME: make one of the follow-on filters an arb resampler
rrate = usrp_rate / dev_rate
self.resamp = blks2.pfb_arb_resampler_ccf(rrate)
-
+
chan_filt_coeffs = gr.firdes.low_pass_2 (1, # gain
usrp_rate, # sampling rate
8e3, # passband cutoff
@@ -128,10 +128,10 @@ class wfm_rx_block (stdgui2.std_top_block):
self.audio_sink = audio.sink (int (audio_rate),
options.audio_output,
False) # ok_to_block
-
+
# now wire it all together
self.connect (self.u, self.resamp, self.chan_filt, self.agc,
- self.am_demod, self.audio_filt,
+ self.am_demod, self.audio_filt,
self.volume_control, self.audio_sink)
self._build_gui(vbox, usrp_rate, demod_rate, audio_rate)
@@ -146,7 +146,7 @@ class wfm_rx_block (stdgui2.std_top_block):
if options.volume is None:
v = self.volume_range()
options.volume = float(v[0]*3+v[1])/4.0
-
+
if abs(options.freq) < 1e3:
options.freq *= 1e3
@@ -181,7 +181,7 @@ class wfm_rx_block (stdgui2.std_top_block):
vbox.Add (self.post_filt_fft.win, 4, wx.EXPAND)
if 0:
- post_demod_fft = fftsink2.fft_sink_f(self.panel, title="Post Demod",
+ post_demod_fft = fftsink2.fft_sink_f(self.panel, title="Post Demod",
fft_size=1024, sample_rate=demod_rate,
y_per_div=10, ref_level=0)
self.connect (self.am_demod, post_demod_fft)
@@ -194,7 +194,7 @@ class wfm_rx_block (stdgui2.std_top_block):
self.connect (self.audio_filt, audio_fft)
vbox.Add (audio_fft.win, 4, wx.EXPAND)
-
+
# control area form at bottom
self.myform = myform = form.form()
@@ -255,7 +255,7 @@ class wfm_rx_block (stdgui2.std_top_block):
elif self.rot <=-3:
self.set_vol(self.vol - step)
self.rot += 3
-
+
def on_button (self, event):
if event.value == 0: # button up
return
@@ -265,7 +265,7 @@ class wfm_rx_block (stdgui2.std_top_block):
else:
self.state = "FREQ"
self.update_status_bar ()
-
+
def set_vol (self, vol):
g = self.volume_range()
@@ -273,7 +273,7 @@ class wfm_rx_block (stdgui2.std_top_block):
self.volume_control.set_k(10**(self.vol/10))
self.myform['volume'].set_value(self.vol)
self.update_status_bar ()
-
+
def set_freq(self, target_freq):
"""
Set the center frequency we're interested in.
@@ -282,7 +282,7 @@ class wfm_rx_block (stdgui2.std_top_block):
@rypte: bool
"""
r = self.u.set_center_freq(target_freq + self.IF_freq, 0)
-
+
if r:
self.freq = target_freq
self.myform['freq'].set_value(target_freq) # update displayed value
@@ -305,10 +305,10 @@ class wfm_rx_block (stdgui2.std_top_block):
self.src_fft.set_baseband_freq(self.freq)
except:
None
-
+
def volume_range(self):
return (-40.0, 0.0, 0.5)
-
+
if __name__ == '__main__':
app = stdgui2.stdapp (wfm_rx_block, "USRP Broadcast AM MW RX")
diff --git a/gr-uhd/examples/python/usrp_nbfm_ptt.py b/gr-uhd/examples/python/usrp_nbfm_ptt.py
index 075604af3..8d26e656e 100755
--- a/gr-uhd/examples/python/usrp_nbfm_ptt.py
+++ b/gr-uhd/examples/python/usrp_nbfm_ptt.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2005,2007,2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
import math
import sys
@@ -45,7 +45,7 @@ class ptt_block(stdgui2.std_top_block):
self.frame = frame
self.space_bar_pressed = False
-
+
parser = OptionParser (option_class=eng_option)
parser.add_option("-a", "--args", type="string", default="",
help="UHD device address args [default=%default]")
@@ -72,7 +72,7 @@ class ptt_block(stdgui2.std_top_block):
if options.freq < 1e6:
options.freq *= 1e6
-
+
self.txpath = transmit_path(options.args, options.spec,
options.antenna, options.tx_gain,
options.audio_input)
@@ -103,7 +103,7 @@ class ptt_block(stdgui2.std_top_block):
def set_rx_gain(self, gain):
self.myform['rx_gain'].set_value(gain) # update displayed value
self.rxpath.set_gain(gain)
-
+
def set_tx_gain(self, gain):
self.txpath.set_gain(gain)
@@ -129,9 +129,9 @@ class ptt_block(stdgui2.std_top_block):
def _form_set_freq(kv):
return self.set_freq(kv['freq'])
-
+
self.panel = panel
-
+
# FIXME This REALLY needs to be replaced with a hand-crafted button
# that sends both button down and button up events
hbox = wx.BoxSizer(wx.HORIZONTAL)
@@ -203,7 +203,7 @@ class ptt_block(stdgui2.std_top_block):
form.quantized_slider_field(parent=self.panel, sizer=hbox, label="Squelch",
weight=3, range=self.rxpath.squelch_range(),
callback=self.set_squelch)
-
+
g = self.rxpath.u.get_gain_range()
hbox.Add((5,0), 0)
myform['rx_gain'] = \
@@ -221,7 +221,7 @@ class ptt_block(stdgui2.std_top_block):
# FIXME figure out how to have this be a subpanel that is always
# created, but has its visibility controlled by foo.Show(True/False)
-
+
#if not(self.show_debug_info):
# return
@@ -268,7 +268,7 @@ class ptt_block(stdgui2.std_top_block):
# if we lose the keyboard focus, turn off the transmitter
self.space_bar_pressed = False
self.set_transmit(False)
-
+
# ////////////////////////////////////////////////////////////////////////
# Transmit Path
@@ -279,7 +279,7 @@ class transmit_path(gr.hier_block2):
gr.hier_block2.__init__(self, "transmit_path",
gr.io_signature(0, 0, 0), # Input signature
gr.io_signature(0, 0, 0)) # Output signature
-
+
self.u = uhd.usrp_sink(device_addr=args, stream_args=uhd.stream_args('fc32'))
# Set the subdevice spec
@@ -306,13 +306,13 @@ class transmit_path(gr.hier_block2):
self.audio_rate, # sampling rate
3800, # low pass cutoff freq
300, # width of trans. band
- gr.firdes.WIN_HANN) # filter type
+ gr.firdes.WIN_HANN) # filter type
hpf = gr.firdes.high_pass (1, # gain
self.audio_rate, # sampling rate
325, # low pass cutoff freq
50, # width of trans. band
- gr.firdes.WIN_HANN) # filter type
+ gr.firdes.WIN_HANN) # filter type
audio_taps = convolve(array(lpf),array(hpf))
self.audio_filt = gr.fir_filter_fff(1,audio_taps)
@@ -391,7 +391,7 @@ class receive_path(gr.hier_block2):
nfilts*dev_rate, # sampling rate
13e3, # low pass cutoff freq
4e3, # width of trans. band
- gr.firdes.WIN_HANN) # filter type
+ gr.firdes.WIN_HANN) # filter type
rrate = self.quad_rate / dev_rate
self.resamp = blks2.pfb_arb_resampler_ccf(rrate, chan_coeffs, nfilts)
@@ -407,7 +407,7 @@ class receive_path(gr.hier_block2):
# sound card as final sink
audio_sink = audio.sink (int(self.audio_rate), audio_output)
-
+
# now wire it all together
self.connect (self.u, self.resamp, self.fmrx, self.squelch,
self._audio_gain, audio_sink)
@@ -423,7 +423,7 @@ class receive_path(gr.hier_block2):
self.set_volume((v[0]+v[1])/2)
s = self.squelch_range()
self.set_squelch((s[0]+s[1])/2)
-
+
# Set the subdevice spec
if(spec):
self.u.set_subdev_spec(spec, 0)
@@ -452,14 +452,14 @@ class receive_path(gr.hier_block2):
def squelch_range(self):
return self.squelch.squelch_range()
-
+
def set_squelch(self, threshold):
print "SQL =", threshold
self.squelch.set_threshold(threshold)
def threshold(self):
return self.squelch.threshold()
-
+
def set_freq(self, target_freq):
"""
Set the center frequency we're interested in.
diff --git a/gr-uhd/examples/python/usrp_nbfm_rcv.py b/gr-uhd/examples/python/usrp_nbfm_rcv.py
index 6fdf95a30..571abe8c9 100755
--- a/gr-uhd/examples/python/usrp_nbfm_rcv.py
+++ b/gr-uhd/examples/python/usrp_nbfm_rcv.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2005,2007,2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, audio, blks2, uhd
from gnuradio.eng_option import eng_option
@@ -58,13 +58,13 @@ class my_top_block (stdgui2.std_top_block):
if len(args) != 0:
parser.print_help()
sys.exit(1)
-
+
if options.freq < 1e6:
options.freq *= 1e6
-
+
self.frame = frame
self.panel = panel
-
+
self.state = "FREQ"
self.freq = 0
self.freq_step = 25e3
@@ -72,7 +72,7 @@ class my_top_block (stdgui2.std_top_block):
self.rxpath = receive_path(options.args, options.spec, options.antenna,
options.gain, options.audio_output)
self.connect(self.rxpath)
-
+
self._build_gui(vbox, options.no_gui)
# set initial values
@@ -119,7 +119,7 @@ class my_top_block (stdgui2.std_top_block):
y_per_div=20)
self.connect (self.rxpath.resamp, rx_fft)
vbox.Add (rx_fft.win, 4, wx.EXPAND)
-
+
if 1 and not(no_gui):
post_deemph_fft = fftsink2.fft_sink_f(self.panel,
title="Post Deemph",
@@ -132,7 +132,7 @@ class my_top_block (stdgui2.std_top_block):
if 0:
post_filt_fft = fftsink2.fft_sink_f(self.panel,
- title="Post Filter",
+ title="Post Filter",
fft_size=512,
sample_rate=audio_rate,
y_per_div=10,
@@ -206,7 +206,7 @@ class my_top_block (stdgui2.std_top_block):
elif self.rot <=-3:
self.set_volume(self.rxpath.volume - step)
self.rot += 3
-
+
def on_button (self, event):
if event.value == 0: # button up
return
@@ -216,7 +216,7 @@ class my_top_block (stdgui2.std_top_block):
else:
self.state = "FREQ"
self.update_status_bar ()
-
+
def set_squelch(self, threshold_in_db):
self.rxpath.set_squelch(threshold_in_db)
@@ -226,7 +226,7 @@ class my_top_block (stdgui2.std_top_block):
self.rxpath.set_volume(vol)
self.myform['volume'].set_value(self.rxpath.volume)
self.update_status_bar ()
-
+
def set_freq(self, target_freq):
r = self.rxpath.set_freq(target_freq)
if r:
@@ -252,7 +252,7 @@ class my_top_block (stdgui2.std_top_block):
def volume_range(self):
return (-20.0, 0.0, 0.5)
-
+
#////////////////////////////////////////////////////////////////////////
# Receive Path
@@ -289,7 +289,7 @@ class receive_path(gr.hier_block2):
nfilts*dev_rate, # sampling rate
8e3, # low pass cutoff freq
2e3, # width of trans. band
- gr.firdes.WIN_HANN) # filter type
+ gr.firdes.WIN_HANN) # filter type
rrate = self.quad_rate / dev_rate
self.resamp = blks2.pfb_arb_resampler_ccf(rrate, chan_coeffs, nfilts)
@@ -306,7 +306,7 @@ class receive_path(gr.hier_block2):
# sound card as final sink
audio_sink = audio.sink (int(self.audio_rate), audio_output)
-
+
# now wire it all together
if USE_SIMPLE_SQUELCH:
self.connect (self.u, self.resamp, self.squelch, self.fmrx,
@@ -338,12 +338,12 @@ class receive_path(gr.hier_block2):
def _update_audio_gain(self):
self._audio_gain.set_k(10**(self.volume/10))
-
+
def squelch_range(self):
r = self.squelch.squelch_range()
#print "squelch_range: ", r
return r
-
+
def set_squelch(self, threshold):
#print "SQL =", threshold
self.squelch.set_threshold(threshold)
diff --git a/gr-uhd/examples/python/usrp_spectrum_sense.py b/gr-uhd/examples/python/usrp_spectrum_sense.py
index 355a55a98..32980adbf 100755
--- a/gr-uhd/examples/python/usrp_spectrum_sense.py
+++ b/gr-uhd/examples/python/usrp_spectrum_sense.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2005,2007,2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, eng_notation, window
from gnuradio import audio
@@ -35,7 +35,7 @@ sys.stderr.write("Warning: this may have issues on some machines+Python version
class ThreadClass(threading.Thread):
def run(self):
return
-
+
class tune(gr.feval_dd):
"""
This class allows C++ code to callback into python.
@@ -158,13 +158,13 @@ class my_top_block(gr.top_block):
power = 0
for tap in mywindow:
power += tap*tap
-
+
c2mag = gr.complex_to_mag_squared(self.fft_size)
# FIXME the log10 primitive is dog slow
log = gr.nlog10_ff(10, self.fft_size,
-20*math.log10(self.fft_size)-10*math.log10(power/self.fft_size))
-
+
# Set the freq_step to 75% of the actual data throughput.
# This allows us to discard the bins on both ends of the spectrum.
@@ -174,7 +174,7 @@ class my_top_block(gr.top_block):
self.max_center_freq = self.min_center_freq + (nsteps * self.freq_step)
self.next_freq = self.min_center_freq
-
+
tune_delay = max(0, int(round(options.tune_delay * usrp_rate / self.fft_size))) # in fft_frames
dwell_delay = max(1, int(round(options.dwell_delay * usrp_rate / self.fft_size))) # in fft_frames
@@ -207,7 +207,7 @@ class my_top_block(gr.top_block):
sys.exit(1)
return target_freq
-
+
def set_freq(self, target_freq):
"""
@@ -237,14 +237,14 @@ def main_loop(tb):
print m.center_freq
# FIXME do something useful with the data...
-
+
# m.data are the mag_squared of the fft output (they are in the
# standard order. I.e., bin 0 == DC.)
# You'll probably want to do the equivalent of "fftshift" on them
# m.raw_data is a string that contains the binary floats.
# You could write this as binary to a file.
-
+
if __name__ == '__main__':
t = ThreadClass()
t.start()
@@ -253,6 +253,6 @@ if __name__ == '__main__':
try:
tb.start()
main_loop(tb)
-
+
except KeyboardInterrupt:
pass
diff --git a/gr-uhd/examples/python/usrp_tv_rcv.py b/gr-uhd/examples/python/usrp_tv_rcv.py
index 700915bf8..b49a5ea71 100755
--- a/gr-uhd/examples/python/usrp_tv_rcv.py
+++ b/gr-uhd/examples/python/usrp_tv_rcv.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2005-2007,2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
"""
Realtime capture and display of analog Tv stations.
@@ -95,7 +95,7 @@ class tv_rx_block (stdgui2.std_top_block):
if not ((len(args) == 1) or (len(args) == 0)):
parser.print_help()
sys.exit(1)
-
+
if len(args) == 1:
filename = args[0]
else:
@@ -103,7 +103,7 @@ class tv_rx_block (stdgui2.std_top_block):
self.frame = frame
self.panel = panel
-
+
self.contrast = options.contrast
self.brightness = options.brightness
self.state = "FREQ"
@@ -136,7 +136,7 @@ class tv_rx_block (stdgui2.std_top_block):
# Set the subdevice spec
if(options.spec):
self.u.set_subdev_spec(options.spec, 0)
-
+
# Set the antenna
if(options.antenna):
self.u.set_antenna(options.antenna, 0)
@@ -151,7 +151,7 @@ class tv_rx_block (stdgui2.std_top_block):
self.src=self.u
- self.gain = options.gain
+ self.gain = options.gain
f2uc=gr.float_to_uchar()
@@ -189,10 +189,10 @@ class tv_rx_block (stdgui2.std_top_block):
print "use the following line to show the demodulated TV-signal:"
print "display -depth 8 -size " +str(width)+ "x" + str(height) \
+ " gray:" + options.out_filename
- print "(Use the spacebar to advance to next frames)"
+ print "(Use the spacebar to advance to next frames)"
options.repeat=False
file_sink=gr.file_sink(gr.sizeof_char, options.out_filename)
- self.dst =file_sink
+ self.dst =file_sink
self.agc=gr.agc_cc(1e-7,1.0,1.0) #1e-7
self.am_demod = gr.complex_to_mag ()
@@ -219,7 +219,7 @@ class tv_rx_block (stdgui2.std_top_block):
self.tv_sync_adv=gr.tv_sync_adv(usrp_rate, 0, False, False,
0.0, 255.0, 0.01, 1.0, 0.0, False)
self.connect (self.src, self.am_demod, self.invert_and_scale,
- self.tv_sync_adv, s2f, f2uc, self.dst)
+ self.tv_sync_adv, s2f, f2uc, self.dst)
elif process_type=='do_nullsink':
#self.connect (self.src, self.am_demod,self.invert_and_scale,f2uc,video_sink)
@@ -229,16 +229,16 @@ class tv_rx_block (stdgui2.std_top_block):
elif process_type=='do_tv_sync_corr':
frame_size=width*height #int(usrp_rate/25.0)
nframes=10# 32
- search_window=20*nframes
+ search_window=20*nframes
debug=False
video_alpha=0.3 #0.1
corr_alpha=0.3
-
+
#Note: this block is not yet in cvs
tv_corr=gr.tv_correlator_ff(frame_size,nframes, search_window,
- video_alpha, corr_alpha,debug)
+ video_alpha, corr_alpha,debug)
shift=gr.add_const_ff(-0.7)
-
+
self.connect (self.src, self.agc, self.am_demod, tv_corr,
self.invert_and_scale, self.set_blacklevel,
f2uc, self.dst)
@@ -248,7 +248,7 @@ class tv_rx_block (stdgui2.std_top_block):
self.connect(src_vertical_bars, f2uc, self.dst)
self._build_gui(vbox, usrp_rate, usrp_rate, usrp_rate)
-
+
frange = self.u.get_freq_range()
if(frange.start() > self.tv_freq_max or frange.stop() < self.tv_freq_min):
@@ -290,13 +290,13 @@ class tv_rx_block (stdgui2.std_top_block):
vbox.Add (post_demod_fft.win, 4, wx.EXPAND)
if 0:
- post_filt_fft = fftsink.fft_sink_f (self, self.panel, title="Post Filter",
+ post_filt_fft = fftsink.fft_sink_f (self, self.panel, title="Post Filter",
fft_size=512, sample_rate=audio_rate,
y_per_div=10, ref_level=-40)
self.connect (self.set_blacklevel, post_filt)
vbox.Add (fft_win4, 4, wx.EXPAND)
-
+
# control area form at bottom
self.myform = myform = form.form()
@@ -373,7 +373,7 @@ class tv_rx_block (stdgui2.std_top_block):
elif self.rot <=-3:
self.set_brightness(self.brightness - step)
self.rot += 3
-
+
def on_button (self, event):
if event.value == 0: # button up
return
@@ -385,7 +385,7 @@ class tv_rx_block (stdgui2.std_top_block):
else:
self.state = "FREQ"
self.update_status_bar ()
-
+
def set_contrast (self, contrast):
self.contrast = contrast
@@ -398,7 +398,7 @@ class tv_rx_block (stdgui2.std_top_block):
self.set_blacklevel.set_k(self.brightness +255.0)
self.myform['brightness'].set_value(self.brightness)
self.update_status_bar ()
-
+
def set_freq(self, target_freq):
"""
Set the center frequency we're interested in.
@@ -430,13 +430,13 @@ class tv_rx_block (stdgui2.std_top_block):
self.myform['gain'].set_value(gain) # update displayed value
self.u.set_gain(gain)
self.update_status_bar()
-
+
def update_status_bar (self):
msg = "Setting:%s Contrast:%r Brightness:%r Gain: %r" % \
(self.state, self.contrast,self.brightness,self.gain)
self._set_status_msg(msg, 1)
#self.src_fft.set_baseband_freq(self.freq)
-
+
if __name__ == '__main__':
app = stdgui2.stdapp (tv_rx_block, "USRP TV RX black-and-white")
diff --git a/gr-uhd/examples/python/usrp_tv_rcv_nogui.py b/gr-uhd/examples/python/usrp_tv_rcv_nogui.py
index 870e65b27..cfb36222c 100755
--- a/gr-uhd/examples/python/usrp_tv_rcv_nogui.py
+++ b/gr-uhd/examples/python/usrp_tv_rcv_nogui.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2005-2007,2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
"""
Reads from a file and generates PAL TV pictures in black and white
@@ -99,7 +99,7 @@ class my_top_block(gr.top_block):
parser.print_help()
sys.stderr.write('You must specify the output. FILENAME or sdl \n');
sys.exit(1)
-
+
filename = args[0]
self.tv_freq_min = options.freq_min
@@ -120,7 +120,7 @@ class my_top_block(gr.top_block):
# file is data source, capture with usr_rx_csfile.py
self.filesource = gr.file_source(gr.sizeof_short,
options.in_filename,
- options.repeat)
+ options.repeat)
self.istoc = gr.interleaved_short_to_complex()
self.connect(self.filesource,self.istoc)
self.src=self.istoc
@@ -140,7 +140,7 @@ class my_top_block(gr.top_block):
# Set the antenna
if(options.antenna):
self.u.set_antenna(options.antenna, 0)
-
+
self.u.set_samp_rate(input_rate)
dev_rate = self.u.get_samp_rate()
@@ -156,7 +156,7 @@ class my_top_block(gr.top_block):
if not r:
sys.stderr.write('Failed to set frequency\n')
raise SystemExit, 1
-
+
self.agc = gr.agc_cc(1e-7,1.0,1.0) #1e-7
self.am_demod = gr.complex_to_mag ()
@@ -194,9 +194,9 @@ class my_top_block(gr.top_block):
print "You can use the imagemagick display tool to show the resulting imagesequence"
print "use the following line to show the demodulated TV-signal:"
print "display -depth 8 -size " +str(width)+ "x" + str(height) + " gray:" +filename
- print "(Use the spacebar to advance to next frames)"
+ print "(Use the spacebar to advance to next frames)"
file_sink=gr.file_sink(gr.sizeof_char, filename)
- self.dst =file_sink
+ self.dst =file_sink
if options.nframes is None:
self.connect(self.src, self.agc)
diff --git a/gr-uhd/examples/python/usrp_wfm_rcv.py b/gr-uhd/examples/python/usrp_wfm_rcv.py
index f6c5cf853..bbb599033 100755
--- a/gr-uhd/examples/python/usrp_wfm_rcv.py
+++ b/gr-uhd/examples/python/usrp_wfm_rcv.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2005-2007,2009,2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, optfir, audio, blks2, uhd
from gnuradio.eng_option import eng_option
@@ -57,10 +57,10 @@ class wfm_rx_block (stdgui2.std_top_block):
if len(args) != 0:
parser.print_help()
sys.exit(1)
-
+
self.frame = frame
self.panel = panel
-
+
self.vol = 0
self.state = "FREQ"
self.freq = 0
@@ -105,7 +105,7 @@ class wfm_rx_block (stdgui2.std_top_block):
self.audio_sink = audio.sink (int (audio_rate),
options.audio_output,
False) # ok_to_block
-
+
# now wire it all together
self.connect (self.u, self.chan_filt, self.guts,
self.volume_control, self.audio_sink)
@@ -120,7 +120,7 @@ class wfm_rx_block (stdgui2.std_top_block):
if options.volume is None:
g = self.volume_range()
options.volume = float(g[0]+g[1])/2
-
+
frange = self.u.get_freq_range()
if(frange.start() > self.fm_freq_max or frange.stop() < self.fm_freq_min):
sys.stderr.write("Radio does not support required frequency range.\n")
@@ -128,7 +128,7 @@ class wfm_rx_block (stdgui2.std_top_block):
if(options.freq < self.fm_freq_min or options.freq > self.fm_freq_max):
sys.stderr.write("Requested frequency is outside of required frequency range.\n")
sys.exit(1)
-
+
# set initial values
@@ -155,7 +155,7 @@ class wfm_rx_block (stdgui2.std_top_block):
vbox.Add (self.src_fft.win, 4, wx.EXPAND)
if 1:
- post_filt_fft = fftsink2.fft_sink_f(self.panel, title="Post Demod",
+ post_filt_fft = fftsink2.fft_sink_f(self.panel, title="Post Demod",
fft_size=1024, sample_rate=usrp_rate,
y_per_div=10, ref_level=0)
self.connect (self.guts.fm_demod, post_filt_fft)
@@ -168,7 +168,7 @@ class wfm_rx_block (stdgui2.std_top_block):
self.connect (self.guts.deemph, post_deemph_fft)
vbox.Add (post_deemph_fft.win, 4, wx.EXPAND)
-
+
# control area form at bottom
self.myform = myform = form.form()
@@ -195,7 +195,7 @@ class wfm_rx_block (stdgui2.std_top_block):
callback=self.set_vol)
hbox.Add((5,0), 1)
- g = self.u.get_gain_range()
+ g = self.u.get_gain_range()
myform['gain'] = \
form.quantized_slider_field(parent=self.panel, sizer=hbox, label="Gain",
weight=3, range=(g.start(), g.stop(), g.step()),
@@ -229,7 +229,7 @@ class wfm_rx_block (stdgui2.std_top_block):
elif self.rot <=-3:
self.set_vol(self.vol - step)
self.rot += 3
-
+
def on_button (self, event):
if event.value == 0: # button up
return
@@ -239,7 +239,7 @@ class wfm_rx_block (stdgui2.std_top_block):
else:
self.state = "FREQ"
self.update_status_bar ()
-
+
def set_vol (self, vol):
g = self.volume_range()
@@ -247,7 +247,7 @@ class wfm_rx_block (stdgui2.std_top_block):
self.volume_control.set_k(10**(self.vol/10))
self.myform['volume'].set_value(self.vol)
self.update_status_bar ()
-
+
def set_freq(self, target_freq):
"""
Set the center frequency we're interested in.
@@ -279,7 +279,7 @@ class wfm_rx_block (stdgui2.std_top_block):
def volume_range(self):
return (-20.0, 0.0, 0.5)
-
+
if __name__ == '__main__':
app = stdgui2.stdapp (wfm_rx_block, "USRP WFM RX")
diff --git a/gr-uhd/examples/python/usrp_wfm_rcv2_nogui.py b/gr-uhd/examples/python/usrp_wfm_rcv2_nogui.py
index b70334f30..f7e72ae6f 100755
--- a/gr-uhd/examples/python/usrp_wfm_rcv2_nogui.py
+++ b/gr-uhd/examples/python/usrp_wfm_rcv2_nogui.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2005-2007,2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, optfir, audio, blks2, uhd
from gnuradio.eng_option import eng_option
@@ -55,13 +55,13 @@ class wfm_rx_block (gr.top_block):
if len(args) != 0:
parser.print_help()
sys.exit(1)
-
+
if abs(options.f1 - options.f2) > 5.5e6:
print "Sorry, two stations must be within 5.5MHz of each other"
raise SystemExit
f = (options.f1, options.f2)
-
+
self.vol = .1
self.state = "FREQ"
@@ -130,7 +130,7 @@ class wfm_rx_block (gr.top_block):
tr = uhd.tune_request(f[n], rf_freq=mid_freq,
rf_freq_policy=uhd.tune_request.POLICY_MANUAL)
self.u.set_center_freq(tr, n)
-
+
# Set gain for each channel
self.set_gain(options.gain, n)
diff --git a/gr-uhd/examples/python/usrp_wfm_rcv_fmdet.py b/gr-uhd/examples/python/usrp_wfm_rcv_fmdet.py
index 9649857c0..514bd4faf 100755
--- a/gr-uhd/examples/python/usrp_wfm_rcv_fmdet.py
+++ b/gr-uhd/examples/python/usrp_wfm_rcv_fmdet.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2005-2007,2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, optfir, audio, blks2, uhd
from gnuradio.eng_option import eng_option
@@ -59,10 +59,10 @@ class wfm_rx_block (stdgui2.std_top_block):
if len(args) != 0:
parser.print_help()
sys.exit(1)
-
+
self.frame = frame
self.panel = panel
-
+
self.vol = 0
self.state = "FREQ"
self.freq = 0
@@ -112,7 +112,7 @@ class wfm_rx_block (stdgui2.std_top_block):
self.audio_sink = audio.sink (int (audio_rate),
options.audio_output,
False) # ok_to_block
-
+
# now wire it all together
self.connect (self.u, self.chan_filt, self.guts)
self.connect((self.guts, 0), self.lchan_filt,
@@ -206,7 +206,7 @@ class wfm_rx_block (stdgui2.std_top_block):
if 0:
- LmR_fft = fftsink2.fft_sink_f(self.panel, title="LmR",
+ LmR_fft = fftsink2.fft_sink_f(self.panel, title="LmR",
fft_size=512, sample_rate=audio_rate,
y_per_div=10, ref_level=-20)
self.connect (self.guts.LmR_real,LmR_fft)
@@ -216,7 +216,7 @@ class wfm_rx_block (stdgui2.std_top_block):
self.scope = scopesink2.scope_sink_f(self.panel, sample_rate=demod_rate)
self.connect (self.guts.fm_demod,self.scope)
vbox.Add (self.scope.win,4,wx.EXPAND)
-
+
# control area form at bottom
self.myform = myform = form.form()
@@ -243,7 +243,7 @@ class wfm_rx_block (stdgui2.std_top_block):
callback=self.set_vol)
hbox.Add((5,0), 1)
- g = self.u.get_gain_range()
+ g = self.u.get_gain_range()
myform['gain'] = \
form.quantized_slider_field(parent=self.panel, sizer=hbox, label="Gain",
weight=3, range=(g.start(), g.stop(), g.step()),
@@ -283,7 +283,7 @@ class wfm_rx_block (stdgui2.std_top_block):
elif self.rot <=-3:
self.set_vol(self.vol - step)
self.rot += 3
-
+
def on_button (self, event):
if event.value == 0: # button up
return
@@ -293,7 +293,7 @@ class wfm_rx_block (stdgui2.std_top_block):
else:
self.state = "FREQ"
self.update_status_bar ()
-
+
def set_vol (self, vol):
g = self.volume_range()
@@ -308,7 +308,7 @@ class wfm_rx_block (stdgui2.std_top_block):
self.guts.stereo_carrier_pll_recovery.set_lock_threshold(squelch_threshold);
except:
print "FYI: This implementation of the stereo_carrier_pll_recovery has no squelch implementation yet"
-
+
def set_freq(self, target_freq):
"""
@@ -317,7 +317,7 @@ class wfm_rx_block (stdgui2.std_top_block):
@param target_freq: frequency in Hz
@rypte: bool
"""
-
+
r = self.u.set_center_freq(target_freq)
if r:
@@ -330,7 +330,7 @@ class wfm_rx_block (stdgui2.std_top_block):
self._set_status_msg("Failed", 0)
return False
-
+
def set_gain(self, gain):
self.myform['gain'].set_value(gain) # update displayed value
self.u.set_gain(gain)
@@ -342,7 +342,7 @@ class wfm_rx_block (stdgui2.std_top_block):
def volume_range(self):
return (-20.0, 0.0, 0.5)
-
+
if __name__ == '__main__':
app = stdgui2.stdapp (wfm_rx_block, "USRP WFM RX")
diff --git a/gr-uhd/examples/python/usrp_wfm_rcv_nogui.py b/gr-uhd/examples/python/usrp_wfm_rcv_nogui.py
index f0195bcb5..7d042983e 100755
--- a/gr-uhd/examples/python/usrp_wfm_rcv_nogui.py
+++ b/gr-uhd/examples/python/usrp_wfm_rcv_nogui.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2005-2007,2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, optfir, audio, blks2, uhd
from gnuradio import eng_notation
@@ -55,7 +55,7 @@ class wfm_rx_block (gr.top_block):
if len(args) != 0:
parser.print_help()
sys.exit(1)
-
+
self.state = "FREQ"
self.freq = 0
@@ -99,7 +99,7 @@ class wfm_rx_block (gr.top_block):
self.audio_sink = audio.sink(int(audio_rate),
options.audio_output,
False) # ok_to_block
-
+
# now wire it all together
self.connect (self.u, self.chan_filt, self.guts,
self.volume_control, self.audio_sink)
@@ -140,7 +140,7 @@ class wfm_rx_block (gr.top_block):
@param target_freq: frequency in Hz
@rypte: bool
"""
-
+
r = self.u.set_center_freq(target_freq)
if r:
@@ -159,14 +159,14 @@ class wfm_rx_block (gr.top_block):
msg = "Freq: %s Volume:%f Setting:%s" % (
eng_notation.num_to_str(self.freq), self.vol, self.state)
self._set_status_msg(msg, 1)
-
+
def _set_status_msg(self, msg, which=0):
print msg
def volume_range(self):
return (-20.0, 0.0, 0.5)
-
+
if __name__ == '__main__':
tb = wfm_rx_block()
try:
diff --git a/gr-uhd/examples/python/usrp_wfm_rcv_pll.py b/gr-uhd/examples/python/usrp_wfm_rcv_pll.py
index b0744b00b..53b1e6fea 100755
--- a/gr-uhd/examples/python/usrp_wfm_rcv_pll.py
+++ b/gr-uhd/examples/python/usrp_wfm_rcv_pll.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2005-2007,2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, optfir, audio, blks2, uhd
from gnuradio import eng_notation
@@ -59,10 +59,10 @@ class wfm_rx_block (stdgui2.std_top_block):
if len(args) != 0:
parser.print_help()
sys.exit(1)
-
+
self.frame = frame
self.panel = panel
-
+
self.vol = 0
self.state = "FREQ"
self.freq = 0
@@ -97,7 +97,7 @@ class wfm_rx_block (stdgui2.std_top_block):
70) # stopband attenuation
rrate = usrp_rate / dev_rate
self.chan_filt = blks2.pfb_arb_resampler_ccf(rrate, chan_coeffs, nfilts)
-
+
self.guts = blks2.wfm_rcv_pll (demod_rate, audio_decim)
@@ -113,7 +113,7 @@ class wfm_rx_block (stdgui2.std_top_block):
self.audio_sink = audio.sink (int (audio_rate),
options.audio_output,
False) # ok_to_block
-
+
# now wire it all together
self.connect (self.u, self.chan_filt, self.guts)
self.connect((self.guts, 0), self.lchan_filt,
@@ -204,7 +204,7 @@ class wfm_rx_block (stdgui2.std_top_block):
if 0:
- LmR_fft = fftsink2.fft_sink_f(self.panel, title="LmR",
+ LmR_fft = fftsink2.fft_sink_f(self.panel, title="LmR",
fft_size=512, sample_rate=audio_rate,
y_per_div=10, ref_level=-20)
self.connect (self.guts.LmR_real,LmR_fft)
@@ -214,7 +214,7 @@ class wfm_rx_block (stdgui2.std_top_block):
self.scope = scopesink2.scope_sink_f(self.panel, sample_rate=demod_rate)
self.connect (self.guts.fm_demod,self.scope)
vbox.Add (self.scope.win,4,wx.EXPAND)
-
+
# control area form at bottom
self.myform = myform = form.form()
@@ -241,7 +241,7 @@ class wfm_rx_block (stdgui2.std_top_block):
callback=self.set_vol)
hbox.Add((5,0), 1)
- g = self.u.get_gain_range()
+ g = self.u.get_gain_range()
myform['gain'] = \
form.quantized_slider_field(parent=self.panel, sizer=hbox, label="Gain",
weight=3, range=(g.start(), g.stop(), g.step()),
@@ -281,7 +281,7 @@ class wfm_rx_block (stdgui2.std_top_block):
elif self.rot <=-3:
self.set_vol(self.vol - step)
self.rot += 3
-
+
def on_button (self, event):
if event.value == 0: # button up
return
@@ -291,7 +291,7 @@ class wfm_rx_block (stdgui2.std_top_block):
else:
self.state = "FREQ"
self.update_status_bar ()
-
+
def set_vol (self, vol):
g = self.volume_range()
@@ -306,7 +306,7 @@ class wfm_rx_block (stdgui2.std_top_block):
self.guts.stereo_carrier_pll_recovery.set_lock_threshold(squelch_threshold);
except:
print "FYI: This implementation of the stereo_carrier_pll_recovery has no squelch implementation yet"
-
+
def set_freq(self, target_freq):
"""
Set the center frequency we're interested in.
@@ -314,7 +314,7 @@ class wfm_rx_block (stdgui2.std_top_block):
@param target_freq: frequency in Hz
@rypte: bool
"""
-
+
r = self.u.set_center_freq(target_freq)
if r:
@@ -327,7 +327,7 @@ class wfm_rx_block (stdgui2.std_top_block):
self._set_status_msg("Failed", 0)
return False
-
+
def set_gain(self, gain):
self.myform['gain'].set_value(gain) # update displayed value
self.u.set_gain(gain)
@@ -339,7 +339,7 @@ class wfm_rx_block (stdgui2.std_top_block):
def volume_range(self):
return (-20.0, 0.0, 0.5)
-
+
if __name__ == '__main__':
app = stdgui2.stdapp (wfm_rx_block, "USRP WFM RX")
diff --git a/gr-uhd/examples/python/usrp_wfm_rcv_sca.py b/gr-uhd/examples/python/usrp_wfm_rcv_sca.py
index 224f30cf8..646fe8587 100755
--- a/gr-uhd/examples/python/usrp_wfm_rcv_sca.py
+++ b/gr-uhd/examples/python/usrp_wfm_rcv_sca.py
@@ -1,19 +1,19 @@
#!/usr/bin/env python
#
# Copyright 2006,2007,2011 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 this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -109,7 +109,7 @@ class wfm_rx_sca_block (stdgui2.std_top_block):
# Set the antenna
if(options.antenna):
self.u.set_antenna(options.antenna, 0)
-
+
usrp_rate = 320e3
demod_rate = 320e3
audio_rate = 32e3
@@ -218,7 +218,7 @@ class wfm_rx_sca_block (stdgui2.std_top_block):
if not(self.set_freq(options.freq)):
self._set_status_msg("Failed to set initial frequency")
self.set_sca_freq(67000) # A common SCA Frequency
-
+
def _set_status_msg(self, msg, which=0):
self.frame.GetStatusBar().SetStatusText(msg, which)
@@ -300,7 +300,7 @@ class wfm_rx_sca_block (stdgui2.std_top_block):
callback=self.set_vol)
hbox.Add((5,0), 1)
- g = self.u.get_gain_range()
+ g = self.u.get_gain_range()
myform['gain'] = \
form.quantized_slider_field(parent=self.panel, sizer=hbox, label="Gain",
weight=3, range=(g.start(), g.stop(), g.step()),
diff --git a/gr-uhd/examples/python/usrp_wxapt_rcv.py b/gr-uhd/examples/python/usrp_wxapt_rcv.py
index d9b1a0188..6b57de3bc 100755
--- a/gr-uhd/examples/python/usrp_wxapt_rcv.py
+++ b/gr-uhd/examples/python/usrp_wxapt_rcv.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2005-2007,2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, audio, blks2, uhd
from gnuradio.eng_option import eng_option
@@ -57,10 +57,10 @@ class wxapt_rx_block (stdgui2.std_top_block):
if len(args) != 0:
parser.print_help()
sys.exit(1)
-
+
self.frame = frame
self.panel = panel
-
+
self.vol = 0
self.state = "FREQ"
self.freq = 0
@@ -102,7 +102,7 @@ class wxapt_rx_block (stdgui2.std_top_block):
# sound card as final sink
self.audio_sink = audio.sink (int (audio_rate), options.audio_output)
-
+
# now wire it all together
self.connect (self.u, self.chan_filt, self.guts,
self.volume_control, self.audio_sink)
@@ -157,13 +157,13 @@ class wxapt_rx_block (stdgui2.std_top_block):
vbox.Add (post_deemph_fft.win, 4, wx.EXPAND)
if 1:
- post_filt_fft = fftsink2.fft_sink_f (self.panel, title="Post Filter",
+ post_filt_fft = fftsink2.fft_sink_f (self.panel, title="Post Filter",
fft_size=512, sample_rate=audio_rate,
y_per_div=10, ref_level=0)
self.connect (self.guts.audio_filter, post_filt_fft)
vbox.Add (post_filt_fft.win, 4, wx.EXPAND)
-
+
# control area form at bottom
self.myform = myform = form.form()
@@ -224,7 +224,7 @@ class wxapt_rx_block (stdgui2.std_top_block):
elif self.rot <=-3:
self.set_vol(self.vol - step)
self.rot += 3
-
+
def on_button (self, event):
if event.value == 0: # button up
return
@@ -234,7 +234,7 @@ class wxapt_rx_block (stdgui2.std_top_block):
else:
self.state = "FREQ"
self.update_status_bar ()
-
+
def set_vol (self, vol):
g = self.volume_range()
@@ -242,7 +242,7 @@ class wxapt_rx_block (stdgui2.std_top_block):
self.volume_control.set_k(10**(self.vol/10))
self.myform['volume'].set_value(self.vol)
self.update_status_bar ()
-
+
def set_freq(self, target_freq):
"""
Set the center frequency we're interested in.
@@ -275,7 +275,7 @@ class wxapt_rx_block (stdgui2.std_top_block):
def volume_range(self):
return (-20.0, 0.0, 0.5)
-
+
if __name__ == '__main__':
app = stdgui2.stdapp (wxapt_rx_block, "USRP WXAPT RX")
diff --git a/gr-uhd/grc/CMakeLists.txt b/gr-uhd/grc/CMakeLists.txt
index 3297db8d7..2d8f24aa3 100644
--- a/gr-uhd/grc/CMakeLists.txt
+++ b/gr-uhd/grc/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gr-uhd/include/CMakeLists.txt b/gr-uhd/include/CMakeLists.txt
index fdd384d58..27d3d1d36 100644
--- a/gr-uhd/include/CMakeLists.txt
+++ b/gr-uhd/include/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gr-uhd/include/gr_uhd_amsg_source.h b/gr-uhd/include/gr_uhd_amsg_source.h
index 3c1b59fa7..f2f21c99f 100644
--- a/gr-uhd/include/gr_uhd_amsg_source.h
+++ b/gr-uhd/include/gr_uhd_amsg_source.h
@@ -1,18 +1,18 @@
/*
* Copyright 2011 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,
diff --git a/gr-uhd/include/gr_uhd_api.h b/gr-uhd/include/gr_uhd_api.h
index d20b82c99..106acd8c7 100644
--- a/gr-uhd/include/gr_uhd_api.h
+++ b/gr-uhd/include/gr_uhd_api.h
@@ -1,18 +1,18 @@
/*
* Copyright 2011 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,
diff --git a/gr-uhd/include/gr_uhd_usrp_sink.h b/gr-uhd/include/gr_uhd_usrp_sink.h
index dffdf810f..0b05363f7 100644
--- a/gr-uhd/include/gr_uhd_usrp_sink.h
+++ b/gr-uhd/include/gr_uhd_usrp_sink.h
@@ -1,18 +1,18 @@
/*
* Copyright 2010-2012 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,
diff --git a/gr-uhd/include/gr_uhd_usrp_source.h b/gr-uhd/include/gr_uhd_usrp_source.h
index 64e9fb098..2611c5e07 100644
--- a/gr-uhd/include/gr_uhd_usrp_source.h
+++ b/gr-uhd/include/gr_uhd_usrp_source.h
@@ -1,18 +1,18 @@
/*
* Copyright 2010-2012 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,
diff --git a/gr-uhd/lib/CMakeLists.txt b/gr-uhd/lib/CMakeLists.txt
index 1f44b0630..810d1446a 100644
--- a/gr-uhd/lib/CMakeLists.txt
+++ b/gr-uhd/lib/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011-2012 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,
diff --git a/gr-uhd/lib/gr_uhd_amsg_source.cc b/gr-uhd/lib/gr_uhd_amsg_source.cc
index 67e402f6b..d2e2dd0bf 100644
--- a/gr-uhd/lib/gr_uhd_amsg_source.cc
+++ b/gr-uhd/lib/gr_uhd_amsg_source.cc
@@ -1,18 +1,18 @@
/*
* Copyright 2011-2012 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,
diff --git a/gr-uhd/lib/gr_uhd_common.h b/gr-uhd/lib/gr_uhd_common.h
index 940f17692..f2433b288 100644
--- a/gr-uhd/lib/gr_uhd_common.h
+++ b/gr-uhd/lib/gr_uhd_common.h
@@ -1,18 +1,18 @@
/*
* Copyright 2012 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,
diff --git a/gr-uhd/lib/gr_uhd_usrp_sink.cc b/gr-uhd/lib/gr_uhd_usrp_sink.cc
index 752817664..6c1688ea0 100644
--- a/gr-uhd/lib/gr_uhd_usrp_sink.cc
+++ b/gr-uhd/lib/gr_uhd_usrp_sink.cc
@@ -1,18 +1,18 @@
/*
* Copyright 2010-2012 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,
diff --git a/gr-uhd/lib/gr_uhd_usrp_source.cc b/gr-uhd/lib/gr_uhd_usrp_source.cc
index d06983cd3..8aa965401 100644
--- a/gr-uhd/lib/gr_uhd_usrp_source.cc
+++ b/gr-uhd/lib/gr_uhd_usrp_source.cc
@@ -1,18 +1,18 @@
/*
* Copyright 2010-2012 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,
diff --git a/gr-uhd/swig/__init__.py b/gr-uhd/swig/__init__.py
index b4045e77f..54a058c45 100644
--- a/gr-uhd/swig/__init__.py
+++ b/gr-uhd/swig/__init__.py
@@ -1,18 +1,18 @@
#
# Copyright 2010-2012 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,
diff --git a/gr-uhd/swig/qa_uhd.py b/gr-uhd/swig/qa_uhd.py
index 2973d04cd..00757369f 100755
--- a/gr-uhd/swig/qa_uhd.py
+++ b/gr-uhd/swig/qa_uhd.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2005,2008,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
import uhd_swig
@@ -35,6 +35,6 @@ class test_uhd(gr_unittest.TestCase):
"""Just see if we can import the module...
They may not have a UHD device connected, etc. Don't try to run anything"""
pass
-
+
if __name__ == '__main__':
gr_unittest.run(test_uhd, "test_uhd.xml")
diff --git a/gr-uhd/swig/uhd_swig.i b/gr-uhd/swig/uhd_swig.i
index cb74b3dce..513c1da7e 100644
--- a/gr-uhd/swig/uhd_swig.i
+++ b/gr-uhd/swig/uhd_swig.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010-2012 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,
diff --git a/gr-utils/src/python/gr_filter_design b/gr-utils/src/python/gr_filter_design
index e8703db4f..cc21ea5e7 100755
--- a/gr-utils/src/python/gr_filter_design
+++ b/gr-utils/src/python/gr_filter_design
@@ -76,9 +76,9 @@ class gr_plot_filter(QtGui.QMainWindow):
"High Pass", "Root Raised Cosine", "Gaussian")
self.optFilters = ("Low Pass", "Band Pass", "Complex Band Pass",
"Band Notch", "High Pass")
-
+
self.set_windowed()
-
+
# Initialize to LPF
self.gui.filterTypeWidget.setCurrentWidget(self.gui.firlpfPage)
@@ -211,19 +211,19 @@ class gr_plot_filter(QtGui.QMainWindow):
self.gui.filterTypeWidget.setCurrentWidget(self.gui.gausPage)
self.design()
-
+
def changed_filter_design_type(self, design):
if(design == "Equiripple"):
self.set_equiripple()
else:
self.set_windowed()
-
+
self.design()
def set_equiripple(self):
# Stop sending the signal for this function
self.gui.filterTypeComboBox.blockSignals(True)
-
+
self.equiripple = True
self.gui.lpfPassBandRippleLabel.setVisible(True)
self.gui.lpfPassBandRippleEdit.setVisible(True)
@@ -252,11 +252,11 @@ class gr_plot_filter(QtGui.QMainWindow):
# Tell gui its ok to start sending this signal again
self.gui.filterTypeComboBox.blockSignals(False)
-
+
def set_windowed(self):
# Stop sending the signal for this function
self.gui.filterTypeComboBox.blockSignals(True)
-
+
self.equiripple = False
self.gui.lpfPassBandRippleLabel.setVisible(False)
self.gui.lpfPassBandRippleEdit.setVisible(False)
@@ -332,7 +332,7 @@ class gr_plot_filter(QtGui.QMainWindow):
if(ret):
tb = sb - pb
-
+
taps = gr.firdes.low_pass_2(gain, fs, pb, tb,
atten, wintype)
params = {"fs": fs, "gain": gain, "wintype": wintype,
@@ -341,7 +341,7 @@ class gr_plot_filter(QtGui.QMainWindow):
return (taps, params, ret)
else:
return ([], [], ret)
-
+
def design_win_bpf(self, fs, gain, wintype):
ret = True
pb1,r = self.gui.startofBpfPassBandEdit.text().toDouble()
@@ -417,7 +417,7 @@ class gr_plot_filter(QtGui.QMainWindow):
if(r):
tb = pb - sb
taps = gr.firdes.high_pass_2(gain, fs, pb, tb,
- atten, wintype)
+ atten, wintype)
params = {"fs": fs, "gain": gain, "wintype": wintype,
"filttype": "hpf", "sbend": sb, "pbstart": pb,
"atten": atten, "ntaps": len(taps)}
@@ -490,7 +490,7 @@ class gr_plot_filter(QtGui.QMainWindow):
return (taps, params, ret)
else:
return ([], [], ret)
-
+
def design_opt_bpf(self, fs, gain):
ret = True
pb1,r = self.gui.startofBpfPassBandEdit.text().toDouble()
@@ -631,15 +631,15 @@ class gr_plot_filter(QtGui.QMainWindow):
self.update_phase_curves()
if(tab == 3):
self.update_group_curves()
-
+
def get_fft(self, fs, taps, Npts):
Ts = 1.0/fs
fftpts = fftpack.fft(taps, Npts)
- self.freq = scipy.arange(0, fs, 1.0/(Npts*Ts))
+ self.freq = scipy.arange(0, fs, 1.0/(Npts*Ts))
self.fftdB = 20.0*scipy.log10(abs(fftpts))
self.fftDeg = scipy.unwrap(scipy.angle(fftpts))
self.groupDelay = -scipy.diff(self.fftDeg)
-
+
def update_time_curves(self):
ntaps = len(self.taps)
if(ntaps > 0):
@@ -656,17 +656,17 @@ class gr_plot_filter(QtGui.QMainWindow):
0, ntaps)
self.gui.timePlot.setAxisScale(self.gui.timePlot.yLeft,
ymin, ymax)
-
+
# Set the zoomer base to unzoom to the new axis
self.timeZoomer.setZoomBase()
-
+
self.gui.timePlot.replot()
-
+
def update_freq_curves(self):
npts = len(self.fftdB)
if(npts > 0):
self.freqcurve.setData(self.freq, self.fftdB)
-
+
# Reset the x-axis to the new time scale
ymax = 1.5 * max(self.fftdB[0:npts/2])
ymin = 1.1 * min(self.fftdB[0:npts/2])
@@ -676,10 +676,10 @@ class gr_plot_filter(QtGui.QMainWindow):
xmin, xmax)
self.gui.freqPlot.setAxisScale(self.gui.freqPlot.yLeft,
ymin, ymax)
-
+
# Set the zoomer base to unzoom to the new axis
self.freqZoomer.setZoomBase()
-
+
self.gui.freqPlot.replot()
@@ -687,7 +687,7 @@ class gr_plot_filter(QtGui.QMainWindow):
npts = len(self.fftDeg)
if(npts > 0):
self.phasecurve.setData(self.freq, self.fftDeg)
-
+
# Reset the x-axis to the new time scale
ymax = 1.5 * max(self.fftDeg[0:npts/2])
ymin = 1.1 * min(self.fftDeg[0:npts/2])
@@ -697,17 +697,17 @@ class gr_plot_filter(QtGui.QMainWindow):
xmin, xmax)
self.gui.phasePlot.setAxisScale(self.gui.phasePlot.yLeft,
ymin, ymax)
-
+
# Set the zoomer base to unzoom to the new axis
self.phaseZoomer.setZoomBase()
-
+
self.gui.phasePlot.replot()
def update_group_curves(self):
npts = len(self.groupDelay)
if(npts > 0):
self.groupcurve.setData(self.freq, self.groupDelay)
-
+
# Reset the x-axis to the new time scale
ymax = 1.5 * max(self.groupDelay[0:npts/2])
ymin = 1.1 * min(self.groupDelay[0:npts/2])
@@ -717,10 +717,10 @@ class gr_plot_filter(QtGui.QMainWindow):
xmin, xmax)
self.gui.groupPlot.setAxisScale(self.gui.groupPlot.yLeft,
ymin, ymax)
-
+
# Set the zoomer base to unzoom to the new axis
self.groupZoomer.setZoomBase()
-
+
self.gui.groupPlot.replot()
def action_save_dialog(self):
@@ -732,7 +732,7 @@ class gr_plot_filter(QtGui.QMainWindow):
("Could not save to file: %s" % filename),
"&Ok")
return
-
+
csvhandle = csv.writer(handle, delimiter=",")
for k in self.params.keys():
csvhandle.writerow([k, self.params[k]])
@@ -743,7 +743,7 @@ class gr_plot_filter(QtGui.QMainWindow):
filename = QtGui.QFileDialog.getOpenFileName(self, "Open CSV Filter File", ".", "")
if(len(filename) == 0):
return
-
+
try:
handle = open(filename, "rb")
except IOError:
@@ -849,9 +849,9 @@ class gr_plot_filter(QtGui.QMainWindow):
self.update_freq_curves()
self.update_phase_curves()
self.update_group_curves()
-
+
self.gui.nTapsEdit.setText(Qt.QString("%1").arg(self.taps.size))
-
+
def setup_options():
usage="%prog: [options] (input_filename)"
diff --git a/gr-utils/src/python/gr_plot_char b/gr-utils/src/python/gr_plot_char
index 87a323c9c..a2b93a63c 100755
--- a/gr-utils/src/python/gr_plot_char
+++ b/gr-utils/src/python/gr_plot_char
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2007,2008 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,
# Boston, MA 02110-1301, USA.
-#
+#
try:
import scipy
@@ -40,7 +40,7 @@ def main():
help="Specify where to start in the file [default=%default]")
parser.add_option("-R", "--sample-rate", type="float", default=1.0,
help="Set the sampler rate of the data [default=%default]")
-
+
(options, args) = parser.parse_args ()
if len(args) < 1:
parser.print_help()
@@ -55,4 +55,4 @@ if __name__ == "__main__":
main()
except KeyboardInterrupt:
pass
-
+
diff --git a/gr-utils/src/python/gr_plot_const b/gr-utils/src/python/gr_plot_const
index 8873e5b7e..749ad035b 100755
--- a/gr-utils/src/python/gr_plot_const
+++ b/gr-utils/src/python/gr_plot_const
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2007,2008,2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
try:
import scipy
@@ -53,11 +53,11 @@ class draw_constellation:
self.fig = figure(1, figsize=(16, 9), facecolor='w')
rcParams['xtick.labelsize'] = self.axis_font_size
rcParams['ytick.labelsize'] = self.axis_font_size
-
+
self.text_file = figtext(0.10, 0.95, ("File: %s" % filename), weight="heavy", size=16)
self.text_file_pos = figtext(0.10, 0.90, "File Position: ", weight="heavy", size=16)
self.text_block = figtext(0.40, 0.90, ("Block Size: %d" % self.block_length),
- weight="heavy", size=16)
+ weight="heavy", size=16)
self.text_sr = figtext(0.60, 0.90, ("Sample Rate: %.2f" % self.sample_rate),
weight="heavy", size=16)
self.make_plots()
@@ -90,7 +90,7 @@ class draw_constellation:
if(len(iq) > 0):
self.reals = scipy.array([r.real for r in iq])
self.imags = scipy.array([i.imag for i in iq])
-
+
self.time = scipy.array([i*(1/self.sample_rate) for i in range(len(self.reals))])
return True
else:
@@ -102,7 +102,7 @@ class draw_constellation:
self.hfile.seek(self.sizeof_data*self.start, 1)
r = self.get_data()
-
+
# Subplot for real and imaginary parts of signal
self.sp_iq = self.fig.add_subplot(2,1,1, position=[0.075, 0.2, 0.4, 0.6])
self.sp_iq.set_title(("I&Q"), fontsize=self.title_font_size, fontweight="bold")
@@ -141,7 +141,7 @@ class draw_constellation:
self.plot_const[0].set_data([self.reals, self.imags])
self.sp_const.axis([-2, 2, -2, 2])
draw()
-
+
def zoom(self, event):
newxlim = scipy.array(self.sp_iq.get_xlim())
curxlim = scipy.array(self.xlim)
@@ -163,7 +163,7 @@ class draw_constellation:
if(find(event.key, forward_valid_keys)):
self.step_forward()
-
+
elif(find(event.key, backward_valid_keys)):
self.step_backward()
@@ -195,16 +195,16 @@ class draw_constellation:
r = self.get_data()
if(r):
self.update_plots()
-
-
+
+
def mouse_button_callback(self, event):
x, y = event.xdata, event.ydata
-
+
if x is not None and y is not None:
if(event.inaxes == self.sp_iq):
self.indx = searchsorted(self.time, [x])
self.set_trace(self.indx)
-
+
def set_trace(self, indx):
self.plot_iq[2].set_data(self.time[indx], self.reals[indx])
@@ -212,13 +212,13 @@ class draw_constellation:
self.plot_const[1].set_data(self.reals[indx], self.imags[indx])
draw()
-
+
def find(item_in, list_search):
try:
return list_search.index(item_in) != None
except ValueError:
return False
-
+
def main():
usage="%prog: [options] input_filename"
@@ -231,7 +231,7 @@ def main():
help="Specify where to start in the file [default=%default]")
parser.add_option("-R", "--sample-rate", type="float", default=1.0,
help="Set the sampler rate of the data [default=%default]")
-
+
(options, args) = parser.parse_args ()
if len(args) != 1:
parser.print_help()
@@ -245,6 +245,6 @@ if __name__ == "__main__":
main()
except KeyboardInterrupt:
pass
-
+
diff --git a/gr-utils/src/python/gr_plot_fft b/gr-utils/src/python/gr_plot_fft
index 6859ea471..434348164 100644
--- a/gr-utils/src/python/gr_plot_fft
+++ b/gr-utils/src/python/gr_plot_fft
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2012 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio.plot_fft_base import plot_fft_base
diff --git a/gr-utils/src/python/gr_plot_fft_c b/gr-utils/src/python/gr_plot_fft_c
index e4ee9c5a9..43e808d95 100755
--- a/gr-utils/src/python/gr_plot_fft_c
+++ b/gr-utils/src/python/gr_plot_fft_c
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2007,2008 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio.plot_fft_base import plot_fft_base
@@ -27,7 +27,7 @@ from gnuradio.plot_fft_base import plot_fft_base
def main():
parser = plot_fft_base.setup_options()
parser.remove_option("--data-type")
-
+
(options, args) = parser.parse_args ()
if len(args) != 1:
parser.print_help()
@@ -41,6 +41,6 @@ if __name__ == "__main__":
main()
except KeyboardInterrupt:
pass
-
+
diff --git a/gr-utils/src/python/gr_plot_fft_f b/gr-utils/src/python/gr_plot_fft_f
index 66c75a8ff..dee9b17de 100755
--- a/gr-utils/src/python/gr_plot_fft_f
+++ b/gr-utils/src/python/gr_plot_fft_f
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2007,2008 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio.plot_fft_base import plot_fft_base
@@ -27,7 +27,7 @@ from gnuradio.plot_fft_base import plot_fft_base
def main():
parser = plot_fft_base.setup_options()
parser.remove_option("--data-type")
-
+
(options, args) = parser.parse_args ()
if len(args) != 1:
parser.print_help()
@@ -41,6 +41,6 @@ if __name__ == "__main__":
main()
except KeyboardInterrupt:
pass
-
+
diff --git a/gr-utils/src/python/gr_plot_float b/gr-utils/src/python/gr_plot_float
index e5c22a315..22806e48a 100755
--- a/gr-utils/src/python/gr_plot_float
+++ b/gr-utils/src/python/gr_plot_float
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2007,2008 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,
# Boston, MA 02110-1301, USA.
-#
+#
try:
import scipy
@@ -40,7 +40,7 @@ def main():
help="Specify where to start in the file [default=%default]")
parser.add_option("-R", "--sample-rate", type="float", default=1.0,
help="Set the sampler rate of the data [default=%default]")
-
+
(options, args) = parser.parse_args ()
if len(args) < 1:
parser.print_help()
@@ -55,4 +55,4 @@ if __name__ == "__main__":
main()
except KeyboardInterrupt:
pass
-
+
diff --git a/gr-utils/src/python/gr_plot_int b/gr-utils/src/python/gr_plot_int
index b44d4360a..355ddf018 100755
--- a/gr-utils/src/python/gr_plot_int
+++ b/gr-utils/src/python/gr_plot_int
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2007,2008 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,
# Boston, MA 02110-1301, USA.
-#
+#
try:
import scipy
@@ -40,7 +40,7 @@ def main():
help="Specify where to start in the file [default=%default]")
parser.add_option("-R", "--sample-rate", type="float", default=1.0,
help="Set the sampler rate of the data [default=%default]")
-
+
(options, args) = parser.parse_args ()
if len(args) < 1:
parser.print_help()
@@ -55,4 +55,4 @@ if __name__ == "__main__":
main()
except KeyboardInterrupt:
pass
-
+
diff --git a/gr-utils/src/python/gr_plot_iq b/gr-utils/src/python/gr_plot_iq
index 316e60a75..bf8077b6b 100755
--- a/gr-utils/src/python/gr_plot_iq
+++ b/gr-utils/src/python/gr_plot_iq
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2007,2008,2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
try:
import scipy
@@ -53,7 +53,7 @@ class draw_iq:
self.fig = figure(1, figsize=(16, 9), facecolor='w')
rcParams['xtick.labelsize'] = self.axis_font_size
rcParams['ytick.labelsize'] = self.axis_font_size
-
+
self.text_file = figtext(0.10, 0.94, ("File: %s" % filename), weight="heavy", size=self.text_size)
self.text_file_pos = figtext(0.10, 0.88, "File Position: ", weight="heavy", size=self.text_size)
self.text_block = figtext(0.40, 0.88, ("Block Size: %d" % self.block_length),
@@ -86,13 +86,13 @@ class draw_iq:
self.reals = scipy.array([r.real for r in self.iq])
self.imags = scipy.array([i.imag for i in self.iq])
self.time = scipy.array([i*(1/self.sample_rate) for i in range(len(self.reals))])
-
+
def make_plots(self):
# if specified on the command-line, set file pointer
self.hfile.seek(self.sizeof_data*self.start, 1)
self.get_data()
-
+
# Subplot for real and imaginary parts of signal
self.sp_iq = self.fig.add_subplot(2,1,1, position=[0.075, 0.14, 0.85, 0.67])
self.sp_iq.set_title(("I&Q"), fontsize=self.title_font_size, fontweight="bold")
@@ -111,14 +111,14 @@ class draw_iq:
1.5*max([self.reals.max(), self.imags.max()])])
self.sp_iq.set_xlim(self.time.min(), self.time.max())
draw()
-
+
def click(self, event):
forward_valid_keys = [" ", "down", "right"]
backward_valid_keys = ["up", "left"]
if(find(event.key, forward_valid_keys)):
self.step_forward()
-
+
elif(find(event.key, backward_valid_keys)):
self.step_backward()
@@ -140,14 +140,14 @@ class draw_iq:
self.hfile.seek(-self.hfile.tell(),1)
self.get_data()
self.update_plots()
-
+
def find(item_in, list_search):
try:
return list_search.index(item_in) != None
except ValueError:
return False
-
+
def main():
usage="%prog: [options] input_filename"
description = "Takes a GNU Radio complex binary file and displays the I&Q data versus time. You can set the block size to specify how many points to read in at a time and the start position in the file. By default, the system assumes a sample rate of 1, so in time, each sample is plotted versus the sample number. To set a true time axis, set the sample rate (-R or --sample-rate) to the sample rate used when capturing the samples."
@@ -159,7 +159,7 @@ def main():
help="Specify where to start in the file [default=%default]")
parser.add_option("-R", "--sample-rate", type="float", default=1.0,
help="Set the sampler rate of the data [default=%default]")
-
+
(options, args) = parser.parse_args ()
if len(args) != 1:
parser.print_help()
@@ -173,6 +173,6 @@ if __name__ == "__main__":
main()
except KeyboardInterrupt:
pass
-
+
diff --git a/gr-utils/src/python/gr_plot_psd b/gr-utils/src/python/gr_plot_psd
index 658e7b297..059ca6b64 100644
--- a/gr-utils/src/python/gr_plot_psd
+++ b/gr-utils/src/python/gr_plot_psd
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2012 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio.plot_psd_base import plot_psd_base
diff --git a/gr-utils/src/python/gr_plot_psd_c b/gr-utils/src/python/gr_plot_psd_c
index 192f263ec..fff2bff0f 100755
--- a/gr-utils/src/python/gr_plot_psd_c
+++ b/gr-utils/src/python/gr_plot_psd_c
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2008 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,
# Boston, MA 02110-1301, USA.
-#
+#
from optparse import OptionParser
from gnuradio.plot_psd_base import plot_psd_base
@@ -42,6 +42,6 @@ if __name__ == "__main__":
main()
except KeyboardInterrupt:
pass
-
+
diff --git a/gr-utils/src/python/gr_plot_psd_f b/gr-utils/src/python/gr_plot_psd_f
index fab312645..ec6799479 100755
--- a/gr-utils/src/python/gr_plot_psd_f
+++ b/gr-utils/src/python/gr_plot_psd_f
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2008 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,
# Boston, MA 02110-1301, USA.
-#
+#
from optparse import OptionParser
from gnuradio.plot_psd_base import plot_psd_base
@@ -42,6 +42,6 @@ if __name__ == "__main__":
main()
except KeyboardInterrupt:
pass
-
+
diff --git a/gr-utils/src/python/gr_plot_qt b/gr-utils/src/python/gr_plot_qt
index 937d0014b..153359f0c 100755
--- a/gr-utils/src/python/gr_plot_qt
+++ b/gr-utils/src/python/gr_plot_qt
@@ -55,12 +55,12 @@ class SpectrogramData(Qwt.QwtRasterData):
def rasterHint(self, rect):
return Qt.QSize(self.sp.shape[0], self.sp.shape[1])
-
+
def copy(self):
return self
def range(self):
-
+
return Qwt.QwtDoubleInterval(self.sp.min(), self.sp.max())
def value(self, x, y):
@@ -77,7 +77,7 @@ class gr_plot_qt(QtGui.QMainWindow):
QtGui.QWidget.__init__(self, parent)
self.gui = Ui_MainWindow()
self.gui.setupUi(self)
-
+
self.filename = None
self.block_length = options.block_length
self.start = options.start
@@ -127,8 +127,8 @@ class gr_plot_qt(QtGui.QMainWindow):
self.connect(self.gui.colorComboBox,
Qt.SIGNAL("activated (const QString&)"),
self.colorComboBoxEdit)
-
-
+
+
# Set up line style combo box
self.line_styles = {"None" : Qwt.QwtSymbol.NoSymbol,
"Circle" : Qwt.QwtSymbol.Ellipse,
@@ -290,7 +290,7 @@ class gr_plot_qt(QtGui.QMainWindow):
def reload_file(self):
if(self.filename):
self.initialize(self.filename)
-
+
def initialize(self, filename):
self.filename = filename
self.hfile = open(filename, "r")
@@ -308,7 +308,7 @@ class gr_plot_qt(QtGui.QMainWindow):
self.init_data_input()
self.get_data(self.cur_start, self.cur_stop)
self.get_psd()
- self.get_specgram()
+ self.get_specgram()
self.gui.plotHBar.setSliderPosition(0)
self.gui.plotHBar.setMaximum(self.signal_size-self.block_length)
@@ -322,7 +322,7 @@ class gr_plot_qt(QtGui.QMainWindow):
self.signal_size = self.hfile.tell()/self.sizeof_data
#print "Sizeof File: ", self.signal_size
self.hfile.seek(0, os.SEEK_SET)
-
+
def get_data(self, start, end):
if(end > start):
self.hfile.seek(start*self.sizeof_data, os.SEEK_SET)
@@ -365,7 +365,7 @@ class gr_plot_qt(QtGui.QMainWindow):
noverlap=self.specfftsize/4.0,
window=winpoints,
scale_by_freq=False)
-
+
self.iq_spec = 10.0*scipy.log10(abs(iq_spec))
self.spec_f = f
self.spec_t = t
@@ -379,7 +379,7 @@ class gr_plot_qt(QtGui.QMainWindow):
self.specfftsize = fftSize.toInt()[0]
self.get_specgram()
self.update_specgram_curves()
-
+
def colorComboBoxEdit(self, colorSelection):
colorstr = str(colorSelection.toAscii())
color_func = self.color_modes[colorstr]
@@ -443,7 +443,7 @@ class gr_plot_qt(QtGui.QMainWindow):
tend = self.cur_stop / self.sample_rate
self.gui.fileTimeStartLineEdit.setText(Qt.QString("%1").arg(tstart))
self.gui.fileTimeStopLineEdit.setText(Qt.QString("%1").arg(tend))
-
+
self.get_data(self.cur_start, self.cur_stop)
self.update_time_curves()
@@ -456,7 +456,7 @@ class gr_plot_qt(QtGui.QMainWindow):
self.set_file_pos_box(self.cur_start, self.cur_stop)
except AttributeError:
pass
-
+
def file_time_changed(self):
tstart = self.gui.fileTimeStartLineEdit.text().toDouble()
@@ -548,16 +548,16 @@ class gr_plot_qt(QtGui.QMainWindow):
# Set the zoomer base to unzoom to the new axis
self.timeZoomer.setZoomBase()
-
+
self.gui.timePlot.replot()
-
+
def update_psd_curves(self):
self.psdcurve.setData(self.freq, self.iq_psd)
self.gui.freqPlot.setAxisScale(self.gui.freqPlot.xBottom,
min(self.freq),
max(self.freq))
-
+
# Set the zoomer base to unzoom to the new axis
self.freqZoomer.setZoomBase()
@@ -579,10 +579,10 @@ class gr_plot_qt(QtGui.QMainWindow):
self.gui.specPlot.setAxisScale(self.gui.specPlot.yLeft,
min(self.spec_t),
max(self.spec_t))
- self.gui.specPlot.setAxisScale(self.gui.specPlot.yRight,
+ self.gui.specPlot.setAxisScale(self.gui.specPlot.yRight,
self.iq_spec.min(),
self.iq_spec.max())
-
+
# Set the zoomer base to unzoom to the new axis
self.specZoomer.setZoomBase()
@@ -604,7 +604,7 @@ class gr_plot_qt(QtGui.QMainWindow):
self.rcurve.setSymbol(self.rsym)
self.icurve.setSymbol(self.isym)
self.gui.timePlot.replot()
-
+
def color_black_on_white(self):
blue = QtGui.qRgb(0x00, 0x00, 0xFF)
red = QtGui.qRgb(0xFF, 0x00, 0x00)
@@ -636,7 +636,7 @@ class gr_plot_qt(QtGui.QMainWindow):
whiteBrush = Qt.QBrush(Qt.QColor("white"))
whiteBrush = Qt.QBrush(Qt.QColor(white))
redBrush = Qt.QBrush(Qt.QColor(red))
-
+
self.gui.timePlot.setCanvasBackground(QtGui.QColor("black"))
self.gui.freqPlot.setCanvasBackground(QtGui.QColor("black"))
self.timeZoomer.setTrackerPen(Qt.QPen(whiteBrush, self.pen_width))
@@ -658,7 +658,7 @@ class gr_plot_qt(QtGui.QMainWindow):
whiteBrush = Qt.QBrush(Qt.QColor("white"))
greenBrush = Qt.QBrush(Qt.QColor(green))
redBrush = Qt.QBrush(Qt.QColor(red))
-
+
self.gui.timePlot.setCanvasBackground(QtGui.QColor("black"))
self.gui.freqPlot.setCanvasBackground(QtGui.QColor("black"))
self.timeZoomer.setTrackerPen(Qt.QPen(whiteBrush, self.pen_width))
@@ -679,7 +679,7 @@ class gr_plot_qt(QtGui.QMainWindow):
whiteBrush = Qt.QBrush(Qt.QColor("white"))
blueBrush = Qt.QBrush(Qt.QColor(blue))
redBrush = Qt.QBrush(Qt.QColor(red))
-
+
self.gui.timePlot.setCanvasBackground(QtGui.QColor("black"))
self.gui.freqPlot.setCanvasBackground(QtGui.QColor("black"))
self.timeZoomer.setTrackerPen(Qt.QPen(whiteBrush, self.pen_width))
diff --git a/gr-utils/src/python/gr_plot_short b/gr-utils/src/python/gr_plot_short
index 3466e0b7d..702a2a94a 100755
--- a/gr-utils/src/python/gr_plot_short
+++ b/gr-utils/src/python/gr_plot_short
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2007,2008 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,
# Boston, MA 02110-1301, USA.
-#
+#
try:
import scipy
@@ -40,7 +40,7 @@ def main():
help="Specify where to start in the file [default=%default]")
parser.add_option("-R", "--sample-rate", type="float", default=1.0,
help="Set the sampler rate of the data [default=%default]")
-
+
(options, args) = parser.parse_args ()
if len(args) < 1:
parser.print_help()
@@ -55,4 +55,4 @@ if __name__ == "__main__":
main()
except KeyboardInterrupt:
pass
-
+
diff --git a/gr-utils/src/python/plot_data.py b/gr-utils/src/python/plot_data.py
index 15012e589..242ca2a4b 100644
--- a/gr-utils/src/python/plot_data.py
+++ b/gr-utils/src/python/plot_data.py
@@ -1,23 +1,23 @@
#
# Copyright 2007,2008,2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
try:
import scipy
@@ -57,7 +57,7 @@ class plot_data:
self.fig = figure(1, figsize=(16, 9), facecolor='w')
rcParams['xtick.labelsize'] = self.axis_font_size
rcParams['ytick.labelsize'] = self.axis_font_size
-
+
self.text_file_pos = figtext(0.10, 0.88, "File Position: ", weight="heavy", size=self.text_size)
self.text_block = figtext(0.40, 0.88, ("Block Size: %d" % self.block_length),
weight="heavy", size=self.text_size)
@@ -78,7 +78,7 @@ class plot_data:
self.manager = get_current_fig_manager()
connect('key_press_event', self.click)
show()
-
+
def get_data(self, hfile):
self.text_file_pos.set_text("File Position: %d" % (hfile.tell()//self.sizeof_data))
try:
@@ -88,7 +88,7 @@ class plot_data:
else:
self.f = scipy.array(f)
self.time = scipy.array([i*(1/self.sample_rate) for i in range(len(self.f))])
-
+
def make_plots(self):
self.sp_f = self.fig.add_subplot(2,1,1, position=[0.075, 0.2, 0.875, 0.6])
self.sp_f.set_title(("Amplitude"), fontsize=self.title_font_size, fontweight="bold")
@@ -104,7 +104,7 @@ class plot_data:
hf.seek(self.sizeof_data*self.start, 1)
self.get_data(hf)
-
+
# Subplot for real and imaginary parts of signal
self.plot_f += plot(self.time, self.f, 'o-')
maxval = max(maxval, self.f.max())
@@ -126,16 +126,16 @@ class plot_data:
minval = min(minval, self.f.min())
self.sp_f.set_ylim([1.5*minval, 1.5*maxval])
-
+
draw()
-
+
def click(self, event):
forward_valid_keys = [" ", "down", "right"]
backward_valid_keys = ["up", "left"]
if(find(event.key, forward_valid_keys)):
self.step_forward()
-
+
elif(find(event.key, backward_valid_keys)):
self.step_backward()
@@ -156,7 +156,7 @@ class plot_data:
else:
hf.seek(-hf.tell(),1)
self.update_plots()
-
+
def find(item_in, list_search):
try:
diff --git a/gr-utils/src/python/plot_fft_base.py b/gr-utils/src/python/plot_fft_base.py
index 0b5df504b..4afdc3a36 100755
--- a/gr-utils/src/python/plot_fft_base.py
+++ b/gr-utils/src/python/plot_fft_base.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2007,2008,2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
try:
import scipy
@@ -54,7 +54,7 @@ class plot_fft_base:
self.fig = figure(1, figsize=(16, 12), facecolor='w')
rcParams['xtick.labelsize'] = self.axis_font_size
rcParams['ytick.labelsize'] = self.axis_font_size
-
+
self.text_file = figtext(0.10, 0.94, ("File: %s" % filename), weight="heavy", size=self.text_size)
self.text_file_pos = figtext(0.10, 0.88, "File Position: ", weight="heavy", size=self.text_size)
self.text_block = figtext(0.35, 0.88, ("Block Size: %d" % self.block_length),
@@ -77,7 +77,7 @@ class plot_fft_base:
connect('draw_event', self.zoom)
connect('key_press_event', self.click)
show()
-
+
def get_data(self):
self.position = self.hfile.tell()/self.sizeof_data
self.text_file_pos.set_text("File Position: %d" % (self.position))
@@ -87,7 +87,7 @@ class plot_fft_base:
print "End of File"
else:
self.iq_fft = self.dofft(self.iq)
-
+
tstep = 1.0 / self.sample_rate
#self.time = scipy.array([tstep*(self.position + i) for i in xrange(len(self.iq))])
self.time = scipy.array([tstep*(i) for i in xrange(len(self.iq))])
@@ -107,7 +107,7 @@ class plot_fft_base:
Fn = 0.5 * sample_rate
freq = scipy.array([-Fn + i*Fs for i in xrange(N)])
return freq
-
+
def make_plots(self):
# if specified on the command-line, set file pointer
self.hfile.seek(self.sizeof_data*self.start, 1)
@@ -125,7 +125,7 @@ class plot_fft_base:
self.sp_fft.set_ylabel("Power Spectrum (dBm)", fontsize=self.label_font_size, fontweight="bold")
self.get_data()
-
+
self.plot_iq = self.sp_iq.plot([], 'bo-') # make plot for reals
self.plot_iq += self.sp_iq.plot([], 'ro-') # make plot for imags
self.draw_time() # draw the plot
@@ -155,7 +155,7 @@ class plot_fft_base:
self.xlim = self.sp_iq.get_xlim()
draw()
-
+
def zoom(self, event):
newxlim = scipy.array(self.sp_iq.get_xlim())
curxlim = scipy.array(self.xlim)
@@ -168,10 +168,10 @@ class plot_fft_base:
iq = self.iq[xmin : xmax]
time = self.time[xmin : xmax]
-
+
iq_fft = self.dofft(iq)
freq = self.calc_freq(time, self.sample_rate)
-
+
self.plot_fft[0].set_data(freq, iq_fft)
self.sp_fft.axis([freq.min(), freq.max(),
iq_fft.min()-10, iq_fft.max()+10])
@@ -184,7 +184,7 @@ class plot_fft_base:
if(find(event.key, forward_valid_keys)):
self.step_forward()
-
+
elif(find(event.key, backward_valid_keys)):
self.step_backward()
@@ -244,6 +244,6 @@ if __name__ == "__main__":
main()
except KeyboardInterrupt:
pass
-
+
diff --git a/gr-utils/src/python/plot_psd_base.py b/gr-utils/src/python/plot_psd_base.py
index 78eed5f71..fe3c9e12b 100755
--- a/gr-utils/src/python/plot_psd_base.py
+++ b/gr-utils/src/python/plot_psd_base.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2007,2008,2010,2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
try:
import scipy
@@ -60,7 +60,7 @@ class plot_psd_base:
self.fig = figure(1, figsize=(16, 12), facecolor='w')
rcParams['xtick.labelsize'] = self.axis_font_size
rcParams['ytick.labelsize'] = self.axis_font_size
-
+
self.text_file = figtext(0.10, 0.95, ("File: %s" % filename),
weight="heavy", size=self.text_size)
self.text_file_pos = figtext(0.10, 0.92, "File Position: ",
@@ -85,7 +85,7 @@ class plot_psd_base:
connect('draw_event', self.zoom)
connect('key_press_event', self.click)
show()
-
+
def get_data(self):
self.position = self.hfile.tell()/self.sizeof_data
self.text_file_pos.set_text("File Position: %d" % self.position)
@@ -101,13 +101,13 @@ class plot_psd_base:
tstep = 1.0 / self.sample_rate
#self.time = scipy.array([tstep*(self.position + i) for i in xrange(len(self.iq))])
self.time = scipy.array([tstep*(i) for i in xrange(len(self.iq))])
-
+
self.iq_psd, self.freq = self.dopsd(self.iq)
return True
else:
print "End of File"
return False
-
+
def dopsd(self, iq):
''' Need to do this here and plot later so we can do the fftshift '''
overlap = self.psdfftsize/4
@@ -125,7 +125,7 @@ class plot_psd_base:
iqdims = [[0.075, 0.2, 0.4, 0.6], [0.075, 0.55, 0.4, 0.3]]
psddims = [[0.575, 0.2, 0.4, 0.6], [0.575, 0.55, 0.4, 0.3]]
specdims = [0.2, 0.125, 0.6, 0.3]
-
+
# Subplot for real and imaginary parts of signal
self.sp_iq = self.fig.add_subplot(2,2,1, position=iqdims[self.dospec])
self.sp_iq.set_title(("I&Q"), fontsize=self.title_font_size, fontweight="bold")
@@ -139,7 +139,7 @@ class plot_psd_base:
self.sp_psd.set_ylabel("Power Spectrum (dBm)", fontsize=self.label_font_size, fontweight="bold")
r = self.get_data()
-
+
self.plot_iq = self.sp_iq.plot([], 'bo-') # make plot for reals
self.plot_iq += self.sp_iq.plot([], 'ro-') # make plot for imags
self.draw_time(self.time, self.iq) # draw the plot
@@ -156,7 +156,7 @@ class plot_psd_base:
self.sp_spec.set_ylabel("Frequency (Hz)", fontsize=self.label_font_size, fontweight="bold")
self.draw_spec(self.time, self.iq)
-
+
draw()
def draw_time(self, t, iq):
@@ -189,9 +189,9 @@ class plot_psd_base:
self.draw_spec(self.time, self.iq)
self.xlim = scipy.array(self.sp_iq.get_xlim()) # so zoom doesn't get called
-
+
draw()
-
+
def zoom(self, event):
newxlim = scipy.array(self.sp_iq.get_xlim())
curxlim = scipy.array(self.xlim)
@@ -205,7 +205,7 @@ class plot_psd_base:
time = scipy.array(self.time[xmin : xmax])
iq_psd, freq = self.dopsd(iq)
-
+
self.draw_psd(freq, iq_psd)
self.xlim = scipy.array(self.sp_iq.get_xlim())
@@ -217,7 +217,7 @@ class plot_psd_base:
if(find(event.key, forward_valid_keys)):
self.step_forward()
-
+
elif(find(event.key, backward_valid_keys)):
self.step_backward()
@@ -241,7 +241,7 @@ class plot_psd_base:
r = self.get_data()
if(r):
self.update_plots()
-
+
@staticmethod
def setup_options():
usage="%prog: [options] input_filename"
@@ -287,6 +287,6 @@ if __name__ == "__main__":
main()
except KeyboardInterrupt:
pass
-
+
diff --git a/gr-video-sdl/CMakeLists.txt b/gr-video-sdl/CMakeLists.txt
index 6b1d7f79e..57ffde894 100644
--- a/gr-video-sdl/CMakeLists.txt
+++ b/gr-video-sdl/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gr-video-sdl/src/CMakeLists.txt b/gr-video-sdl/src/CMakeLists.txt
index 0c2069112..c21c9a9c8 100644
--- a/gr-video-sdl/src/CMakeLists.txt
+++ b/gr-video-sdl/src/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011-2012 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,
diff --git a/gr-video-sdl/src/qa_video_sdl.py b/gr-video-sdl/src/qa_video_sdl.py
index 8f82a60b1..9008d1513 100755
--- a/gr-video-sdl/src/qa_video_sdl.py
+++ b/gr-video-sdl/src/qa_video_sdl.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2006,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
import video_sdl
@@ -35,6 +35,6 @@ class test_video_sdl (gr_unittest.TestCase):
"""Just see if we can import the module...
They may not have video drivers, etc. Don't try to run anything"""
pass
-
+
if __name__ == '__main__':
gr_unittest.run(test_video_sdl, "test_video_sdl.xml")
diff --git a/gr-video-sdl/src/video_sdl.i b/gr-video-sdl/src/video_sdl.i
index 3546adab0..c06ad6c2e 100644
--- a/gr-video-sdl/src/video_sdl.i
+++ b/gr-video-sdl/src/video_sdl.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2009 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,
diff --git a/gr-video-sdl/src/video_sdl_sink_s.cc b/gr-video-sdl/src/video_sdl_sink_s.cc
index 2be3ff072..d9232043a 100644
--- a/gr-video-sdl/src/video_sdl_sink_s.cc
+++ b/gr-video-sdl/src/video_sdl_sink_s.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2010 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,
@@ -50,21 +50,21 @@ video_sdl_sink_s::video_sdl_sink_s (double framerate,int width, int height,unsig
d_height (height),
d_dst_width(dst_width),
d_dst_height(dst_height),
- d_format(format),
+ d_format(format),
d_current_line(0),
d_screen(NULL),
d_image(NULL),
d_avg_delay(0.0),
d_wanted_ticks(0)
{
- if(framerate<=0.0)
+ if(framerate<=0.0)
d_wanted_frametime_ms=0;//Go as fast as possible
else
d_wanted_frametime_ms=(int)(1000.0/framerate);
if(dst_width<0) d_dst_width=d_width;
if(dst_height<0) d_dst_height=d_height;
if(0==format) d_format=IMGFMT_YV12;
-
+
atexit(SDL_Quit);//check if this is the way to do this
if ( SDL_Init(SDL_INIT_VIDEO) < 0 ) {
std::cerr << "video_sdl_sink_s: Couldn't initialize SDL:" << SDL_GetError() << " \n SDL_Init(SDL_INIT_VIDEO) failed\n";
@@ -104,9 +104,9 @@ video_sdl_sink_s::video_sdl_sink_s (double framerate,int width, int height,unsig
std::cerr << "SDL: Couldn't lock YUV overlay: \n"<< SDL_GetError() <<"\n";
throw std::runtime_error ("video_sdl_sink_s");
}
- memset(d_image->pixels[0], 128, d_image->pitches[0]*d_height);
- memset(d_image->pixels[1], 128, d_image->pitches[1]*d_height/2);
- memset(d_image->pixels[2], 128, d_image->pitches[2]*d_height/2);
+ memset(d_image->pixels[0], 128, d_image->pitches[0]*d_height);
+ memset(d_image->pixels[1], 128, d_image->pitches[1]*d_height/2);
+ memset(d_image->pixels[2], 128, d_image->pitches[2]*d_height/2);
SDL_UnlockYUVOverlay( d_image );
}
@@ -241,7 +241,7 @@ video_sdl_sink_s::work (int noutput_items,
if ( SDL_LockYUVOverlay( d_image ) ) {
return 0;
- }
+ }
switch (input_items.size ()){
case 3: // first channel=Y, second channel is U , third channel is V
src_pixels_0 = (short *) input_items[0];
@@ -253,7 +253,7 @@ video_sdl_sink_s::work (int noutput_items,
noutput_items_produced+=copy_plane_to_surface (0,d_chunk_size, src_pixels_0);
src_pixels_0 += d_chunk_size;
src_pixels_1 += d_chunk_size;
- src_pixels_2 += d_chunk_size;
+ src_pixels_2 += d_chunk_size;
}
break;
case 2:
@@ -266,7 +266,7 @@ video_sdl_sink_s::work (int noutput_items,
copy_plane_to_surface (12,d_chunk_size/2, src_pixels_1);
noutput_items_produced+=copy_plane_to_surface (0,d_chunk_size, src_pixels_0);
src_pixels_0 += d_chunk_size;
- src_pixels_1 += d_chunk_size;
+ src_pixels_1 += d_chunk_size;
}
} else
{
@@ -277,7 +277,7 @@ video_sdl_sink_s::work (int noutput_items,
copy_plane_to_surface (1222,d_chunk_size/2, src_pixels_1);
noutput_items_produced+=copy_plane_to_surface (0,d_chunk_size, src_pixels_0);
src_pixels_0 += d_chunk_size;
- src_pixels_1 += d_chunk_size;
+ src_pixels_1 += d_chunk_size;
}
}
break;
diff --git a/gr-video-sdl/src/video_sdl_sink_s.h b/gr-video-sdl/src/video_sdl_sink_s.h
index 2ec15e36d..64f5b5a6c 100644
--- a/gr-video-sdl/src/video_sdl_sink_s.h
+++ b/gr-video-sdl/src/video_sdl_sink_s.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
@@ -82,7 +82,7 @@ class VIDEO_SDL_API video_sdl_sink_s : public gr_sync_block {
public:
~video_sdl_sink_s ();
-
+
int work (int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items);
diff --git a/gr-video-sdl/src/video_sdl_sink_uc.cc b/gr-video-sdl/src/video_sdl_sink_uc.cc
index 58e4830e4..360df1109 100644
--- a/gr-video-sdl/src/video_sdl_sink_uc.cc
+++ b/gr-video-sdl/src/video_sdl_sink_uc.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2010 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,
@@ -50,21 +50,21 @@ video_sdl_sink_uc::video_sdl_sink_uc (double framerate,int width, int height,uns
d_height (height),
d_dst_width(dst_width),
d_dst_height(dst_height),
- d_format(format),
+ d_format(format),
d_current_line(0),
d_screen(NULL),
d_image(NULL),
d_avg_delay(0.0),
d_wanted_ticks(0)
{
- if(framerate<=0.0)
+ if(framerate<=0.0)
d_wanted_frametime_ms=0;//Go as fast as possible
else
d_wanted_frametime_ms=(int)(1000.0/framerate);
if(dst_width<0) d_dst_width=d_width;
if(dst_height<0) d_dst_height=d_height;
if(0==format) d_format=IMGFMT_YV12;
-
+
atexit(SDL_Quit);//check if this is the way to do this
if ( SDL_Init(SDL_INIT_VIDEO) < 0 ) {
std::cerr << "video_sdl_sink_uc: Couldn't initialize SDL:" << SDL_GetError() << " \n SDL_Init(SDL_INIT_VIDEO) failed\n";
@@ -104,9 +104,9 @@ video_sdl_sink_uc::video_sdl_sink_uc (double framerate,int width, int height,uns
std::cerr << "SDL: Couldn't lock YUV overlay: \n"<< SDL_GetError() <<"\n";
throw std::runtime_error ("video_sdl_sink_uc");
}
- memset(d_image->pixels[0], 128, d_image->pitches[0]*d_height);
- memset(d_image->pixels[1], 128, d_image->pitches[1]*d_height/2);
- memset(d_image->pixels[2], 128, d_image->pitches[2]*d_height/2);
+ memset(d_image->pixels[0], 128, d_image->pitches[0]*d_height);
+ memset(d_image->pixels[1], 128, d_image->pitches[1]*d_height/2);
+ memset(d_image->pixels[2], 128, d_image->pitches[2]*d_height/2);
SDL_UnlockYUVOverlay( d_image );
}
@@ -135,15 +135,15 @@ video_sdl_sink_uc::copy_line_pixel_interleaved(unsigned char *dst_pixels_u,unsig
void
video_sdl_sink_uc::copy_line_line_interleaved(unsigned char *dst_pixels_u,unsigned char *dst_pixels_v,const unsigned char * src_pixels,int src_width)
{
- memcpy(dst_pixels_u, src_pixels, src_width);
- memcpy(dst_pixels_v, src_pixels+src_width, src_width);
+ memcpy(dst_pixels_u, src_pixels, src_width);
+ memcpy(dst_pixels_v, src_pixels+src_width, src_width);
return;
}
void
video_sdl_sink_uc::copy_line_single_plane(unsigned char *dst_pixels,const unsigned char * src_pixels,int src_width)
{
- memcpy(dst_pixels, src_pixels, src_width);
+ memcpy(dst_pixels, src_pixels, src_width);
return;
}
@@ -231,7 +231,7 @@ video_sdl_sink_uc::work (int noutput_items,
if ( SDL_LockYUVOverlay( d_image ) ) {
return 0;
- }
+ }
switch (input_items.size ()){
case 3: // first channel=Y, second channel is U , third channel is V
src_pixels_0 = (unsigned char *) input_items[0];
@@ -243,7 +243,7 @@ video_sdl_sink_uc::work (int noutput_items,
noutput_items_produced+=copy_plane_to_surface (0,d_chunk_size, src_pixels_0);
src_pixels_0 += d_chunk_size;
src_pixels_1 += d_chunk_size;
- src_pixels_2 += d_chunk_size;
+ src_pixels_2 += d_chunk_size;
}
break;
case 2:
@@ -256,7 +256,7 @@ video_sdl_sink_uc::work (int noutput_items,
copy_plane_to_surface (12,d_chunk_size/2, src_pixels_1);
noutput_items_produced+=copy_plane_to_surface (0,d_chunk_size, src_pixels_0);
src_pixels_0 += d_chunk_size;
- src_pixels_1 += d_chunk_size;
+ src_pixels_1 += d_chunk_size;
}
} else
{
@@ -267,7 +267,7 @@ video_sdl_sink_uc::work (int noutput_items,
copy_plane_to_surface (1222,d_chunk_size/2, src_pixels_1);
noutput_items_produced+=copy_plane_to_surface (0,d_chunk_size, src_pixels_0);
src_pixels_0 += d_chunk_size;
- src_pixels_1 += d_chunk_size;
+ src_pixels_1 += d_chunk_size;
}
}
break;
diff --git a/gr-video-sdl/src/video_sdl_sink_uc.h b/gr-video-sdl/src/video_sdl_sink_uc.h
index 435ddaa8f..6c071cf9d 100644
--- a/gr-video-sdl/src/video_sdl_sink_uc.h
+++ b/gr-video-sdl/src/video_sdl_sink_uc.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
@@ -82,7 +82,7 @@ class VIDEO_SDL_API video_sdl_sink_uc : public gr_sync_block {
public:
~video_sdl_sink_uc ();
-
+
int work (int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items);
diff --git a/gr-vocoder/CMakeLists.txt b/gr-vocoder/CMakeLists.txt
index 19f0dbec9..235054db6 100644
--- a/gr-vocoder/CMakeLists.txt
+++ b/gr-vocoder/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gr-vocoder/doc/CMakeLists.txt b/gr-vocoder/doc/CMakeLists.txt
index bd610a372..570c504e3 100644
--- a/gr-vocoder/doc/CMakeLists.txt
+++ b/gr-vocoder/doc/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gr-vocoder/doc/README.vocoder b/gr-vocoder/doc/README.vocoder
index 912d664ad..2737063cc 100644
--- a/gr-vocoder/doc/README.vocoder
+++ b/gr-vocoder/doc/README.vocoder
@@ -7,6 +7,6 @@ as:
See the Doxygen documentation for details about the blocks available
in this package. A quick listing of the details can be found in Python
-after importing by using:
+after importing by using:
help(vocoder)
diff --git a/gr-vocoder/examples/alaw_audio_loopback.py b/gr-vocoder/examples/alaw_audio_loopback.py
index 8fdd64d44..ad686244b 100755
--- a/gr-vocoder/examples/alaw_audio_loopback.py
+++ b/gr-vocoder/examples/alaw_audio_loopback.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
from gnuradio import audio
diff --git a/gr-vocoder/examples/codec2_audio_loopback.py b/gr-vocoder/examples/codec2_audio_loopback.py
index 54b453f8a..f5da9c217 100755
--- a/gr-vocoder/examples/codec2_audio_loopback.py
+++ b/gr-vocoder/examples/codec2_audio_loopback.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2005,2007,2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
from gnuradio import audio
diff --git a/gr-vocoder/examples/cvsd_audio_loopback.py b/gr-vocoder/examples/cvsd_audio_loopback.py
index 7f2a00dbf..f101fecb4 100755
--- a/gr-vocoder/examples/cvsd_audio_loopback.py
+++ b/gr-vocoder/examples/cvsd_audio_loopback.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2007,2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, blks2
from gnuradio import audio
@@ -27,7 +27,7 @@ from gnuradio import vocoder
def build_graph():
sample_rate = 8000
scale_factor = 32000
-
+
tb = gr.top_block()
src = audio.source(sample_rate, "plughw:0,0")
src_scale = gr.multiply_const_ff(scale_factor)
@@ -57,7 +57,7 @@ def build_graph():
tb.conect(s2f, gr.file_sink(gr.sizeof_float, "s2f.dat"))
tb.conect(decim, gr.file_sink(gr.sizeof_float, "decim.dat"))
tb.conect(sink_scale, gr.file_sink(gr.sizeof_float, "sink_scale.dat"))
-
+
return tb
if __name__ == '__main__':
diff --git a/gr-vocoder/examples/g721_audio_loopback.py b/gr-vocoder/examples/g721_audio_loopback.py
index 8b5bc8f33..339ea79ad 100755
--- a/gr-vocoder/examples/g721_audio_loopback.py
+++ b/gr-vocoder/examples/g721_audio_loopback.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
from gnuradio import audio
diff --git a/gr-vocoder/examples/g723_24_audio_loopback.py b/gr-vocoder/examples/g723_24_audio_loopback.py
index f125282dc..34d9ddd5d 100755
--- a/gr-vocoder/examples/g723_24_audio_loopback.py
+++ b/gr-vocoder/examples/g723_24_audio_loopback.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
from gnuradio import audio
diff --git a/gr-vocoder/examples/g723_40_audio_loopback.py b/gr-vocoder/examples/g723_40_audio_loopback.py
index cd2ea5ff1..c636d82d1 100755
--- a/gr-vocoder/examples/g723_40_audio_loopback.py
+++ b/gr-vocoder/examples/g723_40_audio_loopback.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
from gnuradio import audio
diff --git a/gr-vocoder/examples/gsm_audio_loopback.py b/gr-vocoder/examples/gsm_audio_loopback.py
index f4e96f471..ba0fcb847 100755
--- a/gr-vocoder/examples/gsm_audio_loopback.py
+++ b/gr-vocoder/examples/gsm_audio_loopback.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2005,2007,2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
from gnuradio import audio
diff --git a/gr-vocoder/examples/ulaw_audio_loopback.py b/gr-vocoder/examples/ulaw_audio_loopback.py
index afe0921fa..e7a96d367 100755
--- a/gr-vocoder/examples/ulaw_audio_loopback.py
+++ b/gr-vocoder/examples/ulaw_audio_loopback.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
from gnuradio import audio
diff --git a/gr-vocoder/grc/vocoder_block_tree.xml b/gr-vocoder/grc/vocoder_block_tree.xml
index 1766b4e26..ed3338d44 100644
--- a/gr-vocoder/grc/vocoder_block_tree.xml
+++ b/gr-vocoder/grc/vocoder_block_tree.xml
@@ -2,19 +2,19 @@
<!--
Copyright 2011 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,
diff --git a/gr-vocoder/include/CMakeLists.txt b/gr-vocoder/include/CMakeLists.txt
index 23099f59e..719e99355 100644
--- a/gr-vocoder/include/CMakeLists.txt
+++ b/gr-vocoder/include/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gr-vocoder/include/vocoder_alaw_decode_bs.h b/gr-vocoder/include/vocoder_alaw_decode_bs.h
index f20dfefdb..083be2100 100644
--- a/gr-vocoder/include/vocoder_alaw_decode_bs.h
+++ b/gr-vocoder/include/vocoder_alaw_decode_bs.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
@@ -33,7 +33,7 @@ typedef boost::shared_ptr<vocoder_alaw_decode_bs> vocoder_alaw_decode_bs_sptr;
VOCODER_API vocoder_alaw_decode_bs_sptr vocoder_make_alaw_decode_bs();
/*!
- * \brief This block performs alaw audio decoding.
+ * \brief This block performs alaw audio decoding.
*
* \ingroup vocoder_blk
*/
diff --git a/gr-vocoder/include/vocoder_alaw_encode_sb.h b/gr-vocoder/include/vocoder_alaw_encode_sb.h
index c00080fb7..c2609a95c 100644
--- a/gr-vocoder/include/vocoder_alaw_encode_sb.h
+++ b/gr-vocoder/include/vocoder_alaw_encode_sb.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
@@ -33,7 +33,7 @@ typedef boost::shared_ptr<vocoder_alaw_encode_sb> vocoder_alaw_encode_sb_sptr;
VOCODER_API vocoder_alaw_encode_sb_sptr vocoder_make_alaw_encode_sb();
/*!
- * \brief This block performs g.711 alaw audio encoding.
+ * \brief This block performs g.711 alaw audio encoding.
*
* \ingroup vocoder_blk
*/
diff --git a/gr-vocoder/include/vocoder_codec2_decode_ps.h b/gr-vocoder/include/vocoder_codec2_decode_ps.h
index 7e7ea2d5c..9ceef7921 100644
--- a/gr-vocoder/include/vocoder_codec2_decode_ps.h
+++ b/gr-vocoder/include/vocoder_codec2_decode_ps.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
diff --git a/gr-vocoder/include/vocoder_codec2_encode_sp.h b/gr-vocoder/include/vocoder_codec2_encode_sp.h
index 8d8588daf..c24aca1c4 100644
--- a/gr-vocoder/include/vocoder_codec2_encode_sp.h
+++ b/gr-vocoder/include/vocoder_codec2_encode_sp.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005 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,
diff --git a/gr-vocoder/include/vocoder_cvsd_decode_bs.h b/gr-vocoder/include/vocoder_cvsd_decode_bs.h
index 2ad2f096f..ebafeeb4e 100644
--- a/gr-vocoder/include/vocoder_cvsd_decode_bs.h
+++ b/gr-vocoder/include/vocoder_cvsd_decode_bs.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007,2011 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,
@@ -128,11 +128,11 @@ private:
//! \brief Rounding function specific to CVSD
//! \return the input value rounded to the nearest integer
int cvsd_round(double input);
-
+
//! \brief A power function specific to CVSD data formats
//! \return (radix)^power, where radix and power are short integers
unsigned int cvsd_pow (short radix, short power);
-
+
//! \brief Sums number of 1's in the input
//! \return the number of 1s in the four bytes of an input unsigned integer
unsigned char cvsd_bitwise_sum (unsigned int input);
diff --git a/gr-vocoder/include/vocoder_cvsd_encode_sb.h b/gr-vocoder/include/vocoder_cvsd_encode_sb.h
index b36edaf8b..876fd96de 100644
--- a/gr-vocoder/include/vocoder_cvsd_encode_sb.h
+++ b/gr-vocoder/include/vocoder_cvsd_encode_sb.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007 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,
@@ -125,16 +125,16 @@ private:
vocoder_cvsd_encode_sb(short min_step, short max_step, double step_decay,
double accum_decay, int K, int J,
short pos_accum_max, short neg_accum_max);
-
+
//! Member functions required by the encoder/decoder
//! \brief Rounding function specific to CVSD
//! \return the input value rounded to the nearest integer
int cvsd_round(double input);
-
+
//! \brief A power function specific to CVSD data formats
//! \return (radix)^power, where radix and power are short integers
unsigned int cvsd_pow (short radix, short power);
-
+
//! \brief Sums number of 1's in the input
//! \return the number of 1s in the four bytes of an input unsigned integer
unsigned char cvsd_bitwise_sum (unsigned int input);
@@ -147,7 +147,7 @@ private:
int d_K; //!< \brief Size of shift register; the number of output bits remembered in shift register
int d_J; //!< \brief Number of bits in the shift register that are equal; size of run of 1s, 0s
-
+
short d_pos_accum_max;
short d_neg_accum_max;
diff --git a/gr-vocoder/include/vocoder_g721_decode_bs.h b/gr-vocoder/include/vocoder_g721_decode_bs.h
index 1ac7b993a..61a386ffc 100644
--- a/gr-vocoder/include/vocoder_g721_decode_bs.h
+++ b/gr-vocoder/include/vocoder_g721_decode_bs.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
@@ -33,7 +33,7 @@ typedef boost::shared_ptr<vocoder_g721_decode_bs> vocoder_g721_decode_bs_sptr;
VOCODER_API vocoder_g721_decode_bs_sptr vocoder_make_g721_decode_bs();
/*!
- * \brief This block performs g721 audio decoding.
+ * \brief This block performs g721 audio decoding.
*
* \ingroup vocoder_blk
*/
diff --git a/gr-vocoder/include/vocoder_g721_encode_sb.h b/gr-vocoder/include/vocoder_g721_encode_sb.h
index a154537d0..694da92d6 100644
--- a/gr-vocoder/include/vocoder_g721_encode_sb.h
+++ b/gr-vocoder/include/vocoder_g721_encode_sb.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
@@ -33,7 +33,7 @@ typedef boost::shared_ptr<vocoder_g721_encode_sb> vocoder_g721_encode_sb_sptr;
VOCODER_API vocoder_g721_encode_sb_sptr vocoder_make_g721_encode_sb();
/*!
- * \brief This block performs g721 audio encoding.
+ * \brief This block performs g721 audio encoding.
*
* \ingroup vocoder_blk
*/
diff --git a/gr-vocoder/include/vocoder_g723_24_decode_bs.h b/gr-vocoder/include/vocoder_g723_24_decode_bs.h
index 80cdbddd4..6c0f09838 100644
--- a/gr-vocoder/include/vocoder_g723_24_decode_bs.h
+++ b/gr-vocoder/include/vocoder_g723_24_decode_bs.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
@@ -33,7 +33,7 @@ typedef boost::shared_ptr<vocoder_g723_24_decode_bs> vocoder_g723_24_decode_bs_s
VOCODER_API vocoder_g723_24_decode_bs_sptr vocoder_make_g723_24_decode_bs();
/*!
- * \brief This block performs g723_24 audio decoding.
+ * \brief This block performs g723_24 audio decoding.
*
* \ingroup vocoder_blk
*/
diff --git a/gr-vocoder/include/vocoder_g723_24_encode_sb.h b/gr-vocoder/include/vocoder_g723_24_encode_sb.h
index d290e0971..105897583 100644
--- a/gr-vocoder/include/vocoder_g723_24_encode_sb.h
+++ b/gr-vocoder/include/vocoder_g723_24_encode_sb.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
@@ -33,7 +33,7 @@ typedef boost::shared_ptr<vocoder_g723_24_encode_sb> vocoder_g723_24_encode_sb_s
VOCODER_API vocoder_g723_24_encode_sb_sptr vocoder_make_g723_24_encode_sb();
/*!
- * \brief This block performs g723_24 audio encoding.
+ * \brief This block performs g723_24 audio encoding.
*
* \ingroup vocoder_blk
*/
diff --git a/gr-vocoder/include/vocoder_g723_40_decode_bs.h b/gr-vocoder/include/vocoder_g723_40_decode_bs.h
index 87a2f6892..ce320a526 100644
--- a/gr-vocoder/include/vocoder_g723_40_decode_bs.h
+++ b/gr-vocoder/include/vocoder_g723_40_decode_bs.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
@@ -33,7 +33,7 @@ typedef boost::shared_ptr<vocoder_g723_40_decode_bs> vocoder_g723_40_decode_bs_s
VOCODER_API vocoder_g723_40_decode_bs_sptr vocoder_make_g723_40_decode_bs();
/*!
- * \brief This block performs g723_40 audio decoding.
+ * \brief This block performs g723_40 audio decoding.
*
* \ingroup vocoder_blk
*/
diff --git a/gr-vocoder/include/vocoder_g723_40_encode_sb.h b/gr-vocoder/include/vocoder_g723_40_encode_sb.h
index 6ac0f6d05..eb732e73e 100644
--- a/gr-vocoder/include/vocoder_g723_40_encode_sb.h
+++ b/gr-vocoder/include/vocoder_g723_40_encode_sb.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
@@ -33,7 +33,7 @@ typedef boost::shared_ptr<vocoder_g723_40_encode_sb> vocoder_g723_40_encode_sb_s
VOCODER_API vocoder_g723_40_encode_sb_sptr vocoder_make_g723_40_encode_sb();
/*!
- * \brief This block performs g723_40 audio encoding.
+ * \brief This block performs g723_40 audio encoding.
*
* \ingroup vocoder_blk
*/
diff --git a/gr-vocoder/include/vocoder_gsm_fr_decode_ps.h b/gr-vocoder/include/vocoder_gsm_fr_decode_ps.h
index 748ff5f0f..3af249436 100644
--- a/gr-vocoder/include/vocoder_gsm_fr_decode_ps.h
+++ b/gr-vocoder/include/vocoder_gsm_fr_decode_ps.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2011 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,
diff --git a/gr-vocoder/include/vocoder_gsm_fr_encode_sp.h b/gr-vocoder/include/vocoder_gsm_fr_encode_sp.h
index 18f78f525..2b65b5b44 100644
--- a/gr-vocoder/include/vocoder_gsm_fr_encode_sp.h
+++ b/gr-vocoder/include/vocoder_gsm_fr_encode_sp.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2011 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,
diff --git a/gr-vocoder/include/vocoder_ulaw_decode_bs.h b/gr-vocoder/include/vocoder_ulaw_decode_bs.h
index f69358168..e25e9cdcf 100644
--- a/gr-vocoder/include/vocoder_ulaw_decode_bs.h
+++ b/gr-vocoder/include/vocoder_ulaw_decode_bs.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
@@ -33,7 +33,7 @@ typedef boost::shared_ptr<vocoder_ulaw_decode_bs> vocoder_ulaw_decode_bs_sptr;
VOCODER_API vocoder_ulaw_decode_bs_sptr vocoder_make_ulaw_decode_bs();
/*!
- * \brief This block performs ulaw audio decoding.
+ * \brief This block performs ulaw audio decoding.
*
* \ingroup vocoder_blk
*/
diff --git a/gr-vocoder/include/vocoder_ulaw_encode_sb.h b/gr-vocoder/include/vocoder_ulaw_encode_sb.h
index a1c2af05b..702017d42 100644
--- a/gr-vocoder/include/vocoder_ulaw_encode_sb.h
+++ b/gr-vocoder/include/vocoder_ulaw_encode_sb.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
@@ -33,7 +33,7 @@ typedef boost::shared_ptr<vocoder_ulaw_encode_sb> vocoder_ulaw_encode_sb_sptr;
VOCODER_API vocoder_ulaw_encode_sb_sptr vocoder_make_ulaw_encode_sb();
/*!
- * \brief This block performs g.711 ulaw audio encoding.
+ * \brief This block performs g.711 ulaw audio encoding.
*
* \ingroup vocoder_blk
*/
diff --git a/gr-vocoder/lib/codec2/CMakeLists.txt b/gr-vocoder/lib/codec2/CMakeLists.txt
index c9839bd96..95e9d256b 100644
--- a/gr-vocoder/lib/codec2/CMakeLists.txt
+++ b/gr-vocoder/lib/codec2/CMakeLists.txt
@@ -80,7 +80,7 @@ set(CODEBOOKSDVQ
${CMAKE_CURRENT_SOURCE_DIR}/codebook/dlsp2.txt
${CMAKE_CURRENT_SOURCE_DIR}/codebook/dlsp3.txt
${CMAKE_CURRENT_SOURCE_DIR}/codebook/dlsp4.txt
- ${CMAKE_CURRENT_SOURCE_DIR}/codebook/dlsp5.txt
+ ${CMAKE_CURRENT_SOURCE_DIR}/codebook/dlsp5.txt
)
add_custom_command(
diff --git a/gr-vocoder/lib/codec2/_kiss_fft_guts.h b/gr-vocoder/lib/codec2/_kiss_fft_guts.h
index ba6614440..f008a7b50 100644
--- a/gr-vocoder/lib/codec2/_kiss_fft_guts.h
+++ b/gr-vocoder/lib/codec2/_kiss_fft_guts.h
@@ -20,7 +20,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
#include <limits.h>
#define MAXFACTORS 32
-/* e.g. an fft of length 128 has 4 factors
+/* e.g. an fft of length 128 has 4 factors
as far as kissfft is concerned
4*4*4*2
*/
@@ -48,7 +48,7 @@ struct kiss_fft_state{
#define SAMP_MAX 2147483647
#else
# define FRACBITS 15
-# define SAMPPROD int32_t
+# define SAMPPROD int32_t
#define SAMP_MAX 32767
#endif
@@ -152,12 +152,12 @@ struct kiss_fft_state{
#ifdef KISS_FFT_USE_ALLOCA
// define this to allow use of alloca instead of malloc for temporary buffers
-// Temporary buffers are used in two case:
+// Temporary buffers are used in two case:
// 1. FFT sizes that have "bad" factors. i.e. not 2,3 and 5
// 2. "in-place" FFTs. Notice the quotes, since kissfft does not really do an in-place transform.
#include <alloca.h>
#define KISS_FFT_TMP_ALLOC(nbytes) alloca(nbytes)
-#define KISS_FFT_TMP_FREE(ptr)
+#define KISS_FFT_TMP_FREE(ptr)
#else
#define KISS_FFT_TMP_ALLOC(nbytes) KISS_FFT_MALLOC(nbytes)
#define KISS_FFT_TMP_FREE(ptr) KISS_FFT_FREE(ptr)
diff --git a/gr-vocoder/lib/codec2/c2dec.c b/gr-vocoder/lib/codec2/c2dec.c
index b866d04d6..3123e96fb 100644
--- a/gr-vocoder/lib/codec2/c2dec.c
+++ b/gr-vocoder/lib/codec2/c2dec.c
@@ -70,7 +70,7 @@ int main(int argc, char *argv[])
//buffering to occur
if (fout == stdout) fflush(stdout);
if (fin == stdin) fflush(stdin);
-
+
}
codec2_destroy(codec2);
diff --git a/gr-vocoder/lib/codec2/c2demo.c b/gr-vocoder/lib/codec2/c2demo.c
index efa8d6449..b9e17a78e 100644
--- a/gr-vocoder/lib/codec2/c2demo.c
+++ b/gr-vocoder/lib/codec2/c2demo.c
@@ -52,7 +52,7 @@ int main(int argc, char *argv[])
printf("usage: %s InputRawSpeechFile OutputRawSpeechFile\n", argv[0]);
exit(1);
}
-
+
if ( (fin = fopen(argv[1],"rb")) == NULL ) {
fprintf(stderr, "Error opening input speech file: %s: %s.\n",
argv[1], strerror(errno));
@@ -70,7 +70,7 @@ int main(int argc, char *argv[])
codec2 = codec2_create();
- while(fread(buf, sizeof(short), CODEC2_SAMPLES_PER_FRAME, fin) ==
+ while(fread(buf, sizeof(short), CODEC2_SAMPLES_PER_FRAME, fin) ==
CODEC2_SAMPLES_PER_FRAME) {
codec2_encode(codec2, bits, buf);
codec2_decode(codec2, buf, bits);
diff --git a/gr-vocoder/lib/codec2/c2enc.c b/gr-vocoder/lib/codec2/c2enc.c
index 4d1d019df..0e5b26cfd 100644
--- a/gr-vocoder/lib/codec2/c2enc.c
+++ b/gr-vocoder/lib/codec2/c2enc.c
@@ -47,7 +47,7 @@ int main(int argc, char *argv[])
printf("usage: %s InputRawspeechFile OutputBitFile\n", argv[0]);
exit(1);
}
-
+
if (strcmp(argv[1], "-") == 0) fin = stdin;
else if ( (fin = fopen(argv[1],"rb")) == NULL ) {
fprintf(stderr, "Error opening input bit file: %s: %s.\n",
diff --git a/gr-vocoder/lib/codec2/c2sim.c b/gr-vocoder/lib/codec2/c2sim.c
index bb49c7899..e335078b6 100644
--- a/gr-vocoder/lib/codec2/c2sim.c
+++ b/gr-vocoder/lib/codec2/c2sim.c
@@ -4,8 +4,8 @@
AUTHOR......: David Rowe
DATE CREATED: 20/8/2010
- Codec2 simulation. Combines encoder and decoder and allows switching in
- out various algorithms and quantisation steps.
+ Codec2 simulation. Combines encoder and decoder and allows switching in
+ out various algorithms and quantisation steps.
\*---------------------------------------------------------------------------*/
@@ -45,13 +45,13 @@
#include "interp.h"
/*---------------------------------------------------------------------------*\
-
- switch_present()
-
- Searches the command line arguments for a "switch". If the switch is
- found, returns the command line argument where it ws found, else returns
- NULL.
-
+
+ switch_present()
+
+ Searches the command line arguments for a "switch". If the switch is
+ found, returns the command line argument where it ws found, else returns
+ NULL.
+
\*---------------------------------------------------------------------------*/
int switch_present(sw,argc,argv)
@@ -71,9 +71,9 @@ register char *argv[]; /* array of command line arguments in string form */
void synth_one_frame(short buf[], MODEL *model, float Sn_[], float Pn[]);
/*---------------------------------------------------------------------------*\
-
- MAIN
-
+
+ MAIN
+
\*---------------------------------------------------------------------------*/
int main(int argc, char *argv[])
@@ -103,10 +103,10 @@ int main(int argc, char *argv[])
int lsp, lspd, lspdvq, lsp_quantiser;
float ak[LPC_MAX];
COMP Sw_[FFT_ENC];
- COMP Ew[FFT_ENC];
-
+ COMP Ew[FFT_ENC];
+
int dump;
-
+
int phase0;
float ex_phase[MAX_AMP+1];
@@ -129,7 +129,7 @@ int main(int argc, char *argv[])
float AresdB_prev[MAX_AMP];
for(i=0; i<MAX_AMP; i++)
- AresdB_prev[i] = 0.0;
+ AresdB_prev[i] = 0.0;
for(i=0; i<M; i++)
Sn[i] = 1.0;
@@ -201,12 +201,12 @@ int main(int argc, char *argv[])
if ((order < 4) || (order > 20)) {
fprintf(stderr, "Error in lpc order: %d\n", order);
exit(1);
- }
+ }
}
dump = switch_present("--dump",argc,argv);
#ifdef DUMP
- if (dump)
+ if (dump)
dump_on(argv[dump+1]);
#endif
@@ -264,7 +264,7 @@ int main(int argc, char *argv[])
//Sn[i+M-N] = hpf((float)buf[i], hpf_states);
Sn[i+M-N] = (float)buf[i];
}
-
+
/* Estimate pitch */
nlp(nlp_states,Sn,N,M,P_MIN,P_MAX,&pitch,Sw,&prev_Wo);
@@ -272,10 +272,10 @@ int main(int argc, char *argv[])
/* estimate model parameters */
- dft_speech(Sw, Sn, w);
+ dft_speech(Sw, Sn, w);
two_stage_pitch_refinement(&model, Sw);
estimate_amplitudes(&model, Sw, W);
-#ifdef DUMP
+#ifdef DUMP
dump_Sn(Sn); dump_Sw(Sw); dump_model(&model);
#endif
@@ -284,7 +284,7 @@ int main(int argc, char *argv[])
if (phase0) {
float Wn[M]; /* windowed speech samples */
float Rk[LPC_MAX+1]; /* autocorrelation coeffs */
-
+
#ifdef DUMP
dump_phase(&model.phi[0], model.L);
#endif
@@ -299,7 +299,7 @@ int main(int argc, char *argv[])
#ifdef DUMP
dump_ak(ak, LPC_ORD);
#endif
-
+
/* determine voicing */
snr = est_voicing_mbe(&model, Sw, W, Sw_, Ew, prev_Wo);
@@ -313,7 +313,7 @@ int main(int argc, char *argv[])
for(i=0; i<MAX_AMP; i++)
model.phi[i] = 0;
-
+
if (hand_voicing) {
fscanf(fvoicing,"%d\n",&model.voiced);
}
@@ -350,7 +350,7 @@ int main(int argc, char *argv[])
e = decode_energy(encode_energy(e));
model.Wo = decode_Wo(encode_Wo(model.Wo));
- aks_to_M2(ak, order, &model, e, &snr, 1);
+ aks_to_M2(ak, order, &model, e, &snr, 1);
apply_lpc_correction(&model);
sum_snr += snr;
#ifdef DUMP
@@ -371,7 +371,7 @@ int main(int argc, char *argv[])
/* option decimation to 20ms rate, which enables interpolation
routine to synthesise in between frame */
-
+
if (decimate) {
if (!phase0) {
printf("needs --phase0 to resample phase for interpolated Wo\n");
@@ -395,17 +395,17 @@ int main(int argc, char *argv[])
prev_lsps, prev_e, lsps, e, ak_interp);
apply_lpc_correction(&interp_model);
#endif
-
+
if (phase0)
phase_synth_zero_order(&interp_model, ak_interp, ex_phase,
- order);
+ order);
if (postfilt)
postfilter(&interp_model, &bg_est);
synth_one_frame(buf, &interp_model, Sn_, Pn);
if (fout != NULL) fwrite(buf,sizeof(short),N,fout);
if (phase0)
- phase_synth_zero_order(&model, ak, ex_phase, order);
+ phase_synth_zero_order(&model, ak, ex_phase, order);
if (postfilt)
postfilter(&model, &bg_est);
synth_one_frame(buf, &model, Sn_, Pn);
@@ -422,7 +422,7 @@ int main(int argc, char *argv[])
}
else {
if (phase0)
- phase_synth_zero_order(&model, ak, ex_phase, order);
+ phase_synth_zero_order(&model, ak, ex_phase, order);
if (postfilt)
postfilter(&model, &bg_est);
synth_one_frame(buf, &model, Sn_, Pn);
diff --git a/gr-vocoder/lib/codec2/codebook/lsp8910.txt b/gr-vocoder/lib/codec2/codebook/lsp8910.txt
index 93cfdd81d..759136bfe 100644
--- a/gr-vocoder/lib/codec2/codebook/lsp8910.txt
+++ b/gr-vocoder/lib/codec2/codebook/lsp8910.txt
@@ -1,65 +1,65 @@
3 64
-2.048073 2.534502 2.645915
-2.019670 2.269744 2.605462
-1.961101 2.329646 2.562857
-1.968573 2.532712 2.616918
-2.183480 2.514381 2.629582
-2.259379 2.516615 2.620410
-2.172791 2.462460 2.567064
-2.097666 2.303933 2.421685
-2.052990 2.353242 2.546992
-2.043642 2.232362 2.499262
-2.106151 2.393131 2.488401
-2.099167 2.437862 2.558655
-2.013877 2.422875 2.530071
-2.033848 2.483776 2.584598
-2.114474 2.516856 2.602372
-2.229214 2.584056 2.678855
-2.131151 2.584299 2.674845
-1.472721 2.477091 2.630241
-2.010907 2.598415 2.682989
-2.353653 2.524066 2.619773
-2.419897 2.623938 2.699605
-2.319080 2.602148 2.689044
-1.860342 2.503881 2.616576
-1.910517 2.386693 2.610126
-1.748689 2.371809 2.496542
-1.618495 2.403425 2.554956
-1.844073 2.437026 2.533443
-1.924810 2.388543 2.502698
-1.937227 2.258363 2.501697
-1.687554 2.209123 2.545239
-1.851950 2.278628 2.565632
-1.868154 2.330150 2.444883
-1.874180 2.213118 2.351940
-1.757311 2.030626 2.433836
-1.650306 2.152371 2.243421
-1.612794 1.884686 2.339313
-1.745431 2.278895 2.389449
-1.590923 2.304155 2.408510
-1.475982 2.275548 2.509897
-1.508695 2.045463 2.455520
-1.872054 2.061777 2.246202
-1.983947 2.159155 2.445535
-1.745180 2.483765 2.593698
-1.900116 2.079600 2.407479
-1.841672 2.167042 2.486827
-1.932912 2.148464 2.569850
-2.134174 2.363673 2.584252
-2.106094 2.450645 2.638417
-1.954135 2.460313 2.666512
-1.907634 2.573801 2.674025
-1.625579 2.539569 2.656363
-1.785866 2.572616 2.676082
-1.798447 2.376454 2.624298
-2.020033 2.397244 2.619868
-1.946581 2.468791 2.564185
-2.008920 2.342400 2.469132
-1.983846 2.271044 2.395408
-1.988039 2.154150 2.317920
-2.077197 2.216622 2.389101
-2.117255 2.283907 2.512242
-2.177233 2.334622 2.458268
-2.214655 2.425510 2.620013
-2.199931 2.390272 2.520731
-2.271755 2.448682 2.552649
+2.048073 2.534502 2.645915
+2.019670 2.269744 2.605462
+1.961101 2.329646 2.562857
+1.968573 2.532712 2.616918
+2.183480 2.514381 2.629582
+2.259379 2.516615 2.620410
+2.172791 2.462460 2.567064
+2.097666 2.303933 2.421685
+2.052990 2.353242 2.546992
+2.043642 2.232362 2.499262
+2.106151 2.393131 2.488401
+2.099167 2.437862 2.558655
+2.013877 2.422875 2.530071
+2.033848 2.483776 2.584598
+2.114474 2.516856 2.602372
+2.229214 2.584056 2.678855
+2.131151 2.584299 2.674845
+1.472721 2.477091 2.630241
+2.010907 2.598415 2.682989
+2.353653 2.524066 2.619773
+2.419897 2.623938 2.699605
+2.319080 2.602148 2.689044
+1.860342 2.503881 2.616576
+1.910517 2.386693 2.610126
+1.748689 2.371809 2.496542
+1.618495 2.403425 2.554956
+1.844073 2.437026 2.533443
+1.924810 2.388543 2.502698
+1.937227 2.258363 2.501697
+1.687554 2.209123 2.545239
+1.851950 2.278628 2.565632
+1.868154 2.330150 2.444883
+1.874180 2.213118 2.351940
+1.757311 2.030626 2.433836
+1.650306 2.152371 2.243421
+1.612794 1.884686 2.339313
+1.745431 2.278895 2.389449
+1.590923 2.304155 2.408510
+1.475982 2.275548 2.509897
+1.508695 2.045463 2.455520
+1.872054 2.061777 2.246202
+1.983947 2.159155 2.445535
+1.745180 2.483765 2.593698
+1.900116 2.079600 2.407479
+1.841672 2.167042 2.486827
+1.932912 2.148464 2.569850
+2.134174 2.363673 2.584252
+2.106094 2.450645 2.638417
+1.954135 2.460313 2.666512
+1.907634 2.573801 2.674025
+1.625579 2.539569 2.656363
+1.785866 2.572616 2.676082
+1.798447 2.376454 2.624298
+2.020033 2.397244 2.619868
+1.946581 2.468791 2.564185
+2.008920 2.342400 2.469132
+1.983846 2.271044 2.395408
+1.988039 2.154150 2.317920
+2.077197 2.216622 2.389101
+2.117255 2.283907 2.512242
+2.177233 2.334622 2.458268
+2.214655 2.425510 2.620013
+2.199931 2.390272 2.520731
+2.271755 2.448682 2.552649
diff --git a/gr-vocoder/lib/codec2/codec2.c b/gr-vocoder/lib/codec2/codec2.c
index 92708ee32..93ea9208c 100644
--- a/gr-vocoder/lib/codec2/codec2.c
+++ b/gr-vocoder/lib/codec2/codec2.c
@@ -4,7 +4,7 @@
AUTHOR......: David Rowe
DATE CREATED: 21/8/2010
- Codec2 fully quantised encoder and decoder functions. If you want use
+ Codec2 fully quantised encoder and decoder functions. If you want use
codec2, the codec2_xxx functions are for you.
\*---------------------------------------------------------------------------*/
@@ -45,16 +45,16 @@
#include "codec2_internal.h"
/*---------------------------------------------------------------------------*\
-
+
FUNCTIONS
\*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*\
-
- FUNCTION....: codec2_create
- AUTHOR......: David Rowe
- DATE CREATED: 21/8/2010
+
+ FUNCTION....: codec2_create
+ AUTHOR......: David Rowe
+ DATE CREATED: 21/8/2010
Create and initialise an instance of the codec. Returns a pointer
to the codec states or NULL on failure. One set of states is
@@ -106,10 +106,10 @@ void *codec2_create()
}
/*---------------------------------------------------------------------------*\
-
- FUNCTION....: codec2_create
- AUTHOR......: David Rowe
- DATE CREATED: 21/8/2010
+
+ FUNCTION....: codec2_create
+ AUTHOR......: David Rowe
+ DATE CREATED: 21/8/2010
Destroy an instance of the codec.
@@ -118,7 +118,7 @@ void *codec2_create()
void codec2_destroy(void *codec2_state)
{
CODEC2 *c2;
-
+
assert(codec2_state != NULL);
c2 = (CODEC2*)codec2_state;
nlp_destroy(c2->nlp);
@@ -126,12 +126,12 @@ void codec2_destroy(void *codec2_state)
}
/*---------------------------------------------------------------------------*\
-
- FUNCTION....: codec2_encode
- AUTHOR......: David Rowe
- DATE CREATED: 21/8/2010
- Encodes 160 speech samples (20ms of speech) into 51 bits.
+ FUNCTION....: codec2_encode
+ AUTHOR......: David Rowe
+ DATE CREATED: 21/8/2010
+
+ Encodes 160 speech samples (20ms of speech) into 51 bits.
The codec2 algorithm actually operates internally on 10ms (80
sample) frames, so we run the encoding algorithm twice. On the
@@ -148,7 +148,7 @@ void codec2_destroy(void *codec2_state)
Wo (fundamental frequnecy) 7
Voicing (10ms update) 2
TOTAL 51
-
+
\*---------------------------------------------------------------------------*/
void codec2_encode(void *codec2_state, unsigned char * bits, short speech[])
@@ -174,13 +174,13 @@ void codec2_encode(void *codec2_state, unsigned char * bits, short speech[])
analyse_one_frame(c2, &model, &speech[N]);
voiced2 = model.voiced;
-
+
Wo_index = encode_Wo(model.Wo);
- encode_amplitudes(lsp_indexes,
+ encode_amplitudes(lsp_indexes,
&energy_index,
- &model,
- c2->Sn,
- c2->w);
+ &model,
+ c2->Sn,
+ c2->w);
memset(bits, '\0', ((CODEC2_BITS_PER_FRAME + 7) / 8));
pack(bits, &nbit, Wo_index, WO_BITS);
for(i=0; i<LPC_ORD; i++) {
@@ -189,15 +189,15 @@ void codec2_encode(void *codec2_state, unsigned char * bits, short speech[])
pack(bits, &nbit, energy_index, E_BITS);
pack(bits, &nbit, voiced1, 1);
pack(bits, &nbit, voiced2, 1);
-
+
assert(nbit == CODEC2_BITS_PER_FRAME);
}
/*---------------------------------------------------------------------------*\
-
- FUNCTION....: codec2_decode
- AUTHOR......: David Rowe
- DATE CREATED: 21/8/2010
+
+ FUNCTION....: codec2_decode
+ AUTHOR......: David Rowe
+ DATE CREATED: 21/8/2010
Decodes frames of 51 bits into 160 samples (20ms) of speech.
@@ -239,7 +239,7 @@ void codec2_decode(void *codec2_state, short speech[],
model.Wo = decode_Wo(Wo_index);
model.L = PI/model.Wo;
memset(&model.A, 0, (model.L+1)*sizeof(model.A[0]));
- decode_amplitudes(&model,
+ decode_amplitudes(&model,
ak,
lsp_indexes,
energy_index,
@@ -270,10 +270,10 @@ void codec2_decode(void *codec2_state, short speech[],
}
/*---------------------------------------------------------------------------*\
-
- FUNCTION....: synthesise_one_frame()
- AUTHOR......: David Rowe
- DATE CREATED: 23/8/2010
+
+ FUNCTION....: synthesise_one_frame()
+ AUTHOR......: David Rowe
+ DATE CREATED: 23/8/2010
Synthesise 80 speech samples (10ms) from model parameters.
@@ -299,14 +299,14 @@ void synthesise_one_frame(CODEC2 *c2, short speech[], MODEL *model, float ak[])
}
/*---------------------------------------------------------------------------*\
-
- FUNCTION....: analyse_one_frame()
- AUTHOR......: David Rowe
- DATE CREATED: 23/8/2010
+
+ FUNCTION....: analyse_one_frame()
+ AUTHOR......: David Rowe
+ DATE CREATED: 23/8/2010
Extract sinusoidal model parameters from 80 speech samples (10ms of
speech).
-
+
\*---------------------------------------------------------------------------*/
void analyse_one_frame(CODEC2 *c2, MODEL *model, short speech[])
diff --git a/gr-vocoder/lib/codec2/codec2.h b/gr-vocoder/lib/codec2/codec2.h
index 946dedca5..88e68814f 100644
--- a/gr-vocoder/lib/codec2/codec2.h
+++ b/gr-vocoder/lib/codec2/codec2.h
@@ -4,7 +4,7 @@
AUTHOR......: David Rowe
DATE CREATED: 21/8/2010
- Codec2 fully quantised encoder and decoder functions. If you want use
+ Codec2 fully quantised encoder and decoder functions. If you want use
codec2, these are the functions you need to call.
\*---------------------------------------------------------------------------*/
diff --git a/gr-vocoder/lib/codec2/codec2_internal.h b/gr-vocoder/lib/codec2/codec2_internal.h
index 3943ac29d..3aa5300b1 100644
--- a/gr-vocoder/lib/codec2/codec2_internal.h
+++ b/gr-vocoder/lib/codec2/codec2_internal.h
@@ -30,7 +30,7 @@
#define __CODEC2_INTERNAL__
/*---------------------------------------------------------------------------*\
-
+
STATES
\*---------------------------------------------------------------------------*/
@@ -52,7 +52,7 @@ typedef struct {
} CODEC2;
/*---------------------------------------------------------------------------*\
-
+
FUNCTION HEADERS
\*---------------------------------------------------------------------------*/
diff --git a/gr-vocoder/lib/codec2/comp.h b/gr-vocoder/lib/codec2/comp.h
index cedcab37f..ffc20c163 100644
--- a/gr-vocoder/lib/codec2/comp.h
+++ b/gr-vocoder/lib/codec2/comp.h
@@ -1,11 +1,11 @@
/*---------------------------------------------------------------------------*\
-
+
FILE........: comp.h
- AUTHOR......: David Rowe
+ AUTHOR......: David Rowe
DATE CREATED: 24/08/09
-
+
Complex number definition.
-
+
\*---------------------------------------------------------------------------*/
/*
diff --git a/gr-vocoder/lib/codec2/defines.h b/gr-vocoder/lib/codec2/defines.h
index 2dcd527d3..75064fae1 100644
--- a/gr-vocoder/lib/codec2/defines.h
+++ b/gr-vocoder/lib/codec2/defines.h
@@ -1,11 +1,11 @@
/*---------------------------------------------------------------------------*\
- FILE........: defines.h
- AUTHOR......: David Rowe
- DATE CREATED: 23/4/93
-
- Defines and structures used throughout the codec.
-
+ FILE........: defines.h
+ AUTHOR......: David Rowe
+ DATE CREATED: 23/4/93
+
+ Defines and structures used throughout the codec.
+
\*---------------------------------------------------------------------------*/
/*
@@ -29,9 +29,9 @@
#define __DEFINES__
/*---------------------------------------------------------------------------*\
-
- DEFINES
-
+
+ DEFINES
+
\*---------------------------------------------------------------------------*/
/* General defines */
@@ -58,9 +58,9 @@
#define P_MAX 160 /* maximum pitch */
/*---------------------------------------------------------------------------*\
-
- TYPEDEFS
-
+
+ TYPEDEFS
+
\*---------------------------------------------------------------------------*/
/* Structure to hold model parameters for one frame */
diff --git a/gr-vocoder/lib/codec2/dump.c b/gr-vocoder/lib/codec2/dump.c
index 73a378e23..1dc34c858 100644
--- a/gr-vocoder/lib/codec2/dump.c
+++ b/gr-vocoder/lib/codec2/dump.c
@@ -1,9 +1,9 @@
/*---------------------------------------------------------------------------*\
-
+
FILE........: dump.c
- AUTHOR......: David Rowe
- DATE CREATED: 25/8/09
-
+ AUTHOR......: David Rowe
+ DATE CREATED: 25/8/09
+
Routines to dump data to text files for Octave analysis.
\*---------------------------------------------------------------------------*/
@@ -123,10 +123,10 @@ void dump_Sn(float Sn[]) {
for(i=0; i<M/2; i++)
fprintf(fsn,"%f\t",Sn[i]);
- fprintf(fsn,"\n");
+ fprintf(fsn,"\n");
for(i=M/2; i<M; i++)
fprintf(fsn,"%f\t",Sn[i]);
- fprintf(fsn,"\n");
+ fprintf(fsn,"\n");
}
void dump_Sw(COMP Sw[]) {
@@ -144,7 +144,7 @@ void dump_Sw(COMP Sw[]) {
for(i=0; i<FFT_ENC/2; i++)
fprintf(fsw,"%f\t",
10.0*log10(Sw[i].real*Sw[i].real + Sw[i].imag*Sw[i].imag));
- fprintf(fsw,"\n");
+ fprintf(fsw,"\n");
}
void dump_Sw_(COMP Sw_[]) {
@@ -162,7 +162,7 @@ void dump_Sw_(COMP Sw_[]) {
for(i=0; i<FFT_ENC/2; i++)
fprintf(fsw_,"%f\t",
10.0*log10(Sw_[i].real*Sw_[i].real + Sw_[i].imag*Sw_[i].imag));
- fprintf(fsw_,"\n");
+ fprintf(fsw_,"\n");
}
void dump_Ew(COMP Ew[]) {
@@ -180,7 +180,7 @@ void dump_Ew(COMP Ew[]) {
for(i=0; i<FFT_ENC/2; i++)
fprintf(few,"%f\t",
10.0*log10(Ew[i].real*Ew[i].real + Ew[i].imag*Ew[i].imag));
- fprintf(few,"\n");
+ fprintf(few,"\n");
}
void dump_model(MODEL *model) {
@@ -195,13 +195,13 @@ void dump_model(MODEL *model) {
assert(fmodel != NULL);
}
- fprintf(fmodel,"%f\t%d\t", model->Wo, model->L);
+ fprintf(fmodel,"%f\t%d\t", model->Wo, model->L);
for(l=1; l<=model->L; l++)
fprintf(fmodel,"%f\t",model->A[l]);
for(l=model->L+1; l<MAX_AMP; l++)
fprintf(fmodel,"0.0\t");
fprintf(fmodel,"%d\t",model->voiced);
- fprintf(fmodel,"\n");
+ fprintf(fmodel,"\n");
}
void dump_quantised_model(MODEL *model) {
@@ -216,12 +216,12 @@ void dump_quantised_model(MODEL *model) {
assert(fqmodel != NULL);
}
- fprintf(fqmodel,"%f\t%d\t", model->Wo, model->L);
+ fprintf(fqmodel,"%f\t%d\t", model->Wo, model->L);
for(l=1; l<=model->L; l++)
fprintf(fqmodel,"%f\t",model->A[l]);
for(l=model->L+1; l<MAX_AMP; l++)
fprintf(fqmodel,"0.0\t");
- fprintf(fqmodel,"\n");
+ fprintf(fqmodel,"\n");
}
void dump_resample(float w[], float A[], int n) {
@@ -241,7 +241,7 @@ void dump_resample(float w[], float A[], int n) {
fprintf(fres,"%f\t",w[l]);
for(l=0; l<n; l++)
fprintf(fres,"%f\t",A[l]);
- fprintf(fres,"\n");
+ fprintf(fres,"\n");
}
void dump_phase(float phase[], int L) {
@@ -260,7 +260,7 @@ void dump_phase(float phase[], int L) {
fprintf(fphase,"%f\t",phase[l]);
for(l=L+1; l<MAX_AMP; l++)
fprintf(fphase,"%f\t",0.0);
- fprintf(fphase,"\n");
+ fprintf(fphase,"\n");
}
void dump_phase_(float phase_[], int L) {
@@ -279,7 +279,7 @@ void dump_phase_(float phase_[], int L) {
fprintf(fphase_,"%f\t",phase_[l]);
for(l=L+1; l<MAX_AMP; l++)
fprintf(fphase_,"%f\t",0.0);
- fprintf(fphase_,"\n");
+ fprintf(fphase_,"\n");
}
void dump_snr(float snr) {
@@ -310,7 +310,7 @@ void dump_Pw(COMP Pw[]) {
for(i=0; i<FFT_DEC/2; i++)
fprintf(fpw,"%f\t",Pw[i].real);
- fprintf(fpw,"\n");
+ fprintf(fpw,"\n");
}
void dump_lsp(float lsp[]) {
@@ -327,7 +327,7 @@ void dump_lsp(float lsp[]) {
for(i=0; i<10; i++)
fprintf(flsp,"%f\t",lsp[i]);
- fprintf(flsp,"\n");
+ fprintf(flsp,"\n");
}
void dump_ak(float ak[], int order) {
@@ -344,7 +344,7 @@ void dump_ak(float ak[], int order) {
for(i=0; i<=order; i++)
fprintf(fak,"%f\t",ak[i]);
- fprintf(fak,"\n");
+ fprintf(fak,"\n");
}
void dump_Fw(COMP Fw[]) {
@@ -361,7 +361,7 @@ void dump_Fw(COMP Fw[]) {
for(i=0; i<256; i++)
fprintf(ffw,"%f\t",Fw[i].real);
- fprintf(ffw,"\n");
+ fprintf(ffw,"\n");
}
void dump_e(float e_hz[]) {
@@ -378,10 +378,10 @@ void dump_e(float e_hz[]) {
for(i=0; i<500/2; i++)
fprintf(fe,"%f\t",e_hz[i]);
- fprintf(fe,"\n");
+ fprintf(fe,"\n");
for(i=500/2; i<500; i++)
fprintf(fe,"%f\t",e_hz[i]);
- fprintf(fe,"\n");
+ fprintf(fe,"\n");
}
void dump_sq(float sq[]) {
@@ -398,10 +398,10 @@ void dump_sq(float sq[]) {
for(i=0; i<M/2; i++)
fprintf(fsq,"%f\t",sq[i]);
- fprintf(fsq,"\n");
+ fprintf(fsq,"\n");
for(i=M/2; i<M; i++)
fprintf(fsq,"%f\t",sq[i]);
- fprintf(fsq,"\n");
+ fprintf(fsq,"\n");
}
void dump_dec(COMP Fw[]) {
@@ -418,7 +418,7 @@ void dump_dec(COMP Fw[]) {
for(i=0; i<320/5; i++)
fprintf(fdec,"%f\t",Fw[i].real);
- fprintf(fdec,"\n");
+ fprintf(fdec,"\n");
}
void dump_bg(float e, float bg_est, float percent_uv) {
@@ -432,7 +432,7 @@ void dump_bg(float e, float bg_est, float percent_uv) {
assert(fbg != NULL);
}
- fprintf(fbg,"%f\t%f\t%f\n", e, bg_est, percent_uv);
+ fprintf(fbg,"%f\t%f\t%f\n", e, bg_est, percent_uv);
}
void dump_E(float E) {
@@ -463,7 +463,7 @@ void dump_Rk(float Rk[]) {
for(i=0; i<P_MAX; i++)
fprintf(frk,"%f\t",Rk[i]);
- fprintf(frk,"\n");
+ fprintf(frk,"\n");
}
#endif
diff --git a/gr-vocoder/lib/codec2/dump.h b/gr-vocoder/lib/codec2/dump.h
index eeddd3406..4b92d009d 100644
--- a/gr-vocoder/lib/codec2/dump.h
+++ b/gr-vocoder/lib/codec2/dump.h
@@ -1,9 +1,9 @@
/*---------------------------------------------------------------------------*\
-
+
FILE........: dump.h
- AUTHOR......: David Rowe
- DATE CREATED: 25/8/09
-
+ AUTHOR......: David Rowe
+ DATE CREATED: 25/8/09
+
Routines to dump data to text files for Octave analysis.
\*---------------------------------------------------------------------------*/
diff --git a/gr-vocoder/lib/codec2/fft.c b/gr-vocoder/lib/codec2/fft.c
index a3027e4cd..19f3141a8 100644
--- a/gr-vocoder/lib/codec2/fft.c
+++ b/gr-vocoder/lib/codec2/fft.c
@@ -1,11 +1,11 @@
/*---------------------------------------------------------------------------*\
-
- FILE........: fft.c
- AUTHOR......: Bruce Robertson
- DATE CREATED: 20/11/2010
-
- Bridging function to the kiss_fft package.
-
+
+ FILE........: fft.c
+ AUTHOR......: Bruce Robertson
+ DATE CREATED: 20/11/2010
+
+ Bridging function to the kiss_fft package.
+
\*---------------------------------------------------------------------------*/
/*
@@ -29,9 +29,9 @@
#include "kiss_fft.h"
/*---------------------------------------------------------------------------*\
-
- GLOBALS
-
+
+ GLOBALS
+
\*---------------------------------------------------------------------------*/
kiss_fft_cpx *fin;
@@ -40,10 +40,10 @@ kiss_fft_cfg cfg_forward;
kiss_fft_cfg cfg_reverse;
/*---------------------------------------------------------------------------*\
-
- initialize_fft(int n)
-
- Initialisation function for kiss_fft. This assumes that all calls to fft()
+
+ initialize_fft(int n)
+
+ Initialisation function for kiss_fft. This assumes that all calls to fft()
use the same datatypes and are one arrays of the same size.
\*---------------------------------------------------------------------------*/
@@ -62,8 +62,8 @@ initialize_fft (int n)
}
/*---------------------------------------------------------------------------*\
-
- fft(float x[], int n, int isign)
+
+ fft(float x[], int n, int isign)
Function that calls kiss_fft with the signature of four1 from NRC.
\*---------------------------------------------------------------------------*/
diff --git a/gr-vocoder/lib/codec2/fft.h b/gr-vocoder/lib/codec2/fft.h
index 84c6737bd..d5f83045e 100644
--- a/gr-vocoder/lib/codec2/fft.h
+++ b/gr-vocoder/lib/codec2/fft.h
@@ -1,5 +1,5 @@
/*---------------------------------------------------------------------------*\
-
+
FILE........: fft.h
AUTHOR......: Bruce Robertson
DATE CREATED: 29/11/2010
diff --git a/gr-vocoder/lib/codec2/fq20.sh b/gr-vocoder/lib/codec2/fq20.sh
index b83784b43..9ccf739dc 100755
--- a/gr-vocoder/lib/codec2/fq20.sh
+++ b/gr-vocoder/lib/codec2/fq20.sh
@@ -1,7 +1,7 @@
#!/bin/sh
# fq20.shsh
# David Rowe 27 July 2010
-#
+#
# Decode a file with fully quantised codec at 20ms frame rate
../src/sinedec ../raw/$1.raw $1.mdl -o $1_phase0_lsp_20_EWo2.raw --phase 0 --lpc 10 --lsp --postfilter --dec
diff --git a/gr-vocoder/lib/codec2/generate_codebook.c b/gr-vocoder/lib/codec2/generate_codebook.c
index 0bea80d85..705f29d38 100644
--- a/gr-vocoder/lib/codec2/generate_codebook.c
+++ b/gr-vocoder/lib/codec2/generate_codebook.c
@@ -1,9 +1,9 @@
/*---------------------------------------------------------------------------*\
-
+
FILE........: generate_codebook.c
- AUTHOR......: Bruce Perens
- DATE CREATED: 29 Sep 2010
-
+ AUTHOR......: Bruce Perens
+ DATE CREATED: 29 Sep 2010
+
Generate header files containing LSP quantisers, runs at compile time.
\*---------------------------------------------------------------------------*/
@@ -92,7 +92,7 @@ get_float(FILE * in, const char * name, char * * cursor, char * buffer,
while ( (c = *s) != '\0' && !isdigit(c) && c != '-' && c != '.' )
s++;
-
+
/* Comments start with "#" and continue to the end of the line. */
if ( c != '\0' && c != '#' ) {
char * end = 0;
diff --git a/gr-vocoder/lib/codec2/globals.c b/gr-vocoder/lib/codec2/globals.c
index f2182f79a..da2faf722 100644
--- a/gr-vocoder/lib/codec2/globals.c
+++ b/gr-vocoder/lib/codec2/globals.c
@@ -1,11 +1,11 @@
/*---------------------------------------------------------------------------*\
-
+
FILE........: globals.c
- AUTHOR......: David Rowe
- DATE CREATED: 11/5/94
-
- Globals for sinusoidal speech coder.
-
+ AUTHOR......: David Rowe
+ DATE CREATED: 11/5/94
+
+ Globals for sinusoidal speech coder.
+
\*---------------------------------------------------------------------------*/
/*
diff --git a/gr-vocoder/lib/codec2/globals.h b/gr-vocoder/lib/codec2/globals.h
index cef720344..d01e7b4e9 100644
--- a/gr-vocoder/lib/codec2/globals.h
+++ b/gr-vocoder/lib/codec2/globals.h
@@ -1,11 +1,11 @@
/*---------------------------------------------------------------------------*\
-
+
FILE........: globals.h
AUTHOR......: David Rowe
- DATE CREATED: 1/11/94
-
- Globals for sinusoidal speech coder.
-
+ DATE CREATED: 1/11/94
+
+ Globals for sinusoidal speech coder.
+
\*---------------------------------------------------------------------------*/
/*
diff --git a/gr-vocoder/lib/codec2/interp.c b/gr-vocoder/lib/codec2/interp.c
index 257c4a81c..64372b050 100644
--- a/gr-vocoder/lib/codec2/interp.c
+++ b/gr-vocoder/lib/codec2/interp.c
@@ -41,10 +41,10 @@ float sample_log_amp(MODEL *model, float w);
/*---------------------------------------------------------------------------*\
- FUNCTION....: interp()
- AUTHOR......: David Rowe
- DATE CREATED: 22/8/10
-
+ FUNCTION....: interp()
+ AUTHOR......: David Rowe
+ DATE CREATED: 22/8/10
+
Given two frames decribed by model parameters 20ms apart, determines
the model parameters of the 10ms frame between them. Assumes
voicing is available for middle (interpolated) frame. Outputs are
@@ -58,7 +58,7 @@ float sample_log_amp(MODEL *model, float w);
When this function is used (--dec mode) bg noise appears to be
amplitude modulated, and gets louder. The interp_lsp() function
below seems to do a better job.
-
+
\*---------------------------------------------------------------------------*/
void interpolate(
@@ -97,13 +97,13 @@ void interpolate(
/*---------------------------------------------------------------------------*\
FUNCTION....: sample_log_amp()
- AUTHOR......: David Rowe
- DATE CREATED: 22/8/10
-
+ AUTHOR......: David Rowe
+ DATE CREATED: 22/8/10
+
Samples the amplitude envelope at an arbitrary frequency w. Uses
linear interpolation in the log domain to sample between harmonic
amplitudes.
-
+
\*---------------------------------------------------------------------------*/
float sample_log_amp(MODEL *model, float w)
@@ -125,9 +125,9 @@ float sample_log_amp(MODEL *model, float w)
log_amp = (1.0-f)*log10(model->A[model->L] + 1E-6);
}
else {
- log_amp = (1.0-f)*log10(model->A[m] + 1E-6) +
+ log_amp = (1.0-f)*log10(model->A[m] + 1E-6) +
f*log10(model->A[m+1] + 1E-6);
- //printf("m=%d A[m] %f A[m+1] %f x %f %f %f\n", m, model->A[m],
+ //printf("m=%d A[m] %f A[m+1] %f x %f %f %f\n", m, model->A[m],
// model->A[m+1], pow(10.0, log_amp),
// (1-f), f);
}
@@ -138,13 +138,13 @@ float sample_log_amp(MODEL *model, float w)
/*---------------------------------------------------------------------------*\
FUNCTION....: sample_log_amp_quad()
- AUTHOR......: David Rowe
- DATE CREATED: 9 March 2011
-
+ AUTHOR......: David Rowe
+ DATE CREATED: 9 March 2011
+
Samples the amplitude envelope at an arbitrary frequency w. Uses
quadratic interpolation in the log domain to sample between harmonic
amplitudes.
-
+
y(x) = ax*x + bx + c
We assume three points are x=-1, x=0, x=1, which we map to m-1,m,m+1
@@ -172,7 +172,7 @@ float sample_log_amp_quad(MODEL *model, float w)
log_amp = a*x*x + b*x + c;
//printf("m=%d A[m-1] %f A[m] %f A[m+1] %f w %f x %f log_amp %f\n", m,
- // model->A[m-1],
+ // model->A[m-1],
// model->A[m], model->A[m+1], w, x, pow(10.0, log_amp));
return log_amp;
}
@@ -180,14 +180,14 @@ float sample_log_amp_quad(MODEL *model, float w)
/*---------------------------------------------------------------------------*\
FUNCTION....: sample_log_amp_quad_nl()
- AUTHOR......: David Rowe
+ AUTHOR......: David Rowe
DATE CREATED: 10 March 2011
-
+
Samples the amplitude envelope at an arbitrary frequency w. Uses
quadratic interpolation in the log domain to sample between harmonic
amplitudes. This version can handle non-linear steps along a freq
axis defined by arbitrary steps.
-
+
y(x) = ax*x + bx + c
We assume three points are (x_1,y_1), (0,y0) and (x1,y1).
@@ -215,9 +215,9 @@ float sample_log_amp_quad_nl(
for (i=0; i<np; i++)
if (fabs(w[i] - w_sample) < best_dist) {
best_dist = fabs(w[i] - w_sample);
- m = i;
+ m = i;
}
-
+
/* stay one point away from edge of array */
if (m < 1) m = 1;
@@ -234,13 +234,13 @@ float sample_log_amp_quad_nl(
a = (y_1*x1 - y1*x_1 + c*x_1 - c*x1)/(x_1*x_1*x1 - x1*x1*x_1);
b = (y1 -a*x1*x1 - c)/x1;
x = w_sample - w[m];
-
+
//printf("%f %f %f\n", w[0], w[1], w[2]);
//printf("%f %f %f %f %f %f\n", x_1, y_1, 0.0, y0, x1, y1);
log_amp = a*x*x + b*x + c;
//printf("a %f b %f c %f\n", a, b, c);
//printf("m=%d A[m-1] %f A[m] %f A[m+1] %f w_sample %f w[m] %f x %f log_amp %f\n", m,
- // A[m-1],
+ // A[m-1],
// A[m], A[m+1], w_sample, w[m], x, log_amp);
//exit(0);
return log_amp;
@@ -254,20 +254,20 @@ float fres[] = {100, 200, 300, 400, 500, 600, 700, 800, 900, 1000,
/*---------------------------------------------------------------------------*\
FUNCTION....: resample_amp_nl()
- AUTHOR......: David Rowe
+ AUTHOR......: David Rowe
DATE CREATED: 7 March 2011
-
- Converts the current model with L {Am} samples spaced Wo apart to
+
+ Converts the current model with L {Am} samples spaced Wo apart to
RES_POINTS samples spaced Wo/RES_POINTS apart. Then subtracts
from the previous frames samples to get the delta.
\*---------------------------------------------------------------------------*/
-void resample_amp_fixed(MODEL *model,
+void resample_amp_fixed(MODEL *model,
float w[], float A[],
float wres[], float Ares[],
- float AresdB_prev[],
- float AresdB[],
+ float AresdB_prev[],
+ float AresdB[],
float deltat[])
{
int i;
@@ -280,7 +280,7 @@ void resample_amp_fixed(MODEL *model,
for(i=0; i<RES_POINTS; i++) {
wres[i] = fres[i]*PI/4000.0;
}
-
+
for(i=0; i<RES_POINTS; i++) {
Ares[i] = pow(10.0,sample_log_amp_quad_nl(w, A, model->L, wres[i]));
}
@@ -297,13 +297,13 @@ void resample_amp_fixed(MODEL *model,
/*---------------------------------------------------------------------------*\
FUNCTION....: resample_amp_nl()
- AUTHOR......: David Rowe
+ AUTHOR......: David Rowe
DATE CREATED: 7 March 2011
-
+
Converts the current model with L {Am} samples spaced Wo apart to M
samples spaced Wo/M apart. Then converts back to L {Am} samples.
used to prototype constant rate Amplitude encoding ideas.
-
+
Returns the SNR in dB.
\*---------------------------------------------------------------------------*/
@@ -346,7 +346,7 @@ float resample_amp_nl(MODEL *model, int m, float AresdB_prev[])
#endif
signal = noise = 0.0;
-
+
for(i=1; i<model->L; i++) {
new_A = pow(10.0,sample_log_amp_quad_nl(wres, Ares, RES_POINTS, model->Wo*i));
signal += pow(model->A[i], 2.0);
@@ -364,13 +364,13 @@ float resample_amp_nl(MODEL *model, int m, float AresdB_prev[])
/*---------------------------------------------------------------------------*\
FUNCTION....: resample_amp()
- AUTHOR......: David Rowe
+ AUTHOR......: David Rowe
DATE CREATED: 10 March 2011
-
+
Converts the current model with L {Am} samples spaced Wo apart to M
samples with a non-linear spacing. Then converts back to L {Am}
samples. used to prototype constant rate Amplitude encoding ideas.
-
+
Returns the SNR in dB.
\*---------------------------------------------------------------------------*/
@@ -394,7 +394,7 @@ float resample_amp(MODEL *model, int m)
//dump_resample(&model_m);
signal = noise = 0.0;
-
+
for(i=1; i<model->L/4; i++) {
new_A = pow(10,sample_log_amp_quad(&model_m, i*model->Wo));
signal += pow(model->A[i], 2.0);
@@ -411,10 +411,10 @@ float resample_amp(MODEL *model, int m)
/*---------------------------------------------------------------------------*\
- FUNCTION....: interp_lsp()
- AUTHOR......: David Rowe
+ FUNCTION....: interp_lsp()
+ AUTHOR......: David Rowe
DATE CREATED: 10 Nov 2010
-
+
Given two frames decribed by model parameters 20ms apart, determines
the model parameters of the 10ms frame between them. Assumes
voicing is available for middle (interpolated) frame. Outputs are
@@ -422,7 +422,7 @@ float resample_amp(MODEL *model, int m)
This version uses interpolation of LSPs, seems to do a better job
with bg noise.
-
+
\*---------------------------------------------------------------------------*/
void interpolate_lsp(
@@ -469,5 +469,5 @@ void interpolate_lsp(
/* convert back to amplitudes */
lsp_to_lpc(lsps, ak_interp, LPC_ORD);
- aks_to_M2(ak_interp, LPC_ORD, interp, e, &snr, 0);
+ aks_to_M2(ak_interp, LPC_ORD, interp, e, &snr, 0);
}
diff --git a/gr-vocoder/lib/codec2/interp.h b/gr-vocoder/lib/codec2/interp.h
index d41eac3f8..d50972614 100644
--- a/gr-vocoder/lib/codec2/interp.h
+++ b/gr-vocoder/lib/codec2/interp.h
@@ -31,7 +31,7 @@
#define RES_POINTS 20
void interpolate(MODEL *interp, MODEL *prev, MODEL *next);
-void interpolate_lsp(MODEL *interp, MODEL *prev, MODEL *next,
+void interpolate_lsp(MODEL *interp, MODEL *prev, MODEL *next,
float *prev_lsps, float prev_e,
float *next_lsps, float next_e,
float *ak_interp);
diff --git a/gr-vocoder/lib/codec2/kiss_fft.c b/gr-vocoder/lib/codec2/kiss_fft.c
index 465d6c97a..17b4e7211 100644
--- a/gr-vocoder/lib/codec2/kiss_fft.c
+++ b/gr-vocoder/lib/codec2/kiss_fft.c
@@ -250,7 +250,7 @@ void kf_work(
const kiss_fft_cpx * Fout_end = Fout + p*m;
#ifdef _OPENMP
- // use openmp extensions at the
+ // use openmp extensions at the
// top-level (not recursive)
if (fstride==1 && p<=5)
{
@@ -258,15 +258,15 @@ void kf_work(
// execute the p different work units in different threads
# pragma omp parallel for
- for (k=0;k<p;++k)
+ for (k=0;k<p;++k)
kf_work( Fout +k*m, f+ fstride*in_stride*k,fstride*p,in_stride,factors,st);
// all threads have joined by this point
switch (p) {
case 2: kf_bfly2(Fout,fstride,st,m); break;
- case 3: kf_bfly3(Fout,fstride,st,m); break;
+ case 3: kf_bfly3(Fout,fstride,st,m); break;
case 4: kf_bfly4(Fout,fstride,st,m); break;
- case 5: kf_bfly5(Fout,fstride,st,m); break;
+ case 5: kf_bfly5(Fout,fstride,st,m); break;
default: kf_bfly_generic(Fout,fstride,st,m,p); break;
}
return;
@@ -282,7 +282,7 @@ void kf_work(
do{
// recursive call:
// DFT of size m*p performed by doing
- // p instances of smaller DFTs of size m,
+ // p instances of smaller DFTs of size m,
// each one takes a decimated version of the input
kf_work( Fout , f, fstride*p, in_stride, factors,st);
f += fstride*in_stride;
@@ -291,21 +291,21 @@ void kf_work(
Fout=Fout_beg;
- // recombine the p smaller DFTs
+ // recombine the p smaller DFTs
switch (p) {
case 2: kf_bfly2(Fout,fstride,st,m); break;
- case 3: kf_bfly3(Fout,fstride,st,m); break;
+ case 3: kf_bfly3(Fout,fstride,st,m); break;
case 4: kf_bfly4(Fout,fstride,st,m); break;
- case 5: kf_bfly5(Fout,fstride,st,m); break;
+ case 5: kf_bfly5(Fout,fstride,st,m); break;
default: kf_bfly_generic(Fout,fstride,st,m,p); break;
}
}
/* facbuf is populated by p1,m1,p2,m2, ...
- where
+ where
p[i] * m[i] = m[i-1]
m0 = n */
-static
+static
void kf_factor(int n,int * facbuf)
{
int p=4;
diff --git a/gr-vocoder/lib/codec2/kiss_fft.h b/gr-vocoder/lib/codec2/kiss_fft.h
index 64c50f4aa..c01722cad 100644
--- a/gr-vocoder/lib/codec2/kiss_fft.h
+++ b/gr-vocoder/lib/codec2/kiss_fft.h
@@ -28,17 +28,17 @@ extern "C" {
# define kiss_fft_scalar __m128
#define KISS_FFT_MALLOC(nbytes) _mm_malloc(nbytes,16)
#define KISS_FFT_FREE _mm_free
-#else
+#else
#define KISS_FFT_MALLOC malloc
#define KISS_FFT_FREE free
-#endif
+#endif
#ifdef FIXED_POINT
-#include <sys/types.h>
+#include <sys/types.h>
# if (FIXED_POINT == 32)
# define kiss_fft_scalar int32_t
-# else
+# else
# define kiss_fft_scalar int16_t
# endif
#else
@@ -55,9 +55,9 @@ typedef struct {
typedef struct kiss_fft_state* kiss_fft_cfg;
-/*
+/*
* kiss_fft_alloc
- *
+ *
* Initialize a FFT (or IFFT) algorithm's cfg/state buffer.
*
* typical usage: kiss_fft_cfg mycfg=kiss_fft_alloc(1024,0,NULL,NULL);
@@ -67,18 +67,18 @@ typedef struct kiss_fft_state* kiss_fft_cfg;
*
* If lenmem is NULL, then kiss_fft_alloc will allocate a cfg buffer using malloc.
* The returned value should be free()d when done to avoid memory leaks.
- *
+ *
* The state can be placed in a user supplied buffer 'mem':
* If lenmem is not NULL and mem is not NULL and *lenmem is large enough,
* then the function places the cfg in mem and the size used in *lenmem
* and returns mem.
- *
+ *
* If lenmem is not NULL and ( mem is NULL or *lenmem is not large enough),
- * then the function returns NULL and places the minimum cfg
+ * then the function returns NULL and places the minimum cfg
* buffer size in *lenmem.
* */
-kiss_fft_cfg kiss_fft_alloc(int nfft,int inverse_fft,void * mem,size_t * lenmem);
+kiss_fft_cfg kiss_fft_alloc(int nfft,int inverse_fft,void * mem,size_t * lenmem);
/*
* kiss_fft(cfg,in_out_buf)
@@ -97,16 +97,16 @@ void kiss_fft(kiss_fft_cfg cfg,const kiss_fft_cpx *fin,kiss_fft_cpx *fout);
* */
void kiss_fft_stride(kiss_fft_cfg cfg,const kiss_fft_cpx *fin,kiss_fft_cpx *fout,int fin_stride);
-/* If kiss_fft_alloc allocated a buffer, it is one contiguous
+/* If kiss_fft_alloc allocated a buffer, it is one contiguous
buffer and can be simply free()d when no longer needed*/
#define kiss_fft_free free
/*
- Cleans up some memory that gets managed internally. Not necessary to call, but it might clean up
+ Cleans up some memory that gets managed internally. Not necessary to call, but it might clean up
your compiler output to call this before you exit.
*/
void kiss_fft_cleanup(void);
-
+
/*
* Returns the smallest integer k, such that k>=n and k has only "fast" factors (2,3,5)
@@ -118,7 +118,7 @@ int kiss_fft_next_fast_size(int n);
(kiss_fft_next_fast_size( ((n)+1)>>1)<<1)
#ifdef __cplusplus
-}
+}
#endif
#endif
diff --git a/gr-vocoder/lib/codec2/lpc.c b/gr-vocoder/lib/codec2/lpc.c
index ba8011377..1784f75ca 100644
--- a/gr-vocoder/lib/codec2/lpc.c
+++ b/gr-vocoder/lib/codec2/lpc.c
@@ -1,11 +1,11 @@
/*---------------------------------------------------------------------------*\
-
- FILE........: lpc.c
- AUTHOR......: David Rowe
- DATE CREATED: 30/9/90
-
- Linear Prediction functions written in C.
-
+
+ FILE........: lpc.c
+ AUTHOR......: David Rowe
+ DATE CREATED: 30/9/90
+
+ Linear Prediction functions written in C.
+
\*---------------------------------------------------------------------------*/
/*
@@ -34,11 +34,11 @@
#include "lpc.h"
/*---------------------------------------------------------------------------*\
-
- hanning_window()
-
- Hanning windows a frame of speech samples.
-
+
+ hanning_window()
+
+ Hanning windows a frame of speech samples.
+
\*---------------------------------------------------------------------------*/
void hanning_window(
@@ -54,12 +54,12 @@ void hanning_window(
}
/*---------------------------------------------------------------------------*\
-
- autocorrelate()
-
- Finds the first P autocorrelation values of an array of windowed speech
- samples Sn[].
-
+
+ autocorrelate()
+
+ Finds the first P autocorrelation values of an array of windowed speech
+ samples Sn[].
+
\*---------------------------------------------------------------------------*/
void autocorrelate(
@@ -79,12 +79,12 @@ void autocorrelate(
}
/*---------------------------------------------------------------------------*\
-
- autocorrelate_freq()
-
+
+ autocorrelate_freq()
+
Finds the first P autocorrelation values from an array of frequency domain
- power samples.
-
+ power samples.
+
\*---------------------------------------------------------------------------*/
void autocorrelate_freq(
@@ -106,18 +106,18 @@ void autocorrelate_freq(
}
/*---------------------------------------------------------------------------*\
-
- levinson_durbin()
-
- Given P+1 autocorrelation coefficients, finds P Linear Prediction Coeff.
+
+ levinson_durbin()
+
+ Given P+1 autocorrelation coefficients, finds P Linear Prediction Coeff.
(LPCs) where P is the order of the LPC all-pole model. The Levinson-Durbin
- algorithm is used, and is described in:
-
- J. Makhoul
- "Linear prediction, a tutorial review"
- Proceedings of the IEEE
- Vol-63, No. 4, April 1975
-
+ algorithm is used, and is described in:
+
+ J. Makhoul
+ "Linear prediction, a tutorial review"
+ Proceedings of the IEEE
+ Vol-63, No. 4, April 1975
+
\*---------------------------------------------------------------------------*/
void levinson_durbin(
@@ -152,18 +152,18 @@ void levinson_durbin(
for(i=1; i<=order; i++)
lpcs[i] = a[order][i];
- lpcs[0] = 1.0;
+ lpcs[0] = 1.0;
}
/*---------------------------------------------------------------------------*\
-
- inverse_filter()
-
+
+ inverse_filter()
+
Inverse Filter, A(z). Produces an array of residual samples from an array
- of input samples and linear prediction coefficients.
-
+ of input samples and linear prediction coefficients.
+
The filter memory is stored in the first order samples of the input array.
-
+
\*---------------------------------------------------------------------------*/
void inverse_filter(
@@ -180,26 +180,26 @@ void inverse_filter(
res[i] = 0.0;
for(j=0; j<=order; j++)
res[i] += Sn[i-j]*a[j];
- }
+ }
}
/*---------------------------------------------------------------------------*\
-
- synthesis_filter()
-
- C version of the Speech Synthesis Filter, 1/A(z). Given an array of
+
+ synthesis_filter()
+
+ C version of the Speech Synthesis Filter, 1/A(z). Given an array of
residual or excitation samples, and the the LP filter coefficients, this
function will produce an array of speech samples. This filter structure is
- IIR.
-
- The synthesis filter has memory as well, this is treated in the same way
- as the memory for the inverse filter (see inverse_filter() notes above).
- The difference is that the memory for the synthesis filter is stored in
+ IIR.
+
+ The synthesis filter has memory as well, this is treated in the same way
+ as the memory for the inverse filter (see inverse_filter() notes above).
+ The difference is that the memory for the synthesis filter is stored in
the output array, wheras the memory of the inverse filter is stored in the
- input array.
-
- Note: the calling function must update the filter memory.
-
+ input array.
+
+ Note: the calling function must update the filter memory.
+
\*---------------------------------------------------------------------------*/
void synthesis_filter(
@@ -222,12 +222,12 @@ void synthesis_filter(
}
/*---------------------------------------------------------------------------*\
-
- find_aks()
-
- This function takes a frame of samples, and determines the linear
- prediction coefficients for that frame of samples.
-
+
+ find_aks()
+
+ This function takes a frame of samples, and determines the linear
+ prediction coefficients for that frame of samples.
+
\*---------------------------------------------------------------------------*/
void find_aks(
@@ -257,11 +257,11 @@ void find_aks(
}
/*---------------------------------------------------------------------------*\
-
- weight()
-
- Weights a vector of LPCs.
-
+
+ weight()
+
+ Weights a vector of LPCs.
+
\*---------------------------------------------------------------------------*/
void weight(
@@ -272,8 +272,8 @@ void weight(
)
{
int i;
-
+
for(i=1; i<=order; i++)
akw[i] = ak[i]*pow(gamma,(float)i);
}
-
+
diff --git a/gr-vocoder/lib/codec2/lpc.h b/gr-vocoder/lib/codec2/lpc.h
index ead05e1ba..9125189d1 100644
--- a/gr-vocoder/lib/codec2/lpc.h
+++ b/gr-vocoder/lib/codec2/lpc.h
@@ -1,11 +1,11 @@
/*---------------------------------------------------------------------------*\
-
- FILE........: lpc.h
- AUTHOR......: David Rowe
- DATE CREATED: 24/8/09
-
- Linear Prediction functions written in C.
-
+
+ FILE........: lpc.h
+ AUTHOR......: David Rowe
+ DATE CREATED: 24/8/09
+
+ Linear Prediction functions written in C.
+
\*---------------------------------------------------------------------------*/
/*
diff --git a/gr-vocoder/lib/codec2/lsp.c b/gr-vocoder/lib/codec2/lsp.c
index 47001c1ef..b57507bb4 100644
--- a/gr-vocoder/lib/codec2/lsp.c
+++ b/gr-vocoder/lib/codec2/lsp.c
@@ -153,7 +153,7 @@ int lpc_to_lsp (float *a, int lpcrdr, float *freq, int nb, float delta)
float Q[LSP_MAX_ORDER + 1];
float P[LSP_MAX_ORDER + 1];
- flag = 1;
+ flag = 1;
m = lpcrdr/2; /* order of P'(z) & Q'(z) polynimials */
/* Allocate memory space for polynomials */
@@ -274,7 +274,7 @@ void lsp_to_lpc(float *lsp, float *ak, int lpcrdr)
int m = lpcrdr/2;
float freq[LSP_MAX_ORDER];
float Wp[(LSP_MAX_ORDER * 4) + 2];
-
+
/* convert from radians to the x=cos(w) domain */
for(i=0; i<lpcrdr; i++)
diff --git a/gr-vocoder/lib/codec2/nlp.c b/gr-vocoder/lib/codec2/nlp.c
index 42ae90919..0d5e530ce 100644
--- a/gr-vocoder/lib/codec2/nlp.c
+++ b/gr-vocoder/lib/codec2/nlp.c
@@ -1,11 +1,11 @@
/*---------------------------------------------------------------------------*\
-
- FILE........: nlp.c
- AUTHOR......: David Rowe
- DATE CREATED: 23/3/93
-
- Non Linear Pitch (NLP) estimation functions.
-
+
+ FILE........: nlp.c
+ AUTHOR......: David Rowe
+ DATE CREATED: 23/3/93
+
+ Non Linear Pitch (NLP) estimation functions.
+
\*---------------------------------------------------------------------------*/
/*
@@ -35,9 +35,9 @@
#include <stdlib.h>
/*---------------------------------------------------------------------------*\
-
- DEFINES
-
+
+ DEFINES
+
\*---------------------------------------------------------------------------*/
#define PMAX_M 600 /* maximum NLP analysis window size */
@@ -52,9 +52,9 @@
#define NLP_NTAP 48 /* Decimation LPF order */
/*---------------------------------------------------------------------------*\
-
- GLOBALS
-
+
+ GLOBALS
+
\*---------------------------------------------------------------------------*/
/* 48 tap 600Hz low pass FIR filter coefficients */
@@ -117,14 +117,14 @@ typedef struct {
} NLP;
float post_process_mbe(COMP Fw[], int pmin, int pmax, float gmax);
-float post_process_sub_multiples(COMP Fw[],
+float post_process_sub_multiples(COMP Fw[],
int pmin, int pmax, float gmax, int gmax_bin,
float *prev_Wo);
/*---------------------------------------------------------------------------*\
-
- nlp_create()
-
+
+ nlp_create()
+
Initialisation function for NLP pitch estimator.
\*---------------------------------------------------------------------------*/
@@ -149,9 +149,9 @@ void *nlp_create()
}
/*---------------------------------------------------------------------------*\
-
+
nlp_destory()
-
+
Initialisation function for NLP pitch estimator.
\*---------------------------------------------------------------------------*/
@@ -163,9 +163,9 @@ void nlp_destroy(void *nlp_state)
}
/*---------------------------------------------------------------------------*\
-
- nlp()
-
+
+ nlp()
+
Determines the pitch in samples using the Non Linear Pitch (NLP)
algorithm [1]. Returns the fundamental in Hz. Note that the actual
pitch estimate is for the centre of the M sample Sn[] vector, not
@@ -189,11 +189,11 @@ void nlp_destroy(void *nlp_state)
References:
[1] http://www.itr.unisa.edu.au/~steven/thesis/dgr.pdf Chapter 4
-
+
\*---------------------------------------------------------------------------*/
float nlp(
- void *nlp_state,
+ void *nlp_state,
float Sn[], /* input speech vector */
int n, /* frames shift (no. new samples in Sn[]) */
int m, /* analysis window size */
@@ -271,7 +271,7 @@ float nlp(
}
}
- best_f0 = post_process_sub_multiples(Fw, pmin, pmax, gmax, gmax_bin,
+ best_f0 = post_process_sub_multiples(Fw, pmin, pmax, gmax, gmax_bin,
prev_Wo);
/* Shift samples in buffer to make room for new samples */
@@ -282,13 +282,13 @@ float nlp(
/* return pitch and F0 estimate */
*pitch = (float)SAMPLE_RATE/best_f0;
- return(best_f0);
+ return(best_f0);
}
/*---------------------------------------------------------------------------*\
-
- post_process_sub_multiples()
-
+
+ post_process_sub_multiples()
+
Given the global maximma of Fw[] we search interger submultiples for
local maxima. If local maxima exist and they are above an
experimentally derived threshold (OK a magic number I pulled out of
@@ -306,7 +306,7 @@ float nlp(
\*---------------------------------------------------------------------------*/
-float post_process_sub_multiples(COMP Fw[],
+float post_process_sub_multiples(COMP Fw[],
int pmin, int pmax, float gmax, int gmax_bin,
float *prev_Wo)
{
@@ -361,4 +361,4 @@ float post_process_sub_multiples(COMP Fw[],
return best_f0;
}
-
+
diff --git a/gr-vocoder/lib/codec2/nlp.h b/gr-vocoder/lib/codec2/nlp.h
index 88a3733dc..5e11f1186 100644
--- a/gr-vocoder/lib/codec2/nlp.h
+++ b/gr-vocoder/lib/codec2/nlp.h
@@ -1,11 +1,11 @@
/*---------------------------------------------------------------------------*\
-
- FILE........: nlp.c
- AUTHOR......: David Rowe
- DATE CREATED: 23/3/93
-
- Non Linear Pitch (NLP) estimation functions.
-
+
+ FILE........: nlp.c
+ AUTHOR......: David Rowe
+ DATE CREATED: 23/3/93
+
+ Non Linear Pitch (NLP) estimation functions.
+
\*---------------------------------------------------------------------------*/
/*
@@ -32,7 +32,7 @@
void *nlp_create();
void nlp_destroy(void *nlp_state);
-float nlp(void *nlp_state, float Sn[], int n, int m, int pmin, int pmax,
+float nlp(void *nlp_state, float Sn[], int n, int m, int pmin, int pmax,
float *pitch, COMP Sw[], float *prev_Wo);
float test_candidate_mbe(COMP Sw[], float f0, COMP Sw_[]);
diff --git a/gr-vocoder/lib/codec2/pack.c b/gr-vocoder/lib/codec2/pack.c
index 31551dfc4..e04c9378c 100644
--- a/gr-vocoder/lib/codec2/pack.c
+++ b/gr-vocoder/lib/codec2/pack.c
@@ -65,7 +65,7 @@ pack(
bitArray[wordIndex] |=
((unsigned char)((field >> (fieldWidth - sliceWidth))
<< (bitsLeft - sliceWidth)));
-
+
*bitIndex = bI + sliceWidth;
fieldWidth -= sliceWidth;
} while ( fieldWidth != 0 );
@@ -91,7 +91,7 @@ unpack(
bitsLeft < fieldWidth ? bitsLeft : fieldWidth;
field |= (((bitArray[bI >> ShiftRight] >> (bitsLeft - sliceWidth)) & ((1 << sliceWidth) - 1)) << (fieldWidth - sliceWidth));
-
+
*bitIndex = bI + sliceWidth;
fieldWidth -= sliceWidth;
} while ( fieldWidth != 0 );
diff --git a/gr-vocoder/lib/codec2/phase.c b/gr-vocoder/lib/codec2/phase.c
index 0e1a14a60..69cc6697f 100644
--- a/gr-vocoder/lib/codec2/phase.c
+++ b/gr-vocoder/lib/codec2/phase.c
@@ -1,11 +1,11 @@
/*---------------------------------------------------------------------------*\
-
- FILE........: phase.c
- AUTHOR......: David Rowe
- DATE CREATED: 1/2/09
-
+
+ FILE........: phase.c
+ AUTHOR......: David Rowe
+ DATE CREATED: 1/2/09
+
Functions for modelling and synthesising phase.
-
+
\*---------------------------------------------------------------------------*/
/*
@@ -22,7 +22,7 @@
License for more details.
You should have received a copy of the GNU Lesser General Public License
- along with this program; if not,see <http://www.gnu.org/licenses/>.
+ along with this program; if not,see <http://www.gnu.org/licenses/>.
*/
#include "defines.h"
@@ -101,14 +101,14 @@ void aks_to_H(
phase_synth_zero_order()
- Synthesises phases based on SNR and a rule based approach. No phase
+ Synthesises phases based on SNR and a rule based approach. No phase
parameters are required apart from the SNR (which can be reduced to a
1 bit V/UV decision per frame).
The phase of each harmonic is modelled as the phase of a LPC
synthesis filter excited by an impulse. Unlike the first order
model the position of the impulse is not transmitted, so we create
- an excitation pulse train using a rule based approach.
+ an excitation pulse train using a rule based approach.
Consider a pulse train with a pulse starting time n=0, with pulses
repeated at a rate of Wo, the fundamental frequency. A pulse train
@@ -149,10 +149,10 @@ void aks_to_H(
This E[m] then gets passed through the LPC synthesis filter to
determine the final harmonic phase.
-
+
Comparing to speech synthesised using original phases:
- - Through headphones speech synthesised with this model is not as
+ - Through headphones speech synthesised with this model is not as
good. Through a loudspeaker it is very close to original phases.
- If there are voicing errors, the speech can sound clicky or
@@ -207,21 +207,21 @@ void phase_synth_zero_order(
G = 1.0;
aks_to_H(model, aks, G, H, order);
- /*
+ /*
Update excitation fundamental phase track, this sets the position
of each pitch pulse during voiced speech. After much experiment
I found that using just this frame's Wo improved quality for UV
sounds compared to interpolating two frames Wo like this:
-
+
ex_phase[0] += (*prev_Wo+mode->Wo)*N/2;
*/
-
+
ex_phase[0] += (model->Wo)*N;
ex_phase[0] -= TWO_PI*floor(ex_phase[0]/TWO_PI + 0.5);
r = TWO_PI/GLOTTAL_FFT_SIZE;
for(m=1; m<=model->L; m++) {
-
+
/* generate excitation */
if (model->voiced) {
@@ -254,7 +254,7 @@ void phase_synth_zero_order(
A_[m].imag = H[m].imag*Ex[m].real + H[m].real*Ex[m].imag;
/* modify sinusoidal phase */
-
+
new_phi = atan2(A_[m].imag, A_[m].real+1E-12);
model->phi[m] = new_phi;
}
diff --git a/gr-vocoder/lib/codec2/phase.h b/gr-vocoder/lib/codec2/phase.h
index 833bc7cdc..4f1a62089 100644
--- a/gr-vocoder/lib/codec2/phase.h
+++ b/gr-vocoder/lib/codec2/phase.h
@@ -1,11 +1,11 @@
/*---------------------------------------------------------------------------*\
-
- FILE........: phase.h
- AUTHOR......: David Rowe
- DATE CREATED: 1/2/09
-
+
+ FILE........: phase.h
+ AUTHOR......: David Rowe
+ DATE CREATED: 1/2/09
+
Functions for modelling phase.
-
+
\*---------------------------------------------------------------------------*/
/*
@@ -28,7 +28,7 @@
#ifndef __PHASE__
#define __PHASE__
-void phase_synth_zero_order(MODEL *model, float aks[], float *ex_phase,
+void phase_synth_zero_order(MODEL *model, float aks[], float *ex_phase,
int order);
#endif
diff --git a/gr-vocoder/lib/codec2/postfilter.c b/gr-vocoder/lib/codec2/postfilter.c
index 6e17eeb87..05d77c845 100644
--- a/gr-vocoder/lib/codec2/postfilter.c
+++ b/gr-vocoder/lib/codec2/postfilter.c
@@ -1,13 +1,13 @@
/*---------------------------------------------------------------------------*\
-
+
FILE........: postfilter.c
- AUTHOR......: David Rowe
+ AUTHOR......: David Rowe
DATE CREATED: 13/09/09
-
+
Postfilter to improve sound quality for speech with high levels of
background noise. Unlike mixed-excitation models requires no bits
to be transmitted to handle background noise.
-
+
\*---------------------------------------------------------------------------*/
/*
@@ -71,7 +71,7 @@
This idea is rather experimental. Some potential problems that may
happen:
-
+
1/ If someone says "aaaaaaaahhhhhhhhh" will background estimator track
up to speech level? This would be a bad thing.
@@ -88,13 +88,13 @@
5/ Not sure what happens during long periods of voiced speech
e.g. "sshhhhhhh"
-
+
\*---------------------------------------------------------------------------*/
void postfilter(
MODEL *model,
float *bg_est
-)
+)
{
int m, uv;
float e;
diff --git a/gr-vocoder/lib/codec2/postfilter.h b/gr-vocoder/lib/codec2/postfilter.h
index bf080b1b6..156714e54 100644
--- a/gr-vocoder/lib/codec2/postfilter.h
+++ b/gr-vocoder/lib/codec2/postfilter.h
@@ -1,11 +1,11 @@
/*---------------------------------------------------------------------------*\
-
+
FILE........: postfilter.h
- AUTHOR......: David Rowe
+ AUTHOR......: David Rowe
DATE CREATED: 13/09/09
-
+
Postfilter header file.
-
+
\*---------------------------------------------------------------------------*/
/*
diff --git a/gr-vocoder/lib/codec2/quantise.c b/gr-vocoder/lib/codec2/quantise.c
index ff8d156b5..c09803099 100644
--- a/gr-vocoder/lib/codec2/quantise.c
+++ b/gr-vocoder/lib/codec2/quantise.c
@@ -1,11 +1,11 @@
/*---------------------------------------------------------------------------*\
-
+
FILE........: quantise.c
- AUTHOR......: David Rowe
- DATE CREATED: 31/5/92
-
- Quantisation functions for the sinusoidal coder.
-
+ AUTHOR......: David Rowe
+ DATE CREATED: 31/5/92
+
+ Quantisation functions for the sinusoidal coder.
+
\*---------------------------------------------------------------------------*/
/*
@@ -41,16 +41,16 @@
#define LSP_DELTA1 0.01 /* grid spacing for LSP root searches */
/*---------------------------------------------------------------------------*\
-
+
FUNCTION HEADERS
\*---------------------------------------------------------------------------*/
-float speech_to_uq_lsps(float lsp[], float ak[], float Sn[], float w[],
+float speech_to_uq_lsps(float lsp[], float ak[], float Sn[], float w[],
int order);
/*---------------------------------------------------------------------------*\
-
+
FUNCTIONS
\*---------------------------------------------------------------------------*/
@@ -61,7 +61,7 @@ int lsp_bits(int i) {
#if VECTOR_QUANTISATION
/*---------------------------------------------------------------------------*\
-
+
quantise_uniform
Simulates uniform quantising of a float.
@@ -146,7 +146,7 @@ long quantise(const float * cb, float vec[], float w[], int k, int m, float *se)
}
/*---------------------------------------------------------------------------*\
-
+
lspd_quantise
Scalar lsp difference quantiser.
@@ -154,10 +154,10 @@ long quantise(const float * cb, float vec[], float w[], int k, int m, float *se)
\*---------------------------------------------------------------------------*/
void lspd_quantise(
- float lsp[],
+ float lsp[],
float lsp_[],
int order
-)
+)
{
int i,k,m;
float lsp_hz[LPC_MAX];
@@ -183,8 +183,8 @@ void lspd_quantise(
wt[0] = 1.0;
for(i=0; i<order; i++) {
- if (i)
- dlsp[i] = lsp_hz[i] - lsp__hz[i-1];
+ if (i)
+ dlsp[i] = lsp_hz[i] - lsp__hz[i-1];
else
dlsp[0] = lsp_hz[0];
@@ -194,14 +194,14 @@ void lspd_quantise(
indexes[i] = quantise(cb, &dlsp[i], wt, k, m, &se);
dlsp_[i] = cb[indexes[i]*k];
- if (i)
+ if (i)
lsp__hz[i] = lsp__hz[i-1] + dlsp_[i];
else
lsp__hz[0] = dlsp_[0];
}
for(; i<order; i++)
lsp__hz[i] = lsp__hz[i-1] + dlsp[i];
-
+
/* convert back to radians */
for(i=0; i<order; i++)
@@ -209,7 +209,7 @@ void lspd_quantise(
}
/*---------------------------------------------------------------------------*\
-
+
lspd_vq_quantise
Vector lsp difference quantiser.
@@ -217,10 +217,10 @@ void lspd_quantise(
\*---------------------------------------------------------------------------*/
void lspdvq_quantise(
- float lsp[],
+ float lsp[],
float lsp_[],
int order
-)
+)
{
int i,k,m,ncb, nlsp;
float dlsp[LPC_MAX];
@@ -243,8 +243,8 @@ void lspdvq_quantise(
/* scalar quantise dLSPs 1,2,3,4,5 */
for(i=0; i<5; i++) {
- if (i)
- dlsp[i] = (lsp[i] - lsp_[i-1])*4000.0/PI;
+ if (i)
+ dlsp[i] = (lsp[i] - lsp_[i-1])*4000.0/PI;
else
dlsp[0] = lsp[0]*4000.0/PI;
@@ -253,8 +253,8 @@ void lspdvq_quantise(
cb = lsp_cbdvq[i].cb;
index = quantise(cb, &dlsp[i], wt, k, m, &se);
dlsp_[i] = cb[index*k]*PI/4000.0;
-
- if (i)
+
+ if (i)
lsp_[i] = lsp_[i-1] + dlsp_[i];
else
lsp_[0] = dlsp_[0];
@@ -330,7 +330,7 @@ void force_min_lsp_dist(float lsp[], int lpc_order)
}
/*---------------------------------------------------------------------------*\
-
+
lpc_model_amplitudes
Derive a LPC model for amplitude samples then estimate amplitude samples
@@ -342,7 +342,7 @@ void force_min_lsp_dist(float lsp[], int lpc_order)
float lpc_model_amplitudes(
float Sn[], /* Input frame of speech samples */
- float w[],
+ float w[],
MODEL *model, /* sinusoidal model parameters */
int order, /* LPC model order */
int lsp_quant, /* optional LSP quantisation if non-zero */
@@ -353,7 +353,7 @@ float lpc_model_amplitudes(
float R[LPC_MAX+1];
float E;
int i,j;
- float snr;
+ float snr;
float lsp[LPC_MAX];
float lsp_hz[LPC_MAX];
float lsp_[LPC_MAX];
@@ -368,11 +368,11 @@ float lpc_model_amplitudes(
Wn[i] = Sn[i]*w[i];
autocorrelate(Wn,R,M,order);
levinson_durbin(R,ak,order);
-
+
E = 0.0;
for(i=0; i<=order; i++)
E += ak[i]*R[i];
-
+
for(i=0; i<order; i++)
wt[i] = 1.0;
@@ -386,7 +386,7 @@ float lpc_model_amplitudes(
for(i=0; i<order; i++)
lsp_hz[i] = (4000.0/PI)*lsp[i];
-
+
/* simple uniform scalar quantisers */
for(i=0; i<10; i++) {
@@ -396,7 +396,7 @@ float lpc_model_amplitudes(
index = quantise(cb, &lsp_hz[i], wt, k, m, &se);
lsp_hz[i] = cb[index*k];
}
-
+
/* experiment: simulating uniform quantisation error
for(i=0; i<order; i++)
lsp[i] += PI*(12.5/4000.0)*(1.0 - 2.0*(float)rand()/RAND_MAX);
@@ -428,7 +428,7 @@ float lpc_model_amplitudes(
lsp[i] = lsp[i-1] + PI*(75.0/4000.0);
}
- for(j=0; j<order; j++)
+ for(j=0; j<order; j++)
lsp_[j] = lsp[j];
lsp_to_lpc(lsp_, ak, order);
@@ -455,13 +455,13 @@ float lpc_model_amplitudes(
}
/*---------------------------------------------------------------------------*\
-
- aks_to_M2()
-
- Transforms the linear prediction coefficients to spectral amplitude
- samples. This function determines A(m) from the average energy per
- band using an FFT.
-
+
+ aks_to_M2()
+
+ Transforms the linear prediction coefficients to spectral amplitude
+ samples. This function determines A(m) from the average energy per
+ band using an FFT.
+
\*---------------------------------------------------------------------------*/
void aks_to_M2(
@@ -487,7 +487,7 @@ void aks_to_M2(
for(i=0; i<FFT_DEC; i++) {
Pw[i].real = 0.0;
- Pw[i].imag = 0.0;
+ Pw[i].imag = 0.0;
}
for(i=0; i<=order; i++)
@@ -499,7 +499,7 @@ void aks_to_M2(
for(i=0; i<FFT_DEC/2; i++)
Pw[i].real = E/(Pw[i].real*Pw[i].real + Pw[i].imag*Pw[i].imag);
#ifdef DUMP
- if (dump)
+ if (dump)
dump_Pw(Pw);
#endif
@@ -523,10 +523,10 @@ void aks_to_M2(
}
/*---------------------------------------------------------------------------*\
-
- FUNCTION....: encode_Wo()
- AUTHOR......: David Rowe
- DATE CREATED: 22/8/2010
+
+ FUNCTION....: encode_Wo()
+ AUTHOR......: David Rowe
+ DATE CREATED: 22/8/2010
Encodes Wo using a WO_LEVELS quantiser.
@@ -548,10 +548,10 @@ int encode_Wo(float Wo)
}
/*---------------------------------------------------------------------------*\
-
- FUNCTION....: decode_Wo()
- AUTHOR......: David Rowe
- DATE CREATED: 22/8/2010
+
+ FUNCTION....: decode_Wo()
+ AUTHOR......: David Rowe
+ DATE CREATED: 22/8/2010
Decodes Wo using a WO_LEVELS quantiser.
@@ -571,10 +571,10 @@ float decode_Wo(int index)
}
/*---------------------------------------------------------------------------*\
-
- FUNCTION....: speech_to_uq_lsps()
- AUTHOR......: David Rowe
- DATE CREATED: 22/8/2010
+
+ FUNCTION....: speech_to_uq_lsps()
+ AUTHOR......: David Rowe
+ DATE CREATED: 22/8/2010
Analyse a windowed frame of time domain speech to determine LPCs
which are the converted to LSPs for quantisation and transmission
@@ -584,7 +584,7 @@ float decode_Wo(int index)
float speech_to_uq_lsps(float lsp[],
float ak[],
- float Sn[],
+ float Sn[],
float w[],
int order
)
@@ -598,19 +598,19 @@ float speech_to_uq_lsps(float lsp[],
Wn[i] = Sn[i]*w[i];
autocorrelate(Wn, R, M, order);
levinson_durbin(R, ak, order);
-
+
E = 0.0;
for(i=0; i<=order; i++)
E += ak[i]*R[i];
-
+
roots = lpc_to_lsp(ak, order, lsp, 5, LSP_DELTA1);
if (roots != order) {
/* for some reason LSP roots could not be found */
/* some alpha testers are reporting this condition */
fprintf(stderr, "LSP roots not found!\nroots = %d\n", roots);
for(i=0; i<=order; i++)
- fprintf(stderr, "a[%d] = %f\n", i, ak[i]);
-
+ fprintf(stderr, "a[%d] = %f\n", i, ak[i]);
+
/* some benign LSP values we can use instead */
for(i=0; i<order; i++)
lsp[i] = (PI/order)*(float)i;
@@ -620,10 +620,10 @@ float speech_to_uq_lsps(float lsp[],
}
/*---------------------------------------------------------------------------*\
-
- FUNCTION....: encode_lsps()
- AUTHOR......: David Rowe
- DATE CREATED: 22/8/2010
+
+ FUNCTION....: encode_lsps()
+ AUTHOR......: David Rowe
+ DATE CREATED: 22/8/2010
From a vector of unquantised (floating point) LSPs finds the quantised
LSP indexes.
@@ -643,7 +643,7 @@ void encode_lsps(int indexes[], float lsp[], int order)
for(i=0; i<order; i++)
lsp_hz[i] = (4000.0/PI)*lsp[i];
-
+
/* simple uniform scalar quantisers */
wt[0] = 1.0;
@@ -656,10 +656,10 @@ void encode_lsps(int indexes[], float lsp[], int order)
}
/*---------------------------------------------------------------------------*\
-
- FUNCTION....: decode_lsps()
- AUTHOR......: David Rowe
- DATE CREATED: 22/8/2010
+
+ FUNCTION....: decode_lsps()
+ AUTHOR......: David Rowe
+ DATE CREATED: 22/8/2010
From a vector of quantised LSP indexes, returns the quantised
(floating point) LSPs.
@@ -685,10 +685,10 @@ void decode_lsps(float lsp[], int indexes[], int order)
}
/*---------------------------------------------------------------------------*\
-
- FUNCTION....: bw_expand_lsps()
- AUTHOR......: David Rowe
- DATE CREATED: 22/8/2010
+
+ FUNCTION....: bw_expand_lsps()
+ AUTHOR......: David Rowe
+ DATE CREATED: 22/8/2010
Applies Bandwidth Expansion (BW) to a vector of LSPs. Prevents any
two LSPs getting too close together after quantisation. We know
@@ -724,10 +724,10 @@ void bw_expand_lsps(float lsp[],
}
/*---------------------------------------------------------------------------*\
-
- FUNCTION....: apply_lpc_correction()
- AUTHOR......: David Rowe
- DATE CREATED: 22/8/2010
+
+ FUNCTION....: apply_lpc_correction()
+ AUTHOR......: David Rowe
+ DATE CREATED: 22/8/2010
Apply first harmonic LPC correction at decoder. This helps improve
low pitch males after LPC modelling, like hts1a and morig.
@@ -742,10 +742,10 @@ void apply_lpc_correction(MODEL *model)
}
/*---------------------------------------------------------------------------*\
-
- FUNCTION....: encode_energy()
- AUTHOR......: David Rowe
- DATE CREATED: 22/8/2010
+
+ FUNCTION....: encode_energy()
+ AUTHOR......: David Rowe
+ DATE CREATED: 22/8/2010
Encodes LPC energy using an E_LEVELS quantiser.
@@ -768,10 +768,10 @@ int encode_energy(float e)
}
/*---------------------------------------------------------------------------*\
-
- FUNCTION....: decode_energy()
- AUTHOR......: David Rowe
- DATE CREATED: 22/8/2010
+
+ FUNCTION....: decode_energy()
+ AUTHOR......: David Rowe
+ DATE CREATED: 22/8/2010
Decodes energy using a WO_BITS quantiser.
@@ -792,10 +792,10 @@ float decode_energy(int index)
}
/*---------------------------------------------------------------------------*\
-
- FUNCTION....: encode_amplitudes()
- AUTHOR......: David Rowe
- DATE CREATED: 22/8/2010
+
+ FUNCTION....: encode_amplitudes()
+ AUTHOR......: David Rowe
+ DATE CREATED: 22/8/2010
Time domain LPC is used model the amplitudes which are then
converted to LSPs and quantised. So we don't actually encode the
@@ -804,10 +804,10 @@ float decode_energy(int index)
\*---------------------------------------------------------------------------*/
-void encode_amplitudes(int lsp_indexes[],
+void encode_amplitudes(int lsp_indexes[],
int *energy_index,
- MODEL *model,
- float Sn[],
+ MODEL *model,
+ float Sn[],
float w[])
{
float lsps[LPC_ORD];
@@ -820,19 +820,19 @@ void encode_amplitudes(int lsp_indexes[],
}
/*---------------------------------------------------------------------------*\
-
- FUNCTION....: decode_amplitudes()
- AUTHOR......: David Rowe
- DATE CREATED: 22/8/2010
+
+ FUNCTION....: decode_amplitudes()
+ AUTHOR......: David Rowe
+ DATE CREATED: 22/8/2010
Given the amplitude quantiser indexes recovers the harmonic
amplitudes.
\*---------------------------------------------------------------------------*/
-float decode_amplitudes(MODEL *model,
+float decode_amplitudes(MODEL *model,
float ak[],
- int lsp_indexes[],
+ int lsp_indexes[],
int energy_index,
float lsps[],
float *e
@@ -844,7 +844,7 @@ float decode_amplitudes(MODEL *model,
bw_expand_lsps(lsps, LPC_ORD);
lsp_to_lpc(lsps, ak, LPC_ORD);
*e = decode_energy(energy_index);
- aks_to_M2(ak, LPC_ORD, model, *e, &snr, 1);
+ aks_to_M2(ak, LPC_ORD, model, *e, &snr, 1);
apply_lpc_correction(model);
return snr;
diff --git a/gr-vocoder/lib/codec2/quantise.h b/gr-vocoder/lib/codec2/quantise.h
index 90a3661ff..42b05f43b 100644
--- a/gr-vocoder/lib/codec2/quantise.h
+++ b/gr-vocoder/lib/codec2/quantise.h
@@ -1,11 +1,11 @@
/*---------------------------------------------------------------------------*\
-
+
FILE........: quantise.h
- AUTHOR......: David Rowe
- DATE CREATED: 31/5/92
-
- Quantisation functions for the sinusoidal coder.
-
+ AUTHOR......: David Rowe
+ DATE CREATED: 31/5/92
+
+ Quantisation functions for the sinusoidal coder.
+
\*---------------------------------------------------------------------------*/
/*
@@ -36,7 +36,7 @@
void quantise_init();
float lpc_model_amplitudes(float Sn[], float w[], MODEL *model, int order,
int lsp,float ak[]);
-void aks_to_M2(float ak[], int order, MODEL *model, float E, float *snr,
+void aks_to_M2(float ak[], int order, MODEL *model, float E, float *snr,
int dump);
int encode_Wo(float Wo);
@@ -45,15 +45,15 @@ float decode_Wo(int index);
void encode_lsps(int indexes[], float lsp[], int order);
void decode_lsps(float lsp[], int indexes[], int order);
void lspd_quantise(float lsp[], float lsp_[], int order);
-void lspdvq_quantise(float lsp[], float lsp_[], int order);
+void lspdvq_quantise(float lsp[], float lsp_[], int order);
int encode_energy(float e);
float decode_energy(int index);
-void encode_amplitudes(int lsp_indexes[],
+void encode_amplitudes(int lsp_indexes[],
int *energy_index,
- MODEL *model,
- float Sn[],
+ MODEL *model,
+ float Sn[],
float w[]);
float decode_amplitudes(MODEL *model,
@@ -71,7 +71,7 @@ int lsp_bits(int i);
void apply_lpc_correction(MODEL *model);
float speech_to_uq_lsps(float lsp[],
float ak[],
- float Sn[],
+ float Sn[],
float w[],
int order
);
diff --git a/gr-vocoder/lib/codec2/sine.c b/gr-vocoder/lib/codec2/sine.c
index 45cc9de71..b30f9abad 100644
--- a/gr-vocoder/lib/codec2/sine.c
+++ b/gr-vocoder/lib/codec2/sine.c
@@ -1,11 +1,11 @@
/*---------------------------------------------------------------------------*\
-
+
FILE........: sine.c
- AUTHOR......: David Rowe
+ AUTHOR......: David Rowe
DATE CREATED: 19/8/2010
-
+
Sinusoidal analysis and synthesis functions.
-
+
\*---------------------------------------------------------------------------*/
/*
@@ -26,9 +26,9 @@
*/
/*---------------------------------------------------------------------------*\
-
- INCLUDES
-
+
+ INCLUDES
+
\*---------------------------------------------------------------------------*/
#include <stdlib.h>
@@ -42,25 +42,25 @@
#define HPF_BETA 0.125
/*---------------------------------------------------------------------------*\
-
- HEADERS
-
+
+ HEADERS
+
\*---------------------------------------------------------------------------*/
-void hs_pitch_refinement(MODEL *model, COMP Sw[], float pmin, float pmax,
+void hs_pitch_refinement(MODEL *model, COMP Sw[], float pmin, float pmax,
float pstep);
/*---------------------------------------------------------------------------*\
-
- FUNCTIONS
-
+
+ FUNCTIONS
+
\*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*\
-
- FUNCTION....: make_analysis_window
- AUTHOR......: David Rowe
- DATE CREATED: 11/5/94
+
+ FUNCTION....: make_analysis_window
+ AUTHOR......: David Rowe
+ DATE CREATED: 11/5/94
Init function that generates the time domain analysis window and it's DFT.
@@ -72,15 +72,15 @@ void make_analysis_window(float w[],COMP W[])
COMP temp;
int i,j;
- /*
+ /*
Generate Hamming window centered on M-sample pitch analysis window
-
+
0 M/2 M-1
|-------------|-------------|
|-------|-------|
NW samples
- All our analysis/synthsis is centred on the M/2 sample.
+ All our analysis/synthsis is centred on the M/2 sample.
*/
m = 0.0;
@@ -92,7 +92,7 @@ void make_analysis_window(float w[],COMP W[])
}
for(i=M/2+NW/2; i<M; i++)
w[i] = 0.0;
-
+
/* Normalise - makes freq domain amplitude estimation straight
forward */
@@ -101,7 +101,7 @@ void make_analysis_window(float w[],COMP W[])
w[i] *= m;
}
- /*
+ /*
Generate DFT of analysis window, used for later processing. Note
we modulo FFT_ENC shift the time domain window w[], this makes the
imaginary part of the DFT W[] equal to zero as the shifted w[] is
@@ -112,13 +112,13 @@ void make_analysis_window(float w[],COMP W[])
|-------------------------|
----\ /----
- \ /
+ \ /
\ / <- shifted version of window w[n]
\ /
\ /
-------
- |---------| |---------|
+ |---------| |---------|
NW/2 NW/2
*/
@@ -133,8 +133,8 @@ void make_analysis_window(float w[],COMP W[])
fft(&W[0].real,FFT_ENC,-1); /* "Numerical Recipes in C" FFT */
- /*
- Re-arrange W[] to be symmetrical about FFT_ENC/2. Makes later
+ /*
+ Re-arrange W[] to be symmetrical about FFT_ENC/2. Makes later
analysis convenient.
Before:
@@ -142,21 +142,21 @@ void make_analysis_window(float w[],COMP W[])
0 FFT_ENC-1
|----------|---------|
- __ _
- \ /
- \_______________/
+ __ _
+ \ /
+ \_______________/
After:
0 FFT_ENC-1
|----------|---------|
- ___
- / \
- ________/ \_______
+ ___
+ / \
+ ________/ \_______
*/
-
-
+
+
for(i=0; i<FFT_ENC/2; i++) {
temp.real = W[i].real;
temp.imag = W[i].imag;
@@ -169,15 +169,15 @@ void make_analysis_window(float w[],COMP W[])
}
/*---------------------------------------------------------------------------*\
-
- FUNCTION....: hpf
- AUTHOR......: David Rowe
+
+ FUNCTION....: hpf
+ AUTHOR......: David Rowe
DATE CREATED: 16 Nov 2010
High pass filter with a -3dB point of about 160Hz.
y(n) = -HPF_BETA*y(n-1) + x(n) - x(n-1)
-
+
\*---------------------------------------------------------------------------*/
float hpf(float x, float states[])
@@ -189,10 +189,10 @@ float hpf(float x, float states[])
}
/*---------------------------------------------------------------------------*\
-
- FUNCTION....: dft_speech
- AUTHOR......: David Rowe
- DATE CREATED: 27/5/94
+
+ FUNCTION....: dft_speech
+ AUTHOR......: David Rowe
+ DATE CREATED: 27/5/94
Finds the DFT of the current speech input speech frame.
@@ -201,7 +201,7 @@ float hpf(float x, float states[])
void dft_speech(COMP Sw[], float Sn[], float w[])
{
int i;
-
+
for(i=0; i<FFT_ENC; i++) {
Sw[i].real = 0.0;
Sw[i].imag = 0.0;
@@ -209,7 +209,7 @@ void dft_speech(COMP Sw[], float Sn[], float w[])
/* Centre analysis window on time axis, we need to arrange input
to FFT this way to make FFT phases correct */
-
+
/* move 2nd half to start of FFT input vector */
for(i=0; i<NW/2; i++)
@@ -224,10 +224,10 @@ void dft_speech(COMP Sw[], float Sn[], float w[])
}
/*---------------------------------------------------------------------------*\
-
- FUNCTION....: two_stage_pitch_refinement
+
+ FUNCTION....: two_stage_pitch_refinement
AUTHOR......: David Rowe
- DATE CREATED: 27/5/94
+ DATE CREATED: 27/5/94
Refines the current pitch estimate using the harmonic sum pitch
estimation technique.
@@ -236,7 +236,7 @@ void dft_speech(COMP Sw[], float Sn[], float w[])
void two_stage_pitch_refinement(MODEL *model, COMP Sw[])
{
- float pmin,pmax,pstep; /* pitch refinment minimum, maximum and step */
+ float pmin,pmax,pstep; /* pitch refinment minimum, maximum and step */
/* Coarse refinement */
@@ -244,16 +244,16 @@ void two_stage_pitch_refinement(MODEL *model, COMP Sw[])
pmin = TWO_PI/model->Wo - 5;
pstep = 1.0;
hs_pitch_refinement(model,Sw,pmin,pmax,pstep);
-
+
/* Fine refinement */
-
+
pmax = TWO_PI/model->Wo + 1;
pmin = TWO_PI/model->Wo - 1;
pstep = 0.25;
hs_pitch_refinement(model,Sw,pmin,pmax,pstep);
-
+
/* Limit range */
-
+
if (model->Wo < TWO_PI/P_MAX)
model->Wo = TWO_PI/P_MAX;
if (model->Wo > TWO_PI/P_MIN)
@@ -263,20 +263,20 @@ void two_stage_pitch_refinement(MODEL *model, COMP Sw[])
}
/*---------------------------------------------------------------------------*\
-
- FUNCTION....: hs_pitch_refinement
- AUTHOR......: David Rowe
- DATE CREATED: 27/5/94
-
- Harmonic sum pitch refinement function.
-
- pmin pitch search range minimum
- pmax pitch search range maximum
- step pitch search step size
- model current pitch estimate in model.Wo
-
- model refined pitch estimate in model.Wo
-
+
+ FUNCTION....: hs_pitch_refinement
+ AUTHOR......: David Rowe
+ DATE CREATED: 27/5/94
+
+ Harmonic sum pitch refinement function.
+
+ pmin pitch search range minimum
+ pmax pitch search range maximum
+ step pitch search step size
+ model current pitch estimate in model.Wo
+
+ model refined pitch estimate in model.Wo
+
\*---------------------------------------------------------------------------*/
void hs_pitch_refinement(MODEL *model, COMP Sw[], float pmin, float pmax, float pstep)
@@ -289,14 +289,14 @@ void hs_pitch_refinement(MODEL *model, COMP Sw[], float pmin, float pmax, float
float Em; /* mamimum energy */
float r; /* number of rads/bin */
float p; /* current pitch */
-
+
/* Initialisation */
-
+
model->L = PI/model->Wo; /* use initial pitch est. for L */
Wom = model->Wo;
Em = 0.0;
r = TWO_PI/FFT_ENC;
-
+
/* Determine harmonic sum for a range of Wo values */
for(p=pmin; p<=pmax; p+=pstep) {
@@ -308,10 +308,10 @@ void hs_pitch_refinement(MODEL *model, COMP Sw[], float pmin, float pmax, float
for(m=1; m<=model->L; m++) {
b = floor(m*Wo/r + 0.5);
E += Sw[b].real*Sw[b].real + Sw[b].imag*Sw[b].imag;
- }
+ }
/* Compare to see if this is a maximum */
-
+
if (E > Em) {
Em = E;
Wom = Wo;
@@ -322,13 +322,13 @@ void hs_pitch_refinement(MODEL *model, COMP Sw[], float pmin, float pmax, float
}
/*---------------------------------------------------------------------------*\
-
- FUNCTION....: estimate_amplitudes
- AUTHOR......: David Rowe
- DATE CREATED: 27/5/94
-
- Estimates the complex amplitudes of the harmonics.
-
+
+ FUNCTION....: estimate_amplitudes
+ AUTHOR......: David Rowe
+ DATE CREATED: 27/5/94
+
+ Estimates the complex amplitudes of the harmonics.
+
\*---------------------------------------------------------------------------*/
void estimate_amplitudes(MODEL *model, COMP Sw[], COMP W[])
@@ -369,14 +369,14 @@ void estimate_amplitudes(MODEL *model, COMP Sw[], COMP W[])
}
/*---------------------------------------------------------------------------*\
-
- est_voicing_mbe()
-
+
+ est_voicing_mbe()
+
Returns the error of the MBE cost function for a fiven F0.
Note: I think a lot of the operations below can be simplified as
W[].imag = 0 and has been normalised such that den always equals 1.
-
+
\*---------------------------------------------------------------------------*/
float est_voicing_mbe(
@@ -393,7 +393,7 @@ float est_voicing_mbe(
int offset; /* centers Hw[] about current harmonic */
float den; /* denominator of Am expression */
float error; /* accumulated error between original and synthesised */
- float Wo;
+ float Wo;
float sig, snr;
float elow, ehigh, eratio;
float dF0, sixty;
@@ -445,16 +445,16 @@ float est_voicing_mbe(
error += Ew[m].imag*Ew[m].imag;
}
}
-
+
snr = 10.0*log10(sig/error);
if (snr > V_THRESH)
model->voiced = 1;
else
model->voiced = 0;
-
+
/* post processing, helps clean up some voicing errors ------------------*/
- /*
+ /*
Determine the ratio of low freancy to high frequency energy,
voiced speech tends to be dominated by low frequency energy,
unvoiced by high frequency. This measure can be used to
@@ -488,7 +488,7 @@ float est_voicing_mbe(
/* If pitch is jumping about it's likely this is UV */
dF0 = (model->Wo - prev_Wo)*FS/TWO_PI;
- if (fabs(dF0) > 15.0)
+ if (fabs(dF0) > 15.0)
model->voiced = 0;
/* A common source of Type 2 errors is the pitch estimator
@@ -507,10 +507,10 @@ float est_voicing_mbe(
}
/*---------------------------------------------------------------------------*\
-
- FUNCTION....: make_synthesis_window
- AUTHOR......: David Rowe
- DATE CREATED: 11/5/94
+
+ FUNCTION....: make_synthesis_window
+ AUTHOR......: David Rowe
+ DATE CREATED: 11/5/94
Init function that generates the trapezoidal (Parzen) sythesis window.
@@ -539,15 +539,15 @@ void make_synthesis_window(float Pn[])
}
/*---------------------------------------------------------------------------*\
-
- FUNCTION....: synthesise
- AUTHOR......: David Rowe
- DATE CREATED: 20/2/95
-
+
+ FUNCTION....: synthesise
+ AUTHOR......: David Rowe
+ DATE CREATED: 20/2/95
+
Synthesise a speech signal in the frequency domain from the
sinusodal model parameters. Uses overlap-add with a trapezoidal
window to smoothly interpolate betwen frames.
-
+
\*---------------------------------------------------------------------------*/
void synthesise(
@@ -579,7 +579,7 @@ void synthesise(
gives better results for synthesis frames greater than 10ms. Inverse
FFT synthesis using a 512 pt FFT works well for 10ms window. I think
(but am not sure) that the problem is realted to the quantisation of
- the harmonic frequencies to the FFT bin size, e.g. there is a
+ the harmonic frequencies to the FFT bin size, e.g. there is a
8000/512 Hz step between FFT bins. For some reason this makes
the speech from longer frame > 10ms sound poor. The effect can also
be seen when synthesising test signals like single sine waves, some
@@ -619,7 +619,7 @@ void synthesise(
}
for(i=N-1,j=0; i<2*N; i++,j++)
Sw_[j].real += 2.0*model->A[l]*cos(j*model->Wo*l + model->phi[l]);
- }
+ }
#endif
/* Overlap add to previous samples */
diff --git a/gr-vocoder/lib/codec2/sine.h b/gr-vocoder/lib/codec2/sine.h
index ae578bf70..f223e2afc 100644
--- a/gr-vocoder/lib/codec2/sine.h
+++ b/gr-vocoder/lib/codec2/sine.h
@@ -1,11 +1,11 @@
/*---------------------------------------------------------------------------*\
-
+
FILE........: sine.h
- AUTHOR......: David Rowe
+ AUTHOR......: David Rowe
DATE CREATED: 1/11/94
-
+
Header file for sinusoidal analysis and synthesis functions.
-
+
\*---------------------------------------------------------------------------*/
/*
@@ -36,7 +36,7 @@ float hpf(float x, float states[]);
void dft_speech(COMP Sw[], float Sn[], float w[]);
void two_stage_pitch_refinement(MODEL *model, COMP Sw[]);
void estimate_amplitudes(MODEL *model, COMP Sw[], COMP W[]);
-float est_voicing_mbe(MODEL *model, COMP Sw[], COMP W[], COMP Sw_[],COMP Ew[],
+float est_voicing_mbe(MODEL *model, COMP Sw[], COMP W[], COMP Sw_[],COMP Ew[],
float prev_Wo);
void make_synthesis_window(float Pn[]);
void synthesise(float Sn_[], MODEL *model, float Pn[], int shift);
diff --git a/gr-vocoder/lib/g7xx/g72x.h b/gr-vocoder/lib/g7xx/g72x.h
index 33807171a..9d906cae7 100644
--- a/gr-vocoder/lib/g7xx/g72x.h
+++ b/gr-vocoder/lib/g7xx/g72x.h
@@ -103,36 +103,36 @@ extern int g723_40_decoder(
extern int
quantize(
- int d,
- int y,
- short *table,
+ int d,
+ int y,
+ short *table,
int size);
extern int reconstruct(int,int,int);void
extern update(
- int code_size,
- int y,
- int wi,
- int fi,
- int dq,
- int sr,
- int dqsez,
+ int code_size,
+ int y,
+ int wi,
+ int fi,
+ int dq,
+ int sr,
+ int dqsez,
struct g72x_state *state_ptr);
extern int
tandem_adjust_alaw(
- int sr,
- int se,
- int y,
- int i,
+ int sr,
+ int se,
+ int y,
+ int i,
int sign,
short *qtab);
extern int
tandem_adjust_ulaw(
- int sr,
- int se,
- int y,
- int i,
+ int sr,
+ int se,
+ int y,
+ int i,
int sign,
short *qtab);
diff --git a/gr-vocoder/lib/gsm/README.gsm b/gr-vocoder/lib/gsm/README.gsm
index cb6af85cf..10470e04e 100644
--- a/gr-vocoder/lib/gsm/README.gsm
+++ b/gr-vocoder/lib/gsm/README.gsm
@@ -17,7 +17,7 @@ rate, i.e. a frame rate of 50 Hz) into 260 bits; for compatibility
with typical UNIX applications, our implementation turns frames of 160
16-bit linear samples into 33-byte frames (1650 Bytes/s).
The quality of the algorithm is good enough for reliable speaker
-recognition; even music often survives transcoding in recognizable
+recognition; even music often survives transcoding in recognizable
form (given the bandwidth limitations of 8 kHz sampling rate).
The interfaces offered are a front end modelled after compress(1), and
diff --git a/gr-vocoder/lib/gsm/add.c b/gr-vocoder/lib/gsm/add.c
index 21ccfabe7..4118107b1 100644
--- a/gr-vocoder/lib/gsm/add.c
+++ b/gr-vocoder/lib/gsm/add.c
@@ -88,7 +88,7 @@ longword gsm_L_sub P2((a,b), longword a, longword b)
}
else if (b <= 0) return a - b;
else {
- /* a<0, b>0 */
+ /* a<0, b>0 */
ulongword A = (ulongword)-(a + 1) + b;
return A >= MAX_LONGWORD ? MIN_LONGWORD : -(longword)A - 1;
@@ -120,7 +120,7 @@ word gsm_norm P1((a), longword a )
* variable L_var1 for positive values on the interval
*
* with minimum of
- * minimum of 1073741824 (01000000000000000000000000000000) and
+ * minimum of 1073741824 (01000000000000000000000000000000) and
* maximum of 2147483647 (01111111111111111111111111111111)
*
*
@@ -141,7 +141,7 @@ word gsm_norm P1((a), longword a )
a = ~a;
}
- return a & 0xffff0000
+ return a & 0xffff0000
? ( a & 0xff000000
? -1 + bitoff[ 0xFF & (a >> 24) ]
: 7 + bitoff[ 0xFF & (a >> 16) ] )
@@ -194,7 +194,7 @@ word gsm_asr P2((a,n), word a, int n)
# endif
}
-/*
+/*
* (From p. 46, end of section 4.2.5)
*
* NOTE: The following lines gives [sic] one correct implementation
diff --git a/gr-vocoder/lib/gsm/code.c b/gr-vocoder/lib/gsm/code.c
index 19af507b7..68ea05226 100644
--- a/gr-vocoder/lib/gsm/code.c
+++ b/gr-vocoder/lib/gsm/code.c
@@ -21,8 +21,8 @@
#include "proto.h"
#include <string.h>
-/*
- * 4.2 FIXED POINT IMPLEMENTATION OF THE RPE-LTP CODER
+/*
+ * 4.2 FIXED POINT IMPLEMENTATION OF THE RPE-LTP CODER
*/
void Gsm_Coder P8((S,s,LARc,Nc,bc,Mc,xmaxc,xMc),
@@ -35,7 +35,7 @@ void Gsm_Coder P8((S,s,LARc,Nc,bc,Mc,xmaxc,xMc),
* The RPE-LTD coder works on a frame by frame basis. The length of
* the frame is equal to 160 samples. Some computations are done
* once per frame to produce at the output of the coder the
- * LARc[1..8] parameters which are the coded LAR coefficients and
+ * LARc[1..8] parameters which are the coded LAR coefficients and
* also to realize the inverse filtering operation for the entire
* frame (160 samples of signal d[0..159]). These parts produce at
* the output of the coder:
diff --git a/gr-vocoder/lib/gsm/debug.c b/gr-vocoder/lib/gsm/debug.c
index e05210428..58d1dbcac 100644
--- a/gr-vocoder/lib/gsm/debug.c
+++ b/gr-vocoder/lib/gsm/debug.c
@@ -18,7 +18,7 @@
#include <stdio.h>
#include "proto.h"
-void gsm_debug_words P4( (name, from, to, ptr),
+void gsm_debug_words P4( (name, from, to, ptr),
char * name,
int from,
int to,
diff --git a/gr-vocoder/lib/gsm/gsm.h b/gr-vocoder/lib/gsm/gsm.h
index 990e42af5..a6d5e4705 100644
--- a/gr-vocoder/lib/gsm/gsm.h
+++ b/gr-vocoder/lib/gsm/gsm.h
@@ -57,7 +57,7 @@ typedef gsm_byte gsm_frame[33]; /* 33 * 8 bits */
#define GSM_SAMPLES_PER_FRAME 160
extern gsm gsm_create GSM_P((void));
-extern void gsm_destroy GSM_P((gsm));
+extern void gsm_destroy GSM_P((gsm));
extern int gsm_print GSM_P((FILE *, gsm, gsm_byte *));
extern int gsm_option GSM_P((gsm, int, int *));
diff --git a/gr-vocoder/lib/gsm/gsm_decode.c b/gr-vocoder/lib/gsm/gsm_decode.c
index 7318ba2d4..7ebf35dd0 100644
--- a/gr-vocoder/lib/gsm/gsm_decode.c
+++ b/gr-vocoder/lib/gsm/gsm_decode.c
@@ -206,7 +206,7 @@ int gsm_decode P3((s, c, target), gsm s, gsm_byte * c, gsm_signal * target)
xmaxc[2] = sr & 0x3f; sr >>= 6;
xmc[26] = sr & 0x7; sr >>= 3;
xmc[27] = sr & 0x7; sr >>= 3;
- sr |= (uword)*c++ << 1;
+ sr |= (uword)*c++ << 1;
xmc[28] = sr & 0x7; sr >>= 3;
xmc[29] = sr & 0x7; sr >>= 3;
xmc[30] = sr & 0x7; sr >>= 3;
@@ -223,7 +223,7 @@ int gsm_decode P3((s, c, target), gsm s, gsm_byte * c, gsm_signal * target)
xmc[38] = sr & 0x7; sr >>= 3;
sr = *c++;
Nc[3] = sr & 0x7f; sr >>= 7;
- sr |= (uword)*c++ << 1;
+ sr |= (uword)*c++ << 1;
bc[3] = sr & 0x3; sr >>= 2;
Mc[3] = sr & 0x3; sr >>= 2;
sr |= (uword)*c++ << 5;
diff --git a/gr-vocoder/lib/gsm/gsm_explode.c b/gr-vocoder/lib/gsm/gsm_explode.c
index a906fc2ed..744ded5af 100644
--- a/gr-vocoder/lib/gsm/gsm_explode.c
+++ b/gr-vocoder/lib/gsm/gsm_explode.c
@@ -228,7 +228,7 @@ int gsm_explode P3((s, c, target), gsm s, gsm_byte * c, gsm_signal * target)
#define xmc (target + 46 - 26)
xmc[26] = sr & 0x7; sr >>= 3;
xmc[27] = sr & 0x7; sr >>= 3;
- sr |= (uword)*c++ << 1;
+ sr |= (uword)*c++ << 1;
xmc[28] = sr & 0x7; sr >>= 3;
xmc[29] = sr & 0x7; sr >>= 3;
xmc[30] = sr & 0x7; sr >>= 3;
@@ -245,7 +245,7 @@ int gsm_explode P3((s, c, target), gsm s, gsm_byte * c, gsm_signal * target)
xmc[38] = sr & 0x7; sr >>= 3;
sr = *c++;
Nc[3] = sr & 0x7f; sr >>= 7;
- sr |= (uword)*c++ << 1;
+ sr |= (uword)*c++ << 1;
bc[3] = sr & 0x3; sr >>= 2;
Mc[3] = sr & 0x3; sr >>= 2;
sr |= (uword)*c++ << 5;
@@ -273,7 +273,7 @@ int gsm_explode P3((s, c, target), gsm s, gsm_byte * c, gsm_signal * target)
xmc[51] = sr & 0x7; sr >>= 3;
}
}
- else
+ else
#endif
{
/* GSM_MAGIC = (*c >> 4) & 0xF; */
diff --git a/gr-vocoder/lib/gsm/gsm_implode.c b/gr-vocoder/lib/gsm/gsm_implode.c
index 453b8cf39..08ebf5853 100644
--- a/gr-vocoder/lib/gsm/gsm_implode.c
+++ b/gr-vocoder/lib/gsm/gsm_implode.c
@@ -316,7 +316,7 @@ void gsm_implode P3((s, source, c), gsm s, gsm_signal * source, gsm_byte * c)
#define xmc (source + 46 - 26)
xmc[26] = sr & 0x7; sr >>= 3;
xmc[27] = sr & 0x7; sr >>= 3;
- sr |= (uword)*c++ << 1;
+ sr |= (uword)*c++ << 1;
xmc[28] = sr & 0x7; sr >>= 3;
xmc[29] = sr & 0x7; sr >>= 3;
xmc[30] = sr & 0x7; sr >>= 3;
@@ -333,7 +333,7 @@ void gsm_implode P3((s, source, c), gsm s, gsm_signal * source, gsm_byte * c)
xmc[38] = sr & 0x7; sr >>= 3;
sr = *c++;
Nc[3] = sr & 0x7f; sr >>= 7;
- sr |= (uword)*c++ << 1;
+ sr |= (uword)*c++ << 1;
bc[3] = sr & 0x3; sr >>= 2;
Mc[3] = sr & 0x3; sr >>= 2;
sr |= (uword)*c++ << 5;
@@ -361,7 +361,7 @@ void gsm_implode P3((s, source, c), gsm s, gsm_signal * source, gsm_byte * c)
}
}
else
-#endif
+#endif
{
*c++ = ((GSM_MAGIC & 0xF) << 4) /* 1 */
diff --git a/gr-vocoder/lib/gsm/gsm_option.c b/gr-vocoder/lib/gsm/gsm_option.c
index 280780132..303170a9c 100644
--- a/gr-vocoder/lib/gsm/gsm_option.c
+++ b/gr-vocoder/lib/gsm/gsm_option.c
@@ -56,7 +56,7 @@ int gsm_option P3((r, opt, val), gsm r, int opt, int * val)
case GSM_OPT_WAV49:
-#ifdef WAV49
+#ifdef WAV49
result = r->wav_fmt;
if (val) r->wav_fmt = !!*val;
#endif
diff --git a/gr-vocoder/lib/gsm/long_term.c b/gr-vocoder/lib/gsm/long_term.c
index fd67bda19..7dd9631e0 100644
--- a/gr-vocoder/lib/gsm/long_term.c
+++ b/gr-vocoder/lib/gsm/long_term.c
@@ -330,7 +330,7 @@ static void Cut_Calculation_of_the_LTP_parameters P5((st, d,dp,bc_out,Nc_out),
else scal = 6 - temp;
assert(scal >= 0);
- ltp_cut = (longword)SASR(dmax, scal) * st->ltp_cut / 100;
+ ltp_cut = (longword)SASR(dmax, scal) * st->ltp_cut / 100;
/* Initialization of a working array wt
@@ -362,7 +362,7 @@ static void Cut_Calculation_of_the_LTP_parameters P5((st, d,dp,bc_out,Nc_out),
register float a = lp[-8], b = lp[-7], c = lp[-6],
d = lp[-5], e = lp[-4], f = lp[-3],
g = lp[-2], h = lp[-1];
- register float E;
+ register float E;
register float S0 = 0, S1 = 0, S2 = 0, S3 = 0, S4 = 0,
S5 = 0, S6 = 0, S7 = 0, S8 = 0;
@@ -528,7 +528,7 @@ static void Calculation_of_the_LTP_parameters P4((d,dp,bc_out,Nc_out),
register float a = lp[-8], b = lp[-7], c = lp[-6],
d = lp[-5], e = lp[-4], f = lp[-3],
g = lp[-2], h = lp[-1];
- register float E;
+ register float E;
register float S0 = 0, S1 = 0, S2 = 0, S3 = 0, S4 = 0,
S5 = 0, S6 = 0, S7 = 0, S8 = 0;
@@ -742,7 +742,7 @@ static void Fast_Calculation_of_the_LTP_parameters P4((d,dp,bc_out,Nc_out),
register float a = lp[-8], b = lp[-7], c = lp[-6],
d = lp[-5], e = lp[-4], f = lp[-3],
g = lp[-2], h = lp[-1];
- register float E;
+ register float E;
register float S0 = 0, S1 = 0, S2 = 0, S3 = 0, S4 = 0,
S5 = 0, S6 = 0, S7 = 0, S8 = 0;
@@ -860,7 +860,7 @@ static void Long_term_analysis_filtering P6((bc,Nc,dp,d,dpp,e),
case 0: STEP( 3277 ); break;
case 1: STEP( 11469 ); break;
case 2: STEP( 21299 ); break;
- case 3: STEP( 32767 ); break;
+ case 3: STEP( 32767 ); break;
}
}
@@ -881,7 +881,7 @@ void Gsm_Long_Term_Predictor P7((S,d,dp,e,dpp,Nc,bc), /* 4x for 160 samples */
assert( dpp); assert( Nc ); assert( bc );
#if defined(FAST) && defined(USE_FLOAT_MUL)
- if (S->fast)
+ if (S->fast)
#if defined (LTP_CUT)
if (S->ltp_cut)
Cut_Fast_Calculation_of_the_LTP_parameters(S,
@@ -889,7 +889,7 @@ void Gsm_Long_Term_Predictor P7((S,d,dp,e,dpp,Nc,bc), /* 4x for 160 samples */
else
#endif /* LTP_CUT */
Fast_Calculation_of_the_LTP_parameters(d, dp, bc, Nc );
- else
+ else
#endif /* FAST & USE_FLOAT_MUL */
#ifdef LTP_CUT
if (S->ltp_cut)
@@ -930,7 +930,7 @@ void Gsm_Long_Term_Synthesis_Filtering P5((S,Ncr,bcr,erp,drp),
*/
brp = gsm_QLB[ bcr ];
- /* Computation of the reconstructed short term residual
+ /* Computation of the reconstructed short term residual
* signal drp[0..39]
*/
assert(brp != MIN_WORD);
diff --git a/gr-vocoder/lib/gsm/lpc.c b/gr-vocoder/lib/gsm/lpc.c
index ac2b8a9eb..bc1695c41 100644
--- a/gr-vocoder/lib/gsm/lpc.c
+++ b/gr-vocoder/lib/gsm/lpc.c
@@ -69,7 +69,7 @@ static void Autocorrelation P2((s, L_ACF),
float_s[k] = (float) \
(s[k] = GSM_MULT_R(s[k], 16384 >> (n-1)));\
break;
-# else
+# else
# define SCALE(n) \
case n: for (k = 0; k <= 159; k++) \
s[k] = GSM_MULT_R( s[k], 16384 >> (n-1) );\
@@ -133,13 +133,13 @@ static void Autocorrelation P2((s, L_ACF),
STEP(5); STEP(6); STEP(7); STEP(8);
}
- for (k = 9; k--; L_ACF[k] <<= 1) ;
+ for (k = 9; k--; L_ACF[k] <<= 1) ;
}
/* Rescaling of the array s[0..159]
*/
if (scalauto > 0) {
- assert(scalauto <= 4);
+ assert(scalauto <= 4);
for (k = 160; k--; *s++ <<= scalauto) ;
}
}
@@ -224,7 +224,7 @@ static void Reflection_coefficients P2( (L_ACF, r),
assert(*r >= 0);
if (P[1] > 0) *r = -*r; /* r[n] = sub(0, r[n]) */
assert (*r != MIN_WORD);
- if (n == 8) return;
+ if (n == 8) return;
/* Schur recursion
*/
@@ -294,7 +294,7 @@ static void Quantization_and_coding P1((LAR),
/* This procedure needs four tables; the following equations
* give the optimum scaling for the constants:
- *
+ *
* A[0..7] = integer( real_A[0..7] * 1024 )
* B[0..7] = integer( real_B[0..7] * 512 )
* MAC[0..7] = maximum of the LARc[0..7]
diff --git a/gr-vocoder/lib/gsm/preprocess.c b/gr-vocoder/lib/gsm/preprocess.c
index 1e1bbf8b0..abc47c72b 100644
--- a/gr-vocoder/lib/gsm/preprocess.c
+++ b/gr-vocoder/lib/gsm/preprocess.c
@@ -15,7 +15,7 @@
#include "proto.h"
/* 4.2.0 .. 4.2.3 PREPROCESSING SECTION
- *
+ *
* After A-law to linear conversion (or directly from the
* Ato D converter) the following scaling is assumed for
* input to the RPE-LTP algorithm:
@@ -26,7 +26,7 @@
* Where S is the sign bit, v a valid bit, and * a "don't care" bit.
* The original signal is called sop[..]
*
- * out: 0.1................... 12
+ * out: 0.1................... 12
* S.S.v.v.v.v.v.v.v.v.v.v.v.v.0.0
*/
@@ -66,7 +66,7 @@ void Gsm_Preprocess P3((S, s, so),
/* 4.2.2 Offset compensation
- *
+ *
* This part implements a high-pass filter and requires extended
* arithmetic precision for the recursive part of this filter.
* The input of this procedure is the array so[0...159] and the
diff --git a/gr-vocoder/lib/gsm/private.h b/gr-vocoder/lib/gsm/private.h
index 6b538cc27..ca42cd537 100644
--- a/gr-vocoder/lib/gsm/private.h
+++ b/gr-vocoder/lib/gsm/private.h
@@ -82,10 +82,10 @@ extern longword gsm_L_asr P((longword a, int n));
extern word gsm_asr P((word a, int n));
/*
- * Inlined functions from add.h
+ * Inlined functions from add.h
*/
-/*
+/*
* #define GSM_MULT_R(a, b) (* word a, word b, !(a == b == MIN_WORD) *) \
* (0x0FFFF & SASR(((longword)(a) * (longword)(b) + 16384), 15))
*/
@@ -170,10 +170,10 @@ extern void Gsm_Preprocess P((
extern void Gsm_Encoding P((
struct gsm_state * S,
- word * e,
- word * ep,
+ word * e,
+ word * ep,
word * xmaxc,
- word * Mc,
+ word * Mc,
word * xMc));
extern void Gsm_Short_Term_Analysis_Filter P((
diff --git a/gr-vocoder/lib/gsm/proto.h b/gr-vocoder/lib/gsm/proto.h
index 87cf05e8a..ea60abfe7 100644
--- a/gr-vocoder/lib/gsm/proto.h
+++ b/gr-vocoder/lib/gsm/proto.h
@@ -40,7 +40,7 @@
# define P1(x, a) (a)
# define P2(x, a, b) (a, b)
# define P3(x, a, b, c) (a, b, c)
-# define P4(x, a, b, c, d) (a, b, c, d)
+# define P4(x, a, b, c, d) (a, b, c, d)
# define P5(x, a, b, c, d, e) (a, b, c, d, e)
# define P6(x, a, b, c, d, e, f) (a, b, c, d, e, f)
# define P7(x, a, b, c, d, e, f, g) (a, b, c, d, e, f, g)
diff --git a/gr-vocoder/lib/gsm/rpe.c b/gr-vocoder/lib/gsm/rpe.c
index 8a6b81fae..bdc78910e 100644
--- a/gr-vocoder/lib/gsm/rpe.c
+++ b/gr-vocoder/lib/gsm/rpe.c
@@ -27,7 +27,7 @@ static void Weighting_filter P2((e, x),
* The coefficients of the weighting filter are stored in a table
* (see table 4.4). The following scaling is used:
*
- * H[0..10] = integer( real_H[ 0..10] * 8192 );
+ * H[0..10] = integer( real_H[ 0..10] * 8192 );
*/
{
/* word wt[ 50 ]; */
@@ -48,7 +48,7 @@ static void Weighting_filter P2((e, x),
e -= 5;
/* Compute the signal x[0..39]
- */
+ */
for (k = 0; k <= 39; k++) {
L_result = 8192 >> 1;
@@ -63,7 +63,7 @@ static void Weighting_filter P2((e, x),
#define STEP( i, H ) (e[ k + i ] * (longword)H)
/* Every one of these multiplications is done twice --
- * but I don't see an elegant way to optimize this.
+ * but I don't see an elegant way to optimize this.
* Do you?
*/
@@ -81,16 +81,16 @@ static void Weighting_filter P2((e, x),
L_result += STEP( 10, -134 ) ;
#else
L_result +=
- STEP( 0, -134 )
- + STEP( 1, -374 )
+ STEP( 0, -134 )
+ + STEP( 1, -374 )
/* + STEP( 2, 0 ) */
- + STEP( 3, 2054 )
- + STEP( 4, 5741 )
- + STEP( 5, 8192 )
- + STEP( 6, 5741 )
- + STEP( 7, 2054 )
+ + STEP( 3, 2054 )
+ + STEP( 4, 5741 )
+ + STEP( 5, 8192 )
+ + STEP( 6, 5741 )
+ + STEP( 7, 2054 )
/* + STEP( 8, 0 ) */
- + STEP( 9, -374 )
+ + STEP( 9, -374 )
+ STEP(10, -134 )
;
#endif
@@ -114,7 +114,7 @@ static void Weighting_filter P2((e, x),
/* 4.2.14 */
static void RPE_grid_selection P3((x,xM,Mc_out),
- word * x, /* [0..39] IN */
+ word * x, /* [0..39] IN */
word * xM, /* [0..12] OUT */
word * Mc_out /* OUT */
)
@@ -147,7 +147,7 @@ static void RPE_grid_selection P3((x,xM,Mc_out),
* L_temp = GSM_L_MULT( temp1, temp1 );
* L_result = GSM_L_ADD( L_temp, L_result );
* }
- *
+ *
* if (L_result > EM) {
* Mc = m;
* EM = L_result;
@@ -310,7 +310,7 @@ static void APCM_quantization P5((xM,xMc,mant_out,exp_out,xmaxc_out),
* can be calculated by using the exponent and the mantissa part of
* xmaxc (logarithmic table).
* So, this method avoids any division and uses only a scaling
- * of the RPE samples by a function of the exponent. A direct
+ * of the RPE samples by a function of the exponent. A direct
* multiplication by the inverse of the mantissa (NRFAC[0..7]
* found in table 4.5) gives the 3 bit coded version xMc[0..12]
* of the RPE samples.
@@ -321,7 +321,7 @@ static void APCM_quantization P5((xM,xMc,mant_out,exp_out,xmaxc_out),
*/
assert( exp <= 4096 && exp >= -4096);
- assert( mant >= 0 && mant <= 7 );
+ assert( mant >= 0 && mant <= 7 );
temp1 = 6 - exp; /* normalization by the exponent */
temp2 = gsm_NRFAC[ mant ]; /* inverse mantissa */
@@ -351,7 +351,7 @@ static void APCM_inverse_quantization P4((xMc,mant,exp,xMp),
word mant,
word exp,
register word * xMp) /* [0..12] OUT */
-/*
+/*
* This part is for decoding the RPE sequence of coded xMc[0..12]
* samples to obtain the xMp[0..12] array. Table 4.6 is used to get
* the mantissa of xmaxc (FAC[0..7]).
@@ -361,7 +361,7 @@ static void APCM_inverse_quantization P4((xMc,mant,exp,xMp),
word temp, temp1, temp2, temp3;
longword ltmp;
- assert( mant >= 0 && mant <= 7 );
+ assert( mant >= 0 && mant <= 7 );
temp1 = gsm_FAC[ mant ]; /* see 4.2-15 for mant */
temp2 = gsm_sub( 6, exp ); /* see 4.2-15 for exp */
@@ -438,7 +438,7 @@ void Gsm_Update_of_reconstructed_short_time_residual_signal P3((dpp, ep, dp),
{
int k;
- for (k = 0; k <= 79; k++)
+ for (k = 0; k <= 79; k++)
dp[ -120 + k ] = dp[ -80 + k ];
for (k = 0; k <= 39; k++)
diff --git a/gr-vocoder/lib/gsm/short_term.c b/gr-vocoder/lib/gsm/short_term.c
index 4f5fd7be7..68aabe5bb 100644
--- a/gr-vocoder/lib/gsm/short_term.c
+++ b/gr-vocoder/lib/gsm/short_term.c
@@ -73,7 +73,7 @@ static void Decoding_of_the_coded_Log_Area_Ratios P2((LARc,LARpp),
}
/* 4.2.9 */
-/* Computation of the quantized reflection coefficients
+/* Computation of the quantized reflection coefficients
*/
/* 4.2.9.1 Interpolation of the LARpp[1..8] to get the LARp[1..8]
diff --git a/gr-vocoder/lib/gsm/table.c b/gr-vocoder/lib/gsm/table.c
index 16a04118c..d8366931e 100644
--- a/gr-vocoder/lib/gsm/table.c
+++ b/gr-vocoder/lib/gsm/table.c
@@ -51,7 +51,7 @@ word gsm_QLB[4] = { 3277, 11469, 21299, 32767 };
word gsm_H[11] = {-134, -374, 0, 2054, 5741, 8192, 5741, 2054, 0, -374, -134 };
-/* Table 4.5 Normalized inverse mantissa used to compute xM/xmax
+/* Table 4.5 Normalized inverse mantissa used to compute xM/xmax
*/
/* i 0 1 2 3 4 5 6 7 */
word gsm_NRFAC[8] = { 29128, 26215, 23832, 21846, 20165, 18725, 17476, 16384 };
diff --git a/gr-vocoder/lib/vocoder_alaw_decode_bs.cc b/gr-vocoder/lib/vocoder_alaw_decode_bs.cc
index 7ffdddd81..33c119e05 100644
--- a/gr-vocoder/lib/vocoder_alaw_decode_bs.cc
+++ b/gr-vocoder/lib/vocoder_alaw_decode_bs.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
@@ -50,7 +50,7 @@ vocoder_alaw_decode_bs::~vocoder_alaw_decode_bs()
-int
+int
vocoder_alaw_decode_bs::work(int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items)
@@ -60,6 +60,6 @@ vocoder_alaw_decode_bs::work(int noutput_items,
for(int i = 0; i < noutput_items; i++)
out[i] = alaw2linear(in[i]);
-
+
return noutput_items;
}
diff --git a/gr-vocoder/lib/vocoder_alaw_encode_sb.cc b/gr-vocoder/lib/vocoder_alaw_encode_sb.cc
index e4d975271..ebb953c34 100644
--- a/gr-vocoder/lib/vocoder_alaw_encode_sb.cc
+++ b/gr-vocoder/lib/vocoder_alaw_encode_sb.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
@@ -48,14 +48,14 @@ vocoder_alaw_encode_sb::~vocoder_alaw_encode_sb()
{
}
-int
+int
vocoder_alaw_encode_sb::work(int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items)
{
const short *in = (const short *)input_items[0];
unsigned char *out = (unsigned char *)output_items[0];
-
+
for(int i = 0; i < noutput_items; i++)
out[i] = linear2alaw(in[i]);
diff --git a/gr-vocoder/lib/vocoder_codec2_decode_ps.cc b/gr-vocoder/lib/vocoder_codec2_decode_ps.cc
index b1feb1aaf..8e95c75dd 100644
--- a/gr-vocoder/lib/vocoder_codec2_decode_ps.cc
+++ b/gr-vocoder/lib/vocoder_codec2_decode_ps.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2011 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,
diff --git a/gr-vocoder/lib/vocoder_codec2_encode_sp.cc b/gr-vocoder/lib/vocoder_codec2_encode_sp.cc
index 1f22e38b2..da1c59c43 100644
--- a/gr-vocoder/lib/vocoder_codec2_encode_sp.cc
+++ b/gr-vocoder/lib/vocoder_codec2_encode_sp.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2011 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,
diff --git a/gr-vocoder/lib/vocoder_cvsd_decode_bs.cc b/gr-vocoder/lib/vocoder_cvsd_decode_bs.cc
index baf99f041..8202ec36c 100644
--- a/gr-vocoder/lib/vocoder_cvsd_decode_bs.cc
+++ b/gr-vocoder/lib/vocoder_cvsd_decode_bs.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007,2010,2011 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,
@@ -37,7 +37,7 @@
* Create a new instance of vocoder_cvsd_decode_bs and return
* a boost shared_ptr. This is effectively the public constructor.
*/
-vocoder_cvsd_decode_bs_sptr
+vocoder_cvsd_decode_bs_sptr
vocoder_make_cvsd_decode_bs (short min_step, short max_step, double step_decay,
double accum_decay, int K, int J,
short pos_accum_max, short neg_accum_max)
@@ -47,7 +47,7 @@ vocoder_make_cvsd_decode_bs (short min_step, short max_step, double step_decay,
pos_accum_max, neg_accum_max));
}
-vocoder_cvsd_decode_bs::vocoder_cvsd_decode_bs (short min_step, short max_step, double step_decay,
+vocoder_cvsd_decode_bs::vocoder_cvsd_decode_bs (short min_step, short max_step, double step_decay,
double accum_decay, int K, int J,
short pos_accum_max, short neg_accum_max)
: gr_sync_interpolator ("vocoder_cvsd_decode_bs",
@@ -55,14 +55,14 @@ vocoder_cvsd_decode_bs::vocoder_cvsd_decode_bs (short min_step, short max_step,
gr_make_io_signature (1, 1, sizeof (short)),
8),
d_min_step (min_step), d_max_step(max_step), d_step_decay(step_decay),
- d_accum_decay(accum_decay), d_K(K), d_J(J),
+ d_accum_decay(accum_decay), d_K(K), d_J(J),
d_pos_accum_max(pos_accum_max), d_neg_accum_max(neg_accum_max),
- d_accum(0),
- d_loop_counter(1),
+ d_accum(0),
+ d_loop_counter(1),
d_runner(0),
d_runner_mask(0),
d_stepsize(min_step)
-
+
{
assert(d_K <= 32);
assert(d_J <= d_K);
@@ -78,7 +78,7 @@ unsigned char vocoder_cvsd_decode_bs::cvsd_bitwise_sum (unsigned int input)
{
unsigned int temp=input;
unsigned char bits=0;
-
+
while(temp) {
temp=temp&(temp-1);
bits++;
@@ -91,7 +91,7 @@ int vocoder_cvsd_decode_bs::cvsd_round (double input)
double temp;
temp=input+0.5;
temp=floor(temp);
-
+
return (int)temp;
}
@@ -100,18 +100,18 @@ unsigned int vocoder_cvsd_decode_bs::cvsd_pow (short radix, short power)
double d_radix = (double) radix;
int i_power = (int) power;
double output;
-
+
output=pow(d_radix,i_power);
- return ( (unsigned int) cvsd_round(output));
+ return ( (unsigned int) cvsd_round(output));
}
-int
+int
vocoder_cvsd_decode_bs::work (int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items)
{
-
+
const unsigned char *in = (const unsigned char *) input_items[0];
short *out = (short *) output_items[0];
@@ -122,28 +122,28 @@ vocoder_cvsd_decode_bs::work (int noutput_items,
unsigned int mask=0; // 4 bytes, 0 .. 4,294,967,295
unsigned char input_byte=0; // 1 bytes
unsigned char input_bit=0; // 1 byte, 0 .. 255
-
+
// Loop through each input data point
for(i = 0; i < noutput_items/8.0; i++) {
input_byte = in[i];
// Initiliaze bit counter
- bit_count=0;
-
+ bit_count=0;
+
while(bit_count<8) {
// Compute the Appropriate Mask
mask=cvsd_pow(2,7-bit_count);
-
+
// Pull off the corresponding bit
input_bit = input_byte & mask;
-
+
// Update the bit counter
bit_count++;
-
+
// Update runner with the next input bit
// Runner is a shift-register; shift left, add on newest output bit
d_runner = (d_runner<<1) | ((unsigned int) input_bit);
-
+
// Run this only if you have >= J bits in your shift register
if (d_loop_counter>=d_J) {
// Update Step Size
@@ -157,7 +157,7 @@ vocoder_cvsd_decode_bs::work (int noutput_items,
d_stepsize = std::max( (short) cvsd_round(d_stepsize*d_step_decay), d_min_step);
}
}
-
+
// Update Accum (i.e. the reference value)
if (input_bit) {
d_accum=d_accum+d_stepsize;
@@ -165,10 +165,10 @@ vocoder_cvsd_decode_bs::work (int noutput_items,
else {
d_accum=d_accum-d_stepsize;
}
-
+
// Multiply by Accum_Decay
d_accum=(cvsd_round(d_accum*d_accum_decay));
-
+
// Check for overflow
if (d_accum >=((int) d_pos_accum_max)) {
d_accum=(int)d_pos_accum_max;
@@ -176,18 +176,18 @@ vocoder_cvsd_decode_bs::work (int noutput_items,
else if (d_accum <=((int) d_neg_accum_max)) {
d_accum=(int)d_neg_accum_max;
}
-
+
// Find the output short to write to the file
output_short=((short) d_accum);
-
+
if (d_loop_counter <= d_K) {
d_loop_counter++;
}
-
+
*(out++) = output_short;
- } // while ()
-
+ } // while ()
+
} // for()
-
+
return noutput_items;
}
diff --git a/gr-vocoder/lib/vocoder_cvsd_encode_sb.cc b/gr-vocoder/lib/vocoder_cvsd_encode_sb.cc
index 71cf6df8c..e15882c22 100644
--- a/gr-vocoder/lib/vocoder_cvsd_encode_sb.cc
+++ b/gr-vocoder/lib/vocoder_cvsd_encode_sb.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007,2010,2011 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,
@@ -37,7 +37,7 @@
* Create a new instance of vocoder_cvsd_encode_sb and return
* a boost shared_ptr. This is effectively the public constructor.
*/
-vocoder_cvsd_encode_sb_sptr
+vocoder_cvsd_encode_sb_sptr
vocoder_make_cvsd_encode_sb (short min_step, short max_step, double step_decay,
double accum_decay, int K, int J,
short pos_accum_max, short neg_accum_max)
@@ -47,7 +47,7 @@ vocoder_make_cvsd_encode_sb (short min_step, short max_step, double step_decay,
pos_accum_max, neg_accum_max));
}
-vocoder_cvsd_encode_sb::vocoder_cvsd_encode_sb (short min_step, short max_step, double step_decay,
+vocoder_cvsd_encode_sb::vocoder_cvsd_encode_sb (short min_step, short max_step, double step_decay,
double accum_decay, int K, int J,
short pos_accum_max, short neg_accum_max)
: gr_sync_decimator ("vocoder_cvsd_encode_sb",
@@ -55,10 +55,10 @@ vocoder_cvsd_encode_sb::vocoder_cvsd_encode_sb (short min_step, short max_step,
gr_make_io_signature (1, 1, sizeof (unsigned char)),
8),
d_min_step (min_step), d_max_step(max_step), d_step_decay(step_decay),
- d_accum_decay(accum_decay), d_K(K), d_J(J),
+ d_accum_decay(accum_decay), d_K(K), d_J(J),
d_pos_accum_max(pos_accum_max), d_neg_accum_max(neg_accum_max),
- d_accum(0),
- d_loop_counter(1),
+ d_accum(0),
+ d_loop_counter(1),
d_runner(0),
d_stepsize(min_step)
@@ -77,7 +77,7 @@ unsigned char vocoder_cvsd_encode_sb::cvsd_bitwise_sum (unsigned int input)
{
unsigned int temp=input;
unsigned char bits=0;
-
+
while(temp) {
temp=temp&(temp-1);
bits++;
@@ -90,7 +90,7 @@ int vocoder_cvsd_encode_sb::cvsd_round (double input)
double temp;
temp=input+0.5;
temp=floor(temp);
-
+
return (int)temp;
}
@@ -101,10 +101,10 @@ unsigned int vocoder_cvsd_encode_sb::cvsd_pow (short radix, short power)
double output;
output=pow(d_radix,i_power);
- return ( (unsigned int) cvsd_round(output));
+ return ( (unsigned int) cvsd_round(output));
}
-int
+int
vocoder_cvsd_encode_sb::work (int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items)
@@ -117,7 +117,7 @@ vocoder_cvsd_encode_sb::work (int noutput_items,
unsigned char output_byte=0; // 1 bytes 0.255
unsigned char bit_count=0; // 1 byte, 0 .. 255
unsigned int mask=0; // 4 bytes, 0 .. 4,294,967,295
-
+
// Loop through each input data point
for(i = 0; i < noutput_items*8; i++) {
if((int)in[i] >= d_accum) { // Note: sign((data(n)-accum))
@@ -126,7 +126,7 @@ vocoder_cvsd_encode_sb::work (int noutput_items,
else {
output_bit=0;
}
-
+
// Update Accum (i.e. the reference value)
if (output_bit) {
d_accum=d_accum+d_stepsize;
@@ -147,7 +147,7 @@ vocoder_cvsd_encode_sb::work (int noutput_items,
else if(d_accum <= ((int) d_neg_accum_max)) {
d_accum = (int) d_neg_accum_max;
}
-
+
// Update runner with the last output bit
// Update Step Size
if (d_loop_counter >= d_J) { // Run this only if you have >= J bits in your shift register
@@ -158,10 +158,10 @@ vocoder_cvsd_encode_sb::work (int noutput_items,
}
else {
// No runs of 1s and 0s
- d_stepsize = std::max( (short)cvsd_round(d_stepsize*d_step_decay), d_min_step);
+ d_stepsize = std::max( (short)cvsd_round(d_stepsize*d_step_decay), d_min_step);
}
}
-
+
// Runner is a shift-register; shift left, add on newest output bit
d_runner = (d_runner<<1) | ((unsigned int) output_bit);
@@ -169,7 +169,7 @@ vocoder_cvsd_encode_sb::work (int noutput_items,
// If you have put in 8 bits, output it as a byte
output_byte = (output_byte<<1) | output_bit;
bit_count++;
-
+
if (d_loop_counter <= d_K) {
d_loop_counter++;
}
@@ -178,7 +178,7 @@ vocoder_cvsd_encode_sb::work (int noutput_items,
if (bit_count==8) {
// Read in short from the file
*(out++) = output_byte;
-
+
// Reset the bit_count
bit_count=0;
output_byte=0;
diff --git a/gr-vocoder/lib/vocoder_g721_decode_bs.cc b/gr-vocoder/lib/vocoder_g721_decode_bs.cc
index 2abee8d14..d5b737d1c 100644
--- a/gr-vocoder/lib/vocoder_g721_decode_bs.cc
+++ b/gr-vocoder/lib/vocoder_g721_decode_bs.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
@@ -66,7 +66,7 @@ vocoder_g721_decode_bs_impl::~vocoder_g721_decode_bs_impl()
{
}
-int
+int
vocoder_g721_decode_bs_impl::work(int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items)
@@ -76,6 +76,6 @@ vocoder_g721_decode_bs_impl::work(int noutput_items,
for(int i = 0; i < noutput_items; i++)
out[i] = g721_decoder(in[i], AUDIO_ENCODING_LINEAR, &d_state);
-
+
return noutput_items;
}
diff --git a/gr-vocoder/lib/vocoder_g721_encode_sb.cc b/gr-vocoder/lib/vocoder_g721_encode_sb.cc
index 667e983dc..1e33613a5 100644
--- a/gr-vocoder/lib/vocoder_g721_encode_sb.cc
+++ b/gr-vocoder/lib/vocoder_g721_encode_sb.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
@@ -66,7 +66,7 @@ vocoder_g721_encode_sb_impl::~vocoder_g721_encode_sb_impl()
{
}
-int
+int
vocoder_g721_encode_sb_impl::work(int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items)
@@ -76,6 +76,6 @@ vocoder_g721_encode_sb_impl::work(int noutput_items,
for(int i = 0; i < noutput_items; i++)
out[i] = g721_encoder(in[i], AUDIO_ENCODING_LINEAR, &d_state);
-
+
return noutput_items;
}
diff --git a/gr-vocoder/lib/vocoder_g723_24_decode_bs.cc b/gr-vocoder/lib/vocoder_g723_24_decode_bs.cc
index 2ea036c58..0bedfe4ca 100644
--- a/gr-vocoder/lib/vocoder_g723_24_decode_bs.cc
+++ b/gr-vocoder/lib/vocoder_g723_24_decode_bs.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
@@ -66,7 +66,7 @@ vocoder_g723_24_decode_bs_impl::~vocoder_g723_24_decode_bs_impl()
{
}
-int
+int
vocoder_g723_24_decode_bs_impl::work(int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items)
@@ -76,6 +76,6 @@ vocoder_g723_24_decode_bs_impl::work(int noutput_items,
for(int i = 0; i < noutput_items; i++)
out[i] = g723_24_decoder(in[i], AUDIO_ENCODING_LINEAR, &d_state);
-
+
return noutput_items;
}
diff --git a/gr-vocoder/lib/vocoder_g723_24_encode_sb.cc b/gr-vocoder/lib/vocoder_g723_24_encode_sb.cc
index 7e6914223..1b61de79f 100644
--- a/gr-vocoder/lib/vocoder_g723_24_encode_sb.cc
+++ b/gr-vocoder/lib/vocoder_g723_24_encode_sb.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
@@ -66,7 +66,7 @@ vocoder_g723_24_encode_sb_impl::~vocoder_g723_24_encode_sb_impl()
{
}
-int
+int
vocoder_g723_24_encode_sb_impl::work(int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items)
@@ -76,6 +76,6 @@ vocoder_g723_24_encode_sb_impl::work(int noutput_items,
for(int i = 0; i < noutput_items; i++)
out[i] = g723_24_encoder(in[i], AUDIO_ENCODING_LINEAR, &d_state);
-
+
return noutput_items;
}
diff --git a/gr-vocoder/lib/vocoder_g723_40_decode_bs.cc b/gr-vocoder/lib/vocoder_g723_40_decode_bs.cc
index 38fd0fb5e..cdc152896 100644
--- a/gr-vocoder/lib/vocoder_g723_40_decode_bs.cc
+++ b/gr-vocoder/lib/vocoder_g723_40_decode_bs.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
@@ -66,7 +66,7 @@ vocoder_g723_40_decode_bs_impl::~vocoder_g723_40_decode_bs_impl()
{
}
-int
+int
vocoder_g723_40_decode_bs_impl::work(int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items)
@@ -76,6 +76,6 @@ vocoder_g723_40_decode_bs_impl::work(int noutput_items,
for(int i = 0; i < noutput_items; i++)
out[i] = g723_40_decoder(in[i], AUDIO_ENCODING_LINEAR, &d_state);
-
+
return noutput_items;
}
diff --git a/gr-vocoder/lib/vocoder_g723_40_encode_sb.cc b/gr-vocoder/lib/vocoder_g723_40_encode_sb.cc
index 1089306e7..083aaf97a 100644
--- a/gr-vocoder/lib/vocoder_g723_40_encode_sb.cc
+++ b/gr-vocoder/lib/vocoder_g723_40_encode_sb.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
@@ -66,7 +66,7 @@ vocoder_g723_40_encode_sb_impl::~vocoder_g723_40_encode_sb_impl()
{
}
-int
+int
vocoder_g723_40_encode_sb_impl::work(int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items)
@@ -76,6 +76,6 @@ vocoder_g723_40_encode_sb_impl::work(int noutput_items,
for(int i = 0; i < noutput_items; i++)
out[i] = g723_40_encoder(in[i], AUDIO_ENCODING_LINEAR, &d_state);
-
+
return noutput_items;
}
diff --git a/gr-vocoder/lib/vocoder_gsm_fr_decode_ps.cc b/gr-vocoder/lib/vocoder_gsm_fr_decode_ps.cc
index 986e0814e..146ddf63c 100644
--- a/gr-vocoder/lib/vocoder_gsm_fr_decode_ps.cc
+++ b/gr-vocoder/lib/vocoder_gsm_fr_decode_ps.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2010 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,
diff --git a/gr-vocoder/lib/vocoder_gsm_fr_encode_sp.cc b/gr-vocoder/lib/vocoder_gsm_fr_encode_sp.cc
index 7a69b856d..5abb3a457 100644
--- a/gr-vocoder/lib/vocoder_gsm_fr_encode_sp.cc
+++ b/gr-vocoder/lib/vocoder_gsm_fr_encode_sp.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2005,2010 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,
diff --git a/gr-vocoder/lib/vocoder_ulaw_decode_bs.cc b/gr-vocoder/lib/vocoder_ulaw_decode_bs.cc
index 3ade9d3f0..5abec77f8 100644
--- a/gr-vocoder/lib/vocoder_ulaw_decode_bs.cc
+++ b/gr-vocoder/lib/vocoder_ulaw_decode_bs.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
@@ -50,7 +50,7 @@ vocoder_ulaw_decode_bs::~vocoder_ulaw_decode_bs()
-int
+int
vocoder_ulaw_decode_bs::work(int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items)
@@ -60,6 +60,6 @@ vocoder_ulaw_decode_bs::work(int noutput_items,
for(int i = 0; i < noutput_items; i++)
out[i] = ulaw2linear(in[i]);
-
+
return noutput_items;
}
diff --git a/gr-vocoder/lib/vocoder_ulaw_encode_sb.cc b/gr-vocoder/lib/vocoder_ulaw_encode_sb.cc
index 19c53d72c..3fabd7ad8 100644
--- a/gr-vocoder/lib/vocoder_ulaw_encode_sb.cc
+++ b/gr-vocoder/lib/vocoder_ulaw_encode_sb.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
@@ -48,14 +48,14 @@ vocoder_ulaw_encode_sb::~vocoder_ulaw_encode_sb()
{
}
-int
+int
vocoder_ulaw_encode_sb::work(int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items)
{
const short *in = (const short *)input_items[0];
unsigned char *out = (unsigned char *)output_items[0];
-
+
for(int i = 0; i < noutput_items; i++)
out[i] = linear2ulaw(in[i]);
diff --git a/gr-vocoder/python/__init__.py b/gr-vocoder/python/__init__.py
index c5477b2be..ba5862f8d 100644
--- a/gr-vocoder/python/__init__.py
+++ b/gr-vocoder/python/__init__.py
@@ -1,23 +1,23 @@
#
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
'''
This is the gr-vocoder package. This package includes the various
diff --git a/gr-vocoder/python/cvsd.py b/gr-vocoder/python/cvsd.py
index 27b06ddeb..e9b3ee305 100644
--- a/gr-vocoder/python/cvsd.py
+++ b/gr-vocoder/python/cvsd.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2007,2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr
import vocoder_swig
@@ -32,7 +32,7 @@ class cvsd_encode_fb(gr.hier_block2):
The incoming sampling rate can be anything, though, of course, the higher the sampling rate and the
higher the interpolation rate are, the better the sound quality.
'''
-
+
def __init__(self, resample=8, bw=0.5):
'''
When using the CVSD vocoder, appropriate sampling rates are from 8k to 64k with resampling rates
diff --git a/gr-vocoder/python/qa_alaw_vocoder.py b/gr-vocoder/python/qa_alaw_vocoder.py
index b7b937138..07d0feb58 100755
--- a/gr-vocoder/python/qa_alaw_vocoder.py
+++ b/gr-vocoder/python/qa_alaw_vocoder.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
from vocoder_swig import *
@@ -27,7 +27,7 @@ class test_alaw_vocoder (gr_unittest.TestCase):
def setUp (self):
self.tb = gr.top_block()
-
+
def tearDown (self):
self.tb = None
diff --git a/gr-vocoder/python/qa_codec2_vocoder.py b/gr-vocoder/python/qa_codec2_vocoder.py
index 699bb7dda..2f707b311 100755
--- a/gr-vocoder/python/qa_codec2_vocoder.py
+++ b/gr-vocoder/python/qa_codec2_vocoder.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
from vocoder_swig import *
@@ -27,13 +27,13 @@ class test_codec2_vocoder (gr_unittest.TestCase):
def setUp (self):
self.tb = gr.top_block()
-
+
def tearDown (self):
self.tb = None
def test001_module_load (self):
raw_enc = codec2_encode_sp();
raw_dec = codec2_decode_ps();
-
+
if __name__ == '__main__':
gr_unittest.run(test_codec2_vocoder, "test_codec2_vocoder.xml")
diff --git a/gr-vocoder/python/qa_cvsd_vocoder.py b/gr-vocoder/python/qa_cvsd_vocoder.py
index 53045e4a9..573e6a130 100755
--- a/gr-vocoder/python/qa_cvsd_vocoder.py
+++ b/gr-vocoder/python/qa_cvsd_vocoder.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2007,2010,2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
from vocoder_swig import *
@@ -28,7 +28,7 @@ class test_cvsd_vocoder (gr_unittest.TestCase):
def setUp (self):
self.tb = gr.top_block()
-
+
def tearDown (self):
self.tb = None
@@ -98,26 +98,26 @@ class test_cvsd_vocoder (gr_unittest.TestCase):
src = gr.sig_source_f(sample_rate, gr.GR_SIN_WAVE, 200, 1, 0)
head = gr.head(gr.sizeof_float, 100)
src_scale = gr.multiply_const_ff(scale_factor)
-
+
interp = blks2.rational_resampler_fff(8, 1)
f2s = gr.float_to_short ()
-
+
enc = cvsd_vocoder.encode_sb()
dec = cvsd_vocoder.decode_bs()
-
+
s2f = gr.short_to_float ()
decim = blks2.rational_resampler_fff(1, 8)
-
+
sink_scale = gr.multiply_const_ff(1.0/scale_factor)
sink = gr.vector_sink_f()
-
+
self.tb.connect(src, src_scale, interp, f2s, enc)
self.tb.connect(enc, dec, s2f, decim, sink_scale, head, sink)
self.tb.run()
print sink.data()
-
+
self.assertFloatTuplesAlmostEqual (expected_data, sink.data(), 5)
"""
-
+
if __name__ == '__main__':
gr_unittest.run(test_cvsd_vocoder, "test_cvsd_vocoder.xml")
diff --git a/gr-vocoder/python/qa_g721_vocoder.py b/gr-vocoder/python/qa_g721_vocoder.py
index 79cc944f3..26fcea789 100755
--- a/gr-vocoder/python/qa_g721_vocoder.py
+++ b/gr-vocoder/python/qa_g721_vocoder.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
from vocoder_swig import *
@@ -27,7 +27,7 @@ class test_g721_vocoder (gr_unittest.TestCase):
def setUp (self):
self.tb = gr.top_block()
-
+
def tearDown (self):
self.tb = None
diff --git a/gr-vocoder/python/qa_g723_24_vocoder.py b/gr-vocoder/python/qa_g723_24_vocoder.py
index ccf215f46..be95a8d94 100755
--- a/gr-vocoder/python/qa_g723_24_vocoder.py
+++ b/gr-vocoder/python/qa_g723_24_vocoder.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
from vocoder_swig import *
@@ -27,7 +27,7 @@ class test_g723_24_vocoder (gr_unittest.TestCase):
def setUp (self):
self.tb = gr.top_block()
-
+
def tearDown (self):
self.tb = None
diff --git a/gr-vocoder/python/qa_g723_40_vocoder.py b/gr-vocoder/python/qa_g723_40_vocoder.py
index 9e6a52339..abbb4079a 100755
--- a/gr-vocoder/python/qa_g723_40_vocoder.py
+++ b/gr-vocoder/python/qa_g723_40_vocoder.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
from vocoder_swig import *
@@ -27,7 +27,7 @@ class test_g723_40_vocoder (gr_unittest.TestCase):
def setUp (self):
self.tb = gr.top_block()
-
+
def tearDown (self):
self.tb = None
diff --git a/gr-vocoder/python/qa_gsm_full_rate.py b/gr-vocoder/python/qa_gsm_full_rate.py
index f9125905c..2e551e193 100755
--- a/gr-vocoder/python/qa_gsm_full_rate.py
+++ b/gr-vocoder/python/qa_gsm_full_rate.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2004,2007,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
import vocoder_swig
diff --git a/gr-vocoder/python/qa_ulaw_vocoder.py b/gr-vocoder/python/qa_ulaw_vocoder.py
index 0e201638c..2bc638567 100755
--- a/gr-vocoder/python/qa_ulaw_vocoder.py
+++ b/gr-vocoder/python/qa_ulaw_vocoder.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
from vocoder_swig import *
@@ -27,7 +27,7 @@ class test_ulaw_vocoder (gr_unittest.TestCase):
def setUp (self):
self.tb = gr.top_block()
-
+
def tearDown (self):
self.tb = None
diff --git a/gr-vocoder/swig/vocoder_alaw_decode_bs.i b/gr-vocoder/swig/vocoder_alaw_decode_bs.i
index f789c454f..6c51f5edd 100644
--- a/gr-vocoder/swig/vocoder_alaw_decode_bs.i
+++ b/gr-vocoder/swig/vocoder_alaw_decode_bs.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
diff --git a/gr-vocoder/swig/vocoder_alaw_encode_sb.i b/gr-vocoder/swig/vocoder_alaw_encode_sb.i
index 9fe537d55..0769829a0 100644
--- a/gr-vocoder/swig/vocoder_alaw_encode_sb.i
+++ b/gr-vocoder/swig/vocoder_alaw_encode_sb.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
diff --git a/gr-vocoder/swig/vocoder_codec2_decode_ps.i b/gr-vocoder/swig/vocoder_codec2_decode_ps.i
index e53cb078a..a2035febe 100644
--- a/gr-vocoder/swig/vocoder_codec2_decode_ps.i
+++ b/gr-vocoder/swig/vocoder_codec2_decode_ps.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
diff --git a/gr-vocoder/swig/vocoder_codec2_encode_sp.i b/gr-vocoder/swig/vocoder_codec2_encode_sp.i
index 84f26954d..07acfdfa4 100644
--- a/gr-vocoder/swig/vocoder_codec2_encode_sp.i
+++ b/gr-vocoder/swig/vocoder_codec2_encode_sp.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
diff --git a/gr-vocoder/swig/vocoder_cvsd_decode_bs.i b/gr-vocoder/swig/vocoder_cvsd_decode_bs.i
index e990f5440..ff2c89e5d 100644
--- a/gr-vocoder/swig/vocoder_cvsd_decode_bs.i
+++ b/gr-vocoder/swig/vocoder_cvsd_decode_bs.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007,2009,2011 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,
diff --git a/gr-vocoder/swig/vocoder_cvsd_encode_sb.i b/gr-vocoder/swig/vocoder_cvsd_encode_sb.i
index 5db7b3a48..e0a7db5df 100644
--- a/gr-vocoder/swig/vocoder_cvsd_encode_sb.i
+++ b/gr-vocoder/swig/vocoder_cvsd_encode_sb.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007,2009,2011 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,
diff --git a/gr-vocoder/swig/vocoder_g721_decode_bs.i b/gr-vocoder/swig/vocoder_g721_decode_bs.i
index 47e7d2861..beefd375e 100644
--- a/gr-vocoder/swig/vocoder_g721_decode_bs.i
+++ b/gr-vocoder/swig/vocoder_g721_decode_bs.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
diff --git a/gr-vocoder/swig/vocoder_g721_encode_sb.i b/gr-vocoder/swig/vocoder_g721_encode_sb.i
index 0675087a0..38c231e8d 100644
--- a/gr-vocoder/swig/vocoder_g721_encode_sb.i
+++ b/gr-vocoder/swig/vocoder_g721_encode_sb.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
diff --git a/gr-vocoder/swig/vocoder_g723_24_decode_bs.i b/gr-vocoder/swig/vocoder_g723_24_decode_bs.i
index 41548059f..33f6e88b9 100644
--- a/gr-vocoder/swig/vocoder_g723_24_decode_bs.i
+++ b/gr-vocoder/swig/vocoder_g723_24_decode_bs.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
diff --git a/gr-vocoder/swig/vocoder_g723_24_encode_sb.i b/gr-vocoder/swig/vocoder_g723_24_encode_sb.i
index 7165a8a82..a362554ab 100644
--- a/gr-vocoder/swig/vocoder_g723_24_encode_sb.i
+++ b/gr-vocoder/swig/vocoder_g723_24_encode_sb.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
diff --git a/gr-vocoder/swig/vocoder_g723_40_decode_bs.i b/gr-vocoder/swig/vocoder_g723_40_decode_bs.i
index d9ec9d6c9..a23b1c0e4 100644
--- a/gr-vocoder/swig/vocoder_g723_40_decode_bs.i
+++ b/gr-vocoder/swig/vocoder_g723_40_decode_bs.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
diff --git a/gr-vocoder/swig/vocoder_g723_40_encode_sb.i b/gr-vocoder/swig/vocoder_g723_40_encode_sb.i
index 839ae46cf..8fd438c66 100644
--- a/gr-vocoder/swig/vocoder_g723_40_encode_sb.i
+++ b/gr-vocoder/swig/vocoder_g723_40_encode_sb.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
diff --git a/gr-vocoder/swig/vocoder_gsm_fr_decode_ps.i b/gr-vocoder/swig/vocoder_gsm_fr_decode_ps.i
index 8e96689f6..3ad4e45fa 100644
--- a/gr-vocoder/swig/vocoder_gsm_fr_decode_ps.i
+++ b/gr-vocoder/swig/vocoder_gsm_fr_decode_ps.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
@@ -28,7 +28,7 @@ GR_SWIG_BLOCK_MAGIC(vocoder,gsm_fr_decode_ps);
vocoder_gsm_fr_decode_ps_sptr vocoder_make_gsm_fr_decode_ps();
-class vocoder_gsm_fr_decode_ps : public gr_sync_interpolator
+class vocoder_gsm_fr_decode_ps : public gr_sync_interpolator
{
public:
~vocoder_gsm_fr_decode_ps();
diff --git a/gr-vocoder/swig/vocoder_gsm_fr_encode_sp.i b/gr-vocoder/swig/vocoder_gsm_fr_encode_sp.i
index 8216336a9..348f8d15d 100644
--- a/gr-vocoder/swig/vocoder_gsm_fr_encode_sp.i
+++ b/gr-vocoder/swig/vocoder_gsm_fr_encode_sp.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
@@ -28,7 +28,7 @@ GR_SWIG_BLOCK_MAGIC(vocoder,gsm_fr_encode_sp);
vocoder_gsm_fr_encode_sp_sptr vocoder_make_gsm_fr_encode_sp();
-class vocoder_gsm_fr_encode_sp : public gr_sync_decimator
+class vocoder_gsm_fr_encode_sp : public gr_sync_decimator
{
public:
~vocoder_gsm_fr_encode_sp();
diff --git a/gr-vocoder/swig/vocoder_swig.i b/gr-vocoder/swig/vocoder_swig.i
index 8e956ff35..524e035ce 100644
--- a/gr-vocoder/swig/vocoder_swig.i
+++ b/gr-vocoder/swig/vocoder_swig.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
diff --git a/gr-vocoder/swig/vocoder_ulaw_decode_bs.i b/gr-vocoder/swig/vocoder_ulaw_decode_bs.i
index 5e8e8c9ae..23363ca5c 100644
--- a/gr-vocoder/swig/vocoder_ulaw_decode_bs.i
+++ b/gr-vocoder/swig/vocoder_ulaw_decode_bs.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
diff --git a/gr-vocoder/swig/vocoder_ulaw_encode_sb.i b/gr-vocoder/swig/vocoder_ulaw_encode_sb.i
index 1665df480..393b8ff3f 100644
--- a/gr-vocoder/swig/vocoder_ulaw_encode_sb.i
+++ b/gr-vocoder/swig/vocoder_ulaw_encode_sb.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 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,
diff --git a/gr-wavelet/CMakeLists.txt b/gr-wavelet/CMakeLists.txt
index c37e55282..555c326d1 100644
--- a/gr-wavelet/CMakeLists.txt
+++ b/gr-wavelet/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2012 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,
diff --git a/gr-wavelet/include/wavelet/wavelet_squash_ff.h b/gr-wavelet/include/wavelet/wavelet_squash_ff.h
index c79f513c6..582496916 100644
--- a/gr-wavelet/include/wavelet/wavelet_squash_ff.h
+++ b/gr-wavelet/include/wavelet/wavelet_squash_ff.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2012 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,
diff --git a/gr-wavelet/include/wavelet/wavelet_wavelet_ff.h b/gr-wavelet/include/wavelet/wavelet_wavelet_ff.h
index ef920f163..7d60dbdad 100644
--- a/gr-wavelet/include/wavelet/wavelet_wavelet_ff.h
+++ b/gr-wavelet/include/wavelet/wavelet_wavelet_ff.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2012 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,
diff --git a/gr-wavelet/include/wavelet/wavelet_wvps_ff.h b/gr-wavelet/include/wavelet/wavelet_wvps_ff.h
index 061f42323..4e2889b52 100644
--- a/gr-wavelet/include/wavelet/wavelet_wvps_ff.h
+++ b/gr-wavelet/include/wavelet/wavelet_wvps_ff.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2012 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,
@@ -29,7 +29,7 @@
class wavelet_wvps_ff;
typedef boost::shared_ptr<wavelet_wvps_ff> wavelet_wvps_ff_sptr;
-WAVELET_API wavelet_wvps_ff_sptr
+WAVELET_API wavelet_wvps_ff_sptr
wavelet_make_wvps_ff(int ilen);
/*!
diff --git a/gr-wavelet/lib/CMakeLists.txt b/gr-wavelet/lib/CMakeLists.txt
index 01171956c..f0d9068b7 100644
--- a/gr-wavelet/lib/CMakeLists.txt
+++ b/gr-wavelet/lib/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2012 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,
diff --git a/gr-wavelet/lib/wavelet_squash_ff_impl.cc b/gr-wavelet/lib/wavelet_squash_ff_impl.cc
index 23f1a5e2f..89494a9c3 100644
--- a/gr-wavelet/lib/wavelet_squash_ff_impl.cc
+++ b/gr-wavelet/lib/wavelet_squash_ff_impl.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2010,2012 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,
@@ -81,7 +81,7 @@ wavelet_squash_ff_impl::work(int noutput_items,
d_iwork[i] = in[i];
gsl_spline_init(d_spline, d_igrid, d_iwork, d_inum);
-
+
for (unsigned int i = 0; i < d_onum; i++)
out[i] = gsl_spline_eval(d_spline, d_ogrid[i], d_accel);
diff --git a/gr-wavelet/lib/wavelet_squash_ff_impl.h b/gr-wavelet/lib/wavelet_squash_ff_impl.h
index 806f13e40..dac50ddf2 100644
--- a/gr-wavelet/lib/wavelet_squash_ff_impl.h
+++ b/gr-wavelet/lib/wavelet_squash_ff_impl.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2012 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,
@@ -39,11 +39,11 @@ class WAVELET_API wavelet_squash_ff_impl : public wavelet_squash_ff
gsl_interp_accel *d_accel;
gsl_spline *d_spline;
-
+
wavelet_squash_ff_impl(const std::vector<float> &igrid,
const std::vector<float> &ogrid);
- friend WAVELET_API wavelet_squash_ff_sptr
+ friend WAVELET_API wavelet_squash_ff_sptr
wavelet_make_squash_ff(const std::vector<float> &igrid,
const std::vector<float> &ogrid);
diff --git a/gr-wavelet/lib/wavelet_wavelet_ff_impl.cc b/gr-wavelet/lib/wavelet_wavelet_ff_impl.cc
index 719f4b53f..ccc1a6d8f 100644
--- a/gr-wavelet/lib/wavelet_wavelet_ff_impl.cc
+++ b/gr-wavelet/lib/wavelet_wavelet_ff_impl.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2010,2012 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 tewavelet 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,
@@ -78,7 +78,7 @@ wavelet_wavelet_ff_impl::work(int noutput_items,
for (int count = 0; count < noutput_items; count++) {
for (int i = 0; i < d_size; i++)
d_temp[i] = in[i];
-
+
if (d_forward)
gsl_wavelet_transform_forward(d_wavelet,
d_temp,
@@ -91,7 +91,7 @@ wavelet_wavelet_ff_impl::work(int noutput_items,
1,
d_size,
d_workspace);
-
+
for (int i = 0; i < d_size; i++)
out[i] = d_temp[i];
diff --git a/gr-wavelet/lib/wavelet_wavelet_ff_impl.h b/gr-wavelet/lib/wavelet_wavelet_ff_impl.h
index 8ad3ef0bf..dc33a4184 100644
--- a/gr-wavelet/lib/wavelet_wavelet_ff_impl.h
+++ b/gr-wavelet/lib/wavelet_wavelet_ff_impl.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2012 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,
diff --git a/gr-wavelet/lib/wavelet_wvps_ff_impl.cc b/gr-wavelet/lib/wavelet_wvps_ff_impl.cc
index f2507adc8..b86859b0a 100644
--- a/gr-wavelet/lib/wavelet_wvps_ff_impl.cc
+++ b/gr-wavelet/lib/wavelet_wvps_ff_impl.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2004,2010,2012 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,
@@ -69,22 +69,22 @@ wavelet_wvps_ff_impl::work(int noutput_items,
out[i] = 0.0;
} else {
-
+
// get power normalization from 0-th wavelet coefficient
float scl = 1.0/(in[0]*in[0]);
int k = 1;
-
+
// sum powers over sequences of bins,
// sequence lengths in increasing powers of 2
-
+
for (int e = 0; e < d_olen; e++) {
int m = 01<<e;
float sum = 0.0;
-
+
for (int l = 0; l < m; l++)
sum += (in[k+l]*in[k+l]);
-
+
out[e] = scl*sum;
k += m;
}
diff --git a/gr-wavelet/lib/wavelet_wvps_ff_impl.h b/gr-wavelet/lib/wavelet_wvps_ff_impl.h
index 30877e3fd..553469fde 100644
--- a/gr-wavelet/lib/wavelet_wvps_ff_impl.h
+++ b/gr-wavelet/lib/wavelet_wvps_ff_impl.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2012 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,
diff --git a/gr-wavelet/python/CMakeLists.txt b/gr-wavelet/python/CMakeLists.txt
index 9ddcb7ea9..650299672 100644
--- a/gr-wavelet/python/CMakeLists.txt
+++ b/gr-wavelet/python/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2012 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,
diff --git a/gr-wavelet/python/__init__.py b/gr-wavelet/python/__init__.py
index ce63ed37c..77e2ac7c2 100644
--- a/gr-wavelet/python/__init__.py
+++ b/gr-wavelet/python/__init__.py
@@ -1,23 +1,23 @@
#
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
'''
This is the gr-wavelet package. This package provides GNU Radio
diff --git a/gr-wavelet/python/qa_classify.py b/gr-wavelet/python/qa_classify.py
index 157d6b8c6..5701bce8c 100755
--- a/gr-wavelet/python/qa_classify.py
+++ b/gr-wavelet/python/qa_classify.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2008,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
import numpy
from gnuradio import gr, gr_unittest
@@ -99,7 +99,7 @@ class test_classify(gr_unittest.TestCase):
sum += w * w
sum /= float(len(trg_data))
assert sum < 1e-6
-
+
def test_003_(self):
src_grid = (0.0, 1.0, 2.0, 3.0, 4.0)
trg_grid = copy.deepcopy(src_grid)
diff --git a/gr-wavelet/swig/wavelet_swig.i b/gr-wavelet/swig/wavelet_swig.i
index 577bd04df..b04efc508 100644
--- a/gr-wavelet/swig/wavelet_swig.i
+++ b/gr-wavelet/swig/wavelet_swig.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2012 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,
diff --git a/gr-wxgui/CMakeLists.txt b/gr-wxgui/CMakeLists.txt
index 7afae785a..0fc26dee1 100644
--- a/gr-wxgui/CMakeLists.txt
+++ b/gr-wxgui/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gr-wxgui/grc/CMakeLists.txt b/gr-wxgui/grc/CMakeLists.txt
index 49e3da3b1..51c5647e5 100644
--- a/gr-wxgui/grc/CMakeLists.txt
+++ b/gr-wxgui/grc/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/gr-wxgui/src/python/__init__.py b/gr-wxgui/src/python/__init__.py
index a1cfeb223..68f8f4b5e 100644
--- a/gr-wxgui/src/python/__init__.py
+++ b/gr-wxgui/src/python/__init__.py
@@ -1,23 +1,23 @@
#
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
'''
This is the gr-wxgui package. This package provides a GUI interface
diff --git a/gr-wxgui/src/python/common.py b/gr-wxgui/src/python/common.py
index 3641ae644..1410d29df 100644
--- a/gr-wxgui/src/python/common.py
+++ b/gr-wxgui/src/python/common.py
@@ -121,7 +121,7 @@ def _register_access_method(destination, controller, key):
def set(value): controller[key] = value
setattr(destination, 'set_'+key, set)
def get(): return controller[key]
- setattr(destination, 'get_'+key, get)
+ setattr(destination, 'get_'+key, get)
def register_access_methods(destination, controller):
"""
diff --git a/gr-wxgui/src/python/fft_window.py b/gr-wxgui/src/python/fft_window.py
index f4f485f4b..99c1cf6e1 100644
--- a/gr-wxgui/src/python/fft_window.py
+++ b/gr-wxgui/src/python/fft_window.py
@@ -127,7 +127,7 @@ class control_panel(wx.Panel):
parent.subscribe(USE_PERSISTENCE_KEY, widget.ShowItems)
#allways show initially, so room is reserved for them
widget.ShowItems(True) # (parent[USE_PERSISTENCE_KEY])
-
+
parent.subscribe(USE_PERSISTENCE_KEY, self._update_layout)
#trace menu
@@ -201,7 +201,7 @@ class control_panel(wx.Panel):
# Just ignore the key value we get
# we only need to now that the visability or size of something has changed
self.parent.Layout()
- #self.parent.Fit()
+ #self.parent.Fit()
##################################################
# FFT window with plotter and control panel
diff --git a/gr-wxgui/src/python/fftsink_gl.py b/gr-wxgui/src/python/fftsink_gl.py
index 6cfaeff60..6b268f6cb 100644
--- a/gr-wxgui/src/python/fftsink_gl.py
+++ b/gr-wxgui/src/python/fftsink_gl.py
@@ -63,14 +63,14 @@ class _fft_sink_base(gr.hier_block2, common.wxgui_hb):
#ensure avg alpha
if avg_alpha is None: avg_alpha = 2.0/fft_rate
#ensure analog alpha
- if persist_alpha is None:
+ if persist_alpha is None:
actual_fft_rate=float(sample_rate/fft_size)/float(max(1,int(float((sample_rate/fft_size)/fft_rate))))
#print "requested_fft_rate ",fft_rate
#print "actual_fft_rate ",actual_fft_rate
analog_cutoff_freq=0.5 # Hertz
#calculate alpha from wanted cutoff freq
persist_alpha = 1.0 - math.exp(-2.0*math.pi*analog_cutoff_freq/actual_fft_rate)
-
+
#init
gr.hier_block2.__init__(
self,
diff --git a/gr-wxgui/src/python/fftsink_nongl.py b/gr-wxgui/src/python/fftsink_nongl.py
index 508b4e772..c756d8a3b 100644
--- a/gr-wxgui/src/python/fftsink_nongl.py
+++ b/gr-wxgui/src/python/fftsink_nongl.py
@@ -1,31 +1,31 @@
#!/usr/bin/env python
#
# Copyright 2003,2004,2005,2006,2007,2009,2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gru, window
from gnuradio.wxgui import stdgui2
import wx
import plot
import numpy
-import math
+import math
DIV_LEVELS = (1, 2, 5, 10, 20)
@@ -33,7 +33,7 @@ default_fftsink_size = (640,240)
default_fft_rate = gr.prefs().get_long('wxgui', 'fft_rate', 15)
class fft_sink_base(object):
- def __init__(self, input_is_real=False, baseband_freq=0, y_per_div=10,
+ def __init__(self, input_is_real=False, baseband_freq=0, y_per_div=10,
y_divs=8, ref_level=50,
sample_rate=1, fft_size=512,
fft_rate=default_fft_rate,
@@ -73,7 +73,7 @@ class fft_sink_base(object):
else:
self.avg.set_taps(1.0)
self.win.peak_vals = None
-
+
def set_peak_hold(self, enable):
self.peak_hold = enable
self.win.set_peak_hold(enable)
@@ -98,7 +98,7 @@ class fft_sink_base(object):
def _set_n(self):
self.one_in_n.set_n(max(1, int(self.sample_rate/self.fft_size/self.fft_rate)))
-
+
class fft_sink_f(gr.hier_block2, fft_sink_base):
def __init__(self, parent, baseband_freq=0, ref_scale=2.0,
@@ -116,17 +116,17 @@ class fft_sink_f(gr.hier_block2, fft_sink_base):
fft_rate=fft_rate,
average=average, avg_alpha=avg_alpha, title=title,
peak_hold=peak_hold,use_persistence=use_persistence,persist_alpha=persist_alpha)
-
+
self.s2p = gr.stream_to_vector(gr.sizeof_float, self.fft_size)
self.one_in_n = gr.keep_one_in_n(gr.sizeof_float * self.fft_size,
max(1, int(self.sample_rate/self.fft_size/self.fft_rate)))
-
+
mywindow = window.blackmanharris(self.fft_size)
self.fft = gr.fft_vfc(self.fft_size, True, mywindow)
power = 0
for tap in mywindow:
power += tap*tap
-
+
self.c2mag = gr.complex_to_mag(self.fft_size)
self.avg = gr.single_pole_iir_filter_ff(1.0, self.fft_size)
@@ -135,7 +135,7 @@ class fft_sink_f(gr.hier_block2, fft_sink_base):
-10*math.log10(self.fft_size) # Adjust for number of bins
-10*math.log10(power/self.fft_size) # Adjust for windowing loss
-20*math.log10(ref_scale/2)) # Adjust for reference scale
-
+
self.sink = gr.message_sink(gr.sizeof_float * self.fft_size, self.msgq, True)
self.connect(self, self.s2p, self.one_in_n, self.fft, self.c2mag, self.avg, self.log, self.sink)
@@ -165,13 +165,13 @@ class fft_sink_c(gr.hier_block2, fft_sink_base):
self.s2p = gr.stream_to_vector(gr.sizeof_gr_complex, self.fft_size)
self.one_in_n = gr.keep_one_in_n(gr.sizeof_gr_complex * self.fft_size,
max(1, int(self.sample_rate/self.fft_size/self.fft_rate)))
-
+
mywindow = window.blackmanharris(self.fft_size)
self.fft = gr.fft_vcc(self.fft_size, True, mywindow)
power = 0
for tap in mywindow:
power += tap*tap
-
+
self.c2mag = gr.complex_to_mag(self.fft_size)
self.avg = gr.single_pole_iir_filter_ff(1.0, self.fft_size)
@@ -180,7 +180,7 @@ class fft_sink_c(gr.hier_block2, fft_sink_base):
-10*math.log10(self.fft_size) # Adjust for number of bins
-10*math.log10(power/self.fft_size) # Adjust for windowing loss
-20*math.log10(ref_scale/2)) # Adjust for reference scale
-
+
self.sink = gr.message_sink(gr.sizeof_float * self.fft_size, self.msgq, True)
self.connect(self, self.s2p, self.one_in_n, self.fft, self.c2mag, self.avg, self.log, self.sink)
@@ -203,7 +203,7 @@ class DataEvent(wx.PyEvent):
self.SetEventType (myDATA_EVENT)
self.data = data
- def Clone (self):
+ def Clone (self):
self.__class__ (self.GetId())
@@ -231,20 +231,20 @@ class input_watcher (gru.msgq_runner):
del de
class control_panel(wx.Panel):
-
- class LabelText(wx.StaticText):
+
+ class LabelText(wx.StaticText):
def __init__(self, window, label):
wx.StaticText.__init__(self, window, -1, label)
font = self.GetFont()
font.SetWeight(wx.FONTWEIGHT_BOLD)
font.SetUnderlined(True)
self.SetFont(font)
-
+
def __init__(self, parent):
self.parent = parent
- wx.Panel.__init__(self, parent, -1, style=wx.SIMPLE_BORDER)
+ wx.Panel.__init__(self, parent, -1, style=wx.SIMPLE_BORDER)
control_box = wx.BoxSizer(wx.VERTICAL)
-
+
#checkboxes for average and peak hold
control_box.AddStretchSpacer()
control_box.Add(self.LabelText(self, 'Options'), 0, wx.ALIGN_CENTER)
@@ -255,9 +255,9 @@ class control_panel(wx.Panel):
self.use_persistence_check_box.Bind(wx.EVT_CHECKBOX, parent.on_use_persistence)
control_box.Add(self.use_persistence_check_box, 0, wx.EXPAND)
self.peak_hold_check_box = wx.CheckBox(parent=self, style=wx.CHK_2STATE, label="Peak Hold")
- self.peak_hold_check_box.Bind(wx.EVT_CHECKBOX, parent.on_peak_hold)
+ self.peak_hold_check_box.Bind(wx.EVT_CHECKBOX, parent.on_peak_hold)
control_box.Add(self.peak_hold_check_box, 0, wx.EXPAND)
-
+
#radio buttons for div size
control_box.AddStretchSpacer()
control_box.Add(self.LabelText(self, 'Set dB/div'), 0, wx.ALIGN_CENTER)
@@ -269,12 +269,12 @@ class control_panel(wx.Panel):
self.radio_buttons.append(radio_button)
radio_box.Add(radio_button, 0, wx.ALIGN_LEFT)
control_box.Add(radio_box, 0, wx.EXPAND)
-
+
#ref lvl buttons
control_box.AddStretchSpacer()
control_box.Add(self.LabelText(self, 'Adj Ref Lvl'), 0, wx.ALIGN_CENTER)
control_box.AddSpacer(2)
- button_box = wx.BoxSizer(wx.HORIZONTAL)
+ button_box = wx.BoxSizer(wx.HORIZONTAL)
self.ref_plus_button = wx.Button(self, -1, '+', style=wx.BU_EXACTFIT)
self.ref_plus_button.Bind(wx.EVT_BUTTON, parent.on_incr_ref_level)
button_box.Add(self.ref_plus_button, 0, wx.ALIGN_CENTER)
@@ -287,7 +287,7 @@ class control_panel(wx.Panel):
self.SetSizerAndFit(control_box)
#update
self.update()
-
+
def update(self):
"""
Read the state of the fft plot settings and update the control panel.
@@ -296,14 +296,14 @@ class control_panel(wx.Panel):
self.average_check_box.SetValue(self.parent.fftsink.average)
self.use_persistence_check_box.SetValue(self.parent.fftsink.use_persistence)
self.peak_hold_check_box.SetValue(self.parent.fftsink.peak_hold)
- #update radio buttons
+ #update radio buttons
try:
index = list(DIV_LEVELS).index(self.parent.fftsink.y_per_div)
self.radio_buttons[index].SetValue(True)
except: pass
-
+
def on_radio_button_change(self, evt):
- selected_radio_button = filter(lambda rb: rb.GetValue(), self.radio_buttons)[0]
+ selected_radio_button = filter(lambda rb: rb.GetValue(), self.radio_buttons)[0]
index = self.radio_buttons.index(selected_radio_button)
self.parent.fftsink.set_y_per_div(DIV_LEVELS[index])
@@ -311,41 +311,41 @@ class fft_window (wx.Panel):
def __init__ (self, fftsink, parent, id = -1,
pos = wx.DefaultPosition, size = wx.DefaultSize,
style = wx.DEFAULT_FRAME_STYLE, name = ""):
-
+
self.fftsink = fftsink
- #init panel and plot
- wx.Panel.__init__(self, parent, -1)
- self.plot = plot.PlotCanvas(self, id, pos, size, style, name)
+ #init panel and plot
+ wx.Panel.__init__(self, parent, -1)
+ self.plot = plot.PlotCanvas(self, id, pos, size, style, name)
#setup the box with plot and controls
self.control_panel = control_panel(self)
main_box = wx.BoxSizer (wx.HORIZONTAL)
main_box.Add (self.plot, 1, wx.EXPAND)
main_box.Add (self.control_panel, 0, wx.EXPAND)
self.SetSizerAndFit(main_box)
-
+
self.peak_hold = False
self.peak_vals = None
self.use_persistence=False
self.persist_alpha=0.2
-
+
self.plot.SetEnableGrid (True)
# self.SetEnableZoom (True)
# self.SetBackgroundColour ('black')
-
+
self.build_popup_menu()
self.set_baseband_freq(self.fftsink.baseband_freq)
-
+
EVT_DATA_EVENT (self, self.set_data)
wx.EVT_CLOSE (self, self.on_close_window)
self.plot.Bind(wx.EVT_RIGHT_UP, self.on_right_click)
self.plot.Bind(wx.EVT_MOTION, self.evt_motion)
-
+
self.input_watcher = input_watcher(fftsink.msgq, fftsink.fft_size, self)
def set_scale(self, freq):
- x = max(abs(self.fftsink.sample_rate), abs(self.fftsink.baseband_freq))
+ x = max(abs(self.fftsink.sample_rate), abs(self.fftsink.baseband_freq))
if x >= 1e9:
self._scale_factor = 1e-9
self._units = "GHz"
@@ -364,7 +364,7 @@ class fft_window (wx.Panel):
self.peak_vals = None
self.set_scale(baseband_freq)
self.fftsink.set_baseband_freq(baseband_freq)
-
+
def on_close_window (self, event):
print "fft_window:on_close_window"
self.keep_running = False
@@ -381,7 +381,7 @@ class fft_window (wx.Panel):
self.peak_vals = numpy.maximum(dB, self.peak_vals)
if self.fftsink.input_is_real: # only plot 1/2 the points
- x_vals = ((numpy.arange (L/2) * (self.fftsink.sample_rate
+ x_vals = ((numpy.arange (L/2) * (self.fftsink.sample_rate
* self._scale_factor / L))
+ self.fftsink.baseband_freq * self._scale_factor)
self._points = numpy.zeros((len(x_vals), 2), numpy.float64)
@@ -415,7 +415,7 @@ class fft_window (wx.Panel):
ymax = self.fftsink.ref_level
ymin = self.fftsink.ref_level - self.fftsink.y_per_div * self.fftsink.y_divs
y_range = ymin, ymax
- self.plot.Draw (graphics, xAxis=x_range, yAxis=y_range, step=self.fftsink.y_per_div)
+ self.plot.Draw (graphics, xAxis=x_range, yAxis=y_range, step=self.fftsink.y_per_div)
def set_use_persistence(self, enable):
self.use_persistence = enable
@@ -489,7 +489,7 @@ class fft_window (wx.Panel):
def evt_motion(self, event):
if not hasattr(self, "_points"):
return # Got here before first window data update
-
+
# Clip to plotted values
(ux, uy) = self.plot.GetXY(event) # Scaled position
x_vals = numpy.array(self._points[:,0])
@@ -510,7 +510,7 @@ class fft_window (wx.Panel):
tip.Enable(True)
tip.SetDelay(0)
self.SetToolTip(tip)
-
+
def build_popup_menu(self):
self.id_incr_ref_level = wx.NewId()
self.id_decr_ref_level = wx.NewId()
@@ -524,7 +524,7 @@ class fft_window (wx.Panel):
self.id_average = wx.NewId()
self.id_use_persistence = wx.NewId()
self.id_peak_hold = wx.NewId()
-
+
self.plot.Bind(wx.EVT_MENU, self.on_average, id=self.id_average)
self.plot.Bind(wx.EVT_MENU, self.on_use_persistence, id=self.id_use_persistence)
self.plot.Bind(wx.EVT_MENU, self.on_peak_hold, id=self.id_peak_hold)
@@ -537,7 +537,7 @@ class fft_window (wx.Panel):
self.plot.Bind(wx.EVT_MENU, self.on_y_per_div, id=self.id_y_per_div_5)
self.plot.Bind(wx.EVT_MENU, self.on_y_per_div, id=self.id_y_per_div_10)
self.plot.Bind(wx.EVT_MENU, self.on_y_per_div, id=self.id_y_per_div_20)
-
+
# make a menu
menu = wx.Menu()
self.popup_menu = menu
diff --git a/gr-wxgui/src/python/form.py b/gr-wxgui/src/python/form.py
index b55b04d73..0442e49c8 100644
--- a/gr-wxgui/src/python/form.py
+++ b/gr-wxgui/src/python/form.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2005 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,
# Boston, MA 02110-1301, USA.
-#
+#
import wx
from gnuradio import eng_notation
@@ -32,7 +32,7 @@ def button_with_callback(parent, label, callback):
btn = wx.Button(parent, new_id, label)
wx.EVT_BUTTON(parent, new_id, lambda evt: callback())
return btn
-
+
# ----------------------------------------------------------------
# Format converters
@@ -128,7 +128,7 @@ class field(object):
sizer.Add(label_widget, 0, wx.EXPAND)
sizer.Add(widget, weight, wx.EXPAND)
return widget
-
+
def _error_msg(self):
prefix = ''
if self.label:
@@ -223,7 +223,7 @@ class quantized_slider_field(field):
self.max = range[1]
self.step_size = float(range[2])
nsteps = int((self.max-self.min)/self.step_size)
-
+
new_id = wx.NewId()
w = wx.Slider(parent, new_id, 0, 0, nsteps,
size=wx.Size(250, -1), style=wx.SL_HORIZONTAL)
@@ -272,7 +272,7 @@ class radiobox_field(field):
style=wx.RA_SPECIFY_ROWS | wx.RA_HORIZONTAL
else:
style=wx.RA_SPECIFY_COLS | wx.RA_HORIZONTAL
-
+
w = wx.RadioBox(parent, new_id, label=label, style=style, majorDimension=major_dimension,
choices=choices)
self.f = self._pair_with_label(w, parent=parent, sizer=sizer, label=None, weight=weight)
@@ -301,7 +301,7 @@ class form(dict):
"""
vals = [f.get_value_with_check() for f in self.values()]
return [t[1] for t in vals if t[1] is not None]
-
+
def get_key_vals(self):
d = {}
for (key, f) in self.items():
@@ -310,7 +310,7 @@ class form(dict):
def _nop(*args): pass
-
+
def check_input_and_call(self, callback, status_handler=_nop):
"""
Return a function that checks the form for errors, and then if it's OK,
@@ -352,7 +352,7 @@ class demo_app_flow_graph (stdgui2.std_top_block):
return True
self.form = form()
-
+
self.form['static1'] = \
static_text_field(parent=panel, sizer=vbox,
label="Static Text",
@@ -382,7 +382,7 @@ class demo_app_flow_graph (stdgui2.std_top_block):
def _set_status_msg(self, msg):
self.frame.GetStatusBar().SetStatusText(msg, 0)
-
+
def main ():
app = stdgui2.stdapp(demo_app_flow_graph, "wxgui form demo", nstatus=1)
app.MainLoop ()
diff --git a/gr-wxgui/src/python/forms/__init__.py b/gr-wxgui/src/python/forms/__init__.py
index 3f9f4c735..3068b18fe 100644
--- a/gr-wxgui/src/python/forms/__init__.py
+++ b/gr-wxgui/src/python/forms/__init__.py
@@ -21,7 +21,7 @@
"""
The following classes will be available through gnuradio.wxgui.forms:
-"""
+"""
########################################################################
# External Converters
diff --git a/gr-wxgui/src/python/forms/forms.py b/gr-wxgui/src/python/forms/forms.py
index 19b30ffb0..f1d0038ab 100644
--- a/gr-wxgui/src/python/forms/forms.py
+++ b/gr-wxgui/src/python/forms/forms.py
@@ -29,7 +29,7 @@ The forms follow a layered model:
* translation layer
* translates the between the external and internal layers
* handles parsing errors between layers
- * external layer
+ * external layer
* provided external access to the user
* set_value, get_value, and optional callback
* set and get through optional pubsub and key
@@ -511,9 +511,9 @@ from gnuradio.wxgui import gui
class app_gui (object):
def __init__(self, frame, panel, vbox, top_block, options, args):
-
+
def callback(v): print v
-
+
radio_buttons(
sizer=vbox,
parent=panel,
@@ -525,7 +525,7 @@ class app_gui (object):
callback=callback,
#major_dimension = 2,
)
-
+
radio_buttons(
sizer=vbox,
parent=panel,
@@ -537,7 +537,7 @@ class app_gui (object):
callback=callback,
#major_dimension = 2,
)
-
+
radio_buttons(
sizer=vbox,
parent=panel,
@@ -548,7 +548,7 @@ class app_gui (object):
callback=callback,
#major_dimension = 2,
)
-
+
button(
sizer=vbox,
parent=panel,
@@ -559,8 +559,8 @@ class app_gui (object):
callback=callback,
#width=100,
)
-
-
+
+
drop_down(
sizer=vbox,
parent=panel,
@@ -584,7 +584,7 @@ class app_gui (object):
callback=callback,
width=200,
)
-
+
static_text(
sizer=vbox,
parent=panel,
@@ -593,7 +593,7 @@ class app_gui (object):
width=-1,
bold=True,
)
-
+
slider(
sizer=vbox,
parent=panel,
@@ -601,7 +601,7 @@ class app_gui (object):
label='slider',
callback=callback,
)
-
+
log_slider(
sizer=vbox,
parent=panel,
@@ -609,7 +609,7 @@ class app_gui (object):
label='slider',
callback=callback,
)
-
+
slider(
sizer=vbox,
parent=panel,
@@ -619,7 +619,7 @@ class app_gui (object):
style=wx.SL_VERTICAL,
length=30,
)
-
+
toggle_button(
sizer=vbox,
parent=panel,
@@ -627,7 +627,7 @@ class app_gui (object):
label='toggle it',
callback=callback,
)
-
+
single_button(
sizer=vbox,
parent=panel,
diff --git a/gr-wxgui/src/python/gui.py b/gr-wxgui/src/python/gui.py
index 2f59af593..ccc773eab 100644
--- a/gr-wxgui/src/python/gui.py
+++ b/gr-wxgui/src/python/gui.py
@@ -1,23 +1,23 @@
#
# Copyright 2009 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,
# Boston, MA 02110-1301, USA.
-#
+#
import wx
from gnuradio import gr
@@ -47,7 +47,7 @@ class top_panel(wx.Panel):
p = wx.Panel(self)
p.SetSize((640,480))
vbox.Add(p, 1, wx.EXPAND)
-
+
self.SetSizer(vbox)
self.SetAutoLayout(True)
vbox.Fit(self)
@@ -62,7 +62,7 @@ class top_panel(wx.Panel):
# Top-level window frame with menu and status bars.
#
class top_frame(wx.Frame):
- def __init__ (self, top_block, gui, options, args,
+ def __init__ (self, top_block, gui, options, args,
title, nstatus, start, realtime):
wx.Frame.__init__(self, None, -1, title)
@@ -109,11 +109,11 @@ class top_frame(wx.Frame):
#
-# Top-level wxPython application object. User creates or subclasses this
+# Top-level wxPython application object. User creates or subclasses this
# in their GUI script.
#
class app(wx.App):
- def __init__ (self, top_block=None, gui=None, options=None, args=None,
+ def __init__ (self, top_block=None, gui=None, options=None, args=None,
title="GNU Radio", nstatus=1, start=False, realtime=False):
self.top_block = top_block
self.gui = gui
diff --git a/gr-wxgui/src/python/plot.py b/gr-wxgui/src/python/plot.py
index e0bc4ca60..041a2a7a5 100644
--- a/gr-wxgui/src/python/plot.py
+++ b/gr-wxgui/src/python/plot.py
@@ -27,13 +27,13 @@
#
# Oct 15, 2004 Gordon Williams (g_will@cyberus.ca)
# - Imported modules given leading underscore to name.
-# - Added Cursor Line Tracking and User Point Labels.
+# - Added Cursor Line Tracking and User Point Labels.
# - Demo for Cursor Line Tracking and Point Labels.
# - Size of plot preview frame adjusted to show page better.
# - Added helper functions PositionUserToScreen and PositionScreenToUser in PlotCanvas.
# - Added functions GetClosestPoints (all curves) and GetClosestPoint (only closest curve)
# can be in either user coords or screen coords.
-#
+#
# May 27, 2007 Johnathan Corgan (jcorgan@corganenterprises.com)
# - Converted from numarray to numpy
#
@@ -45,8 +45,8 @@ This is a simple light weight plotting module that can be used with
Boa or easily integrated into your own wxPython application. The
emphasis is on small size and fast plotting for large data sets. It
has a reasonable number of features to do line and scatter graphs
-easily as well as simple bar graphs. It is not as sophisticated or
-as powerful as SciPy Plt or Chaco. Both of these are great packages
+easily as well as simple bar graphs. It is not as sophisticated or
+as powerful as SciPy Plt or Chaco. Both of these are great packages
but consume huge amounts of computer resources for simple plots.
They can be found at http://scipy.com
@@ -69,7 +69,7 @@ Major Additions Gordon Williams Feb. 2003 (g_will@cyberus.ca)
-Doc strings and lots of comments
-Optimizations for large number of points
-Legends
-
+
Did a lot of work here to speed markers up. Only a factor of 4
improvement though. Lines are much faster than markers, especially
filled markers. Stay away from circles and triangles unless you
@@ -128,11 +128,11 @@ class PolyPoints:
self.scaled = self.points
self.attributes = {}
self.attributes.update(self._attributes)
- for name, value in attr.items():
+ for name, value in attr.items():
if name not in self._attributes.keys():
raise KeyError, "Style attribute incorrect. Should be one of %s" % self._attributes.keys()
self.attributes[name] = value
-
+
def boundingBox(self):
if len(self.points) == 0:
# no curves to draw
@@ -154,7 +154,7 @@ class PolyPoints:
self.currentScale= scale
self.currentShift= shift
# else unchanged use the current scaling
-
+
def getLegend(self):
return self.attributes['legend']
@@ -177,13 +177,13 @@ class PolyPoints:
pntIndex = _numpy.argmin(d)
dist = d[pntIndex]
return [pntIndex, self.points[pntIndex], self.scaled[pntIndex], dist]
-
-
+
+
class PolyLine(PolyPoints):
"""Class to define line type and style
- All methods except __init__ are private.
"""
-
+
_attributes = {'colour': 'black',
'width': 1,
'style': wx.SOLID,
@@ -224,7 +224,7 @@ class PolyMarker(PolyPoints):
"""Class to define marker type and style
- All methods except __init__ are private.
"""
-
+
_attributes = {'colour': 'black',
'width': 1,
'size': 2,
@@ -245,7 +245,7 @@ class PolyMarker(PolyPoints):
'fillstyle'= wx.SOLID, - wx.Brush fill style (use wx.TRANSPARENT for no fill)
'marker'= 'circle' - Marker shape
'legend'= '' - Marker Legend to display
-
+
Marker Shapes:
- 'circle'
- 'dot'
@@ -255,7 +255,7 @@ class PolyMarker(PolyPoints):
- 'cross'
- 'plus'
"""
-
+
PolyPoints.__init__(self, points, attr)
def draw(self, dc, printerScale, coord= None):
@@ -315,7 +315,7 @@ class PolyMarker(PolyPoints):
poly.shape= (len(coords),3,2)
poly += shape
dc.DrawPolygonList(poly.astype(_numpy.int32))
-
+
def _cross(self, dc, coords, size=1):
fact= 2.5*size
for f in [[-fact,-fact,fact,fact],[-fact,fact,fact,-fact]]:
@@ -370,7 +370,7 @@ class PlotGraphics:
def setYLabel(self, yLabel= ''):
"""Set the Y axis label on the graph"""
self.yLabel= yLabel
-
+
def setTitle(self, title= ''):
"""Set the title at the top of graph"""
self.title= title
@@ -401,14 +401,14 @@ class PlotGraphics:
oSymExt = o.getSymExtent(printerScale)
symExt = _numpy.maximum(symExt, oSymExt)
return symExt
-
+
def getLegendNames(self):
"""Returns list of legend names"""
lst = [None]*len(self)
for i in range(len(self)):
lst[i]= self.objects[i].getLegend()
return lst
-
+
def __len__(self):
return len(self.objects)
@@ -432,12 +432,12 @@ class PlotCanvas(wx.Window):
self.decim_counter=0
"""Constucts a window, which can be a child of a frame, dialog or
any other non-control window"""
-
+
wx.Window.__init__(self, parent, id, pos, size, style, name)
self.border = (1,1)
self.SetBackgroundColour("white")
-
+
# Create some mouse events for zooming
self.Bind(wx.EVT_LEFT_DOWN, self.OnMouseLeftDown)
self.Bind(wx.EVT_LEFT_UP, self.OnMouseLeftUp)
@@ -466,7 +466,7 @@ class PlotCanvas(wx.Window):
self._zoomCorner2= _numpy.array([0.0, 0.0]) # left mouse up corner
self._zoomEnabled= False
self._hasDragged= False
-
+
# Drawing Variables
self.last_draw = None
self._pointScale= 1
@@ -476,7 +476,7 @@ class PlotCanvas(wx.Window):
self._gridEnabled= False
self._legendEnabled= False
self._xUseScopeTicks= False
-
+
# Fonts
self._fontCache = {}
self._fontSizeAxis= 10
@@ -504,13 +504,13 @@ class PlotCanvas(wx.Window):
def set_persist_alpha(self, persist_alpha):
self.alpha = persist_alpha
-
+
# SaveFile
def SaveFile(self, fileName= ''):
"""Saves the file to the type specified in the extension. If no file
name is specified a dialog box is provided. Returns True if sucessful,
otherwise False.
-
+
.bmp Save a Windows bitmap file.
.xbm Save an X bitmap file.
.xpm Save an XPM bitmap file.
@@ -519,7 +519,7 @@ class PlotCanvas(wx.Window):
"""
if _string.lower(fileName[-3:]) not in ['bmp','xbm','xpm','png','jpg']:
dlg1 = wx.FileDialog(
- self,
+ self,
"Choose a file with extension bmp, gif, xbm, xpm, png, or jpg", ".", "",
"BMP files (*.bmp)|*.bmp|XBM files (*.xbm)|*.xbm|XPM file (*.xpm)|*.xpm|PNG files (*.png)|*.png|JPG files (*.jpg)|*.jpg",
wx.SAVE|wx.OVERWRITE_PROMPT
@@ -576,7 +576,7 @@ class PlotCanvas(wx.Window):
self.print_data=data.GetPrintData() # updates print_data
finally:
dlg.Destroy()
-
+
def Printout(self, paper=None):
"""Print current plot."""
if paper != None:
@@ -614,11 +614,11 @@ class PlotCanvas(wx.Window):
def SetFontSizeAxis(self, point= 10):
"""Set the tick and axis label font size (default is 10 point)"""
self._fontSizeAxis= point
-
+
def GetFontSizeAxis(self):
"""Get current tick and axis label font size in points"""
return self._fontSizeAxis
-
+
def SetFontSizeTitle(self, point= 15):
"""Set Title font size (default is 15 point)"""
self._fontSizeTitle= point
@@ -626,11 +626,11 @@ class PlotCanvas(wx.Window):
def GetFontSizeTitle(self):
"""Get current Title font size in points"""
return self._fontSizeTitle
-
+
def SetFontSizeLegend(self, point= 7):
"""Set Legend font size (default is 7 point)"""
self._fontSizeLegend= point
-
+
def GetFontSizeLegend(self):
"""Get current Legend font size in points"""
return self._fontSizeLegend
@@ -660,7 +660,7 @@ class PlotCanvas(wx.Window):
"""Set True to enable legend."""
if value not in [True,False]:
raise TypeError, "Value should be True or False"
- self._legendEnabled= value
+ self._legendEnabled= value
self.Redraw()
def GetEnableLegend(self):
@@ -671,7 +671,7 @@ class PlotCanvas(wx.Window):
"""Set True to enable pointLabel."""
if value not in [True,False]:
raise TypeError, "Value should be True or False"
- self._pointLabelEnabled= value
+ self._pointLabelEnabled= value
self.Redraw() #will erase existing pointLabel if present
self.last_PointLabel = None
@@ -694,8 +694,8 @@ class PlotCanvas(wx.Window):
self.last_PointLabel = None #reset pointLabel
if self.last_draw is not None:
self.Draw(self.last_draw[0])
-
- def ScrollRight(self, units):
+
+ def ScrollRight(self, units):
"""Move view right number of axis units."""
self.last_PointLabel = None #reset pointLabel
if self.last_draw is not None:
@@ -710,7 +710,7 @@ class PlotCanvas(wx.Window):
graphics, xAxis, yAxis= self.last_draw
yAxis= (yAxis[0]+units, yAxis[1]+units)
self.Draw(graphics,xAxis,yAxis)
-
+
def GetXY(self,event):
"""Takes a mouse event and returns the XY user axis values."""
x,y= self.PositionScreenToUser(event.GetPosition())
@@ -721,13 +721,13 @@ class PlotCanvas(wx.Window):
userPos= _numpy.array(pntXY)
x,y= userPos * self._pointScale + self._pointShift
return x,y
-
+
def PositionScreenToUser(self, pntXY):
"""Converts Screen position to User Coordinates"""
screenPos= _numpy.array(pntXY)
x,y= (screenPos-self._pointShift)/self._pointScale
return x,y
-
+
def SetXSpec(self, type= 'auto'):
"""xSpec- defines x axis type. Can be 'none', 'min' or 'auto'
where:
@@ -736,7 +736,7 @@ class PlotCanvas(wx.Window):
'auto' - rounds axis range to sensible values
"""
self._xSpec= type
-
+
def SetYSpec(self, type= 'auto'):
"""ySpec- defines x axis type. Can be 'none', 'min' or 'auto'
where:
@@ -749,11 +749,11 @@ class PlotCanvas(wx.Window):
def GetXSpec(self):
"""Returns current XSpec for axis"""
return self._xSpec
-
+
def GetYSpec(self):
"""Returns current YSpec for axis"""
return self._ySpec
-
+
def GetXMaxRange(self):
"""Returns (minX, maxX) x-axis range for displayed graph"""
graphics= self.last_draw[0]
@@ -771,15 +771,15 @@ class PlotCanvas(wx.Window):
def GetXCurrentRange(self):
"""Returns (minX, maxX) x-axis for currently displayed portion of graph"""
return self.last_draw[1]
-
+
def GetYCurrentRange(self):
"""Returns (minY, maxY) y-axis for currently displayed portion of graph"""
return self.last_draw[2]
-
+
def SetXUseScopeTicks(self, v=False):
"""Always 10 divisions, no labels"""
self._xUseScopeTicks = v
-
+
def GetXUseScopeTicks(self):
return self._xUseScopeTicks
@@ -788,7 +788,7 @@ class PlotCanvas(wx.Window):
graphics- instance of PlotGraphics with list of PolyXXX objects
xAxis - tuple with (min, max) axis range to view
yAxis - same as xAxis
- dc - drawing context - doesn't have to be specified.
+ dc - drawing context - doesn't have to be specified.
If it's not, the offscreen buffer is used
"""
# check Axis is either tuple or none
@@ -796,7 +796,7 @@ class PlotCanvas(wx.Window):
raise TypeError, "xAxis should be None or (minX,maxX)"
if type(yAxis) not in [type(None),tuple]:
raise TypeError, "yAxis should be None or (minY,maxY)"
-
+
# check case for axis = (a,b) where a==b caused by improper zooms
if xAxis != None:
if xAxis[0] == xAxis[1]:
@@ -804,22 +804,22 @@ class PlotCanvas(wx.Window):
if yAxis != None:
if yAxis[0] == yAxis[1]:
return
-
+
if dc == None:
- # sets new dc and clears it
+ # sets new dc and clears it
if self.use_persistence:
dc = wx.MemoryDC()
dc.SelectObject(self._Buffer)
dc.Clear()
else:
dc = wx.BufferedDC(wx.ClientDC(self), self._Buffer)
- dc.Clear()
-
+ dc.Clear()
+
dc.BeginDrawing()
# dc.Clear()
-
-
+
+
# set font size for every thing but title and legend
dc.SetFont(self._getFont(self._fontSizeAxis))
@@ -847,7 +847,7 @@ class PlotCanvas(wx.Window):
dc.SetBrush(wx.Brush( wx.BLACK, wx.SOLID ) ) #wx.SOLID wx.TRANSPARENT ) )
#dc.SetLogicalFunction(wx.INVERT) #wx.XOR wx.INVERT
dc.DrawRectangle( ptx,pty, rectWidth,rectHeight)
- #dc.SetBrush(wx.Brush( wx.WHITE, wx.SOLID ) )
+ #dc.SetBrush(wx.Brush( wx.WHITE, wx.SOLID ) )
#dc.SetLogicalFunction(wx.COPY)
# Get ticks and textExtents for axis if required
@@ -908,13 +908,13 @@ class PlotCanvas(wx.Window):
self._pointScale= scale # make available for mouse events
self._pointShift= shift
- #dc.SetLogicalFunction(wx.INVERT) #wx.XOR wx.INVERT
+ #dc.SetLogicalFunction(wx.INVERT) #wx.XOR wx.INVERT
self._drawAxes(dc, p1, p2, scale, shift, xticks, yticks)
- #dc.SetLogicalFunction(wx.COPY)
-
+ #dc.SetLogicalFunction(wx.COPY)
+
graphics.scaleAndShift(scale, shift)
graphics.setPrinterScale(self.printerScale) # thicken up lines and markers if printing
-
+
# set clipping area so drawing does not occur outside axis box
ptx,pty,rectWidth,rectHeight= self._point2ClientCoord(p1, p2)
dc.SetClippingRegion(ptx,pty,rectWidth,rectHeight)
@@ -946,7 +946,7 @@ class PlotCanvas(wx.Window):
self._Buffer2array +=self._Bufferarray.astype(_numpy.uint32)*alpha_int
self._Buffer2array /=256
- ##copy back to image buffer
+ ##copy back to image buffer
self._Buffer2.CopyFromBuffer(self._Buffer2array.astype(_numpy.uint8)) #, format=wx.BitmapBufferFormat_RGB, stride=-1)
#draw to the screen
@@ -958,7 +958,7 @@ class PlotCanvas(wx.Window):
dc2.DrawBitmap(self._Buffer2, 0, 0, False)
#dc2.DrawBitmap(self._Buffer, 0, 0, False)
dc2.EndDrawing()
-
+
def Redraw(self, dc= None):
"""Redraw the existing plot."""
if self.last_draw is not None:
@@ -986,13 +986,13 @@ class PlotCanvas(wx.Window):
xAxis = ( x - w/2, x + w/2 )
yAxis = ( y - h/2, y + h/2 )
self.Draw(graphics, xAxis, yAxis)
-
+
def GetClosestPoints(self, pntXY, pointScaled= True):
"""Returns list with
[curveNumber, legend, index of closest point, pointXY, scaledXY, distance]
list for each curve.
Returns [] if no curves are being plotted.
-
+
x, y in user coords
if pointScaled == True based on screen coords
if pointScaled == False based on user coords
@@ -1016,7 +1016,7 @@ class PlotCanvas(wx.Window):
[curveNumber, legend, index of closest point, pointXY, scaledXY, distance]
list for only the closest curve.
Returns [] if no curves are being plotted.
-
+
x, y in user coords
if pointScaled == True based on screen coords
if pointScaled == False based on user coords
@@ -1042,7 +1042,7 @@ class PlotCanvas(wx.Window):
you specify.
This function can be called from parent window with onClick,
- onMotion events etc.
+ onMotion events etc.
"""
if self.last_PointLabel != None:
#compare pointXY
@@ -1088,7 +1088,7 @@ class PlotCanvas(wx.Window):
def OnMouseDoubleClick(self,event):
if self._zoomEnabled:
self.Reset()
-
+
def OnMouseRightDown(self,event):
if self._zoomEnabled:
X,Y = self.GetXY(event)
@@ -1113,13 +1113,13 @@ class PlotCanvas(wx.Window):
# a file, or whatever.
self._Buffer = wx.EmptyBitmap(Size[0],Size[1],24)
-
+
if True: #self.use_persistence:
#self._Bufferarray = _numpy.zeros((Size[0], Size[1],3), dtype=_numpy.uint8)
self._Bufferarray = _numpy.zeros((Size[0]* Size[1]*3), dtype=_numpy.uint8)
# Make new second offscreen bitmap: this bitmap will always have the
- # last drawing in it, so it can be used to do display time dependent processing
+ # last drawing in it, so it can be used to do display time dependent processing
# like averaging (IIR) or show differences between updates
self._Buffer2 = wx.EmptyBitmap(Size[0],Size[1],24)
# now the extra buffers for the IIR processing
@@ -1144,24 +1144,24 @@ class PlotCanvas(wx.Window):
self._drawPointLabel(self.last_PointLabel) #erase old
self.last_PointLabel = None
-
+
# Private Methods **************************************************
def _setSize(self, width=None, height=None):
"""DC width and height."""
if width == None:
(self.width,self.height) = self.GetClientSize()
else:
- self.width, self.height= width,height
+ self.width, self.height= width,height
self.plotbox_size = 0.97*_numpy.array([self.width, self.height])
xo = 0.5*(self.width-self.plotbox_size[0])
yo = self.height-0.5*(self.height-self.plotbox_size[1])
self.plotbox_origin = _numpy.array([xo, yo])
-
+
def _setPrinterScale(self, scale):
"""Used to thicken lines and increase marker size for print out."""
# line thickness on printer is very thin at 600 dot/in. Markers small
self.printerScale= scale
-
+
def _printDraw(self, printDC):
"""Used for printing."""
if self.last_draw != None:
@@ -1183,7 +1183,7 @@ class PlotCanvas(wx.Window):
dc = wx.ClientDC( self )
#this will erase if called twice
dc.Blit(0, 0, width, height, dcs, 0, 0, wx.EQUIV) #(NOT src) XOR dst
-
+
def _drawLegend(self,dc,graphics,rhsW,topH,legendBoxWH, legendSymExt, legendTextExt):
"""Draws legend symbols and text"""
@@ -1222,7 +1222,7 @@ class PlotCanvas(wx.Window):
xLabelWH= dc.GetTextExtent(xLabel)
yLabelWH= dc.GetTextExtent(yLabel)
return titleWH, xLabelWH, yLabelWH
-
+
def _legendWH(self, dc, graphics):
"""Returns the size in screen units for legend box"""
if self._legendEnabled != True:
@@ -1236,7 +1236,7 @@ class PlotCanvas(wx.Window):
txtExt= dc.GetTextExtent(txtList[0])
for txt in graphics.getLegendNames()[1:]:
txtExt= _numpy.maximum(txtExt,dc.GetTextExtent(txt))
- maxW= symExt[0]+txtExt[0]
+ maxW= symExt[0]+txtExt[0]
maxH= max(symExt[1],txtExt[1])
# padding .1 for lhs of legend box and space between lines
maxW= maxW* 1.1
@@ -1250,7 +1250,7 @@ class PlotCanvas(wx.Window):
ptx,pty,rectWidth,rectHeight= self._point2ClientCoord(corner1, corner2)
# draw rectangle
dc = wx.ClientDC( self )
- dc.BeginDrawing()
+ dc.BeginDrawing()
dc.SetPen(wx.Pen(wx.BLACK))
dc.SetBrush(wx.Brush( wx.WHITE, wx.TRANSPARENT ) )
dc.SetLogicalFunction(wx.INVERT)
@@ -1285,8 +1285,8 @@ class PlotCanvas(wx.Window):
plr= _numpy.maximum(pt1,pt2) # Lower right corner
rectWidth, rectHeight= plr-pul
ptx,pty= pul
- return ptx, pty, rectWidth, rectHeight
-
+ return ptx, pty, rectWidth, rectHeight
+
def _axisInterval(self, spec, lower, upper):
"""Returns sensible axis range for given spec"""
if spec == 'none' or spec == 'min':
@@ -1320,10 +1320,10 @@ class PlotCanvas(wx.Window):
raise ValueError, str(spec) + ': illegal axis specification'
def _drawAxes(self, dc, p1, p2, scale, shift, xticks, yticks):
-
+
penWidth= self.printerScale # increases thickness for printing only
dc.SetPen(wx.Pen(wx.NamedColour('BLACK'), penWidth))
-
+
# set length of tick marks--long ones make grid
if self._gridEnabled:
x,y,width,height= self._point2ClientCoord(p1,p2)
@@ -1332,7 +1332,7 @@ class PlotCanvas(wx.Window):
else:
yTickLength= 3 * self.printerScale # lengthens lines for printing
xTickLength= 3 * self.printerScale
-
+
if self._xSpec is not 'none':
lower, upper = p1[0],p2[0]
text = 1
@@ -1377,7 +1377,7 @@ class PlotCanvas(wx.Window):
factor = f
grid = factor * 10.**power
if power > 4 or power < -4:
- format = '%+7.1e'
+ format = '%+7.1e'
elif power >= 0:
digits = max(1, int(power))
format = '%' + `digits`+'.0f'
@@ -1441,14 +1441,14 @@ class PlotPrintout(wx.Printout):
dcSize= dc.GetSize() # DC size
pageSize= self.GetPageSizePixels() # page size in terms of pixcels
clientDcSize= self.graph.GetClientSize()
-
+
# find what the margins are (mm)
margLeftSize,margTopSize= self.graph.pageSetupData.GetMarginTopLeft()
margRightSize, margBottomSize= self.graph.pageSetupData.GetMarginBottomRight()
# calculate offset and scale for dc
pixLeft= margLeftSize*PPIPrinter[0]/25.4 # mm*(dots/in)/(mm/in)
- pixRight= margRightSize*PPIPrinter[0]/25.4
+ pixRight= margRightSize*PPIPrinter[0]/25.4
pixTop= margTopSize*PPIPrinter[1]/25.4
pixBottom= margBottomSize*PPIPrinter[1]/25.4
@@ -1463,10 +1463,10 @@ class PlotPrintout(wx.Printout):
pixTop *= ratioH
plotAreaW *= ratioW
plotAreaH *= ratioH
-
+
# rescale plot to page or preview plot area
self.graph._setSize(plotAreaW,plotAreaH)
-
+
# Set offset and scale
dc.SetDeviceOrigin(pixLeft,pixTop)
@@ -1511,7 +1511,7 @@ def _draw1Objects():
markers2 = PolyMarker([(0., 0.), (pi/4., 1.), (pi/2, 0.),
(3.*pi/4., -1)], legend='Cross Legend', colour='blue',
marker='cross')
-
+
return PlotGraphics([markers1, lines, markers2],"Graph Title", "X Axis", "Y Axis")
def _draw2Objects():
@@ -1593,16 +1593,16 @@ class TestFrame(wx.Frame):
menu = wx.Menu()
menu.Append(200, 'Page Setup...', 'Setup the printer page')
self.Bind(wx.EVT_MENU, self.OnFilePageSetup, id=200)
-
+
menu.Append(201, 'Print Preview...', 'Show the current plot on page')
self.Bind(wx.EVT_MENU, self.OnFilePrintPreview, id=201)
-
+
menu.Append(202, 'Print...', 'Print the current plot')
self.Bind(wx.EVT_MENU, self.OnFilePrint, id=202)
-
+
menu.Append(203, 'Save Plot...', 'Save current plot')
self.Bind(wx.EVT_MENU, self.OnSaveFile, id=203)
-
+
menu.Append(205, 'E&xit', 'Enough of this already!')
self.Bind(wx.EVT_MENU, self.OnFileExit, id=205)
self.mainmenu.Append(menu, '&File')
@@ -1620,25 +1620,25 @@ class TestFrame(wx.Frame):
self.Bind(wx.EVT_MENU,self.OnPlotDraw5, id=210)
menu.Append(260, 'Draw6', 'Draw plots6')
self.Bind(wx.EVT_MENU,self.OnPlotDraw6, id=260)
-
+
menu.Append(211, '&Redraw', 'Redraw plots')
self.Bind(wx.EVT_MENU,self.OnPlotRedraw, id=211)
menu.Append(212, '&Clear', 'Clear canvas')
self.Bind(wx.EVT_MENU,self.OnPlotClear, id=212)
menu.Append(213, '&Scale', 'Scale canvas')
- self.Bind(wx.EVT_MENU,self.OnPlotScale, id=213)
+ self.Bind(wx.EVT_MENU,self.OnPlotScale, id=213)
menu.Append(214, 'Enable &Zoom', 'Enable Mouse Zoom', kind=wx.ITEM_CHECK)
- self.Bind(wx.EVT_MENU,self.OnEnableZoom, id=214)
+ self.Bind(wx.EVT_MENU,self.OnEnableZoom, id=214)
menu.Append(215, 'Enable &Grid', 'Turn on Grid', kind=wx.ITEM_CHECK)
self.Bind(wx.EVT_MENU,self.OnEnableGrid, id=215)
menu.Append(220, 'Enable &Legend', 'Turn on Legend', kind=wx.ITEM_CHECK)
self.Bind(wx.EVT_MENU,self.OnEnableLegend, id=220)
menu.Append(222, 'Enable &Point Label', 'Show Closest Point', kind=wx.ITEM_CHECK)
self.Bind(wx.EVT_MENU,self.OnEnablePointLabel, id=222)
-
+
menu.Append(225, 'Scroll Up 1', 'Move View Up 1 Unit')
- self.Bind(wx.EVT_MENU,self.OnScrUp, id=225)
+ self.Bind(wx.EVT_MENU,self.OnScrUp, id=225)
menu.Append(230, 'Scroll Rt 2', 'Move View Right 2 Units')
self.Bind(wx.EVT_MENU,self.OnScrRt, id=230)
menu.Append(235, '&Plot Reset', 'Reset to original plot')
@@ -1655,7 +1655,7 @@ class TestFrame(wx.Frame):
# A status bar to tell people what's happening
self.CreateStatusBar(1)
-
+
self.client = PlotCanvas(self)
#define the function for drawing pointLabels
self.client.SetPointLabelFunc(self.DrawPointLabel)
@@ -1678,7 +1678,7 @@ class TestFrame(wx.Frame):
# ----------
dc.SetPen(wx.Pen(wx.BLACK))
dc.SetBrush(wx.Brush( wx.BLACK, wx.SOLID ) )
-
+
sx, sy = mDataDict["scaledXY"] #scaled x,y of closest point
dc.DrawRectangle( sx-5,sy-5, 10, 10) #10by10 square centered on point
px,py = mDataDict["pointXY"]
@@ -1703,7 +1703,7 @@ class TestFrame(wx.Frame):
dlst= self.client.GetClosetPoint( self.client.GetXY(event), pointScaled= True)
if dlst != []: #returns [] if none
curveNum, legend, pIndex, pointXY, scaledXY, distance = dlst
- #make up dictionary to pass to my user function (see DrawPointLabel)
+ #make up dictionary to pass to my user function (see DrawPointLabel)
mDataDict= {"curveNum":curveNum, "legend":legend, "pIndex":pIndex,\
"pointXY":pointXY, "scaledXY":scaledXY}
#pass dict to update the pointLabel
@@ -1712,13 +1712,13 @@ class TestFrame(wx.Frame):
def OnFilePageSetup(self, event):
self.client.PageSetup()
-
+
def OnFilePrintPreview(self, event):
self.client.PrintPreview()
-
+
def OnFilePrint(self, event):
self.client.Printout()
-
+
def OnSaveFile(self, event):
self.client.SaveFile()
@@ -1728,11 +1728,11 @@ class TestFrame(wx.Frame):
def OnPlotDraw1(self, event):
self.resetDefaults()
self.client.Draw(_draw1Objects())
-
+
def OnPlotDraw2(self, event):
self.resetDefaults()
self.client.Draw(_draw2Objects())
-
+
def OnPlotDraw3(self, event):
self.resetDefaults()
self.client.SetFont(wx.Font(10,wx.SCRIPT,wx.NORMAL,wx.NORMAL))
@@ -1747,7 +1747,7 @@ class TestFrame(wx.Frame):
drawObj= _draw4Objects()
self.client.Draw(drawObj)
## # profile
-## start = _time.clock()
+## start = _time.clock()
## for x in range(10):
## self.client.Draw(drawObj)
## print "10 plots of Draw4 took: %f sec."%(_time.clock() - start)
@@ -1775,7 +1775,7 @@ class TestFrame(wx.Frame):
def OnPlotClear(self,event):
self.client.Clear()
-
+
def OnPlotScale(self, event):
if self.client.last_draw != None:
graphics, xAxis, yAxis= self.client.last_draw
@@ -1783,10 +1783,10 @@ class TestFrame(wx.Frame):
def OnEnableZoom(self, event):
self.client.SetEnableZoom(event.IsChecked())
-
+
def OnEnableGrid(self, event):
self.client.SetEnableGrid(event.IsChecked())
-
+
def OnEnableLegend(self, event):
self.client.SetEnableLegend(event.IsChecked())
@@ -1795,7 +1795,7 @@ class TestFrame(wx.Frame):
def OnScrUp(self, event):
self.client.ScrollUp(1)
-
+
def OnScrRt(self,event):
self.client.ScrollRight(2)
@@ -1814,7 +1814,7 @@ class TestFrame(wx.Frame):
self.client.SetFontSizeLegend(7)
self.client.SetXSpec('auto')
self.client.SetYSpec('auto')
-
+
def __test():
diff --git a/gr-wxgui/src/python/plotter/common.py b/gr-wxgui/src/python/plotter/common.py
index 4c50cd787..6775b7057 100644
--- a/gr-wxgui/src/python/plotter/common.py
+++ b/gr-wxgui/src/python/plotter/common.py
@@ -115,7 +115,7 @@ class point_label_thread(threading.Thread, mutex):
def run(self):
last_ts = time.time()
last_coor = coor = None
- try:
+ try:
while True:
time.sleep(1.0/30.0)
self.lock()
diff --git a/gr-wxgui/src/python/plotter/gltext.py b/gr-wxgui/src/python/plotter/gltext.py
index 1b3c047dc..0b6e3f55b 100644
--- a/gr-wxgui/src/python/plotter/gltext.py
+++ b/gr-wxgui/src/python/plotter/gltext.py
@@ -1,503 +1,503 @@
-#!/usr/bin/env python
-# -*- coding: utf-8
-#
-# Provides some text display functions for wx + ogl
-# Copyright (C) 2007 Christian Brugger, Stefan Hacker
-#
-# This program 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 2 of the License, or
-# (at your option) any later version.
-#
-# This program 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 this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-
-import wx
-from OpenGL.GL import *
-
-"""
-Optimize with psyco if possible, this gains us about 50% speed when
-creating our textures in trade for about 4MBytes of additional memory usage for
-psyco. If you don't like loosing the memory you have to turn the lines following
-"enable psyco" into a comment while uncommenting the line after "Disable psyco".
-"""
-#Try to enable psyco
-try:
- import psyco
- psyco_optimized = False
-except ImportError:
- psyco = None
-
-#Disable psyco
-#psyco = None
-
-class TextElement(object):
- """
- A simple class for using system Fonts to display
- text in an OpenGL scene
- """
- def __init__(self,
- text = '',
- font = None,
- foreground = wx.BLACK,
- centered = False):
- """
- text (String) - Text
- font (wx.Font) - Font to draw with (None = System default)
- foreground (wx.Color) - Color of the text
- or (wx.Bitmap)- Bitmap to overlay the text with
- centered (bool) - Center the text
-
- Initializes the TextElement
- """
- # save given variables
- self._text = text
- self._lines = text.split('\n')
- self._font = font
- self._foreground = foreground
- self._centered = centered
-
- # init own variables
- self._owner_cnt = 0 #refcounter
- self._texture = None #OpenGL texture ID
- self._text_size = None #x/y size tuple of the text
- self._texture_size= None #x/y Texture size tuple
-
- # create Texture
- self.createTexture()
-
-
- #---Internal helpers
-
- def _getUpper2Base(self, value):
- """
- Returns the lowest value with the power of
- 2 greater than 'value' (2^n>value)
- """
- base2 = 1
- while base2 < value:
- base2 *= 2
- return base2
-
- #---Functions
-
- def draw_text(self, position = wx.Point(0,0), scale = 1.0, rotation = 0):
- """
- position (wx.Point) - x/y Position to draw in scene
- scale (float) - Scale
- rotation (int) - Rotation in degree
-
- Draws the text to the scene
- """
- #Enable necessary functions
- glColor(1,1,1,1)
- glEnable(GL_TEXTURE_2D)
- glEnable(GL_ALPHA_TEST) #Enable alpha test
- glAlphaFunc(GL_GREATER, 0)
- glEnable(GL_BLEND) #Enable blending
- glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA)
- #Bind texture
- glBindTexture(GL_TEXTURE_2D, self._texture)
-
- ow, oh = self._text_size
- w , h = self._texture_size
- #Perform transformations
- glPushMatrix()
- glTranslated(position.x, position.y, 0)
- glRotate(-rotation, 0, 0, 1)
- glScaled(scale, scale, scale)
- if self._centered:
- glTranslate(-w/2, -oh/2, 0)
- #Draw vertices
- glBegin(GL_QUADS)
- glTexCoord2f(0,0); glVertex2f(0,0)
- glTexCoord2f(0,1); glVertex2f(0,h)
- glTexCoord2f(1,1); glVertex2f(w,h)
- glTexCoord2f(1,0); glVertex2f(w,0)
- glEnd()
- glPopMatrix()
-
- #Disable features
- glDisable(GL_BLEND)
- glDisable(GL_ALPHA_TEST)
- glDisable(GL_TEXTURE_2D)
-
- def createTexture(self):
- """
- Creates a texture from the settings saved in TextElement, to be able to use normal
- system fonts conviently a wx.MemoryDC is used to draw on a wx.Bitmap. As wxwidgets
- device contexts don't support alpha at all it is necessary to apply a little hack
- to preserve antialiasing without sticking to a fixed background color:
-
- We draw the bmp in b/w mode so we can use its data as a alpha channel for a solid
- color bitmap which after GL_ALPHA_TEST and GL_BLEND will show a nicely antialiased
- text on any surface.
-
- To access the raw pixel data the bmp gets converted to a wx.Image. Now we just have
- to merge our foreground color with the alpha data we just created and push it all
- into a OpenGL texture and we are DONE *inhalesdelpy*
-
- DRAWBACK of the whole conversion thing is a really long time for creating the
- texture. If you see any optimizations that could save time PLEASE CREATE A PATCH!!!
- """
- # get a memory dc
- dc = wx.MemoryDC()
-
- # set our font
- dc.SetFont(self._font)
-
- # Approximate extend to next power of 2 and create our bitmap
- # REMARK: You wouldn't believe how much fucking speed this little
- # sucker gains compared to sizes not of the power of 2. It's like
- # 500ms --> 0.5ms (on my ATI-GPU powered Notebook). On Sams nvidia
- # machine there don't seem to occur any losses...bad drivers?
- ow, oh = dc.GetMultiLineTextExtent(self._text)[:2]
- w, h = self._getUpper2Base(ow), self._getUpper2Base(oh)
-
- self._text_size = wx.Size(ow,oh)
- self._texture_size = wx.Size(w,h)
- bmp = wx.EmptyBitmap(w,h)
-
-
- #Draw in b/w mode to bmp so we can use it as alpha channel
- dc.SelectObject(bmp)
- dc.SetBackground(wx.BLACK_BRUSH)
- dc.Clear()
- dc.SetTextForeground(wx.WHITE)
- x,y = 0,0
- centered = self.centered
- for line in self._lines:
- if not line: line = ' '
- tw, th = dc.GetTextExtent(line)
- if centered:
- x = int(round((w-tw)/2))
- dc.DrawText(line, x, y)
- x = 0
- y += th
- #Release the dc
- dc.SelectObject(wx.NullBitmap)
- del dc
-
- #Generate a correct RGBA data string from our bmp
- """
- NOTE: You could also use wx.AlphaPixelData to access the pixel data
- in 'bmp' directly, but the iterator given by it is much slower than
- first converting to an image and using wx.Image.GetData().
- """
- img = wx.ImageFromBitmap(bmp)
- alpha = img.GetData()
-
- if isinstance(self._foreground, wx.Colour):
- """
- If we have a static color...
- """
- r,g,b = self._foreground.Get()
- color = "%c%c%c" % (chr(r), chr(g), chr(b))
-
- data = ''
- for i in xrange(0, len(alpha)-1, 3):
- data += color + alpha[i]
-
- elif isinstance(self._foreground, wx.Bitmap):
- """
- If we have a bitmap...
- """
- bg_img = wx.ImageFromBitmap(self._foreground)
- bg = bg_img.GetData()
- bg_width = self._foreground.GetWidth()
- bg_height = self._foreground.GetHeight()
-
- data = ''
-
- for y in xrange(0, h):
- for x in xrange(0, w):
- if (y > (bg_height-1)) or (x > (bg_width-1)):
- color = "%c%c%c" % (chr(0),chr(0),chr(0))
- else:
- pos = (x+y*bg_width) * 3
- color = bg[pos:pos+3]
- data += color + alpha[(x+y*w)*3]
-
-
- # now convert it to ogl texture
- self._texture = glGenTextures(1)
- glBindTexture(GL_TEXTURE_2D, self._texture)
- glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR)
- glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR)
-
- glPixelStorei(GL_UNPACK_ROW_LENGTH, 0)
- glPixelStorei(GL_UNPACK_ALIGNMENT, 2)
- glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, w, h, 0, GL_RGBA, GL_UNSIGNED_BYTE, data)
-
- def deleteTexture(self):
- """
- Deletes the OpenGL texture object
- """
- if self._texture:
- if glIsTexture(self._texture):
- glDeleteTextures(self._texture)
- else:
- self._texture = None
-
- def bind(self):
- """
- Increase refcount
- """
- self._owner_cnt += 1
-
- def release(self):
- """
- Decrease refcount
- """
- self._owner_cnt -= 1
-
- def isBound(self):
- """
- Return refcount
- """
- return self._owner_cnt
-
- def __del__(self):
- """
- Destructor
- """
- self.deleteTexture()
-
- #---Getters/Setters
-
- def getText(self): return self._text
- def getFont(self): return self._font
- def getForeground(self): return self._foreground
- def getCentered(self): return self._centered
- def getTexture(self): return self._texture
- def getTexture_size(self): return self._texture_size
-
- def getOwner_cnt(self): return self._owner_cnt
- def setOwner_cnt(self, value):
- self._owner_cnt = value
-
- #---Properties
-
- text = property(getText, None, None, "Text of the object")
- font = property(getFont, None, None, "Font of the object")
- foreground = property(getForeground, None, None, "Color of the text")
- centered = property(getCentered, None, None, "Is text centered")
- owner_cnt = property(getOwner_cnt, setOwner_cnt, None, "Owner count")
- texture = property(getTexture, None, None, "Used texture")
- texture_size = property(getTexture_size, None, None, "Size of the used texture")
-
-
-class Text(object):
- """
- A simple class for using System Fonts to display text in
- an OpenGL scene. The Text adds a global Cache of already
- created text elements to TextElement's base functionality
- so you can save some memory and increase speed
- """
- _texts = [] #Global cache for TextElements
-
- def __init__(self,
- text = 'Text',
- font = None,
- font_size = 8,
- foreground = wx.BLACK,
- centered = False,
- bold = False):
- """
- text (string) - displayed text
- font (wx.Font) - if None, system default font will be used with font_size
- font_size (int) - font size in points
- foreground (wx.Color) - Color of the text
- or (wx.Bitmap) - Bitmap to overlay the text with
- centered (bool) - should the text drawn centered towards position?
-
- Initializes the text object
- """
- #Init/save variables
- self._aloc_text = None
- self._text = text
- self._font_size = font_size
- self._foreground= foreground
- self._centered = centered
-
- #Check if we are offered a font
- if not font:
- #if not use the system default
- self._font = wx.SystemSettings.GetFont(wx.SYS_DEFAULT_GUI_FONT)
- else:
- #save it
- self._font = font
-
- if bold: self._font.SetWeight(wx.FONTWEIGHT_BOLD)
-
- #Bind us to our texture
- self._initText()
-
- #---Internal helpers
-
- def _initText(self):
- """
- Initializes/Reinitializes the Text object by binding it
- to a TextElement suitable for its current settings
- """
- #Check if we already bound to a texture
- if self._aloc_text:
- #if so release it
- self._aloc_text.release()
- if not self._aloc_text.isBound():
- self._texts.remove(self._aloc_text)
- self._aloc_text = None
-
- #Adjust our font
- self._font.SetPointSize(self._font_size)
-
- #Search for existing element in our global buffer
- for element in self._texts:
- if element.text == self._text and\
- element.font == self._font and\
- element.foreground == self._foreground and\
- element.centered == self._centered:
- # We already exist in global buffer ;-)
- element.bind()
- self._aloc_text = element
- break
-
- if not self._aloc_text:
- # We are not in the global buffer, let's create ourselves
- aloc_text = self._aloc_text = TextElement(self._text,
- self._font,
- self._foreground,
- self._centered)
- aloc_text.bind()
- self._texts.append(aloc_text)
-
- def __del__(self):
- """
- Destructor
- """
- aloc_text = self._aloc_text
- aloc_text.release()
- if not aloc_text.isBound():
- self._texts.remove(aloc_text)
-
- #---Functions
-
- def draw_text(self, position = wx.Point(0,0), scale = 1.0, rotation = 0):
- """
- position (wx.Point) - x/y Position to draw in scene
- scale (float) - Scale
- rotation (int) - Rotation in degree
-
- Draws the text to the scene
- """
-
- self._aloc_text.draw_text(position, scale, rotation)
-
- #---Setter/Getter
-
- def getText(self): return self._text
- def setText(self, value, reinit = True):
- """
- value (bool) - New Text
- reinit (bool) - Create a new texture
-
- Sets a new text
- """
- self._text = value
- if reinit:
- self._initText()
-
- def getFont(self): return self._font
- def setFont(self, value, reinit = True):
- """
- value (bool) - New Font
- reinit (bool) - Create a new texture
-
- Sets a new font
- """
- self._font = value
- if reinit:
- self._initText()
-
- def getFont_size(self): return self._font_size
- def setFont_size(self, value, reinit = True):
- """
- value (bool) - New font size
- reinit (bool) - Create a new texture
-
- Sets a new font size
- """
- self._font_size = value
- if reinit:
- self._initText()
-
- def getForeground(self): return self._foreground
- def setForeground(self, value, reinit = True):
- """
- value (bool) - New centered value
- reinit (bool) - Create a new texture
-
- Sets a new value for 'centered'
- """
- self._foreground = value
- if reinit:
- self._initText()
-
- def getCentered(self): return self._centered
- def setCentered(self, value, reinit = True):
- """
- value (bool) - New centered value
- reinit (bool) - Create a new texture
-
- Sets a new value for 'centered'
- """
- self._centered = value
- if reinit:
- self._initText()
-
- def get_size(self):
- """
- Returns a text size tuple
- """
- return self._aloc_text._text_size
-
- def getTexture_size(self):
- """
- Returns a texture size tuple
- """
- return self._aloc_text.texture_size
-
- def getTextElement(self):
- """
- Returns the text element bound to the Text class
- """
- return self._aloc_text
-
- def getTexture(self):
- """
- Returns the texture of the bound TextElement
- """
- return self._aloc_text.texture
-
-
- #---Properties
-
- text = property(getText, setText, None, "Text of the object")
- font = property(getFont, setFont, None, "Font of the object")
- font_size = property(getFont_size, setFont_size, None, "Font size")
- foreground = property(getForeground, setForeground, None, "Color/Overlay bitmap of the text")
- centered = property(getCentered, setCentered, None, "Display the text centered")
- texture_size = property(getTexture_size, None, None, "Size of the used texture")
- texture = property(getTexture, None, None, "Texture of bound TextElement")
- text_element = property(getTextElement,None , None, "TextElement bound to this class")
-
-#Optimize critical functions
-if psyco and not psyco_optimized:
- psyco.bind(TextElement.createTexture)
- psyco_optimized = True
+#!/usr/bin/env python
+# -*- coding: utf-8
+#
+# Provides some text display functions for wx + ogl
+# Copyright (C) 2007 Christian Brugger, Stefan Hacker
+#
+# This program 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 2 of the License, or
+# (at your option) any later version.
+#
+# This program 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 this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+import wx
+from OpenGL.GL import *
+
+"""
+Optimize with psyco if possible, this gains us about 50% speed when
+creating our textures in trade for about 4MBytes of additional memory usage for
+psyco. If you don't like loosing the memory you have to turn the lines following
+"enable psyco" into a comment while uncommenting the line after "Disable psyco".
+"""
+#Try to enable psyco
+try:
+ import psyco
+ psyco_optimized = False
+except ImportError:
+ psyco = None
+
+#Disable psyco
+#psyco = None
+
+class TextElement(object):
+ """
+ A simple class for using system Fonts to display
+ text in an OpenGL scene
+ """
+ def __init__(self,
+ text = '',
+ font = None,
+ foreground = wx.BLACK,
+ centered = False):
+ """
+ text (String) - Text
+ font (wx.Font) - Font to draw with (None = System default)
+ foreground (wx.Color) - Color of the text
+ or (wx.Bitmap)- Bitmap to overlay the text with
+ centered (bool) - Center the text
+
+ Initializes the TextElement
+ """
+ # save given variables
+ self._text = text
+ self._lines = text.split('\n')
+ self._font = font
+ self._foreground = foreground
+ self._centered = centered
+
+ # init own variables
+ self._owner_cnt = 0 #refcounter
+ self._texture = None #OpenGL texture ID
+ self._text_size = None #x/y size tuple of the text
+ self._texture_size= None #x/y Texture size tuple
+
+ # create Texture
+ self.createTexture()
+
+
+ #---Internal helpers
+
+ def _getUpper2Base(self, value):
+ """
+ Returns the lowest value with the power of
+ 2 greater than 'value' (2^n>value)
+ """
+ base2 = 1
+ while base2 < value:
+ base2 *= 2
+ return base2
+
+ #---Functions
+
+ def draw_text(self, position = wx.Point(0,0), scale = 1.0, rotation = 0):
+ """
+ position (wx.Point) - x/y Position to draw in scene
+ scale (float) - Scale
+ rotation (int) - Rotation in degree
+
+ Draws the text to the scene
+ """
+ #Enable necessary functions
+ glColor(1,1,1,1)
+ glEnable(GL_TEXTURE_2D)
+ glEnable(GL_ALPHA_TEST) #Enable alpha test
+ glAlphaFunc(GL_GREATER, 0)
+ glEnable(GL_BLEND) #Enable blending
+ glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA)
+ #Bind texture
+ glBindTexture(GL_TEXTURE_2D, self._texture)
+
+ ow, oh = self._text_size
+ w , h = self._texture_size
+ #Perform transformations
+ glPushMatrix()
+ glTranslated(position.x, position.y, 0)
+ glRotate(-rotation, 0, 0, 1)
+ glScaled(scale, scale, scale)
+ if self._centered:
+ glTranslate(-w/2, -oh/2, 0)
+ #Draw vertices
+ glBegin(GL_QUADS)
+ glTexCoord2f(0,0); glVertex2f(0,0)
+ glTexCoord2f(0,1); glVertex2f(0,h)
+ glTexCoord2f(1,1); glVertex2f(w,h)
+ glTexCoord2f(1,0); glVertex2f(w,0)
+ glEnd()
+ glPopMatrix()
+
+ #Disable features
+ glDisable(GL_BLEND)
+ glDisable(GL_ALPHA_TEST)
+ glDisable(GL_TEXTURE_2D)
+
+ def createTexture(self):
+ """
+ Creates a texture from the settings saved in TextElement, to be able to use normal
+ system fonts conviently a wx.MemoryDC is used to draw on a wx.Bitmap. As wxwidgets
+ device contexts don't support alpha at all it is necessary to apply a little hack
+ to preserve antialiasing without sticking to a fixed background color:
+
+ We draw the bmp in b/w mode so we can use its data as a alpha channel for a solid
+ color bitmap which after GL_ALPHA_TEST and GL_BLEND will show a nicely antialiased
+ text on any surface.
+
+ To access the raw pixel data the bmp gets converted to a wx.Image. Now we just have
+ to merge our foreground color with the alpha data we just created and push it all
+ into a OpenGL texture and we are DONE *inhalesdelpy*
+
+ DRAWBACK of the whole conversion thing is a really long time for creating the
+ texture. If you see any optimizations that could save time PLEASE CREATE A PATCH!!!
+ """
+ # get a memory dc
+ dc = wx.MemoryDC()
+
+ # set our font
+ dc.SetFont(self._font)
+
+ # Approximate extend to next power of 2 and create our bitmap
+ # REMARK: You wouldn't believe how much fucking speed this little
+ # sucker gains compared to sizes not of the power of 2. It's like
+ # 500ms --> 0.5ms (on my ATI-GPU powered Notebook). On Sams nvidia
+ # machine there don't seem to occur any losses...bad drivers?
+ ow, oh = dc.GetMultiLineTextExtent(self._text)[:2]
+ w, h = self._getUpper2Base(ow), self._getUpper2Base(oh)
+
+ self._text_size = wx.Size(ow,oh)
+ self._texture_size = wx.Size(w,h)
+ bmp = wx.EmptyBitmap(w,h)
+
+
+ #Draw in b/w mode to bmp so we can use it as alpha channel
+ dc.SelectObject(bmp)
+ dc.SetBackground(wx.BLACK_BRUSH)
+ dc.Clear()
+ dc.SetTextForeground(wx.WHITE)
+ x,y = 0,0
+ centered = self.centered
+ for line in self._lines:
+ if not line: line = ' '
+ tw, th = dc.GetTextExtent(line)
+ if centered:
+ x = int(round((w-tw)/2))
+ dc.DrawText(line, x, y)
+ x = 0
+ y += th
+ #Release the dc
+ dc.SelectObject(wx.NullBitmap)
+ del dc
+
+ #Generate a correct RGBA data string from our bmp
+ """
+ NOTE: You could also use wx.AlphaPixelData to access the pixel data
+ in 'bmp' directly, but the iterator given by it is much slower than
+ first converting to an image and using wx.Image.GetData().
+ """
+ img = wx.ImageFromBitmap(bmp)
+ alpha = img.GetData()
+
+ if isinstance(self._foreground, wx.Colour):
+ """
+ If we have a static color...
+ """
+ r,g,b = self._foreground.Get()
+ color = "%c%c%c" % (chr(r), chr(g), chr(b))
+
+ data = ''
+ for i in xrange(0, len(alpha)-1, 3):
+ data += color + alpha[i]
+
+ elif isinstance(self._foreground, wx.Bitmap):
+ """
+ If we have a bitmap...
+ """
+ bg_img = wx.ImageFromBitmap(self._foreground)
+ bg = bg_img.GetData()
+ bg_width = self._foreground.GetWidth()
+ bg_height = self._foreground.GetHeight()
+
+ data = ''
+
+ for y in xrange(0, h):
+ for x in xrange(0, w):
+ if (y > (bg_height-1)) or (x > (bg_width-1)):
+ color = "%c%c%c" % (chr(0),chr(0),chr(0))
+ else:
+ pos = (x+y*bg_width) * 3
+ color = bg[pos:pos+3]
+ data += color + alpha[(x+y*w)*3]
+
+
+ # now convert it to ogl texture
+ self._texture = glGenTextures(1)
+ glBindTexture(GL_TEXTURE_2D, self._texture)
+ glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR)
+ glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR)
+
+ glPixelStorei(GL_UNPACK_ROW_LENGTH, 0)
+ glPixelStorei(GL_UNPACK_ALIGNMENT, 2)
+ glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, w, h, 0, GL_RGBA, GL_UNSIGNED_BYTE, data)
+
+ def deleteTexture(self):
+ """
+ Deletes the OpenGL texture object
+ """
+ if self._texture:
+ if glIsTexture(self._texture):
+ glDeleteTextures(self._texture)
+ else:
+ self._texture = None
+
+ def bind(self):
+ """
+ Increase refcount
+ """
+ self._owner_cnt += 1
+
+ def release(self):
+ """
+ Decrease refcount
+ """
+ self._owner_cnt -= 1
+
+ def isBound(self):
+ """
+ Return refcount
+ """
+ return self._owner_cnt
+
+ def __del__(self):
+ """
+ Destructor
+ """
+ self.deleteTexture()
+
+ #---Getters/Setters
+
+ def getText(self): return self._text
+ def getFont(self): return self._font
+ def getForeground(self): return self._foreground
+ def getCentered(self): return self._centered
+ def getTexture(self): return self._texture
+ def getTexture_size(self): return self._texture_size
+
+ def getOwner_cnt(self): return self._owner_cnt
+ def setOwner_cnt(self, value):
+ self._owner_cnt = value
+
+ #---Properties
+
+ text = property(getText, None, None, "Text of the object")
+ font = property(getFont, None, None, "Font of the object")
+ foreground = property(getForeground, None, None, "Color of the text")
+ centered = property(getCentered, None, None, "Is text centered")
+ owner_cnt = property(getOwner_cnt, setOwner_cnt, None, "Owner count")
+ texture = property(getTexture, None, None, "Used texture")
+ texture_size = property(getTexture_size, None, None, "Size of the used texture")
+
+
+class Text(object):
+ """
+ A simple class for using System Fonts to display text in
+ an OpenGL scene. The Text adds a global Cache of already
+ created text elements to TextElement's base functionality
+ so you can save some memory and increase speed
+ """
+ _texts = [] #Global cache for TextElements
+
+ def __init__(self,
+ text = 'Text',
+ font = None,
+ font_size = 8,
+ foreground = wx.BLACK,
+ centered = False,
+ bold = False):
+ """
+ text (string) - displayed text
+ font (wx.Font) - if None, system default font will be used with font_size
+ font_size (int) - font size in points
+ foreground (wx.Color) - Color of the text
+ or (wx.Bitmap) - Bitmap to overlay the text with
+ centered (bool) - should the text drawn centered towards position?
+
+ Initializes the text object
+ """
+ #Init/save variables
+ self._aloc_text = None
+ self._text = text
+ self._font_size = font_size
+ self._foreground= foreground
+ self._centered = centered
+
+ #Check if we are offered a font
+ if not font:
+ #if not use the system default
+ self._font = wx.SystemSettings.GetFont(wx.SYS_DEFAULT_GUI_FONT)
+ else:
+ #save it
+ self._font = font
+
+ if bold: self._font.SetWeight(wx.FONTWEIGHT_BOLD)
+
+ #Bind us to our texture
+ self._initText()
+
+ #---Internal helpers
+
+ def _initText(self):
+ """
+ Initializes/Reinitializes the Text object by binding it
+ to a TextElement suitable for its current settings
+ """
+ #Check if we already bound to a texture
+ if self._aloc_text:
+ #if so release it
+ self._aloc_text.release()
+ if not self._aloc_text.isBound():
+ self._texts.remove(self._aloc_text)
+ self._aloc_text = None
+
+ #Adjust our font
+ self._font.SetPointSize(self._font_size)
+
+ #Search for existing element in our global buffer
+ for element in self._texts:
+ if element.text == self._text and\
+ element.font == self._font and\
+ element.foreground == self._foreground and\
+ element.centered == self._centered:
+ # We already exist in global buffer ;-)
+ element.bind()
+ self._aloc_text = element
+ break
+
+ if not self._aloc_text:
+ # We are not in the global buffer, let's create ourselves
+ aloc_text = self._aloc_text = TextElement(self._text,
+ self._font,
+ self._foreground,
+ self._centered)
+ aloc_text.bind()
+ self._texts.append(aloc_text)
+
+ def __del__(self):
+ """
+ Destructor
+ """
+ aloc_text = self._aloc_text
+ aloc_text.release()
+ if not aloc_text.isBound():
+ self._texts.remove(aloc_text)
+
+ #---Functions
+
+ def draw_text(self, position = wx.Point(0,0), scale = 1.0, rotation = 0):
+ """
+ position (wx.Point) - x/y Position to draw in scene
+ scale (float) - Scale
+ rotation (int) - Rotation in degree
+
+ Draws the text to the scene
+ """
+
+ self._aloc_text.draw_text(position, scale, rotation)
+
+ #---Setter/Getter
+
+ def getText(self): return self._text
+ def setText(self, value, reinit = True):
+ """
+ value (bool) - New Text
+ reinit (bool) - Create a new texture
+
+ Sets a new text
+ """
+ self._text = value
+ if reinit:
+ self._initText()
+
+ def getFont(self): return self._font
+ def setFont(self, value, reinit = True):
+ """
+ value (bool) - New Font
+ reinit (bool) - Create a new texture
+
+ Sets a new font
+ """
+ self._font = value
+ if reinit:
+ self._initText()
+
+ def getFont_size(self): return self._font_size
+ def setFont_size(self, value, reinit = True):
+ """
+ value (bool) - New font size
+ reinit (bool) - Create a new texture
+
+ Sets a new font size
+ """
+ self._font_size = value
+ if reinit:
+ self._initText()
+
+ def getForeground(self): return self._foreground
+ def setForeground(self, value, reinit = True):
+ """
+ value (bool) - New centered value
+ reinit (bool) - Create a new texture
+
+ Sets a new value for 'centered'
+ """
+ self._foreground = value
+ if reinit:
+ self._initText()
+
+ def getCentered(self): return self._centered
+ def setCentered(self, value, reinit = True):
+ """
+ value (bool) - New centered value
+ reinit (bool) - Create a new texture
+
+ Sets a new value for 'centered'
+ """
+ self._centered = value
+ if reinit:
+ self._initText()
+
+ def get_size(self):
+ """
+ Returns a text size tuple
+ """
+ return self._aloc_text._text_size
+
+ def getTexture_size(self):
+ """
+ Returns a texture size tuple
+ """
+ return self._aloc_text.texture_size
+
+ def getTextElement(self):
+ """
+ Returns the text element bound to the Text class
+ """
+ return self._aloc_text
+
+ def getTexture(self):
+ """
+ Returns the texture of the bound TextElement
+ """
+ return self._aloc_text.texture
+
+
+ #---Properties
+
+ text = property(getText, setText, None, "Text of the object")
+ font = property(getFont, setFont, None, "Font of the object")
+ font_size = property(getFont_size, setFont_size, None, "Font size")
+ foreground = property(getForeground, setForeground, None, "Color/Overlay bitmap of the text")
+ centered = property(getCentered, setCentered, None, "Display the text centered")
+ texture_size = property(getTexture_size, None, None, "Size of the used texture")
+ texture = property(getTexture, None, None, "Texture of bound TextElement")
+ text_element = property(getTextElement,None , None, "TextElement bound to this class")
+
+#Optimize critical functions
+if psyco and not psyco_optimized:
+ psyco.bind(TextElement.createTexture)
+ psyco_optimized = True
diff --git a/gr-wxgui/src/python/plotter/grid_plotter_base.py b/gr-wxgui/src/python/plotter/grid_plotter_base.py
index a9bd02731..5eaa76bc0 100644
--- a/gr-wxgui/src/python/plotter/grid_plotter_base.py
+++ b/gr-wxgui/src/python/plotter/grid_plotter_base.py
@@ -78,7 +78,7 @@ class grid_plotter_base(plotter_base):
def set_point_label_coordinate(self, coor):
"""
Set the point label coordinate.
- @param coor the coordinate x, y tuple or None
+ @param coor the coordinate x, y tuple or None
"""
self.lock()
self._point_label_coordinate = coor
diff --git a/gr-wxgui/src/python/plotter/plotter_base.py b/gr-wxgui/src/python/plotter/plotter_base.py
index b856215e9..5af580339 100644
--- a/gr-wxgui/src/python/plotter/plotter_base.py
+++ b/gr-wxgui/src/python/plotter/plotter_base.py
@@ -101,7 +101,7 @@ class plotter_base(wx.glcanvas.GLCanvas, common.mutex):
self.Bind(wx.EVT_ERASE_BACKGROUND, lambda e: None)
def set_use_persistence(self,enable):
- self.use_persistence=enable
+ self.use_persistence=enable
self.clear_accum=True
def set_persist_alpha(self,analog_alpha):
diff --git a/gr-wxgui/src/python/plotter/waterfall_plotter.py b/gr-wxgui/src/python/plotter/waterfall_plotter.py
index 0af64b826..f2456241c 100644
--- a/gr-wxgui/src/python/plotter/waterfall_plotter.py
+++ b/gr-wxgui/src/python/plotter/waterfall_plotter.py
@@ -204,7 +204,7 @@ class waterfall_plotter(grid_plotter_base):
Create the texture to fit the fft_size X num_lines.
@param flag the set/unset or update flag
"""
- if flag is not None:
+ if flag is not None:
self._resize_texture_flag = flag
return
if not self._resize_texture_flag: return
diff --git a/gr-wxgui/src/python/powermate.py b/gr-wxgui/src/python/powermate.py
index 7f54dff33..7c324c5d9 100644
--- a/gr-wxgui/src/python/powermate.py
+++ b/gr-wxgui/src/python/powermate.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2005 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,
# Boston, MA 02110-1301, USA.
-#
+#
"""
Handler for Griffin PowerMate, Contour ShuttlePro & ShuttleXpress USB knobs
@@ -184,7 +184,7 @@ class powermate(threading.Thread):
self.setDaemon (1)
self.keep_running = True
self.start ()
-
+
def __del__(self):
self.keep_running = False
if self.handle >= 0:
@@ -227,7 +227,7 @@ class powermate(threading.Thread):
except exceptions.OSError:
return False
-
+
def set_event_receiver(self, obj):
self.event_receiver = obj
@@ -239,7 +239,7 @@ class powermate(threading.Thread):
"""
if self.id != ID_POWERMATE:
return False
-
+
static_brightness &= 0xff;
if pulse_speed < 0:
pulse_speed = 0
@@ -269,14 +269,14 @@ class powermate(threading.Thread):
raw_input_event = struct.unpack(input_event_struct,s)
sec, usec, type, code, val = self.mapper(raw_input_event)
-
+
if self.event_receiver is None:
continue
-
+
if type == IET_SYN: # ignore
pass
elif type == IET_MSC: # ignore (seems to be PowerMate reporting led brightness)
- pass
+ pass
elif type == IET_REL and code == IEC_REL_DIAL:
#print "Dial: %d" % (val,)
wx.PostEvent(self.event_receiver, PMRotateEvent(val))
@@ -346,13 +346,13 @@ class _contour_remapper(object):
if type == IET_KEY:
# remap keys so that all 3 gadgets have buttons 0 to 4 in common
- return (sec, usec, type,
+ return (sec, usec, type,
(IEC_BTN_5, IEC_BTN_6, IEC_BTN_7, IEC_BTN_8,
IEC_BTN_0, IEC_BTN_1, IEC_BTN_2, IEC_BTN_3, IEC_BTN_4,
IEC_BTN_9, IEC_BTN_10,
IEC_BTN_11, IEC_BTN_12,
IEC_BTN_13, IEC_BTN_14)[code - IEC_BTN_0], val)
-
+
return event
# ------------------------------------------------------------------------
@@ -374,9 +374,9 @@ class PMButtonEvent(wx.PyEvent):
self.button = button
self.value = value
- def Clone (self):
+ def Clone (self):
self.__class__(self.GetId())
-
+
class PMRotateEvent(wx.PyEvent):
def __init__(self, delta):
@@ -384,7 +384,7 @@ class PMRotateEvent(wx.PyEvent):
self.SetEventType (grEVT_POWERMATE_ROTATE)
self.delta = delta
- def Clone (self):
+ def Clone (self):
self.__class__(self.GetId())
@@ -394,9 +394,9 @@ class PMShuttleEvent(wx.PyEvent):
self.SetEventType (grEVT_POWERMATE_SHUTTLE)
self.position = position
- def Clone (self):
+ def Clone (self):
self.__class__(self.GetId())
-
+
# ------------------------------------------------------------------------
# Example usage
# ------------------------------------------------------------------------
@@ -411,14 +411,14 @@ if __name__ == '__main__':
EVT_POWERMATE_SHUTTLE(self, self.on_shuttle)
self.brightness = 128
self.pulse_speed = 0
-
+
try:
self.pm = powermate(self)
except:
sys.stderr.write("Unable to find PowerMate or Contour Shuttle\n")
sys.exit(1)
- self.pm.set_led_state(self.brightness, self.pulse_speed)
+ self.pm.set_led_state(self.brightness, self.pulse_speed)
def on_button(self, evt):
@@ -431,11 +431,11 @@ if __name__ == '__main__':
new = max(0, min(255, self.brightness + evt.delta))
if new != self.brightness:
self.brightness = new
- self.pm.set_led_state(self.brightness, self.pulse_speed)
-
+ self.pm.set_led_state(self.brightness, self.pulse_speed)
+
def on_shuttle(self, evt):
print "Shuttle %d" % (evt.position,)
-
+
class App(wx.App):
def OnInit(self):
title='PowerMate Demo'
diff --git a/gr-wxgui/src/python/scope_window.py b/gr-wxgui/src/python/scope_window.py
index 89a808cec..dc90a6045 100644
--- a/gr-wxgui/src/python/scope_window.py
+++ b/gr-wxgui/src/python/scope_window.py
@@ -120,7 +120,7 @@ class control_panel(wx.Panel):
parent.subscribe(USE_PERSISTENCE_KEY, widget.ShowItems)
#allways show initially, so room is reserved for them
widget.ShowItems(True) # (parent[USE_PERSISTENCE_KEY])
-
+
parent.subscribe(USE_PERSISTENCE_KEY, self._update_layout)
##################################################
@@ -406,7 +406,7 @@ class control_panel(wx.Panel):
# Just ignore the key value we get
# we only need to now that the visability or size of something has changed
self.parent.Layout()
- #self.parent.Fit()
+ #self.parent.Fit()
##################################################
# Scope window with plotter and control panel
@@ -477,12 +477,12 @@ class scope_window(wx.Panel, pubsub.pubsub):
self[TRIGGER_LEVEL_KEY] = 0
self[TRIGGER_CHANNEL_KEY] = 0
self[TRIGGER_MODE_KEY] = trig_mode
-
+
self[TRIGGER_SLOPE_KEY] = gr.gr_TRIG_SLOPE_POS
self[T_FRAC_OFF_KEY] = 0.5
self[USE_PERSISTENCE_KEY] = use_persistence
self[PERSIST_ALPHA_KEY] = persist_alpha
-
+
if self[TRIGGER_MODE_KEY] == gr.gr_TRIG_MODE_STRIPCHART:
self[T_FRAC_OFF_KEY] = 0.0
diff --git a/gr-wxgui/src/python/scopesink_gl.py b/gr-wxgui/src/python/scopesink_gl.py
index 5ae897400..e6ff532e7 100644
--- a/gr-wxgui/src/python/scopesink_gl.py
+++ b/gr-wxgui/src/python/scopesink_gl.py
@@ -84,7 +84,7 @@ class _scope_sink_base(gr.hier_block2, common.wxgui_hb):
**kwargs #do not end with a comma
):
#ensure analog alpha
- if persist_alpha is None:
+ if persist_alpha is None:
actual_frame_rate=float(frame_rate)
analog_cutoff_freq=0.5 # Hertz
#calculate alpha from wanted cutoff freq
@@ -157,11 +157,11 @@ class _scope_sink_base(gr.hier_block2, common.wxgui_hb):
)
else:
for i in range(num_inputs):
- c2f = gr.complex_to_float()
+ c2f = gr.complex_to_float()
self.wxgui_connect((self, i), c2f)
for j in range(2):
self.connect(
- (c2f, j),
+ (c2f, j),
ac_couple_block(self.controller, common.index_key(AC_COUPLE_KEY, 2*i+j), SAMPLE_RATE_KEY),
(scope, 2*i+j),
)
@@ -187,7 +187,7 @@ class test_top_block (stdgui2.std_top_block):
default_input_rate = 1e6
if len(argv) > 1:
- input_rate = int(argv[1])
+ input_rate = int(argv[1])
else:
input_rate = default_input_rate
@@ -202,12 +202,12 @@ class test_top_block (stdgui2.std_top_block):
t_scale = .00003*default_input_rate/input_rate # old behavior
print "input rate %s v_scale %s t_scale %s" % (input_rate,v_scale,t_scale)
-
+
# Generate a complex sinusoid
ampl=1.0e3
self.src0 = gr.sig_source_c (input_rate, gr.GR_SIN_WAVE, 25.1e3*input_rate/default_input_rate, ampl)
- self.noise =gr.sig_source_c (input_rate, gr.GR_SIN_WAVE, 11.1*25.1e3*input_rate/default_input_rate, ampl/10)
+ self.noise =gr.sig_source_c (input_rate, gr.GR_SIN_WAVE, 11.1*25.1e3*input_rate/default_input_rate, ampl/10)
#self.noise =gr.noise_source_c(gr.GR_GAUSSIAN, ampl/10)
self.combine=gr.add_cc()
@@ -223,7 +223,7 @@ class test_top_block (stdgui2.std_top_block):
# self.connect("src0 throttle scope")
self.connect(self.src0,(self.combine,0))
self.connect(self.noise,(self.combine,1))
- self.connect(self.combine, self.thr, scope)
+ self.connect(self.combine, self.thr, scope)
def main ():
app = stdgui2.stdapp (test_top_block, "O'Scope Test App")
diff --git a/gr-wxgui/src/python/scopesink_nongl.py b/gr-wxgui/src/python/scopesink_nongl.py
index bf2c50917..d45e79906 100644
--- a/gr-wxgui/src/python/scopesink_nongl.py
+++ b/gr-wxgui/src/python/scopesink_nongl.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2003,2004,2006,2007 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gru, eng_notation
from gnuradio.wxgui import stdgui2
@@ -42,7 +42,7 @@ class scope_sink_f(gr.hier_block2):
msgq = gr.msg_queue(2) # message queue that holds at most 2 messages
self.guts = gr.oscope_sink_f(sample_rate, msgq)
- for i in range(num_inputs):
+ for i in range(num_inputs):
self.connect((self, i), (self.guts, i))
self.win = scope_window(win_info (msgq, sample_rate, frame_decim,
@@ -63,16 +63,16 @@ class scope_sink_c(gr.hier_block2):
msgq = gr.msg_queue(2) # message queue that holds at most 2 messages
self.guts = gr.oscope_sink_f(sample_rate, msgq)
- for i in range(num_inputs):
- c2f = gr.complex_to_float()
+ for i in range(num_inputs):
+ c2f = gr.complex_to_float()
self.connect((self, i), c2f)
self.connect((c2f, 0), (self.guts, 2*i+0))
self.connect((c2f, 1), (self.guts, 2*i+1))
-
+
self.win = scope_window(win_info(msgq, sample_rate, frame_decim,
v_scale, t_scale, self.guts, title), parent)
self.win.info.xy = xy_mode
-
+
def set_sample_rate(self, sample_rate):
self.guts.set_sample_rate(sample_rate)
self.win.info.set_sample_rate(sample_rate)
@@ -132,7 +132,7 @@ v_scale_list = [ # counts / div, LARGER gains are SMALLER /div, appear EARLIER
1.0e+4 # 10000 /div, USRP full scale is -/+ 32767
]
-
+
wxDATA_EVENT = wx.NewEventType()
def EVT_DATA_EVENT(win, func):
@@ -144,12 +144,12 @@ class DataEvent(wx.PyEvent):
self.SetEventType (wxDATA_EVENT)
self.data = data
- def Clone (self):
+ def Clone (self):
self.__class__ (self.GetId())
class win_info (object):
- __slots__ = ['msgq', 'sample_rate', 'frame_decim', 'v_scale',
+ __slots__ = ['msgq', 'sample_rate', 'frame_decim', 'v_scale',
'scopesink', 'title',
'time_scale_cursor', 'v_scale_cursor', 'marker', 'xy',
'autorange', 'running']
@@ -178,7 +178,7 @@ class win_info (object):
def set_sample_rate(self, sample_rate):
self.sample_rate = sample_rate
-
+
def get_sample_rate (self):
return self.sample_rate
@@ -202,31 +202,31 @@ class input_watcher (gru.msgq_runner):
def handle_msg(self, msg):
if self.iscan == 0: # only display at frame_decim
self.iscan = self.frame_decim
-
+
nchan = int(msg.arg1()) # number of channels of data in msg
nsamples = int(msg.arg2()) # number of samples in each channel
-
+
s = msg.to_string() # get the body of the msg as a string
-
+
bytes_per_chan = nsamples * gr.sizeof_float
-
+
records = []
for ch in range (nchan):
-
+
start = ch * bytes_per_chan
chan_data = s[start:start+bytes_per_chan]
rec = numpy.fromstring (chan_data, numpy.float32)
records.append (rec)
-
+
# print "nrecords = %d, reclen = %d" % (len (records),nsamples)
-
+
de = DataEvent (records)
wx.PostEvent (self.event_receiver, de)
records = []
del de
self.iscan -= 1
-
+
class scope_window (wx.Panel):
@@ -248,7 +248,7 @@ class scope_window (wx.Panel):
self.SetAutoLayout (True)
self.sizer.Fit (self)
self.set_autorange(self.info.autorange)
-
+
# second row of control buttons etc. appears BELOW control_box
def make_control2_box (self):
@@ -339,14 +339,14 @@ class scope_window (wx.Panel):
ctrlbox.Add (self.xy_choice, 0, wx.ALIGN_CENTER)
return ctrlbox
-
+
_marker_choices = ['line', 'plus', 'dot']
def update_timebase_label (self):
time_per_div = self.info.get_time_per_div ()
s = ' ' + eng_notation.num_to_str (time_per_div) + 's/div'
self.time_base_label.SetLabel (s)
-
+
def decr_timebase (self, evt):
self.info.time_scale_cursor.prev ()
self.update_timebase_label ()
@@ -359,7 +359,7 @@ class scope_window (wx.Panel):
volts_per_div = self.info.get_volts_per_div ()
s = ' ' + eng_notation.num_to_str (volts_per_div) + '/div' # Not V/div
self.v_scale_label.SetLabel (s)
-
+
def decr_v_scale (self, evt):
self.info.v_scale_cursor.prev ()
self.update_v_scale_label ()
@@ -367,7 +367,7 @@ class scope_window (wx.Panel):
def incr_v_scale (self, evt):
self.info.v_scale_cursor.next ()
self.update_v_scale_label ()
-
+
def marker_choice_event (self, evt):
s = evt.GetString ()
self.set_marker (s)
@@ -388,13 +388,13 @@ class scope_window (wx.Panel):
self.autorange_checkbox.SetValue(False)
self.inc_v_button.Enable(True)
self.dec_v_button.Enable(True)
-
+
def autorange_checkbox_event(self, evt):
if evt.Checked():
self.set_autorange(True)
else:
self.set_autorange(False)
-
+
def set_marker (self, s):
self.info.set_marker (s) # set info for drawing routines
i = self.marker_choice.FindString (s)
@@ -409,7 +409,7 @@ class scope_window (wx.Panel):
def set_format_plus (self):
self.set_marker ('plus')
-
+
def xy_choice_event (self, evt):
s = evt.GetString ()
self.info.xy = s == 'X:Y'
@@ -430,19 +430,19 @@ class scope_window (wx.Panel):
sink.set_trigger_mode (gr.gr_TRIG_MODE_FREE)
else:
assert 0, "Bad trig_mode_choice string"
-
+
def set_trig_level50 (self, evt):
self.info.scopesink.set_trigger_level_auto ()
def run_stop (self, evt):
self.info.running = not self.info.running
-
+
class graph_window (plot.PlotCanvas):
channel_colors = ['BLUE', 'RED',
'CYAN', 'MAGENTA', 'GREEN', 'YELLOW']
-
+
def __init__ (self, info, parent, id = -1,
pos = wx.DefaultPosition, size = (640, 240),
style = wx.DEFAULT_FRAME_STYLE, name = ""):
@@ -453,7 +453,7 @@ class graph_window (plot.PlotCanvas):
self.SetEnableZoom (True)
self.SetEnableLegend(True)
# self.SetBackgroundColour ('black')
-
+
self.info = info;
self.y_range = None
self.x_range = None
@@ -468,11 +468,11 @@ class graph_window (plot.PlotCanvas):
def channel_color (self, ch):
return self.channel_colors[ch % len(self.channel_colors)]
-
+
def format_data (self, evt):
if not self.info.running:
return
-
+
if self.info.xy:
self.format_xy_data (evt)
return
@@ -545,7 +545,7 @@ class graph_window (plot.PlotCanvas):
points = numpy.zeros ((len(records[0]), 2), numpy.float32)
points[:,0] = records[0]
points[:,1] = records[1]
-
+
self.SetXUseScopeTicks (False)
m = info.get_marker ()
@@ -607,7 +607,7 @@ class test_top_block (stdgui2.std_top_block):
stdgui2.std_top_block.__init__ (self, frame, panel, vbox, argv)
if len(argv) > 1:
- frame_decim = int(argv[1])
+ frame_decim = int(argv[1])
else:
frame_decim = 1
@@ -622,7 +622,7 @@ class test_top_block (stdgui2.std_top_block):
t_scale = None # old behavior
print "frame decim %s v_scale %s t_scale %s" % (frame_decim,v_scale,t_scale)
-
+
input_rate = 1e6
# Generate a complex sinusoid
@@ -639,7 +639,7 @@ class test_top_block (stdgui2.std_top_block):
# Ultimately this will be
# self.connect("src0 throttle scope")
- self.connect(self.src0, self.thr, scope)
+ self.connect(self.src0, self.thr, scope)
def main ():
app = stdgui2.stdapp (test_top_block, "O'Scope Test App")
diff --git a/gr-wxgui/src/python/stdgui2.py b/gr-wxgui/src/python/stdgui2.py
index f397fd01e..71436d72c 100644
--- a/gr-wxgui/src/python/stdgui2.py
+++ b/gr-wxgui/src/python/stdgui2.py
@@ -1,23 +1,23 @@
#
# Copyright 2004 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,
# Boston, MA 02110-1301, USA.
-#
+#
'''A simple wx gui for GNU Radio applications'''
@@ -74,7 +74,7 @@ class stdframe (wx.Frame):
def top_block (self):
return self.panel.top_block
-
+
class stdpanel (wx.Panel):
def __init__ (self, parent, frame, top_block_maker,
max_nouts=None):
@@ -91,7 +91,7 @@ class stdpanel (wx.Panel):
if(max_nouts is not None):
self.top_block.start (max_nouts)
else:
- self.top_block.start ()
+ self.top_block.start ()
class std_top_block (gr.top_block):
def __init__ (self, parent, panel, vbox, argv):
diff --git a/gr-wxgui/src/python/waterfall_window.py b/gr-wxgui/src/python/waterfall_window.py
index 6536ada10..c78244f04 100644
--- a/gr-wxgui/src/python/waterfall_window.py
+++ b/gr-wxgui/src/python/waterfall_window.py
@@ -159,7 +159,7 @@ class control_panel(wx.Panel):
self.parent[FRAME_RATE_KEY] *= 0.75
if self.parent[FRAME_RATE_KEY] < 1.0:
self.parent[FRAME_RATE_KEY] = 1.0
-
+
if self.parent[FRAME_RATE_KEY] == old_rate:
self.parent[DECIMATION_KEY] += 1
def _on_decr_time_scale(self, event):
@@ -268,7 +268,7 @@ class waterfall_window(wx.Panel, pubsub.pubsub):
#plot the fft
self.plotter.set_samples(
samples=samples,
- minimum=self[REF_LEVEL_KEY] - self[DYNAMIC_RANGE_KEY],
+ minimum=self[REF_LEVEL_KEY] - self[DYNAMIC_RANGE_KEY],
maximum=self[REF_LEVEL_KEY],
)
#update the plotter
diff --git a/gr-wxgui/src/python/waterfallsink_nongl.py b/gr-wxgui/src/python/waterfallsink_nongl.py
index 3c25a9d9f..213415c82 100644
--- a/gr-wxgui/src/python/waterfallsink_nongl.py
+++ b/gr-wxgui/src/python/waterfallsink_nongl.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2003,2004,2005,2007,2008 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gru, window
from gnuradio.wxgui import stdgui2
@@ -26,7 +26,7 @@ import wx
import gnuradio.wxgui.plot as plot
import numpy
import os
-import math
+import math
default_fftsink_size = (640,240)
default_fft_rate = gr.prefs().get_long('wxgui', 'fft_rate', 15)
@@ -70,7 +70,7 @@ class waterfall_sink_base(object):
def _set_n(self):
self.one_in_n.set_n(max(1, int(self.sample_rate/self.fft_size/self.fft_rate)))
-
+
class waterfall_sink_f(gr.hier_block2, waterfall_sink_base):
def __init__(self, parent, baseband_freq=0,
y_per_div=10, ref_level=50, sample_rate=1, fft_size=512,
@@ -85,11 +85,11 @@ class waterfall_sink_f(gr.hier_block2, waterfall_sink_base):
sample_rate=sample_rate, fft_size=fft_size,
fft_rate=fft_rate,
average=average, avg_alpha=avg_alpha, title=title)
-
+
self.s2p = gr.serial_to_parallel(gr.sizeof_float, self.fft_size)
self.one_in_n = gr.keep_one_in_n(gr.sizeof_float * self.fft_size,
max(1, int(self.sample_rate/self.fft_size/self.fft_rate)))
-
+
mywindow = window.blackmanharris(self.fft_size)
self.fft = gr.fft_vfc(self.fft_size, True, mywindow)
self.c2mag = gr.complex_to_mag(self.fft_size)
@@ -105,7 +105,7 @@ class waterfall_sink_f(gr.hier_block2, waterfall_sink_base):
class waterfall_sink_c(gr.hier_block2, waterfall_sink_base):
def __init__(self, parent, baseband_freq=0,
y_per_div=10, ref_level=50, sample_rate=1, fft_size=512,
- fft_rate=default_fft_rate, average=False, avg_alpha=None,
+ fft_rate=default_fft_rate, average=False, avg_alpha=None,
title='', size=default_fftsink_size, **kwargs):
gr.hier_block2.__init__(self, "waterfall_sink_f",
@@ -120,7 +120,7 @@ class waterfall_sink_c(gr.hier_block2, waterfall_sink_base):
self.s2p = gr.serial_to_parallel(gr.sizeof_gr_complex, self.fft_size)
self.one_in_n = gr.keep_one_in_n(gr.sizeof_gr_complex * self.fft_size,
max(1, int(self.sample_rate/self.fft_size/self.fft_rate)))
-
+
mywindow = window.blackmanharris(self.fft_size)
self.fft = gr.fft_vcc(self.fft_size, True, mywindow)
self.c2mag = gr.complex_to_mag(self.fft_size)
@@ -145,9 +145,9 @@ class DataEvent(wx.PyEvent):
self.SetEventType (myDATA_EVENT)
self.data = data
- def Clone (self):
+ def Clone (self):
self.__class__ (self.GetId())
-
+
class input_watcher (gru.msgq_runner):
def __init__ (self, msgq, fft_size, event_receiver, **kwds):
self.fft_size = fft_size
@@ -181,7 +181,7 @@ class waterfall_window (wx.Panel):
self.bm = wx.EmptyBitmap(self.fftsink.fft_size, 300, -1)
self.scale_factor = 5.0 # FIXME should autoscale, or set this
-
+
dc1 = wx.MemoryDC()
dc1.SelectObject(self.bm)
dc1.Clear()
@@ -191,9 +191,9 @@ class waterfall_window (wx.Panel):
wx.EVT_PAINT( self, self.OnPaint )
wx.EVT_CLOSE (self, self.on_close_window)
EVT_DATA_EVENT (self, self.set_data)
-
+
self.build_popup_menu()
-
+
wx.EVT_CLOSE (self, self.on_close_window)
self.Bind(wx.EVT_RIGHT_UP, self.on_right_click)
@@ -213,14 +213,14 @@ class waterfall_window (wx.Panel):
r.extend(range(0,255,4))
r.extend(self.const_list(255,64))
r.extend(range(255,128,-4))
-
+
g = []
g.extend(self.const_list(0,32))
g.extend(range(0,255,4))
g.extend(self.const_list(255,64))
g.extend(range(255,0,-4))
g.extend(self.const_list(0,32))
-
+
b = range(128,255,4)
b.extend(self.const_list(255,64))
b.extend(range(255,0,-4))
@@ -234,7 +234,7 @@ class waterfall_window (wx.Panel):
colour = wx.Colour(r[i], g[i], b[i])
pens.append( wx.Pen(colour, 2, wx.SOLID))
return pens
-
+
def OnPaint(self, event):
dc = wx.PaintDC(self)
self.DoDrawing(dc)
@@ -243,7 +243,7 @@ class waterfall_window (wx.Panel):
if dc is None:
dc = wx.ClientDC(self)
dc.DrawBitmap(self.bm, 0, 0, False )
-
+
def const_list(self,const,len):
a = [const]
@@ -285,18 +285,18 @@ class waterfall_window (wx.Panel):
value = int(dB[x_pos] * scale_factor)
value = min(255, max(0, value))
dc1.SetPen(self.pens[value])
- dc1.DrawRectangle(x_pos*p_width, 0, p_width, 2)
+ dc1.DrawRectangle(x_pos*p_width, 0, p_width, 2)
else: # complex fft
for x_pos in range(0, d_max): # positive freqs
value = int(dB[x_pos] * scale_factor)
value = min(255, max(0, value))
dc1.SetPen(self.pens[value])
- dc1.DrawRectangle(x_pos*p_width + d_max, 0, p_width, 2)
+ dc1.DrawRectangle(x_pos*p_width + d_max, 0, p_width, 2)
for x_pos in range(0 , d_max): # negative freqs
value = int(dB[x_pos+d_max] * scale_factor)
value = min(255, max(0, value))
dc1.SetPen(self.pens[value])
- dc1.DrawRectangle(x_pos*p_width, 0, p_width, 2)
+ dc1.DrawRectangle(x_pos*p_width, 0, p_width, 2)
del dc1
self.DoDrawing (None)
diff --git a/grc/CMakeLists.txt b/grc/CMakeLists.txt
index 8be5d7fbc..f54aa4f80 100644
--- a/grc/CMakeLists.txt
+++ b/grc/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/grc/base/CMakeLists.txt b/grc/base/CMakeLists.txt
index c6d6a09eb..1087e842a 100644
--- a/grc/base/CMakeLists.txt
+++ b/grc/base/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/grc/base/Platform.py b/grc/base/Platform.py
index a66c28ab9..94d0077ea 100644
--- a/grc/base/Platform.py
+++ b/grc/base/Platform.py
@@ -87,7 +87,7 @@ class Platform(_Element):
else:
self._blocks[key] = block
self._blocks_n[key] = n
- except ParseXML.XMLSyntaxError, e:
+ except ParseXML.XMLSyntaxError, e:
try: #try to add the xml file as a block tree
ParseXML.validate_dtd(xml_file, BLOCK_TREE_DTD)
self._block_tree_files.append(xml_file)
diff --git a/grc/base/block_tree.dtd b/grc/base/block_tree.dtd
index be1524a38..7d4a13ccc 100644
--- a/grc/base/block_tree.dtd
+++ b/grc/base/block_tree.dtd
@@ -1,4 +1,4 @@
-<!--
+<!--
Copyright 2008 Free Software Foundation, Inc.
This file is part of GNU Radio
@@ -14,10 +14,10 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
-Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
+Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
-->
<!--
- block_tree.dtd
+ block_tree.dtd
Josh Blum
The document type definition for a block tree category listing.
-->
diff --git a/grc/base/flow_graph.dtd b/grc/base/flow_graph.dtd
index 904147b37..74f48f10a 100644
--- a/grc/base/flow_graph.dtd
+++ b/grc/base/flow_graph.dtd
@@ -1,4 +1,4 @@
-<!--
+<!--
Copyright 2008 Free Software Foundation, Inc.
This file is part of GNU Radio
@@ -14,10 +14,10 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
-Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
+Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
-->
<!--
- flow_graph.dtd
+ flow_graph.dtd
Josh Blum
The document type definition for flow graph xml files.
-->
diff --git a/grc/blocks/CMakeLists.txt b/grc/blocks/CMakeLists.txt
index ad31b0975..fce4a1907 100644
--- a/grc/blocks/CMakeLists.txt
+++ b/grc/blocks/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/grc/blocks/blks2_pfb_arb_resampler.xml b/grc/blocks/blks2_pfb_arb_resampler.xml
index b4e09791f..b58e70f1c 100644
--- a/grc/blocks/blks2_pfb_arb_resampler.xml
+++ b/grc/blocks/blks2_pfb_arb_resampler.xml
@@ -14,7 +14,7 @@
$taps,
$size,
)</make>
- <!-- Set taps not implemented yet
+ <!-- Set taps not implemented yet
<callback>set_taps($taps)</callback>
-->
<callback>set_rate($rate)</callback>
diff --git a/grc/blocks/blks2_pfb_channelizer.xml b/grc/blocks/blks2_pfb_channelizer.xml
index 0dba6108b..5a93c0866 100644
--- a/grc/blocks/blks2_pfb_channelizer.xml
+++ b/grc/blocks/blks2_pfb_channelizer.xml
@@ -16,11 +16,11 @@
$atten)
self.$(id).set_channel_map($ch_map)
</make>
- <!-- Set taps not implemented yet
+ <!-- Set taps not implemented yet
<callback>set_taps($taps)</callback>
-->
<callback>set_channel_map($ch_map)</callback>
-
+
<param>
<name>Channels</name>
<key>nchans</key>
diff --git a/grc/examples/CMakeLists.txt b/grc/examples/CMakeLists.txt
index acb65dbdc..a218dbe50 100644
--- a/grc/examples/CMakeLists.txt
+++ b/grc/examples/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/grc/examples/xmlrpc/readme.txt b/grc/examples/xmlrpc/readme.txt
index c1f87c1cb..056ad1e82 100644
--- a/grc/examples/xmlrpc/readme.txt
+++ b/grc/examples/xmlrpc/readme.txt
@@ -2,12 +2,12 @@
# XMLRPC example
##################################################
-XMLRPC allows software to make remote function calls over http.
+XMLRPC allows software to make remote function calls over http.
In the case of GRC, one can use XMLRPC to modify variables in a running flow graph.
See http://www.xmlrpc.com/
--- Server Example ---
-Place an "XMLRPC Server" block inside of any flow graph.
+Place an "XMLRPC Server" block inside of any flow graph.
The server will provide set functions for every variable in the flow graph.
If a variable is called "freq", the server will provide a function set_freq(new_freq).
Run the server example and experiment with the example client script.
diff --git a/grc/examples/xmlrpc/xmlrpc_client_script.py b/grc/examples/xmlrpc/xmlrpc_client_script.py
index 956fa07fb..8f00fa55d 100644
--- a/grc/examples/xmlrpc/xmlrpc_client_script.py
+++ b/grc/examples/xmlrpc/xmlrpc_client_script.py
@@ -13,7 +13,7 @@ for i in range(10):
new_freq = random.uniform(0, 5000)
new_ampl = random.uniform(0, 2)
new_offset = random.uniform(-1, 1)
- #set new values
+ #set new values
time.sleep(1)
s.set_freq(new_freq)
time.sleep(1)
diff --git a/grc/freedesktop/CMakeLists.txt b/grc/freedesktop/CMakeLists.txt
index 492b0f7d8..d95fe04ac 100644
--- a/grc/freedesktop/CMakeLists.txt
+++ b/grc/freedesktop/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011-2012 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,
diff --git a/grc/gui/ActionHandler.py b/grc/gui/ActionHandler.py
index 15785f2ee..476c82b4f 100644
--- a/grc/gui/ActionHandler.py
+++ b/grc/gui/ActionHandler.py
@@ -18,7 +18,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
"""
import os
-import signal
+import signal
from Constants import IMAGE_FILE_EXTENSION
import Actions
import pygtk
diff --git a/grc/gui/BlockTreeWindow.py b/grc/gui/BlockTreeWindow.py
index c12120eaf..0175c8bec 100644
--- a/grc/gui/BlockTreeWindow.py
+++ b/grc/gui/BlockTreeWindow.py
@@ -67,7 +67,7 @@ class BlockTreeWindow(gtk.VBox):
#setup the search
self.treeview.set_enable_search(True)
self.treeview.set_search_equal_func(self._handle_search)
- #try to enable the tooltips (available in pygtk 2.12 and above)
+ #try to enable the tooltips (available in pygtk 2.12 and above)
try: self.treeview.set_tooltip_column(DOC_INDEX)
except: pass
#setup drag and drop
diff --git a/grc/python/CMakeLists.txt b/grc/python/CMakeLists.txt
index 0871c7bd1..4832dd897 100644
--- a/grc/python/CMakeLists.txt
+++ b/grc/python/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/grc/python/Param.py b/grc/python/Param.py
index 2a7258dc7..2caca4802 100644
--- a/grc/python/Param.py
+++ b/grc/python/Param.py
@@ -335,7 +335,7 @@ class Param(_Param, _GUIParam):
# Stream ID Type
#########################
elif t == 'stream_id':
- #get a list of all stream ids used in the virtual sinks
+ #get a list of all stream ids used in the virtual sinks
ids = [param.get_value() for param in filter(
lambda p: p.get_parent().is_virtual_sink(),
self.get_all_params(t),
diff --git a/grc/scripts/CMakeLists.txt b/grc/scripts/CMakeLists.txt
index b8d5330f6..e90589230 100644
--- a/grc/scripts/CMakeLists.txt
+++ b/grc/scripts/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2011 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,
diff --git a/grc/todo.txt b/grc/todo.txt
index ccfaad72a..1205b3ff6 100644
--- a/grc/todo.txt
+++ b/grc/todo.txt
@@ -12,7 +12,7 @@
* packet mod: whitening offset
* wx min window size in options block
* gr_adaptive_fir_ccf
-* ofdm
+* ofdm
* gr_ofdm_bpsk_demapper
* gr_ofdm_demapper_vcb
* gr_ofdm_frame_sink
diff --git a/gruel/CMakeLists.txt b/gruel/CMakeLists.txt
index 558248d08..3e8c5166e 100644
--- a/gruel/CMakeLists.txt
+++ b/gruel/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2010-2011 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,
diff --git a/gruel/README b/gruel/README
index 647dc843b..90dc4eeb4 100644
--- a/gruel/README
+++ b/gruel/README
@@ -1,23 +1,23 @@
#
# Copyright 2008 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,
# Boston, MA 02110-1301, USA.
-#
+#
The GNU Radio Utility Etcetera Library, a collection of low-level routines
to avoid dependencies on the full GNU Radio core or other libraries.
diff --git a/gruel/gruel.pc.in b/gruel/gruel.pc.in
index 504c4d949..7f3f821fe 100644
--- a/gruel/gruel.pc.in
+++ b/gruel/gruel.pc.in
@@ -5,7 +5,7 @@ includedir=@includedir@
Name: gruel
Description: The GNU Radio Utility Etcetera Library
-Requires:
+Requires:
Version: @LIBVER@
Libs: -L${libdir} -lgruel
Cflags: -I${includedir}
diff --git a/gruel/src/include/gruel/CMakeLists.txt b/gruel/src/include/gruel/CMakeLists.txt
index 9db810cae..9818f1c09 100644
--- a/gruel/src/include/gruel/CMakeLists.txt
+++ b/gruel/src/include/gruel/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2010-2011 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,
diff --git a/gruel/src/include/gruel/high_res_timer.h b/gruel/src/include/gruel/high_res_timer.h
index 63841f612..a885520b6 100644
--- a/gruel/src/include/gruel/high_res_timer.h
+++ b/gruel/src/include/gruel/high_res_timer.h
@@ -1,18 +1,18 @@
/*
* Copyright 2011 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
diff --git a/gruel/src/include/gruel/inet.h.in b/gruel/src/include/gruel/inet.h.in
index 8545aeea9..74f14bd92 100644
--- a/gruel/src/include/gruel/inet.h.in
+++ b/gruel/src/include/gruel/inet.h.in
@@ -47,7 +47,7 @@ static inline uint64_t htonll(uint64_t x){ return bswap_64(x);}
static inline uint64_t ntohll(uint64_t x){ return bswap_64(x);}
#endif /* GR_ARCH_BIGENDIAN */
-#endif /* missing htonll or ntohll */
+#endif /* missing htonll or ntohll */
#if @GR_HAVE_ARPA_INET@ /* GR_HAVE_ARPA_INET */
#include <arpa/inet.h>
diff --git a/gruel/src/include/gruel/msg_accepter.h b/gruel/src/include/gruel/msg_accepter.h
index 3dfc8bcf8..2dc1a6859 100644
--- a/gruel/src/include/gruel/msg_accepter.h
+++ b/gruel/src/include/gruel/msg_accepter.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
diff --git a/gruel/src/include/gruel/msg_accepter_msgq.h b/gruel/src/include/gruel/msg_accepter_msgq.h
index 22a1855cf..6b9bcf4db 100644
--- a/gruel/src/include/gruel/msg_accepter_msgq.h
+++ b/gruel/src/include/gruel/msg_accepter_msgq.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -35,7 +35,7 @@ namespace gruel {
{
protected:
msg_queue_sptr d_msg_queue;
-
+
public:
msg_accepter_msgq(msg_queue_sptr msgq);
~msg_accepter_msgq();
diff --git a/gruel/src/include/gruel/msg_passing.h b/gruel/src/include/gruel/msg_passing.h
index 51268967a..0cc0cd111 100644
--- a/gruel/src/include/gruel/msg_passing.h
+++ b/gruel/src/include/gruel/msg_passing.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
diff --git a/gruel/src/include/gruel/msg_queue.h b/gruel/src/include/gruel/msg_queue.h
index 8608842da..f038ca325 100644
--- a/gruel/src/include/gruel/msg_queue.h
+++ b/gruel/src/include/gruel/msg_queue.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009 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,
@@ -63,22 +63,22 @@ namespace gruel {
* Block if no message is available.
*/
pmt::pmt_t delete_head();
-
+
/*!
* \brief If there's a message in the q, delete it and return it.
* If no message is available, return pmt_t().
*/
pmt::pmt_t delete_head_nowait();
-
+
//! Delete all messages from the queue
void flush();
//! is the queue empty?
bool empty_p() const { return d_msgs.empty(); }
-
+
//! is the queue full?
bool full_p() const { return d_limit != 0 && count() >= d_limit; }
-
+
//! return number of messages in queue
unsigned int count() const { return d_msgs.size(); }
diff --git a/gruel/src/include/gruel/pmt.h b/gruel/src/include/gruel/pmt.h
index f904d37e1..92af1eba6 100644
--- a/gruel/src/include/gruel/pmt.h
+++ b/gruel/src/include/gruel/pmt.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2009,2010 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,
@@ -52,7 +52,7 @@ namespace pmt {
* \brief base class of all pmt types
*/
class pmt_base;
-
+
/*!
* \brief typedef for shared pointer (transparent reference counting).
* See http://www.boost.org/libs/smart_ptr/smart_ptr.htm
@@ -109,7 +109,7 @@ GRUEL_API bool pmt_is_false(pmt_t obj);
//! Return \#f is val is false, else return \#t.
GRUEL_API pmt_t pmt_from_bool(bool val);
-//! Return true if val is PMT_T, return false when val is PMT_F,
+//! Return true if val is PMT_T, return false when val is PMT_F,
// else raise wrong_type exception.
GRUEL_API bool pmt_to_bool(pmt_t val);
@@ -384,7 +384,7 @@ GRUEL_API size_t pmt_blob_length(pmt_t blob);
*/
//! true if \p x is any kind of uniform numeric vector
-GRUEL_API bool pmt_is_uniform_vector(pmt_t x);
+GRUEL_API bool pmt_is_uniform_vector(pmt_t x);
GRUEL_API bool pmt_is_u8vector(pmt_t x);
GRUEL_API bool pmt_is_s8vector(pmt_t x);
@@ -584,7 +584,7 @@ GRUEL_API bool pmt_eqv(const pmt_t& x, const pmt_t& y);
/*!
* pmt_equal recursively compares the contents of pairs and vectors,
- * applying pmt_eqv on other objects such as numbers and symbols.
+ * applying pmt_eqv on other objects such as numbers and symbols.
* pmt_equal may fail to terminate if its arguments are circular data
* structures.
*/
diff --git a/gruel/src/include/gruel/pmt_pool.h b/gruel/src/include/gruel/pmt_pool.h
index 2b227ce6a..93c5290ad 100644
--- a/gruel/src/include/gruel/pmt_pool.h
+++ b/gruel/src/include/gruel/pmt_pool.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007,2009 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -39,11 +39,11 @@ class GRUEL_API pmt_pool {
struct GRUEL_API item {
struct item *d_next;
};
-
+
typedef boost::unique_lock<boost::mutex> scoped_lock;
mutable boost::mutex d_mutex;
boost::condition_variable d_cond;
-
+
size_t d_itemsize;
size_t d_alignment;
size_t d_allocation_size;
diff --git a/gruel/src/include/gruel/pmt_sugar.h b/gruel/src/include/gruel/pmt_sugar.h
index 92bcb5fe5..1d2b38ff1 100644
--- a/gruel/src/include/gruel/pmt_sugar.h
+++ b/gruel/src/include/gruel/pmt_sugar.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -59,7 +59,7 @@ namespace pmt {
mp(double x){
return pmt_from_double(x);
}
-
+
//! Make pmt complex
static inline pmt_t
mp(std::complex<double> z)
diff --git a/gruel/src/include/gruel/realtime.h b/gruel/src/include/gruel/realtime.h
index 87f2b0f74..13673ecb3 100644
--- a/gruel/src/include/gruel/realtime.h
+++ b/gruel/src/include/gruel/realtime.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2008 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,
@@ -86,7 +86,7 @@ namespace gruel {
* it's possible to hang the system.
*/
- // NOTE: If you change this, you need to change the code in
+ // NOTE: If you change this, you need to change the code in
// gnuradio-core/src/lib/runtime/gr_realtime.i, see note there.
rt_status_t
GRUEL_API enable_realtime_scheduling(rt_sched_param = rt_sched_param());
diff --git a/gruel/src/include/gruel/sys_pri.h b/gruel/src/include/gruel/sys_pri.h
index a29b051bf..c0751e52c 100644
--- a/gruel/src/include/gruel/sys_pri.h
+++ b/gruel/src/include/gruel/sys_pri.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
diff --git a/gruel/src/include/gruel/thread.h b/gruel/src/include/gruel/thread.h
index c6031d88d..63143c8b4 100644
--- a/gruel/src/include/gruel/thread.h
+++ b/gruel/src/include/gruel/thread.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009,2010,2011 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
diff --git a/gruel/src/include/gruel/thread_body_wrapper.h b/gruel/src/include/gruel/thread_body_wrapper.h
index ae0feda08..e09a43e68 100644
--- a/gruel/src/include/gruel/thread_body_wrapper.h
+++ b/gruel/src/include/gruel/thread_body_wrapper.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008,2009 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -26,7 +26,7 @@
#include <exception>
#include <iostream>
-namespace gruel
+namespace gruel
{
GRUEL_API void mask_signals();
diff --git a/gruel/src/include/gruel/thread_group.h b/gruel/src/include/gruel/thread_group.h
index e1658dd1f..1b8a0a4bf 100644
--- a/gruel/src/include/gruel/thread_group.h
+++ b/gruel/src/include/gruel/thread_group.h
@@ -4,7 +4,7 @@
* Copyright (C) 2007 Anthony Williams
* Copyright 2008,2009 Free Software Foundation, Inc.
*
- * Distributed under the Boost Software License, Version 1.0. (See accompanying
+ * Distributed under the Boost Software License, Version 1.0. (See accompanying
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
diff --git a/gruel/src/lib/CMakeLists.txt b/gruel/src/lib/CMakeLists.txt
index a6aa1d992..cd7b7abf4 100644
--- a/gruel/src/lib/CMakeLists.txt
+++ b/gruel/src/lib/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2010-2011 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,
diff --git a/gruel/src/lib/msg/CMakeLists.txt b/gruel/src/lib/msg/CMakeLists.txt
index 116d2c67f..74010af7e 100644
--- a/gruel/src/lib/msg/CMakeLists.txt
+++ b/gruel/src/lib/msg/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2010 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,
diff --git a/gruel/src/lib/msg/msg_accepter.cc b/gruel/src/lib/msg/msg_accepter.cc
index 64878f737..5acd98aa2 100644
--- a/gruel/src/lib/msg/msg_accepter.cc
+++ b/gruel/src/lib/msg/msg_accepter.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009 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,
diff --git a/gruel/src/lib/msg/msg_accepter_msgq.cc b/gruel/src/lib/msg/msg_accepter_msgq.cc
index 64fe501d1..2ae3537b8 100644
--- a/gruel/src/lib/msg/msg_accepter_msgq.cc
+++ b/gruel/src/lib/msg/msg_accepter_msgq.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
diff --git a/gruel/src/lib/msg/msg_queue.cc b/gruel/src/lib/msg/msg_queue.cc
index 8d15f08c5..a0b120e40 100644
--- a/gruel/src/lib/msg/msg_queue.cc
+++ b/gruel/src/lib/msg/msg_queue.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2009 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,
@@ -36,12 +36,12 @@ namespace gruel {
{
return msg_queue_sptr(new msg_queue(limit));
}
-
+
msg_queue::msg_queue(unsigned int limit)
: d_limit(limit)
{
}
-
+
msg_queue::~msg_queue()
{
flush();
@@ -83,7 +83,7 @@ namespace gruel {
if (empty_p())
return pmt_t();
-
+
pmt_t m(d_msgs.front());
d_msgs.pop_front();
diff --git a/gruel/src/lib/pmt/CMakeLists.txt b/gruel/src/lib/pmt/CMakeLists.txt
index a8e15cac6..dc70f03d7 100644
--- a/gruel/src/lib/pmt/CMakeLists.txt
+++ b/gruel/src/lib/pmt/CMakeLists.txt
@@ -1,17 +1,17 @@
# Copyright 2010 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,
diff --git a/gruel/src/lib/pmt/generate_unv.py b/gruel/src/lib/pmt/generate_unv.py
index 02aace250..42b57e245 100755
--- a/gruel/src/lib/pmt/generate_unv.py
+++ b/gruel/src/lib/pmt/generate_unv.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2006,2009 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,
# Boston, MA 02110-1301, USA.
-#
+#
"""
Generate code for uniform numeric vectors
@@ -46,19 +46,19 @@ header = """\
/* -*- c++ -*- */
/*
* Copyright 2006,2009 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,
@@ -118,7 +118,7 @@ def do_substitution (d, input, out_file):
key = match_obj.group (1)
# print key
return d[key]
-
+
out = re.sub (r"@([a-zA-Z0-9_]+)@", repl, input)
out_file.write (out)
@@ -164,7 +164,7 @@ class qa_pmt_unv : public CppUnit::TestCase {
CPPUNIT_TEST_SUITE_END();
private:
-''')
+''')
for tag, typ in unv_types:
output.write(' void test_%svector();\n' % (tag,))
output.write('};\n')
@@ -178,7 +178,7 @@ def generate_qa_cc():
for tag, typ in unv_types:
d = { 'TAG' : tag, 'TYPE' : typ }
do_substitution(d, template, output)
-
+
def main():
generate_h()
diff --git a/gruel/src/lib/pmt/pmt-serial-tags.scm b/gruel/src/lib/pmt/pmt-serial-tags.scm
index 646a751ea..ca25a43a8 100644
--- a/gruel/src/lib/pmt/pmt-serial-tags.scm
+++ b/gruel/src/lib/pmt/pmt-serial-tags.scm
@@ -1,19 +1,19 @@
;;; -*-scheme-*-
;;;
;;; Copyright 2007 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 (define 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 this program; if not, write to the Free Software Foundation, Inc.,
;;; 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
diff --git a/gruel/src/lib/pmt/pmt.cc b/gruel/src/lib/pmt/pmt.cc
index 57b66b1a4..a7e0fd19f 100644
--- a/gruel/src/lib/pmt/pmt.cc
+++ b/gruel/src/lib/pmt/pmt.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2009,2010 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,
@@ -229,13 +229,13 @@ hash_string(const std::string &s)
return h;
}
-bool
+bool
pmt_is_symbol(const pmt_t& obj)
{
return obj->is_symbol();
}
-pmt_t
+pmt_t
pmt_string_to_symbol(const std::string &name)
{
unsigned hash = hash_string(name) % SYMBOL_HASH_TABLE_SIZE;
@@ -350,7 +350,7 @@ pmt_to_uint64(pmt_t x)
pmt_real::pmt_real(double value) : d_value(value) {}
-bool
+bool
pmt_is_real(pmt_t x)
{
return x->is_real();
@@ -379,7 +379,7 @@ pmt_to_double(pmt_t x)
pmt_complex::pmt_complex(std::complex<double> value) : d_value(value) {}
-bool
+bool
pmt_is_complex(pmt_t x)
{
return x->is_complex();
@@ -435,7 +435,7 @@ pmt_car(const pmt_t& pair)
pmt_pair* p = dynamic_cast<pmt_pair*>(pair.get());
if ( p )
return p->car();
-
+
throw pmt_wrong_type("pmt_car", pair);
}
@@ -445,7 +445,7 @@ pmt_cdr(const pmt_t& pair)
pmt_pair* p = dynamic_cast<pmt_pair*>(pair.get());
if ( p )
return p->cdr();
-
+
throw pmt_wrong_type("pmt_cdr", pair);
}
@@ -766,7 +766,7 @@ pmt_uniform_vector_writable_elements(pmt_t vector, size_t &len)
* This is an a-list implementation.
*
* When we need better performance for large dictionaries, consider implementing
- * persistent Red-Black trees as described in "Purely Functional Data Structures",
+ * persistent Red-Black trees as described in "Purely Functional Data Structures",
* Chris Okasaki, 1998, section 3.3.
*/
@@ -802,7 +802,7 @@ pmt_dict_delete(const pmt_t &dict, const pmt_t &key)
if (pmt_eqv(pmt_caar(dict), key))
return pmt_cdr(dict);
-
+
return pmt_cons(pmt_car(dict), pmt_dict_delete(pmt_cdr(dict), key));
}
@@ -887,7 +887,7 @@ pmt_any_set(pmt_t obj, const boost::any &any)
// msg_accepter -- built from "any"
////////////////////////////////////////////////////////////////////////////
-bool
+bool
pmt_is_msg_accepter(const pmt_t &obj)
{
if (!pmt_is_any(obj))
@@ -1222,7 +1222,7 @@ pmt_nthcdr(size_t n, pmt_t list)
{
if (!(pmt_is_pair(list) || pmt_is_null(list)))
throw pmt_wrong_type("pmt_nthcdr", list);
-
+
while (n > 0){
if (pmt_is_pair(list)){
list = pmt_cdr(list);
@@ -1359,7 +1359,7 @@ pmt_cadddr(pmt_t pair)
{
return pmt_car(pmt_cdr(pmt_cdr(pmt_cdr(pair))));
}
-
+
bool
pmt_is_eof_object(pmt_t obj)
{
diff --git a/gruel/src/lib/pmt/pmt_int.h b/gruel/src/lib/pmt/pmt_int.h
index 745dbc666..bd2b5fe5a 100644
--- a/gruel/src/lib/pmt/pmt_int.h
+++ b/gruel/src/lib/pmt/pmt_int.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2009,2010 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,
@@ -101,7 +101,7 @@ class pmt_symbol : public pmt_base
{
std::string d_name;
pmt_t d_next;
-
+
public:
pmt_symbol(const std::string &name);
//~pmt_symbol(){}
diff --git a/gruel/src/lib/pmt/pmt_io.cc b/gruel/src/lib/pmt/pmt_io.cc
index 1214ff588..4bac4a0ec 100644
--- a/gruel/src/lib/pmt/pmt_io.cc
+++ b/gruel/src/lib/pmt/pmt_io.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2009 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -127,7 +127,7 @@ std::ostream& operator<<(std::ostream &os, pmt_t obj)
return os;
}
-std::string
+std::string
pmt_write_string(pmt_t obj)
{
std::ostringstream s;
@@ -150,7 +150,7 @@ pmt_serialize(pmt_t obj, std::ostream &sink)
/*!
* \brief Create obj from portable byte-serial representation
*/
-pmt_t
+pmt_t
pmt_deserialize(std::istream &source)
{
throw pmt_notimplemented("notimplemented: pmt_deserialize", PMT_NIL);
@@ -159,7 +159,7 @@ pmt_deserialize(std::istream &source)
} /* namespace pmt */
-void
+void
pmt::pmt_print(pmt_t v)
{
std::cout << pmt_write_string(v) << std::endl;
diff --git a/gruel/src/lib/pmt/pmt_pool.cc b/gruel/src/lib/pmt/pmt_pool.cc
index 731d28ca7..63a681abf 100644
--- a/gruel/src/lib/pmt/pmt_pool.cc
+++ b/gruel/src/lib/pmt/pmt_pool.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007,2009 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
diff --git a/gruel/src/lib/pmt/pmt_serialize.cc b/gruel/src/lib/pmt/pmt_serialize.cc
index 184a31e6b..de9644c3c 100644
--- a/gruel/src/lib/pmt/pmt_serialize.cc
+++ b/gruel/src/lib/pmt/pmt_serialize.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2007,2009 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -216,7 +216,7 @@ deserialize_untagged_f64(double *ip, std::streambuf &sb)
*ip = iu.id;
return t != std::streambuf::traits_type::eof();
}
-
+
/*
* Write portable byte-serial representation of \p obj to \p sb
@@ -227,7 +227,7 @@ bool
pmt_serialize(pmt_t obj, std::streambuf &sb)
{
bool ok = true;
-
+
tail_recursion:
if (pmt_is_bool(obj)){
@@ -236,7 +236,7 @@ pmt_serialize(pmt_t obj, std::streambuf &sb)
else
return serialize_untagged_u8(PST_FALSE, sb);
}
-
+
if (pmt_is_null(obj))
return serialize_untagged_u8(PST_NULL, sb);
@@ -294,10 +294,10 @@ pmt_serialize(pmt_t obj, std::streambuf &sb)
if (pmt_is_uniform_vector(obj))
throw pmt_notimplemented("pmt_serialize (uniform-vector)", obj);
-
+
if (pmt_is_dict(obj))
throw pmt_notimplemented("pmt_serialize (dict)", obj);
-
+
throw pmt_notimplemented("pmt_serialize (?)", obj);
}
@@ -325,7 +325,7 @@ pmt_deserialize(std::streambuf &sb)
switch (tag){
case PST_TRUE:
return PMT_T;
-
+
case PST_FALSE:
return PMT_F;
@@ -369,7 +369,7 @@ pmt_deserialize(std::streambuf &sb)
case PST_COMMENT:
throw pmt_notimplemented("pmt_deserialize: tag value = ",
pmt_from_long(tag));
-
+
default:
throw pmt_exception("pmt_deserialize: malformed input stream, tag value = ",
pmt_from_long(tag));
diff --git a/gruel/src/lib/pmt/qa_pmt.cc b/gruel/src/lib/pmt/qa_pmt.cc
index 250befafa..27c617e74 100644
--- a/gruel/src/lib/pmt/qa_pmt.cc
+++ b/gruel/src/lib/pmt/qa_pmt.cc
@@ -1,18 +1,18 @@
/*
* Copyright 2006 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,
@@ -35,6 +35,6 @@ qa_pmt::suite ()
s->addTest (qa_pmt_prims::suite ());
s->addTest (qa_pmt_unv::suite ());
-
+
return s;
}
diff --git a/gruel/src/lib/pmt/qa_pmt.h b/gruel/src/lib/pmt/qa_pmt.h
index 424c1065b..3de5872c7 100644
--- a/gruel/src/lib/pmt/qa_pmt.h
+++ b/gruel/src/lib/pmt/qa_pmt.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gruel/src/lib/pmt/qa_pmt_prims.cc b/gruel/src/lib/pmt/qa_pmt_prims.cc
index 7dec30d56..6212b8ea4 100644
--- a/gruel/src/lib/pmt/qa_pmt_prims.cc
+++ b/gruel/src/lib/pmt/qa_pmt_prims.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2009,2010 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,
@@ -173,7 +173,7 @@ qa_pmt_prims::test_pairs()
CPPUNIT_ASSERT_EQUAL(s3, pmt_car(c1));
CPPUNIT_ASSERT_EQUAL((size_t)1, pmt_length(c3));
CPPUNIT_ASSERT_EQUAL((size_t)2, pmt_length(c2));
-
+
CPPUNIT_ASSERT_THROW(pmt_cdr(PMT_NIL), pmt_wrong_type);
CPPUNIT_ASSERT_THROW(pmt_car(PMT_NIL), pmt_wrong_type);
CPPUNIT_ASSERT_THROW(pmt_set_car(s1, PMT_NIL), pmt_wrong_type);
@@ -282,7 +282,7 @@ qa_pmt_prims::test_tuples()
//std::cout << v << std::endl;
//std::cout << t2 << std::endl;
-
+
t = pmt_make_tuple(s[0], s[1], s[2]);
pmt_t list0 = pmt_list3(s[0], s[1], s[2]);
CPPUNIT_ASSERT_EQUAL(size_t(3), pmt_length(list0));
@@ -346,11 +346,11 @@ qa_pmt_prims::test_misc()
pmt_t p0 = pmt_cons(k0, v0);
pmt_t p1 = pmt_cons(k1, v1);
pmt_t p2 = pmt_cons(k2, v2);
-
+
pmt_t alist = pmt_cons(p0, pmt_cons(p1, pmt_cons(p2, PMT_NIL)));
CPPUNIT_ASSERT(pmt_eq(p1, pmt_assv(k1, alist)));
CPPUNIT_ASSERT(pmt_eq(PMT_F, pmt_assv(k3, alist)));
-
+
pmt_t keys = pmt_cons(k0, pmt_cons(k1, pmt_cons(k2, PMT_NIL)));
pmt_t vals = pmt_cons(v0, pmt_cons(v1, pmt_cons(v2, PMT_NIL)));
CPPUNIT_ASSERT(pmt_equal(keys, pmt_map(pmt_car, alist)));
@@ -372,7 +372,7 @@ qa_pmt_prims::test_dict()
pmt_t v2 = mp("v2");
pmt_t v3 = mp("v3");
pmt_t not_found = pmt_cons(PMT_NIL, PMT_NIL);
-
+
CPPUNIT_ASSERT(!pmt_dict_has_key(dict, k0));
dict = pmt_dict_add(dict, k0, v0);
CPPUNIT_ASSERT(pmt_dict_has_key(dict, k0));
diff --git a/gruel/src/lib/pmt/qa_pmt_prims.h b/gruel/src/lib/pmt/qa_pmt_prims.h
index cc1409ee6..a407509b2 100644
--- a/gruel/src/lib/pmt/qa_pmt_prims.h
+++ b/gruel/src/lib/pmt/qa_pmt_prims.h
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006 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,
diff --git a/gruel/src/lib/pmt/unv_template.cc.t b/gruel/src/lib/pmt/unv_template.cc.t
index 148965c09..566168c3d 100644
--- a/gruel/src/lib/pmt/unv_template.cc.t
+++ b/gruel/src/lib/pmt/unv_template.cc.t
@@ -33,7 +33,7 @@ pmt_@TAG@vector::ref(size_t k) const
return d_v[k];
}
-void
+void
pmt_@TAG@vector::set(size_t k, @TYPE@ x)
{
if (k >= length())
diff --git a/gruel/src/lib/realtime.cc b/gruel/src/lib/realtime.cc
index 96351f812..e01c6c53d 100644
--- a/gruel/src/lib/realtime.cc
+++ b/gruel/src/lib/realtime.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2007,2008 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,
@@ -90,7 +90,7 @@ namespace gruel {
return RT_OTHER_ERROR;
}
}
-
+
//printf("SCHED_FIFO enabled with priority = %d\n", pri);
return RT_OK;
}
@@ -125,7 +125,7 @@ namespace gruel {
return RT_OTHER_ERROR;
}
}
-
+
//printf("SCHED_FIFO enabled with priority = %d\n", pri);
return RT_OK;
}
diff --git a/gruel/src/lib/sys_pri.cc b/gruel/src/lib/sys_pri.cc
index dc0164d70..c8a505341 100644
--- a/gruel/src/lib/sys_pri.cc
+++ b/gruel/src/lib/sys_pri.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
diff --git a/gruel/src/lib/test_gruel.cc b/gruel/src/lib/test_gruel.cc
index 7ef3520e6..f32e3f341 100644
--- a/gruel/src/lib/test_gruel.cc
+++ b/gruel/src/lib/test_gruel.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2006,2009,2010,2011 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,
@@ -32,7 +32,7 @@
#include <boost/filesystem/path.hpp>
namespace fs = boost::filesystem;
-int
+int
main(int argc, char **argv)
{
fs::path path = fs::current_path() / ".unittests";
@@ -45,7 +45,7 @@ main(int argc, char **argv)
runner.addTest(qa_pmt::suite ());
runner.setOutputter(xmlout);
-
+
bool was_successful = runner.run("", false);
return was_successful ? 0 : 1;
diff --git a/gruel/src/lib/thread_body_wrapper.cc b/gruel/src/lib/thread_body_wrapper.cc
index 86c4edb5b..019eaa342 100644
--- a/gruel/src/lib/thread_body_wrapper.cc
+++ b/gruel/src/lib/thread_body_wrapper.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2008 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -37,7 +37,7 @@ namespace gruel {
sigset_t new_set;
int r;
- sigemptyset(&new_set);
+ sigemptyset(&new_set);
sigaddset(&new_set, SIGHUP); // block these...
sigaddset(&new_set, SIGINT);
sigaddset(&new_set, SIGPIPE);
diff --git a/gruel/src/lib/thread_group.cc b/gruel/src/lib/thread_group.cc
index fa78567ec..9e8ded4df 100644
--- a/gruel/src/lib/thread_group.cc
+++ b/gruel/src/lib/thread_group.cc
@@ -4,7 +4,7 @@
* Copyright (C) 2007 Anthony Williams
* Copyright 2008 Free Software Foundation, Inc.
*
- * Distributed under the Boost Software License, Version 1.0. (See accompanying
+ * Distributed under the Boost Software License, Version 1.0. (See accompanying
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
diff --git a/gruel/src/python/__init__.py b/gruel/src/python/__init__.py
index 082ea26f2..976b2ed1e 100644
--- a/gruel/src/python/__init__.py
+++ b/gruel/src/python/__init__.py
@@ -1,23 +1,23 @@
#
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
# The presence of this file turns this directory into a Python package
diff --git a/gruel/src/python/pmt/__init__.py b/gruel/src/python/pmt/__init__.py
index 2c4d33b59..0862af0eb 100644
--- a/gruel/src/python/pmt/__init__.py
+++ b/gruel/src/python/pmt/__init__.py
@@ -1,23 +1,23 @@
#
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
# The presence of this file turns this directory into a Python package
diff --git a/gruel/src/python/qa_pmt.py b/gruel/src/python/qa_pmt.py
index 00cdb064e..1ef4fed15 100755
--- a/gruel/src/python/qa_pmt.py
+++ b/gruel/src/python/qa_pmt.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
import unittest
import pmt_swig
diff --git a/gruel/src/swig/gr_intrusive_ptr.i b/gruel/src/swig/gr_intrusive_ptr.i
index eef5bc84d..40c438d00 100644
--- a/gruel/src/swig/gr_intrusive_ptr.i
+++ b/gruel/src/swig/gr_intrusive_ptr.i
@@ -1,4 +1,4 @@
-// This file was borrowed from the SWIG project to allow use to
+// This file was borrowed from the SWIG project to allow use to
// wrap PMTs that use intrusive pointers. This is only necessary
// to support backwards compatability with older distributions of
// Linux that do not natively support a new enough version of SWIG.
@@ -10,7 +10,7 @@
// #define SWIG_SHARED_PTR_NAMESPACE std
// #define SWIG_SHARED_PTR_SUBNAMESPACE tr1
// #define SWIG_INTRUSIVE_PTR_NAMESPACE boost
-// #define SWIG_INTRUSIVE_PTR_SUBNAMESPACE
+// #define SWIG_INTRUSIVE_PTR_SUBNAMESPACE
#if !defined(SWIG_INTRUSIVE_PTR_NAMESPACE)
# define SWIG_INTRUSIVE_PTR_NAMESPACE boost
@@ -36,7 +36,7 @@ namespace SWIG_INTRUSIVE_PTR_NAMESPACE {
%fragment("SWIG_intrusive_deleter", "header") {
template<class T> struct SWIG_intrusive_deleter {
void operator()(T *p) {
- if (p)
+ if (p)
intrusive_ptr_release(p);
}
};
diff --git a/gruel/src/swig/gruel_common.i b/gruel/src/swig/gruel_common.i
index e4261cbfa..3a4d841d6 100644
--- a/gruel/src/swig/gruel_common.i
+++ b/gruel/src/swig/gruel_common.i
@@ -1,18 +1,18 @@
/*
* Copyright 2011 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,
diff --git a/gruel/src/swig/pmt_swig.i b/gruel/src/swig/pmt_swig.i
index 954501863..45cfceadc 100644
--- a/gruel/src/swig/pmt_swig.i
+++ b/gruel/src/swig/pmt_swig.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011-2012 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,
@@ -77,7 +77,7 @@ bool pmt_is_false(pmt_t obj);
//! Return \#f is val is false, else return \#t.
pmt_t pmt_from_bool(bool val);
-//! Return true if val is PMT_T, return false when val is PMT_F,
+//! Return true if val is PMT_T, return false when val is PMT_F,
// else raise wrong_type exception.
bool pmt_to_bool(pmt_t val);
@@ -352,7 +352,7 @@ size_t pmt_blob_length(pmt_t blob);
*/
//! true if \p x is any kind of uniform numeric vector
-bool pmt_is_uniform_vector(pmt_t x);
+bool pmt_is_uniform_vector(pmt_t x);
bool pmt_is_u8vector(pmt_t x);
bool pmt_is_s8vector(pmt_t x);
@@ -550,7 +550,7 @@ bool pmt_eqv(const pmt_t& x, const pmt_t& y);
/*!
* pmt_equal recursively compares the contents of pairs and vectors,
- * applying pmt_eqv on other objects such as numbers and symbols.
+ * applying pmt_eqv on other objects such as numbers and symbols.
* pmt_equal may fail to terminate if its arguments are circular data
* structures.
*/
diff --git a/volk/apps/volk_profile.cc b/volk/apps/volk_profile.cc
index bd36d6dc7..76b9f4031 100644
--- a/volk/apps/volk_profile.cc
+++ b/volk/apps/volk_profile.cc
@@ -13,7 +13,7 @@ extern "C" {
int main(int argc, char *argv[]) {
std::vector<std::string> results;
-
+
//VOLK_PROFILE(volk_16i_x5_add_quad_16i_x4_a, 1e-4, 2046, 10000, &results);
//VOLK_PROFILE(volk_16i_branch_4_state_8_a, 1e-4, 2046, 10000, &results);
VOLK_PROFILE(volk_16ic_s32f_deinterleave_real_32f_a, 1e-5, 32768.0, 204600, 10000, &results);
@@ -143,7 +143,7 @@ int main(int argc, char *argv[]) {
#this file is generated by volk_profile.\n\
#the function name is followed by the preferred architecture.\n\
";
-
+
BOOST_FOREACH(std::string result, results) {
config << result << std::endl;
}
diff --git a/volk/cmake/FindORC.cmake b/volk/cmake/FindORC.cmake
index 1c4c417ad..a5f35c465 100644
--- a/volk/cmake/FindORC.cmake
+++ b/volk/cmake/FindORC.cmake
@@ -8,16 +8,16 @@ FIND_PROGRAM(ORCC_EXECUTABLE orcc
HINTS ${PC_ORC_TOOLSDIR}
PATHS ${ORC_ROOT}/bin ${CMAKE_INSTALL_PREFIX}/bin)
-FIND_PATH(ORC_INCLUDE_DIR NAMES orc/orc.h
+FIND_PATH(ORC_INCLUDE_DIR NAMES orc/orc.h
HINTS ${PC_ORC_INCLUDEDIR}
PATHS ${ORC_ROOT}/include/orc-0.4 ${CMAKE_INSTALL_PREFIX}/include/orc-0.4)
-FIND_PATH(ORC_LIBRARY_DIR NAMES ${CMAKE_SHARED_LIBRARY_PREFIX}orc-0.4${CMAKE_SHARED_LIBRARY_SUFFIX}
+FIND_PATH(ORC_LIBRARY_DIR NAMES ${CMAKE_SHARED_LIBRARY_PREFIX}orc-0.4${CMAKE_SHARED_LIBRARY_SUFFIX}
HINTS ${PC_ORC_LIBDIR}
PATHS ${ORC_ROOT}/lib${LIB_SUFFIX} ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX})
-FIND_LIBRARY(ORC_LIB orc-0.4
+FIND_LIBRARY(ORC_LIB orc-0.4
HINTS ${PC_ORC_LIBRARY_DIRS}
PATHS ${ORC_ROOT}/lib${LIB_SUFFIX} ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX})
diff --git a/volk/gen/archs.xml b/volk/gen/archs.xml
index effd90d33..ca2118475 100644
--- a/volk/gen/archs.xml
+++ b/volk/gen/archs.xml
@@ -19,7 +19,7 @@
<flag>m32</flag>
<overrule>MD_SUBCPU</overrule>
<overrule_val>x86_64</overrule_val>
-</arch>
+</arch>
<arch name="64" type="x86">
<op>0x80000001</op>
diff --git a/volk/gen/make_c.py b/volk/gen/make_c.py
index 0f9bcde34..233cb85c2 100644
--- a/volk/gen/make_c.py
+++ b/volk/gen/make_c.py
@@ -48,7 +48,7 @@ struct volk_machine *get_machine(void) {
extern struct volk_machine *volk_machines[];
extern unsigned int n_volk_machines;
static struct volk_machine *machine = NULL;
-
+
if(machine != NULL) return machine;
else {
unsigned int max_score = 0;
@@ -71,7 +71,7 @@ unsigned int volk_get_alignment(void) {
}
"""
-
+
for i in range(len(functions)):
tempstring += "void get_" + functions[i] + replace_arch.sub("", arched_arglist[i]) + "\n"
tempstring += " %s = get_machine()->%s_archs[volk_rank_archs(get_machine()->%s_indices, get_machine()->%s_arch_defs, get_machine()->%s_n_archs, get_machine()->%s_name, volk_get_lvarch())];\n" % (functions[i], functions[i], functions[i], functions[i], functions[i], functions[i])
diff --git a/volk/gen/make_config_fixed.py b/volk/gen/make_config_fixed.py
index 3fd1bdf0a..96f20b6b2 100644
--- a/volk/gen/make_config_fixed.py
+++ b/volk/gen/make_config_fixed.py
@@ -18,4 +18,4 @@ def make_config_fixed(dom) :
return tempstring;
-
+
diff --git a/volk/gen/make_cpuid_c.py b/volk/gen/make_cpuid_c.py
index 2be1123a8..e30d643cb 100644
--- a/volk/gen/make_cpuid_c.py
+++ b/volk/gen/make_cpuid_c.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from xml.dom import minidom
@@ -79,7 +79,7 @@ static inline unsigned int cpuid_edx(unsigned int op) {
def make_cpuid_c(dom) :
tempstring = HEADER_TEMPL;
-
+
for domarch in dom:
if str(domarch.attributes["type"].value) == "x86":
if "no_test" in domarch.attributes.keys():
@@ -103,7 +103,7 @@ def make_cpuid_c(dom) :
val = domarch.getElementsByTagName("val");
if val:
val = str(val[0].firstChild.data);
-
+
if no_test:
tempstring = tempstring + """\
int i_can_has_%s () {
@@ -113,9 +113,9 @@ int i_can_has_%s () {
return 0;
#endif
}
-
+
""" % (arch)
-
+
elif op == "1":
tempstring = tempstring + """\
int i_can_has_%s () {
@@ -144,7 +144,7 @@ int i_can_has_%s () {
}
""" % (arch, val, reg, op, shift, val)
-
+
elif str(domarch.attributes["type"].value) == "powerpc":
arch = str(domarch.attributes["name"].value);
tempstring = tempstring + """\
@@ -178,7 +178,7 @@ int i_can_has_%s () {
unsigned int found_neon = 0;
auxvec_f = fopen("/proc/self/auxv", "rb");
if(!auxvec_f) return 0;
-
+
//so auxv is basically 32b of ID and 32b of value
//so it goes like this
while(!found_neon && auxvec_f) {
@@ -186,7 +186,7 @@ int i_can_has_%s () {
if((auxvec[0] == AT_HWCAP) && (auxvec[1] & HWCAP_NEON))
found_neon = 1;
}
-
+
fclose(auxvec_f);
return found_neon;
@@ -196,7 +196,7 @@ int i_can_has_%s () {
}
""" % (arch)
-
+
elif str(domarch.attributes["type"].value) == "all":
arch = str(domarch.attributes["name"].value);
tempstring = tempstring + """\
@@ -213,7 +213,7 @@ int i_can_has_%s () {
}
""" % (arch)
-
+
tempstring = tempstring + "void volk_cpu_init() {\n";
for domarch in dom:
arch = str(domarch.attributes["name"].value);
@@ -231,9 +231,9 @@ int i_can_has_%s () {
return tempstring;
-
-
-
-
-
+
+
+
+
+
diff --git a/volk/gen/make_cpuid_h.py b/volk/gen/make_cpuid_h.py
index 4fe5c4e07..1aa783781 100644
--- a/volk/gen/make_cpuid_h.py
+++ b/volk/gen/make_cpuid_h.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from xml.dom import minidom
@@ -44,5 +44,5 @@ def make_cpuid_h(dom) :
tempstring = tempstring + "\n";
tempstring = tempstring + "__VOLK_DECL_END\n";
tempstring = tempstring + "#endif /*INCLUDED_VOLK_CPU_H*/\n"
-
+
return tempstring;
diff --git a/volk/gen/make_each_machine_c.py b/volk/gen/make_each_machine_c.py
index a3f6203ba..535578859 100644
--- a/volk/gen/make_each_machine_c.py
+++ b/volk/gen/make_each_machine_c.py
@@ -59,7 +59,7 @@ def make_each_machine_c(machine_name, archs, functions, fcountlist, taglist, ali
"""
for arch in archs:
tempstring += "#define LV_HAVE_" + arch.swapcase() + " 1\n"
-
+
tempstring += """
#include <volk/volk_common.h>
#include "volk_machines.h"
diff --git a/volk/gen/make_environment_init_c.py b/volk/gen/make_environment_init_c.py
index 263d5bcd1..6186162ee 100644
--- a/volk/gen/make_environment_init_c.py
+++ b/volk/gen/make_environment_init_c.py
@@ -14,7 +14,7 @@ def make_environment_init_c(dom) :
tempstring = tempstring + "#endif\n"
tempstring = tempstring + '\n\n';
tempstring = tempstring + "void volk_environment_init(){\n"
-
+
for domarch in dom:
arch = str(domarch.attributes["name"].value);
envs = domarch.getElementsByTagName("environment");
@@ -22,11 +22,11 @@ def make_environment_init_c(dom) :
cmd = str(env.firstChild.data);
tempstring = tempstring + "#ifdef LV_HAVE_" + arch.swapcase() + "\n";
tempstring = tempstring + " " + cmd + "\n";
- tempstring = tempstring + "#endif\n"
-
+ tempstring = tempstring + "#endif\n"
+
tempstring = tempstring + "}\n";
return tempstring;
-
-
+
+
diff --git a/volk/gen/make_environment_init_h.py b/volk/gen/make_environment_init_h.py
index 655d73f54..0b0f35d61 100644
--- a/volk/gen/make_environment_init_h.py
+++ b/volk/gen/make_environment_init_h.py
@@ -12,7 +12,7 @@ def make_environment_init_h() :
tempstring = tempstring + "__VOLK_DECL_END\n";
tempstring = tempstring + "#endif\n"
return tempstring;
-
-
+
+
diff --git a/volk/gen/make_h.py b/volk/gen/make_h.py
index 354e57258..cf8987c39 100644
--- a/volk/gen/make_h.py
+++ b/volk/gen/make_h.py
@@ -35,4 +35,4 @@ VOLK_API unsigned int volk_get_alignment(void);
tempstring = tempstring + "#endif /*INCLUDED_VOLK_RUNTIME*/\n";
return tempstring;
-
+
diff --git a/volk/gen/make_machines_c.py b/volk/gen/make_machines_c.py
index a7ab63d6e..f19da4ae4 100644
--- a/volk/gen/make_machines_c.py
+++ b/volk/gen/make_machines_c.py
@@ -33,7 +33,7 @@ struct volk_machine *volk_machines[] = {
tempstring += "&volk_machine_" + machine
tempstring += ","
tempstring += "\n#endif\n"
-
+
tempstring += r"""
};
unsigned int n_volk_machines = sizeof(volk_machines)/sizeof(*volk_machines);
diff --git a/volk/gen/make_machines_h.py b/volk/gen/make_machines_h.py
index a48caa89c..d2374120b 100644
--- a/volk/gen/make_machines_h.py
+++ b/volk/gen/make_machines_h.py
@@ -41,15 +41,15 @@ struct volk_machine {
tempstring += " const int %s_arch_defs[%d];\n"%(function, len(archs))
tempstring += " const %s %s_archs[%d];\n"%(replace_volk.sub("p", function), function, len(archs))
tempstring += " const int %s_n_archs;\n"%function
-
+
tempstring += r"""};
-
+
"""
for machine in machines:
tempstring += """#if LV_MACHINE_""" + machine.swapcase() + "\n"
tempstring += "extern struct volk_machine volk_machine_" + machine + ";\n"
tempstring += """#endif\n"""
-
+
tempstring += r"""
__VOLK_DECL_END
diff --git a/volk/gen/make_makefile_am.py b/volk/gen/make_makefile_am.py
index 0dc088a80..880ce4094 100644
--- a/volk/gen/make_makefile_am.py
+++ b/volk/gen/make_makefile_am.py
@@ -21,7 +21,7 @@ def make_makefile_am(dom, machines, archflags_dict):
tempstring = r"""
# This file is automatically generated by make_makefile_am.py.
# Do not edit this file.
-
+
include $(top_srcdir)/Makefile.common
AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) \
@@ -55,17 +55,17 @@ volk_orc_CFLAGS = -DLV_HAVE_ORC=1
volk_orc_LDFLAGS = $(ORC_LDFLAGS) -lorc-0.4
volk_orc_LIBADD = ../orc/libvolk_orc.la
else
-volk_orc_CFLAGS =
+volk_orc_CFLAGS =
volk_orc_LDFLAGS =
-volk_orc_LIBADD =
+volk_orc_LIBADD =
endif
libvolk_la_CPPFLAGS = $(AM_CPPFLAGS) $(volk_orc_CFLAGS)
libvolk_la_LDFLAGS = $(NO_UNDEFINED) -version-info 0:0:0 $(volk_orc_LDFLAGS)
libvolk_la_LIBADD = $(volk_orc_LIBADD)
-noinst_LTLIBRARIES =
-
+noinst_LTLIBRARIES =
+
"""
#here be dragons
@@ -76,7 +76,7 @@ noinst_LTLIBRARIES =
for arch in machines[machine_name]:
if archflags_dict[arch] != "none":
tempstring += "-" + archflags_dict[arch] + " "
-
+
tempstring += "\nnoinst_LTLIBRARIES += libvolk_" + machine_name + ".la "
tempstring += "\nlibvolk_la_LIBADD += libvolk_" + machine_name + ".la\n"
tempstring += "libvolk_la_CPPFLAGS += -DLV_MACHINE_" + machine_name.swapcase() + " \n"
diff --git a/volk/gen/make_proccpu_sim.py b/volk/gen/make_proccpu_sim.py
index 029dacfcc..e2c8123e5 100644
--- a/volk/gen/make_proccpu_sim.py
+++ b/volk/gen/make_proccpu_sim.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2011 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,
# Boston, MA 02110-1301, USA.
-#
+#
from xml.dom import minidom
@@ -35,7 +35,7 @@ def make_proccpu_sim(dom) :
tempstring = tempstring + " }\n";
tempstring = tempstring + "}\n";
tempstring = tempstring + "\n\n";
-
+
tempstring = tempstring + "int main() {\n";
tempstring = tempstring + " volk_cpu_init();\n";
tempstring = tempstring + " char buf[2048];\n";
diff --git a/volk/gen/make_set_simd.py b/volk/gen/make_set_simd.py
index 5a848e59e..8334487d7 100644
--- a/volk/gen/make_set_simd.py
+++ b/volk/gen/make_set_simd.py
@@ -43,17 +43,17 @@ def make_set_simd(dom, machines) :
tempstring = tempstring + " indLV_ARCH=no\n";
tempstring = tempstring + " AC_ARG_WITH(lv_arch,\n";
tempstring = tempstring + " AC_HELP_STRING([--with-lv_arch=ARCH],[set volk hardware speedups as space separated string with elements from the following list(";
-
+
for domarch in dom:
arch = str(domarch.attributes["name"].value);
tempstring = tempstring + arch + ", "
tempstring = tempstring[0:len(tempstring) - 2];
-
+
tempstring = tempstring + ")]),\n";
tempstring = tempstring + " [cf_with_lv_arch=\"$withval\"],\n";
tempstring = tempstring + " [cf_with_lv_arch=\"\"])\n";
if str(domarch.attributes["type"].value) == "all":
- arch = str(domarch.attributes["name"].value);
+ arch = str(domarch.attributes["name"].value);
tempstring = tempstring + " AC_DEFINE(LV_MAKE_" + arch.swapcase() + ", 1, [always set "+ arch + "!])\n";
tempstring = tempstring + " ADDONS=\"\"\n";
tempstring = tempstring + " BUILT_ARCHS=\"\"\n";
@@ -67,7 +67,7 @@ def make_set_simd(dom, machines) :
tempstring = tempstring[0:-1] + "\"\n";
tempstring = tempstring + " OVERRULE_FLAG=\"yes\"\n";
tempstring = tempstring + " fi\n";
-
+
tempstring = tempstring +'\ndnl init LV_MAKE_XXX and then try to add archs\n';
for domarch in dom:
if str(domarch.attributes["type"].value) != "all":
@@ -118,9 +118,9 @@ def make_set_simd(dom, machines) :
tempstring = tempstring + " if test -n \"" + overrule + "\" && test \"$" + overrule + "\" == \"" + overrule_val + "\" && test \"$OVERRULE_FLAG\" == \"yes\" && test \"$indLV_ARCH\" == \"yes\"; then\n"
tempstring = tempstring + " indLV_ARCH=no\n"
tempstring = tempstring + " fi\n"
-
- tempstring = tempstring + " if test \"$indCC\" == \"yes\" && test \"$indCXX\" == \"yes\" && test \"$indLV_ARCH\" == \"yes\"; then\n"
-
+
+ tempstring = tempstring + " if test \"$indCC\" == \"yes\" && test \"$indCXX\" == \"yes\" && test \"$indLV_ARCH\" == \"yes\"; then\n"
+
#tempstring = tempstring + " ADDONS=\"${ADDONS} -" + flag + "\"\n";
tempstring = tempstring + " BUILT_ARCHS=\"${BUILT_ARCHS} " + arch + "\"\n";
tempstring = tempstring + " LV_MAKE_" + arch.swapcase() + "=yes\n";
@@ -138,17 +138,17 @@ def make_set_simd(dom, machines) :
tempstring = tempstring + " if test -n \"" + overrule + "\" && test \"$" + overrule + "\" == \"" + overrule_val + "\" && test \"$OVERRULE_FLAG\" == \"yes\" && test \"$indLV_ARCH\" == \"yes\"; then\n"
tempstring = tempstring + " indLV_ARCH=no\n"
tempstring = tempstring + " fi\n"
- tempstring = tempstring + " if test \"$indLV_ARCH\" == \"yes\"; then\n"
+ tempstring = tempstring + " if test \"$indLV_ARCH\" == \"yes\"; then\n"
tempstring = tempstring + " LV_MAKE_" + arch.swapcase() + "=yes\n";
tempstring = tempstring + " BUILT_ARCHS=\"${BUILT_ARCHS} " + arch + "\"\n";
tempstring = tempstring + " fi\n"
tempstring = tempstring + " indLV_ARCH=no\n"
-
+
for domarch in dom:
arch = str(domarch.attributes["name"].value);
tempstring = tempstring + " AM_CONDITIONAL(LV_MAKE_" + arch.swapcase() + ", test \"$LV_MAKE_" + arch.swapcase() + "\" == \"yes\")\n";
-
+
tempstring += "\n"
#now we can define the machines we're compiling
for machine_name in machines:
@@ -156,11 +156,11 @@ def make_set_simd(dom, machines) :
marchlist = machines[machine_name]
for march in marchlist:
tempstring += "test \"$LV_MAKE_" + march.swapcase() + "\" == \"yes\" && "
-
+
tempstring += "test true)\n" #just so we don't have to detect the last one in the group, i know
tempstring = tempstring + " LV_CXXFLAGS=\"${LV_CXXFLAGS} ${ADDONS}\"\n"
tempstring = tempstring + "])\n"
-
+
return tempstring;
-
+
diff --git a/volk/gen/make_typedefs.py b/volk/gen/make_typedefs.py
index 8f9f2b55e..09221d2ef 100644
--- a/volk/gen/make_typedefs.py
+++ b/volk/gen/make_typedefs.py
@@ -15,7 +15,7 @@ def make_typedefs(funclist, retlist, my_argtypelist) :
tempstring = tempstring + '\n';
- for i in range(len(funclist)):
+ for i in range(len(funclist)):
tempstring = tempstring + "typedef " + retlist[i] +" (*" + replace_volk.sub("p", funclist[i]) + ")(" + my_argtypelist[i] + ");\n";
tempstring = tempstring + "#endif /*INCLUDED_VOLK_TYPEDEFS*/\n";
diff --git a/volk/gen/volk_register.py b/volk/gen/volk_register.py
index 0774ece29..3a237c5ca 100644
--- a/volk/gen/volk_register.py
+++ b/volk/gen/volk_register.py
@@ -62,7 +62,7 @@ for line in hdr_files:
subdtype = re.search("[0-9]+[A-z]+", dtype);
if subdtype:
datatypes.append(subdtype.group(0));
-
+
datatypes = set(datatypes);
@@ -71,7 +71,7 @@ for line in hdr_files:
if dt in line:
subline = re.search("(volk_" + dt +"_.*(a|u).*\.h)", line);
if subline:
-
+
subsubline = re.search(".+(?=\.h)", subline.group(0));
functions.append(subsubline.group(0));
@@ -80,13 +80,13 @@ afile = minidom.parse(os.path.join(srcdir, "gen/archs.xml"))
filearchs = afile.getElementsByTagName("arch");
for filearch in filearchs:
archs.append(str(filearch.attributes["name"].value));
-
+
for arch in archs:
a_var = re.search("^\$", arch);
if a_var:
archs.remove(arch);
-
-#strip out mutex archs
+
+#strip out mutex archs
archflags_dict = {}
for filearch in filearchs:
@@ -177,22 +177,22 @@ for func in functions:
tag = re.search("\w+", tag.group(0));
if tag:
tags.append(tag.group(0));
-
-
+
+
if begun_name == 0:
retline = re.search(".+(?=" + func + ")", line);
if retline:
ret = retline.group(0);
-
-
-
-
+
+
+
+
subline = re.search(func + ".*", line);
if subline:
subsubline = re.search("\(.*?\)", subline.group(0));
if subsubline:
args = subsubline.group(0);
-
+
else:
begun_name = 1;
subsubline = re.search("\(.*", subline.group(0));
@@ -214,25 +214,25 @@ for func in functions:
if subline:
args = subline.group(0);
begun_name = 0;
- else:
+ else:
subline = re.search("\(.*", line);
if subline:
args = subline.group(0);
begun_paren = 1;
-
+
replace = re.compile("static ");
ret = replace.sub("", ret);
replace = re.compile("inline ");
ret = replace.sub("", ret);
replace = re.compile("\)");
arched_args = replace.sub(", const char* arch) {", args);
-
+
remove = re.compile('\)|\(|{');
rargs = remove.sub("", args);
sargs = rargs.split(',');
-
-
-
+
+
+
margs = [];
atypes = [];
for arg in sargs:
@@ -241,7 +241,7 @@ for func in functions:
replace = re.compile(" " + temp[-1]);
atypes.append(replace.sub("", arg));
-
+
my_args = ""
arg_types = ""
for arg in range(0, len(margs) - 1):
@@ -255,7 +255,7 @@ for func in functions:
this_type = leading_space_remove.sub("", atypes[-1]);
arg_types = arg_types + this_type;
my_argtypelist.append(arg_types);
-
+
if(ret[-1] != ' '):
ret = ret + ' ';
@@ -263,7 +263,7 @@ for func in functions:
my_arglist.append(my_args) #!!!!!!!!!!!!!!!!!
retlist.append(ret);
fcountlist.append(fcount);
- taglist.append(tags);
+ taglist.append(tags);
outfile_cpu_h.write(make_cpuid_h(filearchs));
diff --git a/volk/include/volk/volk_16i_branch_4_state_8_a.h b/volk/include/volk/volk_16i_branch_4_state_8_a.h
index 0424e66e9..6338fbdd1 100644
--- a/volk/include/volk/volk_16i_branch_4_state_8_a.h
+++ b/volk/include/volk/volk_16i_branch_4_state_8_a.h
@@ -3,7 +3,7 @@
#include<inttypes.h>
-#include<stdio.h>
+#include<stdio.h>
@@ -15,32 +15,32 @@
#include<tmmintrin.h>
static inline void volk_16i_branch_4_state_8_a_ssse3(short* target, short* src0, char** permuters, short* cntl2, short* cntl3, short* scalars) {
-
-
+
+
__m128i xmm0, xmm1, xmm2, xmm3, xmm4, xmm5, xmm6, xmm7, xmm8, xmm9, xmm10, xmm11;
__m128i *p_target, *p_src0, *p_cntl2, *p_cntl3, *p_scalars;
-
-
+
+
p_target = (__m128i*)target;
p_src0 = (__m128i*)src0;
p_cntl2 = (__m128i*)cntl2;
p_cntl3 = (__m128i*)cntl3;
p_scalars = (__m128i*)scalars;
-
+
int i = 0;
-
+
int bound = 1;
-
-
+
+
xmm0 = _mm_load_si128(p_scalars);
-
+
xmm1 = _mm_shufflelo_epi16(xmm0, 0);
xmm2 = _mm_shufflelo_epi16(xmm0, 0x55);
xmm3 = _mm_shufflelo_epi16(xmm0, 0xaa);
xmm4 = _mm_shufflelo_epi16(xmm0, 0xff);
-
+
xmm1 = _mm_shuffle_epi32(xmm1, 0x00);
xmm2 = _mm_shuffle_epi32(xmm2, 0x00);
xmm3 = _mm_shuffle_epi32(xmm3, 0x00);
@@ -52,40 +52,40 @@ static inline void volk_16i_branch_4_state_8_a_ssse3(short* target, short* src
xmm10 = _mm_load_si128((__m128i*)permuters[3]);
for(; i < bound; ++i) {
-
+
xmm5 = _mm_load_si128(p_src0);
-
-
-
-
-
-
-
+
+
+
+
+
+
+
xmm0 = _mm_shuffle_epi8(xmm5, xmm0);
xmm6 = _mm_shuffle_epi8(xmm5, xmm6);
xmm8 = _mm_shuffle_epi8(xmm5, xmm8);
xmm10 = _mm_shuffle_epi8(xmm5, xmm10);
-
+
p_src0 += 4;
-
-
+
+
xmm5 = _mm_add_epi16(xmm1, xmm2);
-
+
xmm6 = _mm_add_epi16(xmm2, xmm6);
xmm8 = _mm_add_epi16(xmm1, xmm8);
-
-
+
+
xmm7 = _mm_load_si128(p_cntl2);
xmm9 = _mm_load_si128(p_cntl3);
-
+
xmm0 = _mm_add_epi16(xmm5, xmm0);
-
-
+
+
xmm7 = _mm_and_si128(xmm7, xmm3);
xmm9 = _mm_and_si128(xmm9, xmm4);
-
+
xmm5 = _mm_load_si128(&p_cntl2[1]);
xmm11 = _mm_load_si128(&p_cntl3[1]);
@@ -95,96 +95,96 @@ static inline void volk_16i_branch_4_state_8_a_ssse3(short* target, short* src
xmm11 = _mm_and_si128(xmm11, xmm4);
xmm0 = _mm_add_epi16(xmm0, xmm7);
-
-
-
+
+
+
xmm7 = _mm_load_si128(&p_cntl2[2]);
xmm9 = _mm_load_si128(&p_cntl3[2]);
-
+
xmm5 = _mm_add_epi16(xmm5, xmm11);
-
+
xmm7 = _mm_and_si128(xmm7, xmm3);
xmm9 = _mm_and_si128(xmm9, xmm4);
-
+
xmm6 = _mm_add_epi16(xmm6, xmm5);
-
-
+
+
xmm5 = _mm_load_si128(&p_cntl2[3]);
xmm11 = _mm_load_si128(&p_cntl3[3]);
-
+
xmm7 = _mm_add_epi16(xmm7, xmm9);
-
+
xmm5 = _mm_and_si128(xmm5, xmm3);
xmm11 = _mm_and_si128(xmm11, xmm4);
-
+
xmm8 = _mm_add_epi16(xmm8, xmm7);
-
+
xmm5 = _mm_add_epi16(xmm5, xmm11);
-
+
_mm_store_si128(p_target, xmm0);
_mm_store_si128(&p_target[1], xmm6);
xmm10 = _mm_add_epi16(xmm5, xmm10);
-
+
_mm_store_si128(&p_target[2], xmm8);
-
+
_mm_store_si128(&p_target[3], xmm10);
-
- p_target += 3;
+
+ p_target += 3;
}
}
-
-
+
+
#endif /*LV_HAVE_SSEs*/
#ifdef LV_HAVE_GENERIC
static inline void volk_16i_branch_4_state_8_a_generic(short* target, short* src0, char** permuters, short* cntl2, short* cntl3, short* scalars) {
int i = 0;
-
+
int bound = 4;
-
+
for(; i < bound; ++i) {
- target[i* 8] = src0[((char)permuters[i][0])/2]
+ target[i* 8] = src0[((char)permuters[i][0])/2]
+ ((i + 1)%2 * scalars[0])
+ (((i >> 1)^1) * scalars[1])
+ (cntl2[i * 8] & scalars[2])
+ (cntl3[i * 8] & scalars[3]);
- target[i* 8 + 1] = src0[((char)permuters[i][1 * 2])/2]
+ target[i* 8 + 1] = src0[((char)permuters[i][1 * 2])/2]
+ ((i + 1)%2 * scalars[0])
+ (((i >> 1)^1) * scalars[1])
+ (cntl2[i * 8 + 1] & scalars[2])
+ (cntl3[i * 8 + 1] & scalars[3]);
- target[i* 8 + 2] = src0[((char)permuters[i][2 * 2])/2]
+ target[i* 8 + 2] = src0[((char)permuters[i][2 * 2])/2]
+ ((i + 1)%2 * scalars[0])
+ (((i >> 1)^1) * scalars[1])
+ (cntl2[i * 8 + 2] & scalars[2])
+ (cntl3[i * 8 + 2] & scalars[3]);
- target[i* 8 + 3] = src0[((char)permuters[i][3 * 2])/2]
+ target[i* 8 + 3] = src0[((char)permuters[i][3 * 2])/2]
+ ((i + 1)%2 * scalars[0])
+ (((i >> 1)^1) * scalars[1])
+ (cntl2[i * 8 + 3] & scalars[2])
+ (cntl3[i * 8 + 3] & scalars[3]);
- target[i* 8 + 4] = src0[((char)permuters[i][4 * 2])/2]
+ target[i* 8 + 4] = src0[((char)permuters[i][4 * 2])/2]
+ ((i + 1)%2 * scalars[0])
+ (((i >> 1)^1) * scalars[1])
+ (cntl2[i * 8 + 4] & scalars[2])
+ (cntl3[i * 8 + 4] & scalars[3]);
- target[i* 8 + 5] = src0[((char)permuters[i][5 * 2])/2]
+ target[i* 8 + 5] = src0[((char)permuters[i][5 * 2])/2]
+ ((i + 1)%2 * scalars[0])
+ (((i >> 1)^1) * scalars[1])
+ (cntl2[i * 8 + 5] & scalars[2])
+ (cntl3[i * 8 + 5] & scalars[3]);
- target[i* 8 + 6] = src0[((char)permuters[i][6 * 2])/2]
+ target[i* 8 + 6] = src0[((char)permuters[i][6 * 2])/2]
+ ((i + 1)%2 * scalars[0])
+ (((i >> 1)^1) * scalars[1])
+ (cntl2[i * 8 + 6] & scalars[2])
+ (cntl3[i * 8 + 6] & scalars[3]);
- target[i* 8 + 7] = src0[((char)permuters[i][7 * 2])/2]
+ target[i* 8 + 7] = src0[((char)permuters[i][7 * 2])/2]
+ ((i + 1)%2 * scalars[0])
+ (((i >> 1)^1) * scalars[1])
+ (cntl2[i * 8 + 7] & scalars[2])
+ (cntl3[i * 8 + 7] & scalars[3]);
-
+
}
}
diff --git a/volk/include/volk/volk_16i_convert_8i_a.h b/volk/include/volk/volk_16i_convert_8i_a.h
index 8046035c7..84548c8c5 100644
--- a/volk/include/volk/volk_16i_convert_8i_a.h
+++ b/volk/include/volk/volk_16i_convert_8i_a.h
@@ -15,7 +15,7 @@
static inline void volk_16i_convert_8i_a_sse2(int8_t* outputVector, const int16_t* inputVector, unsigned int num_points){
unsigned int number = 0;
const unsigned int sixteenthPoints = num_points / 16;
-
+
int8_t* outputVectorPtr = outputVector;
int16_t* inputPtr = (int16_t*)inputVector;
__m128i inputVal1;
@@ -30,7 +30,7 @@ static inline void volk_16i_convert_8i_a_sse2(int8_t* outputVector, const int16_
inputVal1 = _mm_srai_epi16(inputVal1, 8);
inputVal2 = _mm_srai_epi16(inputVal2, 8);
-
+
ret = _mm_packs_epi16(inputVal1, inputVal2);
_mm_store_si128((__m128i*)outputVectorPtr, ret);
diff --git a/volk/include/volk/volk_16i_convert_8i_u.h b/volk/include/volk/volk_16i_convert_8i_u.h
index df1084fe0..80608a141 100644
--- a/volk/include/volk/volk_16i_convert_8i_u.h
+++ b/volk/include/volk/volk_16i_convert_8i_u.h
@@ -16,7 +16,7 @@
static inline void volk_16i_convert_8i_u_sse2(int8_t* outputVector, const int16_t* inputVector, unsigned int num_points){
unsigned int number = 0;
const unsigned int sixteenthPoints = num_points / 16;
-
+
int8_t* outputVectorPtr = outputVector;
int16_t* inputPtr = (int16_t*)inputVector;
__m128i inputVal1;
@@ -31,7 +31,7 @@ static inline void volk_16i_convert_8i_u_sse2(int8_t* outputVector, const int16_
inputVal1 = _mm_srai_epi16(inputVal1, 8);
inputVal2 = _mm_srai_epi16(inputVal2, 8);
-
+
ret = _mm_packs_epi16(inputVal1, inputVal2);
_mm_storeu_si128((__m128i*)outputVectorPtr, ret);
diff --git a/volk/include/volk/volk_16i_max_star_16i_a.h b/volk/include/volk/volk_16i_max_star_16i_a.h
index 28197ddef..edfff8a82 100644
--- a/volk/include/volk/volk_16i_max_star_16i_a.h
+++ b/volk/include/volk/volk_16i_max_star_16i_a.h
@@ -3,7 +3,7 @@
#include<inttypes.h>
-#include<stdio.h>
+#include<stdio.h>
#ifdef LV_HAVE_SSSE3
@@ -15,82 +15,82 @@
static inline void volk_16i_max_star_16i_a_ssse3(short* target, short* src0, unsigned int num_bytes) {
-
+
short candidate = src0[0];
short cands[8];
__m128i xmm0, xmm1, xmm3, xmm4, xmm5, xmm6;
-
+
__m128i *p_src0;
-
+
p_src0 = (__m128i*)src0;
int bound = num_bytes >> 4;
int leftovers = (num_bytes >> 1) & 7;
-
+
int i = 0;
-
-
+
+
xmm1 = _mm_setzero_si128();
xmm0 = _mm_setzero_si128();
//_mm_insert_epi16(xmm0, candidate, 0);
-
- xmm0 = _mm_shuffle_epi8(xmm0, xmm1);
-
+ xmm0 = _mm_shuffle_epi8(xmm0, xmm1);
+
+
for(i = 0; i < bound; ++i) {
xmm1 = _mm_load_si128(p_src0);
p_src0 += 1;
//xmm2 = _mm_sub_epi16(xmm1, xmm0);
-
-
-
-
-
+
+
+
+
+
xmm3 = _mm_cmpgt_epi16(xmm0, xmm1);
xmm4 = _mm_cmpeq_epi16(xmm0, xmm1);
xmm5 = _mm_cmpgt_epi16(xmm1, xmm0);
xmm6 = _mm_xor_si128(xmm4, xmm5);
-
+
xmm3 = _mm_and_si128(xmm3, xmm0);
xmm4 = _mm_and_si128(xmm6, xmm1);
-
+
xmm0 = _mm_add_epi16(xmm3, xmm4);
-
-
+
+
}
-
+
_mm_store_si128((__m128i*)cands, xmm0);
-
+
for(i = 0; i < 8; ++i) {
candidate = ((short)(candidate - cands[i]) > 0) ? candidate : cands[i];
}
-
-
-
+
+
+
for(i = 0; i < leftovers; ++i) {
-
+
candidate = ((short)(candidate - src0[(bound << 3) + i]) > 0) ? candidate : src0[(bound << 3) + i];
}
target[0] = candidate;
-
-
-
-
-}
-
+
+
+
+
+}
+
#endif /*LV_HAVE_SSSE3*/
#ifdef LV_HAVE_GENERIC
static inline void volk_16i_max_star_16i_a_generic(short* target, short* src0, unsigned int num_bytes) {
-
+
int i = 0;
-
+
int bound = num_bytes >> 1;
short candidate = src0[0];
@@ -98,7 +98,7 @@ static inline void volk_16i_max_star_16i_a_generic(short* target, short* src0, u
candidate = ((short)(candidate - src0[i]) > 0) ? candidate : src0[i];
}
target[0] = candidate;
-
+
}
diff --git a/volk/include/volk/volk_16i_max_star_horizontal_16i_a.h b/volk/include/volk/volk_16i_max_star_horizontal_16i_a.h
index a10a62350..c1c908425 100644
--- a/volk/include/volk/volk_16i_max_star_horizontal_16i_a.h
+++ b/volk/include/volk/volk_16i_max_star_horizontal_16i_a.h
@@ -4,7 +4,7 @@
#include <volk/volk_common.h>
#include<inttypes.h>
-#include<stdio.h>
+#include<stdio.h>
#ifdef LV_HAVE_SSSE3
@@ -20,107 +20,107 @@ static inline void volk_16i_max_star_horizontal_16i_a_ssse3(int16_t* target, in
const static uint8_t andmask0[16] = {0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02,0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
const static uint8_t andmask1[16] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02};
-
-
+
+
__m128i xmm0, xmm1, xmm2, xmm3, xmm4;
__m128i xmm5, xmm6, xmm7, xmm8;
-
+
xmm4 = _mm_load_si128((__m128i*)shufmask0);
xmm5 = _mm_load_si128((__m128i*)shufmask1);
xmm6 = _mm_load_si128((__m128i*)andmask0);
xmm7 = _mm_load_si128((__m128i*)andmask1);
-
+
__m128i *p_target, *p_src0;
-
+
p_target = (__m128i*)target;
p_src0 = (__m128i*)src0;
int bound = num_bytes >> 5;
int intermediate = (num_bytes >> 4) & 1;
int leftovers = (num_bytes >> 1) & 7;
-
+
int i = 0;
-
-
+
+
for(i = 0; i < bound; ++i) {
-
+
xmm0 = _mm_load_si128(p_src0);
xmm1 = _mm_load_si128(&p_src0[1]);
-
-
+
+
xmm2 = _mm_xor_si128(xmm2, xmm2);
p_src0 += 2;
-
+
xmm3 = _mm_hsub_epi16(xmm0, xmm1);
-
- xmm2 = _mm_cmpgt_epi16(xmm2, xmm3);
+
+ xmm2 = _mm_cmpgt_epi16(xmm2, xmm3);
xmm8 = _mm_and_si128(xmm2, xmm6);
xmm3 = _mm_and_si128(xmm2, xmm7);
-
+
xmm8 = _mm_add_epi8(xmm8, xmm4);
xmm3 = _mm_add_epi8(xmm3, xmm5);
xmm0 = _mm_shuffle_epi8(xmm0, xmm8);
xmm1 = _mm_shuffle_epi8(xmm1, xmm3);
-
-
+
+
xmm3 = _mm_add_epi16(xmm0, xmm1);
-
+
_mm_store_si128(p_target, xmm3);
-
+
p_target += 1;
-
+
}
for(i = 0; i < intermediate; ++i) {
-
+
xmm0 = _mm_load_si128(p_src0);
-
-
+
+
xmm2 = _mm_xor_si128(xmm2, xmm2);
p_src0 += 1;
-
+
xmm3 = _mm_hsub_epi16(xmm0, xmm1);
xmm2 = _mm_cmpgt_epi16(xmm2, xmm3);
xmm8 = _mm_and_si128(xmm2, xmm6);
-
+
xmm3 = _mm_add_epi8(xmm8, xmm4);
-
+
xmm0 = _mm_shuffle_epi8(xmm0, xmm3);
-
+
_mm_storel_pd((double*)p_target, bit128_p(&xmm0)->double_vec);
-
+
p_target = (__m128i*)((int8_t*)p_target + 8);
}
-
- for(i = (bound << 4) + (intermediate << 3); i < (bound << 4) + (intermediate << 3) + leftovers ; i += 2) {
+
+ for(i = (bound << 4) + (intermediate << 3); i < (bound << 4) + (intermediate << 3) + leftovers ; i += 2) {
target[i>>1] = ((int16_t)(src0[i] - src0[i + 1]) > 0) ? src0[i] : src0[i + 1];
}
-
-}
-
+
+}
+
#endif /*LV_HAVE_SSSE3*/
#ifdef LV_HAVE_GENERIC
static inline void volk_16i_max_star_horizontal_16i_a_generic(int16_t* target, int16_t* src0, unsigned int num_bytes) {
-
+
int i = 0;
-
+
int bound = num_bytes >> 1;
-
+
for(i = 0; i < bound; i += 2) {
target[i >> 1] = ((int16_t) (src0[i] - src0[i + 1]) > 0) ? src0[i] : src0[i+1];
}
-
+
}
diff --git a/volk/include/volk/volk_16i_permute_and_scalar_add_a.h b/volk/include/volk/volk_16i_permute_and_scalar_add_a.h
index de36cee80..47e3cbf9c 100644
--- a/volk/include/volk/volk_16i_permute_and_scalar_add_a.h
+++ b/volk/include/volk/volk_16i_permute_and_scalar_add_a.h
@@ -3,7 +3,7 @@
#include<inttypes.h>
-#include<stdio.h>
+#include<stdio.h>
@@ -14,33 +14,33 @@
#include<emmintrin.h>
static inline void volk_16i_permute_and_scalar_add_a_sse2(short* target, short* src0, short* permute_indexes, short* cntl0, short* cntl1, short* cntl2, short* cntl3, short* scalars, unsigned int num_bytes) {
-
+
__m128i xmm0, xmm1, xmm2, xmm3, xmm4, xmm5, xmm6, xmm7;
__m128i *p_target, *p_cntl0, *p_cntl1, *p_cntl2, *p_cntl3, *p_scalars;
short* p_permute_indexes = permute_indexes;
-
+
p_target = (__m128i*)target;
p_cntl0 = (__m128i*)cntl0;
p_cntl1 = (__m128i*)cntl1;
p_cntl2 = (__m128i*)cntl2;
p_cntl3 = (__m128i*)cntl3;
p_scalars = (__m128i*)scalars;
-
+
int i = 0;
-
+
int bound = (num_bytes >> 4);
int leftovers = (num_bytes >> 1) & 7;
-
+
xmm0 = _mm_load_si128(p_scalars);
-
+
xmm1 = _mm_shufflelo_epi16(xmm0, 0);
xmm2 = _mm_shufflelo_epi16(xmm0, 0x55);
xmm3 = _mm_shufflelo_epi16(xmm0, 0xaa);
xmm4 = _mm_shufflelo_epi16(xmm0, 0xff);
-
+
xmm1 = _mm_shuffle_epi32(xmm1, 0x00);
xmm2 = _mm_shuffle_epi32(xmm2, 0x00);
xmm3 = _mm_shuffle_epi32(xmm3, 0x00);
@@ -64,49 +64,49 @@ static inline void volk_16i_permute_and_scalar_add_a_sse2(short* target, short
xmm0 = _mm_add_epi16(xmm0, xmm5);
xmm6 = _mm_add_epi16(xmm6, xmm7);
-
+
p_permute_indexes += 8;
-
+
xmm0 = _mm_add_epi16(xmm0, xmm6);
-
+
xmm5 = _mm_load_si128(p_cntl0);
xmm6 = _mm_load_si128(p_cntl1);
xmm7 = _mm_load_si128(p_cntl2);
-
+
xmm5 = _mm_and_si128(xmm5, xmm1);
xmm6 = _mm_and_si128(xmm6, xmm2);
xmm7 = _mm_and_si128(xmm7, xmm3);
-
+
xmm0 = _mm_add_epi16(xmm0, xmm5);
-
+
xmm5 = _mm_load_si128(p_cntl3);
-
+
xmm6 = _mm_add_epi16(xmm6, xmm7);
p_cntl0 += 1;
-
+
xmm5 = _mm_and_si128(xmm5, xmm4);
-
+
xmm0 = _mm_add_epi16(xmm0, xmm6);
-
+
p_cntl1 += 1;
p_cntl2 += 1;
-
- xmm0 = _mm_add_epi16(xmm0, xmm5);
-
+
+ xmm0 = _mm_add_epi16(xmm0, xmm5);
+
p_cntl3 += 1;
_mm_store_si128(p_target, xmm0);
-
+
p_target += 1;
}
-
-
-
-
+
+
+
+
for(i = bound * 8; i < (bound * 8) + leftovers; ++i) {
- target[i] = src0[permute_indexes[i]]
+ target[i] = src0[permute_indexes[i]]
+ (cntl0[i] & scalars[0])
+ (cntl1[i] & scalars[1])
+ (cntl2[i] & scalars[2])
@@ -118,18 +118,18 @@ static inline void volk_16i_permute_and_scalar_add_a_sse2(short* target, short
#ifdef LV_HAVE_GENERIC
static inline void volk_16i_permute_and_scalar_add_a_generic(short* target, short* src0, short* permute_indexes, short* cntl0, short* cntl1, short* cntl2, short* cntl3, short* scalars, unsigned int num_bytes) {
-
+
int i = 0;
-
+
int bound = num_bytes >> 1;
for(i = 0; i < bound; ++i) {
- target[i] = src0[permute_indexes[i]]
+ target[i] = src0[permute_indexes[i]]
+ (cntl0[i] & scalars[0])
+ (cntl1[i] & scalars[1])
+ (cntl2[i] & scalars[2])
+ (cntl3[i] & scalars[3]);
-
+
}
}
diff --git a/volk/include/volk/volk_16i_s32f_convert_32f_a.h b/volk/include/volk/volk_16i_s32f_convert_32f_a.h
index 0555fdf00..7108ff659 100644
--- a/volk/include/volk/volk_16i_s32f_convert_32f_a.h
+++ b/volk/include/volk/volk_16i_s32f_convert_32f_a.h
@@ -17,7 +17,7 @@
static inline void volk_16i_s32f_convert_32f_a_sse4_1(float* outputVector, const int16_t* inputVector, const float scalar, unsigned int num_points){
unsigned int number = 0;
const unsigned int eighthPoints = num_points / 8;
-
+
float* outputVectorPtr = outputVector;
__m128 invScalar = _mm_set_ps1(1.0/scalar);
int16_t* inputPtr = (int16_t*)inputVector;
@@ -36,7 +36,7 @@ static inline void volk_16i_s32f_convert_32f_a_sse4_1(float* outputVector, const
// Convert the lower 4 values into 32 bit words
inputVal = _mm_cvtepi16_epi32(inputVal);
inputVal2 = _mm_cvtepi16_epi32(inputVal2);
-
+
ret = _mm_cvtepi32_ps(inputVal);
ret = _mm_mul_ps(ret, invScalar);
_mm_storeu_ps(outputVectorPtr, ret);
@@ -71,7 +71,7 @@ static inline void volk_16i_s32f_convert_32f_a_sse4_1(float* outputVector, const
static inline void volk_16i_s32f_convert_32f_a_sse(float* outputVector, const int16_t* inputVector, const float scalar, unsigned int num_points){
unsigned int number = 0;
const unsigned int quarterPoints = num_points / 4;
-
+
float* outputVectorPtr = outputVector;
__m128 invScalar = _mm_set_ps1(1.0/scalar);
int16_t* inputPtr = (int16_t*)inputVector;
@@ -79,7 +79,7 @@ static inline void volk_16i_s32f_convert_32f_a_sse(float* outputVector, const in
for(;number < quarterPoints; number++){
ret = _mm_set_ps((float)(inputPtr[3]), (float)(inputPtr[2]), (float)(inputPtr[1]), (float)(inputPtr[0]));
-
+
ret = _mm_mul_ps(ret, invScalar);
_mm_storeu_ps(outputVectorPtr, ret);
diff --git a/volk/include/volk/volk_16i_s32f_convert_32f_u.h b/volk/include/volk/volk_16i_s32f_convert_32f_u.h
index d34acc091..4ce8e8f35 100644
--- a/volk/include/volk/volk_16i_s32f_convert_32f_u.h
+++ b/volk/include/volk/volk_16i_s32f_convert_32f_u.h
@@ -18,7 +18,7 @@
static inline void volk_16i_s32f_convert_32f_u_sse4_1(float* outputVector, const int16_t* inputVector, const float scalar, unsigned int num_points){
unsigned int number = 0;
const unsigned int eighthPoints = num_points / 8;
-
+
float* outputVectorPtr = outputVector;
__m128 invScalar = _mm_set_ps1(1.0/scalar);
int16_t* inputPtr = (int16_t*)inputVector;
@@ -37,7 +37,7 @@ static inline void volk_16i_s32f_convert_32f_u_sse4_1(float* outputVector, const
// Convert the lower 4 values into 32 bit words
inputVal = _mm_cvtepi16_epi32(inputVal);
inputVal2 = _mm_cvtepi16_epi32(inputVal2);
-
+
ret = _mm_cvtepi32_ps(inputVal);
ret = _mm_mul_ps(ret, invScalar);
_mm_storeu_ps(outputVectorPtr, ret);
@@ -73,7 +73,7 @@ static inline void volk_16i_s32f_convert_32f_u_sse4_1(float* outputVector, const
static inline void volk_16i_s32f_convert_32f_u_sse(float* outputVector, const int16_t* inputVector, const float scalar, unsigned int num_points){
unsigned int number = 0;
const unsigned int quarterPoints = num_points / 4;
-
+
float* outputVectorPtr = outputVector;
__m128 invScalar = _mm_set_ps1(1.0/scalar);
int16_t* inputPtr = (int16_t*)inputVector;
@@ -81,7 +81,7 @@ static inline void volk_16i_s32f_convert_32f_u_sse(float* outputVector, const in
for(;number < quarterPoints; number++){
ret = _mm_set_ps((float)(inputPtr[3]), (float)(inputPtr[2]), (float)(inputPtr[1]), (float)(inputPtr[0]));
-
+
ret = _mm_mul_ps(ret, invScalar);
_mm_storeu_ps(outputVectorPtr, ret);
diff --git a/volk/include/volk/volk_16i_x4_quad_max_star_16i_a.h b/volk/include/volk/volk_16i_x4_quad_max_star_16i_a.h
index 2688aff04..0d8498553 100644
--- a/volk/include/volk/volk_16i_x4_quad_max_star_16i_a.h
+++ b/volk/include/volk/volk_16i_x4_quad_max_star_16i_a.h
@@ -3,7 +3,7 @@
#include<inttypes.h>
-#include<stdio.h>
+#include<stdio.h>
@@ -14,7 +14,7 @@
#include<emmintrin.h>
static inline void volk_16i_x4_quad_max_star_16i_a_sse2(short* target, short* src0, short* src1, short* src2, short* src3, unsigned int num_bytes) {
-
+
@@ -23,41 +23,41 @@ static inline void volk_16i_x4_quad_max_star_16i_a_sse2(short* target, short* s
int bound = (num_bytes >> 4);
int bound_copy = bound;
int leftovers = (num_bytes >> 1) & 7;
-
+
__m128i *p_target, *p_src0, *p_src1, *p_src2, *p_src3;
p_target = (__m128i*) target;
p_src0 = (__m128i*)src0;
p_src1 = (__m128i*)src1;
p_src2 = (__m128i*)src2;
p_src3 = (__m128i*)src3;
-
-
+
+
__m128i xmm1, xmm2, xmm3, xmm4, xmm5, xmm6, xmm7, xmm8;
while(bound_copy > 0) {
-
+
xmm1 = _mm_load_si128(p_src0);
xmm2 = _mm_load_si128(p_src1);
xmm3 = _mm_load_si128(p_src2);
xmm4 = _mm_load_si128(p_src3);
-
+
xmm5 = _mm_setzero_si128();
xmm6 = _mm_setzero_si128();
xmm7 = xmm1;
xmm8 = xmm3;
-
-
+
+
xmm1 = _mm_sub_epi16(xmm2, xmm1);
-
+
xmm3 = _mm_sub_epi16(xmm4, xmm3);
xmm5 = _mm_cmpgt_epi16(xmm1, xmm5);
xmm6 = _mm_cmpgt_epi16(xmm3, xmm6);
-
+
xmm2 = _mm_and_si128(xmm5, xmm2);
xmm4 = _mm_and_si128(xmm6, xmm4);
@@ -67,7 +67,7 @@ static inline void volk_16i_x4_quad_max_star_16i_a_sse2(short* target, short* s
xmm5 = _mm_add_epi16(xmm2, xmm5);
xmm6 = _mm_add_epi16(xmm4, xmm6);
-
+
xmm1 = _mm_xor_si128(xmm1, xmm1);
xmm2 = xmm5;
xmm5 = _mm_sub_epi16(xmm6, xmm5);
@@ -76,23 +76,23 @@ static inline void volk_16i_x4_quad_max_star_16i_a_sse2(short* target, short* s
xmm1 = _mm_cmpgt_epi16(xmm5, xmm1);
p_src1 += 1;
-
+
xmm6 = _mm_and_si128(xmm1, xmm6);
-
+
xmm1 = _mm_andnot_si128(xmm1, xmm2);
p_src2 += 1;
-
+
xmm1 = _mm_add_epi16(xmm6, xmm1);
p_src3 += 1;
-
+
_mm_store_si128(p_target, xmm1);
p_target += 1;
-
+
}
-
+
/*asm volatile
(
@@ -111,25 +111,25 @@ static inline void volk_16i_x4_quad_max_star_16i_a_sse2(short* target, short* s
"movaps %%xmm3, %%xmm8\n\t"
"psubw %%xmm2, %%xmm1\n\t"
"psubw %%xmm4, %%xmm3\n\t"
-
+
"pcmpgtw %%xmm1, %%xmm5\n\t"
"pcmpgtw %%xmm3, %%xmm6\n\t"
-
+
"pand %%xmm5, %%xmm2\n\t"
"pand %%xmm6, %%xmm4\n\t"
"pandn %%xmm7, %%xmm5\n\t"
"pandn %%xmm8, %%xmm6\n\t"
-
+
"paddw %%xmm2, %%xmm5\n\t"
"paddw %%xmm4, %%xmm6\n\t"
"pxor %%xmm1, %%xmm1\n\t"
"movaps %%xmm5, %%xmm2\n\t"
-
+
"psubw %%xmm6, %%xmm5\n\t"
"add $16, %[src0]\n\t"
"add $-1, %[bound]\n\t"
-
+
"pcmpgtw %%xmm5, %%xmm1\n\t"
"add $16, %[src1]\n\t"
@@ -144,13 +144,13 @@ static inline void volk_16i_x4_quad_max_star_16i_a_sse2(short* target, short* s
"movaps %%xmm1, (%[target])\n\t"
"addw $16, %[target]\n\t"
"jmp volk_16i_x4_quad_max_star_16i_a_sse2_L1\n\t"
-
+
"volk_16i_x4_quad_max_star_16i_a_sse2_END:\n\t"
:
:[bound]"r"(bound), [src0]"r"(src0), [src1]"r"(src1), [src2]"r"(src2), [src3]"r"(src3), [target]"r"(target)
:
);
- */
+ */
short temp0 = 0;
short temp1 = 0;
@@ -169,11 +169,11 @@ static inline void volk_16i_x4_quad_max_star_16i_a_sse2(short* target, short* s
#ifdef LV_HAVE_GENERIC
static inline void volk_16i_x4_quad_max_star_16i_a_generic(short* target, short* src0, short* src1, short* src2, short* src3, unsigned int num_bytes) {
-
+
int i = 0;
-
+
int bound = num_bytes >> 1;
-
+
short temp0 = 0;
short temp1 = 0;
for(i = 0; i < bound; ++i) {
diff --git a/volk/include/volk/volk_16i_x5_add_quad_16i_x4_a.h b/volk/include/volk/volk_16i_x5_add_quad_16i_x4_a.h
index e4c9f17ed..5560b92d9 100644
--- a/volk/include/volk/volk_16i_x5_add_quad_16i_x4_a.h
+++ b/volk/include/volk/volk_16i_x5_add_quad_16i_x4_a.h
@@ -3,7 +3,7 @@
#include<inttypes.h>
-#include<stdio.h>
+#include<stdio.h>
@@ -14,7 +14,7 @@
#include<emmintrin.h>
static inline void volk_16i_x5_add_quad_16i_x4_a_sse2(short* target0, short* target1, short* target2, short* target3, short* src0, short* src1, short* src2, short* src3, short* src4, unsigned int num_bytes) {
-
+
__m128i xmm0, xmm1, xmm2, xmm3, xmm4;
__m128i *p_target0, *p_target1, *p_target2, *p_target3, *p_src0, *p_src1, *p_src2, *p_src3, *p_src4;
p_target0 = (__m128i*)target0;
@@ -39,16 +39,16 @@ static inline void volk_16i_x5_add_quad_16i_x4_a_sse2(short* target0, short* ta
xmm2 = _mm_load_si128(p_src2);
xmm3 = _mm_load_si128(p_src3);
xmm4 = _mm_load_si128(p_src4);
-
+
p_src0 += 1;
p_src1 += 1;
-
+
xmm1 = _mm_add_epi16(xmm0, xmm1);
xmm2 = _mm_add_epi16(xmm0, xmm2);
xmm3 = _mm_add_epi16(xmm0, xmm3);
xmm4 = _mm_add_epi16(xmm0, xmm4);
-
-
+
+
p_src2 += 1;
p_src3 += 1;
p_src4 += 1;
@@ -57,7 +57,7 @@ static inline void volk_16i_x5_add_quad_16i_x4_a_sse2(short* target0, short* ta
_mm_store_si128(p_target1, xmm2);
_mm_store_si128(p_target2, xmm3);
_mm_store_si128(p_target3, xmm4);
-
+
p_target0 += 1;
p_target1 += 1;
p_target2 += 1;
@@ -97,9 +97,9 @@ static inline void volk_16i_x5_add_quad_16i_x4_a_sse2(short* target0, short* ta
:[bound]"r"(bound), [src0]"r"(src0), [src1]"r"(src1), [src2]"r"(src2), [src3]"r"(src3), [src4]"r"(src4), [target0]"r"(target0), [target1]"r"(target1), [target2]"r"(target2), [target3]"r"(target3)
:"xmm1", "xmm2", "xmm3", "xmm4", "xmm5"
);
-
+
*/
-
+
for(i = bound * 8; i < (bound * 8) + leftovers; ++i) {
target0[i] = src0[i] + src1[i];
@@ -114,9 +114,9 @@ static inline void volk_16i_x5_add_quad_16i_x4_a_sse2(short* target0, short* ta
#ifdef LV_HAVE_GENERIC
static inline void volk_16i_x5_add_quad_16i_x4_a_generic(short* target0, short* target1, short* target2, short* target3, short* src0, short* src1, short* src2, short* src3, short* src4, unsigned int num_bytes) {
-
+
int i = 0;
-
+
int bound = num_bytes >> 1;
for(i = 0; i < bound; ++i) {
diff --git a/volk/include/volk/volk_16ic_deinterleave_16i_x2_a.h b/volk/include/volk/volk_16ic_deinterleave_16i_x2_a.h
index cdd60235e..f8aa30874 100644
--- a/volk/include/volk/volk_16ic_deinterleave_16i_x2_a.h
+++ b/volk/include/volk/volk_16ic_deinterleave_16i_x2_a.h
@@ -71,7 +71,7 @@ static inline void volk_16ic_deinterleave_16i_x2_a_sse2(int16_t* iBuffer, int16_
__m128i highMask = _mm_set_epi32(0xFFFFFFFF, 0xFFFFFFFF, 0x0, 0x0);
unsigned int eighthPoints = num_points / 8;
-
+
for(number = 0; number < eighthPoints; number++){
complexVal1 = _mm_load_si128((__m128i*)complexVectorPtr); complexVectorPtr += 8;
complexVal2 = _mm_load_si128((__m128i*)complexVectorPtr); complexVectorPtr += 8;
diff --git a/volk/include/volk/volk_16ic_deinterleave_real_16i_a.h b/volk/include/volk/volk_16ic_deinterleave_real_16i_a.h
index 2b99e068e..bac1f2e4b 100644
--- a/volk/include/volk/volk_16ic_deinterleave_real_16i_a.h
+++ b/volk/include/volk/volk_16ic_deinterleave_real_16i_a.h
@@ -64,7 +64,7 @@ static inline void volk_16ic_deinterleave_real_16i_a_sse2(int16_t* iBuffer, cons
__m128i highMask = _mm_set_epi32(0xFFFFFFFF, 0xFFFFFFFF, 0x0, 0x0);
unsigned int eighthPoints = num_points / 8;
-
+
for(number = 0; number < eighthPoints; number++){
complexVal1 = _mm_load_si128((__m128i*)complexVectorPtr); complexVectorPtr += 8;
complexVal2 = _mm_load_si128((__m128i*)complexVectorPtr); complexVectorPtr += 8;
diff --git a/volk/include/volk/volk_16ic_magnitude_16i_a.h b/volk/include/volk/volk_16ic_magnitude_16i_a.h
index a6951e967..317075e85 100644
--- a/volk/include/volk/volk_16ic_magnitude_16i_a.h
+++ b/volk/include/volk/volk_16ic_magnitude_16i_a.h
@@ -17,7 +17,7 @@
static inline void volk_16ic_magnitude_16i_a_sse3(int16_t* magnitudeVector, const lv_16sc_t* complexVector, unsigned int num_points){
unsigned int number = 0;
const unsigned int quarterPoints = num_points / 4;
-
+
const int16_t* complexVectorPtr = (const int16_t*)complexVector;
int16_t* magnitudeVectorPtr = magnitudeVector;
@@ -35,7 +35,7 @@ static inline void volk_16ic_magnitude_16i_a_sse3(int16_t* magnitudeVector, cons
inputFloatBuffer[1] = (float)(complexVectorPtr[1]);
inputFloatBuffer[2] = (float)(complexVectorPtr[2]);
inputFloatBuffer[3] = (float)(complexVectorPtr[3]);
-
+
inputFloatBuffer[4] = (float)(complexVectorPtr[4]);
inputFloatBuffer[5] = (float)(complexVectorPtr[5]);
inputFloatBuffer[6] = (float)(complexVectorPtr[6]);
@@ -106,7 +106,7 @@ static inline void volk_16ic_magnitude_16i_a_sse(int16_t* magnitudeVector, const
inputFloatBuffer[1] = (float)(complexVectorPtr[1]);
inputFloatBuffer[2] = (float)(complexVectorPtr[2]);
inputFloatBuffer[3] = (float)(complexVectorPtr[3]);
-
+
cplxValue1 = _mm_load_ps(inputFloatBuffer);
complexVectorPtr += 4;
diff --git a/volk/include/volk/volk_16ic_s32f_deinterleave_32f_x2_a.h b/volk/include/volk/volk_16ic_s32f_deinterleave_32f_x2_a.h
index e73d405e0..1300395ff 100644
--- a/volk/include/volk/volk_16ic_s32f_deinterleave_32f_x2_a.h
+++ b/volk/include/volk/volk_16ic_s32f_deinterleave_32f_x2_a.h
@@ -20,7 +20,7 @@ static inline void volk_16ic_s32f_deinterleave_32f_x2_a_sse(float* iBuffer, floa
float* qBufferPtr = qBuffer;
uint64_t number = 0;
- const uint64_t quarterPoints = num_points / 4;
+ const uint64_t quarterPoints = num_points / 4;
__m128 cplxValue1, cplxValue2, iValue, qValue;
__m128 invScalar = _mm_set_ps1(1.0/scalar);
@@ -29,12 +29,12 @@ static inline void volk_16ic_s32f_deinterleave_32f_x2_a_sse(float* iBuffer, floa
__VOLK_ATTR_ALIGNED(16) float floatBuffer[8];
for(;number < quarterPoints; number++){
-
+
floatBuffer[0] = (float)(complexVectorPtr[0]);
floatBuffer[1] = (float)(complexVectorPtr[1]);
floatBuffer[2] = (float)(complexVectorPtr[2]);
floatBuffer[3] = (float)(complexVectorPtr[3]);
-
+
floatBuffer[4] = (float)(complexVectorPtr[4]);
floatBuffer[5] = (float)(complexVectorPtr[5]);
floatBuffer[6] = (float)(complexVectorPtr[6]);
diff --git a/volk/include/volk/volk_16ic_s32f_deinterleave_real_32f_a.h b/volk/include/volk/volk_16ic_s32f_deinterleave_real_32f_a.h
index 1630cb0ed..5e2d82b94 100644
--- a/volk/include/volk/volk_16ic_s32f_deinterleave_real_32f_a.h
+++ b/volk/include/volk/volk_16ic_s32f_deinterleave_real_32f_a.h
@@ -18,7 +18,7 @@ static inline void volk_16ic_s32f_deinterleave_real_32f_a_sse4_1(float* iBuffer,
float* iBufferPtr = iBuffer;
unsigned int number = 0;
- const unsigned int quarterPoints = num_points / 4;
+ const unsigned int quarterPoints = num_points / 4;
__m128 iFloatValue;
@@ -49,7 +49,7 @@ static inline void volk_16ic_s32f_deinterleave_real_32f_a_sse4_1(float* iBuffer,
*iBufferPtr++ = ((float)(*sixteenTComplexVectorPtr++)) * iScalar;
sixteenTComplexVectorPtr++;
}
-
+
}
#endif /* LV_HAVE_SSE4_1 */
@@ -66,7 +66,7 @@ static inline void volk_16ic_s32f_deinterleave_real_32f_a_sse(float* iBuffer, co
float* iBufferPtr = iBuffer;
unsigned int number = 0;
- const unsigned int quarterPoints = num_points / 4;
+ const unsigned int quarterPoints = num_points / 4;
__m128 iValue;
const float iScalar = 1.0/scalar;
@@ -77,7 +77,7 @@ static inline void volk_16ic_s32f_deinterleave_real_32f_a_sse(float* iBuffer, co
for(;number < quarterPoints; number++){
floatBuffer[0] = (float)(*complexVectorPtr); complexVectorPtr += 2;
- floatBuffer[1] = (float)(*complexVectorPtr); complexVectorPtr += 2;
+ floatBuffer[1] = (float)(*complexVectorPtr); complexVectorPtr += 2;
floatBuffer[2] = (float)(*complexVectorPtr); complexVectorPtr += 2;
floatBuffer[3] = (float)(*complexVectorPtr); complexVectorPtr += 2;
@@ -96,7 +96,7 @@ static inline void volk_16ic_s32f_deinterleave_real_32f_a_sse(float* iBuffer, co
*iBufferPtr++ = ((float)(*complexVectorPtr++)) * iScalar;
complexVectorPtr++;
}
-
+
}
#endif /* LV_HAVE_SSE */
diff --git a/volk/include/volk/volk_16ic_s32f_magnitude_32f_a.h b/volk/include/volk/volk_16ic_s32f_magnitude_32f_a.h
index 35406e2cb..d20eea1a7 100644
--- a/volk/include/volk/volk_16ic_s32f_magnitude_32f_a.h
+++ b/volk/include/volk/volk_16ic_s32f_magnitude_32f_a.h
@@ -18,7 +18,7 @@
static inline void volk_16ic_s32f_magnitude_32f_a_sse3(float* magnitudeVector, const lv_16sc_t* complexVector, const float scalar, unsigned int num_points){
unsigned int number = 0;
const unsigned int quarterPoints = num_points / 4;
-
+
const int16_t* complexVectorPtr = (const int16_t*)complexVector;
float* magnitudeVectorPtr = magnitudeVector;
@@ -34,7 +34,7 @@ static inline void volk_16ic_s32f_magnitude_32f_a_sse3(float* magnitudeVector, c
inputFloatBuffer[1] = (float)(complexVectorPtr[1]);
inputFloatBuffer[2] = (float)(complexVectorPtr[2]);
inputFloatBuffer[3] = (float)(complexVectorPtr[3]);
-
+
inputFloatBuffer[4] = (float)(complexVectorPtr[4]);
inputFloatBuffer[5] = (float)(complexVectorPtr[5]);
inputFloatBuffer[6] = (float)(complexVectorPtr[6]);
@@ -56,7 +56,7 @@ static inline void volk_16ic_s32f_magnitude_32f_a_sse3(float* magnitudeVector, c
result = _mm_sqrt_ps(result); // Square root the values
_mm_store_ps(magnitudeVectorPtr, result);
-
+
magnitudeVectorPtr += 4;
}
@@ -99,7 +99,7 @@ static inline void volk_16ic_s32f_magnitude_32f_a_sse(float* magnitudeVector, co
inputFloatBuffer[1] = (float)(complexVectorPtr[1]);
inputFloatBuffer[2] = (float)(complexVectorPtr[2]);
inputFloatBuffer[3] = (float)(complexVectorPtr[3]);
-
+
inputFloatBuffer[4] = (float)(complexVectorPtr[4]);
inputFloatBuffer[5] = (float)(complexVectorPtr[5]);
inputFloatBuffer[6] = (float)(complexVectorPtr[6]);
@@ -107,7 +107,7 @@ static inline void volk_16ic_s32f_magnitude_32f_a_sse(float* magnitudeVector, co
cplxValue1 = _mm_load_ps(&inputFloatBuffer[0]);
cplxValue2 = _mm_load_ps(&inputFloatBuffer[4]);
-
+
re = _mm_shuffle_ps(cplxValue1, cplxValue2, 0x88);
im = _mm_shuffle_ps(cplxValue1, cplxValue2, 0xdd);
@@ -124,7 +124,7 @@ static inline void volk_16ic_s32f_magnitude_32f_a_sse(float* magnitudeVector, co
result = _mm_sqrt_ps(result); // Square root the values
_mm_store_ps(magnitudeVectorPtr, result);
-
+
magnitudeVectorPtr += 4;
}
@@ -138,7 +138,7 @@ static inline void volk_16ic_s32f_magnitude_32f_a_sse(float* magnitudeVector, co
}
}
-
+
#endif /* LV_HAVE_SSE */
#ifdef LV_HAVE_GENERIC
diff --git a/volk/include/volk/volk_16u_byteswap_a.h b/volk/include/volk/volk_16u_byteswap_a.h
index 75c7ef0f3..fc3eb5fa7 100644
--- a/volk/include/volk/volk_16u_byteswap_a.h
+++ b/volk/include/volk/volk_16u_byteswap_a.h
@@ -31,9 +31,9 @@ static inline void volk_16u_byteswap_a_sse2(uint16_t* intsToSwap, unsigned int n
inputPtr += 8;
}
-
+
// Byteswap any remaining points:
- number = eighthPoints*8;
+ number = eighthPoints*8;
for(; number < num_points; number++){
uint16_t outputVal = *inputPtr;
outputVal = (((outputVal >> 8) & 0xff) | ((outputVal << 8) & 0xff00));
diff --git a/volk/include/volk/volk_32f_accumulator_s32f_a.h b/volk/include/volk/volk_32f_accumulator_s32f_a.h
index 7ce0d1c80..78364d0a0 100644
--- a/volk/include/volk/volk_32f_accumulator_s32f_a.h
+++ b/volk/include/volk/volk_32f_accumulator_s32f_a.h
@@ -20,13 +20,13 @@ static inline void volk_32f_accumulator_s32f_a_sse(float* result, const float* i
const float* aPtr = inputBuffer;
__VOLK_ATTR_ALIGNED(16) float tempBuffer[4];
-
+
__m128 accumulator = _mm_setzero_ps();
__m128 aVal = _mm_setzero_ps();
for(;number < quarterPoints; number++){
aVal = _mm_load_ps(aPtr);
- accumulator = _mm_add_ps(accumulator, aVal);
+ accumulator = _mm_add_ps(accumulator, aVal);
aPtr += 4;
}
_mm_store_ps(tempBuffer,accumulator); // Store the results back into the C container
@@ -34,7 +34,7 @@ static inline void volk_32f_accumulator_s32f_a_sse(float* result, const float* i
returnValue += tempBuffer[1];
returnValue += tempBuffer[2];
returnValue += tempBuffer[3];
-
+
number = quarterPoints * 4;
for(;number < num_points; number++){
returnValue += (*aPtr++);
diff --git a/volk/include/volk/volk_32f_convert_64f_a.h b/volk/include/volk/volk_32f_convert_64f_a.h
index dda646409..2c469ac42 100644
--- a/volk/include/volk/volk_32f_convert_64f_a.h
+++ b/volk/include/volk/volk_32f_convert_64f_a.h
@@ -16,7 +16,7 @@ static inline void volk_32f_convert_64f_a_sse2(double* outputVector, const float
unsigned int number = 0;
const unsigned int quarterPoints = num_points / 4;
-
+
const float* inputVectorPtr = (const float*)inputVector;
double* outputVectorPtr = outputVector;
__m128d ret;
@@ -24,7 +24,7 @@ static inline void volk_32f_convert_64f_a_sse2(double* outputVector, const float
for(;number < quarterPoints; number++){
inputVal = _mm_load_ps(inputVectorPtr); inputVectorPtr += 4;
-
+
ret = _mm_cvtps_pd(inputVal);
_mm_store_pd(outputVectorPtr, ret);
@@ -38,7 +38,7 @@ static inline void volk_32f_convert_64f_a_sse2(double* outputVector, const float
outputVectorPtr += 2;
}
- number = quarterPoints * 4;
+ number = quarterPoints * 4;
for(; number < num_points; number++){
outputVector[number] = (double)(inputVector[number]);
}
diff --git a/volk/include/volk/volk_32f_convert_64f_u.h b/volk/include/volk/volk_32f_convert_64f_u.h
index 387baa3b9..10d8a4f6c 100644
--- a/volk/include/volk/volk_32f_convert_64f_u.h
+++ b/volk/include/volk/volk_32f_convert_64f_u.h
@@ -16,7 +16,7 @@ static inline void volk_32f_convert_64f_u_sse2(double* outputVector, const float
unsigned int number = 0;
const unsigned int quarterPoints = num_points / 4;
-
+
const float* inputVectorPtr = (const float*)inputVector;
double* outputVectorPtr = outputVector;
__m128d ret;
@@ -24,7 +24,7 @@ static inline void volk_32f_convert_64f_u_sse2(double* outputVector, const float
for(;number < quarterPoints; number++){
inputVal = _mm_loadu_ps(inputVectorPtr); inputVectorPtr += 4;
-
+
ret = _mm_cvtps_pd(inputVal);
_mm_storeu_pd(outputVectorPtr, ret);
@@ -38,7 +38,7 @@ static inline void volk_32f_convert_64f_u_sse2(double* outputVector, const float
outputVectorPtr += 2;
}
- number = quarterPoints * 4;
+ number = quarterPoints * 4;
for(; number < num_points; number++){
outputVector[number] = (double)(inputVector[number]);
}
diff --git a/volk/include/volk/volk_32f_index_max_16u_a.h b/volk/include/volk/volk_32f_index_max_16u_a.h
index 0c43a5081..b9ca1dd3e 100644
--- a/volk/include/volk/volk_32f_index_max_16u_a.h
+++ b/volk/include/volk/volk_32f_index_max_16u_a.h
@@ -52,7 +52,7 @@ static inline void volk_32f_index_max_16u_a_sse4_1(unsigned int* target, const f
}
number = quarterPoints * 4;
- for(;number < num_points; number++){
+ for(;number < num_points; number++){
if(src0[number] > max){
index = number;
max = src0[number];
@@ -111,7 +111,7 @@ static inline void volk_32f_index_max_16u_a_sse(unsigned int* target, const floa
}
number = quarterPoints * 4;
- for(;number < num_points; number++){
+ for(;number < num_points; number++){
if(src0[number] > max){
index = number;
max = src0[number];
@@ -128,11 +128,11 @@ static inline void volk_32f_index_max_16u_a_generic(unsigned int* target, const
if(num_points > 0){
float max = src0[0];
unsigned int index = 0;
-
- unsigned int i = 1;
-
+
+ unsigned int i = 1;
+
for(; i < num_points; ++i) {
-
+
if(src0[i] > max){
index = i;
max = src0[i];
diff --git a/volk/include/volk/volk_32f_s32f_32f_fm_detect_32f_a.h b/volk/include/volk/volk_32f_s32f_32f_fm_detect_32f_a.h
index b25df75a1..43713f8b5 100644
--- a/volk/include/volk/volk_32f_s32f_32f_fm_detect_32f_a.h
+++ b/volk/include/volk/volk_32f_s32f_32f_fm_detect_32f_a.h
@@ -46,7 +46,7 @@ static inline void volk_32f_s32f_32f_fm_detect_32f_a_sse(float* outputVector, co
inPtr++;
outPtr++;
}
-
+
for (; number < quarterPoints; number++) {
// Load data
next3old1 = _mm_loadu_ps((float*) (inPtr-1));
@@ -65,7 +65,7 @@ static inline void volk_32f_s32f_32f_fm_detect_32f_a_sse(float* outputVector, co
_mm_store_ps(outPtr,next3old1); // Store the results back into the output
outPtr += 4;
}
-
+
for (number = (4 > (quarterPoints*4) ? 4 : (4 * quarterPoints)); number < num_points; number++) {
*outPtr = *(inPtr) - *(inPtr-1);
if (*outPtr > bound) *outPtr -= 2*bound;
@@ -73,7 +73,7 @@ static inline void volk_32f_s32f_32f_fm_detect_32f_a_sse(float* outputVector, co
inPtr++;
outPtr++;
}
-
+
*saveValue = inputVector[num_points-1];
}
#endif /* LV_HAVE_SSE */
@@ -94,14 +94,14 @@ static inline void volk_32f_s32f_32f_fm_detect_32f_a_generic(float* outputVector
unsigned int number = 0;
float* outPtr = outputVector;
const float* inPtr = inputVector;
-
+
// Do the first 1 by hand since we're going in from the saveValue:
*outPtr = *inPtr - *saveValue;
if (*outPtr > bound) *outPtr -= 2*bound;
if (*outPtr < -bound) *outPtr += 2*bound;
inPtr++;
outPtr++;
-
+
for (number = 1; number < num_points; number++) {
*outPtr = *(inPtr) - *(inPtr-1);
if (*outPtr > bound) *outPtr -= 2*bound;
@@ -109,7 +109,7 @@ static inline void volk_32f_s32f_32f_fm_detect_32f_a_generic(float* outputVector
inPtr++;
outPtr++;
}
-
+
*saveValue = inputVector[num_points-1];
}
#endif /* LV_HAVE_GENERIC */
diff --git a/volk/include/volk/volk_32f_s32f_calc_spectral_noise_floor_32f_a.h b/volk/include/volk/volk_32f_s32f_calc_spectral_noise_floor_32f_a.h
index b1902a8c0..db61e359d 100644
--- a/volk/include/volk/volk_32f_s32f_calc_spectral_noise_floor_32f_a.h
+++ b/volk/include/volk/volk_32f_s32f_calc_spectral_noise_floor_32f_a.h
@@ -23,7 +23,7 @@ static inline void volk_32f_s32f_calc_spectral_noise_floor_32f_a_sse(float* nois
const float* dataPointsPtr = realDataPoints;
__VOLK_ATTR_ALIGNED(16) float avgPointsVector[4];
-
+
__m128 dataPointsVal;
__m128 avgPointsVal = _mm_setzero_ps();
// Calculate the sum (for mean) for all points
@@ -73,11 +73,11 @@ static inline void volk_32f_s32f_calc_spectral_noise_floor_32f_a_sse(float* nois
// Mask off the items that exceed the mean amplitude and add the avg Points that do not exceed the mean amplitude
avgPointsVal = _mm_add_ps(avgPointsVal, _mm_and_ps(compareMask, dataPointsVal));
-
+
// Count the number of bins which do not exceed the mean amplitude
vValidBinCount = _mm_add_ps(vValidBinCount, _mm_and_ps(compareMask, vOnesVector));
}
-
+
// Calculate the mean from the remaining data points
_mm_store_ps(avgPointsVector, avgPointsVal);
@@ -104,7 +104,7 @@ static inline void volk_32f_s32f_calc_spectral_noise_floor_32f_a_sse(float* nois
validBinCount += 1.0;
}
}
-
+
float localNoiseFloorAmplitude = 0;
if(validBinCount > 0.0){
localNoiseFloorAmplitude = sumMean / validBinCount;
diff --git a/volk/include/volk/volk_32f_s32f_convert_16i_a.h b/volk/include/volk/volk_32f_s32f_convert_16i_a.h
index a24959678..9df4946f2 100644
--- a/volk/include/volk/volk_32f_s32f_convert_16i_a.h
+++ b/volk/include/volk/volk_32f_s32f_convert_16i_a.h
@@ -19,7 +19,7 @@ static inline void volk_32f_s32f_convert_16i_a_sse2(int16_t* outputVector, const
unsigned int number = 0;
const unsigned int eighthPoints = num_points / 8;
-
+
const float* inputVectorPtr = (const float*)inputVector;
int16_t* outputVectorPtr = outputVector;
@@ -51,7 +51,7 @@ static inline void volk_32f_s32f_convert_16i_a_sse2(int16_t* outputVector, const
outputVectorPtr += 8;
}
- number = eighthPoints * 8;
+ number = eighthPoints * 8;
for(; number < num_points; number++){
r = inputVector[number] * scalar;
if(r > max_val)
@@ -76,7 +76,7 @@ static inline void volk_32f_s32f_convert_16i_a_sse(int16_t* outputVector, const
unsigned int number = 0;
const unsigned int quarterPoints = num_points / 4;
-
+
const float* inputVectorPtr = (const float*)inputVector;
int16_t* outputVectorPtr = outputVector;
@@ -105,7 +105,7 @@ static inline void volk_32f_s32f_convert_16i_a_sse(int16_t* outputVector, const
*outputVectorPtr++ = (int16_t)rintf(outputFloatBuffer[3]);
}
- number = quarterPoints * 4;
+ number = quarterPoints * 4;
for(; number < num_points; number++){
r = inputVector[number] * scalar;
if(r > max_val)
diff --git a/volk/include/volk/volk_32f_s32f_convert_16i_u.h b/volk/include/volk/volk_32f_s32f_convert_16i_u.h
index f58158041..56e42c9bd 100644
--- a/volk/include/volk/volk_32f_s32f_convert_16i_u.h
+++ b/volk/include/volk/volk_32f_s32f_convert_16i_u.h
@@ -19,7 +19,7 @@ static inline void volk_32f_s32f_convert_16i_u_sse2(int16_t* outputVector, const
unsigned int number = 0;
const unsigned int eighthPoints = num_points / 8;
-
+
const float* inputVectorPtr = (const float*)inputVector;
int16_t* outputVectorPtr = outputVector;
@@ -51,7 +51,7 @@ static inline void volk_32f_s32f_convert_16i_u_sse2(int16_t* outputVector, const
outputVectorPtr += 8;
}
- number = eighthPoints * 8;
+ number = eighthPoints * 8;
for(; number < num_points; number++){
r = inputVector[number] * scalar;
if(r > max_val)
@@ -77,7 +77,7 @@ static inline void volk_32f_s32f_convert_16i_u_sse(int16_t* outputVector, const
unsigned int number = 0;
const unsigned int quarterPoints = num_points / 4;
-
+
const float* inputVectorPtr = (const float*)inputVector;
int16_t* outputVectorPtr = outputVector;
@@ -106,7 +106,7 @@ static inline void volk_32f_s32f_convert_16i_u_sse(int16_t* outputVector, const
*outputVectorPtr++ = (int16_t)rintf(outputFloatBuffer[3]);
}
- number = quarterPoints * 4;
+ number = quarterPoints * 4;
for(; number < num_points; number++){
r = inputVector[number] * scalar;
if(r > max_val)
diff --git a/volk/include/volk/volk_32f_s32f_convert_32i_a.h b/volk/include/volk/volk_32f_s32f_convert_32i_a.h
index 15fa282fb..38e6b2e74 100644
--- a/volk/include/volk/volk_32f_s32f_convert_32i_a.h
+++ b/volk/include/volk/volk_32f_s32f_convert_32i_a.h
@@ -18,7 +18,7 @@ static inline void volk_32f_s32f_convert_32i_a_avx(int32_t* outputVector, const
unsigned int number = 0;
const unsigned int eighthPoints = num_points / 8;
-
+
const float* inputVectorPtr = (const float*)inputVector;
int32_t* outputVectorPtr = outputVector;
@@ -42,7 +42,7 @@ static inline void volk_32f_s32f_convert_32i_a_avx(int32_t* outputVector, const
outputVectorPtr += 8;
}
- number = eighthPoints * 8;
+ number = eighthPoints * 8;
for(; number < num_points; number++){
r = inputVector[number] * scalar;
if(r > max_val)
@@ -67,7 +67,7 @@ static inline void volk_32f_s32f_convert_32i_a_sse2(int32_t* outputVector, const
unsigned int number = 0;
const unsigned int quarterPoints = num_points / 4;
-
+
const float* inputVectorPtr = (const float*)inputVector;
int32_t* outputVectorPtr = outputVector;
@@ -91,7 +91,7 @@ static inline void volk_32f_s32f_convert_32i_a_sse2(int32_t* outputVector, const
outputVectorPtr += 4;
}
- number = quarterPoints * 4;
+ number = quarterPoints * 4;
for(; number < num_points; number++){
r = inputVector[number] * scalar;
if(r > max_val)
@@ -116,7 +116,7 @@ static inline void volk_32f_s32f_convert_32i_a_sse(int32_t* outputVector, const
unsigned int number = 0;
const unsigned int quarterPoints = num_points / 4;
-
+
const float* inputVectorPtr = (const float*)inputVector;
int32_t* outputVectorPtr = outputVector;
@@ -144,7 +144,7 @@ static inline void volk_32f_s32f_convert_32i_a_sse(int32_t* outputVector, const
*outputVectorPtr++ = (int32_t)(outputFloatBuffer[3]);
}
- number = quarterPoints * 4;
+ number = quarterPoints * 4;
for(; number < num_points; number++){
r = inputVector[number] * scalar;
if(r > max_val)
diff --git a/volk/include/volk/volk_32f_s32f_convert_32i_u.h b/volk/include/volk/volk_32f_s32f_convert_32i_u.h
index d203546c6..ee15edb46 100644
--- a/volk/include/volk/volk_32f_s32f_convert_32i_u.h
+++ b/volk/include/volk/volk_32f_s32f_convert_32i_u.h
@@ -18,7 +18,7 @@ static inline void volk_32f_s32f_convert_32i_u_sse2(int32_t* outputVector, const
unsigned int number = 0;
const unsigned int quarterPoints = num_points / 4;
-
+
const float* inputVectorPtr = (const float*)inputVector;
int32_t* outputVectorPtr = outputVector;
@@ -42,7 +42,7 @@ static inline void volk_32f_s32f_convert_32i_u_sse2(int32_t* outputVector, const
outputVectorPtr += 4;
}
- number = quarterPoints * 4;
+ number = quarterPoints * 4;
for(; number < num_points; number++){
r = inputVector[number] * scalar;
if(r > max_val)
@@ -68,7 +68,7 @@ static inline void volk_32f_s32f_convert_32i_u_sse(int32_t* outputVector, const
unsigned int number = 0;
const unsigned int quarterPoints = num_points / 4;
-
+
const float* inputVectorPtr = (const float*)inputVector;
int32_t* outputVectorPtr = outputVector;
@@ -96,7 +96,7 @@ static inline void volk_32f_s32f_convert_32i_u_sse(int32_t* outputVector, const
*outputVectorPtr++ = (int32_t)(outputFloatBuffer[3]);
}
- number = quarterPoints * 4;
+ number = quarterPoints * 4;
for(; number < num_points; number++){
r = inputVector[number] * scalar;
if(r > max_val)
diff --git a/volk/include/volk/volk_32f_s32f_convert_8i_a.h b/volk/include/volk/volk_32f_s32f_convert_8i_a.h
index 05172171c..800017d5d 100644
--- a/volk/include/volk/volk_32f_s32f_convert_8i_a.h
+++ b/volk/include/volk/volk_32f_s32f_convert_8i_a.h
@@ -18,7 +18,7 @@ static inline void volk_32f_s32f_convert_8i_a_sse2(int8_t* outputVector, const f
unsigned int number = 0;
const unsigned int sixteenthPoints = num_points / 16;
-
+
const float* inputVectorPtr = (const float*)inputVector;
int8_t* outputVectorPtr = outputVector;
@@ -47,7 +47,7 @@ static inline void volk_32f_s32f_convert_8i_a_sse2(int8_t* outputVector, const f
intInputVal2 = _mm_cvtps_epi32(inputVal2);
intInputVal3 = _mm_cvtps_epi32(inputVal3);
intInputVal4 = _mm_cvtps_epi32(inputVal4);
-
+
intInputVal1 = _mm_packs_epi32(intInputVal1, intInputVal2);
intInputVal3 = _mm_packs_epi32(intInputVal3, intInputVal4);
@@ -57,7 +57,7 @@ static inline void volk_32f_s32f_convert_8i_a_sse2(int8_t* outputVector, const f
outputVectorPtr += 16;
}
- number = sixteenthPoints * 16;
+ number = sixteenthPoints * 16;
for(; number < num_points; number++){
r = inputVector[number] * scalar;
if(r > max_val)
@@ -82,7 +82,7 @@ static inline void volk_32f_s32f_convert_8i_a_sse(int8_t* outputVector, const fl
unsigned int number = 0;
const unsigned int quarterPoints = num_points / 4;
-
+
const float* inputVectorPtr = (const float*)inputVector;
float min_val = -128;
@@ -110,7 +110,7 @@ static inline void volk_32f_s32f_convert_8i_a_sse(int8_t* outputVector, const fl
*outputVectorPtr++ = (int8_t)(outputFloatBuffer[3]);
}
- number = quarterPoints * 4;
+ number = quarterPoints * 4;
for(; number < num_points; number++){
r = inputVector[number] * scalar;
if(r > max_val)
diff --git a/volk/include/volk/volk_32f_s32f_convert_8i_u.h b/volk/include/volk/volk_32f_s32f_convert_8i_u.h
index 12991e9c1..870e9419b 100644
--- a/volk/include/volk/volk_32f_s32f_convert_8i_u.h
+++ b/volk/include/volk/volk_32f_s32f_convert_8i_u.h
@@ -18,7 +18,7 @@ static inline void volk_32f_s32f_convert_8i_u_sse2(int8_t* outputVector, const f
unsigned int number = 0;
const unsigned int sixteenthPoints = num_points / 16;
-
+
const float* inputVectorPtr = (const float*)inputVector;
int8_t* outputVectorPtr = outputVector;
@@ -47,7 +47,7 @@ static inline void volk_32f_s32f_convert_8i_u_sse2(int8_t* outputVector, const f
intInputVal2 = _mm_cvtps_epi32(inputVal2);
intInputVal3 = _mm_cvtps_epi32(inputVal3);
intInputVal4 = _mm_cvtps_epi32(inputVal4);
-
+
intInputVal1 = _mm_packs_epi32(intInputVal1, intInputVal2);
intInputVal3 = _mm_packs_epi32(intInputVal3, intInputVal4);
@@ -57,7 +57,7 @@ static inline void volk_32f_s32f_convert_8i_u_sse2(int8_t* outputVector, const f
outputVectorPtr += 16;
}
- number = sixteenthPoints * 16;
+ number = sixteenthPoints * 16;
for(; number < num_points; number++){
r = inputVector[number] * scalar;
if(r > max_val)
@@ -83,7 +83,7 @@ static inline void volk_32f_s32f_convert_8i_u_sse(int8_t* outputVector, const fl
unsigned int number = 0;
const unsigned int quarterPoints = num_points / 4;
-
+
const float* inputVectorPtr = (const float*)inputVector;
int8_t* outputVectorPtr = outputVector;
@@ -111,7 +111,7 @@ static inline void volk_32f_s32f_convert_8i_u_sse(int8_t* outputVector, const fl
*outputVectorPtr++ = (int8_t)(outputFloatBuffer[3]);
}
- number = quarterPoints * 4;
+ number = quarterPoints * 4;
for(; number < num_points; number++){
r = inputVector[number] * scalar;
if(r > max_val)
diff --git a/volk/include/volk/volk_32f_s32f_multiply_32f_a.h b/volk/include/volk/volk_32f_s32f_multiply_32f_a.h
index d1c6f3f65..99b8e68c5 100644
--- a/volk/include/volk/volk_32f_s32f_multiply_32f_a.h
+++ b/volk/include/volk/volk_32f_s32f_multiply_32f_a.h
@@ -23,11 +23,11 @@ static inline void volk_32f_s32f_multiply_32f_a_sse(float* cVector, const float*
__m128 aVal, bVal, cVal;
bVal = _mm_set_ps1(scalar);
for(;number < quarterPoints; number++){
-
- aVal = _mm_load_ps(aPtr);
-
- cVal = _mm_mul_ps(aVal, bVal);
-
+
+ aVal = _mm_load_ps(aPtr);
+
+ cVal = _mm_mul_ps(aVal, bVal);
+
_mm_store_ps(cPtr,cVal); // Store the results back into the C container
aPtr += 4;
@@ -60,11 +60,11 @@ static inline void volk_32f_s32f_multiply_32f_a_avx(float* cVector, const float*
__m256 aVal, bVal, cVal;
bVal = _mm256_set1_ps(scalar);
for(;number < eighthPoints; number++){
-
- aVal = _mm256_load_ps(aPtr);
-
- cVal = _mm256_mul_ps(aVal, bVal);
-
+
+ aVal = _mm256_load_ps(aPtr);
+
+ cVal = _mm256_mul_ps(aVal, bVal);
+
_mm256_store_ps(cPtr,cVal); // Store the results back into the C container
aPtr += 8;
diff --git a/volk/include/volk/volk_32f_s32f_multiply_32f_u.h b/volk/include/volk/volk_32f_s32f_multiply_32f_u.h
index 0e700060f..b3fae9b05 100644
--- a/volk/include/volk/volk_32f_s32f_multiply_32f_u.h
+++ b/volk/include/volk/volk_32f_s32f_multiply_32f_u.h
@@ -23,11 +23,11 @@ static inline void volk_32f_s32f_multiply_32f_u_sse(float* cVector, const float*
__m128 aVal, bVal, cVal;
bVal = _mm_set_ps1(scalar);
for(;number < quarterPoints; number++){
-
- aVal = _mm_loadu_ps(aPtr);
-
- cVal = _mm_mul_ps(aVal, bVal);
-
+
+ aVal = _mm_loadu_ps(aPtr);
+
+ cVal = _mm_mul_ps(aVal, bVal);
+
_mm_storeu_ps(cPtr,cVal); // Store the results back into the C container
aPtr += 4;
@@ -60,11 +60,11 @@ static inline void volk_32f_s32f_multiply_32f_u_avx(float* cVector, const float*
__m256 aVal, bVal, cVal;
bVal = _mm256_set1_ps(scalar);
for(;number < eighthPoints; number++){
-
- aVal = _mm256_loadu_ps(aPtr);
-
- cVal = _mm256_mul_ps(aVal, bVal);
-
+
+ aVal = _mm256_loadu_ps(aPtr);
+
+ cVal = _mm256_mul_ps(aVal, bVal);
+
_mm256_storeu_ps(cPtr,cVal); // Store the results back into the C container
aPtr += 8;
diff --git a/volk/include/volk/volk_32f_s32f_power_32f_a.h b/volk/include/volk/volk_32f_s32f_power_32f_a.h
index 09c905961..633ad14b0 100644
--- a/volk/include/volk/volk_32f_s32f_power_32f_a.h
+++ b/volk/include/volk/volk_32f_s32f_power_32f_a.h
@@ -21,7 +21,7 @@
*/
static inline void volk_32f_s32f_power_32f_a_sse4_1(float* cVector, const float* aVector, const float power, unsigned int num_points){
unsigned int number = 0;
-
+
float* cPtr = cVector;
const float* aPtr = aVector;
@@ -33,22 +33,22 @@ static inline void volk_32f_s32f_power_32f_a_sse4_1(float* cVector, const float*
__m128 negatedValues;
__m128 negativeOneToPower = _mm_set_ps1(powf(-1, power));
__m128 onesMask = _mm_set_ps1(1);
-
+
__m128 aVal, cVal;
for(;number < quarterPoints; number++){
-
+
aVal = _mm_load_ps(aPtr);
signMask = _mm_cmplt_ps(aVal, zeroValue);
negatedValues = _mm_sub_ps(zeroValue, aVal);
aVal = _mm_blendv_ps(aVal, negatedValues, signMask);
-
+
// powf4 doesn't support negative values in the base, so we mask them off and then apply the negative after
cVal = powf4(aVal, vPower); // Takes each input value to the specified power
cVal = _mm_mul_ps( _mm_blendv_ps(onesMask, negativeOneToPower, signMask), cVal);
_mm_store_ps(cPtr,cVal); // Store the results back into the C container
-
+
aPtr += 4;
cPtr += 4;
}
@@ -78,7 +78,7 @@ static inline void volk_32f_s32f_power_32f_a_sse4_1(float* cVector, const float*
*/
static inline void volk_32f_s32f_power_32f_a_sse(float* cVector, const float* aVector, const float power, unsigned int num_points){
unsigned int number = 0;
-
+
float* cPtr = cVector;
const float* aPtr = aVector;
@@ -90,22 +90,22 @@ static inline void volk_32f_s32f_power_32f_a_sse(float* cVector, const float* aV
__m128 negatedValues;
__m128 negativeOneToPower = _mm_set_ps1(powf(-1, power));
__m128 onesMask = _mm_set_ps1(1);
-
+
__m128 aVal, cVal;
for(;number < quarterPoints; number++){
-
+
aVal = _mm_load_ps(aPtr);
signMask = _mm_cmplt_ps(aVal, zeroValue);
negatedValues = _mm_sub_ps(zeroValue, aVal);
aVal = _mm_or_ps(_mm_andnot_ps(signMask, aVal), _mm_and_ps(signMask, negatedValues) );
-
+
// powf4 doesn't support negative values in the base, so we mask them off and then apply the negative after
cVal = powf4(aVal, vPower); // Takes each input value to the specified power
cVal = _mm_mul_ps( _mm_or_ps( _mm_andnot_ps(signMask, onesMask), _mm_and_ps(signMask, negativeOneToPower) ), cVal);
_mm_store_ps(cPtr,cVal); // Store the results back into the C container
-
+
aPtr += 4;
cPtr += 4;
}
diff --git a/volk/include/volk/volk_32f_s32f_stddev_32f_a.h b/volk/include/volk/volk_32f_s32f_stddev_32f_a.h
index 75fe0cb2e..98401b2d4 100644
--- a/volk/include/volk/volk_32f_s32f_stddev_32f_a.h
+++ b/volk/include/volk/volk_32f_s32f_stddev_32f_a.h
@@ -29,7 +29,7 @@ static inline void volk_32f_s32f_stddev_32f_a_sse4_1(float* stddev, const float*
__m128 aVal1, aVal2, aVal3, aVal4;
__m128 cVal1, cVal2, cVal3, cVal4;
for(;number < sixteenthPoints; number++) {
- aVal1 = _mm_load_ps(aPtr); aPtr += 4;
+ aVal1 = _mm_load_ps(aPtr); aPtr += 4;
cVal1 = _mm_dp_ps(aVal1, aVal1, 0xF1);
aVal2 = _mm_load_ps(aPtr); aPtr += 4;
@@ -47,12 +47,12 @@ static inline void volk_32f_s32f_stddev_32f_a_sse4_1(float* stddev, const float*
squareAccumulator = _mm_add_ps(squareAccumulator, cVal1); // squareAccumulator += x^2
}
- _mm_store_ps(squareBuffer,squareAccumulator); // Store the results back into the C container
+ _mm_store_ps(squareBuffer,squareAccumulator); // Store the results back into the C container
returnValue = squareBuffer[0];
returnValue += squareBuffer[1];
returnValue += squareBuffer[2];
returnValue += squareBuffer[3];
-
+
number = sixteenthPoints * 16;
for(;number < num_points; number++){
returnValue += (*aPtr) * (*aPtr);
@@ -93,12 +93,12 @@ static inline void volk_32f_s32f_stddev_32f_a_sse(float* stddev, const float* in
squareAccumulator = _mm_add_ps(squareAccumulator, aVal);
aPtr += 4;
}
- _mm_store_ps(squareBuffer,squareAccumulator); // Store the results back into the C container
+ _mm_store_ps(squareBuffer,squareAccumulator); // Store the results back into the C container
returnValue = squareBuffer[0];
returnValue += squareBuffer[1];
returnValue += squareBuffer[2];
returnValue += squareBuffer[3];
-
+
number = quarterPoints * 4;
for(;number < num_points; number++){
returnValue += (*aPtr) * (*aPtr);
@@ -125,7 +125,7 @@ static inline void volk_32f_s32f_stddev_32f_a_generic(float* stddev, const float
if(num_points > 0){
const float* aPtr = inputBuffer;
unsigned int number = 0;
-
+
for(number = 0; number < num_points; number++){
returnValue += (*aPtr) * (*aPtr);
aPtr++;
diff --git a/volk/include/volk/volk_32f_sqrt_32f_a.h b/volk/include/volk/volk_32f_sqrt_32f_a.h
index e44c73cfd..d9b16fc0f 100644
--- a/volk/include/volk/volk_32f_sqrt_32f_a.h
+++ b/volk/include/volk/volk_32f_sqrt_32f_a.h
@@ -22,11 +22,11 @@ static inline void volk_32f_sqrt_32f_a_sse(float* cVector, const float* aVector,
__m128 aVal, cVal;
for(;number < quarterPoints; number++){
-
- aVal = _mm_load_ps(aPtr);
-
- cVal = _mm_sqrt_ps(aVal);
-
+
+ aVal = _mm_load_ps(aPtr);
+
+ cVal = _mm_sqrt_ps(aVal);
+
_mm_store_ps(cPtr,cVal); // Store the results back into the C container
aPtr += 4;
diff --git a/volk/include/volk/volk_32f_stddev_and_mean_32f_x2_a.h b/volk/include/volk/volk_32f_stddev_and_mean_32f_x2_a.h
index 20ff676d8..7de32f7b1 100644
--- a/volk/include/volk/volk_32f_stddev_and_mean_32f_x2_a.h
+++ b/volk/include/volk/volk_32f_stddev_and_mean_32f_x2_a.h
@@ -31,7 +31,7 @@ static inline void volk_32f_stddev_and_mean_32f_x2_a_sse4_1(float* stddev, float
__m128 aVal1, aVal2, aVal3, aVal4;
__m128 cVal1, cVal2, cVal3, cVal4;
for(;number < sixteenthPoints; number++) {
- aVal1 = _mm_load_ps(aPtr); aPtr += 4;
+ aVal1 = _mm_load_ps(aPtr); aPtr += 4;
cVal1 = _mm_dp_ps(aVal1, aVal1, 0xF1);
accumulator = _mm_add_ps(accumulator, aVal1); // accumulator += x
@@ -54,7 +54,7 @@ static inline void volk_32f_stddev_and_mean_32f_x2_a_sse4_1(float* stddev, float
squareAccumulator = _mm_add_ps(squareAccumulator, cVal1); // squareAccumulator += x^2
}
_mm_store_ps(meanBuffer,accumulator); // Store the results back into the C container
- _mm_store_ps(squareBuffer,squareAccumulator); // Store the results back into the C container
+ _mm_store_ps(squareBuffer,squareAccumulator); // Store the results back into the C container
newMean = meanBuffer[0];
newMean += meanBuffer[1];
newMean += meanBuffer[2];
@@ -63,7 +63,7 @@ static inline void volk_32f_stddev_and_mean_32f_x2_a_sse4_1(float* stddev, float
returnValue += squareBuffer[1];
returnValue += squareBuffer[2];
returnValue += squareBuffer[3];
-
+
number = sixteenthPoints * 16;
for(;number < num_points; number++){
returnValue += (*aPtr) * (*aPtr);
@@ -110,7 +110,7 @@ static inline void volk_32f_stddev_and_mean_32f_x2_a_sse(float* stddev, float* m
aPtr += 4;
}
_mm_store_ps(meanBuffer,accumulator); // Store the results back into the C container
- _mm_store_ps(squareBuffer,squareAccumulator); // Store the results back into the C container
+ _mm_store_ps(squareBuffer,squareAccumulator); // Store the results back into the C container
newMean = meanBuffer[0];
newMean += meanBuffer[1];
newMean += meanBuffer[2];
@@ -119,7 +119,7 @@ static inline void volk_32f_stddev_and_mean_32f_x2_a_sse(float* stddev, float* m
returnValue += squareBuffer[1];
returnValue += squareBuffer[2];
returnValue += squareBuffer[3];
-
+
number = quarterPoints * 4;
for(;number < num_points; number++){
returnValue += (*aPtr) * (*aPtr);
@@ -149,7 +149,7 @@ static inline void volk_32f_stddev_and_mean_32f_x2_a_generic(float* stddev, floa
if(num_points > 0){
const float* aPtr = inputBuffer;
unsigned int number = 0;
-
+
for(number = 0; number < num_points; number++){
returnValue += (*aPtr) * (*aPtr);
newMean += *aPtr++;
diff --git a/volk/include/volk/volk_32f_x2_add_32f_a.h b/volk/include/volk/volk_32f_x2_add_32f_a.h
index 3bc83653b..51e63e54d 100644
--- a/volk/include/volk/volk_32f_x2_add_32f_a.h
+++ b/volk/include/volk/volk_32f_x2_add_32f_a.h
@@ -23,12 +23,12 @@ static inline void volk_32f_x2_add_32f_a_sse(float* cVector, const float* aVecto
__m128 aVal, bVal, cVal;
for(;number < quarterPoints; number++){
-
- aVal = _mm_load_ps(aPtr);
+
+ aVal = _mm_load_ps(aPtr);
bVal = _mm_load_ps(bPtr);
-
- cVal = _mm_add_ps(aVal, bVal);
-
+
+ cVal = _mm_add_ps(aVal, bVal);
+
_mm_store_ps(cPtr,cVal); // Store the results back into the C container
aPtr += 4;
diff --git a/volk/include/volk/volk_32f_x2_add_32f_u.h b/volk/include/volk/volk_32f_x2_add_32f_u.h
index e360a7958..52e8286bc 100644
--- a/volk/include/volk/volk_32f_x2_add_32f_u.h
+++ b/volk/include/volk/volk_32f_x2_add_32f_u.h
@@ -23,12 +23,12 @@ static inline void volk_32f_x2_add_32f_u_sse(float* cVector, const float* aVecto
__m128 aVal, bVal, cVal;
for(;number < quarterPoints; number++){
-
- aVal = _mm_loadu_ps(aPtr);
+
+ aVal = _mm_loadu_ps(aPtr);
bVal = _mm_loadu_ps(bPtr);
-
- cVal = _mm_add_ps(aVal, bVal);
-
+
+ cVal = _mm_add_ps(aVal, bVal);
+
_mm_storeu_ps(cPtr,cVal); // Store the results back into the C container
aPtr += 4;
diff --git a/volk/include/volk/volk_32f_x2_divide_32f_a.h b/volk/include/volk/volk_32f_x2_divide_32f_a.h
index 52ddfae87..7b60fb22e 100644
--- a/volk/include/volk/volk_32f_x2_divide_32f_a.h
+++ b/volk/include/volk/volk_32f_x2_divide_32f_a.h
@@ -23,12 +23,12 @@ static inline void volk_32f_x2_divide_32f_a_sse(float* cVector, const float* aVe
__m128 aVal, bVal, cVal;
for(;number < quarterPoints; number++){
-
- aVal = _mm_load_ps(aPtr);
+
+ aVal = _mm_load_ps(aPtr);
bVal = _mm_load_ps(bPtr);
-
- cVal = _mm_div_ps(aVal, bVal);
-
+
+ cVal = _mm_div_ps(aVal, bVal);
+
_mm_store_ps(cPtr,cVal); // Store the results back into the C container
aPtr += 4;
diff --git a/volk/include/volk/volk_32f_x2_dot_prod_32f_a.h b/volk/include/volk/volk_32f_x2_dot_prod_32f_a.h
index 0c58f2ecf..448b2fdc0 100644
--- a/volk/include/volk/volk_32f_x2_dot_prod_32f_a.h
+++ b/volk/include/volk/volk_32f_x2_dot_prod_32f_a.h
@@ -18,7 +18,7 @@ static inline void volk_32f_x2_dot_prod_32f_a_generic(float * result, const floa
for(number = 0; number < num_points; number++){
dotProduct += ((*aPtr++) * (*bPtr++));
}
-
+
*result = dotProduct;
}
@@ -29,7 +29,7 @@ static inline void volk_32f_x2_dot_prod_32f_a_generic(float * result, const floa
static inline void volk_32f_x2_dot_prod_32f_a_sse( float* result, const float* input, const float* taps, unsigned int num_points) {
-
+
unsigned int number = 0;
const unsigned int quarterPoints = num_points / 4;
@@ -42,11 +42,11 @@ static inline void volk_32f_x2_dot_prod_32f_a_sse( float* result, const float*
__m128 dotProdVal = _mm_setzero_ps();
for(;number < quarterPoints; number++){
-
- aVal = _mm_load_ps(aPtr);
+
+ aVal = _mm_load_ps(aPtr);
bVal = _mm_load_ps(bPtr);
-
- cVal = _mm_mul_ps(aVal, bVal);
+
+ cVal = _mm_mul_ps(aVal, bVal);
dotProdVal = _mm_add_ps(cVal, dotProdVal);
@@ -69,10 +69,10 @@ static inline void volk_32f_x2_dot_prod_32f_a_sse( float* result, const float*
}
*result = dotProduct;
-
+
}
-#endif /*LV_HAVE_SSE*/
+#endif /*LV_HAVE_SSE*/
#ifdef LV_HAVE_SSE3
@@ -91,11 +91,11 @@ static inline void volk_32f_x2_dot_prod_32f_a_sse3(float * result, const float *
__m128 dotProdVal = _mm_setzero_ps();
for(;number < quarterPoints; number++){
-
- aVal = _mm_load_ps(aPtr);
+
+ aVal = _mm_load_ps(aPtr);
bVal = _mm_load_ps(bPtr);
-
- cVal = _mm_mul_ps(aVal, bVal);
+
+ cVal = _mm_mul_ps(aVal, bVal);
dotProdVal = _mm_hadd_ps(dotProdVal, cVal);
@@ -117,7 +117,7 @@ static inline void volk_32f_x2_dot_prod_32f_a_sse3(float * result, const float *
}
*result = dotProduct;
-}
+}
#endif /*LV_HAVE_SSE3*/
@@ -140,7 +140,7 @@ static inline void volk_32f_x2_dot_prod_32f_a_sse4_1(float * result, const float
__m128 dotProdVal = _mm_setzero_ps();
- for(;number < sixteenthPoints; number++){
+ for(;number < sixteenthPoints; number++){
aVal1 = _mm_load_ps(aPtr); aPtr += 4;
aVal2 = _mm_load_ps(aPtr); aPtr += 4;
@@ -151,7 +151,7 @@ static inline void volk_32f_x2_dot_prod_32f_a_sse4_1(float * result, const float
bVal2 = _mm_load_ps(bPtr); bPtr += 4;
bVal3 = _mm_load_ps(bPtr); bPtr += 4;
bVal4 = _mm_load_ps(bPtr); bPtr += 4;
-
+
cVal1 = _mm_dp_ps(aVal1, bVal1, 0xF1);
cVal2 = _mm_dp_ps(aVal2, bVal2, 0xF2);
cVal3 = _mm_dp_ps(aVal3, bVal3, 0xF4);
@@ -178,7 +178,7 @@ static inline void volk_32f_x2_dot_prod_32f_a_sse4_1(float * result, const float
}
*result = dotProduct;
-}
+}
#endif /*LV_HAVE_SSE4_1*/
diff --git a/volk/include/volk/volk_32f_x2_dot_prod_32f_u.h b/volk/include/volk/volk_32f_x2_dot_prod_32f_u.h
index 7f47122ff..3b7284b57 100644
--- a/volk/include/volk/volk_32f_x2_dot_prod_32f_u.h
+++ b/volk/include/volk/volk_32f_x2_dot_prod_32f_u.h
@@ -17,7 +17,7 @@ static inline void volk_32f_x2_dot_prod_32f_u_generic(float * result, const floa
for(number = 0; number < num_points; number++){
dotProduct += ((*aPtr++) * (*bPtr++));
}
-
+
*result = dotProduct;
}
@@ -28,7 +28,7 @@ static inline void volk_32f_x2_dot_prod_32f_u_generic(float * result, const floa
static inline void volk_32f_x2_dot_prod_32f_u_sse( float* result, const float* input, const float* taps, unsigned int num_points) {
-
+
unsigned int number = 0;
const unsigned int quarterPoints = num_points / 4;
@@ -41,11 +41,11 @@ static inline void volk_32f_x2_dot_prod_32f_u_sse( float* result, const float*
__m128 dotProdVal = _mm_setzero_ps();
for(;number < quarterPoints; number++){
-
- aVal = _mm_loadu_ps(aPtr);
+
+ aVal = _mm_loadu_ps(aPtr);
bVal = _mm_loadu_ps(bPtr);
-
- cVal = _mm_mul_ps(aVal, bVal);
+
+ cVal = _mm_mul_ps(aVal, bVal);
dotProdVal = _mm_add_ps(cVal, dotProdVal);
@@ -68,10 +68,10 @@ static inline void volk_32f_x2_dot_prod_32f_u_sse( float* result, const float*
}
*result = dotProduct;
-
+
}
-#endif /*LV_HAVE_SSE*/
+#endif /*LV_HAVE_SSE*/
#ifdef LV_HAVE_SSE3
@@ -90,11 +90,11 @@ static inline void volk_32f_x2_dot_prod_32f_u_sse3(float * result, const float *
__m128 dotProdVal = _mm_setzero_ps();
for(;number < quarterPoints; number++){
-
- aVal = _mm_loadu_ps(aPtr);
+
+ aVal = _mm_loadu_ps(aPtr);
bVal = _mm_loadu_ps(bPtr);
-
- cVal = _mm_mul_ps(aVal, bVal);
+
+ cVal = _mm_mul_ps(aVal, bVal);
dotProdVal = _mm_hadd_ps(dotProdVal, cVal);
@@ -116,7 +116,7 @@ static inline void volk_32f_x2_dot_prod_32f_u_sse3(float * result, const float *
}
*result = dotProduct;
-}
+}
#endif /*LV_HAVE_SSE3*/
@@ -140,7 +140,7 @@ static inline void volk_32f_x2_dot_prod_32f_u_sse4_1(float * result, const float
__m128 dotProdVal = _mm_setzero_ps();
for(;number < sixteenthPoints; number++){
-
+
aVal1 = _mm_loadu_ps(aPtr); aPtr += 4;
aVal2 = _mm_loadu_ps(aPtr); aPtr += 4;
aVal3 = _mm_loadu_ps(aPtr); aPtr += 4;
@@ -150,7 +150,7 @@ static inline void volk_32f_x2_dot_prod_32f_u_sse4_1(float * result, const float
bVal2 = _mm_loadu_ps(bPtr); bPtr += 4;
bVal3 = _mm_loadu_ps(bPtr); bPtr += 4;
bVal4 = _mm_loadu_ps(bPtr); bPtr += 4;
-
+
cVal1 = _mm_dp_ps(aVal1, bVal1, 0xF1);
cVal2 = _mm_dp_ps(aVal2, bVal2, 0xF2);
cVal3 = _mm_dp_ps(aVal3, bVal3, 0xF4);
@@ -177,7 +177,7 @@ static inline void volk_32f_x2_dot_prod_32f_u_sse4_1(float * result, const float
}
*result = dotProduct;
-}
+}
#endif /*LV_HAVE_SSE4_1*/
diff --git a/volk/include/volk/volk_32f_x2_interleave_32fc_a.h b/volk/include/volk/volk_32f_x2_interleave_32fc_a.h
index 1d4d2dbbd..52d80b6bb 100644
--- a/volk/include/volk/volk_32f_x2_interleave_32fc_a.h
+++ b/volk/include/volk/volk_32f_x2_interleave_32fc_a.h
@@ -20,7 +20,7 @@ static inline void volk_32f_x2_interleave_32fc_a_sse(lv_32fc_t* complexVector, c
const float* qBufferPtr = qBuffer;
const uint64_t quarterPoints = num_points / 4;
-
+
__m128 iValue, qValue, cplxValue;
for(;number < quarterPoints; number++){
iValue = _mm_load_ps(iBufferPtr);
diff --git a/volk/include/volk/volk_32f_x2_max_32f_a.h b/volk/include/volk/volk_32f_x2_max_32f_a.h
index 7948c458d..79f2d04b5 100644
--- a/volk/include/volk/volk_32f_x2_max_32f_a.h
+++ b/volk/include/volk/volk_32f_x2_max_32f_a.h
@@ -23,12 +23,12 @@ static inline void volk_32f_x2_max_32f_a_sse(float* cVector, const float* aVecto
__m128 aVal, bVal, cVal;
for(;number < quarterPoints; number++){
-
- aVal = _mm_load_ps(aPtr);
+
+ aVal = _mm_load_ps(aPtr);
bVal = _mm_load_ps(bPtr);
-
- cVal = _mm_max_ps(aVal, bVal);
-
+
+ cVal = _mm_max_ps(aVal, bVal);
+
_mm_store_ps(cPtr,cVal); // Store the results back into the C container
aPtr += 4;
diff --git a/volk/include/volk/volk_32f_x2_min_32f_a.h b/volk/include/volk/volk_32f_x2_min_32f_a.h
index d77134868..42cac0833 100644
--- a/volk/include/volk/volk_32f_x2_min_32f_a.h
+++ b/volk/include/volk/volk_32f_x2_min_32f_a.h
@@ -23,12 +23,12 @@ static inline void volk_32f_x2_min_32f_a_sse(float* cVector, const float* aVecto
__m128 aVal, bVal, cVal;
for(;number < quarterPoints; number++){
-
- aVal = _mm_load_ps(aPtr);
+
+ aVal = _mm_load_ps(aPtr);
bVal = _mm_load_ps(bPtr);
-
- cVal = _mm_min_ps(aVal, bVal);
-
+
+ cVal = _mm_min_ps(aVal, bVal);
+
_mm_store_ps(cPtr,cVal); // Store the results back into the C container
aPtr += 4;
diff --git a/volk/include/volk/volk_32f_x2_multiply_32f_a.h b/volk/include/volk/volk_32f_x2_multiply_32f_a.h
index fae9a652f..340e05165 100644
--- a/volk/include/volk/volk_32f_x2_multiply_32f_a.h
+++ b/volk/include/volk/volk_32f_x2_multiply_32f_a.h
@@ -23,12 +23,12 @@ static inline void volk_32f_x2_multiply_32f_a_sse(float* cVector, const float* a
__m128 aVal, bVal, cVal;
for(;number < quarterPoints; number++){
-
- aVal = _mm_load_ps(aPtr);
+
+ aVal = _mm_load_ps(aPtr);
bVal = _mm_load_ps(bPtr);
-
- cVal = _mm_mul_ps(aVal, bVal);
-
+
+ cVal = _mm_mul_ps(aVal, bVal);
+
_mm_store_ps(cPtr,cVal); // Store the results back into the C container
aPtr += 4;
@@ -62,12 +62,12 @@ static inline void volk_32f_x2_multiply_32f_a_avx(float* cVector, const float* a
__m256 aVal, bVal, cVal;
for(;number < eighthPoints; number++){
-
- aVal = _mm256_load_ps(aPtr);
+
+ aVal = _mm256_load_ps(aPtr);
bVal = _mm256_load_ps(bPtr);
-
- cVal = _mm256_mul_ps(aVal, bVal);
-
+
+ cVal = _mm256_mul_ps(aVal, bVal);
+
_mm256_store_ps(cPtr,cVal); // Store the results back into the C container
aPtr += 8;
diff --git a/volk/include/volk/volk_32f_x2_multiply_32f_u.h b/volk/include/volk/volk_32f_x2_multiply_32f_u.h
index 6c3ce5d83..bfb896d60 100644
--- a/volk/include/volk/volk_32f_x2_multiply_32f_u.h
+++ b/volk/include/volk/volk_32f_x2_multiply_32f_u.h
@@ -23,12 +23,12 @@ static inline void volk_32f_x2_multiply_32f_u_sse(float* cVector, const float* a
__m128 aVal, bVal, cVal;
for(;number < quarterPoints; number++){
-
- aVal = _mm_loadu_ps(aPtr);
+
+ aVal = _mm_loadu_ps(aPtr);
bVal = _mm_loadu_ps(bPtr);
-
- cVal = _mm_mul_ps(aVal, bVal);
-
+
+ cVal = _mm_mul_ps(aVal, bVal);
+
_mm_storeu_ps(cPtr,cVal); // Store the results back into the C container
aPtr += 4;
@@ -62,12 +62,12 @@ static inline void volk_32f_x2_multiply_32f_u_avx(float* cVector, const float* a
__m256 aVal, bVal, cVal;
for(;number < eighthPoints; number++){
-
- aVal = _mm256_loadu_ps(aPtr);
+
+ aVal = _mm256_loadu_ps(aPtr);
bVal = _mm256_loadu_ps(bPtr);
-
- cVal = _mm256_mul_ps(aVal, bVal);
-
+
+ cVal = _mm256_mul_ps(aVal, bVal);
+
_mm256_storeu_ps(cPtr,cVal); // Store the results back into the C container
aPtr += 8;
diff --git a/volk/include/volk/volk_32f_x2_s32f_interleave_16ic_a.h b/volk/include/volk/volk_32f_x2_s32f_interleave_16ic_a.h
index cc02c3678..10fc267dc 100644
--- a/volk/include/volk/volk_32f_x2_s32f_interleave_16ic_a.h
+++ b/volk/include/volk/volk_32f_x2_s32f_interleave_16ic_a.h
@@ -23,7 +23,7 @@ static inline void volk_32f_x2_s32f_interleave_16ic_a_sse2(lv_16sc_t* complexVec
__m128 vScalar = _mm_set_ps1(scalar);
const unsigned int quarterPoints = num_points / 4;
-
+
__m128 iValue, qValue, cplxValue1, cplxValue2;
__m128i intValue1, intValue2;
@@ -59,7 +59,7 @@ static inline void volk_32f_x2_s32f_interleave_16ic_a_sse2(lv_16sc_t* complexVec
*complexVectorPtr++ = (int16_t)(*iBufferPtr++ * scalar);
*complexVectorPtr++ = (int16_t)(*qBufferPtr++ * scalar);
}
-
+
}
#endif /* LV_HAVE_SSE2 */
@@ -81,7 +81,7 @@ static inline void volk_32f_x2_s32f_interleave_16ic_a_sse(lv_16sc_t* complexVect
__m128 vScalar = _mm_set_ps1(scalar);
const unsigned int quarterPoints = num_points / 4;
-
+
__m128 iValue, qValue, cplxValue;
int16_t* complexVectorPtr = (int16_t*)complexVector;
@@ -106,9 +106,9 @@ static inline void volk_32f_x2_s32f_interleave_16ic_a_sse(lv_16sc_t* complexVect
// Interleaves the upper two values in the i and q variables into one buffer
cplxValue = _mm_unpackhi_ps(iValue, qValue);
cplxValue = _mm_mul_ps(cplxValue, vScalar);
-
+
_mm_store_ps(floatBuffer, cplxValue);
-
+
*complexVectorPtr++ = (int16_t)(floatBuffer[0]);
*complexVectorPtr++ = (int16_t)(floatBuffer[1]);
*complexVectorPtr++ = (int16_t)(floatBuffer[2]);
@@ -124,7 +124,7 @@ static inline void volk_32f_x2_s32f_interleave_16ic_a_sse(lv_16sc_t* complexVect
*complexVectorPtr++ = (int16_t)(*iBufferPtr++ * scalar);
*complexVectorPtr++ = (int16_t)(*qBufferPtr++ * scalar);
}
-
+
}
#endif /* LV_HAVE_SSE */
diff --git a/volk/include/volk/volk_32f_x2_subtract_32f_a.h b/volk/include/volk/volk_32f_x2_subtract_32f_a.h
index 16cad008a..e2b8be797 100644
--- a/volk/include/volk/volk_32f_x2_subtract_32f_a.h
+++ b/volk/include/volk/volk_32f_x2_subtract_32f_a.h
@@ -23,12 +23,12 @@ static inline void volk_32f_x2_subtract_32f_a_sse(float* cVector, const float* a
__m128 aVal, bVal, cVal;
for(;number < quarterPoints; number++){
-
- aVal = _mm_load_ps(aPtr);
+
+ aVal = _mm_load_ps(aPtr);
bVal = _mm_load_ps(bPtr);
-
- cVal = _mm_sub_ps(aVal, bVal);
-
+
+ cVal = _mm_sub_ps(aVal, bVal);
+
_mm_store_ps(cPtr,cVal); // Store the results back into the C container
aPtr += 4;
diff --git a/volk/include/volk/volk_32f_x3_sum_of_poly_32f_a.h b/volk/include/volk/volk_32f_x3_sum_of_poly_32f_a.h
index 153bb3a25..3c530628c 100644
--- a/volk/include/volk/volk_32f_x3_sum_of_poly_32f_a.h
+++ b/volk/include/volk/volk_32f_x3_sum_of_poly_32f_a.h
@@ -14,33 +14,33 @@
#include<pmmintrin.h>
static inline void volk_32f_x3_sum_of_poly_32f_a_sse3(float* target, float* src0, float* center_point_array, float* cutoff, unsigned int num_bytes) {
-
-
+
+
float result = 0.0;
float fst = 0.0;
float sq = 0.0;
float thrd = 0.0;
float frth = 0.0;
//float fith = 0.0;
-
-
-
+
+
+
__m128 xmm0, xmm1, xmm2, xmm3, xmm4, xmm5, xmm6, xmm7, xmm8, xmm9, xmm10;// xmm11, xmm12;
xmm9 = _mm_setzero_ps();
xmm1 = _mm_setzero_ps();
-
+
xmm0 = _mm_load1_ps(&center_point_array[0]);
xmm6 = _mm_load1_ps(&center_point_array[1]);
xmm7 = _mm_load1_ps(&center_point_array[2]);
xmm8 = _mm_load1_ps(&center_point_array[3]);
//xmm11 = _mm_load1_ps(&center_point_array[4]);
xmm10 = _mm_load1_ps(cutoff);
-
+
int bound = num_bytes >> 4;
int leftovers = (num_bytes >> 2) & 3;
int i = 0;
-
+
for(; i < bound; ++i) {
xmm2 = _mm_load_ps(src0);
xmm2 = _mm_max_ps(xmm10, xmm2);
@@ -57,23 +57,23 @@ static inline void volk_32f_x3_sum_of_poly_32f_a_sse3(float* target, float* src0
xmm2 = _mm_add_ps(xmm2, xmm3);
xmm3 = _mm_add_ps(xmm4, xmm5);
-
+
src0 += 4;
-
+
xmm9 = _mm_add_ps(xmm2, xmm9);
-
+
xmm1 = _mm_add_ps(xmm3, xmm1);
//xmm9 = _mm_add_ps(xmm12, xmm9);
}
-
+
xmm2 = _mm_hadd_ps(xmm9, xmm1);
xmm3 = _mm_hadd_ps(xmm2, xmm2);
xmm4 = _mm_hadd_ps(xmm3, xmm3);
_mm_store_ss(&result, xmm4);
-
-
+
+
for(i = 0; i < leftovers; ++i) {
fst = src0[i];
@@ -82,11 +82,11 @@ static inline void volk_32f_x3_sum_of_poly_32f_a_sse3(float* target, float* src0
thrd = fst * sq;
frth = sq * sq;
//fith = sq * thrd;
-
- result += (center_point_array[0] * fst +
- center_point_array[1] * sq +
- center_point_array[2] * thrd +
- center_point_array[3] * frth);// +
+
+ result += (center_point_array[0] * fst +
+ center_point_array[1] * sq +
+ center_point_array[2] * thrd +
+ center_point_array[3] * frth);// +
//center_point_array[4] * fith);
}
@@ -94,7 +94,7 @@ static inline void volk_32f_x3_sum_of_poly_32f_a_sse3(float* target, float* src0
target[0] = result;
}
-
+
#endif /*LV_HAVE_SSE3*/
@@ -103,45 +103,45 @@ static inline void volk_32f_x3_sum_of_poly_32f_a_sse3(float* target, float* src0
static inline void volk_32f_x3_sum_of_poly_32f_a_generic(float* target, float* src0, float* center_point_array, float* cutoff, unsigned int num_bytes) {
-
+
float result = 0.0;
float fst = 0.0;
float sq = 0.0;
float thrd = 0.0;
float frth = 0.0;
//float fith = 0.0;
-
- unsigned int i = 0;
-
+
+ unsigned int i = 0;
+
for(; i < num_bytes >> 2; ++i) {
fst = src0[i];
fst = MAX(fst, *cutoff);
-
+
sq = fst * fst;
thrd = fst * sq;
frth = sq * sq;
//fith = sq * thrd;
-
- result += (center_point_array[0] * fst +
- center_point_array[1] * sq +
- center_point_array[2] * thrd +
+
+ result += (center_point_array[0] * fst +
+ center_point_array[1] * sq +
+ center_point_array[2] * thrd +
center_point_array[3] * frth); //+
//center_point_array[4] * fith);
- /*printf("%f12...%d\n", (center_point_array[0] * fst +
- center_point_array[1] * sq +
- center_point_array[2] * thrd +
+ /*printf("%f12...%d\n", (center_point_array[0] * fst +
+ center_point_array[1] * sq +
+ center_point_array[2] * thrd +
center_point_array[3] * frth) +
- //center_point_array[4] * fith) +
+ //center_point_array[4] * fith) +
(center_point_array[4]), i);
*/
}
result += ((float)(num_bytes >> 2)) * (center_point_array[4]);//(center_point_array[5]);
-
-
+
+
*target = result;
}
diff --git a/volk/include/volk/volk_32fc_32f_multiply_32fc_a.h b/volk/include/volk/volk_32fc_32f_multiply_32fc_a.h
index b7350b9fa..28d584bf2 100644
--- a/volk/include/volk/volk_32fc_32f_multiply_32fc_a.h
+++ b/volk/include/volk/volk_32fc_32f_multiply_32fc_a.h
@@ -23,11 +23,11 @@ static inline void volk_32fc_32f_multiply_32fc_a_sse(lv_32fc_t* cVector, const l
__m128 aVal1, aVal2, bVal, bVal1, bVal2, cVal;
for(;number < quarterPoints; number++){
-
+
aVal1 = _mm_load_ps((const float*)aPtr);
aPtr += 2;
-
- aVal2 = _mm_load_ps((const float*)aPtr);
+
+ aVal2 = _mm_load_ps((const float*)aPtr);
aPtr += 2;
bVal = _mm_load_ps(bPtr);
@@ -36,13 +36,13 @@ static inline void volk_32fc_32f_multiply_32fc_a_sse(lv_32fc_t* cVector, const l
bVal1 = _mm_shuffle_ps(bVal, bVal, _MM_SHUFFLE(1,1,0,0));
bVal2 = _mm_shuffle_ps(bVal, bVal, _MM_SHUFFLE(3,3,2,2));
- cVal = _mm_mul_ps(aVal1, bVal1);
-
+ cVal = _mm_mul_ps(aVal1, bVal1);
+
_mm_store_ps((float*)cPtr,cVal); // Store the results back into the C container
cPtr += 2;
- cVal = _mm_mul_ps(aVal2, bVal2);
-
+ cVal = _mm_mul_ps(aVal2, bVal2);
+
_mm_store_ps((float*)cPtr,cVal); // Store the results back into the C container
cPtr += 2;
@@ -69,7 +69,7 @@ static inline void volk_32fc_32f_multiply_32fc_a_generic(lv_32fc_t* cVector, con
const lv_32fc_t* aPtr = aVector;
const float* bPtr= bVector;
unsigned int number = 0;
-
+
for(number = 0; number < num_points; number++){
*cPtr++ = (*aPtr++) * (*bPtr++);
}
diff --git a/volk/include/volk/volk_32fc_conjugate_32fc_a.h b/volk/include/volk/volk_32fc_conjugate_32fc_a.h
index 1518af9be..919280d51 100644
--- a/volk/include/volk/volk_32fc_conjugate_32fc_a.h
+++ b/volk/include/volk/volk_32fc_conjugate_32fc_a.h
@@ -25,11 +25,11 @@ static inline void volk_32fc_conjugate_32fc_a_sse3(lv_32fc_t* cVector, const lv_
__m128 conjugator = _mm_setr_ps(0, -0.f, 0, -0.f);
for(;number < halfPoints; number++){
-
+
x = _mm_load_ps((float*)a); // Load the complex data as ar,ai,br,bi
x = _mm_xor_ps(x, conjugator); // conjugate register
-
+
_mm_store_ps((float*)c,x); // Store the results back into the C container
a += 2;
diff --git a/volk/include/volk/volk_32fc_conjugate_32fc_u.h b/volk/include/volk/volk_32fc_conjugate_32fc_u.h
index b26fe0789..e0d79ea7b 100644
--- a/volk/include/volk/volk_32fc_conjugate_32fc_u.h
+++ b/volk/include/volk/volk_32fc_conjugate_32fc_u.h
@@ -21,13 +21,13 @@ static inline void volk_32fc_conjugate_32fc_u_sse3(lv_32fc_t* cVector, const lv_
__m128 x;
lv_32fc_t* c = cVector;
const lv_32fc_t* a = aVector;
-
+
__m128 conjugator = _mm_setr_ps(0, -0.f, 0, -0.f);
for(;number < halfPoints; number++){
-
+
x = _mm_loadu_ps((float*)a); // Load the complex data as ar,ai,br,bi
-
+
x = _mm_xor_ps(x, conjugator); // conjugate register
_mm_storeu_ps((float*)c,x); // Store the results back into the C container
diff --git a/volk/include/volk/volk_32fc_deinterleave_32f_x2_a.h b/volk/include/volk/volk_32fc_deinterleave_32f_x2_a.h
index 9de036ef4..4106f3851 100644
--- a/volk/include/volk/volk_32fc_deinterleave_32f_x2_a.h
+++ b/volk/include/volk/volk_32fc_deinterleave_32f_x2_a.h
@@ -19,10 +19,10 @@ static inline void volk_32fc_deinterleave_32f_x2_a_sse(float* iBuffer, float* qB
float* qBufferPtr = qBuffer;
unsigned int number = 0;
- const unsigned int quarterPoints = num_points / 4;
+ const unsigned int quarterPoints = num_points / 4;
__m128 cplxValue1, cplxValue2, iValue, qValue;
for(;number < quarterPoints; number++){
-
+
cplxValue1 = _mm_load_ps(complexVectorPtr);
complexVectorPtr += 4;
diff --git a/volk/include/volk/volk_32fc_deinterleave_64f_x2_a.h b/volk/include/volk/volk_32fc_deinterleave_64f_x2_a.h
index 29c369d9a..77566e671 100644
--- a/volk/include/volk/volk_32fc_deinterleave_64f_x2_a.h
+++ b/volk/include/volk/volk_32fc_deinterleave_64f_x2_a.h
@@ -20,23 +20,23 @@ static inline void volk_32fc_deinterleave_64f_x2_a_sse2(double* iBuffer, double*
double* iBufferPtr = iBuffer;
double* qBufferPtr = qBuffer;
- const unsigned int halfPoints = num_points / 2;
+ const unsigned int halfPoints = num_points / 2;
__m128 cplxValue, fVal;
__m128d dVal;
for(;number < halfPoints; number++){
-
+
cplxValue = _mm_load_ps(complexVectorPtr);
complexVectorPtr += 4;
// Arrange in i1i2i1i2 format
fVal = _mm_shuffle_ps(cplxValue, cplxValue, _MM_SHUFFLE(2,0,2,0));
- dVal = _mm_cvtps_pd(fVal);
+ dVal = _mm_cvtps_pd(fVal);
_mm_store_pd(iBufferPtr, dVal);
// Arrange in q1q2q1q2 format
fVal = _mm_shuffle_ps(cplxValue, cplxValue, _MM_SHUFFLE(3,1,3,1));
- dVal = _mm_cvtps_pd(fVal);
+ dVal = _mm_cvtps_pd(fVal);
_mm_store_pd(qBufferPtr, dVal);
iBufferPtr += 2;
diff --git a/volk/include/volk/volk_32fc_deinterleave_imag_32f_a.h b/volk/include/volk/volk_32fc_deinterleave_imag_32f_a.h
index adc4112b9..c88809beb 100644
--- a/volk/include/volk/volk_32fc_deinterleave_imag_32f_a.h
+++ b/volk/include/volk/volk_32fc_deinterleave_imag_32f_a.h
@@ -21,7 +21,7 @@ static inline void volk_32fc_deinterleave_imag_32f_a_sse(float* qBuffer, const l
__m128 cplxValue1, cplxValue2, iValue;
for(;number < quarterPoints; number++){
-
+
cplxValue1 = _mm_load_ps(complexVectorPtr);
complexVectorPtr += 4;
diff --git a/volk/include/volk/volk_32fc_deinterleave_real_32f_a.h b/volk/include/volk/volk_32fc_deinterleave_real_32f_a.h
index a1d0fd5d1..0d6c6b7af 100644
--- a/volk/include/volk/volk_32fc_deinterleave_real_32f_a.h
+++ b/volk/include/volk/volk_32fc_deinterleave_real_32f_a.h
@@ -21,7 +21,7 @@ static inline void volk_32fc_deinterleave_real_32f_a_sse(float* iBuffer, const l
__m128 cplxValue1, cplxValue2, iValue;
for(;number < quarterPoints; number++){
-
+
cplxValue1 = _mm_load_ps(complexVectorPtr);
complexVectorPtr += 4;
diff --git a/volk/include/volk/volk_32fc_deinterleave_real_64f_a.h b/volk/include/volk/volk_32fc_deinterleave_real_64f_a.h
index 70a3b1971..1e346baca 100644
--- a/volk/include/volk/volk_32fc_deinterleave_real_64f_a.h
+++ b/volk/include/volk/volk_32fc_deinterleave_real_64f_a.h
@@ -18,17 +18,17 @@ static inline void volk_32fc_deinterleave_real_64f_a_sse2(double* iBuffer, const
const float* complexVectorPtr = (float*)complexVector;
double* iBufferPtr = iBuffer;
- const unsigned int halfPoints = num_points / 2;
+ const unsigned int halfPoints = num_points / 2;
__m128 cplxValue, fVal;
__m128d dVal;
for(;number < halfPoints; number++){
-
+
cplxValue = _mm_load_ps(complexVectorPtr);
complexVectorPtr += 4;
// Arrange in i1i2i1i2 format
fVal = _mm_shuffle_ps(cplxValue, cplxValue, _MM_SHUFFLE(2,0,2,0));
- dVal = _mm_cvtps_pd(fVal);
+ dVal = _mm_cvtps_pd(fVal);
_mm_store_pd(iBufferPtr, dVal);
iBufferPtr += 2;
diff --git a/volk/include/volk/volk_32fc_index_max_16u_a.h b/volk/include/volk/volk_32fc_index_max_16u_a.h
index 125a34582..842a6a042 100644
--- a/volk/include/volk/volk_32fc_index_max_16u_a.h
+++ b/volk/include/volk/volk_32fc_index_max_16u_a.h
@@ -12,16 +12,16 @@
static inline void volk_32fc_index_max_16u_a_sse3(unsigned int* target, lv_32fc_t* src0, unsigned int num_bytes) {
-
-
-
+
+
+
union bit128 holderf;
union bit128 holderi;
float sq_dist = 0.0;
-
+
union bit128 xmm5, xmm4;
__m128 xmm1, xmm2, xmm3;
__m128i xmm8, xmm11, xmm12, xmmfive, xmmfour, xmm9, holder0, holder1, xmm10;
@@ -30,63 +30,63 @@ static inline void volk_32fc_index_max_16u_a_sse3(unsigned int* target, lv_32fc_
xmm4.int_vec = xmmfour = _mm_setzero_si128();
holderf.int_vec = holder0 = _mm_setzero_si128();
holderi.int_vec = holder1 = _mm_setzero_si128();
-
-
+
+
int bound = num_bytes >> 5;
int leftovers0 = (num_bytes >> 4) & 1;
int leftovers1 = (num_bytes >> 3) & 1;
int i = 0;
-
-
+
+
xmm8 = _mm_set_epi32(3, 2, 1, 0);//remember the crazy reverse order!
xmm9 = xmm8 = _mm_setzero_si128();
xmm10 = _mm_set_epi32(4, 4, 4, 4);
xmm3 = _mm_setzero_ps();
;
-
+
//printf("%f, %f, %f, %f\n", ((float*)&xmm10)[0], ((float*)&xmm10)[1], ((float*)&xmm10)[2], ((float*)&xmm10)[3]);
-
+
for(; i < bound; ++i) {
-
+
xmm1 = _mm_load_ps((float*)src0);
xmm2 = _mm_load_ps((float*)&src0[2]);
-
+
src0 += 4;
-
-
+
+
xmm1 = _mm_mul_ps(xmm1, xmm1);
xmm2 = _mm_mul_ps(xmm2, xmm2);
-
-
+
+
xmm1 = _mm_hadd_ps(xmm1, xmm2);
xmm3 = _mm_max_ps(xmm1, xmm3);
-
+
xmm4.float_vec = _mm_cmplt_ps(xmm1, xmm3);
xmm5.float_vec = _mm_cmpeq_ps(xmm1, xmm3);
-
-
-
+
+
+
xmm11 = _mm_and_si128(xmm8, xmm5.int_vec);
xmm12 = _mm_and_si128(xmm9, xmm4.int_vec);
-
+
xmm9 = _mm_add_epi32(xmm11, xmm12);
- xmm8 = _mm_add_epi32(xmm8, xmm10);
+ xmm8 = _mm_add_epi32(xmm8, xmm10);
+
-
//printf("%f, %f, %f, %f\n", ((float*)&xmm3)[0], ((float*)&xmm3)[1], ((float*)&xmm3)[2], ((float*)&xmm3)[3]);
//printf("%u, %u, %u, %u\n", ((uint32_t*)&xmm10)[0], ((uint32_t*)&xmm10)[1], ((uint32_t*)&xmm10)[2], ((uint32_t*)&xmm10)[3]);
}
-
-
+
+
for(i = 0; i < leftovers0; ++i) {
xmm2 = _mm_load_ps((float*)src0);
-
+
xmm1 = _mm_movelh_ps(bit128_p(&xmm8)->float_vec, bit128_p(&xmm8)->float_vec);
xmm8 = bit128_p(&xmm1)->int_vec;
@@ -99,63 +99,63 @@ static inline void volk_32fc_index_max_16u_a_sse3(unsigned int* target, lv_32fc_
xmm3 = _mm_max_ps(xmm1, xmm3);
xmm10 = _mm_set_epi32(2, 2, 2, 2);//load1_ps((float*)&init[2]);
-
-
+
+
xmm4.float_vec = _mm_cmplt_ps(xmm1, xmm3);
xmm5.float_vec = _mm_cmpeq_ps(xmm1, xmm3);
-
-
-
+
+
+
xmm11 = _mm_and_si128(xmm8, xmm5.int_vec);
xmm12 = _mm_and_si128(xmm9, xmm4.int_vec);
-
+
xmm9 = _mm_add_epi32(xmm11, xmm12);
- xmm8 = _mm_add_epi32(xmm8, xmm10);
+ xmm8 = _mm_add_epi32(xmm8, xmm10);
//printf("egads%u, %u, %u, %u\n", ((uint32_t*)&xmm9)[0], ((uint32_t*)&xmm9)[1], ((uint32_t*)&xmm9)[2], ((uint32_t*)&xmm9)[3]);
}
-
-
-
+
+
+
for(i = 0; i < leftovers1; ++i) {
//printf("%u, %u, %u, %u\n", ((uint32_t*)&xmm9)[0], ((uint32_t*)&xmm9)[1], ((uint32_t*)&xmm9)[2], ((uint32_t*)&xmm9)[3]);
-
+
sq_dist = lv_creal(src0[0]) * lv_creal(src0[0]) + lv_cimag(src0[0]) * lv_cimag(src0[0]);
-
+
xmm2 = _mm_load1_ps(&sq_dist);
xmm1 = xmm3;
-
+
xmm3 = _mm_max_ss(xmm3, xmm2);
-
-
+
+
xmm4.float_vec = _mm_cmplt_ps(xmm1, xmm3);
xmm5.float_vec = _mm_cmpeq_ps(xmm1, xmm3);
-
-
- xmm8 = _mm_shuffle_epi32(xmm8, 0x00);
-
+
+
+ xmm8 = _mm_shuffle_epi32(xmm8, 0x00);
+
xmm11 = _mm_and_si128(xmm8, xmm4.int_vec);
xmm12 = _mm_and_si128(xmm9, xmm5.int_vec);
-
+
xmm9 = _mm_add_epi32(xmm11, xmm12);
}
-
+
//printf("%f, %f, %f, %f\n", ((float*)&xmm3)[0], ((float*)&xmm3)[1], ((float*)&xmm3)[2], ((float*)&xmm3)[3]);
//printf("%u, %u, %u, %u\n", ((uint32_t*)&xmm9)[0], ((uint32_t*)&xmm9)[1], ((uint32_t*)&xmm9)[2], ((uint32_t*)&xmm9)[3]);
_mm_store_ps((float*)&(holderf.f), xmm3);
_mm_store_si128(&(holderi.int_vec), xmm9);
-
+
target[0] = holderi.i[0];
- sq_dist = holderf.f[0];
+ sq_dist = holderf.f[0];
target[0] = (holderf.f[1] > sq_dist) ? holderi.i[1] : target[0];
sq_dist = (holderf.f[1] > sq_dist) ? holderf.f[1] : sq_dist;
target[0] = (holderf.f[2] > sq_dist) ? holderi.i[2] : target[0];
@@ -163,27 +163,27 @@ static inline void volk_32fc_index_max_16u_a_sse3(unsigned int* target, lv_32fc_
target[0] = (holderf.f[3] > sq_dist) ? holderi.i[3] : target[0];
sq_dist = (holderf.f[3] > sq_dist) ? holderf.f[3] : sq_dist;
-
-
+
+
/*
float placeholder = 0.0;
- uint32_t temp0, temp1;
+ uint32_t temp0, temp1;
unsigned int g0 = (((float*)&xmm3)[0] > ((float*)&xmm3)[1]);
unsigned int l0 = g0 ^ 1;
unsigned int g1 = (((float*)&xmm3)[1] > ((float*)&xmm3)[2]);
unsigned int l1 = g1 ^ 1;
-
+
temp0 = g0 * ((uint32_t*)&xmm9)[0] + l0 * ((uint32_t*)&xmm9)[1];
temp1 = g0 * ((uint32_t*)&xmm9)[2] + l0 * ((uint32_t*)&xmm9)[3];
- sq_dist = g0 * ((float*)&xmm3)[0] + l0 * ((float*)&xmm3)[1];
+ sq_dist = g0 * ((float*)&xmm3)[0] + l0 * ((float*)&xmm3)[1];
placeholder = g0 * ((float*)&xmm3)[2] + l0 * ((float*)&xmm3)[3];
-
+
g0 = (sq_dist > placeholder);
l0 = g0 ^ 1;
target[0] = g0 * temp0 + l0 * temp1;
*/
-
+
}
#endif /*LV_HAVE_SSE3*/
@@ -193,20 +193,20 @@ static inline void volk_32fc_index_max_16u_a_generic(unsigned int* target, lv_32
float sq_dist = 0.0;
float max = 0.0;
unsigned int index = 0;
-
- unsigned int i = 0;
-
+
+ unsigned int i = 0;
+
for(; i < num_bytes >> 3; ++i) {
sq_dist = lv_creal(src0[i]) * lv_creal(src0[i]) + lv_cimag(src0[i]) * lv_cimag(src0[i]);
-
+
index = sq_dist > max ? i : index;
max = sq_dist > max ? sq_dist : max;
-
-
+
+
}
target[0] = index;
-
+
}
#endif /*LV_HAVE_GENERIC*/
diff --git a/volk/include/volk/volk_32fc_magnitude_32f_a.h b/volk/include/volk/volk_32fc_magnitude_32f_a.h
index f18e9bc0b..efb84a904 100644
--- a/volk/include/volk/volk_32fc_magnitude_32f_a.h
+++ b/volk/include/volk/volk_32fc_magnitude_32f_a.h
@@ -59,7 +59,7 @@ static inline void volk_32fc_magnitude_32f_a_sse3(float* magnitudeVector, const
static inline void volk_32fc_magnitude_32f_a_sse(float* magnitudeVector, const lv_32fc_t* complexVector, unsigned int num_points){
unsigned int number = 0;
const unsigned int quarterPoints = num_points / 4;
-
+
const float* complexVectorPtr = (float*)complexVector;
float* magnitudeVectorPtr = magnitudeVector;
diff --git a/volk/include/volk/volk_32fc_magnitude_32f_u.h b/volk/include/volk/volk_32fc_magnitude_32f_u.h
index ed1cedef9..c8b3f0a08 100644
--- a/volk/include/volk/volk_32fc_magnitude_32f_u.h
+++ b/volk/include/volk/volk_32fc_magnitude_32f_u.h
@@ -59,7 +59,7 @@ static inline void volk_32fc_magnitude_32f_u_sse3(float* magnitudeVector, const
static inline void volk_32fc_magnitude_32f_u_sse(float* magnitudeVector, const lv_32fc_t* complexVector, unsigned int num_points){
unsigned int number = 0;
const unsigned int quarterPoints = num_points / 4;
-
+
const float* complexVectorPtr = (float*)complexVector;
float* magnitudeVectorPtr = magnitudeVector;
diff --git a/volk/include/volk/volk_32fc_magnitude_squared_32f_a.h b/volk/include/volk/volk_32fc_magnitude_squared_32f_a.h
index 00bdefbb5..d3ac9717a 100644
--- a/volk/include/volk/volk_32fc_magnitude_squared_32f_a.h
+++ b/volk/include/volk/volk_32fc_magnitude_squared_32f_a.h
@@ -57,7 +57,7 @@ static inline void volk_32fc_magnitude_squared_32f_a_sse3(float* magnitudeVector
static inline void volk_32fc_magnitude_squared_32f_a_sse(float* magnitudeVector, const lv_32fc_t* complexVector, unsigned int num_points){
unsigned int number = 0;
const unsigned int quarterPoints = num_points / 4;
-
+
const float* complexVectorPtr = (float*)complexVector;
float* magnitudeVectorPtr = magnitudeVector;
diff --git a/volk/include/volk/volk_32fc_magnitude_squared_32f_u.h b/volk/include/volk/volk_32fc_magnitude_squared_32f_u.h
index 6eb4a523a..53a4e68eb 100644
--- a/volk/include/volk/volk_32fc_magnitude_squared_32f_u.h
+++ b/volk/include/volk/volk_32fc_magnitude_squared_32f_u.h
@@ -57,7 +57,7 @@ static inline void volk_32fc_magnitude_squared_32f_u_sse3(float* magnitudeVector
static inline void volk_32fc_magnitude_squared_32f_u_sse(float* magnitudeVector, const lv_32fc_t* complexVector, unsigned int num_points){
unsigned int number = 0;
const unsigned int quarterPoints = num_points / 4;
-
+
const float* complexVectorPtr = (float*)complexVector;
float* magnitudeVectorPtr = magnitudeVector;
diff --git a/volk/include/volk/volk_32fc_s32f_atan2_32f_a.h b/volk/include/volk/volk_32fc_s32f_atan2_32f_a.h
index 7bd001aa0..d86bd63c1 100644
--- a/volk/include/volk/volk_32fc_s32f_atan2_32f_a.h
+++ b/volk/include/volk/volk_32fc_s32f_atan2_32f_a.h
@@ -27,14 +27,14 @@ static inline void volk_32fc_s32f_atan2_32f_a_sse4_1(float* outputVector, const
const float invNormalizeFactor = 1.0 / normalizeFactor;
#ifdef LV_HAVE_LIB_SIMDMATH
- const unsigned int quarterPoints = num_points / 4;
+ const unsigned int quarterPoints = num_points / 4;
__m128 testVector = _mm_set_ps1(2*M_PI);
__m128 correctVector = _mm_set_ps1(M_PI);
__m128 vNormalizeFactor = _mm_set_ps1(invNormalizeFactor);
__m128 phase;
__m128 complex1, complex2, iValue, qValue;
__m128 keepMask;
-
+
for (; number < quarterPoints; number++) {
// Load IQ data:
complex1 = _mm_load_ps(complexVectorPtr);
@@ -42,15 +42,15 @@ static inline void volk_32fc_s32f_atan2_32f_a_sse4_1(float* outputVector, const
complex2 = _mm_load_ps(complexVectorPtr);
complexVectorPtr += 4;
// Deinterleave IQ data:
- iValue = _mm_shuffle_ps(complex1, complex2, _MM_SHUFFLE(2,0,2,0));
- qValue = _mm_shuffle_ps(complex1, complex2, _MM_SHUFFLE(3,1,3,1));
+ iValue = _mm_shuffle_ps(complex1, complex2, _MM_SHUFFLE(2,0,2,0));
+ qValue = _mm_shuffle_ps(complex1, complex2, _MM_SHUFFLE(3,1,3,1));
// Arctan to get phase:
phase = atan2f4(qValue, iValue);
// When Q = 0 and I < 0, atan2f4 sucks and returns 2pi vice pi.
// Compare to 2pi:
keepMask = _mm_cmpneq_ps(phase,testVector);
phase = _mm_blendv_ps(correctVector, phase, keepMask);
- // done with above correction.
+ // done with above correction.
phase = _mm_mul_ps(phase, vNormalizeFactor);
_mm_store_ps((float*)outPtr, phase);
outPtr += 4;
@@ -89,7 +89,7 @@ static inline void volk_32fc_s32f_atan2_32f_a_sse(float* outputVector, const lv
const float invNormalizeFactor = 1.0 / normalizeFactor;
#ifdef LV_HAVE_LIB_SIMDMATH
- const unsigned int quarterPoints = num_points / 4;
+ const unsigned int quarterPoints = num_points / 4;
__m128 testVector = _mm_set_ps1(2*M_PI);
__m128 correctVector = _mm_set_ps1(M_PI);
__m128 vNormalizeFactor = _mm_set_ps1(invNormalizeFactor);
@@ -97,7 +97,7 @@ static inline void volk_32fc_s32f_atan2_32f_a_sse(float* outputVector, const lv
__m128 complex1, complex2, iValue, qValue;
__m128 mask;
__m128 keepMask;
-
+
for (; number < quarterPoints; number++) {
// Load IQ data:
complex1 = _mm_load_ps(complexVectorPtr);
@@ -105,8 +105,8 @@ static inline void volk_32fc_s32f_atan2_32f_a_sse(float* outputVector, const lv
complex2 = _mm_load_ps(complexVectorPtr);
complexVectorPtr += 4;
// Deinterleave IQ data:
- iValue = _mm_shuffle_ps(complex1, complex2, _MM_SHUFFLE(2,0,2,0));
- qValue = _mm_shuffle_ps(complex1, complex2, _MM_SHUFFLE(3,1,3,1));
+ iValue = _mm_shuffle_ps(complex1, complex2, _MM_SHUFFLE(2,0,2,0));
+ qValue = _mm_shuffle_ps(complex1, complex2, _MM_SHUFFLE(3,1,3,1));
// Arctan to get phase:
phase = atan2f4(qValue, iValue);
// When Q = 0 and I < 0, atan2f4 sucks and returns 2pi vice pi.
@@ -115,7 +115,7 @@ static inline void volk_32fc_s32f_atan2_32f_a_sse(float* outputVector, const lv
phase = _mm_and_ps(phase, keepMask);
mask = _mm_andnot_ps(keepMask, correctVector);
phase = _mm_or_ps(phase, mask);
- // done with above correction.
+ // done with above correction.
phase = _mm_mul_ps(phase, vNormalizeFactor);
_mm_store_ps((float*)outPtr, phase);
outPtr += 4;
diff --git a/volk/include/volk/volk_32fc_s32f_power_32fc_a.h b/volk/include/volk/volk_32fc_s32f_power_32fc_a.h
index 588b532b4..3106edbef 100644
--- a/volk/include/volk/volk_32fc_s32f_power_32fc_a.h
+++ b/volk/include/volk/volk_32fc_s32f_power_32fc_a.h
@@ -28,55 +28,55 @@ static inline lv_32fc_t __volk_s32fc_s32f_power_s32fc_a(const lv_32fc_t exp, con
*/
static inline void volk_32fc_s32f_power_32fc_a_sse(lv_32fc_t* cVector, const lv_32fc_t* aVector, const float power, unsigned int num_points){
unsigned int number = 0;
-
+
lv_32fc_t* cPtr = cVector;
const lv_32fc_t* aPtr = aVector;
#ifdef LV_HAVE_LIB_SIMDMATH
const unsigned int quarterPoints = num_points / 4;
__m128 vPower = _mm_set_ps1(power);
-
+
__m128 cplxValue1, cplxValue2, magnitude, phase, iValue, qValue;
for(;number < quarterPoints; number++){
-
- cplxValue1 = _mm_load_ps((float*)aPtr);
+
+ cplxValue1 = _mm_load_ps((float*)aPtr);
aPtr += 2;
-
- cplxValue2 = _mm_load_ps((float*)aPtr);
+
+ cplxValue2 = _mm_load_ps((float*)aPtr);
aPtr += 2;
-
+
// Convert to polar coordinates
-
+
// Arrange in i1i2i3i4 format
iValue = _mm_shuffle_ps(cplxValue1, cplxValue2, _MM_SHUFFLE(2,0,2,0));
// Arrange in q1q2q3q4 format
qValue = _mm_shuffle_ps(cplxValue1, cplxValue2, _MM_SHUFFLE(3,1,3,1));
-
+
phase = atan2f4(qValue, iValue); // Calculate the Phase
-
+
magnitude = _mm_sqrt_ps(_mm_add_ps(_mm_mul_ps(iValue, iValue), _mm_mul_ps(qValue, qValue))); // Calculate the magnitude by square rooting the added I2 and Q2 values
-
+
// Now calculate the power of the polar coordinate data
magnitude = powf4(magnitude, vPower); // Take the magnitude to the specified power
-
+
phase = _mm_mul_ps(phase, vPower); // Multiply the phase by the specified power
-
+
// Convert back to cartesian coordinates
iValue = _mm_mul_ps( cosf4(phase), magnitude); // Multiply the cos of the phase by the magnitude
qValue = _mm_mul_ps( sinf4(phase), magnitude); // Multiply the sin of the phase by the magnitude
-
+
cplxValue1 = _mm_unpacklo_ps(iValue, qValue); // Interleave the lower two i & q values
cplxValue2 = _mm_unpackhi_ps(iValue, qValue); // Interleave the upper two i & q values
-
+
_mm_store_ps((float*)cPtr,cplxValue1); // Store the results back into the C container
-
+
cPtr += 2;
-
+
_mm_store_ps((float*)cPtr,cplxValue2); // Store the results back into the C container
-
+
cPtr += 2;
}
-
+
number = quarterPoints * 4;
#endif /* LV_HAVE_LIB_SIMDMATH */
diff --git a/volk/include/volk/volk_32fc_s32f_power_spectrum_32f_a.h b/volk/include/volk/volk_32fc_s32f_power_spectrum_32f_a.h
index 8d1959dae..30a77dbc1 100644
--- a/volk/include/volk/volk_32fc_s32f_power_spectrum_32f_a.h
+++ b/volk/include/volk/volk_32fc_s32f_power_spectrum_32f_a.h
@@ -34,7 +34,7 @@ static inline void volk_32fc_s32f_power_spectrum_32f_a_sse3(float* logPowerOutpu
__m128 input1, input2;
const uint64_t quarterPoints = num_points / 4;
for(;number < quarterPoints; number++){
- // Load the complex values
+ // Load the complex values
input1 =_mm_load_ps(inputPtr);
inputPtr += 4;
input2 =_mm_load_ps(inputPtr);
@@ -43,30 +43,30 @@ static inline void volk_32fc_s32f_power_spectrum_32f_a_sse3(float* logPowerOutpu
// Apply the normalization factor
input1 = _mm_mul_ps(input1, invNormalizationFactor);
input2 = _mm_mul_ps(input2, invNormalizationFactor);
-
+
// Multiply each value by itself
// (r1*r1), (i1*i1), (r2*r2), (i2*i2)
input1 = _mm_mul_ps(input1, input1);
// (r3*r3), (i3*i3), (r4*r4), (i4*i4)
input2 = _mm_mul_ps(input2, input2);
-
+
// Horizontal add, to add (r*r) + (i*i) for each complex value
// (r1*r1)+(i1*i1), (r2*r2) + (i2*i2), (r3*r3)+(i3*i3), (r4*r4)+(i4*i4)
power = _mm_hadd_ps(input1, input2);
-
+
// Calculate the natural log power
power = logf4(power);
-
+
// Convert to log10 and multiply by 10.0
power = _mm_mul_ps(power, magScalar);
-
+
// Store the floating point results
_mm_store_ps(destPtr, power);
-
+
destPtr += 4;
}
-
- number = quarterPoints*4;
+
+ number = quarterPoints*4;
#endif /* LV_HAVE_LIB_SIMDMATH */
// Calculate the FFT for any remaining points
@@ -81,10 +81,10 @@ static inline void volk_32fc_s32f_power_spectrum_32f_a_sse3(float* logPowerOutpu
const float imag = *inputPtr++ * iNormalizationFactor;
*destPtr = 10.0*log10f(((real * real) + (imag * imag)) + 1e-20);
-
+
destPtr++;
}
-
+
}
#endif /* LV_HAVE_SSE3 */
@@ -114,7 +114,7 @@ static inline void volk_32fc_s32f_power_spectrum_32f_a_generic(float* logPowerOu
*realFFTDataPointsPtr = 10.0*log10f(((real * real) + (imag * imag)) + 1e-20);
-
+
realFFTDataPointsPtr++;
}
}
diff --git a/volk/include/volk/volk_32fc_s32f_x2_power_spectral_density_32f_a.h b/volk/include/volk/volk_32fc_s32f_x2_power_spectral_density_32f_a.h
index fc635f171..27f755351 100644
--- a/volk/include/volk/volk_32fc_s32f_x2_power_spectral_density_32f_a.h
+++ b/volk/include/volk/volk_32fc_s32f_x2_power_spectral_density_32f_a.h
@@ -32,19 +32,19 @@ static inline void volk_32fc_s32f_x2_power_spectral_density_32f_a_sse3(float* lo
magScalar = _mm_div_ps(magScalar, logf4(magScalar));
__m128 invRBW = _mm_set_ps1(iRBW);
-
+
__m128 invNormalizationFactor = _mm_set_ps1(iNormalizationFactor);
__m128 power;
__m128 input1, input2;
const uint64_t quarterPoints = num_points / 4;
for(;number < quarterPoints; number++){
- // Load the complex values
+ // Load the complex values
input1 =_mm_load_ps(inputPtr);
inputPtr += 4;
input2 =_mm_load_ps(inputPtr);
inputPtr += 4;
-
+
// Apply the normalization factor
input1 = _mm_mul_ps(input1, invNormalizationFactor);
input2 = _mm_mul_ps(input2, invNormalizationFactor);
@@ -54,7 +54,7 @@ static inline void volk_32fc_s32f_x2_power_spectral_density_32f_a_sse3(float* lo
input1 = _mm_mul_ps(input1, input1);
// (r3*r3), (i3*i3), (r4*r4), (i4*i4)
input2 = _mm_mul_ps(input2, input2);
-
+
// Horizontal add, to add (r*r) + (i*i) for each complex value
// (r1*r1)+(i1*i1), (r2*r2) + (i2*i2), (r3*r3)+(i3*i3), (r4*r4)+(i4*i4)
power = _mm_hadd_ps(input1, input2);
@@ -64,17 +64,17 @@ static inline void volk_32fc_s32f_x2_power_spectral_density_32f_a_sse3(float* lo
// Calculate the natural log power
power = logf4(power);
-
+
// Convert to log10 and multiply by 10.0
power = _mm_mul_ps(power, magScalar);
-
+
// Store the floating point results
_mm_store_ps(destPtr, power);
-
+
destPtr += 4;
}
-
- number = quarterPoints*4;
+
+ number = quarterPoints*4;
#endif /* LV_HAVE_LIB_SIMDMATH */
// Calculate the FFT for any remaining points
for(; number < num_points; number++){
@@ -83,14 +83,14 @@ static inline void volk_32fc_s32f_x2_power_spectral_density_32f_a_sse3(float* lo
// 10 * log10 (v^2 / (2 * 50.0 * .001)) = 10 * log10( v^2 * 10)
// 75 ohm load assumption
// 10 * log10 (v^2 / (2 * 75.0 * .001)) = 10 * log10( v^2 * 15)
-
+
const float real = *inputPtr++ * iNormalizationFactor;
const float imag = *inputPtr++ * iNormalizationFactor;
*destPtr = 10.0*log10f((((real * real) + (imag * imag)) + 1e-20) * iRBW);
destPtr++;
}
-
+
}
#endif /* LV_HAVE_SSE3 */
@@ -122,7 +122,7 @@ static inline void volk_32fc_s32f_x2_power_spectral_density_32f_a_generic(float*
const float imag = *inputPtr++ * iNormalizationFactor;
*realFFTDataPointsPtr = 10.0*log10f((((real * real) + (imag * imag)) + 1e-20) * invRBW);
-
+
realFFTDataPointsPtr++;
}
}
diff --git a/volk/include/volk/volk_32fc_s32fc_multiply_32fc_a.h b/volk/include/volk/volk_32fc_s32fc_multiply_32fc_a.h
index 534dc2a25..f206c5e87 100644
--- a/volk/include/volk/volk_32fc_s32fc_multiply_32fc_a.h
+++ b/volk/include/volk/volk_32fc_s32fc_multiply_32fc_a.h
@@ -28,17 +28,17 @@ static inline void volk_32fc_s32fc_multiply_32fc_a_sse3(lv_32fc_t* cVector, cons
yh = _mm_set_ps1(lv_cimag(scalar));
for(;number < halfPoints; number++){
-
+
x = _mm_load_ps((float*)a); // Load the ar + ai, br + bi as ar,ai,br,bi
-
+
tmp1 = _mm_mul_ps(x,yl); // tmp1 = ar*cr,ai*cr,br*dr,bi*dr
-
+
x = _mm_shuffle_ps(x,x,0xB1); // Re-arrange x to be ai,ar,bi,br
-
+
tmp2 = _mm_mul_ps(x,yh); // tmp2 = ai*ci,ar*ci,bi*di,br*di
-
+
z = _mm_addsub_ps(tmp1,tmp2); // ar*cr-ai*ci, ai*cr+ar*ci, br*dr-bi*di, bi*dr+br*di
-
+
_mm_store_ps((float*)c,z); // Store the results back into the C container
a += 2;
diff --git a/volk/include/volk/volk_32fc_s32fc_multiply_32fc_u.h b/volk/include/volk/volk_32fc_s32fc_multiply_32fc_u.h
index 218c450f8..5c7d15b02 100644
--- a/volk/include/volk/volk_32fc_s32fc_multiply_32fc_u.h
+++ b/volk/include/volk/volk_32fc_s32fc_multiply_32fc_u.h
@@ -28,17 +28,17 @@ static inline void volk_32fc_s32fc_multiply_32fc_u_sse3(lv_32fc_t* cVector, cons
yh = _mm_set_ps1(lv_cimag(scalar));
for(;number < halfPoints; number++){
-
+
x = _mm_loadu_ps((float*)a); // Load the ar + ai, br + bi as ar,ai,br,bi
-
+
tmp1 = _mm_mul_ps(x,yl); // tmp1 = ar*cr,ai*cr,br*dr,bi*dr
-
+
x = _mm_shuffle_ps(x,x,0xB1); // Re-arrange x to be ai,ar,bi,br
-
+
tmp2 = _mm_mul_ps(x,yh); // tmp2 = ai*ci,ar*ci,bi*di,br*di
-
+
z = _mm_addsub_ps(tmp1,tmp2); // ar*cr-ai*ci, ai*cr+ar*ci, br*dr-bi*di, bi*dr+br*di
-
+
_mm_storeu_ps((float*)c,z); // Store the results back into the C container
a += 2;
diff --git a/volk/include/volk/volk_32fc_x2_conjugate_dot_prod_32fc_a.h b/volk/include/volk/volk_32fc_x2_conjugate_dot_prod_32fc_a.h
index 655075528..e3dedf2fc 100644
--- a/volk/include/volk/volk_32fc_x2_conjugate_dot_prod_32fc_a.h
+++ b/volk/include/volk/volk_32fc_x2_conjugate_dot_prod_32fc_a.h
@@ -10,40 +10,40 @@
static inline void volk_32fc_x2_conjugate_dot_prod_32fc_a_generic(lv_32fc_t* result, const lv_32fc_t* input, const lv_32fc_t* taps, unsigned int num_bytes) {
-
+
float * res = (float*) result;
float * in = (float*) input;
float * tp = (float*) taps;
unsigned int n_2_ccomplex_blocks = num_bytes >> 4;
unsigned int isodd = (num_bytes >> 3) &1;
-
-
-
+
+
+
float sum0[2] = {0,0};
float sum1[2] = {0,0};
unsigned int i = 0;
-
+
for(i = 0; i < n_2_ccomplex_blocks; ++i) {
-
+
sum0[0] += in[0] * tp[0] + in[1] * tp[1];
sum0[1] += (-in[0] * tp[1]) + in[1] * tp[0];
sum1[0] += in[2] * tp[2] + in[3] * tp[3];
sum1[1] += (-in[2] * tp[3]) + in[3] * tp[2];
-
-
+
+
in += 4;
tp += 4;
}
-
-
+
+
res[0] = sum0[0] + sum1[0];
res[1] = sum0[1] + sum1[1];
-
-
-
+
+
+
for(i = 0; i < isodd; ++i) {
@@ -64,13 +64,13 @@ static inline void volk_32fc_x2_conjugate_dot_prod_32fc_a_generic(lv_32fc_t* res
static inline void volk_32fc_x2_conjugate_dot_prod_32fc_a_sse(lv_32fc_t* result, const lv_32fc_t* input, const lv_32fc_t* taps, unsigned int num_bytes) {
-
+
__VOLK_ATTR_ALIGNED(16) static const uint32_t conjugator[4]= {0x00000000, 0x80000000, 0x00000000, 0x80000000};
-
- asm volatile
+
+ asm volatile
(
"# ccomplex_conjugate_dotprod_generic (float* result, const float *input,\n\t"
"# const float *taps, unsigned num_bytes)\n\t"
@@ -187,32 +187,32 @@ static inline void volk_32fc_x2_conjugate_dot_prod_32fc_a_sse(lv_32fc_t* result,
:[rsi] "r" (input), [rdx] "r" (taps), "c" (num_bytes), [rdi] "r" (result), [conjugator] "r" (conjugator)
:"rax", "r8", "r9", "r10"
);
-
-
+
+
int getem = num_bytes % 16;
-
-
+
+
for(; getem > 0; getem -= 8) {
-
-
+
+
*result += (input[(num_bytes >> 3) - 1] * lv_conj(taps[(num_bytes >> 3) - 1]));
-
+
}
return;
-}
+}
#endif
#if LV_HAVE_SSE && LV_HAVE_32
static inline void volk_32fc_x2_conjugate_dot_prod_32fc_a_sse_32(lv_32fc_t* result, const lv_32fc_t* input, const lv_32fc_t* taps, unsigned int num_bytes) {
-
+
__VOLK_ATTR_ALIGNED(16) static const uint32_t conjugator[4]= {0x00000000, 0x80000000, 0x00000000, 0x80000000};
int bound = num_bytes >> 4;
int leftovers = num_bytes % 16;
-
- asm volatile
+
+ asm volatile
(
" #pushl %%ebp\n\t"
" #movl %%esp, %%ebp\n\t"
@@ -226,7 +226,7 @@ static inline void volk_32fc_x2_conjugate_dot_prod_32fc_a_sse_32(lv_32fc_t* resu
" movaps 0(%[edx]), %%xmm2\n\t"
" movl %[ecx], (%[out])\n\t"
" shrl $5, %[ecx] # ecx = n_2_ccomplex_blocks / 2\n\t"
-
+
" xorps %%xmm1, %%xmm2\n\t"
" jmp .%=L1_test\n\t"
" # 4 taps / loop\n\t"
@@ -317,28 +317,28 @@ static inline void volk_32fc_x2_conjugate_dot_prod_32fc_a_sse_32(lv_32fc_t* resu
: [eax] "r" (input), [edx] "r" (taps), [ecx] "r" (num_bytes), [out] "r" (result), [conjugator] "r" (conjugator)
);
-
-
-
+
+
+
printf("%d, %d\n", leftovers, bound);
-
+
for(; leftovers > 0; leftovers -= 8) {
-
-
+
+
*result += (input[(bound << 1)] * lv_conj(taps[(bound << 1)]));
-
+
}
-
+
return;
-
-
-
-
-
+
+
+
+
+
}
-#endif /*LV_HAVE_SSE*/
+#endif /*LV_HAVE_SSE*/
diff --git a/volk/include/volk/volk_32fc_x2_conjugate_dot_prod_32fc_u.h b/volk/include/volk/volk_32fc_x2_conjugate_dot_prod_32fc_u.h
index 3ae7208a8..e7493413f 100644
--- a/volk/include/volk/volk_32fc_x2_conjugate_dot_prod_32fc_u.h
+++ b/volk/include/volk/volk_32fc_x2_conjugate_dot_prod_32fc_u.h
@@ -9,39 +9,39 @@
static inline void volk_32fc_x2_conjugate_dot_prod_32fc_u_generic(lv_32fc_t* result, const lv_32fc_t* input, const lv_32fc_t* taps, unsigned int num_bytes) {
-
+
float * res = (float*) result;
float * in = (float*) input;
float * tp = (float*) taps;
unsigned int n_2_ccomplex_blocks = num_bytes >> 4;
unsigned int isodd = (num_bytes >> 3) &1;
-
-
-
+
+
+
float sum0[2] = {0,0};
float sum1[2] = {0,0};
unsigned int i = 0;
-
+
for(i = 0; i < n_2_ccomplex_blocks; ++i) {
-
+
sum0[0] += in[0] * tp[0] + in[1] * tp[1];
sum0[1] += (-in[0] * tp[1]) + in[1] * tp[0];
sum1[0] += in[2] * tp[2] + in[3] * tp[3];
sum1[1] += (-in[2] * tp[3]) + in[3] * tp[2];
-
-
+
+
in += 4;
tp += 4;
}
-
-
+
+
res[0] = sum0[0] + sum1[0];
res[1] = sum0[1] + sum1[1];
-
-
-
+
+
+
for(i = 0; i < isodd; ++i) {
@@ -73,7 +73,7 @@ static inline void volk_32fc_x2_conjugate_dot_prod_32fc_u_sse3(lv_32fc_t* result
uint32_t intRep[4];
__m128 vec;
} halfMask;
-
+
union NegMask {
int intRep[4];
__m128 vec;
@@ -85,13 +85,13 @@ static inline void volk_32fc_x2_conjugate_dot_prod_32fc_u_sse3(lv_32fc_t* result
__m128 in1, in2, Rv, fehg, Iv, Rs, Ivm, Is;
__m128 zv = {0,0,0,0};
-
+
halfMask.intRep[0] = halfMask.intRep[1] = 0xFFFFFFFF;
halfMask.intRep[2] = halfMask.intRep[3] = 0x00000000;
negMask.intRep[0] = negMask.intRep[2] = 0x80000000;
negMask.intRep[1] = negMask.intRep[3] = 0;
-
+
// main loop
while(num_bytes >= 4*sizeof(float)){
diff --git a/volk/include/volk/volk_32fc_x2_dot_prod_32fc_a.h b/volk/include/volk/volk_32fc_x2_dot_prod_32fc_a.h
index cde9240cc..cb2ac4c67 100644
--- a/volk/include/volk/volk_32fc_x2_dot_prod_32fc_a.h
+++ b/volk/include/volk/volk_32fc_x2_dot_prod_32fc_a.h
@@ -7,44 +7,44 @@
#include <string.h>
-#ifdef LV_HAVE_GENERIC
+#ifdef LV_HAVE_GENERIC
static inline void volk_32fc_x2_dot_prod_32fc_a_generic(lv_32fc_t* result, const lv_32fc_t* input, const lv_32fc_t* taps, unsigned int num_bytes) {
-
+
float * res = (float*) result;
float * in = (float*) input;
float * tp = (float*) taps;
unsigned int n_2_ccomplex_blocks = num_bytes >> 4;
unsigned int isodd = (num_bytes >> 3) &1;
-
-
-
+
+
+
float sum0[2] = {0,0};
float sum1[2] = {0,0};
unsigned int i = 0;
-
+
for(i = 0; i < n_2_ccomplex_blocks; ++i) {
-
+
sum0[0] += in[0] * tp[0] - in[1] * tp[1];
sum0[1] += in[0] * tp[1] + in[1] * tp[0];
sum1[0] += in[2] * tp[2] - in[3] * tp[3];
sum1[1] += in[2] * tp[3] + in[3] * tp[2];
-
-
+
+
in += 4;
tp += 4;
}
-
+
res[0] = sum0[0] + sum1[0];
res[1] = sum0[1] + sum1[1];
-
-
-
+
+
+
for(i = 0; i < isodd; ++i) {
@@ -61,9 +61,9 @@ static inline void volk_32fc_x2_dot_prod_32fc_a_generic(lv_32fc_t* result, const
static inline void volk_32fc_x2_dot_prod_32fc_a_sse_64(lv_32fc_t* result, const lv_32fc_t* input, const lv_32fc_t* taps, unsigned int num_bytes) {
-
- asm
+
+ asm
(
"# ccomplex_dotprod_generic (float* result, const float *input,\n\t"
"# const float *taps, unsigned num_bytes)\n\t"
@@ -175,20 +175,20 @@ static inline void volk_32fc_x2_dot_prod_32fc_a_sse_64(lv_32fc_t* result, const
:[rsi] "r" (input), [rdx] "r" (taps), "c" (num_bytes), [rdi] "r" (result)
:"rax", "r8", "r9", "r10"
);
-
-
+
+
int getem = num_bytes % 16;
-
-
+
+
for(; getem > 0; getem -= 8) {
-
-
+
+
*result += (input[(num_bytes >> 3) - 1] * taps[(num_bytes >> 3) - 1]);
-
+
}
return;
-
+
}
#endif
@@ -200,7 +200,7 @@ static inline void volk_32fc_x2_dot_prod_32fc_a_sse_32(lv_32fc_t* result, const
volk_32fc_x2_dot_prod_32fc_a_generic(result, input, taps, num_bytes);
#if 0
- asm volatile
+ asm volatile
(
" #pushl %%ebp\n\t"
" #movl %%esp, %%ebp\n\t"
@@ -299,28 +299,28 @@ static inline void volk_32fc_x2_dot_prod_32fc_a_sse_32(lv_32fc_t* result, const
: "eax", "ecx", "edx"
);
-
+
int getem = num_bytes % 16;
-
+
for(; getem > 0; getem -= 8) {
-
-
+
+
*result += (input[(num_bytes >> 3) - 1] * taps[(num_bytes >> 3) - 1]);
-
+
}
-
+
return;
-#endif
+#endif
}
-#endif /*LV_HAVE_SSE*/
+#endif /*LV_HAVE_SSE*/
#ifdef LV_HAVE_SSE3
#include <pmmintrin.h>
static inline void volk_32fc_x2_dot_prod_32fc_a_sse3(lv_32fc_t* result, const lv_32fc_t* input, const lv_32fc_t* taps, unsigned int num_bytes) {
-
+
lv_32fc_t dotProduct;
memset(&dotProduct, 0x0, 2*sizeof(float));
@@ -336,19 +336,19 @@ static inline void volk_32fc_x2_dot_prod_32fc_a_sse3(lv_32fc_t* result, const lv
dotProdVal = _mm_setzero_ps();
for(;number < halfPoints; number++){
-
+
x = _mm_load_ps((float*)a); // Load the ar + ai, br + bi as ar,ai,br,bi
y = _mm_load_ps((float*)b); // Load the cr + ci, dr + di as cr,ci,dr,di
-
+
yl = _mm_moveldup_ps(y); // Load yl with cr,cr,dr,dr
yh = _mm_movehdup_ps(y); // Load yh with ci,ci,di,di
-
+
tmp1 = _mm_mul_ps(x,yl); // tmp1 = ar*cr,ai*cr,br*dr,bi*dr
-
+
x = _mm_shuffle_ps(x,x,0xB1); // Re-arrange x to be ai,ar,bi,br
-
+
tmp2 = _mm_mul_ps(x,yh); // tmp2 = ai*ci,ar*ci,bi*di,br*di
-
+
z = _mm_addsub_ps(tmp1,tmp2); // ar*cr-ai*ci, ai*cr+ar*ci, br*dr-bi*di, bi*dr+br*di
dotProdVal = _mm_add_ps(dotProdVal, z); // Add the complex multiplication results together
@@ -368,7 +368,7 @@ static inline void volk_32fc_x2_dot_prod_32fc_a_sse3(lv_32fc_t* result, const lv
}
*result = dotProduct;
-}
+}
#endif /*LV_HAVE_SSE3*/
@@ -379,7 +379,7 @@ static inline void volk_32fc_x2_dot_prod_32fc_a_sse3(lv_32fc_t* result, const lv
static inline void volk_32fc_x2_dot_prod_32fc_a_sse4_1(lv_32fc_t* result, const lv_32fc_t* input, const lv_32fc_t* taps, unsigned int num_bytes) {
volk_32fc_x2_dot_prod_32fc_a_sse3(result, input, taps, num_bytes);
// SSE3 version runs twice as fast as the SSE4.1 version, so turning off SSE4 version for now
- /*
+ /*
__m128 xmm0, xmm1, xmm2, xmm3, xmm4, xmm5, xmm6, xmm7, real0, real1, im0, im1;
float *p_input, *p_taps;
__m64 *p_result;
@@ -391,7 +391,7 @@ static inline void volk_32fc_x2_dot_prod_32fc_a_sse4_1(lv_32fc_t* result, const
static const __m128i neg = {0x000000000000000080000000};
int i = 0;
-
+
int bound = (num_bytes >> 5);
int leftovers = (num_bytes & 24) >> 3;
@@ -399,27 +399,27 @@ static inline void volk_32fc_x2_dot_prod_32fc_a_sse4_1(lv_32fc_t* result, const
real1 = _mm_sub_ps(real1, real1);
im0 = _mm_sub_ps(im0, im0);
im1 = _mm_sub_ps(im1, im1);
-
+
for(; i < bound; ++i) {
-
-
+
+
xmm0 = _mm_load_ps(p_input);
xmm1 = _mm_load_ps(p_taps);
-
+
p_input += 4;
p_taps += 4;
-
+
xmm2 = _mm_load_ps(p_input);
xmm3 = _mm_load_ps(p_taps);
-
+
p_input += 4;
p_taps += 4;
-
+
xmm4 = _mm_unpackhi_ps(xmm0, xmm2);
xmm5 = _mm_unpackhi_ps(xmm1, xmm3);
xmm0 = _mm_unpacklo_ps(xmm0, xmm2);
xmm2 = _mm_unpacklo_ps(xmm1, xmm3);
-
+
//imaginary vector from input
xmm1 = _mm_unpackhi_ps(xmm0, xmm4);
//real vector from input
@@ -428,39 +428,39 @@ static inline void volk_32fc_x2_dot_prod_32fc_a_sse4_1(lv_32fc_t* result, const
xmm0 = _mm_unpackhi_ps(xmm2, xmm5);
//real vector from taps
xmm2 = _mm_unpacklo_ps(xmm2, xmm5);
-
+
xmm4 = _mm_dp_ps(xmm3, xmm2, 0xf1);
xmm5 = _mm_dp_ps(xmm1, xmm0, 0xf1);
-
+
xmm6 = _mm_dp_ps(xmm3, xmm0, 0xf2);
xmm7 = _mm_dp_ps(xmm1, xmm2, 0xf2);
-
+
real0 = _mm_add_ps(xmm4, real0);
real1 = _mm_add_ps(xmm5, real1);
im0 = _mm_add_ps(xmm6, im0);
im1 = _mm_add_ps(xmm7, im1);
-
+
}
-
-
+
+
real1 = _mm_xor_ps(real1, (__m128)neg);
-
-
+
+
im0 = _mm_add_ps(im0, im1);
real0 = _mm_add_ps(real0, real1);
-
+
im0 = _mm_add_ps(im0, real0);
-
+
_mm_storel_pi(p_result, im0);
-
+
for(i = bound * 4; i < (bound * 4) + leftovers; ++i) {
-
+
*result += input[i] * taps[i];
}
*/
-}
+}
#endif /*LV_HAVE_SSE4_1*/
diff --git a/volk/include/volk/volk_32fc_x2_multiply_32fc_a.h b/volk/include/volk/volk_32fc_x2_multiply_32fc_a.h
index aec8bd716..f79ddb59b 100644
--- a/volk/include/volk/volk_32fc_x2_multiply_32fc_a.h
+++ b/volk/include/volk/volk_32fc_x2_multiply_32fc_a.h
@@ -24,21 +24,21 @@ static inline void volk_32fc_x2_multiply_32fc_a_sse3(lv_32fc_t* cVector, const l
const lv_32fc_t* a = aVector;
const lv_32fc_t* b = bVector;
for(;number < halfPoints; number++){
-
+
x = _mm_load_ps((float*)a); // Load the ar + ai, br + bi as ar,ai,br,bi
y = _mm_load_ps((float*)b); // Load the cr + ci, dr + di as cr,ci,dr,di
-
+
yl = _mm_moveldup_ps(y); // Load yl with cr,cr,dr,dr
yh = _mm_movehdup_ps(y); // Load yh with ci,ci,di,di
-
+
tmp1 = _mm_mul_ps(x,yl); // tmp1 = ar*cr,ai*cr,br*dr,bi*dr
-
+
x = _mm_shuffle_ps(x,x,0xB1); // Re-arrange x to be ai,ar,bi,br
-
+
tmp2 = _mm_mul_ps(x,yh); // tmp2 = ai*ci,ar*ci,bi*di,br*di
-
+
z = _mm_addsub_ps(tmp1,tmp2); // ar*cr-ai*ci, ai*cr+ar*ci, br*dr-bi*di, bi*dr+br*di
-
+
_mm_store_ps((float*)c,z); // Store the results back into the C container
a += 2;
diff --git a/volk/include/volk/volk_32fc_x2_multiply_32fc_u.h b/volk/include/volk/volk_32fc_x2_multiply_32fc_u.h
index 729c1a4ad..a998d6184 100644
--- a/volk/include/volk/volk_32fc_x2_multiply_32fc_u.h
+++ b/volk/include/volk/volk_32fc_x2_multiply_32fc_u.h
@@ -25,21 +25,21 @@ static inline void volk_32fc_x2_multiply_32fc_u_sse3(lv_32fc_t* cVector, const l
const lv_32fc_t* b = bVector;
for(;number < halfPoints; number++){
-
+
x = _mm_loadu_ps((float*)a); // Load the ar + ai, br + bi as ar,ai,br,bi
y = _mm_loadu_ps((float*)b); // Load the cr + ci, dr + di as cr,ci,dr,di
-
+
yl = _mm_moveldup_ps(y); // Load yl with cr,cr,dr,dr
yh = _mm_movehdup_ps(y); // Load yh with ci,ci,di,di
-
+
tmp1 = _mm_mul_ps(x,yl); // tmp1 = ar*cr,ai*cr,br*dr,bi*dr
-
+
x = _mm_shuffle_ps(x,x,0xB1); // Re-arrange x to be ai,ar,bi,br
-
+
tmp2 = _mm_mul_ps(x,yh); // tmp2 = ai*ci,ar*ci,bi*di,br*di
-
+
z = _mm_addsub_ps(tmp1,tmp2); // ar*cr-ai*ci, ai*cr+ar*ci, br*dr-bi*di, bi*dr+br*di
-
+
_mm_storeu_ps((float*)c,z); // Store the results back into the C container
a += 2;
diff --git a/volk/include/volk/volk_32fc_x2_multiply_conjugate_32fc_a.h b/volk/include/volk/volk_32fc_x2_multiply_conjugate_32fc_a.h
index 2a1bcbce0..2755192e9 100644
--- a/volk/include/volk/volk_32fc_x2_multiply_conjugate_32fc_a.h
+++ b/volk/include/volk/volk_32fc_x2_multiply_conjugate_32fc_a.h
@@ -27,23 +27,23 @@ static inline void volk_32fc_x2_multiply_conjugate_32fc_a_sse3(lv_32fc_t* cVecto
__m128 conjugator = _mm_setr_ps(0, -0.f, 0, -0.f);
for(;number < halfPoints; number++){
-
+
x = _mm_load_ps((float*)a); // Load the ar + ai, br + bi as ar,ai,br,bi
y = _mm_load_ps((float*)b); // Load the cr + ci, dr + di as cr,ci,dr,di
y = _mm_xor_ps(y, conjugator); // conjugate y
-
+
yl = _mm_moveldup_ps(y); // Load yl with cr,cr,dr,dr
yh = _mm_movehdup_ps(y); // Load yh with ci,ci,di,di
-
+
tmp1 = _mm_mul_ps(x,yl); // tmp1 = ar*cr,ai*cr,br*dr,bi*dr
-
+
x = _mm_shuffle_ps(x,x,0xB1); // Re-arrange x to be ai,ar,bi,br
-
+
tmp2 = _mm_mul_ps(x,yh); // tmp2 = ai*ci,ar*ci,bi*di,br*di
-
+
z = _mm_addsub_ps(tmp1,tmp2); // ar*cr-ai*ci, ai*cr+ar*ci, br*dr-bi*di, bi*dr+br*di
-
+
_mm_store_ps((float*)c,z); // Store the results back into the C container
a += 2;
diff --git a/volk/include/volk/volk_32fc_x2_multiply_conjugate_32fc_u.h b/volk/include/volk/volk_32fc_x2_multiply_conjugate_32fc_u.h
index 92f6a051e..09dcd635b 100644
--- a/volk/include/volk/volk_32fc_x2_multiply_conjugate_32fc_u.h
+++ b/volk/include/volk/volk_32fc_x2_multiply_conjugate_32fc_u.h
@@ -27,23 +27,23 @@ static inline void volk_32fc_x2_multiply_conjugate_32fc_u_sse3(lv_32fc_t* cVecto
__m128 conjugator = _mm_setr_ps(0, -0.f, 0, -0.f);
for(;number < halfPoints; number++){
-
+
x = _mm_loadu_ps((float*)a); // Load the ar + ai, br + bi as ar,ai,br,bi
y = _mm_loadu_ps((float*)b); // Load the cr + ci, dr + di as cr,ci,dr,di
y = _mm_xor_ps(y, conjugator); // conjugate y
-
+
yl = _mm_moveldup_ps(y); // Load yl with cr,cr,dr,dr
yh = _mm_movehdup_ps(y); // Load yh with ci,ci,di,di
-
+
tmp1 = _mm_mul_ps(x,yl); // tmp1 = ar*cr,ai*cr,br*dr,bi*dr
-
+
x = _mm_shuffle_ps(x,x,0xB1); // Re-arrange x to be ai,ar,bi,br
-
+
tmp2 = _mm_mul_ps(x,yh); // tmp2 = ai*ci,ar*ci,bi*di,br*di
-
+
z = _mm_addsub_ps(tmp1,tmp2); // ar*cr-ai*ci, ai*cr+ar*ci, br*dr-bi*di, bi*dr+br*di
-
+
_mm_storeu_ps((float*)c,z); // Store the results back into the C container
a += 2;
diff --git a/volk/include/volk/volk_32fc_x2_s32f_square_dist_scalar_mult_32f_a.h b/volk/include/volk/volk_32fc_x2_s32f_square_dist_scalar_mult_32f_a.h
index 2d5f36b27..75eb9173d 100644
--- a/volk/include/volk/volk_32fc_x2_s32f_square_dist_scalar_mult_32f_a.h
+++ b/volk/include/volk/volk_32fc_x2_s32f_square_dist_scalar_mult_32f_a.h
@@ -11,7 +11,7 @@
#include<pmmintrin.h>
static inline void volk_32fc_x2_s32f_square_dist_scalar_mult_32f_a_sse3(float* target, lv_32fc_t* src0, lv_32fc_t* points, float scalar, unsigned int num_bytes) {
-
+
__m128 xmm1, xmm2, xmm3, xmm4, xmm5, xmm6, xmm7, xmm8;
@@ -23,31 +23,31 @@ static inline void volk_32fc_x2_s32f_square_dist_scalar_mult_32f_a_sse3(float* t
int leftovers0 = (num_bytes >> 4) & 1;
int leftovers1 = (num_bytes >> 3) & 1;
int i = 0;
-
-
-
+
+
+
xmm1 = _mm_setzero_ps();
- xmm1 = _mm_loadl_pi(xmm1, (__m64*)src0);
+ xmm1 = _mm_loadl_pi(xmm1, (__m64*)src0);
xmm2 = _mm_load_ps((float*)&points[0]);
xmm8 = _mm_load1_ps(&scalar);
xmm1 = _mm_movelh_ps(xmm1, xmm1);
xmm3 = _mm_load_ps((float*)&points[2]);
-
-
+
+
for(; i < bound - 1; ++i) {
-
+
xmm4 = _mm_sub_ps(xmm1, xmm2);
xmm5 = _mm_sub_ps(xmm1, xmm3);
points += 4;
xmm6 = _mm_mul_ps(xmm4, xmm4);
xmm7 = _mm_mul_ps(xmm5, xmm5);
-
+
xmm2 = _mm_load_ps((float*)&points[0]);
-
+
xmm4 = _mm_hadd_ps(xmm6, xmm7);
xmm3 = _mm_load_ps((float*)&points[2]);
-
+
xmm4 = _mm_mul_ps(xmm4, xmm8);
_mm_store_ps(target, xmm4);
@@ -55,46 +55,46 @@ static inline void volk_32fc_x2_s32f_square_dist_scalar_mult_32f_a_sse3(float* t
target += 4;
}
-
+
xmm4 = _mm_sub_ps(xmm1, xmm2);
xmm5 = _mm_sub_ps(xmm1, xmm3);
-
-
+
+
points += 4;
xmm6 = _mm_mul_ps(xmm4, xmm4);
xmm7 = _mm_mul_ps(xmm5, xmm5);
-
+
xmm4 = _mm_hadd_ps(xmm6, xmm7);
-
+
xmm4 = _mm_mul_ps(xmm4, xmm8);
-
+
_mm_store_ps(target, xmm4);
-
+
target += 4;
-
+
for(i = 0; i < leftovers0; ++i) {
-
+
xmm2 = _mm_load_ps((float*)&points[0]);
-
+
xmm4 = _mm_sub_ps(xmm1, xmm2);
-
+
points += 2;
-
+
xmm6 = _mm_mul_ps(xmm4, xmm4);
xmm4 = _mm_hadd_ps(xmm6, xmm6);
xmm4 = _mm_mul_ps(xmm4, xmm8);
-
+
_mm_storeh_pi((__m64*)target, xmm4);
target += 2;
}
for(i = 0; i < leftovers1; ++i) {
-
+
diff = src0[0] - points[0];
sq_dist = scalar * (lv_creal(diff) * lv_creal(diff) + lv_cimag(diff) * lv_cimag(diff));
@@ -109,13 +109,13 @@ static inline void volk_32fc_x2_s32f_square_dist_scalar_mult_32f_a_sse3(float* t
static inline void volk_32fc_x2_s32f_square_dist_scalar_mult_32f_a_generic(float* target, lv_32fc_t* src0, lv_32fc_t* points, float scalar, unsigned int num_bytes) {
lv_32fc_t diff;
float sq_dist;
- unsigned int i = 0;
-
+ unsigned int i = 0;
+
for(; i < num_bytes >> 3; ++i) {
diff = src0[0] - points[i];
sq_dist = scalar * (lv_creal(diff) * lv_creal(diff) + lv_cimag(diff) * lv_cimag(diff));
-
+
target[i] = sq_dist;
}
}
diff --git a/volk/include/volk/volk_32fc_x2_square_dist_32f_a.h b/volk/include/volk/volk_32fc_x2_square_dist_32f_a.h
index 6a4a08ca5..b819eaffd 100644
--- a/volk/include/volk/volk_32fc_x2_square_dist_32f_a.h
+++ b/volk/include/volk/volk_32fc_x2_square_dist_32f_a.h
@@ -10,7 +10,7 @@
#include<pmmintrin.h>
static inline void volk_32fc_x2_square_dist_32f_a_sse3(float* target, lv_32fc_t* src0, lv_32fc_t* points, unsigned int num_bytes) {
-
+
__m128 xmm1, xmm2, xmm3, xmm4, xmm5, xmm6, xmm7;
@@ -22,11 +22,11 @@ static inline void volk_32fc_x2_square_dist_32f_a_sse3(float* target, lv_32fc_t*
int i = 0;
xmm1 = _mm_setzero_ps();
- xmm1 = _mm_loadl_pi(xmm1, (__m64*)src0);
+ xmm1 = _mm_loadl_pi(xmm1, (__m64*)src0);
xmm2 = _mm_load_ps((float*)&points[0]);
xmm1 = _mm_movelh_ps(xmm1, xmm1);
xmm3 = _mm_load_ps((float*)&points[2]);
-
+
for(; i < bound - 1; ++i) {
xmm4 = _mm_sub_ps(xmm1, xmm2);
@@ -34,9 +34,9 @@ static inline void volk_32fc_x2_square_dist_32f_a_sse3(float* target, lv_32fc_t*
points += 4;
xmm6 = _mm_mul_ps(xmm4, xmm4);
xmm7 = _mm_mul_ps(xmm5, xmm5);
-
+
xmm2 = _mm_load_ps((float*)&points[0]);
-
+
xmm4 = _mm_hadd_ps(xmm6, xmm7);
xmm3 = _mm_load_ps((float*)&points[2]);
@@ -46,41 +46,41 @@ static inline void volk_32fc_x2_square_dist_32f_a_sse3(float* target, lv_32fc_t*
target += 4;
}
-
+
xmm4 = _mm_sub_ps(xmm1, xmm2);
xmm5 = _mm_sub_ps(xmm1, xmm3);
-
-
+
+
points += 4;
xmm6 = _mm_mul_ps(xmm4, xmm4);
xmm7 = _mm_mul_ps(xmm5, xmm5);
-
+
xmm4 = _mm_hadd_ps(xmm6, xmm7);
-
+
_mm_store_ps(target, xmm4);
-
+
target += 4;
for(i = 0; i < leftovers0; ++i) {
-
+
xmm2 = _mm_load_ps((float*)&points[0]);
-
+
xmm4 = _mm_sub_ps(xmm1, xmm2);
-
+
points += 2;
-
+
xmm6 = _mm_mul_ps(xmm4, xmm4);
xmm4 = _mm_hadd_ps(xmm6, xmm6);
-
+
_mm_storeh_pi((__m64*)target, xmm4);
target += 2;
}
for(i = 0; i < leftovers1; ++i) {
-
+
diff = src0[0] - points[0];
sq_dist = lv_creal(diff) * lv_creal(diff) + lv_cimag(diff) * lv_cimag(diff);
@@ -95,13 +95,13 @@ static inline void volk_32fc_x2_square_dist_32f_a_sse3(float* target, lv_32fc_t*
static inline void volk_32fc_x2_square_dist_32f_a_generic(float* target, lv_32fc_t* src0, lv_32fc_t* points, unsigned int num_bytes) {
lv_32fc_t diff;
float sq_dist;
- unsigned int i = 0;
-
+ unsigned int i = 0;
+
for(; i < num_bytes >> 3; ++i) {
diff = src0[0] - points[i];
sq_dist = lv_creal(diff) * lv_creal(diff) + lv_cimag(diff) * lv_cimag(diff);
-
+
target[i] = sq_dist;
}
}
diff --git a/volk/include/volk/volk_32i_s32f_convert_32f_a.h b/volk/include/volk/volk_32i_s32f_convert_32f_a.h
index 558142869..8f4123d71 100644
--- a/volk/include/volk/volk_32i_s32f_convert_32f_a.h
+++ b/volk/include/volk/volk_32i_s32f_convert_32f_a.h
@@ -17,7 +17,7 @@
static inline void volk_32i_s32f_convert_32f_a_sse2(float* outputVector, const int32_t* inputVector, const float scalar, unsigned int num_points){
unsigned int number = 0;
const unsigned int quarterPoints = num_points / 4;
-
+
float* outputVectorPtr = outputVector;
const float iScalar = 1.0 / scalar;
__m128 invScalar = _mm_set_ps1(iScalar);
diff --git a/volk/include/volk/volk_32i_s32f_convert_32f_u.h b/volk/include/volk/volk_32i_s32f_convert_32f_u.h
index d8afd218c..b3a8ab201 100644
--- a/volk/include/volk/volk_32i_s32f_convert_32f_u.h
+++ b/volk/include/volk/volk_32i_s32f_convert_32f_u.h
@@ -18,7 +18,7 @@
static inline void volk_32i_s32f_convert_32f_u_sse2(float* outputVector, const int32_t* inputVector, const float scalar, unsigned int num_points){
unsigned int number = 0;
const unsigned int quarterPoints = num_points / 4;
-
+
float* outputVectorPtr = outputVector;
const float iScalar = 1.0 / scalar;
__m128 invScalar = _mm_set_ps1(iScalar);
diff --git a/volk/include/volk/volk_32i_x2_and_32i_a.h b/volk/include/volk/volk_32i_x2_and_32i_a.h
index dcd63d98e..e5330847b 100644
--- a/volk/include/volk/volk_32i_x2_and_32i_a.h
+++ b/volk/include/volk/volk_32i_x2_and_32i_a.h
@@ -23,12 +23,12 @@ static inline void volk_32i_x2_and_32i_a_sse(int32_t* cVector, const int32_t* aV
__m128 aVal, bVal, cVal;
for(;number < quarterPoints; number++){
-
- aVal = _mm_load_ps(aPtr);
+
+ aVal = _mm_load_ps(aPtr);
bVal = _mm_load_ps(bPtr);
-
- cVal = _mm_and_ps(aVal, bVal);
-
+
+ cVal = _mm_and_ps(aVal, bVal);
+
_mm_store_ps(cPtr,cVal); // Store the results back into the C container
aPtr += 4;
diff --git a/volk/include/volk/volk_32i_x2_or_32i_a.h b/volk/include/volk/volk_32i_x2_or_32i_a.h
index 243e8178c..24045894c 100644
--- a/volk/include/volk/volk_32i_x2_or_32i_a.h
+++ b/volk/include/volk/volk_32i_x2_or_32i_a.h
@@ -23,12 +23,12 @@ static inline void volk_32i_x2_or_32i_a_sse(int32_t* cVector, const int32_t* aVe
__m128 aVal, bVal, cVal;
for(;number < quarterPoints; number++){
-
- aVal = _mm_load_ps(aPtr);
+
+ aVal = _mm_load_ps(aPtr);
bVal = _mm_load_ps(bPtr);
-
- cVal = _mm_or_ps(aVal, bVal);
-
+
+ cVal = _mm_or_ps(aVal, bVal);
+
_mm_store_ps(cPtr,cVal); // Store the results back into the C container
aPtr += 4;
diff --git a/volk/include/volk/volk_32u_byteswap_a.h b/volk/include/volk/volk_32u_byteswap_a.h
index b88848096..71ae027d3 100644
--- a/volk/include/volk/volk_32u_byteswap_a.h
+++ b/volk/include/volk/volk_32u_byteswap_a.h
@@ -39,9 +39,9 @@ static inline void volk_32u_byteswap_a_sse2(uint32_t* intsToSwap, unsigned int n
_mm_store_si128((__m128i*)inputPtr, output);
inputPtr += 4;
}
-
+
// Byteswap any remaining points:
- number = quarterPoints*4;
+ number = quarterPoints*4;
for(; number < num_points; number++){
uint32_t outputVal = *inputPtr;
outputVal = (((outputVal >> 24) & 0xff) | ((outputVal >> 8) & 0x0000ff00) | ((outputVal << 8) & 0x00ff0000) | ((outputVal << 24) & 0xff000000));
@@ -64,7 +64,7 @@ static inline void volk_32u_byteswap_a_generic(uint32_t* intsToSwap, unsigned in
for(point = 0; point < num_points; point++){
uint32_t output = *inputPtr;
output = (((output >> 24) & 0xff) | ((output >> 8) & 0x0000ff00) | ((output << 8) & 0x00ff0000) | ((output << 24) & 0xff000000));
-
+
*inputPtr = output;
inputPtr++;
}
diff --git a/volk/include/volk/volk_64f_convert_32f_a.h b/volk/include/volk/volk_64f_convert_32f_a.h
index 2126e4f95..11d51702b 100644
--- a/volk/include/volk/volk_64f_convert_32f_a.h
+++ b/volk/include/volk/volk_64f_convert_32f_a.h
@@ -16,7 +16,7 @@ static inline void volk_64f_convert_32f_a_sse2(float* outputVector, const double
unsigned int number = 0;
const unsigned int quarterPoints = num_points / 4;
-
+
const double* inputVectorPtr = (const double*)inputVector;
float* outputVectorPtr = outputVector;
__m128 ret, ret2;
@@ -25,7 +25,7 @@ static inline void volk_64f_convert_32f_a_sse2(float* outputVector, const double
for(;number < quarterPoints; number++){
inputVal1 = _mm_load_pd(inputVectorPtr); inputVectorPtr += 2;
inputVal2 = _mm_load_pd(inputVectorPtr); inputVectorPtr += 2;
-
+
ret = _mm_cvtpd_ps(inputVal1);
ret2 = _mm_cvtpd_ps(inputVal2);
@@ -35,7 +35,7 @@ static inline void volk_64f_convert_32f_a_sse2(float* outputVector, const double
outputVectorPtr += 4;
}
- number = quarterPoints * 4;
+ number = quarterPoints * 4;
for(; number < num_points; number++){
outputVector[number] = (float)(inputVector[number]);
}
diff --git a/volk/include/volk/volk_64f_convert_32f_u.h b/volk/include/volk/volk_64f_convert_32f_u.h
index 5c323230a..31dc5b5fe 100644
--- a/volk/include/volk/volk_64f_convert_32f_u.h
+++ b/volk/include/volk/volk_64f_convert_32f_u.h
@@ -16,7 +16,7 @@ static inline void volk_64f_convert_32f_u_sse2(float* outputVector, const double
unsigned int number = 0;
const unsigned int quarterPoints = num_points / 4;
-
+
const double* inputVectorPtr = (const double*)inputVector;
float* outputVectorPtr = outputVector;
__m128 ret, ret2;
@@ -25,7 +25,7 @@ static inline void volk_64f_convert_32f_u_sse2(float* outputVector, const double
for(;number < quarterPoints; number++){
inputVal1 = _mm_loadu_pd(inputVectorPtr); inputVectorPtr += 2;
inputVal2 = _mm_loadu_pd(inputVectorPtr); inputVectorPtr += 2;
-
+
ret = _mm_cvtpd_ps(inputVal1);
ret2 = _mm_cvtpd_ps(inputVal2);
@@ -35,7 +35,7 @@ static inline void volk_64f_convert_32f_u_sse2(float* outputVector, const double
outputVectorPtr += 4;
}
- number = quarterPoints * 4;
+ number = quarterPoints * 4;
for(; number < num_points; number++){
outputVector[number] = (float)(inputVector[number]);
}
diff --git a/volk/include/volk/volk_64f_x2_max_64f_a.h b/volk/include/volk/volk_64f_x2_max_64f_a.h
index 61a704c52..33aae6d10 100644
--- a/volk/include/volk/volk_64f_x2_max_64f_a.h
+++ b/volk/include/volk/volk_64f_x2_max_64f_a.h
@@ -23,12 +23,12 @@ static inline void volk_64f_x2_max_64f_a_sse2(double* cVector, const double* aVe
__m128d aVal, bVal, cVal;
for(;number < halfPoints; number++){
-
- aVal = _mm_load_pd(aPtr);
+
+ aVal = _mm_load_pd(aPtr);
bVal = _mm_load_pd(bPtr);
-
- cVal = _mm_max_pd(aVal, bVal);
-
+
+ cVal = _mm_max_pd(aVal, bVal);
+
_mm_store_pd(cPtr,cVal); // Store the results back into the C container
aPtr += 2;
diff --git a/volk/include/volk/volk_64f_x2_min_64f_a.h b/volk/include/volk/volk_64f_x2_min_64f_a.h
index 148b72c59..25d8b4c98 100644
--- a/volk/include/volk/volk_64f_x2_min_64f_a.h
+++ b/volk/include/volk/volk_64f_x2_min_64f_a.h
@@ -23,12 +23,12 @@ static inline void volk_64f_x2_min_64f_a_sse2(double* cVector, const double* aVe
__m128d aVal, bVal, cVal;
for(;number < halfPoints; number++){
-
- aVal = _mm_load_pd(aPtr);
+
+ aVal = _mm_load_pd(aPtr);
bVal = _mm_load_pd(bPtr);
-
- cVal = _mm_min_pd(aVal, bVal);
-
+
+ cVal = _mm_min_pd(aVal, bVal);
+
_mm_store_pd(cPtr,cVal); // Store the results back into the C container
aPtr += 2;
diff --git a/volk/include/volk/volk_64u_byteswap_a.h b/volk/include/volk/volk_64u_byteswap_a.h
index d4fc74a6e..3d1d87623 100644
--- a/volk/include/volk/volk_64u_byteswap_a.h
+++ b/volk/include/volk/volk_64u_byteswap_a.h
@@ -34,7 +34,7 @@ static inline void volk_64u_byteswap_a_sse2(uint64_t* intsToSwap, unsigned int n
output = _mm_or_si128(output, byte2);
byte3 = _mm_and_si128(byte3, byte3mask);
output = _mm_or_si128(output, byte3);
-
+
// Reorder the two words
output = _mm_shuffle_epi32(output, _MM_SHUFFLE(2, 3, 0, 1));
@@ -42,17 +42,17 @@ static inline void volk_64u_byteswap_a_sse2(uint64_t* intsToSwap, unsigned int n
_mm_store_si128((__m128i*)inputPtr, output);
inputPtr += 4;
}
-
+
// Byteswap any remaining points:
- number = halfPoints*2;
+ number = halfPoints*2;
for(; number < num_points; number++){
uint32_t output1 = *inputPtr;
uint32_t output2 = inputPtr[1];
-
+
output1 = (((output1 >> 24) & 0xff) | ((output1 >> 8) & 0x0000ff00) | ((output1 << 8) & 0x00ff0000) | ((output1 << 24) & 0xff000000));
-
+
output2 = (((output2 >> 24) & 0xff) | ((output2 >> 8) & 0x0000ff00) | ((output2 << 8) & 0x00ff0000) | ((output2 << 24) & 0xff000000));
-
+
*inputPtr++ = output2;
*inputPtr++ = output1;
}
@@ -71,11 +71,11 @@ static inline void volk_64u_byteswap_a_generic(uint64_t* intsToSwap, unsigned in
for(point = 0; point < num_points; point++){
uint32_t output1 = *inputPtr;
uint32_t output2 = inputPtr[1];
-
+
output1 = (((output1 >> 24) & 0xff) | ((output1 >> 8) & 0x0000ff00) | ((output1 << 8) & 0x00ff0000) | ((output1 << 24) & 0xff000000));
-
+
output2 = (((output2 >> 24) & 0xff) | ((output2 >> 8) & 0x0000ff00) | ((output2 << 8) & 0x00ff0000) | ((output2 << 24) & 0xff000000));
-
+
*inputPtr++ = output2;
*inputPtr++ = output1;
}
diff --git a/volk/include/volk/volk_64u_popcnt_a.h b/volk/include/volk/volk_64u_popcnt_a.h
index 4683f1e38..7d7359ccf 100644
--- a/volk/include/volk/volk_64u_popcnt_a.h
+++ b/volk/include/volk/volk_64u_popcnt_a.h
@@ -11,7 +11,7 @@
static inline void volk_64u_popcnt_a_generic(uint64_t* ret, const uint64_t value) {
//const uint32_t* valueVector = (const uint32_t*)&value;
-
+
// This is faster than a lookup table
//uint32_t retVal = valueVector[0];
uint32_t retVal = (uint32_t)(value && 0x00000000FFFFFFFF);
diff --git a/volk/include/volk/volk_8i_s32f_convert_32f_a.h b/volk/include/volk/volk_8i_s32f_convert_32f_a.h
index 7f2623ac6..02a7f356e 100644
--- a/volk/include/volk/volk_8i_s32f_convert_32f_a.h
+++ b/volk/include/volk/volk_8i_s32f_convert_32f_a.h
@@ -17,7 +17,7 @@
static inline void volk_8i_s32f_convert_32f_a_sse4_1(float* outputVector, const int8_t* inputVector, const float scalar, unsigned int num_points){
unsigned int number = 0;
const unsigned int sixteenthPoints = num_points / 16;
-
+
float* outputVectorPtr = outputVector;
const float iScalar = 1.0 / scalar;
__m128 invScalar = _mm_set_ps1(iScalar);
diff --git a/volk/include/volk/volk_8i_s32f_convert_32f_u.h b/volk/include/volk/volk_8i_s32f_convert_32f_u.h
index 3cd6bb67c..8bb2c0d1a 100644
--- a/volk/include/volk/volk_8i_s32f_convert_32f_u.h
+++ b/volk/include/volk/volk_8i_s32f_convert_32f_u.h
@@ -18,7 +18,7 @@
static inline void volk_8i_s32f_convert_32f_u_sse4_1(float* outputVector, const int8_t* inputVector, const float scalar, unsigned int num_points){
unsigned int number = 0;
const unsigned int sixteenthPoints = num_points / 16;
-
+
float* outputVectorPtr = outputVector;
const float iScalar = 1.0 / scalar;
__m128 invScalar = _mm_set_ps1( iScalar );
diff --git a/volk/include/volk/volk_8ic_s32f_deinterleave_32f_x2_a.h b/volk/include/volk/volk_8ic_s32f_deinterleave_32f_x2_a.h
index b723c6f8b..d82da59fb 100644
--- a/volk/include/volk/volk_8ic_s32f_deinterleave_32f_x2_a.h
+++ b/volk/include/volk/volk_8ic_s32f_deinterleave_32f_x2_a.h
@@ -20,7 +20,7 @@ static inline void volk_8ic_s32f_deinterleave_32f_x2_a_sse4_1(float* iBuffer, fl
float* qBufferPtr = qBuffer;
unsigned int number = 0;
- const unsigned int eighthPoints = num_points / 8;
+ const unsigned int eighthPoints = num_points / 8;
__m128 iFloatValue, qFloatValue;
const float iScalar= 1.0 / scalar;
@@ -71,7 +71,7 @@ static inline void volk_8ic_s32f_deinterleave_32f_x2_a_sse4_1(float* iBuffer, fl
*iBufferPtr++ = (float)(*complexVectorPtr++) * iScalar;
*qBufferPtr++ = (float)(*complexVectorPtr++) * iScalar;
}
-
+
}
#endif /* LV_HAVE_SSE4_1 */
@@ -90,7 +90,7 @@ static inline void volk_8ic_s32f_deinterleave_32f_x2_a_sse(float* iBuffer, float
float* qBufferPtr = qBuffer;
unsigned int number = 0;
- const unsigned int quarterPoints = num_points / 4;
+ const unsigned int quarterPoints = num_points / 4;
__m128 cplxValue1, cplxValue2, iValue, qValue;
__m128 invScalar = _mm_set_ps1(1.0/scalar);
@@ -103,7 +103,7 @@ static inline void volk_8ic_s32f_deinterleave_32f_x2_a_sse(float* iBuffer, float
floatBuffer[1] = (float)(complexVectorPtr[1]);
floatBuffer[2] = (float)(complexVectorPtr[2]);
floatBuffer[3] = (float)(complexVectorPtr[3]);
-
+
floatBuffer[4] = (float)(complexVectorPtr[4]);
floatBuffer[5] = (float)(complexVectorPtr[5]);
floatBuffer[6] = (float)(complexVectorPtr[6]);
diff --git a/volk/include/volk/volk_8ic_s32f_deinterleave_real_32f_a.h b/volk/include/volk/volk_8ic_s32f_deinterleave_real_32f_a.h
index 74073f5a6..b2c15d3a3 100644
--- a/volk/include/volk/volk_8ic_s32f_deinterleave_real_32f_a.h
+++ b/volk/include/volk/volk_8ic_s32f_deinterleave_real_32f_a.h
@@ -18,7 +18,7 @@ static inline void volk_8ic_s32f_deinterleave_real_32f_a_sse4_1(float* iBuffer,
float* iBufferPtr = iBuffer;
unsigned int number = 0;
- const unsigned int eighthPoints = num_points / 8;
+ const unsigned int eighthPoints = num_points / 8;
__m128 iFloatValue;
const float iScalar= 1.0 / scalar;
@@ -57,7 +57,7 @@ static inline void volk_8ic_s32f_deinterleave_real_32f_a_sse4_1(float* iBuffer,
*iBufferPtr++ = (float)(*complexVectorPtr++) * iScalar;
complexVectorPtr++;
}
-
+
}
#endif /* LV_HAVE_SSE4_1 */
@@ -75,7 +75,7 @@ static inline void volk_8ic_s32f_deinterleave_real_32f_a_sse(float* iBuffer, con
float* iBufferPtr = iBuffer;
unsigned int number = 0;
- const unsigned int quarterPoints = num_points / 4;
+ const unsigned int quarterPoints = num_points / 4;
__m128 iValue;
const float iScalar= 1.0 / scalar;
@@ -88,7 +88,7 @@ static inline void volk_8ic_s32f_deinterleave_real_32f_a_sse(float* iBuffer, con
floatBuffer[0] = (float)(*complexVectorPtr); complexVectorPtr += 2;
floatBuffer[1] = (float)(*complexVectorPtr); complexVectorPtr += 2;
floatBuffer[2] = (float)(*complexVectorPtr); complexVectorPtr += 2;
- floatBuffer[3] = (float)(*complexVectorPtr); complexVectorPtr += 2;
+ floatBuffer[3] = (float)(*complexVectorPtr); complexVectorPtr += 2;
iValue = _mm_load_ps(floatBuffer);
@@ -104,7 +104,7 @@ static inline void volk_8ic_s32f_deinterleave_real_32f_a_sse(float* iBuffer, con
*iBufferPtr++ = (float)(*complexVectorPtr++) * iScalar;
complexVectorPtr++;
}
-
+
}
#endif /* LV_HAVE_SSE */
diff --git a/volk/include/volk/volk_8ic_x2_multiply_conjugate_16ic_a.h b/volk/include/volk/volk_8ic_x2_multiply_conjugate_16ic_a.h
index 0c280eb6e..f85fdb999 100644
--- a/volk/include/volk/volk_8ic_x2_multiply_conjugate_16ic_a.h
+++ b/volk/include/volk/volk_8ic_x2_multiply_conjugate_16ic_a.h
@@ -23,15 +23,15 @@ static inline void volk_8ic_x2_multiply_conjugate_16ic_a_sse4_1(lv_16sc_t* cVect
const lv_8sc_t* a = aVector;
const lv_8sc_t* b = bVector;
__m128i conjugateSign = _mm_set_epi16(-1, 1, -1, 1, -1, 1, -1, 1);
-
+
for(;number < quarterPoints; number++){
// Convert into 8 bit values into 16 bit values
x = _mm_cvtepi8_epi16(_mm_loadl_epi64((__m128i*)a));
y = _mm_cvtepi8_epi16(_mm_loadl_epi64((__m128i*)b));
-
+
// Calculate the ar*cr - ai*(-ci) portions
realz = _mm_madd_epi16(x,y);
-
+
// Calculate the complex conjugate of the cr + ci j values
y = _mm_sign_epi16(y, conjugateSign);
@@ -47,7 +47,7 @@ static inline void volk_8ic_x2_multiply_conjugate_16ic_a_sse4_1(lv_16sc_t* cVect
b += 4;
c += 4;
}
-
+
number = quarterPoints * 4;
int16_t* c16Ptr = (int16_t*)&cVector[number];
int8_t* a8Ptr = (int8_t*)&aVector[number];
diff --git a/volk/include/volk/volk_8ic_x2_s32f_multiply_conjugate_32fc_a.h b/volk/include/volk/volk_8ic_x2_s32f_multiply_conjugate_32fc_a.h
index a2c2b04f6..4b16171ce 100644
--- a/volk/include/volk/volk_8ic_x2_s32f_multiply_conjugate_32fc_a.h
+++ b/volk/include/volk/volk_8ic_x2_s32f_multiply_conjugate_32fc_a.h
@@ -80,7 +80,7 @@ static inline void volk_8ic_x2_s32f_multiply_conjugate_32fc_a_sse4_1(lv_32fc_t*
float bImag = (float)*b8Ptr++;
lv_32fc_t bVal = lv_cmake( bReal, -bImag );
lv_32fc_t temp = aVal * bVal;
-
+
*cFloatPtr++ = lv_creal(temp) / scalar;
*cFloatPtr++ = lv_cimag(temp) / scalar;
}
@@ -109,7 +109,7 @@ static inline void volk_8ic_x2_s32f_multiply_conjugate_32fc_a_generic(lv_32fc_t*
float bImag = (float)*b8Ptr++;
lv_32fc_t bVal = lv_cmake( bReal, -bImag );
lv_32fc_t temp = aVal * bVal;
-
+
*cPtr++ = (lv_creal(temp) * invScalar);
*cPtr++ = (lv_cimag(temp) * invScalar);
}
diff --git a/volk/lib/gcc_x86_cpuid.h b/volk/lib/gcc_x86_cpuid.h
index 2d0916fb3..98eeb33a3 100644
--- a/volk/lib/gcc_x86_cpuid.h
+++ b/volk/lib/gcc_x86_cpuid.h
@@ -5,16 +5,16 @@
* 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.
- *
+ *
* This file 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.
- *
+ *
* Under Section 7 of GPL version 3, you are granted additional
* permissions described in the GCC Runtime Library Exception, version
* 3.1, as published by the Free Software Foundation.
- *
+ *
* You should have received a copy of the GNU General Public License and
* a copy of the GCC Runtime Library Exception along with this program;
* see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
diff --git a/volk/lib/qa_16s_add_quad_aligned16.cc b/volk/lib/qa_16s_add_quad_aligned16.cc
index 5d5eb7e18..8da43b972 100644
--- a/volk/lib/qa_16s_add_quad_aligned16.cc
+++ b/volk/lib/qa_16s_add_quad_aligned16.cc
@@ -16,7 +16,7 @@ void qa_16s_add_quad_aligned16::t1() {
void qa_16s_add_quad_aligned16::t1() {
-
+
volk_environment_init();
clock_t start, end;
double total;
@@ -27,7 +27,7 @@ void qa_16s_add_quad_aligned16::t1() {
__VOLK_ATTR_ALIGNED(16) short input2[vlen];
__VOLK_ATTR_ALIGNED(16) short input3[vlen];
__VOLK_ATTR_ALIGNED(16) short input4[vlen];
-
+
__VOLK_ATTR_ALIGNED(16) short output0[vlen];
__VOLK_ATTR_ALIGNED(16) short output1[vlen];
__VOLK_ATTR_ALIGNED(16) short output2[vlen];
@@ -48,13 +48,13 @@ void qa_16s_add_quad_aligned16::t1() {
short minus3 = ((short) (rand() - (RAND_MAX/2))) >> 2;
short plus4 = ((short) (rand() - (RAND_MAX/2))) >> 2;
short minus4 = ((short) (rand() - (RAND_MAX/2))) >> 2;
-
+
input0[i] = plus0 - minus0;
input1[i] = plus1 - minus1;
input2[i] = plus2 - minus2;
input3[i] = plus3 - minus3;
input4[i] = plus4 - minus4;
-
+
}
printf("16s_add_quad_aligned\n");
@@ -76,7 +76,7 @@ void qa_16s_add_quad_aligned16::t1() {
//printf("inputs: %d, %d\n", input0[i*2], input0[i*2 + 1]);
//printf("generic... %d, ssse3... %d\n", output0[i], output1[i]);
}
-
+
for(int i = 0; i < vlen; ++i) {
//printf("%d...%d\n", output0[i], output01[i]);
CPPUNIT_ASSERT_EQUAL(output0[i], output01[i]);
diff --git a/volk/lib/qa_16s_branch_4_state_8_aligned16.cc b/volk/lib/qa_16s_branch_4_state_8_aligned16.cc
index 2e6e6a1a0..5a58569a1 100644
--- a/volk/lib/qa_16s_branch_4_state_8_aligned16.cc
+++ b/volk/lib/qa_16s_branch_4_state_8_aligned16.cc
@@ -22,17 +22,17 @@ void qa_16s_branch_4_state_8_aligned16::t1() {
static char permute2[16]__attribute__((aligned(16))) = {0x02, 0x03, 0x06, 0x07, 0x08, 0x09, 0x0c, 0x0d, 0x00, 0x01, 0x04, 0x05, 0x0a, 0x0b, 0x0e, 0x0f};
static char permute3[16]__attribute__((aligned(16))) = {0x00, 0x01, 0x04, 0x05, 0x0a, 0x0b, 0x0e, 0x0f, 0x02, 0x03, 0x06, 0x07, 0x08, 0x09, 0x0c, 0x0d};
static char* permuters[4] = {permute0, permute1, permute2, permute3};
-
+
unsigned int num_bytes = vlen << 1;
volk_environment_init();
clock_t start, end;
double total;
-
+
__VOLK_ATTR_ALIGNED(16) short target[vlen];
__VOLK_ATTR_ALIGNED(16) short target2[vlen];
__VOLK_ATTR_ALIGNED(16) short target3[vlen];
-
+
__VOLK_ATTR_ALIGNED(16) short src0[vlen];
__VOLK_ATTR_ALIGNED(16) short permute_indexes[vlen] = {
7, 5, 2, 0, 6, 4, 3, 1, 6, 4, 3, 1, 7, 5, 2, 0, 1, 3, 4, 6, 0, 2, 5, 7, 0, 2, 5, 7, 1, 3, 4, 6 };
@@ -45,29 +45,29 @@ void qa_16s_branch_4_state_8_aligned16::t1() {
__VOLK_ATTR_ALIGNED(16) short cntl3[vlen] = {
0xffff, 0xffff, 0x0000, 0x0000, 0xffff, 0xffff, 0x0000, 0x0000, 0x0000, 0x0000, 0xffff, 0xffff, 0x0000, 0x0000, 0xffff, 0xffff, 0xffff, 0xffff, 0x0000, 0x0000, 0xffff, 0xffff, 0x0000, 0x0000, 0x0000, 0x0000, 0xffff, 0xffff, 0x0000, 0x0000, 0xffff, 0xffff };
__VOLK_ATTR_ALIGNED(16) short scalars[4] = {1, 2, 3, 4};
-
-
+
+
for(int i = 0; i < vlen; ++i) {
src0[i] = i;
-
+
}
-
+
printf("16s_branch_4_state_8_aligned\n");
-
-
+
+
start = clock();
for(int i = 0; i < num_iters; ++i) {
volk_16s_permute_and_scalar_add_aligned16_manual(target, src0, permute_indexes, cntl0, cntl1, cntl2, cntl3, scalars, num_bytes, "sse2");
}
end = clock();
-
+
total = (double)(end-start)/(double)CLOCKS_PER_SEC;
printf("permute_and_scalar_add_time: %f\n", total);
-
-
+
+
start = clock();
for(int i = 0; i < num_iters; ++i) {
@@ -78,25 +78,25 @@ void qa_16s_branch_4_state_8_aligned16::t1() {
total = (double)(end-start)/(double)CLOCKS_PER_SEC;
printf("branch_4_state_8_time, ssse3: %f\n", total);
-
+
start = clock();
for(int i = 0; i < num_iters; ++i) {
volk_16s_branch_4_state_8_aligned16_manual(target3, src0, permuters, cntl2, cntl3, scalars, "generic");
}
end = clock();
-
+
total = (double)(end-start)/(double)CLOCKS_PER_SEC;
printf("permute_and_scalar_add_time, generic: %f\n", total);
-
-
-
+
+
+
for(int i = 0; i < vlen; ++i) {
printf("psa... %d, b4s8... %d\n", target[i], target3[i]);
}
-
+
for(int i = 0; i < vlen; ++i) {
-
+
CPPUNIT_ASSERT(target[i] == target2[i]);
CPPUNIT_ASSERT(target[i] == target3[i]);
}
diff --git a/volk/lib/qa_16s_permute_and_scalar_add_aligned16.cc b/volk/lib/qa_16s_permute_and_scalar_add_aligned16.cc
index 3cd4e906d..dadd2c580 100644
--- a/volk/lib/qa_16s_permute_and_scalar_add_aligned16.cc
+++ b/volk/lib/qa_16s_permute_and_scalar_add_aligned16.cc
@@ -16,13 +16,13 @@ void qa_16s_permute_and_scalar_add_aligned16::t1() {
void qa_16s_permute_and_scalar_add_aligned16::t1() {
const int vlen = 64;
-
+
unsigned int num_bytes = vlen << 1;
volk_environment_init();
clock_t start, end;
double total;
-
+
__VOLK_ATTR_ALIGNED(16) short target[vlen];
__VOLK_ATTR_ALIGNED(16) short target2[vlen];
__VOLK_ATTR_ALIGNED(16) short src0[vlen];
@@ -43,7 +43,7 @@ void qa_16s_permute_and_scalar_add_aligned16::t1() {
}
printf("16s_permute_and_scalar_add_aligned\n");
-
+
start = clock();
for(int i = 0; i < 100000; ++i) {
volk_16s_permute_and_scalar_add_aligned16_manual(target, src0, permute_indexes, cntl0, cntl1, cntl2, cntl3, scalars, num_bytes, "generic");
@@ -53,24 +53,24 @@ void qa_16s_permute_and_scalar_add_aligned16::t1() {
total = (double)(end-start)/(double)CLOCKS_PER_SEC;
printf("generic_time: %f\n", total);
-
+
start = clock();
for(int i = 0; i < 100000; ++i) {
volk_16s_permute_and_scalar_add_aligned16_manual(target2, src0, permute_indexes, cntl0, cntl1, cntl2, cntl3, scalars, num_bytes, "sse2");
}
end = clock();
-
+
total = (double)(end-start)/(double)CLOCKS_PER_SEC;
printf("sse2_time: %f\n", total);
-
-
+
+
for(int i = 0; i < vlen; ++i) {
//printf("generic... %d, sse2... %d\n", target[i], target2[i]);
}
-
+
for(int i = 0; i < vlen; ++i) {
-
+
CPPUNIT_ASSERT(target[i] == target2[i]);
}
}
diff --git a/volk/lib/qa_16s_quad_max_star_aligned16.cc b/volk/lib/qa_16s_quad_max_star_aligned16.cc
index 192a69e35..2a5dec44a 100644
--- a/volk/lib/qa_16s_quad_max_star_aligned16.cc
+++ b/volk/lib/qa_16s_quad_max_star_aligned16.cc
@@ -16,7 +16,7 @@ void qa_16s_quad_max_star_aligned16::t1() {
void qa_16s_quad_max_star_aligned16::t1() {
const int vlen = 34;
-
+
__VOLK_ATTR_ALIGNED(16) short input0[vlen];
__VOLK_ATTR_ALIGNED(16) short input1[vlen];
__VOLK_ATTR_ALIGNED(16) short input2[vlen];
@@ -50,9 +50,9 @@ void qa_16s_quad_max_star_aligned16::t1() {
for(int i = 0; i < vlen; ++i) {
printf("generic... %d, sse2... %d, inputs: %d, %d, %d, %d\n", output0[i], output1[i], input0[i], input1[i], input2[i], input3[i]);
}
-
+
for(int i = 0; i < vlen; ++i) {
-
+
CPPUNIT_ASSERT_EQUAL(output0[i], output1[i]);
}
}
diff --git a/volk/lib/qa_32f_fm_detect_aligned16.cc b/volk/lib/qa_32f_fm_detect_aligned16.cc
index a2e7a85be..4e792ec6c 100644
--- a/volk/lib/qa_32f_fm_detect_aligned16.cc
+++ b/volk/lib/qa_32f_fm_detect_aligned16.cc
@@ -15,18 +15,18 @@ void qa_32f_fm_detect_aligned16::t1() {
#else
void qa_32f_fm_detect_aligned16::t1() {
-
+
volk_environment_init();
clock_t start, end;
double total;
const int vlen = 3201;
const int ITERS = 10000;
__VOLK_ATTR_ALIGNED(16) float input0[vlen];
-
+
__VOLK_ATTR_ALIGNED(16) float output0[vlen];
__VOLK_ATTR_ALIGNED(16) float output01[vlen];
- for(int i = 0; i < vlen; ++i) {
+ for(int i = 0; i < vlen; ++i) {
input0[i] = ((float) (rand() - (RAND_MAX/2))) / static_cast<float>((RAND_MAX/2));
}
printf("32f_fm_detect_aligned\n");
@@ -51,7 +51,7 @@ void qa_32f_fm_detect_aligned16::t1() {
//printf("inputs: %d, %d\n", input0[i*2], input0[i*2 + 1]);
//printf("generic... %d, ssse3... %d\n", output0[i], output1[i]);
}
-
+
for(int i = 0; i < vlen; ++i) {
//printf("%d...%d\n", output0[i], output01[i]);
CPPUNIT_ASSERT_DOUBLES_EQUAL(output0[i], output01[i], fabs(output0[i]) * 1e-4);
diff --git a/volk/lib/qa_32f_index_max_aligned16.cc b/volk/lib/qa_32f_index_max_aligned16.cc
index a1c3d4cd1..2df206726 100644
--- a/volk/lib/qa_32f_index_max_aligned16.cc
+++ b/volk/lib/qa_32f_index_max_aligned16.cc
@@ -34,12 +34,12 @@ void qa_32f_index_max_aligned16::t1(){
void qa_32f_index_max_aligned16::t1(){
-
+
const int vlen = VEC_LEN;
-
+
volk_runtime_init();
-
+
volk_environment_init();
int ret;
@@ -47,8 +47,8 @@ void qa_32f_index_max_aligned16::t1(){
unsigned int* target_sse;
unsigned int* target_generic;
float* src0 ;
-
-
+
+
unsigned int i_target_sse4_1;
target_sse4_1 = &i_target_sse4_1;
unsigned int i_target_sse;
@@ -57,20 +57,20 @@ void qa_32f_index_max_aligned16::t1(){
target_generic = &i_target_generic;
ret = posix_memalign((void**)&src0, 16, vlen *sizeof(float));
-
+
random_floats((float*)src0, vlen);
-
+
printf("32f_index_max_aligned16\n");
clock_t start, end;
double total;
-
-
+
+
start = clock();
for(int k = 0; k < NUM_ITERS; ++k) {
volk_32f_index_max_aligned16_manual(target_generic, src0, vlen, "generic");
}
- end = clock();
+ end = clock();
total = (double)(end-start)/(double)CLOCKS_PER_SEC;
printf("generic time: %f\n", total);
@@ -78,25 +78,25 @@ void qa_32f_index_max_aligned16::t1(){
for(int k = 0; k < NUM_ITERS; ++k) {
volk_32f_index_max_aligned16_manual(target_sse, src0, vlen, "sse2");
}
-
- end = clock();
+
+ end = clock();
total = (double)(end-start)/(double)CLOCKS_PER_SEC;
printf("sse time: %f\n", total);
-
+
start = clock();
for(int k = 0; k < NUM_ITERS; ++k) {
get_volk_runtime()->volk_32f_index_max_aligned16(target_sse4_1, src0, vlen);
}
-
- end = clock();
+
+ end = clock();
total = (double)(end-start)/(double)CLOCKS_PER_SEC;
printf("sse4.1 time: %f\n", total);
-
-
+
+
printf("generic: %u, sse: %u, sse4.1: %u\n", target_generic[0], target_sse[0], target_sse4_1[0]);
CPPUNIT_ASSERT_EQUAL(target_generic[0], target_sse[0]);
CPPUNIT_ASSERT_EQUAL(target_generic[0], target_sse4_1[0]);
-
+
free(src0);
}
diff --git a/volk/lib/qa_32fc_index_max_aligned16.cc b/volk/lib/qa_32fc_index_max_aligned16.cc
index 4d83f1639..3859bcb52 100644
--- a/volk/lib/qa_32fc_index_max_aligned16.cc
+++ b/volk/lib/qa_32fc_index_max_aligned16.cc
@@ -33,36 +33,36 @@ void qa_32fc_index_max_aligned16::t1(){
void qa_32fc_index_max_aligned16::t1(){
-
+
const int vlen = VEC_LEN;
-
+
volk_environment_init();
int ret;
-
+
unsigned int* target;
unsigned int* target_generic;
std::complex<float>* src0 ;
-
-
+
+
unsigned int i_target;
target = &i_target;
unsigned int i_target_generic;
target_generic = &i_target_generic;
ret = posix_memalign((void**)&src0, 16, vlen << 3);
-
+
random_floats((float*)src0, vlen * 2);
-
+
printf("32fc_index_max_aligned16\n");
clock_t start, end;
double total;
-
-
+
+
start = clock();
for(int k = 0; k < NUM_ITERS; ++k) {
volk_32fc_index_max_aligned16_manual(target_generic, src0, vlen << 3, "generic");
}
- end = clock();
+ end = clock();
total = (double)(end-start)/(double)CLOCKS_PER_SEC;
printf("generic time: %f\n", total);
@@ -70,19 +70,19 @@ void qa_32fc_index_max_aligned16::t1(){
for(int k = 0; k < NUM_ITERS; ++k) {
volk_32fc_index_max_aligned16_manual(target, src0, vlen << 3, "sse3");
}
-
- end = clock();
+
+ end = clock();
total = (double)(end-start)/(double)CLOCKS_PER_SEC;
printf("sse3 time: %f\n", total);
-
-
-
+
+
+
printf("generic: %u, sse3: %u\n", target_generic[0], target[0]);
CPPUNIT_ASSERT_DOUBLES_EQUAL(target_generic[0], target[0], 1.1);
-
-
+
+
free(src0);
}
diff --git a/volk/lib/qa_32fc_power_spectral_density_32f_aligned16.cc b/volk/lib/qa_32fc_power_spectral_density_32f_aligned16.cc
index 981bb19e6..daca31d9c 100644
--- a/volk/lib/qa_32fc_power_spectral_density_32f_aligned16.cc
+++ b/volk/lib/qa_32fc_power_spectral_density_32f_aligned16.cc
@@ -15,14 +15,14 @@ void qa_32fc_power_spectral_density_32f_aligned16::t1() {
#else
void qa_32fc_power_spectral_density_32f_aligned16::t1() {
-
+
volk_environment_init();
clock_t start, end;
double total;
const int vlen = 3201;
const int ITERS = 10000;
__VOLK_ATTR_ALIGNED(16) std::complex<float> input0[vlen];
-
+
__VOLK_ATTR_ALIGNED(16) float output_generic[vlen];
__VOLK_ATTR_ALIGNED(16) float output_sse3[vlen];
@@ -30,7 +30,7 @@ void qa_32fc_power_spectral_density_32f_aligned16::t1() {
const float rbw = 1.7;
float* inputLoad = (float*)input0;
- for(int i = 0; i < 2*vlen; ++i) {
+ for(int i = 0; i < 2*vlen; ++i) {
inputLoad[i] = (((float) (rand() - (RAND_MAX/2))) / static_cast<float>((RAND_MAX/2)));
}
printf("32fc_power_spectral_density_32f_aligned\n");
@@ -54,7 +54,7 @@ void qa_32fc_power_spectral_density_32f_aligned16::t1() {
//printf("inputs: %d, %d\n", input0[i*2], input0[i*2 + 1]);
//printf("generic... %d, ssse3... %d\n", output0[i], output1[i]);
}
-
+
for(int i = 0; i < vlen; ++i) {
//printf("%d...%d\n", output0[i], output01[i]);
CPPUNIT_ASSERT_DOUBLES_EQUAL(output_generic[i], output_sse3[i], fabs(output_generic[i]*1e-4));
diff --git a/volk/lib/qa_32fc_x2_conjugate_dot_prod_32fc_u.cc b/volk/lib/qa_32fc_x2_conjugate_dot_prod_32fc_u.cc
index fefdf06ee..b825c20e4 100644
--- a/volk/lib/qa_32fc_x2_conjugate_dot_prod_32fc_u.cc
+++ b/volk/lib/qa_32fc_x2_conjugate_dot_prod_32fc_u.cc
@@ -7,7 +7,7 @@
#define assertcomplexEqual(expected, actual, delta) \
CPPUNIT_ASSERT_DOUBLES_EQUAL (std::real(expected), std::real(actual), fabs(std::real(expected)) * delta); \
- CPPUNIT_ASSERT_DOUBLES_EQUAL (std::imag(expected), std::imag(actual), fabs(std::imag(expected))* delta);
+ CPPUNIT_ASSERT_DOUBLES_EQUAL (std::imag(expected), std::imag(actual), fabs(std::imag(expected))* delta);
#define ERR_DELTA (1e-4)
@@ -35,7 +35,7 @@ void qa_32fc_x2_conjugate_dot_prod_32fc_u::t1() {
std::complex<float>* input;
std::complex<float>* taps;
-
+
std::complex<float>* result_generic;
std::complex<float>* result;
@@ -43,19 +43,19 @@ void qa_32fc_x2_conjugate_dot_prod_32fc_u::t1() {
ret = posix_memalign((void**)&taps, 16, vlen << 3);
ret = posix_memalign((void**)&result_generic, 16, 8);
ret = posix_memalign((void**)&result, 16, 8);
-
+
result_generic[0] = std::complex<float>(0,0);
result[0] = std::complex<float>(0,0);
random_floats((float*)input, vlen * 2);
random_floats((float*)taps, vlen * 2);
-
-
+
+
volk_32fc_x2_conjugate_dot_prod_32fc_u_manual(result_generic, input, taps, vlen * 8, "generic");
-
+
volk_32fc_x2_conjugate_dot_prod_32fc_u_manual(result, input, taps, vlen * 8, "sse");
printf("32fc_x2_conjugate_dot_prod_32fc_u\n");
@@ -67,7 +67,7 @@ void qa_32fc_x2_conjugate_dot_prod_32fc_u::t1() {
free(taps);
free(result_generic);
free(result);
-
+
}
@@ -87,13 +87,13 @@ random_floats (float *buf, unsigned n)
void qa_32fc_x2_conjugate_dot_prod_32fc_u::t1() {
const int vlen = 789743;
-
+
volk_environment_init();
int ret;
std::complex<float>* input;
std::complex<float>* taps;
-
+
std::complex<float>* result_generic;
std::complex<float>* result;
@@ -101,19 +101,19 @@ void qa_32fc_x2_conjugate_dot_prod_32fc_u::t1() {
ret = posix_memalign((void**)&taps, 16, vlen << 3);
ret = posix_memalign((void**)&result_generic, 16, 8);
ret = posix_memalign((void**)&result, 16, 8);
-
+
result_generic[0] = std::complex<float>(0,0);
result[0] = std::complex<float>(0,0);
random_floats((float*)input, vlen * 2);
random_floats((float*)taps, vlen * 2);
-
-
+
+
volk_32fc_x2_conjugate_dot_prod_32fc_u_manual(result_generic, input, taps, vlen * 8, "generic");
-
+
volk_32fc_x2_conjugate_dot_prod_32fc_u_manual(result, input, taps, vlen * 8, "sse_32");
printf("32fc_x2_conjugate_dot_prod_32fc_u\n");
@@ -125,7 +125,7 @@ void qa_32fc_x2_conjugate_dot_prod_32fc_u::t1() {
free(taps);
free(result_generic);
free(result);
-
+
}
diff --git a/volk/lib/qa_32u_popcnt_aligned16.cc b/volk/lib/qa_32u_popcnt_aligned16.cc
index c880260f2..5559d933d 100644
--- a/volk/lib/qa_32u_popcnt_aligned16.cc
+++ b/volk/lib/qa_32u_popcnt_aligned16.cc
@@ -16,8 +16,8 @@ void qa_32u_popcnt_aligned16::t1() {
#else
void qa_32u_popcnt_aligned16::t1() {
-
-
+
+
volk_runtime_init();
volk_environment_init();
@@ -26,7 +26,7 @@ void qa_32u_popcnt_aligned16::t1() {
const int ITERS = 10000000;
__VOLK_ATTR_ALIGNED(16) uint32_t input0;
-
+
__VOLK_ATTR_ALIGNED(16) uint32_t output0;
__VOLK_ATTR_ALIGNED(16) uint32_t output01;
@@ -55,7 +55,7 @@ void qa_32u_popcnt_aligned16::t1() {
total = (double)(end-start)/(double)CLOCKS_PER_SEC;
printf("sse4.2_time: %f\n", total);
-
+
CPPUNIT_ASSERT_EQUAL(output0, output01);
}
diff --git a/volk/lib/qa_64u_popcnt_aligned16.cc b/volk/lib/qa_64u_popcnt_aligned16.cc
index 6be4e50ea..391601f22 100644
--- a/volk/lib/qa_64u_popcnt_aligned16.cc
+++ b/volk/lib/qa_64u_popcnt_aligned16.cc
@@ -16,8 +16,8 @@ void qa_64u_popcnt_aligned16::t1() {
#else
void qa_64u_popcnt_aligned16::t1() {
-
-
+
+
volk_runtime_init();
volk_environment_init();
@@ -26,7 +26,7 @@ void qa_64u_popcnt_aligned16::t1() {
const int ITERS = 10000000;
__VOLK_ATTR_ALIGNED(16) uint64_t input0;
-
+
__VOLK_ATTR_ALIGNED(16) uint64_t output0;
__VOLK_ATTR_ALIGNED(16) uint64_t output01;
@@ -55,7 +55,7 @@ void qa_64u_popcnt_aligned16::t1() {
total = (double)(end-start)/(double)CLOCKS_PER_SEC;
printf("sse4.2_time: %f\n", total);
-
+
CPPUNIT_ASSERT_EQUAL(output0, output01);
}
diff --git a/volk/lib/qa_utils.cc b/volk/lib/qa_utils.cc
index bb37801c9..c15979b3f 100644
--- a/volk/lib/qa_utils.cc
+++ b/volk/lib/qa_utils.cc
@@ -46,7 +46,7 @@ void load_random_data(void *data, volk_type_t type, unsigned int n) {
case 4:
if(type.is_signed) ((int32_t *)data)[i] = (int32_t) scaled_rand;
else ((uint32_t *)data)[i] = (uint32_t) scaled_rand;
- break;
+ break;
case 2:
if(type.is_signed) ((int16_t *)data)[i] = (int16_t) scaled_rand;
else ((uint16_t *)data)[i] = (uint16_t) scaled_rand;
@@ -69,7 +69,7 @@ static std::vector<std::string> get_arch_list(struct volk_func_desc desc) {
//if(!(archs[i+1] & volk_get_lvarch())) continue; //this arch isn't available on this pc
archlist.push_back(std::string(desc.indices[i]));
}
-
+
return archlist;
}
@@ -81,15 +81,15 @@ volk_type_t volk_type_from_string(std::string name) {
type.is_signed = false;
type.size = 0;
type.str = name;
-
+
if(name.size() < 2) throw std::string("name too short to be a datatype");
-
+
//is it a scalar?
- if(name[0] == 's') {
+ if(name[0] == 's') {
type.is_scalar = true;
name = name.substr(1, name.size()-1);
}
-
+
//get the data size
size_t last_size_pos = name.find_last_of("0123456789");
if(last_size_pos < 0) throw std::string("no size spec in type ").append(name);
@@ -98,7 +98,7 @@ volk_type_t volk_type_from_string(std::string name) {
assert(((size % 8) == 0) && (size <= 64) && (size != 0));
type.size = size/8; //in bytes
-
+
for(size_t i=last_size_pos+1; i < name.size(); i++) {
switch (name[i]) {
case 'f':
@@ -117,19 +117,19 @@ volk_type_t volk_type_from_string(std::string name) {
throw;
}
}
-
+
return type;
}
-static void get_signatures_from_name(std::vector<volk_type_t> &inputsig,
- std::vector<volk_type_t> &outputsig,
+static void get_signatures_from_name(std::vector<volk_type_t> &inputsig,
+ std::vector<volk_type_t> &outputsig,
std::string name) {
boost::char_separator<char> sep("_");
boost::tokenizer<boost::char_separator<char> > tok(name, sep);
std::vector<std::string> toked;
tok.assign(name);
toked.assign(tok.begin(), tok.end());
-
+
assert(toked[0] == "volk");
toked.erase(toked.begin());
@@ -143,7 +143,7 @@ static void get_signatures_from_name(std::vector<volk_type_t> &inputsig,
try {
type = volk_type_from_string(token);
if(side == SIDE_NAME) side = SIDE_OUTPUT; //if this is the first one after the name...
-
+
if(side == SIDE_INPUT) inputsig.push_back(type);
else outputsig.push_back(type);
} catch (...){
@@ -160,7 +160,7 @@ static void get_signatures_from_name(std::vector<volk_type_t> &inputsig,
side = SIDE_NAME;
fn_name.append("_");
fn_name.append(token);
- }
+ }
else if(side == SIDE_OUTPUT) {
if(token != toked.back()) throw; //the last token in the name is the alignment
}
@@ -223,7 +223,7 @@ bool fcompare(t *in1, t *in2, unsigned int vlen, float tol) {
}
}
}
-
+
return fail;
}
@@ -239,7 +239,7 @@ bool icompare(t *in1, t *in2, unsigned int vlen, unsigned int tol) {
}
}
}
-
+
return fail;
}
@@ -264,10 +264,10 @@ bool run_volk_tests(struct volk_func_desc desc,
std::vector<std::string> *best_arch_vector = 0
) {
std::cout << "RUN_VOLK_TESTS: " << name << std::endl;
-
+
//first let's get a list of available architectures for the test
std::vector<std::string> arch_list = get_arch_list(desc);
-
+
if(arch_list.size() < 2) {
std::cout << "no architectures to test" << std::endl;
return false;
@@ -279,7 +279,7 @@ bool run_volk_tests(struct volk_func_desc desc,
//now we have to get a function signature by parsing the name
std::vector<volk_type_t> inputsig, outputsig;
get_signatures_from_name(inputsig, outputsig, name);
-
+
//pull the input scalars into their own vector
std::vector<volk_type_t> inputsc;
for(size_t i=0; i<inputsig.size(); i++) {
@@ -299,7 +299,7 @@ bool run_volk_tests(struct volk_func_desc desc,
for(size_t i=0; i<inbuffs.size(); i++) {
load_random_data(inbuffs[i], inputsig[i], vlen);
}
-
+
//ok let's make a vector of vector of void buffers, which holds the input/output vectors for each arch
std::vector<std::vector<void *> > test_data;
for(size_t i=0; i<arch_list.size(); i++) {
@@ -312,7 +312,7 @@ bool run_volk_tests(struct volk_func_desc desc,
}
test_data.push_back(arch_buffs);
}
-
+
std::vector<volk_type_t> both_sigs;
both_sigs.insert(both_sigs.end(), outputsig.begin(), outputsig.end());
both_sigs.insert(both_sigs.end(), inputsig.begin(), inputsig.end());
@@ -326,7 +326,7 @@ bool run_volk_tests(struct volk_func_desc desc,
switch(both_sigs.size()) {
case 1:
if(inputsc.size() == 0) {
- run_cast_test1((volk_fn_1arg)(manual_func), test_data[i], vlen, iter, arch_list[i]);
+ run_cast_test1((volk_fn_1arg)(manual_func), test_data[i], vlen, iter, arch_list[i]);
} else if(inputsc.size() == 1 && inputsc[0].is_float) {
if(inputsc[0].is_complex) {
run_cast_test1_s32fc((volk_fn_1arg_s32fc)(manual_func), test_data[i], scalar, vlen, iter, arch_list[i]);
@@ -364,23 +364,23 @@ bool run_volk_tests(struct volk_func_desc desc,
throw "no function handler for this signature";
break;
}
-
+
end = clock();
double arch_time = (double)(end-start)/(double)CLOCKS_PER_SEC;
std::cout << arch_list[i] << " completed in " << arch_time << "s" << std::endl;
profile_times.push_back(arch_time);
}
-
+
//and now compare each output to the generic output
//first we have to know which output is the generic one, they aren't in order...
size_t generic_offset=0;
- for(size_t i=0; i<arch_list.size(); i++)
+ for(size_t i=0; i<arch_list.size(); i++)
if(arch_list[i] == "generic") generic_offset=i;
//now compare
//if(outputsig.size() == 0) outputsig = inputsig; //a hack, i know
-
+
bool fail = false;
bool fail_global = false;
std::vector<bool> arch_results;
@@ -438,7 +438,7 @@ bool run_volk_tests(struct volk_func_desc desc,
}
arch_results.push_back(!fail);
}
-
+
double best_time = std::numeric_limits<double>::max();
std::string best_arch = "generic";
for(size_t i=0; i < arch_list.size(); i++) {
@@ -447,7 +447,7 @@ bool run_volk_tests(struct volk_func_desc desc,
best_arch = arch_list[i];
}
}
-
+
std::cout << "Best arch: " << best_arch << std::endl;
if(best_arch_vector) {
best_arch_vector->push_back(name + std::string(" ") + best_arch);
diff --git a/volk/lib/volk_prefs.c b/volk/lib/volk_prefs.c
index 7e705bed4..5e5c9dfff 100644
--- a/volk/lib/volk_prefs.c
+++ b/volk/lib/volk_prefs.c
@@ -26,7 +26,7 @@ int load_preferences(struct volk_arch_pref **prefs) {
char path[512], line[512], function[128], arch[32];
int n_arch_prefs = 0;
struct volk_arch_pref *t_pref;
-
+
//get the config path
get_config_path(path);
if (path == NULL) return n_arch_prefs; //no prefs found
diff --git a/volk/lib/volk_rank_archs.c b/volk/lib/volk_rank_archs.c
index 4baa078bc..865d60955 100644
--- a/volk/lib/volk_rank_archs.c
+++ b/volk/lib/volk_rank_archs.c
@@ -26,14 +26,14 @@ unsigned int volk_rank_archs(const char *indices[], const int* arch_defs, unsign
n_arch_prefs = load_preferences(&volk_arch_prefs);
prefs_loaded = 1;
}
-
+
//now look for the function name in the prefs list
for(i=0; i < n_arch_prefs; i++) {
if(!strncmp(name, volk_arch_prefs[i].name, 128)) { //found it
return get_index(indices, n_archs, volk_arch_prefs[i].arch);
}
}
-
+
for(i=1; i < n_archs; ++i) {
if((arch_defs[i]&(!arch)) == 0) {
best_val = (arch_defs[i] > arch_defs[best_val + 1]) ? i-1 : best_val;
diff --git a/volk/libvector_replace.sh b/volk/libvector_replace.sh
index 4c7e33e1b..e1940c00f 100755
--- a/volk/libvector_replace.sh
+++ b/volk/libvector_replace.sh
@@ -2,8 +2,8 @@
cd $1
files=`ls`
-for file in $files
-do
+for file in $files
+do
sed 's/libvector/volk/g' < $file > tempfile
sed 's/LIBVECTOR/VOLK/g' < tempfile > $file
done
diff --git a/volk/msvc/inttypes.h b/volk/msvc/inttypes.h
index 1c2baa82e..0a1b60fc1 100644
--- a/volk/msvc/inttypes.h
+++ b/volk/msvc/inttypes.h
@@ -1,32 +1,32 @@
// ISO C9x compliant inttypes.h for Microsoft Visual Studio
-// Based on ISO/IEC 9899:TC2 Committee draft (May 6, 2005) WG14/N1124
-//
+// Based on ISO/IEC 9899:TC2 Committee draft (May 6, 2005) WG14/N1124
+//
// Copyright (c) 2006 Alexander Chemeris
-//
+//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
-//
+//
// 1. Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
-//
+//
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
-//
+//
// 3. The name of the author may be used to endorse or promote products
// derived from this software without specific prior written permission.
-//
+//
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
// EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
-// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
+//
///////////////////////////////////////////////////////////////////////////////
#ifndef _MSC_VER // [
diff --git a/volk/msvc/stdint.h b/volk/msvc/stdint.h
index ab6d37e11..108bc8982 100644
--- a/volk/msvc/stdint.h
+++ b/volk/msvc/stdint.h
@@ -1,32 +1,32 @@
// ISO C9x compliant stdint.h for Microsoft Visual Studio
-// Based on ISO/IEC 9899:TC2 Committee draft (May 6, 2005) WG14/N1124
-//
+// Based on ISO/IEC 9899:TC2 Committee draft (May 6, 2005) WG14/N1124
+//
// Copyright (c) 2006-2008 Alexander Chemeris
-//
+//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
-//
+//
// 1. Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
-//
+//
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
-//
+//
// 3. The name of the author may be used to endorse or promote products
// derived from this software without specific prior written permission.
-//
+//
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
// EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
-// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
+//
///////////////////////////////////////////////////////////////////////////////
#ifndef _MSC_VER // [
diff --git a/volk/python/__init__.py b/volk/python/__init__.py
index 7239e7e23..7c9c4a0c6 100644
--- a/volk/python/__init__.py
+++ b/volk/python/__init__.py
@@ -1,18 +1,18 @@
#
# Copyright 2010 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 this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -31,7 +31,7 @@ except ImportError:
from DLFCN import RTLD_GLOBAL as _RTLD_GLOBAL
except ImportError:
pass
-
+
if _RTLD_GLOBAL != 0:
_dlopenflags = sys.getdlopenflags()
sys.setdlopenflags(_dlopenflags|_RTLD_GLOBAL)
diff --git a/volk/python/qa_square.py b/volk/python/qa_square.py
index 53f0433ca..c74bc25ef 100755
--- a/volk/python/qa_square.py
+++ b/volk/python/qa_square.py
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2010 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,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gr_unittest
import volk_swig as volk
@@ -42,6 +42,6 @@ class qa_volk(gr_unittest.TestCase):
self.tb.run()
result_data = dst.data()
self.assertFloatTuplesAlmostEqual(expected_result, result_data, 6)
-
+
if __name__ == '__main__':
gr_unittest.main()
diff --git a/volk/python/volk.i b/volk/python/volk.i
index ea3a037ba..d678a9120 100644
--- a/volk/python/volk.i
+++ b/volk/python/volk.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
diff --git a/volk/python/volk_square_ff.i b/volk/python/volk_square_ff.i
index 1d485bd7e..5456c81fd 100644
--- a/volk/python/volk_square_ff.i
+++ b/volk/python/volk_square_ff.i
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2010 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
diff --git a/volk/spu_lib/gc_spu_macs.h b/volk/spu_lib/gc_spu_macs.h
index 8e3e3f2a6..e86dce3f5 100644
--- a/volk/spu_lib/gc_spu_macs.h
+++ b/volk/spu_lib/gc_spu_macs.h
@@ -1,19 +1,19 @@
/* -*- asm -*- */
/*
* Copyright 2008 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -279,7 +279,7 @@ name:
iluh _gc_t0, 4*(s)*0x0101 + 0x0001; \
iohl _gc_t0, 4*(s)*0x0101 + 0x0203; \
shufb rt, ra, ra, _gc_t0;
-
+
// replicate double from slot s [0,1]
#define VSPLTD(rt, ra, s) \
/* sp is always 16-byte aligned */ \
@@ -301,13 +301,13 @@ name:
#define MIN_SELB(rt, ra, rb, rc) selb rt, ra, rb, rc;
#define MAX_SELB(rt, ra, rb, rc) selb rt, rb, ra, rc;
-
+
// words
#define MIN(rt, ra, rb) \
cgt _gc_t0, ra, rb; \
MIN_SELB(rt, ra, rb, _gc_t0)
-
+
#define MAX(rt, ra, rb) \
cgt _gc_t0, ra, rb; \
MAX_SELB(rt, ra, rb, _gc_t0)
@@ -315,17 +315,17 @@ name:
#define UMIN(rt, ra, rb) \
clgt _gc_t0, ra, rb; \
MIN_SELB(rt, ra, rb, _gc_t0)
-
+
#define UMAX(rt, ra, rb) \
clgt _gc_t0, ra, rb; \
MAX_SELB(rt, ra, rb, _gc_t0)
// bytes
-
+
#define MINB(rt, ra, rb) \
cgtb _gc_t0, ra, rb; \
MIN_SELB(rt, ra, rb, _gc_t0)
-
+
#define MAXB(rt, ra, rb) \
cgtb _gc_t0, ra, rb; \
MAX_SELB(rt, ra, rb, _gc_t0)
@@ -333,17 +333,17 @@ name:
#define UMINB(rt, ra, rb) \
clgtb _gc_t0, ra, rb; \
MIN_SELB(rt, ra, rb, _gc_t0)
-
+
#define UMAXB(rt, ra, rb) \
clgtb _gc_t0, ra, rb; \
MAX_SELB(rt, ra, rb, _gc_t0)
// halfwords
-
+
#define MINH(rt, ra, rb) \
cgth _gc_t0, ra, rb; \
MIN_SELB(rt, ra, rb, _gc_t0)
-
+
#define MAXH(rt, ra, rb) \
cgth _gc_t0, ra, rb; \
MAX_SELB(rt, ra, rb, _gc_t0)
@@ -351,17 +351,17 @@ name:
#define UMINH(rt, ra, rb) \
clgth _gc_t0, ra, rb; \
MIN_SELB(rt, ra, rb, _gc_t0)
-
+
#define UMAXH(rt, ra, rb) \
clgth _gc_t0, ra, rb; \
MAX_SELB(rt, ra, rb, _gc_t0)
// floats
-
+
#define FMIN(rt, ra, rb) \
fcgt _gc_t0, ra, rb; \
MIN_SELB(rt, ra, rb, _gc_t0)
-
+
#define FMAX(rt, ra, rb) \
fcgt _gc_t0, ra, rb; \
MAX_SELB(rt, ra, rb, _gc_t0)
@@ -370,7 +370,7 @@ name:
#define FMINMAG(rt, ra, rb) \
fcmgt _gc_t0, ra, rb; \
MIN_SELB(rt, ra, rb, _gc_t0)
-
+
// Ignoring the sign, select the values with the maximum magnitude
#define FMAXMAG(rt, ra, rb) \
fcmgt _gc_t0, ra, rb; \
diff --git a/volk/spu_lib/spu_16s_cmpgt_unaligned.c b/volk/spu_lib/spu_16s_cmpgt_unaligned.c
index 765cacd9a..8811e6801 100644
--- a/volk/spu_lib/spu_16s_cmpgt_unaligned.c
+++ b/volk/spu_lib/spu_16s_cmpgt_unaligned.c
@@ -4,14 +4,14 @@ void* libvector_16s_cmpgt_unaligned(void* target, void* src, signed short val, u
//loop iterator i
int i = 0;
void* retval = target;
-
+
//put the target and source addresses into qwords
vector unsigned int address_counter_tgt = {(unsigned int)target, 0, 0, 0};
vector unsigned int address_counter_src = {(unsigned int)src, 0, 0 ,0};
-
+
//create shuffle masks
-
+
//shuffle mask building blocks:
//all from the first vector
vector unsigned char oneup = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
@@ -19,9 +19,9 @@ void* libvector_16s_cmpgt_unaligned(void* target, void* src, signed short val, u
//all from the second vector
vector unsigned char second_oneup = {0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f};
-
-
+
+
//gamma: second half of the second, first half of the first, break at (unsigned int)src%16
vector unsigned char src_cmp = spu_splats((unsigned char)((unsigned int)src%16));
vector unsigned char gt_res = spu_cmpgt(oneup, src_cmp);
@@ -29,16 +29,16 @@ void* libvector_16s_cmpgt_unaligned(void* target, void* src, signed short val, u
vector unsigned char cmp_res = spu_or(gt_res, eq_res);
vector unsigned char sixteen_uchar = spu_splats((unsigned char)16);
vector unsigned char phase_change = spu_and(sixteen_uchar, cmp_res);
- vector unsigned int shuffle_mask_gamma = spu_add((vector unsigned int)phase_change,
+ vector unsigned int shuffle_mask_gamma = spu_add((vector unsigned int)phase_change,
(vector unsigned int)oneup);
shuffle_mask_gamma = spu_rlqwbyte(shuffle_mask_gamma, (unsigned int)src%16);
-
-
+
+
vector unsigned char tgt_second = spu_rlqwbyte(second_oneup, -((unsigned int)target%16));
vector unsigned char tgt_first = spu_rlqwbyte(oneup, -((unsigned int)target%16));
-
+
//alpha: first half of first, second half of second, break at (unsigned int)target%16
src_cmp = spu_splats((unsigned char)((unsigned int)target%16));
gt_res = spu_cmpgt(oneup, src_cmp);
@@ -47,13 +47,13 @@ void* libvector_16s_cmpgt_unaligned(void* target, void* src, signed short val, u
phase_change = spu_and(sixteen_uchar, cmp_res);
vector unsigned int shuffle_mask_alpha = spu_add((vector unsigned int)phase_change,
(vector unsigned int)oneup);
-
+
//delta: first half of first, first half of second, break at (unsigned int)target%16
vector unsigned char shuffle_mask_delta = spu_shuffle(oneup, tgt_second, (vector unsigned char)shuffle_mask_alpha);
//epsilon: second half of second, second half of first, break at (unsigned int)target%16
vector unsigned char shuffle_mask_epsilon = spu_shuffle(tgt_second, oneup, (vector unsigned char)shuffle_mask_alpha);
//zeta: second half of second, first half of first, break at 16 - (unsigned int)target%16
- vector unsigned int shuffle_mask_zeta = spu_rlqwbyte(shuffle_mask_alpha, (unsigned int)target%16);
+ vector unsigned int shuffle_mask_zeta = spu_rlqwbyte(shuffle_mask_alpha, (unsigned int)target%16);
//beta: first half of first, second half of second, break at num_bytes%16
src_cmp = spu_splats((unsigned char)(num_bytes%16));
@@ -63,17 +63,17 @@ void* libvector_16s_cmpgt_unaligned(void* target, void* src, signed short val, u
phase_change = spu_and(sixteen_uchar, cmp_res);
vector unsigned int shuffle_mask_beta = spu_add((vector unsigned int)phase_change,
(vector unsigned int)oneup);
-
-
-
-
+
+
+
+
qword src_past;
qword src_present;
qword tgt_past;
qword tgt_present;
-
+
qword in_temp;
qword out_temp0;
qword out_temp1;
@@ -85,53 +85,53 @@ void* libvector_16s_cmpgt_unaligned(void* target, void* src, signed short val, u
vector unsigned short compare;
vector unsigned short ones = {1, 1, 1, 1, 1, 1, 1, 1};
vector unsigned short after_and;
-
+
for(i = 0; i < num_bytes/16; ++i) {
-
+
src_present = si_lqd((qword)address_counter_src, 16);
tgt_present = si_lqd((qword)address_counter_tgt, 16);
-
+
in_temp = spu_shuffle(src_present, src_past, (vector unsigned char)shuffle_mask_gamma);
compare = spu_cmpgt((vector signed short) in_temp, vec_val);
after_and = spu_and(compare, ones);
-
-
+
+
out_temp0 = spu_shuffle(tgt_past, (qword)after_and, shuffle_mask_delta);
out_temp1 = spu_shuffle(tgt_present, (qword)after_and, shuffle_mask_epsilon);
si_stqd(out_temp0, (qword)address_counter_tgt, 0);
si_stqd(out_temp1, (qword)address_counter_tgt, 16);
-
+
tgt_past = out_temp1;
src_past = src_present;
address_counter_src = spu_add(address_counter_src, 16);
address_counter_tgt = spu_add(address_counter_tgt, 16);
-
+
}
-
+
src_present = si_lqd((qword)address_counter_src, 16);
tgt_present = si_lqd((qword)address_counter_tgt, 16);
-
-
+
+
in_temp = spu_shuffle(src_present, src_past,(vector unsigned char) shuffle_mask_gamma);
-
+
compare = spu_cmpgt((vector signed short) in_temp, vec_val);
after_and = spu_and(compare, ones);
-
+
qword target_temp = spu_shuffle(tgt_present, tgt_past, (vector unsigned char) shuffle_mask_zeta);
qword meld = spu_shuffle((qword)after_and, target_temp, (vector unsigned char)shuffle_mask_beta);
-
-
+
+
out_temp0 = spu_shuffle(tgt_past, meld, shuffle_mask_delta);
out_temp1 = spu_shuffle(tgt_present, meld, shuffle_mask_epsilon);
-
+
si_stqd(out_temp0, (qword)address_counter_tgt, 0);
si_stqd(out_temp1, (qword)address_counter_tgt, 16);
-
+
return retval;
}
@@ -156,5 +156,5 @@ int main(){
}
printf("\n");
}
-*/
+*/
diff --git a/volk/spu_lib/spu_16s_vector_subtract_unaligned.c b/volk/spu_lib/spu_16s_vector_subtract_unaligned.c
index a3ce6c2fe..ea110c8d2 100644
--- a/volk/spu_lib/spu_16s_vector_subtract_unaligned.c
+++ b/volk/spu_lib/spu_16s_vector_subtract_unaligned.c
@@ -4,15 +4,15 @@ void* libvector_16s_vector_subtract_unaligned(void* target, void* src0, void* s
//loop iterator i
int i = 0;
void* retval = target;
-
+
//put the target and source addresses into qwords
vector unsigned int address_counter_tgt = {(unsigned int)target, 0, 0, 0};
vector unsigned int address_counter_src0 = {(unsigned int)src0, 0, 0 ,0};
vector unsigned int address_counter_src1 = {(unsigned int)src1, 0, 0, 0};
-
+
//create shuffle masks
-
+
//shuffle mask building blocks:
//all from the first vector
vector unsigned char oneup = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
@@ -20,9 +20,9 @@ void* libvector_16s_vector_subtract_unaligned(void* target, void* src0, void* s
//all from the second vector
vector unsigned char second_oneup = {0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f};
-
-
+
+
//gamma: second half of the second, first half of the first, break at (unsigned int)src0%16
vector unsigned char src_cmp = spu_splats((unsigned char)((unsigned int)src0%16));
vector unsigned char gt_res = spu_cmpgt(oneup, src_cmp);
@@ -30,7 +30,7 @@ void* libvector_16s_vector_subtract_unaligned(void* target, void* src0, void* s
vector unsigned char cmp_res = spu_or(gt_res, eq_res);
vector unsigned char sixteen_uchar = spu_splats((unsigned char)16);
vector unsigned char phase_change = spu_and(sixteen_uchar, cmp_res);
- vector unsigned int shuffle_mask_gamma = spu_add((vector unsigned int)phase_change,
+ vector unsigned int shuffle_mask_gamma = spu_add((vector unsigned int)phase_change,
(vector unsigned int)oneup);
shuffle_mask_gamma = spu_rlqwbyte(shuffle_mask_gamma, (unsigned int)src0%16);
@@ -41,17 +41,17 @@ void* libvector_16s_vector_subtract_unaligned(void* target, void* src0, void* s
cmp_res = spu_or(gt_res, eq_res);
sixteen_uchar = spu_splats((unsigned char)16);
phase_change = spu_and(sixteen_uchar, cmp_res);
- vector unsigned int shuffle_mask_eta = spu_add((vector unsigned int)phase_change,
+ vector unsigned int shuffle_mask_eta = spu_add((vector unsigned int)phase_change,
(vector unsigned int)oneup);
shuffle_mask_eta = spu_rlqwbyte(shuffle_mask_eta, (unsigned int)src1%16);
-
-
-
+
+
+
vector unsigned char tgt_second = spu_rlqwbyte(second_oneup, -((unsigned int)target%16));
vector unsigned char tgt_first = spu_rlqwbyte(oneup, -((unsigned int)target%16));
-
+
//alpha: first half of first, second half of second, break at (unsigned int)target%16
src_cmp = spu_splats((unsigned char)((unsigned int)target%16));
gt_res = spu_cmpgt(oneup, src_cmp);
@@ -60,13 +60,13 @@ void* libvector_16s_vector_subtract_unaligned(void* target, void* src0, void* s
phase_change = spu_and(sixteen_uchar, cmp_res);
vector unsigned int shuffle_mask_alpha = spu_add((vector unsigned int)phase_change,
(vector unsigned int)oneup);
-
+
//delta: first half of first, first half of second, break at (unsigned int)target%16
vector unsigned char shuffle_mask_delta = spu_shuffle(oneup, tgt_second, (vector unsigned char)shuffle_mask_alpha);
//epsilon: second half of second, second half of first, break at (unsigned int)target%16
vector unsigned char shuffle_mask_epsilon = spu_shuffle(tgt_second, oneup, (vector unsigned char)shuffle_mask_alpha);
//zeta: second half of second, first half of first, break at 16 - (unsigned int)target%16
- vector unsigned int shuffle_mask_zeta = spu_rlqwbyte(shuffle_mask_alpha, (unsigned int)target%16);
+ vector unsigned int shuffle_mask_zeta = spu_rlqwbyte(shuffle_mask_alpha, (unsigned int)target%16);
//beta: first half of first, second half of second, break at num_bytes%16
src_cmp = spu_splats((unsigned char)(num_bytes%16));
@@ -76,19 +76,19 @@ void* libvector_16s_vector_subtract_unaligned(void* target, void* src0, void* s
phase_change = spu_and(sixteen_uchar, cmp_res);
vector unsigned int shuffle_mask_beta = spu_add((vector unsigned int)phase_change,
(vector unsigned int)oneup);
-
-
-
-
+
+
+
+
qword src0_past;
qword src0_present;
qword src1_past;
qword src1_present;
qword tgt_past;
qword tgt_present;
-
+
qword in_temp0;
qword in_temp1;
qword out_temp0;
@@ -99,54 +99,54 @@ void* libvector_16s_vector_subtract_unaligned(void* target, void* src0, void* s
src0_past = si_lqd((qword)address_counter_src0, 0);
src1_past = si_lqd((qword)address_counter_src1, 0);
tgt_past = si_lqd((qword)address_counter_tgt, 0);
-
+
for(i = 0; i < num_bytes/16; ++i) {
-
+
src0_present = si_lqd((qword)address_counter_src0, 16);
src1_present = si_lqd((qword)address_counter_src1, 16);
tgt_present = si_lqd((qword)address_counter_tgt, 16);
-
+
in_temp0 = spu_shuffle(src0_present, src0_past, (vector unsigned char)shuffle_mask_gamma);
in_temp1 = spu_shuffle(src1_present, src1_past, (vector unsigned char)shuffle_mask_eta);
-
+
sum = spu_sub((vector signed short)in_temp0, (vector signed short)in_temp1);
-
+
out_temp0 = spu_shuffle(tgt_past, (qword)sum, shuffle_mask_delta);
out_temp1 = spu_shuffle(tgt_present, (qword)sum, shuffle_mask_epsilon);
-
+
si_stqd(out_temp0, (qword)address_counter_tgt, 0);
si_stqd(out_temp1, (qword)address_counter_tgt, 16);
-
+
tgt_past = out_temp1;
src0_past = src0_present;
src1_past = src1_present;
address_counter_src0 = spu_add(address_counter_src0, 16);
address_counter_src1 = spu_add(address_counter_src1, 16);
address_counter_tgt = spu_add(address_counter_tgt, 16);
-
-
+
+
}
-
+
src0_present = si_lqd((qword)address_counter_src0, 16);
src1_present = si_lqd((qword)address_counter_src1, 16);
tgt_present = si_lqd((qword)address_counter_tgt, 16);
-
-
+
+
in_temp0 = spu_shuffle(src0_present, src0_past, (vector unsigned char) shuffle_mask_gamma);
in_temp1 = spu_shuffle(src1_present, src1_past, (vector unsigned char) shuffle_mask_eta);
sum = spu_sub((vector signed short)in_temp0, (vector signed short)in_temp1);
qword target_temp = spu_shuffle(tgt_present, tgt_past, (vector unsigned char) shuffle_mask_zeta);
qword meld = spu_shuffle((qword)sum, target_temp, (vector unsigned char)shuffle_mask_beta);
-
-
+
+
out_temp0 = spu_shuffle(tgt_past, meld, shuffle_mask_delta);
out_temp1 = spu_shuffle(tgt_present, meld, shuffle_mask_epsilon);
-
+
si_stqd(out_temp0, (qword)address_counter_tgt, 0);
si_stqd(out_temp1, (qword)address_counter_tgt, 16);
-
+
return retval;
}
diff --git a/volk/spu_lib/spu_16s_vector_sum_unaligned.c b/volk/spu_lib/spu_16s_vector_sum_unaligned.c
index 5a1cb9aaf..0097b4f56 100644
--- a/volk/spu_lib/spu_16s_vector_sum_unaligned.c
+++ b/volk/spu_lib/spu_16s_vector_sum_unaligned.c
@@ -4,15 +4,15 @@ void* libvector_16s_vector_sum_unaligned(void* target, void* src0, void* src1,
//loop iterator i
int i = 0;
void* retval = target;
-
+
//put the target and source addresses into qwords
vector unsigned int address_counter_tgt = {(unsigned int)target, 0, 0, 0};
vector unsigned int address_counter_src0 = {(unsigned int)src0, 0, 0 ,0};
vector unsigned int address_counter_src1 = {(unsigned int)src1, 0, 0, 0};
-
+
//create shuffle masks
-
+
//shuffle mask building blocks:
//all from the first vector
vector unsigned char oneup = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
@@ -20,9 +20,9 @@ void* libvector_16s_vector_sum_unaligned(void* target, void* src0, void* src1,
//all from the second vector
vector unsigned char second_oneup = {0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f};
-
-
+
+
//gamma: second half of the second, first half of the first, break at (unsigned int)src0%16
vector unsigned char src_cmp = spu_splats((unsigned char)((unsigned int)src0%16));
vector unsigned char gt_res = spu_cmpgt(oneup, src_cmp);
@@ -30,7 +30,7 @@ void* libvector_16s_vector_sum_unaligned(void* target, void* src0, void* src1,
vector unsigned char cmp_res = spu_or(gt_res, eq_res);
vector unsigned char sixteen_uchar = spu_splats((unsigned char)16);
vector unsigned char phase_change = spu_and(sixteen_uchar, cmp_res);
- vector unsigned int shuffle_mask_gamma = spu_add((vector unsigned int)phase_change,
+ vector unsigned int shuffle_mask_gamma = spu_add((vector unsigned int)phase_change,
(vector unsigned int)oneup);
shuffle_mask_gamma = spu_rlqwbyte(shuffle_mask_gamma, (unsigned int)src0%16);
@@ -41,17 +41,17 @@ void* libvector_16s_vector_sum_unaligned(void* target, void* src0, void* src1,
cmp_res = spu_or(gt_res, eq_res);
sixteen_uchar = spu_splats((unsigned char)16);
phase_change = spu_and(sixteen_uchar, cmp_res);
- vector unsigned int shuffle_mask_eta = spu_add((vector unsigned int)phase_change,
+ vector unsigned int shuffle_mask_eta = spu_add((vector unsigned int)phase_change,
(vector unsigned int)oneup);
shuffle_mask_eta = spu_rlqwbyte(shuffle_mask_eta, (unsigned int)src1%16);
-
-
-
+
+
+
vector unsigned char tgt_second = spu_rlqwbyte(second_oneup, -((unsigned int)target%16));
vector unsigned char tgt_first = spu_rlqwbyte(oneup, -((unsigned int)target%16));
-
+
//alpha: first half of first, second half of second, break at (unsigned int)target%16
src_cmp = spu_splats((unsigned char)((unsigned int)target%16));
gt_res = spu_cmpgt(oneup, src_cmp);
@@ -60,13 +60,13 @@ void* libvector_16s_vector_sum_unaligned(void* target, void* src0, void* src1,
phase_change = spu_and(sixteen_uchar, cmp_res);
vector unsigned int shuffle_mask_alpha = spu_add((vector unsigned int)phase_change,
(vector unsigned int)oneup);
-
+
//delta: first half of first, first half of second, break at (unsigned int)target%16
vector unsigned char shuffle_mask_delta = spu_shuffle(oneup, tgt_second, (vector unsigned char)shuffle_mask_alpha);
//epsilon: second half of second, second half of first, break at (unsigned int)target%16
vector unsigned char shuffle_mask_epsilon = spu_shuffle(tgt_second, oneup, (vector unsigned char)shuffle_mask_alpha);
//zeta: second half of second, first half of first, break at 16 - (unsigned int)target%16
- vector unsigned int shuffle_mask_zeta = spu_rlqwbyte(shuffle_mask_alpha, (unsigned int)target%16);
+ vector unsigned int shuffle_mask_zeta = spu_rlqwbyte(shuffle_mask_alpha, (unsigned int)target%16);
//beta: first half of first, second half of second, break at num_bytes%16
src_cmp = spu_splats((unsigned char)(num_bytes%16));
@@ -76,19 +76,19 @@ void* libvector_16s_vector_sum_unaligned(void* target, void* src0, void* src1,
phase_change = spu_and(sixteen_uchar, cmp_res);
vector unsigned int shuffle_mask_beta = spu_add((vector unsigned int)phase_change,
(vector unsigned int)oneup);
-
-
-
-
+
+
+
+
qword src0_past;
qword src0_present;
qword src1_past;
qword src1_present;
qword tgt_past;
qword tgt_present;
-
+
qword in_temp0;
qword in_temp1;
qword out_temp0;
@@ -99,54 +99,54 @@ void* libvector_16s_vector_sum_unaligned(void* target, void* src0, void* src1,
src0_past = si_lqd((qword)address_counter_src0, 0);
src1_past = si_lqd((qword)address_counter_src1, 0);
tgt_past = si_lqd((qword)address_counter_tgt, 0);
-
+
for(i = 0; i < num_bytes/16; ++i) {
-
+
src0_present = si_lqd((qword)address_counter_src0, 16);
src1_present = si_lqd((qword)address_counter_src1, 16);
tgt_present = si_lqd((qword)address_counter_tgt, 16);
-
+
in_temp0 = spu_shuffle(src0_present, src0_past, (vector unsigned char)shuffle_mask_gamma);
in_temp1 = spu_shuffle(src1_present, src1_past, (vector unsigned char)shuffle_mask_eta);
-
+
sum = spu_add((vector signed int)in_temp0, (vector signed int)in_temp1);
-
+
out_temp0 = spu_shuffle(tgt_past, (qword)sum, shuffle_mask_delta);
out_temp1 = spu_shuffle(tgt_present, (qword)sum, shuffle_mask_epsilon);
-
+
si_stqd(out_temp0, (qword)address_counter_tgt, 0);
si_stqd(out_temp1, (qword)address_counter_tgt, 16);
-
+
tgt_past = out_temp1;
src0_past = src0_present;
src1_past = src1_present;
address_counter_src0 = spu_add(address_counter_src0, 16);
address_counter_src1 = spu_add(address_counter_src1, 16);
address_counter_tgt = spu_add(address_counter_tgt, 16);
-
-
+
+
}
-
+
src0_present = si_lqd((qword)address_counter_src0, 16);
src1_present = si_lqd((qword)address_counter_src1, 16);
tgt_present = si_lqd((qword)address_counter_tgt, 16);
-
-
+
+
in_temp0 = spu_shuffle(src0_present, src0_past, (vector unsigned char) shuffle_mask_gamma);
in_temp1 = spu_shuffle(src1_present, src1_past, (vector unsigned char) shuffle_mask_eta);
sum = spu_add((vector signed int)in_temp0, (vector signed int)in_temp1);
qword target_temp = spu_shuffle(tgt_present, tgt_past, (vector unsigned char) shuffle_mask_zeta);
qword meld = spu_shuffle((qword)sum, target_temp, (vector unsigned char)shuffle_mask_beta);
-
-
+
+
out_temp0 = spu_shuffle(tgt_past, meld, shuffle_mask_delta);
out_temp1 = spu_shuffle(tgt_present, meld, shuffle_mask_epsilon);
-
+
si_stqd(out_temp0, (qword)address_counter_tgt, 0);
si_stqd(out_temp1, (qword)address_counter_tgt, 16);
-
+
return retval;
}
diff --git a/volk/spu_lib/spu_32fc_pointwise_multiply_unaligned.c b/volk/spu_lib/spu_32fc_pointwise_multiply_unaligned.c
index 58fd4aa0c..d1c960488 100644
--- a/volk/spu_lib/spu_32fc_pointwise_multiply_unaligned.c
+++ b/volk/spu_lib/spu_32fc_pointwise_multiply_unaligned.c
@@ -7,15 +7,15 @@ void* libvector_pointwise_multiply_32fc_unaligned(void* target, void* src0, voi
//loop iterator i
int i = 0;
void* retval = target;
-
+
//put the target and source addresses into qwords
vector unsigned int address_counter_tgt = {(unsigned int)target, 0, 0, 0};
vector unsigned int address_counter_src0 = {(unsigned int)src0, 0, 0 ,0};
vector unsigned int address_counter_src1 = {(unsigned int)src1, 0, 0, 0};
-
+
//create shuffle masks
-
+
//shuffle mask building blocks:
//all from the first vector
vector unsigned char oneup = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
@@ -23,9 +23,9 @@ void* libvector_pointwise_multiply_32fc_unaligned(void* target, void* src0, voi
//all from the second vector
vector unsigned char second_oneup = {0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f};
-
-
+
+
//gamma: second half of the second, first half of the first, break at (unsigned int)src0%16
vector unsigned char src_cmp = spu_splats((unsigned char)((unsigned int)src0%16));
vector unsigned char gt_res = spu_cmpgt(oneup, src_cmp);
@@ -33,7 +33,7 @@ void* libvector_pointwise_multiply_32fc_unaligned(void* target, void* src0, voi
vector unsigned char cmp_res = spu_or(gt_res, eq_res);
vector unsigned char sixteen_uchar = spu_splats((unsigned char)16);
vector unsigned char phase_change = spu_and(sixteen_uchar, cmp_res);
- vector unsigned int shuffle_mask_gamma = spu_add((vector unsigned int)phase_change,
+ vector unsigned int shuffle_mask_gamma = spu_add((vector unsigned int)phase_change,
(vector unsigned int)oneup);
shuffle_mask_gamma = spu_rlqwbyte(shuffle_mask_gamma, (unsigned int)src0%16);
@@ -44,17 +44,17 @@ void* libvector_pointwise_multiply_32fc_unaligned(void* target, void* src0, voi
cmp_res = spu_or(gt_res, eq_res);
sixteen_uchar = spu_splats((unsigned char)16);
phase_change = spu_and(sixteen_uchar, cmp_res);
- vector unsigned int shuffle_mask_eta = spu_add((vector unsigned int)phase_change,
+ vector unsigned int shuffle_mask_eta = spu_add((vector unsigned int)phase_change,
(vector unsigned int)oneup);
shuffle_mask_eta = spu_rlqwbyte(shuffle_mask_eta, (unsigned int)src1%16);
-
-
-
+
+
+
vector unsigned char tgt_second = spu_rlqwbyte(second_oneup, -((unsigned int)target%16));
vector unsigned char tgt_first = spu_rlqwbyte(oneup, -((unsigned int)target%16));
-
+
//alpha: first half of first, second half of second, break at (unsigned int)target%16
src_cmp = spu_splats((unsigned char)((unsigned int)target%16));
gt_res = spu_cmpgt(oneup, src_cmp);
@@ -63,13 +63,13 @@ void* libvector_pointwise_multiply_32fc_unaligned(void* target, void* src0, voi
phase_change = spu_and(sixteen_uchar, cmp_res);
vector unsigned int shuffle_mask_alpha = spu_add((vector unsigned int)phase_change,
(vector unsigned int)oneup);
-
+
//delta: first half of first, first half of second, break at (unsigned int)target%16
vector unsigned char shuffle_mask_delta = spu_shuffle(oneup, tgt_second, (vector unsigned char)shuffle_mask_alpha);
//epsilon: second half of second, second half of first, break at (unsigned int)target%16
vector unsigned char shuffle_mask_epsilon = spu_shuffle(tgt_second, oneup, (vector unsigned char)shuffle_mask_alpha);
//zeta: second half of second, first half of first, break at 16 - (unsigned int)target%16
- vector unsigned int shuffle_mask_zeta = spu_rlqwbyte(shuffle_mask_alpha, (unsigned int)target%16);
+ vector unsigned int shuffle_mask_zeta = spu_rlqwbyte(shuffle_mask_alpha, (unsigned int)target%16);
//beta: first half of first, second half of second, break at num_bytes%16
src_cmp = spu_splats((unsigned char)(num_bytes%16));
@@ -79,19 +79,19 @@ void* libvector_pointwise_multiply_32fc_unaligned(void* target, void* src0, voi
phase_change = spu_and(sixteen_uchar, cmp_res);
vector unsigned int shuffle_mask_beta = spu_add((vector unsigned int)phase_change,
(vector unsigned int)oneup);
-
-
-
-
+
+
+
+
qword src0_past;
qword src0_present;
qword src1_past;
qword src1_present;
qword tgt_past;
qword tgt_present;
-
+
qword in_temp0;
qword in_temp1;
qword out_temp0;
@@ -101,7 +101,7 @@ void* libvector_pointwise_multiply_32fc_unaligned(void* target, void* src0, voi
src0_past = si_lqd((qword)address_counter_src0, 0);
src1_past = si_lqd((qword)address_counter_src1, 0);
tgt_past = si_lqd((qword)address_counter_tgt, 0);
-
+
vector unsigned char shuffle_mask_complexprod0 = {0x04, 0x05, 0x06, 0x07, 0x00, 0x01, 0x02, 0x03,
0x0c, 0x0d, 0x0e, 0x0f, 0x08, 0x09, 0x0a, 0x0b};
vector unsigned char shuffle_mask_complexprod1 = {0x00, 0x01, 0x02, 0x03, 0x10, 0x11, 0x12, 0x13,
@@ -110,7 +110,7 @@ void* libvector_pointwise_multiply_32fc_unaligned(void* target, void* src0, voi
0x0c, 0x0d, 0x0e, 0x0f, 0x1c, 0x1d, 0x1e, 0x1f};
vector unsigned char sign_changer = {0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00};
-
+
vector float prod0;
qword shuf0;
vector float prod1;
@@ -118,54 +118,54 @@ void* libvector_pointwise_multiply_32fc_unaligned(void* target, void* src0, voi
qword summand0;
qword summand1;
vector float sum;
-
+
for(i = 0; i < num_bytes/16; ++i) {
-
+
src0_present = si_lqd((qword)address_counter_src0, 16);
src1_present = si_lqd((qword)address_counter_src1, 16);
tgt_present = si_lqd((qword)address_counter_tgt, 16);
-
+
in_temp0 = spu_shuffle(src0_present, src0_past, (vector unsigned char)shuffle_mask_gamma);
in_temp1 = spu_shuffle(src1_present, src1_past, (vector unsigned char)shuffle_mask_eta);
-
+
prod0 = spu_mul((vector float)in_temp0, (vector float)in_temp1);
shuf0 = spu_shuffle((qword)in_temp1, (qword)in_temp1, shuffle_mask_complexprod0);
prod1 = spu_mul((vector float)in_temp0, (vector float)shuf0);
sign_change = spu_xor(prod0, (vector float)sign_changer);
-
+
summand0 = spu_shuffle((qword)sign_change, (qword)prod1, shuffle_mask_complexprod1);
-
+
summand1 = spu_shuffle((qword)sign_change, (qword)prod1, shuffle_mask_complexprod2);
-
+
sum = spu_add((vector float)summand0, (vector float)summand1);
-
+
out_temp0 = spu_shuffle(tgt_past, (qword)sum, shuffle_mask_delta);
out_temp1 = spu_shuffle(tgt_present, (qword)sum, shuffle_mask_epsilon);
-
+
si_stqd(out_temp0, (qword)address_counter_tgt, 0);
si_stqd(out_temp1, (qword)address_counter_tgt, 16);
-
+
tgt_past = out_temp1;
src0_past = src0_present;
src1_past = src1_present;
address_counter_src0 = spu_add(address_counter_src0, 16);
address_counter_src1 = spu_add(address_counter_src1, 16);
address_counter_tgt = spu_add(address_counter_tgt, 16);
-
-
+
+
}
-
+
src0_present = si_lqd((qword)address_counter_src0, 16);
src1_present = si_lqd((qword)address_counter_src1, 16);
tgt_present = si_lqd((qword)address_counter_tgt, 16);
-
-
+
+
in_temp0 = spu_shuffle(src0_present, src0_past, (vector unsigned char) shuffle_mask_gamma);
in_temp1 = spu_shuffle(src1_present, src1_past, (vector unsigned char) shuffle_mask_eta);
-
-
+
+
prod0 = spu_mul((vector float)in_temp0, (vector float)in_temp1);
shuf0 = spu_shuffle((qword)in_temp1, (qword)in_temp1, shuffle_mask_complexprod0);
prod1 = spu_mul(prod0, (vector float)shuf0);
@@ -173,20 +173,20 @@ void* libvector_pointwise_multiply_32fc_unaligned(void* target, void* src0, voi
summand0 = spu_shuffle((qword)sign_change, (qword)prod1, shuffle_mask_complexprod1);
summand1 = spu_shuffle((qword)sign_change, (qword)prod1, shuffle_mask_complexprod2);
sum = spu_add((vector float)summand0, (vector float)summand1);
-
-
-
+
+
+
qword target_temp = spu_shuffle(tgt_present, tgt_past, (vector unsigned char) shuffle_mask_zeta);
qword meld = spu_shuffle((qword)sum, target_temp, (vector unsigned char)shuffle_mask_beta);
-
-
-
+
+
+
out_temp0 = spu_shuffle(tgt_past, meld, shuffle_mask_delta);
out_temp1 = spu_shuffle(tgt_present, meld, shuffle_mask_epsilon);
-
+
si_stqd(out_temp0, (qword)address_counter_tgt, 0);
si_stqd(out_temp1, (qword)address_counter_tgt, 16);
-
+
return retval;
}
@@ -209,14 +209,14 @@ int main(){
vector_product_complex(res, pooh, bear, 48*sizeof(float));
-
+
for(i = 0; i < 48; ++i) {
printf("%f, ", res[i]);
}
printf("\n");
-
+
}
*/
diff --git a/volk/spu_lib/spu_memcpy_unaligned.c b/volk/spu_lib/spu_memcpy_unaligned.c
index 2a0dabcd7..0f15b5d80 100644
--- a/volk/spu_lib/spu_memcpy_unaligned.c
+++ b/volk/spu_lib/spu_memcpy_unaligned.c
@@ -5,14 +5,14 @@ void* libvector_memcpy_unaligned(void* target, void* src, unsigned int num_bytes
//loop iterator i
int i = 0;
void* retval = target;
-
+
//put the target and source addresses into qwords
vector unsigned int address_counter_tgt = {(unsigned int)target, 0, 0, 0};
vector unsigned int address_counter_src = {(unsigned int)src, 0, 0 ,0};
-
+
//create shuffle masks
-
+
//shuffle mask building blocks:
//all from the first vector
vector unsigned char oneup = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
@@ -20,9 +20,9 @@ void* libvector_memcpy_unaligned(void* target, void* src, unsigned int num_bytes
//all from the second vector
vector unsigned char second_oneup = {0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f};
-
-
+
+
//gamma: second half of the second, first half of the first, break at (unsigned int)src%16
vector unsigned char src_cmp = spu_splats((unsigned char)((unsigned int)src%16));
vector unsigned char gt_res = spu_cmpgt(oneup, src_cmp);
@@ -30,16 +30,16 @@ void* libvector_memcpy_unaligned(void* target, void* src, unsigned int num_bytes
vector unsigned char cmp_res = spu_or(gt_res, eq_res);
vector unsigned char sixteen_uchar = spu_splats((unsigned char)16);
vector unsigned char phase_change = spu_and(sixteen_uchar, cmp_res);
- vector unsigned int shuffle_mask_gamma = spu_add((vector unsigned int)phase_change,
+ vector unsigned int shuffle_mask_gamma = spu_add((vector unsigned int)phase_change,
(vector unsigned int)oneup);
shuffle_mask_gamma = spu_rlqwbyte(shuffle_mask_gamma, (unsigned int)src%16);
-
-
+
+
vector unsigned char tgt_second = spu_rlqwbyte(second_oneup, -((unsigned int)target%16));
vector unsigned char tgt_first = spu_rlqwbyte(oneup, -((unsigned int)target%16));
-
+
//alpha: first half of first, second half of second, break at (unsigned int)target%16
src_cmp = spu_splats((unsigned char)((unsigned int)target%16));
gt_res = spu_cmpgt(oneup, src_cmp);
@@ -48,13 +48,13 @@ void* libvector_memcpy_unaligned(void* target, void* src, unsigned int num_bytes
phase_change = spu_and(sixteen_uchar, cmp_res);
vector unsigned int shuffle_mask_alpha = spu_add((vector unsigned int)phase_change,
(vector unsigned int)oneup);
-
+
//delta: first half of first, first half of second, break at (unsigned int)target%16
vector unsigned char shuffle_mask_delta = spu_shuffle(oneup, tgt_second, (vector unsigned char)shuffle_mask_alpha);
//epsilon: second half of second, second half of first, break at (unsigned int)target%16
vector unsigned char shuffle_mask_epsilon = spu_shuffle(tgt_second, oneup, (vector unsigned char)shuffle_mask_alpha);
//zeta: second half of second, first half of first, break at 16 - (unsigned int)target%16
- vector unsigned int shuffle_mask_zeta = spu_rlqwbyte(shuffle_mask_alpha, (unsigned int)target%16);
+ vector unsigned int shuffle_mask_zeta = spu_rlqwbyte(shuffle_mask_alpha, (unsigned int)target%16);
//beta: first half of first, second half of second, break at num_bytes%16
src_cmp = spu_splats((unsigned char)(num_bytes%16));
@@ -64,61 +64,61 @@ void* libvector_memcpy_unaligned(void* target, void* src, unsigned int num_bytes
phase_change = spu_and(sixteen_uchar, cmp_res);
vector unsigned int shuffle_mask_beta = spu_add((vector unsigned int)phase_change,
(vector unsigned int)oneup);
-
-
-
-
+
+
+
+
qword src_past;
qword src_present;
qword tgt_past;
qword tgt_present;
-
+
qword in_temp;
qword out_temp0;
qword out_temp1;
src_past = si_lqd((qword)address_counter_src, 0);
tgt_past = si_lqd((qword)address_counter_tgt, 0);
-
+
for(i = 0; i < num_bytes/16; ++i) {
-
+
src_present = si_lqd((qword)address_counter_src, 16);
tgt_present = si_lqd((qword)address_counter_tgt, 16);
-
+
in_temp = spu_shuffle(src_present, src_past, (vector unsigned char)shuffle_mask_gamma);
-
+
out_temp0 = spu_shuffle(tgt_past, in_temp, shuffle_mask_delta);
out_temp1 = spu_shuffle(tgt_present, in_temp, shuffle_mask_epsilon);
si_stqd(out_temp0, (qword)address_counter_tgt, 0);
si_stqd(out_temp1, (qword)address_counter_tgt, 16);
-
+
tgt_past = out_temp1;
src_past = src_present;
address_counter_src = spu_add(address_counter_src, 16);
address_counter_tgt = spu_add(address_counter_tgt, 16);
-
+
}
-
+
src_present = si_lqd((qword)address_counter_src, 16);
tgt_present = si_lqd((qword)address_counter_tgt, 16);
-
-
+
+
in_temp = spu_shuffle(src_present, src_past,(vector unsigned char) shuffle_mask_gamma);
qword target_temp = spu_shuffle(tgt_present, tgt_past, (vector unsigned char) shuffle_mask_zeta);
qword meld = spu_shuffle(in_temp, target_temp, (vector unsigned char)shuffle_mask_beta);
-
-
+
+
out_temp0 = spu_shuffle(tgt_past, meld, shuffle_mask_delta);
out_temp1 = spu_shuffle(tgt_present, meld, shuffle_mask_epsilon);
-
+
si_stqd(out_temp0, (qword)address_counter_tgt, 0);
si_stqd(out_temp1, (qword)address_counter_tgt, 16);
-
+
return retval;
}
@@ -133,9 +133,9 @@ void* mcpy(void* target, void* src, size_t num_bytes){
//put the target and source addresses into qwords
vector unsigned int address_counter_tgt = {(unsigned int)target, 0, 0, 0};
vector unsigned int address_counter_src = {(unsigned int)src, 0, 0 ,0};
-
+
//create shuffle masks
-
+
//shuffle mask building blocks:
//all from the first vector
vector unsigned char oneup = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
@@ -143,9 +143,9 @@ void* mcpy(void* target, void* src, size_t num_bytes){
//all from the second vector
vector unsigned char second_oneup = {0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f};
-
-
+
+
//gamma: second half of the second, first half of the first, break at src%16
vector unsigned char src_cmp = spu_splats((unsigned char)(src%16));
vector unsigned char gt_res = spu_cmpgt(oneup, src_cmp);
@@ -153,16 +153,16 @@ void* mcpy(void* target, void* src, size_t num_bytes){
vector unsigned char cmp_res = spu_or(gt_res, eq_res);
vector unsigned char sixteen_uchar = spu_splats((unsigned char)16);
vector unsigned char phase_change = spu_and(sixteen_uchar, cmp_res);
- vector unsigned int shuffle_mask_gamma = spu_add((vector unsigned int)phase_change,
+ vector unsigned int shuffle_mask_gamma = spu_add((vector unsigned int)phase_change,
(vector unsigned int)oneup);
shuffle_mask_gamma = spu_rlqwbyte(shuffle_mask_gamma, src%16);
-
-
+
+
vector unsigned char tgt_second = spu_rlqwbyte(second_oneup, -(target%16));
vector unsigned char tgt_first = spu_rlqwbyte(oneup, -(target%16));
-
+
//alpha: first half of first, second half of second, break at target%16
src_cmp = spu_splats((unsigned char)(target%16));
gt_res = spu_cmpgt(oneup, src_cmp);
@@ -171,13 +171,13 @@ void* mcpy(void* target, void* src, size_t num_bytes){
phase_change = spu_and(sixteen_uchar, cmp_res);
vector unsigned int shuffle_mask_alpha = spu_add((vector unsigned int)phase_change,
(vector unsigned int)oneup);
-
+
//delta: first half of first, first half of second, break at target%16
vector unsigned char shuffle_mask_delta = spu_shuffle(oneup, tgt_second, (vector unsigned char)shuffle_mask_alpha);
//epsilon: second half of second, second half of first, break at target%16
vector unsigned char shuffle_mask_epsilon = spu_shuffle(tgt_second, oneup, (vector unsigned char)shuffle_mask_alpha);
//zeta: second half of second, first half of first, break at 16 - target%16
- vector unsigned int shuffle_mask_zeta = spu_rlqwbyte(shuffle_mask_alpha, target%16);
+ vector unsigned int shuffle_mask_zeta = spu_rlqwbyte(shuffle_mask_alpha, target%16);
//beta: first half of first, second half of second, break at num_bytes%16
src_cmp = spu_splats((unsigned char)(num_bytes%16));
@@ -187,10 +187,10 @@ void* mcpy(void* target, void* src, size_t num_bytes){
phase_change = spu_and(sixteen_uchar, cmp_res);
vector unsigned int shuffle_mask_beta = spu_add((vector unsigned int)phase_change,
(vector unsigned int)oneup);
-
-
+
+
printf("num_bytesmod16 %d\n", num_bytes%16);
- printf("beta %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d\n",
+ printf("beta %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d\n",
spu_extract((vector unsigned char) shuffle_mask_beta, 0),
spu_extract((vector unsigned char) shuffle_mask_beta, 1),
spu_extract((vector unsigned char) shuffle_mask_beta, 2),
@@ -207,64 +207,64 @@ void* mcpy(void* target, void* src, size_t num_bytes){
spu_extract((vector unsigned char) shuffle_mask_beta, 13),
spu_extract((vector unsigned char) shuffle_mask_beta, 14),
spu_extract((vector unsigned char) shuffle_mask_beta, 15));
-
-
-
-
+
+
+
+
qword src_past;
qword src_present;
qword tgt_past;
qword tgt_present;
-
+
qword in_temp;
qword out_temp0;
qword out_temp1;
src_past = si_lqd((qword)address_counter_src, 0);
tgt_past = si_lqd((qword)address_counter_tgt, 0);
-
+
for(i = 0; i < num_bytes/16; ++i) {
-
+
src_present = si_lqd((qword)address_counter_src, 16);
tgt_present = si_lqd((qword)address_counter_tgt, 16);
-
+
in_temp = spu_shuffle(src_present, src_past, (vector unsigned char)shuffle_mask_gamma);
-
+
out_temp0 = spu_shuffle(tgt_past, in_temp, shuffle_mask_delta);
out_temp1 = spu_shuffle(tgt_present, in_temp, shuffle_mask_epsilon);
si_stqd(out_temp0, (qword)address_counter_tgt, 0);
si_stqd(out_temp1, (qword)address_counter_tgt, 16);
-
+
tgt_past = out_temp1;
src_past = src_present;
address_counter_src = spu_add(address_counter_src, 16);
address_counter_tgt = spu_add(address_counter_tgt, 16);
-
+
}
-
+
src_present = si_lqd((qword)address_counter_src, 16);
tgt_present = si_lqd((qword)address_counter_tgt, 16);
-
-
+
+
in_temp = spu_shuffle(src_present, src_past,(vector unsigned char) shuffle_mask_gamma);
qword target_temp = spu_shuffle(tgt_present, tgt_past, (vector unsigned char) shuffle_mask_zeta);
qword meld = spu_shuffle(in_temp, target_temp, (vector unsigned char)shuffle_mask_beta);
-
-
+
+
out_temp0 = spu_shuffle(tgt_past, meld, shuffle_mask_delta);
out_temp1 = spu_shuffle(tgt_present, meld, shuffle_mask_epsilon);
-
+
si_stqd(out_temp0, (qword)address_counter_tgt, 0);
si_stqd(out_temp1, (qword)address_counter_tgt, 16);
return retval;
-
+
}
*/
/*
@@ -286,5 +286,5 @@ int main(){
}
printf("\n");
}
-
+
*/
diff --git a/volk/spu_lib/spu_memset_unaligned.S b/volk/spu_lib/spu_memset_unaligned.S
index a655c4c52..c260a125c 100644
--- a/volk/spu_lib/spu_memset_unaligned.S
+++ b/volk/spu_lib/spu_memset_unaligned.S
@@ -1,19 +1,19 @@
/* -*- asm -*- */
/*
* Copyright 2008 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -33,11 +33,11 @@
* size_t i;
* for (i = 0; i < n; i++)
* p[i] = c;
- *
+ *
* return pv;
* }
*/
-
+
#define p_arg arg1 // we're going to clobber arg1 w/ the return value
#define c arg2 // the constant we're writing
#define n arg3 // how many bytes to write
@@ -50,16 +50,16 @@
#define an r18 // aligned n (n rounded down to mod 16 boundary)
#define next_p r19
#define cond1 r20
-#define cond2 r21
+#define cond2 r21
#define m r22
#define r r23
-
+
PROC_ENTRY(libvector_memset_unaligned)
-
+
// Hint the return from do_head, in case we go that way.
// There's pretty much nothing to can do to hint the branch to it.
hbrr do_head_br, head_complete
-
+
MR(p, p_arg) // leaves p, the return value, in the correct reg (r3)
BRZ_RETURN(n)
@@ -69,11 +69,11 @@
head_complete:
/*
- * preconditions:
+ * preconditions:
* p%16 == 0, n > 0
*/
hbrr middle_loop_br, middle_loop
-
+
ROUND_DOWN(an, n, 16) // an is "aligned n"
MODULO(n, n, 16) // what's left over in the last quad
brz an, do_tail // no whole quad words; skip to tail
@@ -96,20 +96,20 @@ middle_loop:
stqd c, 4*16(p)
stqd c, 5*16(p)
stqd c, 6*16(p)
-
+
MR(p, next_p)
stqd c, 7*16-128(next_p)
or cond2, n, an
middle_loop_br:
brnz cond1, middle_loop
-
+
/*
- * if an and n are both zero, return now
+ * if an and n are both zero, return now
*/
BRZ_RETURN(cond2)
/*
- * otherwise handle last of full quad words
+ * otherwise handle last of full quad words
*
* 0 <= an < 128, p%16 == 0
*/
@@ -119,18 +119,18 @@ middle2:
*/
brz an, do_tail
hbrr middle2_loop_br, middle2_loop
-
+
.p2align 3
-middle2_loop:
+middle2_loop:
ai next_p, p, 16
stqd c, 0(p)
ai an, an, -16
LMR(p, next_p)
middle2_loop_br:
brnz an, middle2_loop
-
+
/* We're done with the full quadwords. */
-
+
/*
* Handle the final partial quadword.
* We'll be modifying only the left hand portion of the quad.
@@ -146,7 +146,7 @@ do_tail:
shlqby mask, mask, t1
selb t0, old, c, mask
stqd t0, 0(p)
-do_tail_ret:
+do_tail_ret:
RETURN()
/*
@@ -176,7 +176,7 @@ do_head:
MR(t1, p)
sf t0, m, r // t0 = r - m
a p, p, m // p += m
- rotqby mask, mask, t0 // rotate 0's to the right place
+ rotqby mask, mask, t0 // rotate 0's to the right place
sf n, m, n // n -= m
selb t0, c, old, mask // merge
stqd t0, 0(t1)