summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/lib/general
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2012-12-21 15:11:39 -0500
committerTom Rondeau <trondeau@vt.edu>2012-12-21 21:19:13 -0500
commit55d3e4a47958be287648a2021f7e92d81086b2d9 (patch)
treeae0195c457f2cf2734376679cc88c2d728040680 /gnuradio-core/src/lib/general
parentfa781237f341a74a243a9fb930daee7e62c3a682 (diff)
blocks: removes blocks moved to gr-blocks from gnuradio-core.
Also fixes up some other missing moves.
Diffstat (limited to 'gnuradio-core/src/lib/general')
-rw-r--r--gnuradio-core/src/lib/general/CMakeLists.txt50
-rw-r--r--gnuradio-core/src/lib/general/general.i64
-rw-r--r--gnuradio-core/src/lib/general/general_generated.i72
-rw-r--r--gnuradio-core/src/lib/general/gr_add_ff.cc66
-rw-r--r--gnuradio-core/src/lib/general/gr_add_ff.h56
-rw-r--r--gnuradio-core/src/lib/general/gr_add_ff.i32
-rw-r--r--gnuradio-core/src/lib/general/gr_char_to_float.cc72
-rw-r--r--gnuradio-core/src/lib/general/gr_char_to_float.h70
-rw-r--r--gnuradio-core/src/lib/general/gr_char_to_float.i33
-rw-r--r--gnuradio-core/src/lib/general/gr_char_to_short.cc64
-rw-r--r--gnuradio-core/src/lib/general/gr_char_to_short.h58
-rw-r--r--gnuradio-core/src/lib/general/gr_char_to_short.i30
-rw-r--r--gnuradio-core/src/lib/general/gr_conjugate_cc.cc65
-rw-r--r--gnuradio-core/src/lib/general/gr_conjugate_cc.h52
-rw-r--r--gnuradio-core/src/lib/general/gr_conjugate_cc.i33
-rw-r--r--gnuradio-core/src/lib/general/gr_deinterleave.cc78
-rw-r--r--gnuradio-core/src/lib/general/gr_deinterleave.h57
-rw-r--r--gnuradio-core/src/lib/general/gr_deinterleave.i30
-rw-r--r--gnuradio-core/src/lib/general/gr_float_to_char.cc79
-rw-r--r--gnuradio-core/src/lib/general/gr_float_to_char.h70
-rw-r--r--gnuradio-core/src/lib/general/gr_float_to_char.i33
-rw-r--r--gnuradio-core/src/lib/general/gr_float_to_complex.cc72
-rw-r--r--gnuradio-core/src/lib/general/gr_float_to_complex.h55
-rw-r--r--gnuradio-core/src/lib/general/gr_float_to_complex.i30
-rw-r--r--gnuradio-core/src/lib/general/gr_float_to_int.cc89
-rw-r--r--gnuradio-core/src/lib/general/gr_float_to_int.h70
-rw-r--r--gnuradio-core/src/lib/general/gr_float_to_int.i33
-rw-r--r--gnuradio-core/src/lib/general/gr_float_to_short.cc79
-rw-r--r--gnuradio-core/src/lib/general/gr_float_to_short.h69
-rw-r--r--gnuradio-core/src/lib/general/gr_float_to_short.i33
-rw-r--r--gnuradio-core/src/lib/general/gr_float_to_uchar.cc58
-rw-r--r--gnuradio-core/src/lib/general/gr_float_to_uchar.h52
-rw-r--r--gnuradio-core/src/lib/general/gr_float_to_uchar.i30
-rw-r--r--gnuradio-core/src/lib/general/gr_int_to_float.cc67
-rw-r--r--gnuradio-core/src/lib/general/gr_int_to_float.h70
-rw-r--r--gnuradio-core/src/lib/general/gr_int_to_float.i32
-rw-r--r--gnuradio-core/src/lib/general/gr_interleave.cc77
-rw-r--r--gnuradio-core/src/lib/general/gr_interleave.h57
-rw-r--r--gnuradio-core/src/lib/general/gr_interleave.i30
-rw-r--r--gnuradio-core/src/lib/general/gr_interleaved_short_to_complex.cc59
-rw-r--r--gnuradio-core/src/lib/general/gr_interleaved_short_to_complex.h52
-rw-r--r--gnuradio-core/src/lib/general/gr_interleaved_short_to_complex.i30
-rw-r--r--gnuradio-core/src/lib/general/gr_keep_m_in_n.cc98
-rw-r--r--gnuradio-core/src/lib/general/gr_keep_m_in_n.h67
-rw-r--r--gnuradio-core/src/lib/general/gr_keep_m_in_n.i35
-rw-r--r--gnuradio-core/src/lib/general/gr_keep_one_in_n.cc105
-rw-r--r--gnuradio-core/src/lib/general/gr_keep_one_in_n.h62
-rw-r--r--gnuradio-core/src/lib/general/gr_keep_one_in_n.i35
-rw-r--r--gnuradio-core/src/lib/general/gr_multiply_cc.cc69
-rw-r--r--gnuradio-core/src/lib/general/gr_multiply_cc.h56
-rw-r--r--gnuradio-core/src/lib/general/gr_multiply_cc.i32
-rw-r--r--gnuradio-core/src/lib/general/gr_multiply_conjugate_cc.cc69
-rw-r--r--gnuradio-core/src/lib/general/gr_multiply_conjugate_cc.h57
-rw-r--r--gnuradio-core/src/lib/general/gr_multiply_conjugate_cc.i32
-rw-r--r--gnuradio-core/src/lib/general/gr_multiply_const_cc.cc80
-rw-r--r--gnuradio-core/src/lib/general/gr_multiply_const_cc.h60
-rw-r--r--gnuradio-core/src/lib/general/gr_multiply_const_cc.i33
-rw-r--r--gnuradio-core/src/lib/general/gr_multiply_const_ff.cc80
-rw-r--r--gnuradio-core/src/lib/general/gr_multiply_const_ff.h60
-rw-r--r--gnuradio-core/src/lib/general/gr_multiply_const_ff.i33
-rw-r--r--gnuradio-core/src/lib/general/gr_multiply_ff.cc69
-rw-r--r--gnuradio-core/src/lib/general/gr_multiply_ff.h56
-rw-r--r--gnuradio-core/src/lib/general/gr_multiply_ff.i32
-rw-r--r--gnuradio-core/src/lib/general/gr_nlog10_ff.cc64
-rw-r--r--gnuradio-core/src/lib/general/gr_nlog10_ff.h56
-rw-r--r--gnuradio-core/src/lib/general/gr_nlog10_ff.i33
-rw-r--r--gnuradio-core/src/lib/general/gr_repeat.cc69
-rw-r--r--gnuradio-core/src/lib/general/gr_repeat.h57
-rw-r--r--gnuradio-core/src/lib/general/gr_repeat.i11
-rw-r--r--gnuradio-core/src/lib/general/gr_short_to_char.cc67
-rw-r--r--gnuradio-core/src/lib/general/gr_short_to_char.h58
-rw-r--r--gnuradio-core/src/lib/general/gr_short_to_char.i31
-rw-r--r--gnuradio-core/src/lib/general/gr_short_to_float.cc78
-rw-r--r--gnuradio-core/src/lib/general/gr_short_to_float.h70
-rw-r--r--gnuradio-core/src/lib/general/gr_short_to_float.i33
-rw-r--r--gnuradio-core/src/lib/general/gr_stream_mux.cc124
-rw-r--r--gnuradio-core/src/lib/general/gr_stream_mux.h93
-rw-r--r--gnuradio-core/src/lib/general/gr_stream_mux.i42
-rw-r--r--gnuradio-core/src/lib/general/gr_stream_to_streams.cc66
-rw-r--r--gnuradio-core/src/lib/general/gr_stream_to_streams.h56
-rw-r--r--gnuradio-core/src/lib/general/gr_stream_to_streams.i34
-rw-r--r--gnuradio-core/src/lib/general/gr_stream_to_vector.cc58
-rw-r--r--gnuradio-core/src/lib/general/gr_stream_to_vector.h55
-rw-r--r--gnuradio-core/src/lib/general/gr_stream_to_vector.i34
-rw-r--r--gnuradio-core/src/lib/general/gr_streams_to_stream.cc68
-rw-r--r--gnuradio-core/src/lib/general/gr_streams_to_stream.h56
-rw-r--r--gnuradio-core/src/lib/general/gr_streams_to_stream.i34
-rw-r--r--gnuradio-core/src/lib/general/gr_streams_to_vector.cc64
-rw-r--r--gnuradio-core/src/lib/general/gr_streams_to_vector.h54
-rw-r--r--gnuradio-core/src/lib/general/gr_streams_to_vector.i34
-rw-r--r--gnuradio-core/src/lib/general/gr_uchar_to_float.cc55
-rw-r--r--gnuradio-core/src/lib/general/gr_uchar_to_float.h52
-rw-r--r--gnuradio-core/src/lib/general/gr_uchar_to_float.i30
-rw-r--r--gnuradio-core/src/lib/general/gr_vector_to_stream.cc58
-rw-r--r--gnuradio-core/src/lib/general/gr_vector_to_stream.h54
-rw-r--r--gnuradio-core/src/lib/general/gr_vector_to_stream.i34
-rw-r--r--gnuradio-core/src/lib/general/gr_vector_to_streams.cc64
-rw-r--r--gnuradio-core/src/lib/general/gr_vector_to_streams.h54
-rw-r--r--gnuradio-core/src/lib/general/gr_vector_to_streams.i34
-rw-r--r--gnuradio-core/src/lib/general/gri_char_to_float.cc40
-rw-r--r--gnuradio-core/src/lib/general/gri_char_to_float.h34
-rw-r--r--gnuradio-core/src/lib/general/gri_float_to_char.cc46
-rw-r--r--gnuradio-core/src/lib/general/gri_float_to_char.h33
-rw-r--r--gnuradio-core/src/lib/general/gri_float_to_int.cc47
-rw-r--r--gnuradio-core/src/lib/general/gri_float_to_int.h33
-rw-r--r--gnuradio-core/src/lib/general/gri_float_to_short.cc46
-rw-r--r--gnuradio-core/src/lib/general/gri_float_to_short.h33
-rw-r--r--gnuradio-core/src/lib/general/gri_float_to_uchar.cc46
-rw-r--r--gnuradio-core/src/lib/general/gri_float_to_uchar.h33
-rw-r--r--gnuradio-core/src/lib/general/gri_int_to_float.cc37
-rw-r--r--gnuradio-core/src/lib/general/gri_int_to_float.h34
-rw-r--r--gnuradio-core/src/lib/general/gri_interleaved_short_to_complex.cc39
-rw-r--r--gnuradio-core/src/lib/general/gri_interleaved_short_to_complex.h38
-rw-r--r--gnuradio-core/src/lib/general/gri_short_to_float.cc40
-rw-r--r--gnuradio-core/src/lib/general/gri_short_to_float.h34
-rw-r--r--gnuradio-core/src/lib/general/gri_uchar_to_float.cc40
-rw-r--r--gnuradio-core/src/lib/general/gri_uchar_to_float.h34
117 files changed, 0 insertions, 6149 deletions
diff --git a/gnuradio-core/src/lib/general/CMakeLists.txt b/gnuradio-core/src/lib/general/CMakeLists.txt
index 5978a035c7..6d67b333b9 100644
--- a/gnuradio-core/src/lib/general/CMakeLists.txt
+++ b/gnuradio-core/src/lib/general/CMakeLists.txt
@@ -76,18 +76,9 @@ list(APPEND gnuradio_core_sources
${CMAKE_CURRENT_SOURCE_DIR}/gr_random.cc
${CMAKE_CURRENT_SOURCE_DIR}/gr_reverse.cc
${CMAKE_CURRENT_SOURCE_DIR}/gri_add_const_ss_generic.cc
- ${CMAKE_CURRENT_SOURCE_DIR}/gri_char_to_float.cc
${CMAKE_CURRENT_SOURCE_DIR}/gri_control_loop.cc
${CMAKE_CURRENT_SOURCE_DIR}/gri_debugger_hook.cc
${CMAKE_CURRENT_SOURCE_DIR}/gri_fft.cc
- ${CMAKE_CURRENT_SOURCE_DIR}/gri_float_to_char.cc
- ${CMAKE_CURRENT_SOURCE_DIR}/gri_float_to_int.cc
- ${CMAKE_CURRENT_SOURCE_DIR}/gri_float_to_short.cc
- ${CMAKE_CURRENT_SOURCE_DIR}/gri_float_to_uchar.cc
- ${CMAKE_CURRENT_SOURCE_DIR}/gri_interleaved_short_to_complex.cc
- ${CMAKE_CURRENT_SOURCE_DIR}/gri_int_to_float.cc
- ${CMAKE_CURRENT_SOURCE_DIR}/gri_short_to_float.cc
- ${CMAKE_CURRENT_SOURCE_DIR}/gri_uchar_to_float.cc
${CMAKE_CURRENT_SOURCE_DIR}/malloc16.c
)
@@ -126,20 +117,11 @@ install(FILES
${CMAKE_CURRENT_SOURCE_DIR}/gr_test_types.h
${CMAKE_CURRENT_SOURCE_DIR}/gr_vco.h
${CMAKE_CURRENT_SOURCE_DIR}/gri_add_const_ss.h
- ${CMAKE_CURRENT_SOURCE_DIR}/gri_char_to_float.h
${CMAKE_CURRENT_SOURCE_DIR}/gri_control_loop.h
${CMAKE_CURRENT_SOURCE_DIR}/gri_debugger_hook.h
${CMAKE_CURRENT_SOURCE_DIR}/gri_fft.h
- ${CMAKE_CURRENT_SOURCE_DIR}/gri_float_to_char.h
- ${CMAKE_CURRENT_SOURCE_DIR}/gri_float_to_int.h
- ${CMAKE_CURRENT_SOURCE_DIR}/gri_float_to_short.h
- ${CMAKE_CURRENT_SOURCE_DIR}/gri_float_to_uchar.h
- ${CMAKE_CURRENT_SOURCE_DIR}/gri_interleaved_short_to_complex.h
${CMAKE_CURRENT_SOURCE_DIR}/gri_lfsr_15_1_0.h
${CMAKE_CURRENT_SOURCE_DIR}/gri_lfsr_32k.h
- ${CMAKE_CURRENT_SOURCE_DIR}/gri_int_to_float.h
- ${CMAKE_CURRENT_SOURCE_DIR}/gri_short_to_float.h
- ${CMAKE_CURRENT_SOURCE_DIR}/gri_uchar_to_float.h
${CMAKE_CURRENT_SOURCE_DIR}/malloc16.h
${CMAKE_CURRENT_SOURCE_DIR}/random.h
DESTINATION ${GR_INCLUDE_DIR}/gnuradio
@@ -164,44 +146,23 @@ endif(ENABLE_PYTHON)
########################################################################
set(gr_core_general_triple_threats
complex_vec_test
- gr_add_ff
gr_align_on_samplenumbers_ss
gr_bin_statistics_f
gr_block_gateway
- gr_char_to_float
- gr_char_to_short
gr_check_counting_s
gr_check_lfsr_32k_s
gr_complex_to_interleaved_short
gr_complex_to_xxx
- gr_conjugate_cc
gr_copy
- gr_deinterleave
gr_delay
gr_endian_swap
gr_fake_channel_coder_pp
gr_feval
gr_firdes
- gr_float_to_char
- gr_float_to_complex
- gr_float_to_int
- gr_float_to_short
- gr_float_to_uchar
gr_head
- gr_int_to_float
- gr_interleave
- gr_interleaved_short_to_complex
gr_iqcomp_cc
- gr_keep_one_in_n
- gr_keep_m_in_n
gr_kludge_copy
gr_lfsr_32k_source_s
- gr_multiply_cc
- gr_multiply_ff
- gr_multiply_const_cc
- gr_multiply_const_ff
- gr_multiply_conjugate_cc
- gr_nlog10_ff
gr_nop
gr_null_sink
gr_null_source
@@ -212,26 +173,15 @@ set(gr_core_general_triple_threats
gr_remez
gr_rms_cf
gr_rms_ff
- gr_repeat
- gr_short_to_float
- gr_short_to_char
gr_simple_correlator
gr_skiphead
- gr_stream_mux
- gr_stream_to_streams
- gr_stream_to_vector
- gr_streams_to_stream
- gr_streams_to_vector
gr_stretch_ff
gr_test
gr_threshold_ff
gr_throttle
gr_transcendental
- gr_uchar_to_float
gr_vco_f
gr_vector_map
- gr_vector_to_stream
- gr_vector_to_streams
gr_unpack_k_bits_bb
gr_pack_k_bits_bb
gr_annotator_alltoall
diff --git a/gnuradio-core/src/lib/general/general.i b/gnuradio-core/src/lib/general/general.i
index 9af804afed..4e483500ee 100644
--- a/gnuradio-core/src/lib/general/general.i
+++ b/gnuradio-core/src/lib/general/general.i
@@ -29,47 +29,22 @@
#include <gr_head.h>
#include <gr_skiphead.h>
#include <gr_remez.h>
-#include <gr_float_to_complex.h>
#include <gr_check_counting_s.h>
#include <gr_lfsr_32k_source_s.h>
#include <gr_check_lfsr_32k_s.h>
-#include <gr_stream_to_vector.h>
-#include <gr_vector_to_stream.h>
-#include <gr_keep_one_in_n.h>
-#include <gr_keep_m_in_n.h>
-#include <gr_float_to_int.h>
-#include <gr_float_to_short.h>
-#include <gr_float_to_char.h>
-#include <gr_float_to_uchar.h>
-#include <gr_short_to_float.h>
-#include <gr_short_to_char.h>
-#include <gr_int_to_float.h>
-#include <gr_char_to_float.h>
-#include <gr_char_to_short.h>
-#include <gr_uchar_to_float.h>
#include <gr_simple_correlator.h>
#include <gr_align_on_samplenumbers_ss.h>
#include <gr_complex_to_xxx.h>
#include <gr_complex_to_interleaved_short.h>
-#include <gr_interleaved_short_to_complex.h>
//#include <gr_endianness.h>
#include <gr_endian_swap.h>
#include <gr_firdes.h>
-#include <gr_interleave.h>
-#include <gr_deinterleave.h>
#include <gr_delay.h>
#include <gr_rms_cf.h>
#include <gr_rms_ff.h>
-#include <gr_nlog10_ff.h>
#include <gr_fake_channel_coder_pp.h>
#include <gr_throttle.h>
#include <gr_transcendental.h>
-#include <gr_stream_mux.h>
-#include <gr_stream_to_streams.h>
-#include <gr_streams_to_stream.h>
-#include <gr_streams_to_vector.h>
-#include <gr_vector_to_streams.h>
-#include <gr_conjugate_cc.h>
#include <gr_vco_f.h>
#include <gr_threshold_ff.h>
#include <gr_regenerate_bb.h>
@@ -81,15 +56,9 @@
#include <gr_test.h>
#include <gr_unpack_k_bits_bb.h>
#include <gr_pack_k_bits_bb.h>
-#include <gr_multiply_cc.h>
-#include <gr_multiply_ff.h>
-#include <gr_multiply_const_cc.h>
-#include <gr_multiply_const_ff.h>
-#include <gr_multiply_conjugate_cc.h>
#include <gr_feval.h>
#include <gr_bin_statistics_f.h>
#include <gr_peak_detector2_fb.h>
-#include <gr_repeat.h>
#include <gr_stretch_ff.h>
#include <gr_copy.h>
#include <complex_vec_test.h>
@@ -98,7 +67,6 @@
#include <gr_annotator_raw.h>
#include <gr_burst_tagger.h>
#include <gr_vector_map.h>
-#include <gr_add_ff.h>
#include <gr_tag_debug.h>
#include <gr_message_strobe.h>
%}
@@ -110,47 +78,22 @@
%include "gr_head.i"
%include "gr_skiphead.i"
%include "gr_remez.i"
-%include "gr_float_to_complex.i"
%include "gr_check_counting_s.i"
%include "gr_lfsr_32k_source_s.i"
%include "gr_check_lfsr_32k_s.i"
-%include "gr_stream_to_vector.i"
-%include "gr_vector_to_stream.i"
-%include "gr_keep_one_in_n.i"
-%include "gr_keep_m_in_n.i"
-%include "gr_float_to_int.i"
-%include "gr_float_to_short.i"
-%include "gr_float_to_char.i"
-%include "gr_float_to_uchar.i"
-%include "gr_short_to_float.i"
-%include "gr_short_to_char.i"
-%include "gr_int_to_float.i"
-%include "gr_char_to_float.i"
-%include "gr_char_to_short.i"
-%include "gr_uchar_to_float.i"
%include "gr_simple_correlator.i"
%include "gr_align_on_samplenumbers_ss.i"
%include "gr_complex_to_xxx.i"
%include "gr_complex_to_interleaved_short.i"
//%include "gr_endianness.i"
%include "gr_endian_swap.i"
-%include "gr_interleaved_short_to_complex.i"
%include "gr_firdes.i"
-%include "gr_interleave.i"
-%include "gr_deinterleave.i"
%include "gr_delay.i"
%include "gr_rms_cf.i"
%include "gr_rms_ff.i"
-%include "gr_nlog10_ff.i"
%include "gr_fake_channel_coder_pp.i"
%include "gr_throttle.i"
%include "gr_transcendental.i"
-%include "gr_stream_mux.i"
-%include "gr_stream_to_streams.i"
-%include "gr_streams_to_stream.i"
-%include "gr_streams_to_vector.i"
-%include "gr_vector_to_streams.i"
-%include "gr_conjugate_cc.i"
%include "gr_vco_f.i"
%include "gr_threshold_ff.i"
%include "gr_regenerate_bb.i"
@@ -162,15 +105,9 @@
%include "gr_test.i"
%include "gr_unpack_k_bits_bb.i"
%include "gr_pack_k_bits_bb.i"
-%include "gr_multiply_cc.i"
-%include "gr_multiply_ff.i"
-%include "gr_multiply_const_cc.i"
-%include "gr_multiply_const_ff.i"
-%include "gr_multiply_conjugate_cc.i"
%include "gr_feval.i"
%include "gr_bin_statistics_f.i"
%include "gr_peak_detector2_fb.i"
-%include "gr_repeat.i"
%include "gr_stretch_ff.i"
%include "gr_copy.i"
%include "complex_vec_test.i"
@@ -179,7 +116,6 @@
%include "gr_annotator_raw.i"
%include "gr_burst_tagger.i"
%include "gr_vector_map.i"
-%include "gr_add_ff.i"
%include "gr_tag_debug.i"
%include "gr_block_gateway.i"
%include "gr_message_strobe.i"
diff --git a/gnuradio-core/src/lib/general/general_generated.i b/gnuradio-core/src/lib/general/general_generated.i
index 5671570a6f..251406c99e 100644
--- a/gnuradio-core/src/lib/general/general_generated.i
+++ b/gnuradio-core/src/lib/general/general_generated.i
@@ -2,38 +2,6 @@
// This file is machine generated. All edits will be overwritten
//
%{
-#include <gr_add_cc.h>
-#include <gr_add_const_cc.h>
-#include <gr_add_const_ff.h>
-#include <gr_add_const_ii.h>
-#include <gr_add_const_sf.h>
-#include <gr_add_const_ss.h>
-#include <gr_add_const_vcc.h>
-#include <gr_add_const_vff.h>
-#include <gr_add_const_vii.h>
-#include <gr_add_const_vss.h>
-#include <gr_add_ii.h>
-#include <gr_add_ss.h>
-#include <gr_add_vcc.h>
-#include <gr_add_vff.h>
-#include <gr_add_vii.h>
-#include <gr_add_vss.h>
-#include <gr_divide_cc.h>
-#include <gr_divide_ff.h>
-#include <gr_divide_ii.h>
-#include <gr_divide_ss.h>
-#include <gr_multiply_const_ii.h>
-#include <gr_multiply_const_ss.h>
-#include <gr_multiply_const_vcc.h>
-#include <gr_multiply_const_vff.h>
-#include <gr_multiply_const_vii.h>
-#include <gr_multiply_const_vss.h>
-#include <gr_multiply_ii.h>
-#include <gr_multiply_ss.h>
-#include <gr_multiply_vcc.h>
-#include <gr_multiply_vff.h>
-#include <gr_multiply_vii.h>
-#include <gr_multiply_vss.h>
#include <gr_mute_cc.h>
#include <gr_mute_ff.h>
#include <gr_mute_ii.h>
@@ -51,10 +19,6 @@
#include <gr_probe_signal_vi.h>
#include <gr_probe_signal_vf.h>
#include <gr_probe_signal_vc.h>
-#include <gr_sub_cc.h>
-#include <gr_sub_ff.h>
-#include <gr_sub_ii.h>
-#include <gr_sub_ss.h>
#include <gr_unpacked_to_packed_bb.h>
#include <gr_unpacked_to_packed_ii.h>
#include <gr_unpacked_to_packed_ss.h>
@@ -70,38 +34,6 @@
#include <gr_vector_source_s.h>
%}
-%include <gr_add_cc.i>
-%include <gr_add_const_cc.i>
-%include <gr_add_const_ff.i>
-%include <gr_add_const_ii.i>
-%include <gr_add_const_sf.i>
-%include <gr_add_const_ss.i>
-%include <gr_add_const_vcc.i>
-%include <gr_add_const_vff.i>
-%include <gr_add_const_vii.i>
-%include <gr_add_const_vss.i>
-%include <gr_add_ii.i>
-%include <gr_add_ss.i>
-%include <gr_add_vcc.i>
-%include <gr_add_vff.i>
-%include <gr_add_vii.i>
-%include <gr_add_vss.i>
-%include <gr_divide_cc.i>
-%include <gr_divide_ff.i>
-%include <gr_divide_ii.i>
-%include <gr_divide_ss.i>
-%include <gr_multiply_const_ii.i>
-%include <gr_multiply_const_ss.i>
-%include <gr_multiply_const_vcc.i>
-%include <gr_multiply_const_vff.i>
-%include <gr_multiply_const_vii.i>
-%include <gr_multiply_const_vss.i>
-%include <gr_multiply_ii.i>
-%include <gr_multiply_ss.i>
-%include <gr_multiply_vcc.i>
-%include <gr_multiply_vff.i>
-%include <gr_multiply_vii.i>
-%include <gr_multiply_vss.i>
%include <gr_mute_cc.i>
%include <gr_mute_ff.i>
%include <gr_mute_ii.i>
@@ -119,10 +51,6 @@
%include <gr_probe_signal_vi.i>
%include <gr_probe_signal_vf.i>
%include <gr_probe_signal_vc.i>
-%include <gr_sub_cc.i>
-%include <gr_sub_ff.i>
-%include <gr_sub_ii.i>
-%include <gr_sub_ss.i>
%include <gr_unpacked_to_packed_bb.i>
%include <gr_unpacked_to_packed_ii.i>
%include <gr_unpacked_to_packed_ss.i>
diff --git a/gnuradio-core/src/lib/general/gr_add_ff.cc b/gnuradio-core/src/lib/general/gr_add_ff.cc
deleted file mode 100644
index 5f6676bb7b..0000000000
--- a/gnuradio-core/src/lib/general/gr_add_ff.cc
+++ /dev/null
@@ -1,66 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <gr_add_ff.h>
-#include <gr_io_signature.h>
-#include <volk/volk.h>
-
-gr_add_ff_sptr
-gr_make_add_ff(size_t vlen)
-{
- return gnuradio::get_initial_sptr(new gr_add_ff(vlen));
-}
-
-gr_add_ff::gr_add_ff (size_t vlen)
- : gr_sync_block("add_ff",
- gr_make_io_signature (1, -1, sizeof(float)*vlen),
- gr_make_io_signature (1, 1, sizeof(float)*vlen)),
- d_vlen (vlen)
-{
- const int alignment_multiple =
- volk_get_alignment() / sizeof(float);
- set_alignment(std::max(1,alignment_multiple));
-}
-
-int
-gr_add_ff::work(int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items)
-{
- float *out = (float *) output_items[0];
- int noi = d_vlen*noutput_items;
-
- memcpy(out, input_items[0], noi*sizeof(float));
- if(is_unaligned()) {
- for(size_t i = 1; i < input_items.size(); i++)
- volk_32f_x2_add_32f_u(out, out, (const float*)input_items[i], noi);
- }
- else {
- for(size_t i = 1; i < input_items.size(); i++)
- volk_32f_x2_add_32f_a(out, out, (const float*)input_items[i], noi);
- }
- return noutput_items;
-}
diff --git a/gnuradio-core/src/lib/general/gr_add_ff.h b/gnuradio-core/src/lib/general/gr_add_ff.h
deleted file mode 100644
index ff5604c97d..0000000000
--- a/gnuradio-core/src/lib/general/gr_add_ff.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifndef INCLUDED_GR_ADD_FF_H
-#define INCLUDED_GR_ADD_FF_H
-
-#include <gr_core_api.h>
-#include <gr_sync_block.h>
-
-class gr_add_ff;
-typedef boost::shared_ptr<gr_add_ff> gr_add_ff_sptr;
-
-GR_CORE_API gr_add_ff_sptr
-gr_make_add_ff (size_t vlen=1);
-
-/*!
- * \brief Add streams of complex values
- * \ingroup math_blk
- */
-
-class GR_CORE_API gr_add_ff : public gr_sync_block
-{
- private:
- 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:
- virtual int work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items);
-};
-
-
-#endif /* INCLUDED_GR_ADD_FF_H */
diff --git a/gnuradio-core/src/lib/general/gr_add_ff.i b/gnuradio-core/src/lib/general/gr_add_ff.i
deleted file mode 100644
index 75a87651fa..0000000000
--- a/gnuradio-core/src/lib/general/gr_add_ff.i
+++ /dev/null
@@ -1,32 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-GR_SWIG_BLOCK_MAGIC(gr,add_ff)
-
-gr_add_ff_sptr
-gr_make_add_ff (size_t vlen=1);
-
-class gr_add_ff : public gr_sync_block
-{
-public:
-
-};
diff --git a/gnuradio-core/src/lib/general/gr_char_to_float.cc b/gnuradio-core/src/lib/general/gr_char_to_float.cc
deleted file mode 100644
index f63aa5b169..0000000000
--- a/gnuradio-core/src/lib/general/gr_char_to_float.cc
+++ /dev/null
@@ -1,72 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <gr_char_to_float.h>
-#include <gr_io_signature.h>
-#include <volk/volk.h>
-
-gr_char_to_float_sptr
-gr_make_char_to_float (size_t vlen, float scale)
-{
- return gnuradio::get_initial_sptr(new gr_char_to_float (vlen, scale));
-}
-
-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)
-{
- const int alignment_multiple =
- volk_get_alignment() / sizeof(float);
- set_alignment(std::max(1,alignment_multiple));
-}
-
-float
-gr_char_to_float::scale() const
-{
- return d_scale;
-}
-
-void
-gr_char_to_float::set_scale(float scale)
-{
- d_scale = scale;
-}
-
-int
-gr_char_to_float::work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items)
-{
- const int8_t *in = (const int8_t *) input_items[0];
- float *out = (float *) output_items[0];
-
- // Note: the unaligned benchmarked much faster than the aligned
- volk_8i_s32f_convert_32f_u(out, in, d_scale, d_vlen*noutput_items);
-
- return noutput_items;
-}
diff --git a/gnuradio-core/src/lib/general/gr_char_to_float.h b/gnuradio-core/src/lib/general/gr_char_to_float.h
deleted file mode 100644
index 5170c618c9..0000000000
--- a/gnuradio-core/src/lib/general/gr_char_to_float.h
+++ /dev/null
@@ -1,70 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifndef INCLUDED_GR_CHAR_TO_FLOAT_H
-#define INCLUDED_GR_CHAR_TO_FLOAT_H
-
-#include <gr_core_api.h>
-#include <gr_sync_block.h>
-
-class gr_char_to_float;
-typedef boost::shared_ptr<gr_char_to_float> gr_char_to_float_sptr;
-
-GR_CORE_API gr_char_to_float_sptr
-gr_make_char_to_float (size_t vlen=1, float scale=1);
-
-/*!
- * \brief Convert stream of chars to a stream of float
- * \ingroup converter_blk
- *
- * \param vlen vector length of data streams.
- * \param scale a scalar divider to change the output signal scale.
- */
-
-class GR_CORE_API gr_char_to_float : public gr_sync_block
-{
- private:
- friend GR_CORE_API gr_char_to_float_sptr
- gr_make_char_to_float (size_t vlen, float scale);
- gr_char_to_float (size_t vlen, float scale);
-
- size_t d_vlen;
- float d_scale;
-
- public:
- /*!
- * Get the scalar divider value.
- */
- float scale() const;
-
- /*!
- * 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);
-};
-
-
-#endif /* INCLUDED_GR_CHAR_TO_FLOAT_H */
diff --git a/gnuradio-core/src/lib/general/gr_char_to_float.i b/gnuradio-core/src/lib/general/gr_char_to_float.i
deleted file mode 100644
index c0b3d75fef..0000000000
--- a/gnuradio-core/src/lib/general/gr_char_to_float.i
+++ /dev/null
@@ -1,33 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-GR_SWIG_BLOCK_MAGIC(gr,char_to_float)
-
-gr_char_to_float_sptr
-gr_make_char_to_float (size_t vlen=1, float scale=1);
-
-class gr_char_to_float : public gr_sync_block
-{
-public:
- float scale() const;
- void set_scale(float scale);
-};
diff --git a/gnuradio-core/src/lib/general/gr_char_to_short.cc b/gnuradio-core/src/lib/general/gr_char_to_short.cc
deleted file mode 100644
index bb9bd8909e..0000000000
--- a/gnuradio-core/src/lib/general/gr_char_to_short.cc
+++ /dev/null
@@ -1,64 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <gr_char_to_short.h>
-#include <gr_io_signature.h>
-#include <volk/volk.h>
-
-gr_char_to_short_sptr
-gr_make_char_to_short (size_t vlen)
-{
- return gnuradio::get_initial_sptr(new gr_char_to_short (vlen));
-}
-
-gr_char_to_short::gr_char_to_short (size_t vlen)
- : gr_sync_block ("gr_char_to_short",
- gr_make_io_signature (1, 1, sizeof (char)*vlen),
- gr_make_io_signature (1, 1, sizeof (short)*vlen)),
- d_vlen(vlen)
-{
- const int alignment_multiple =
- volk_get_alignment() / sizeof(char);
- set_alignment(std::max(1,alignment_multiple));
-}
-
-int
-gr_char_to_short::work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items)
-{
- const int8_t *in = (const int8_t *) input_items[0];
- int16_t *out = (int16_t *) output_items[0];
-
- if(is_unaligned()) {
- volk_8i_convert_16i_u(out, in, d_vlen*noutput_items);
- }
- else {
- volk_8i_convert_16i_a(out, in, d_vlen*noutput_items);
- }
-
- return noutput_items;
-}
diff --git a/gnuradio-core/src/lib/general/gr_char_to_short.h b/gnuradio-core/src/lib/general/gr_char_to_short.h
deleted file mode 100644
index 7ac5e97b93..0000000000
--- a/gnuradio-core/src/lib/general/gr_char_to_short.h
+++ /dev/null
@@ -1,58 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifndef INCLUDED_GR_CHAR_TO_SHORT_H
-#define INCLUDED_GR_CHAR_TO_SHORT_H
-
-#include <gr_core_api.h>
-#include <gr_sync_block.h>
-
-class gr_char_to_short;
-typedef boost::shared_ptr<gr_char_to_short> gr_char_to_short_sptr;
-
-GR_CORE_API gr_char_to_short_sptr
-gr_make_char_to_short (size_t vlen=1);
-
-/*!
- * \brief Convert stream of chars to a stream of float
- * \ingroup converter_blk
- *
- * \param vlen vector length of data streams.
- */
-
-class GR_CORE_API gr_char_to_short : public gr_sync_block
-{
- private:
- friend GR_CORE_API gr_char_to_short_sptr
- gr_make_char_to_short (size_t vlen);
- 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,
- gr_vector_void_star &output_items);
-};
-
-
-#endif /* INCLUDED_GR_CHAR_TO_SHORT_H */
diff --git a/gnuradio-core/src/lib/general/gr_char_to_short.i b/gnuradio-core/src/lib/general/gr_char_to_short.i
deleted file mode 100644
index a53a0990e3..0000000000
--- a/gnuradio-core/src/lib/general/gr_char_to_short.i
+++ /dev/null
@@ -1,30 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-GR_SWIG_BLOCK_MAGIC(gr,char_to_short)
-
-gr_char_to_short_sptr gr_make_char_to_short (size_t vlen=1);
-
-class gr_char_to_short : public gr_sync_block
-{
-
-};
diff --git a/gnuradio-core/src/lib/general/gr_conjugate_cc.cc b/gnuradio-core/src/lib/general/gr_conjugate_cc.cc
deleted file mode 100644
index 94ac3e162b..0000000000
--- a/gnuradio-core/src/lib/general/gr_conjugate_cc.cc
+++ /dev/null
@@ -1,65 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-// WARNING: this file is machine generated. Edits will be over written
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <gr_conjugate_cc.h>
-#include <gr_io_signature.h>
-#include <volk/volk.h>
-
-gr_conjugate_cc_sptr
-gr_make_conjugate_cc ()
-{
- return gnuradio::get_initial_sptr(new gr_conjugate_cc ());
-}
-
-gr_conjugate_cc::gr_conjugate_cc ()
- : gr_sync_block ("conjugate_cc",
- gr_make_io_signature (1, 1, sizeof (gr_complex)),
- gr_make_io_signature (1, 1, sizeof (gr_complex)))
-{
- const int alignment_multiple =
- volk_get_alignment() / sizeof(gr_complex);
- set_alignment(std::max(1,alignment_multiple));
-}
-
-int
-gr_conjugate_cc::work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items)
-{
- gr_complex *iptr = (gr_complex *) input_items[0];
- gr_complex *optr = (gr_complex *) output_items[0];
-
- if(is_unaligned()) {
- volk_32fc_conjugate_32fc_u(optr, iptr, noutput_items);
- }
- else {
- volk_32fc_conjugate_32fc_a(optr, iptr, noutput_items);
- }
-
- return noutput_items;
-}
diff --git a/gnuradio-core/src/lib/general/gr_conjugate_cc.h b/gnuradio-core/src/lib/general/gr_conjugate_cc.h
deleted file mode 100644
index e0a2af7164..0000000000
--- a/gnuradio-core/src/lib/general/gr_conjugate_cc.h
+++ /dev/null
@@ -1,52 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-// WARNING: this file is machine generated. Edits will be over written
-
-#ifndef INCLUDED_GR_CONJUGATE_CC_H
-#define INCLUDED_GR_CONJUGATE_CC_H
-
-#include <gr_core_api.h>
-#include <gr_sync_block.h>
-
-class gr_conjugate_cc;
-typedef boost::shared_ptr<gr_conjugate_cc> gr_conjugate_cc_sptr;
-
-GR_CORE_API gr_conjugate_cc_sptr gr_make_conjugate_cc ();
-
-/*!
- * \brief output = complex conjugate of input
- * \ingroup math_blk
- */
-class GR_CORE_API gr_conjugate_cc : public gr_sync_block
-{
- friend GR_CORE_API gr_conjugate_cc_sptr gr_make_conjugate_cc ();
-
- gr_conjugate_cc ();
-
- 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_conjugate_cc.i b/gnuradio-core/src/lib/general/gr_conjugate_cc.i
deleted file mode 100644
index 444ebb1b8b..0000000000
--- a/gnuradio-core/src/lib/general/gr_conjugate_cc.i
+++ /dev/null
@@ -1,33 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-// WARNING: this file is machine generated. Edits will be over written
-
-GR_SWIG_BLOCK_MAGIC(gr,conjugate_cc)
-
-gr_conjugate_cc_sptr gr_make_conjugate_cc ();
-
-class gr_conjugate_cc : public gr_sync_block
-{
- private:
- gr_conjugate_cc ();
-};
diff --git a/gnuradio-core/src/lib/general/gr_deinterleave.cc b/gnuradio-core/src/lib/general/gr_deinterleave.cc
deleted file mode 100644
index e22db60c1a..0000000000
--- a/gnuradio-core/src/lib/general/gr_deinterleave.cc
+++ /dev/null
@@ -1,78 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <gr_deinterleave.h>
-#include <gr_io_signature.h>
-#include <string.h>
-
-
-gr_deinterleave_sptr
-gr_make_deinterleave (size_t itemsize)
-{
- return gnuradio::get_initial_sptr(new gr_deinterleave (itemsize));
-}
-
-gr_deinterleave::gr_deinterleave (size_t itemsize)
- : gr_sync_decimator ("deinterleave",
- gr_make_io_signature (1, 1, itemsize),
- gr_make_io_signature (1, gr_io_signature::IO_INFINITE, itemsize),
- 1),
- d_itemsize (itemsize)
-{
-}
-
-gr_deinterleave::~gr_deinterleave ()
-{
- // NOP
-}
-
-bool
-gr_deinterleave::check_topology (int ninputs, int noutputs)
-{
- set_decimation (noutputs);
- return true;
-}
-
-int
-gr_deinterleave::work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items)
-{
- size_t nchan = output_items.size ();
- size_t itemsize = d_itemsize;
- const char *in = (const char *) input_items[0];
- char **out = (char **) &output_items[0];
-
- for (int i = 0; i < noutput_items; i++){
- for (unsigned int n = 0; n < nchan; n++){
- memcpy (out[n], in, itemsize);
- out[n] += itemsize;
- in += itemsize;
- }
- }
-
- return noutput_items;
-}
diff --git a/gnuradio-core/src/lib/general/gr_deinterleave.h b/gnuradio-core/src/lib/general/gr_deinterleave.h
deleted file mode 100644
index 0eecc44d13..0000000000
--- a/gnuradio-core/src/lib/general/gr_deinterleave.h
+++ /dev/null
@@ -1,57 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifndef INCLUDED_GR_DEINTERLEAVE_H
-#define INCLUDED_GR_DEINTERLEAVE_H
-
-#include <gr_core_api.h>
-#include <gr_sync_decimator.h>
-
-class gr_deinterleave;
-typedef boost::shared_ptr<gr_deinterleave> gr_deinterleave_sptr;
-
-GR_CORE_API gr_deinterleave_sptr gr_make_deinterleave (size_t itemsize);
-
-/*!
- * \brief deinterleave a single input into N outputs
- * \ingroup slicedice_blk
- */
-class GR_CORE_API gr_deinterleave : public gr_sync_decimator
-{
- friend GR_CORE_API gr_deinterleave_sptr gr_make_deinterleave (size_t itemsize);
-
- size_t d_itemsize;
-
- gr_deinterleave (size_t itemsize);
-
-public:
- ~gr_deinterleave ();
-
- int work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items);
-
- bool check_topology (int ninputs, int noutputs);
-
-};
-
-#endif /* INCLUDED_GR_DEINTERLEAVE_H */
diff --git a/gnuradio-core/src/lib/general/gr_deinterleave.i b/gnuradio-core/src/lib/general/gr_deinterleave.i
deleted file mode 100644
index a70ce6c527..0000000000
--- a/gnuradio-core/src/lib/general/gr_deinterleave.i
+++ /dev/null
@@ -1,30 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-GR_SWIG_BLOCK_MAGIC(gr,deinterleave)
-
-gr_deinterleave_sptr gr_make_deinterleave (size_t itemsize);
-
-class gr_deinterleave : public gr_sync_decimator
-{
- gr_deinterleave (size_t itemsize);
-};
diff --git a/gnuradio-core/src/lib/general/gr_float_to_char.cc b/gnuradio-core/src/lib/general/gr_float_to_char.cc
deleted file mode 100644
index d67ded3ea6..0000000000
--- a/gnuradio-core/src/lib/general/gr_float_to_char.cc
+++ /dev/null
@@ -1,79 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <gr_float_to_char.h>
-#include <gr_io_signature.h>
-#include <volk/volk.h>
-
-gr_float_to_char_sptr
-gr_make_float_to_char (size_t vlen, float scale)
-{
- return gnuradio::get_initial_sptr(new gr_float_to_char (vlen, scale));
-}
-
-gr_float_to_char::gr_float_to_char (size_t vlen, float scale)
- : gr_sync_block ("gr_float_to_char",
- gr_make_io_signature (1, 1, sizeof (float)*vlen),
- gr_make_io_signature (1, 1, sizeof (char)*vlen)),
- d_vlen(vlen), d_scale(scale)
-{
- const int alignment_multiple =
- volk_get_alignment() / sizeof(char);
- set_alignment(std::max(1,alignment_multiple));
-}
-
-float
-gr_float_to_char::scale() const
-{
- return d_scale;
-}
-
-void
-gr_float_to_char::set_scale(float scale)
-{
- d_scale = scale;
-}
-
-int
-gr_float_to_char::work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items)
-{
- const float *in = (const float *) input_items[0];
- int8_t *out = (int8_t *) output_items[0];
-
- if(is_unaligned()) {
- volk_32f_s32f_convert_8i_u(out, in, d_scale, d_vlen*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
deleted file mode 100644
index 2df50f18d5..0000000000
--- a/gnuradio-core/src/lib/general/gr_float_to_char.h
+++ /dev/null
@@ -1,70 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifndef INCLUDED_GR_FLOAT_TO_CHAR_H
-#define INCLUDED_GR_FLOAT_TO_CHAR_H
-
-#include <gr_core_api.h>
-#include <gr_sync_block.h>
-
-class gr_float_to_char;
-typedef boost::shared_ptr<gr_float_to_char> gr_float_to_char_sptr;
-
-GR_CORE_API gr_float_to_char_sptr
-gr_make_float_to_char (size_t vlen=1, float scale=1);
-
-/*!
- * \brief Convert stream of float to a stream of char
- * \ingroup converter_blk
- *
- * \param vlen vector length of data streams.
- * \param scale a scalar multiplier to change the output signal scale.
- */
-
-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
- (size_t vlen, float scale);
- gr_float_to_char (size_t vlen, float scale);
-
- size_t d_vlen;
- float d_scale;
-
- public:
- /*!
- * Get the scalar multiplier value.
- */
- float scale() const;
-
- /*!
- * Set the scalar multiplier 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);
-};
-
-
-#endif /* INCLUDED_GR_FLOAT_TO_CHAR_H */
diff --git a/gnuradio-core/src/lib/general/gr_float_to_char.i b/gnuradio-core/src/lib/general/gr_float_to_char.i
deleted file mode 100644
index b40389ede5..0000000000
--- a/gnuradio-core/src/lib/general/gr_float_to_char.i
+++ /dev/null
@@ -1,33 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-GR_SWIG_BLOCK_MAGIC(gr,float_to_char)
-
-gr_float_to_char_sptr
-gr_make_float_to_char (size_t vlen=1, float scale=1);
-
-class gr_float_to_char : public gr_sync_block
-{
-public:
- float scale() const;
- void set_scale(float scale);
-};
diff --git a/gnuradio-core/src/lib/general/gr_float_to_complex.cc b/gnuradio-core/src/lib/general/gr_float_to_complex.cc
deleted file mode 100644
index c68eac8c7c..0000000000
--- a/gnuradio-core/src/lib/general/gr_float_to_complex.cc
+++ /dev/null
@@ -1,72 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <gr_float_to_complex.h>
-#include <gr_io_signature.h>
-
-gr_float_to_complex_sptr
-gr_make_float_to_complex (size_t vlen)
-{
- return gnuradio::get_initial_sptr(new gr_float_to_complex (vlen));
-}
-
-gr_float_to_complex::gr_float_to_complex (size_t vlen)
- : gr_sync_block ("gr_float_to_complex",
- gr_make_io_signature (1, 2, sizeof (float) * vlen),
- gr_make_io_signature (1, 1, sizeof (gr_complex) * vlen)),
- d_vlen (vlen)
-{
-}
-
-int
-gr_float_to_complex::work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items)
-{
- float *r = (float *)input_items[0];
- float *i = (float *)input_items[1];
- gr_complex *out = (gr_complex *) output_items[0];
-
- switch (input_items.size ()){
- case 1:
- for (size_t j = 0; j < noutput_items*d_vlen; j++)
- out[j] = gr_complex (r[j], 0);
- break;
-
- case 2:
- for (size_t j = 0; j < noutput_items*d_vlen; j++)
- out[j] = gr_complex (r[j], i[j]);
- break;
-
- default:
- assert (0);
- }
-
- return noutput_items;
-}
-
-
-
diff --git a/gnuradio-core/src/lib/general/gr_float_to_complex.h b/gnuradio-core/src/lib/general/gr_float_to_complex.h
deleted file mode 100644
index 628b4a954e..0000000000
--- a/gnuradio-core/src/lib/general/gr_float_to_complex.h
+++ /dev/null
@@ -1,55 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifndef INCLUDED_GR_FLOAT_TO_COMPLEX_H
-#define INCLUDED_GR_FLOAT_TO_COMPLEX_H
-
-#include <gr_core_api.h>
-#include <gr_sync_block.h>
-#include <gr_complex.h>
-
-class gr_float_to_complex;
-typedef boost::shared_ptr<gr_float_to_complex> gr_float_to_complex_sptr;
-
-GR_CORE_API gr_float_to_complex_sptr
-gr_make_float_to_complex (size_t vlen = 1);
-
-/*!
- * \brief Convert 1 or 2 streams of float to a stream of gr_complex
- * \ingroup converter_blk
- */
-
-class GR_CORE_API gr_float_to_complex : public gr_sync_block
-{
- friend GR_CORE_API gr_float_to_complex_sptr gr_make_float_to_complex (size_t vlen);
- gr_float_to_complex (size_t vlen);
-
- size_t d_vlen;
-
- public:
- virtual int work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items);
-};
-
-
-#endif /* INCLUDED_GR_FLOAT_TO_COMPLEX_H */
diff --git a/gnuradio-core/src/lib/general/gr_float_to_complex.i b/gnuradio-core/src/lib/general/gr_float_to_complex.i
deleted file mode 100644
index ed5ad128b0..0000000000
--- a/gnuradio-core/src/lib/general/gr_float_to_complex.i
+++ /dev/null
@@ -1,30 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-GR_SWIG_BLOCK_MAGIC(gr,float_to_complex)
-
-gr_float_to_complex_sptr gr_make_float_to_complex (size_t vlen = 1);
-
-class gr_float_to_complex : public gr_sync_block
-{
- gr_float_to_complex (size_t vlen);
-};
diff --git a/gnuradio-core/src/lib/general/gr_float_to_int.cc b/gnuradio-core/src/lib/general/gr_float_to_int.cc
deleted file mode 100644
index 43b8518956..0000000000
--- a/gnuradio-core/src/lib/general/gr_float_to_int.cc
+++ /dev/null
@@ -1,89 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <gr_float_to_int.h>
-#include <gr_io_signature.h>
-#include <gri_float_to_int.h>
-#include <volk/volk.h>
-
-gr_float_to_int_sptr
-gr_make_float_to_int (size_t vlen, float scale)
-{
- return gnuradio::get_initial_sptr(new gr_float_to_int (vlen, scale));
-}
-
-gr_float_to_int::gr_float_to_int (size_t vlen, float scale)
- : gr_sync_block ("gr_float_to_int",
- gr_make_io_signature (1, 1, sizeof (float)*vlen),
- gr_make_io_signature (1, 1, sizeof (int)*vlen)),
- d_vlen(vlen), d_scale(scale)
-{
- const int alignment_multiple =
- volk_get_alignment() / sizeof(int);
- set_alignment(std::max(1,alignment_multiple));
-}
-
-float
-gr_float_to_int::scale() const
-{
- return d_scale;
-}
-
-void
-gr_float_to_int::set_scale(float scale)
-{
- d_scale = scale;
-}
-int
-gr_float_to_int::work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items)
-{
- // Disable the Volk for now. There is a problem for large 32-bit ints that
- // are not properly represented by the precisions of a single float, which
- // can cause wrapping from large, positive numbers to negative.
- // In gri_float_to_int, the value is first promoted to a 64-bit
- // value, clipped, then converted to a float.
-#if 0
- const float *in = (const float *) input_items[0];
- int32_t *out = (int32_t *) output_items[0];
-
- if(is_unaligned()) {
- volk_32f_s32f_convert_32i_u(out, in, d_scale, d_vlen*noutput_items);
- }
- else {
- volk_32f_s32f_convert_32i_a(out, in, d_scale, d_vlen*noutput_items);
- }
-#else
- const float *in = (const float *) input_items[0];
- int *out = (int *) output_items[0];
-
- 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
deleted file mode 100644
index c10ea739d2..0000000000
--- a/gnuradio-core/src/lib/general/gr_float_to_int.h
+++ /dev/null
@@ -1,70 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifndef INCLUDED_GR_FLOAT_TO_INT_H
-#define INCLUDED_GR_FLOAT_TO_INT_H
-
-#include <gr_core_api.h>
-#include <gr_sync_block.h>
-
-class gr_float_to_int;
-typedef boost::shared_ptr<gr_float_to_int> gr_float_to_int_sptr;
-
-GR_CORE_API gr_float_to_int_sptr
-gr_make_float_to_int (size_t vlen=1, float scale=1);
-
-/*!
- * \brief Convert stream of float to a stream of short
- * \ingroup converter_blk
- *
- * \param vlen vector length of data streams.
- * \param scale a scalar multiplier to change the output signal scale.
- */
-
-class GR_CORE_API gr_float_to_int : public gr_sync_block
-{
- private:
- friend GR_CORE_API
- gr_float_to_int_sptr gr_make_float_to_int (size_t vlen, float scale);
- gr_float_to_int (size_t vlen, float scale);
-
- size_t d_vlen;
- float d_scale;
-
- public:
- /*!
- * Get the scalar multiplier value.
- */
- float scale() const;
-
- /*!
- * Set the scalar multiplier 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);
-};
-
-
-#endif /* INCLUDED_GR_FLOAT_TO_INT_H */
diff --git a/gnuradio-core/src/lib/general/gr_float_to_int.i b/gnuradio-core/src/lib/general/gr_float_to_int.i
deleted file mode 100644
index e2a2c53ceb..0000000000
--- a/gnuradio-core/src/lib/general/gr_float_to_int.i
+++ /dev/null
@@ -1,33 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-GR_SWIG_BLOCK_MAGIC(gr,float_to_int)
-
-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
-{
-public:
- float scale() const;
- void set_scale(float scale);
-};
diff --git a/gnuradio-core/src/lib/general/gr_float_to_short.cc b/gnuradio-core/src/lib/general/gr_float_to_short.cc
deleted file mode 100644
index ab720168bf..0000000000
--- a/gnuradio-core/src/lib/general/gr_float_to_short.cc
+++ /dev/null
@@ -1,79 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <gr_float_to_short.h>
-#include <gr_io_signature.h>
-#include <volk/volk.h>
-
-gr_float_to_short_sptr
-gr_make_float_to_short (size_t vlen, float scale)
-{
- return gnuradio::get_initial_sptr(new gr_float_to_short (vlen, scale));
-}
-
-gr_float_to_short::gr_float_to_short (size_t vlen, float scale)
- : gr_sync_block ("gr_float_to_short",
- gr_make_io_signature (1, 1, sizeof (float)*vlen),
- gr_make_io_signature (1, 1, sizeof (short)*vlen)),
- d_vlen(vlen), d_scale(scale)
-{
- const int alignment_multiple =
- volk_get_alignment() / sizeof(short);
- set_alignment(std::max(1,alignment_multiple));
-}
-
-float
-gr_float_to_short::scale() const
-{
- return d_scale;
-}
-
-void
-gr_float_to_short::set_scale(float scale)
-{
- d_scale = scale;
-}
-
-int
-gr_float_to_short::work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items)
-{
- const float *in = (const float *) input_items[0];
- short *out = (short *) output_items[0];
-
- if(is_unaligned()) {
- volk_32f_s32f_convert_16i_u(out, in, d_scale, d_vlen*noutput_items);
- }
- else {
- volk_32f_s32f_convert_16i_a(out, in, d_scale, d_vlen*noutput_items);
- }
-
- return noutput_items;
-}
-
-
-
diff --git a/gnuradio-core/src/lib/general/gr_float_to_short.h b/gnuradio-core/src/lib/general/gr_float_to_short.h
deleted file mode 100644
index 9e43804f54..0000000000
--- a/gnuradio-core/src/lib/general/gr_float_to_short.h
+++ /dev/null
@@ -1,69 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifndef INCLUDED_GR_FLOAT_TO_SHORT_H
-#define INCLUDED_GR_FLOAT_TO_SHORT_H
-
-#include <gr_core_api.h>
-#include <gr_sync_block.h>
-
-class gr_float_to_short;
-typedef boost::shared_ptr<gr_float_to_short> gr_float_to_short_sptr;
-
-GR_CORE_API gr_float_to_short_sptr
-gr_make_float_to_short (size_t vlen=1, float scale=1);
-
-/*!
- * \brief Convert stream of float to a stream of short
- * \ingroup converter_blk
- *
- * \param vlen vector length of data streams.
- * \param scale a scalar multiplier to change the output signal scale.
- */
-
-class GR_CORE_API gr_float_to_short : public gr_sync_block
-{
- friend GR_CORE_API
- gr_float_to_short_sptr gr_make_float_to_short (size_t vlen, float scale);
- gr_float_to_short (size_t vlen, float scale);
-
- size_t d_vlen;
- float d_scale;
-
- public:
- /*!
- * Get the scalar multiplier value.
- */
- float scale() const;
-
- /*!
- * Set the scalar multiplier 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);
-};
-
-
-#endif /* INCLUDED_GR_FLOAT_TO_SHORT_H */
diff --git a/gnuradio-core/src/lib/general/gr_float_to_short.i b/gnuradio-core/src/lib/general/gr_float_to_short.i
deleted file mode 100644
index ea59a388e2..0000000000
--- a/gnuradio-core/src/lib/general/gr_float_to_short.i
+++ /dev/null
@@ -1,33 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-GR_SWIG_BLOCK_MAGIC(gr,float_to_short)
-
-gr_float_to_short_sptr
-gr_make_float_to_short (size_t vlen=1, float scale=1);
-
-class gr_float_to_short : public gr_sync_block
-{
-public:
- float scale() const;
- void set_scale(float scale);
-};
diff --git a/gnuradio-core/src/lib/general/gr_float_to_uchar.cc b/gnuradio-core/src/lib/general/gr_float_to_uchar.cc
deleted file mode 100644
index 5aec73b71f..0000000000
--- a/gnuradio-core/src/lib/general/gr_float_to_uchar.cc
+++ /dev/null
@@ -1,58 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <gr_float_to_uchar.h>
-#include <gr_io_signature.h>
-#include <gri_float_to_uchar.h>
-
-gr_float_to_uchar_sptr
-gr_make_float_to_uchar ()
-{
- return gnuradio::get_initial_sptr(new gr_float_to_uchar ());
-}
-
-gr_float_to_uchar::gr_float_to_uchar ()
- : gr_sync_block ("gr_float_to_uchar",
- gr_make_io_signature (1, 1, sizeof (float)),
- gr_make_io_signature (1, 1, sizeof (unsigned char)))
-{
-}
-
-int
-gr_float_to_uchar::work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items)
-{
- const float *in = (const float *) input_items[0];
- 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
deleted file mode 100644
index 7fd947048a..0000000000
--- a/gnuradio-core/src/lib/general/gr_float_to_uchar.h
+++ /dev/null
@@ -1,52 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifndef INCLUDED_GR_FLOAT_TO_UCHAR_H
-#define INCLUDED_GR_FLOAT_TO_UCHAR_H
-
-#include <gr_core_api.h>
-#include <gr_sync_block.h>
-
-class gr_float_to_uchar;
-typedef boost::shared_ptr<gr_float_to_uchar> gr_float_to_uchar_sptr;
-
-GR_CORE_API gr_float_to_uchar_sptr
-gr_make_float_to_uchar ();
-
-/*!
- * \brief Convert stream of float to a stream of unsigned char
- * \ingroup converter_blk
- */
-
-class GR_CORE_API gr_float_to_uchar : public gr_sync_block
-{
- friend GR_CORE_API gr_float_to_uchar_sptr gr_make_float_to_uchar ();
- gr_float_to_uchar ();
-
- public:
- virtual int work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items);
-};
-
-
-#endif /* INCLUDED_GR_FLOAT_TO_UCHAR_H */
diff --git a/gnuradio-core/src/lib/general/gr_float_to_uchar.i b/gnuradio-core/src/lib/general/gr_float_to_uchar.i
deleted file mode 100644
index b35979213c..0000000000
--- a/gnuradio-core/src/lib/general/gr_float_to_uchar.i
+++ /dev/null
@@ -1,30 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-GR_SWIG_BLOCK_MAGIC(gr,float_to_uchar)
-
-gr_float_to_uchar_sptr gr_make_float_to_uchar ();
-
-class gr_float_to_uchar : public gr_sync_block
-{
- gr_float_to_uchar ();
-};
diff --git a/gnuradio-core/src/lib/general/gr_int_to_float.cc b/gnuradio-core/src/lib/general/gr_int_to_float.cc
deleted file mode 100644
index a7fb24dc69..0000000000
--- a/gnuradio-core/src/lib/general/gr_int_to_float.cc
+++ /dev/null
@@ -1,67 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <gr_int_to_float.h>
-#include <gr_io_signature.h>
-#include <volk/volk.h>
-
-gr_int_to_float_sptr
-gr_make_int_to_float (size_t vlen, float scale)
-{
- return gnuradio::get_initial_sptr(new gr_int_to_float (vlen, scale));
-}
-
-gr_int_to_float::gr_int_to_float (size_t vlen, float scale)
- : gr_sync_block ("gr_int_to_float",
- gr_make_io_signature (1, 1, sizeof (int32_t)*vlen),
- gr_make_io_signature (1, 1, sizeof (float)*vlen)),
- d_vlen(vlen), d_scale(scale)
-{
- const int alignment_multiple =
- volk_get_alignment() / sizeof(float);
- set_alignment(std::max(1,alignment_multiple));
-}
-
-int
-gr_int_to_float::work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_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);
- }
- else {
- volk_32i_s32f_convert_32f_a(out, in, d_scale, d_vlen*noutput_items);
- }
-
- return 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
deleted file mode 100644
index 6200c5be75..0000000000
--- a/gnuradio-core/src/lib/general/gr_int_to_float.h
+++ /dev/null
@@ -1,70 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifndef INCLUDED_GR_INT_TO_FLOAT_H
-#define INCLUDED_GR_INT_TO_FLOAT_H
-
-#include <gr_core_api.h>
-#include <gr_sync_block.h>
-
-class gr_int_to_float;
-typedef boost::shared_ptr<gr_int_to_float> gr_int_to_float_sptr;
-
-GR_CORE_API gr_int_to_float_sptr
-gr_make_int_to_float (size_t vlen=1, float scale=1);
-
-/*!
- * \brief Convert stream of int to a stream of float
- * \ingroup converter_blk
- *
- * \param vlen vector length of data streams.
- * \param scale a scalar divider to change the output signal scale.
- */
-
-class GR_CORE_API gr_int_to_float : public gr_sync_block
-{
- private:
- friend GR_CORE_API gr_int_to_float_sptr
- gr_make_int_to_float (size_t vlen, float scale);
- gr_int_to_float (size_t vlen, float scale);
-
- size_t d_vlen;
- float d_scale;
-
- public:
- /*!
- * Get the scalar divider value.
- */
- float scale() const;
-
- /*!
- * 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);
-};
-
-
-#endif /* INCLUDED_GR_INT_TO_FLOAT_H */
diff --git a/gnuradio-core/src/lib/general/gr_int_to_float.i b/gnuradio-core/src/lib/general/gr_int_to_float.i
deleted file mode 100644
index f3781ac8ab..0000000000
--- a/gnuradio-core/src/lib/general/gr_int_to_float.i
+++ /dev/null
@@ -1,32 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-GR_SWIG_BLOCK_MAGIC(gr,int_to_float)
-
-gr_int_to_float_sptr
-gr_make_int_to_float (size_t vlen=1, float scale=1);
-
-class gr_int_to_float : public gr_sync_block
-{
- float scale() const;
- void set_scale(float scale);
-};
diff --git a/gnuradio-core/src/lib/general/gr_interleave.cc b/gnuradio-core/src/lib/general/gr_interleave.cc
deleted file mode 100644
index 5d572871eb..0000000000
--- a/gnuradio-core/src/lib/general/gr_interleave.cc
+++ /dev/null
@@ -1,77 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <gr_interleave.h>
-#include <gr_io_signature.h>
-#include <string.h>
-
-
-gr_interleave_sptr
-gr_make_interleave (size_t itemsize)
-{
- return gnuradio::get_initial_sptr(new gr_interleave (itemsize));
-}
-
-gr_interleave::gr_interleave (size_t itemsize)
- : gr_sync_interpolator ("interleave",
- gr_make_io_signature (1, gr_io_signature::IO_INFINITE, itemsize),
- gr_make_io_signature (1, 1, itemsize),
- 1),
- d_itemsize (itemsize)
-{
-}
-
-gr_interleave::~gr_interleave ()
-{
- // NOP
-}
-
-bool
-gr_interleave::check_topology (int ninputs, int noutputs)
-{
- set_interpolation (ninputs);
- return true;
-}
-
-int
-gr_interleave::work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items)
-{
- size_t nchan = input_items.size ();
- size_t itemsize = d_itemsize;
- const char **in = (const char **) &input_items[0];
- char *out = (char *) output_items[0];
-
- for (int i = 0; i < noutput_items; i += nchan){
- for (unsigned int n = 0; n < nchan; n++){
- memcpy (out, in[n], itemsize);
- out += itemsize;
- in[n] += itemsize;
- }
- }
- return noutput_items;
-}
diff --git a/gnuradio-core/src/lib/general/gr_interleave.h b/gnuradio-core/src/lib/general/gr_interleave.h
deleted file mode 100644
index 3b0202d008..0000000000
--- a/gnuradio-core/src/lib/general/gr_interleave.h
+++ /dev/null
@@ -1,57 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifndef INCLUDED_GR_INTERLEAVE_H
-#define INCLUDED_GR_INTERLEAVE_H
-
-#include <gr_core_api.h>
-#include <gr_sync_interpolator.h>
-
-class gr_interleave;
-typedef boost::shared_ptr<gr_interleave> gr_interleave_sptr;
-
-GR_CORE_API gr_interleave_sptr gr_make_interleave (size_t itemsize);
-
-/*!
- * \brief interleave N inputs to a single output
- * \ingroup slicedice_blk
- */
-class GR_CORE_API gr_interleave : public gr_sync_interpolator
-{
- friend GR_CORE_API gr_interleave_sptr gr_make_interleave (size_t itemsize);
-
- size_t d_itemsize;
-
- gr_interleave (size_t itemsize);
-
-public:
- ~gr_interleave ();
-
- int work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items);
-
- bool check_topology (int ninputs, int noutputs);
-
-};
-
-#endif /* INCLUDED_GR_INTERLEAVE_H */
diff --git a/gnuradio-core/src/lib/general/gr_interleave.i b/gnuradio-core/src/lib/general/gr_interleave.i
deleted file mode 100644
index 09a57c886c..0000000000
--- a/gnuradio-core/src/lib/general/gr_interleave.i
+++ /dev/null
@@ -1,30 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-GR_SWIG_BLOCK_MAGIC(gr,interleave)
-
-gr_interleave_sptr gr_make_interleave (size_t itemsize);
-
-class gr_interleave : public gr_sync_interpolator
-{
- gr_interleave (size_t itemsize);
-};
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
deleted file mode 100644
index e7d375a355..0000000000
--- a/gnuradio-core/src/lib/general/gr_interleaved_short_to_complex.cc
+++ /dev/null
@@ -1,59 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <gr_interleaved_short_to_complex.h>
-#include <gr_io_signature.h>
-#include <gri_interleaved_short_to_complex.h>
-
-gr_interleaved_short_to_complex_sptr
-gr_make_interleaved_short_to_complex ()
-{
- return gnuradio::get_initial_sptr(new gr_interleaved_short_to_complex ());
-}
-
-gr_interleaved_short_to_complex::gr_interleaved_short_to_complex ()
- : gr_sync_decimator ("gr_interleaved_short_to_complex",
- gr_make_io_signature (1, 1, sizeof (short)),
- gr_make_io_signature (1, 1, sizeof (gr_complex)),
- 2)
-{
-}
-
-int
-gr_interleaved_short_to_complex::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];
- 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
deleted file mode 100644
index 159d107b33..0000000000
--- a/gnuradio-core/src/lib/general/gr_interleaved_short_to_complex.h
+++ /dev/null
@@ -1,52 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifndef INCLUDED_GR_INTERLEAVED_SHORT_TO_COMPLEX_H
-#define INCLUDED_GR_INTERLEAVED_SHORT_TO_COMPLEX_H
-
-#include <gr_core_api.h>
-#include <gr_sync_decimator.h>
-
-class gr_interleaved_short_to_complex;
-typedef boost::shared_ptr<gr_interleaved_short_to_complex>
- gr_interleaved_short_to_complex_sptr;
-
-GR_CORE_API gr_interleaved_short_to_complex_sptr
-gr_make_interleaved_short_to_complex ();
-
-/*!
- * \brief Convert stream of interleaved shorts to a stream of complex
- * \ingroup converter_blk
- */
-
-class GR_CORE_API gr_interleaved_short_to_complex : public gr_sync_decimator
-{
- friend GR_CORE_API gr_interleaved_short_to_complex_sptr gr_make_interleaved_short_to_complex ();
- gr_interleaved_short_to_complex ();
-
- public:
- virtual int work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items);
-};
-
-#endif /* INCLUDED_GR_INTERLEAVED_SHORT_TO_COMPLEX_H */
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
deleted file mode 100644
index 7977105506..0000000000
--- a/gnuradio-core/src/lib/general/gr_interleaved_short_to_complex.i
+++ /dev/null
@@ -1,30 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-GR_SWIG_BLOCK_MAGIC(gr,interleaved_short_to_complex)
-
-gr_interleaved_short_to_complex_sptr gr_make_interleaved_short_to_complex ();
-
-class gr_interleaved_short_to_complex : public gr_sync_decimator
-{
- gr_interleaved_short_to_complex ();
-};
diff --git a/gnuradio-core/src/lib/general/gr_keep_m_in_n.cc b/gnuradio-core/src/lib/general/gr_keep_m_in_n.cc
deleted file mode 100644
index 1becbfa116..0000000000
--- a/gnuradio-core/src/lib/general/gr_keep_m_in_n.cc
+++ /dev/null
@@ -1,98 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <gr_keep_m_in_n.h>
-#include <gr_io_signature.h>
-#include <string.h>
-#include <stdio.h>
-
-gr_keep_m_in_n_sptr
-gr_make_keep_m_in_n(size_t item_size, int m, int n, int offset)
-{
- return gnuradio::get_initial_sptr(new gr_keep_m_in_n(item_size, m, n, offset));
-}
-
-
-/*
-*
-* offset = 0, starts with 0th item
-* offset = 1, starts with 1st item, etc...
-*
-* we take m items out of each n
-*/
-gr_keep_m_in_n::gr_keep_m_in_n(size_t item_size, int m, int n, int offset)
- : gr_block("keep_m_in_n",
- gr_make_io_signature(1, 1, item_size),
- gr_make_io_signature(1, 1, item_size)),
- d_n(n),
- d_m(m),
- d_offset(offset),
- d_itemsize(item_size)
-{
- // sanity checking
- assert(d_m > 0);
- assert(d_n > 0);
- assert(d_m <= d_n);
- assert(d_offset <= (d_n-d_m));
-
- set_output_multiple(m);
-}
-
-
-void
-gr_keep_m_in_n::forecast(int noutput_items, gr_vector_int &ninput_items_required)
-{
- ninput_items_required[0] = d_n*(noutput_items/d_m);
-}
-
-void
-gr_keep_m_in_n::set_offset(int offset)
-{
- d_offset = offset;
-}
-
-int
-gr_keep_m_in_n::general_work(int noutput_items,
- gr_vector_int &ninput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items)
-{
- uint8_t* out = (uint8_t*)output_items[0];
- const uint8_t* in = (const uint8_t*)input_items[0];
-
- // iterate over data blocks of size {n, input : m, output}
- int blks = std::min(noutput_items/d_m, ninput_items[0]/d_n);
- for(int i=0; i<blks; i++) {
- // set up copy pointers
- const uint8_t* iptr = &in[(i*d_n + d_offset)*d_itemsize];
- uint8_t* optr = &out[i*d_m*d_itemsize];
- // perform copy
- memcpy( optr, iptr, d_m*d_itemsize );
- }
-
- consume_each(d_n);
- return d_m;
-}
diff --git a/gnuradio-core/src/lib/general/gr_keep_m_in_n.h b/gnuradio-core/src/lib/general/gr_keep_m_in_n.h
deleted file mode 100644
index c6bf40ecf2..0000000000
--- a/gnuradio-core/src/lib/general/gr_keep_m_in_n.h
+++ /dev/null
@@ -1,67 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifndef INCLUDED_GR_KEEP_M_IN_N_H
-#define INCLUDED_GR_KEEP_M_IN_N_H
-
-#include <gr_core_api.h>
-#include <gr_block.h>
-
-class gr_keep_m_in_n;
-typedef boost::shared_ptr<gr_keep_m_in_n> gr_keep_m_in_n_sptr;
-
-GR_CORE_API gr_keep_m_in_n_sptr
-gr_make_keep_m_in_n (size_t item_size, int m, int n, int offset);
-
-
-/*!
- * \brief decimate a stream, keeping one item out of every n.
- * \ingroup slicedice_blk
- */
-class GR_CORE_API gr_keep_m_in_n : public gr_block
-{
- friend GR_CORE_API gr_keep_m_in_n_sptr
- gr_make_keep_m_in_n (size_t item_size, int m, int n, int offset);
-
- int d_n;
- int d_m;
- int d_count;
- int d_offset;
- int d_itemsize;
-
- protected:
- gr_keep_m_in_n (size_t item_size, int m, int n, int offset);
- void forecast (int noutput_items, gr_vector_int &ninput_items_required);
-
- public:
- int general_work (int noutput_items,
- gr_vector_int &ninput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items);
-
- void set_offset(int offset);
- void set_n(int n){ d_n = n; }
- void set_m(int m){ d_m = m; }
-
-};
-
-#endif /* INCLUDED_GR_KEEP_M_IN_N_H */
diff --git a/gnuradio-core/src/lib/general/gr_keep_m_in_n.i b/gnuradio-core/src/lib/general/gr_keep_m_in_n.i
deleted file mode 100644
index f280c0248a..0000000000
--- a/gnuradio-core/src/lib/general/gr_keep_m_in_n.i
+++ /dev/null
@@ -1,35 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-GR_SWIG_BLOCK_MAGIC(gr,keep_m_in_n)
-
-gr_keep_m_in_n_sptr
-gr_make_keep_m_in_n (size_t itemsize, int m, int n, int offset);
-
-class gr_keep_m_in_n : public gr_sync_block
-{
- protected:
- gr_keep_m_in_n (size_t itemsize, int m, int n, int offset);
- public:
- void set_offset(int offset);
-
-};
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
deleted file mode 100644
index fbba9e91c0..0000000000
--- a/gnuradio-core/src/lib/general/gr_keep_one_in_n.cc
+++ /dev/null
@@ -1,105 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <gr_keep_one_in_n.h>
-#include <gr_io_signature.h>
-#include <string.h>
-
-gr_keep_one_in_n_sptr
-gr_make_keep_one_in_n (size_t item_size, int n)
-{
- return gnuradio::get_initial_sptr(new gr_keep_one_in_n (item_size, n));
-}
-
-gr_keep_one_in_n::gr_keep_one_in_n (size_t item_size, int n)
- : gr_block ("keep_one_in_n",
- gr_make_io_signature (1, 1, item_size),
- gr_make_io_signature (1, 1, item_size)),
- d_count(n)
-{
- // To avoid bad behavior with using set_relative_rate in this block with
- // VERY large values of n, we will keep track of things ourselves. Using
- // this to turn off automatic tag propagation, which will be handled
- // locally in general_work().
- set_tag_propagation_policy(TPP_DONT);
-
- set_n(n);
-}
-
-void
-gr_keep_one_in_n::set_n(int n)
-{
- if (n < 1)
- n = 1;
-
- d_n = n;
- d_count = n;
-
- // keep our internal understanding of the relative rate of this block
- // don't set the relative rate, though, and we will handle our own
- // tag propagation.
- d_decim_rate = 1.0/(float)d_n;
-}
-
-int
-gr_keep_one_in_n::general_work (int noutput_items,
- gr_vector_int &ninput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_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;
-
- while (ni < ninput_items[0] && no < noutput_items){
- d_count--;
- if (d_count <= 0){
- memcpy (out, in, item_size); // copy 1 item
- out += item_size;
- no++;
- d_count = d_n;
- }
- in += item_size;
- ni++;
- }
-
- // Because we have set TPP_DONT, we have to propagate the tags here manually.
- // Adjustment of the tag sample value is done using the float d_decim_rate.
- std::vector<gr_tag_t> tags;
- std::vector<gr_tag_t>::iterator t;
- get_tags_in_range(tags, 0, nitems_read(0), nitems_read(0)+ni);
- for(t = tags.begin(); t != tags.end(); t++) {
- gr_tag_t new_tag = *t;
- new_tag.offset *= d_decim_rate;
- add_item_tag(0, new_tag);
- }
-
- consume_each (ni);
- return no;
-}
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
deleted file mode 100644
index f37475204b..0000000000
--- a/gnuradio-core/src/lib/general/gr_keep_one_in_n.h
+++ /dev/null
@@ -1,62 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifndef INCLUDED_GR_KEEP_ONE_IN_N_H
-#define INCLUDED_GR_KEEP_ONE_IN_N_H
-
-#include <gr_core_api.h>
-#include <gr_sync_decimator.h>
-
-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_make_keep_one_in_n (size_t item_size, int n);
-
-
-/*!
- * \brief decimate a stream, keeping one item out of every n.
- * \ingroup slicedice_blk
- */
-class GR_CORE_API gr_keep_one_in_n : public gr_block
-{
- friend GR_CORE_API gr_keep_one_in_n_sptr
- gr_make_keep_one_in_n (size_t item_size, int n);
-
- int d_n;
- int d_count;
- float d_decim_rate;
-
- protected:
- gr_keep_one_in_n (size_t item_size, int n);
-
- public:
- int general_work (int noutput_items,
- gr_vector_int &ninput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items);
-
- void set_n(int n);
-
-};
-
-#endif /* INCLUDED_GR_KEEP_ONE_IN_N_H */
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
deleted file mode 100644
index 534098cded..0000000000
--- a/gnuradio-core/src/lib/general/gr_keep_one_in_n.i
+++ /dev/null
@@ -1,35 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-GR_SWIG_BLOCK_MAGIC(gr,keep_one_in_n)
-
-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
-{
- protected:
- gr_keep_one_in_n (size_t itemsize, int n);
-
- public:
- void set_n(int n);
-};
diff --git a/gnuradio-core/src/lib/general/gr_multiply_cc.cc b/gnuradio-core/src/lib/general/gr_multiply_cc.cc
deleted file mode 100644
index 4a3751419f..0000000000
--- a/gnuradio-core/src/lib/general/gr_multiply_cc.cc
+++ /dev/null
@@ -1,69 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <gr_multiply_cc.h>
-#include <gr_io_signature.h>
-#include <volk/volk.h>
-
-gr_multiply_cc_sptr
-gr_make_multiply_cc (size_t vlen)
-{
- return gnuradio::get_initial_sptr(new gr_multiply_cc (vlen));
-}
-
-gr_multiply_cc::gr_multiply_cc (size_t vlen)
- : gr_sync_block ("gr_multiply_cc",
- gr_make_io_signature (1, -1, sizeof (gr_complex)*vlen),
- gr_make_io_signature (1, 1, sizeof (gr_complex)*vlen)),
- d_vlen(vlen)
-{
- const int alignment_multiple =
- volk_get_alignment() / sizeof(gr_complex);
- set_alignment(std::max(1,alignment_multiple));
-}
-
-int
-gr_multiply_cc::work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items)
-{
- gr_complex *out = (gr_complex *) output_items[0];
- int noi = d_vlen*noutput_items;
-
- memcpy(out, input_items[0], noi*sizeof(gr_complex));
- if(is_unaligned()) {
- for(size_t i = 1; i < input_items.size(); i++)
- volk_32fc_x2_multiply_32fc_u(out, out, (gr_complex*)input_items[i], noi);
- }
- else {
- for(size_t i = 1; i < input_items.size(); i++)
- volk_32fc_x2_multiply_32fc_a(out, out, (gr_complex*)input_items[i], noi);
- }
- return noutput_items;
-}
-
-
-
diff --git a/gnuradio-core/src/lib/general/gr_multiply_cc.h b/gnuradio-core/src/lib/general/gr_multiply_cc.h
deleted file mode 100644
index d25935b4ca..0000000000
--- a/gnuradio-core/src/lib/general/gr_multiply_cc.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifndef INCLUDED_GR_MULTIPLY_CC_H
-#define INCLUDED_GR_MULTIPLY_CC_H
-
-#include <gr_core_api.h>
-#include <gr_sync_block.h>
-
-class gr_multiply_cc;
-typedef boost::shared_ptr<gr_multiply_cc> gr_multiply_cc_sptr;
-
-GR_CORE_API gr_multiply_cc_sptr
-gr_make_multiply_cc (size_t vlen=1);
-
-/*!
- * \brief Multiply streams of complex values
- * \ingroup math_blk
- */
-
-class GR_CORE_API gr_multiply_cc : public gr_sync_block
-{
- private:
- 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:
- virtual int work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items);
-};
-
-
-#endif /* INCLUDED_GR_MULTIPLY_CC_H */
diff --git a/gnuradio-core/src/lib/general/gr_multiply_cc.i b/gnuradio-core/src/lib/general/gr_multiply_cc.i
deleted file mode 100644
index f0faa3594c..0000000000
--- a/gnuradio-core/src/lib/general/gr_multiply_cc.i
+++ /dev/null
@@ -1,32 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-GR_SWIG_BLOCK_MAGIC(gr,multiply_cc)
-
-gr_multiply_cc_sptr
-gr_make_multiply_cc (size_t vlen=1);
-
-class gr_multiply_cc : public gr_sync_block
-{
-public:
-
-};
diff --git a/gnuradio-core/src/lib/general/gr_multiply_conjugate_cc.cc b/gnuradio-core/src/lib/general/gr_multiply_conjugate_cc.cc
deleted file mode 100644
index 0c5fb4a926..0000000000
--- a/gnuradio-core/src/lib/general/gr_multiply_conjugate_cc.cc
+++ /dev/null
@@ -1,69 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <gr_multiply_conjugate_cc.h>
-#include <gr_io_signature.h>
-#include <volk/volk.h>
-
-gr_multiply_conjugate_cc_sptr
-gr_make_multiply_conjugate_cc (size_t vlen)
-{
- return gnuradio::get_initial_sptr(new gr_multiply_conjugate_cc (vlen));
-}
-
-gr_multiply_conjugate_cc::gr_multiply_conjugate_cc (size_t vlen)
- : gr_sync_block ("gr_multiply_conjugate_cc",
- gr_make_io_signature (2, 2, sizeof (gr_complex)*vlen),
- gr_make_io_signature (1, 1, sizeof (gr_complex)*vlen)),
- d_vlen(vlen)
-{
- const int alignment_multiple =
- volk_get_alignment() / sizeof(gr_complex);
- set_alignment(std::max(1,alignment_multiple));
-}
-
-int
-gr_multiply_conjugate_cc::work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items)
-{
- gr_complex *in0 = (gr_complex *) input_items[0];
- gr_complex *in1 = (gr_complex *) input_items[1];
- gr_complex *out = (gr_complex *) output_items[0];
- int noi = d_vlen*noutput_items;
-
- if(is_unaligned()) {
- volk_32fc_x2_multiply_conjugate_32fc_u(out, in0, in1, noi);
- }
- else {
- volk_32fc_x2_multiply_conjugate_32fc_a(out, in0, in1, noi);
- }
-
- return noutput_items;
-}
-
-
-
diff --git a/gnuradio-core/src/lib/general/gr_multiply_conjugate_cc.h b/gnuradio-core/src/lib/general/gr_multiply_conjugate_cc.h
deleted file mode 100644
index 826e287714..0000000000
--- a/gnuradio-core/src/lib/general/gr_multiply_conjugate_cc.h
+++ /dev/null
@@ -1,57 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifndef INCLUDED_GR_MULTIPLY_CONJUGATE_CC_H
-#define INCLUDED_GR_MULTIPLY_CONJUGATE_CC_H
-
-#include <gr_core_api.h>
-#include <gr_sync_block.h>
-
-class gr_multiply_conjugate_cc;
-typedef boost::shared_ptr<gr_multiply_conjugate_cc>
-gr_multiply_conjugate_cc_sptr;
-
-GR_CORE_API gr_multiply_conjugate_cc_sptr
-gr_make_multiply_conjugate_cc (size_t vlen=1);
-
-/*!
- * \brief Multiplies a stream by the conjugate of the second stream
- * \ingroup math_blk
- */
-
-class GR_CORE_API gr_multiply_conjugate_cc : public gr_sync_block
-{
- private:
- 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:
- virtual int work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items);
-};
-
-
-#endif /* INCLUDED_GR_MULTIPLY_CONJUGATE_CC_H */
diff --git a/gnuradio-core/src/lib/general/gr_multiply_conjugate_cc.i b/gnuradio-core/src/lib/general/gr_multiply_conjugate_cc.i
deleted file mode 100644
index e7979dbcdf..0000000000
--- a/gnuradio-core/src/lib/general/gr_multiply_conjugate_cc.i
+++ /dev/null
@@ -1,32 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-GR_SWIG_BLOCK_MAGIC(gr,multiply_conjugate_cc)
-
-gr_multiply_conjugate_cc_sptr
-gr_make_multiply_conjugate_cc (size_t vlen=1);
-
-class gr_multiply_conjugate_cc : public gr_sync_block
-{
-public:
-
-};
diff --git a/gnuradio-core/src/lib/general/gr_multiply_const_cc.cc b/gnuradio-core/src/lib/general/gr_multiply_const_cc.cc
deleted file mode 100644
index bd4511937f..0000000000
--- a/gnuradio-core/src/lib/general/gr_multiply_const_cc.cc
+++ /dev/null
@@ -1,80 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <gr_multiply_const_cc.h>
-#include <gr_io_signature.h>
-#include <volk/volk.h>
-
-gr_multiply_const_cc_sptr
-gr_make_multiply_const_cc (gr_complex k, size_t vlen)
-{
- return gnuradio::get_initial_sptr(new gr_multiply_const_cc (k, vlen));
-}
-
-gr_multiply_const_cc::gr_multiply_const_cc (gr_complex k, size_t vlen)
- : gr_sync_block ("gr_multiply_const_cc",
- gr_make_io_signature (1, 1, sizeof (gr_complex)*vlen),
- gr_make_io_signature (1, 1, sizeof (gr_complex)*vlen)),
- d_k(k), d_vlen(vlen)
-{
- const int alignment_multiple =
- volk_get_alignment() / sizeof(gr_complex);
- set_alignment(std::max(1,alignment_multiple));
-}
-
-gr_complex
-gr_multiply_const_cc::k() const
-{
- return d_k;
-}
-
-void
-gr_multiply_const_cc::set_k(gr_complex k)
-{
- d_k = k;
-}
-
-int
-gr_multiply_const_cc::work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items)
-{
- const gr_complex *in = (const gr_complex *) input_items[0];
- gr_complex *out = (gr_complex *) output_items[0];
- int noi = d_vlen*noutput_items;
-
- if(is_unaligned()) {
- volk_32fc_s32fc_multiply_32fc_u(out, in, d_k, noi);
- }
- else {
- volk_32fc_s32fc_multiply_32fc_a(out, in, d_k, noi);
- }
-
- return noutput_items;
-}
-
-
-
diff --git a/gnuradio-core/src/lib/general/gr_multiply_const_cc.h b/gnuradio-core/src/lib/general/gr_multiply_const_cc.h
deleted file mode 100644
index 97962abc70..0000000000
--- a/gnuradio-core/src/lib/general/gr_multiply_const_cc.h
+++ /dev/null
@@ -1,60 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifndef INCLUDED_GR_MULTIPLY_CONST_CC_H
-#define INCLUDED_GR_MULTIPLY_CONST_CC_H
-
-#include <gr_core_api.h>
-#include <gr_sync_block.h>
-
-class gr_multiply_const_cc;
-typedef boost::shared_ptr<gr_multiply_const_cc> gr_multiply_const_cc_sptr;
-
-GR_CORE_API gr_multiply_const_cc_sptr
-gr_make_multiply_const_cc (gr_complex k, size_t vlen=1);
-
-/*!
- * \brief Multiply stream of complex values with a constant \p k
- * \ingroup math_blk
- */
-
-class GR_CORE_API gr_multiply_const_cc : public gr_sync_block
-{
- private:
- friend GR_CORE_API gr_multiply_const_cc_sptr
- gr_make_multiply_const_cc (gr_complex k, size_t vlen);
- gr_multiply_const_cc (gr_complex k, size_t vlen);
-
- gr_complex d_k;
- size_t d_vlen;
-
- public:
- gr_complex k() const;
- void set_k(gr_complex k);
-
- virtual int work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items);
-};
-
-
-#endif /* INCLUDED_GR_MULTIPLY_CONST_CC_H */
diff --git a/gnuradio-core/src/lib/general/gr_multiply_const_cc.i b/gnuradio-core/src/lib/general/gr_multiply_const_cc.i
deleted file mode 100644
index c2f3cbed31..0000000000
--- a/gnuradio-core/src/lib/general/gr_multiply_const_cc.i
+++ /dev/null
@@ -1,33 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-GR_SWIG_BLOCK_MAGIC(gr,multiply_const_cc)
-
-gr_multiply_const_cc_sptr
-gr_make_multiply_const_cc (gr_complex k, size_t vlen=1);
-
-class gr_multiply_const_cc : public gr_sync_block
-{
-public:
- gr_complex k() const;
- void set_k(gr_complex k);
-};
diff --git a/gnuradio-core/src/lib/general/gr_multiply_const_ff.cc b/gnuradio-core/src/lib/general/gr_multiply_const_ff.cc
deleted file mode 100644
index 16ba39df93..0000000000
--- a/gnuradio-core/src/lib/general/gr_multiply_const_ff.cc
+++ /dev/null
@@ -1,80 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <gr_multiply_const_ff.h>
-#include <gr_io_signature.h>
-#include <volk/volk.h>
-
-gr_multiply_const_ff_sptr
-gr_make_multiply_const_ff (float k, size_t vlen)
-{
- return gnuradio::get_initial_sptr(new gr_multiply_const_ff (k, vlen));
-}
-
-gr_multiply_const_ff::gr_multiply_const_ff (float k, size_t vlen)
- : gr_sync_block ("gr_multiply_const_ff",
- gr_make_io_signature (1, 1, sizeof (float)*vlen),
- gr_make_io_signature (1, 1, sizeof (float)*vlen)),
- d_k(k), d_vlen(vlen)
-{
- const int alignment_multiple =
- volk_get_alignment() / sizeof(float);
- set_alignment(std::max(1,alignment_multiple));
-}
-
-float
-gr_multiply_const_ff::k() const
-{
- return d_k;
-}
-
-void
-gr_multiply_const_ff::set_k(float k)
-{
- d_k = k;
-}
-
-int
-gr_multiply_const_ff::work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items)
-{
- const float *in = (const float *) input_items[0];
- float *out = (float *) output_items[0];
- int noi = d_vlen*noutput_items;
-
- if(is_unaligned()) {
- volk_32f_s32f_multiply_32f_u(out, in, d_k, noi);
- }
- else {
- volk_32f_s32f_multiply_32f_a(out, in, d_k, noi);
- }
-
- return noutput_items;
-}
-
-
-
diff --git a/gnuradio-core/src/lib/general/gr_multiply_const_ff.h b/gnuradio-core/src/lib/general/gr_multiply_const_ff.h
deleted file mode 100644
index fac73f88a2..0000000000
--- a/gnuradio-core/src/lib/general/gr_multiply_const_ff.h
+++ /dev/null
@@ -1,60 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifndef INCLUDED_GR_MULTIPLY_CONST_FF_H
-#define INCLUDED_GR_MULTIPLY_CONST_FF_H
-
-#include <gr_core_api.h>
-#include <gr_sync_block.h>
-
-class gr_multiply_const_ff;
-typedef boost::shared_ptr<gr_multiply_const_ff> gr_multiply_const_ff_sptr;
-
-GR_CORE_API gr_multiply_const_ff_sptr
-gr_make_multiply_const_ff (float k, size_t vlen=1);
-
-/*!
- * \brief Multiply stream of float values with a constant \p k
- * \ingroup math_blk
- */
-
-class GR_CORE_API gr_multiply_const_ff : public gr_sync_block
-{
- private:
- friend GR_CORE_API gr_multiply_const_ff_sptr
- gr_make_multiply_const_ff (float k, size_t vlen);
- gr_multiply_const_ff (float k, size_t vlen);
-
- float d_k;
- size_t d_vlen;
-
- public:
- float k() const;
- void set_k(float k);
-
- virtual int work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items);
-};
-
-
-#endif /* INCLUDED_GR_MULTIPLY_CONST_FF_H */
diff --git a/gnuradio-core/src/lib/general/gr_multiply_const_ff.i b/gnuradio-core/src/lib/general/gr_multiply_const_ff.i
deleted file mode 100644
index 343f67cd25..0000000000
--- a/gnuradio-core/src/lib/general/gr_multiply_const_ff.i
+++ /dev/null
@@ -1,33 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-GR_SWIG_BLOCK_MAGIC(gr,multiply_const_ff)
-
-gr_multiply_const_ff_sptr
-gr_make_multiply_const_ff (float k, size_t vlen=1);
-
-class gr_multiply_const_ff : public gr_sync_block
-{
-public:
- float k() const;
- void set_k(float k);
-};
diff --git a/gnuradio-core/src/lib/general/gr_multiply_ff.cc b/gnuradio-core/src/lib/general/gr_multiply_ff.cc
deleted file mode 100644
index bb7bd07550..0000000000
--- a/gnuradio-core/src/lib/general/gr_multiply_ff.cc
+++ /dev/null
@@ -1,69 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <gr_multiply_ff.h>
-#include <gr_io_signature.h>
-#include <volk/volk.h>
-
-gr_multiply_ff_sptr
-gr_make_multiply_ff (size_t vlen)
-{
- return gnuradio::get_initial_sptr(new gr_multiply_ff (vlen));
-}
-
-gr_multiply_ff::gr_multiply_ff (size_t vlen)
- : gr_sync_block ("gr_multiply_ff",
- gr_make_io_signature (1, -1, sizeof (float)*vlen),
- gr_make_io_signature (1, 1, sizeof (float)*vlen)),
- d_vlen(vlen)
-{
- const int alignment_multiple =
- volk_get_alignment() / sizeof(float);
- set_alignment(std::max(1,alignment_multiple));
-}
-
-int
-gr_multiply_ff::work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items)
-{
- float *out = (float *) output_items[0];
- int noi = d_vlen*noutput_items;
-
- memcpy(out, input_items[0], noi*sizeof(float));
- if(is_unaligned()) {
- for(size_t i = 1; i < input_items.size(); i++)
- volk_32f_x2_multiply_32f_u(out, out, (const float*)input_items[i], noi);
- }
- else {
- for(size_t i = 1; i < input_items.size(); i++)
- volk_32f_x2_multiply_32f_a(out, out, (const float*)input_items[i], noi);
- }
- return noutput_items;
-}
-
-
-
diff --git a/gnuradio-core/src/lib/general/gr_multiply_ff.h b/gnuradio-core/src/lib/general/gr_multiply_ff.h
deleted file mode 100644
index ed628385ce..0000000000
--- a/gnuradio-core/src/lib/general/gr_multiply_ff.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifndef INCLUDED_GR_MULTIPLY_FF_H
-#define INCLUDED_GR_MULTIPLY_FF_H
-
-#include <gr_core_api.h>
-#include <gr_sync_block.h>
-
-class gr_multiply_ff;
-typedef boost::shared_ptr<gr_multiply_ff> gr_multiply_ff_sptr;
-
-GR_CORE_API gr_multiply_ff_sptr
-gr_make_multiply_ff (size_t vlen=1);
-
-/*!
- * \brief Multiply streams of complex values
- * \ingroup math_blk
- */
-
-class GR_CORE_API gr_multiply_ff : public gr_sync_block
-{
- private:
- 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:
- virtual int work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items);
-};
-
-
-#endif /* INCLUDED_GR_MULTIPLY_FF_H */
diff --git a/gnuradio-core/src/lib/general/gr_multiply_ff.i b/gnuradio-core/src/lib/general/gr_multiply_ff.i
deleted file mode 100644
index e5fdea3488..0000000000
--- a/gnuradio-core/src/lib/general/gr_multiply_ff.i
+++ /dev/null
@@ -1,32 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-GR_SWIG_BLOCK_MAGIC(gr,multiply_ff)
-
-gr_multiply_ff_sptr
-gr_make_multiply_ff (size_t vlen=1);
-
-class gr_multiply_ff : public gr_sync_block
-{
-public:
-
-};
diff --git a/gnuradio-core/src/lib/general/gr_nlog10_ff.cc b/gnuradio-core/src/lib/general/gr_nlog10_ff.cc
deleted file mode 100644
index 24cfe25fb5..0000000000
--- a/gnuradio-core/src/lib/general/gr_nlog10_ff.cc
+++ /dev/null
@@ -1,64 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <gr_nlog10_ff.h>
-#include <gr_io_signature.h>
-#include <algorithm>
-
-gr_nlog10_ff_sptr
-gr_make_nlog10_ff (float n, unsigned vlen, float k)
-{
- return gnuradio::get_initial_sptr(new gr_nlog10_ff(n, vlen, k));
-}
-
-gr_nlog10_ff::gr_nlog10_ff(float n, unsigned vlen, float k)
- : gr_sync_block("nlog10_ff",
- gr_make_io_signature(1, 1, sizeof(float) * vlen),
- gr_make_io_signature(1, 1, sizeof(float) * vlen)),
- d_vlen(vlen), d_n(n), d_k(k)
-{
-}
-
-gr_nlog10_ff::~gr_nlog10_ff()
-{
-}
-
-int
-gr_nlog10_ff::work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items)
-{
- const float *in = (const float *) input_items[0];
- float *out = (float *) output_items[0];
- int noi = noutput_items * d_vlen;
- float n = d_n;
- float k = d_k;
-
- for (int i = 0; i < noi; i++)
- out[i] = n * log10(std::max(in[i], (float) 1e-18)) + k;
-
- return noutput_items;
-}
diff --git a/gnuradio-core/src/lib/general/gr_nlog10_ff.h b/gnuradio-core/src/lib/general/gr_nlog10_ff.h
deleted file mode 100644
index cfeba3feeb..0000000000
--- a/gnuradio-core/src/lib/general/gr_nlog10_ff.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-#ifndef INCLUDED_GR_NLOG10_FF_H
-#define INCLUDED_GR_NLOG10_FF_H
-
-#include <gr_core_api.h>
-#include <gr_sync_block.h>
-
-class gr_nlog10_ff;
-typedef boost::shared_ptr<gr_nlog10_ff> gr_nlog10_ff_sptr;
-
-GR_CORE_API gr_nlog10_ff_sptr gr_make_nlog10_ff (float n=1.0, unsigned vlen=1, float k=0);
-
-/*!
- * \brief output = n*log10(input) + k
- * \ingroup math_blk
- */
-class GR_CORE_API gr_nlog10_ff : public gr_sync_block
-{
- friend GR_CORE_API gr_nlog10_ff_sptr gr_make_nlog10_ff (float n, unsigned vlen, float k);
-
- unsigned int d_vlen;
- float d_n;
- float d_k;
-
- gr_nlog10_ff (float n, unsigned vlen, float k);
-
-public:
- ~gr_nlog10_ff();
-
- int work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items);
-};
-
-
-#endif /* INCLUDED_GR_NLOG10_FF_H */
diff --git a/gnuradio-core/src/lib/general/gr_nlog10_ff.i b/gnuradio-core/src/lib/general/gr_nlog10_ff.i
deleted file mode 100644
index 73da597938..0000000000
--- a/gnuradio-core/src/lib/general/gr_nlog10_ff.i
+++ /dev/null
@@ -1,33 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-GR_SWIG_BLOCK_MAGIC(gr,nlog10_ff);
-
-gr_nlog10_ff_sptr gr_make_nlog10_ff (float n=1.0, unsigned vlen=1, float k=0);
-
-class gr_nlog10_ff : public gr_sync_block
-{
- gr_nlog10_ff (float n, unsigned vlen, float k);
-
-public:
- ~gr_nlog10_ff();
-};
diff --git a/gnuradio-core/src/lib/general/gr_repeat.cc b/gnuradio-core/src/lib/general/gr_repeat.cc
deleted file mode 100644
index 2fa82cd94d..0000000000
--- a/gnuradio-core/src/lib/general/gr_repeat.cc
+++ /dev/null
@@ -1,69 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <gr_repeat.h>
-#include <gr_io_signature.h>
-#include <string.h>
-
-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_sync_interpolator("extend",
- gr_make_io_signature(1, 1, itemsize),
- gr_make_io_signature(1, 1, itemsize),
- interp),
- d_interp(interp),
- d_itemsize(itemsize)
-{
-}
-
-gr_repeat::~gr_repeat()
-{
-}
-
-int
-gr_repeat::work(int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items)
-{
- const char *in = (const char *) input_items[0];
- char *out = (char *)output_items[0];
-
- for (int i = 0; i < noutput_items/d_interp; i++) {
- for (int j = 0; j < d_interp; j++) {
- memcpy(out, in, d_itemsize);
- out += d_itemsize;
- }
-
- in += d_itemsize;
- }
-
- return noutput_items;
-}
diff --git a/gnuradio-core/src/lib/general/gr_repeat.h b/gnuradio-core/src/lib/general/gr_repeat.h
deleted file mode 100644
index 548ca79f4d..0000000000
--- a/gnuradio-core/src/lib/general/gr_repeat.h
+++ /dev/null
@@ -1,57 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-#ifndef INCLUDED_GR_REPEAT_H
-#define INCLUDED_GR_REPEAT_H
-
-#include <gr_core_api.h>
-#include <gr_sync_interpolator.h>
-
-class gr_repeat;
-
-typedef boost::shared_ptr<gr_repeat> gr_repeat_sptr;
-
-GR_CORE_API gr_repeat_sptr gr_make_repeat(size_t itemsize, int interp);
-
-/*!
- * \brief Repeat a sample 'interp' times in output stream
- * \ingroup misc_blk
- */
-
-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;
- int d_itemsize;
-
- public:
- ~gr_repeat();
-
- int work(int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items);
-};
-
-#endif /* INCLUDED_GR_REPEAT_H */
diff --git a/gnuradio-core/src/lib/general/gr_repeat.i b/gnuradio-core/src/lib/general/gr_repeat.i
deleted file mode 100644
index c657a4906f..0000000000
--- a/gnuradio-core/src/lib/general/gr_repeat.i
+++ /dev/null
@@ -1,11 +0,0 @@
-/* -*- c++ -*- */
-
-GR_SWIG_BLOCK_MAGIC(gr,repeat);
-
-gr_repeat_sptr gr_make_repeat(size_t itemsize, int interp);
-
-class gr_repeat : public gr_sync_interpolator
-{
-private:
- gr_repeat();
-};
diff --git a/gnuradio-core/src/lib/general/gr_short_to_char.cc b/gnuradio-core/src/lib/general/gr_short_to_char.cc
deleted file mode 100644
index 8c146a351d..0000000000
--- a/gnuradio-core/src/lib/general/gr_short_to_char.cc
+++ /dev/null
@@ -1,67 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <gr_short_to_char.h>
-#include <gr_io_signature.h>
-#include <volk/volk.h>
-
-gr_short_to_char_sptr
-gr_make_short_to_char (size_t vlen)
-{
- return gnuradio::get_initial_sptr(new gr_short_to_char (vlen));
-}
-
-gr_short_to_char::gr_short_to_char (size_t vlen)
- : gr_sync_block ("gr_short_to_char",
- gr_make_io_signature (1, 1, sizeof (short)*vlen),
- gr_make_io_signature (1, 1, sizeof (char)*vlen)),
- d_vlen(vlen)
-{
- const int alignment_multiple =
- volk_get_alignment() / sizeof(char);
- set_alignment(std::max(1,alignment_multiple));
-}
-
-int
-gr_short_to_char::work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items)
-{
- const int16_t *in = (const int16_t *) input_items[0];
- int8_t *out = (int8_t *) output_items[0];
-
- if(is_unaligned()) {
- volk_16i_convert_8i_u(out, in, d_vlen*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
deleted file mode 100644
index bf96211c7c..0000000000
--- a/gnuradio-core/src/lib/general/gr_short_to_char.h
+++ /dev/null
@@ -1,58 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifndef INCLUDED_GR_SHORT_TO_CHAR_H
-#define INCLUDED_GR_SHORT_TO_CHAR_H
-
-#include <gr_core_api.h>
-#include <gr_sync_block.h>
-
-class gr_short_to_char;
-typedef boost::shared_ptr<gr_short_to_char> gr_short_to_char_sptr;
-
-GR_CORE_API gr_short_to_char_sptr
-gr_make_short_to_char (size_t vlen=1);
-
-/*!
- * \brief Convert stream of short to a stream of float
- * \ingroup converter_blk
- *
- * \param vlen vector length of data streams.
- */
-
-class GR_CORE_API gr_short_to_char : public gr_sync_block
-{
- private:
- friend GR_CORE_API gr_short_to_char_sptr
- gr_make_short_to_char (size_t vlen);
- gr_short_to_char (size_t vlen);
-
- size_t d_vlen;
-
- public:
- virtual int work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items);
-};
-
-
-#endif /* INCLUDED_GR_SHORT_TO_CHAR_H */
diff --git a/gnuradio-core/src/lib/general/gr_short_to_char.i b/gnuradio-core/src/lib/general/gr_short_to_char.i
deleted file mode 100644
index 7389ed10ba..0000000000
--- a/gnuradio-core/src/lib/general/gr_short_to_char.i
+++ /dev/null
@@ -1,31 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-GR_SWIG_BLOCK_MAGIC(gr,short_to_char)
-
-gr_short_to_char_sptr
-gr_make_short_to_char (size_t vlen=1);
-
-class gr_short_to_char : public gr_sync_block
-{
-
-};
diff --git a/gnuradio-core/src/lib/general/gr_short_to_float.cc b/gnuradio-core/src/lib/general/gr_short_to_float.cc
deleted file mode 100644
index 093d6024fa..0000000000
--- a/gnuradio-core/src/lib/general/gr_short_to_float.cc
+++ /dev/null
@@ -1,78 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <gr_short_to_float.h>
-#include <gr_io_signature.h>
-#include <volk/volk.h>
-
-gr_short_to_float_sptr
-gr_make_short_to_float (size_t vlen, float scale)
-{
- return gnuradio::get_initial_sptr(new gr_short_to_float (vlen, scale));
-}
-
-gr_short_to_float::gr_short_to_float (size_t vlen, float scale)
- : gr_sync_block ("gr_short_to_float",
- gr_make_io_signature (1, 1, sizeof (short)*vlen),
- gr_make_io_signature (1, 1, sizeof (float)*vlen)),
- d_vlen(vlen), d_scale(scale)
-{
- const int alignment_multiple =
- volk_get_alignment() / sizeof(float);
- set_alignment(std::max(1,alignment_multiple));
-}
-
-float
-gr_short_to_float::scale() const
-{
- return d_scale;
-}
-
-void
-gr_short_to_float::set_scale(float scale)
-{
- d_scale = scale;
-}
-
-int
-gr_short_to_float::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];
- float *out = (float *) output_items[0];
-
- if(is_unaligned()) {
- volk_16i_s32f_convert_32f_u(out, in, d_scale, d_vlen*noutput_items);
- }
- else {
- volk_16i_s32f_convert_32f_a(out, in, d_scale, d_vlen*noutput_items);
- }
- return noutput_items;
-}
-
-
-
diff --git a/gnuradio-core/src/lib/general/gr_short_to_float.h b/gnuradio-core/src/lib/general/gr_short_to_float.h
deleted file mode 100644
index 362549e70a..0000000000
--- a/gnuradio-core/src/lib/general/gr_short_to_float.h
+++ /dev/null
@@ -1,70 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifndef INCLUDED_GR_SHORT_TO_FLOAT_H
-#define INCLUDED_GR_SHORT_TO_FLOAT_H
-
-#include <gr_core_api.h>
-#include <gr_sync_block.h>
-
-class gr_short_to_float;
-typedef boost::shared_ptr<gr_short_to_float> gr_short_to_float_sptr;
-
-GR_CORE_API gr_short_to_float_sptr
-gr_make_short_to_float (size_t vlen=1, float scale=1);
-
-/*!
- * \brief Convert stream of short to a stream of float
- * \ingroup converter_blk
- *
- * \param vlen vector length of data streams.
- * \param scale a scalar divider to change the output signal scale.
- */
-
-class GR_CORE_API gr_short_to_float : public gr_sync_block
-{
- private:
- friend GR_CORE_API gr_short_to_float_sptr
- gr_make_short_to_float (size_t vlen, float scale);
- gr_short_to_float (size_t vlen, float scale);
-
- size_t d_vlen;
- float d_scale;
-
- public:
- /*!
- * Get the scalar divider value.
- */
- float scale() const;
-
- /*!
- * 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);
-};
-
-
-#endif /* INCLUDED_GR_SHORT_TO_FLOAT_H */
diff --git a/gnuradio-core/src/lib/general/gr_short_to_float.i b/gnuradio-core/src/lib/general/gr_short_to_float.i
deleted file mode 100644
index e781e292c9..0000000000
--- a/gnuradio-core/src/lib/general/gr_short_to_float.i
+++ /dev/null
@@ -1,33 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-GR_SWIG_BLOCK_MAGIC(gr,short_to_float)
-
-gr_short_to_float_sptr
-gr_make_short_to_float (size_t vlen=1, float scale=1);
-
-class gr_short_to_float : public gr_sync_block
-{
-public:
- float scale() const;
- void set_scale(float scale);
-};
diff --git a/gnuradio-core/src/lib/general/gr_stream_mux.cc b/gnuradio-core/src/lib/general/gr_stream_mux.cc
deleted file mode 100644
index 978d960b20..0000000000
--- a/gnuradio-core/src/lib/general/gr_stream_mux.cc
+++ /dev/null
@@ -1,124 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <gr_stream_mux.h>
-#include <gr_io_signature.h>
-#include <string.h>
-#include <cstdio>
-
-#define VERBOSE 0
-
-gr_stream_mux_sptr
-gr_make_stream_mux (size_t itemsize, const std::vector<int> &lengths)
-{
- return gnuradio::get_initial_sptr(new gr_stream_mux (itemsize, lengths));
-}
-
-gr_stream_mux::gr_stream_mux (size_t itemsize, const std::vector<int> &lengths)
- : gr_block ("stream_mux",
- gr_make_io_signature (1, -1, itemsize),
- gr_make_io_signature (1, 1, itemsize)),
- d_itemsize(itemsize),
- d_stream(0),
- d_residual(0),
- d_lengths(lengths)
-{
- if(d_lengths[d_stream] == 0) {
- increment_stream();
- }
- d_residual = d_lengths[d_stream];
-}
-
-gr_stream_mux::~gr_stream_mux(void)
-{
-}
-
-void
-gr_stream_mux::forecast (int noutput_items, gr_vector_int &ninput_items_required)
-{
- unsigned ninputs = ninput_items_required.size ();
- for (unsigned i = 0; i < ninputs; i++)
- ninput_items_required[i] = (d_lengths[i] == 0 ? 0 : 1);
-}
-
-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];
-}
-
-int
-gr_stream_mux::general_work(int noutput_items,
- gr_vector_int &ninput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items)
-{
- char *out = (char *) output_items[0];
- const char *in;
- int out_index = 0;
- std::vector<int> input_index(d_lengths.size(), 0);
-
- if(VERBOSE) {
- printf("mux: nouput_items: %d d_stream: %d\n", noutput_items, d_stream);
- for(size_t i = 0; i < d_lengths.size(); i++)
- printf("\tninput_items[%zu]: %d\n", i, ninput_items[i]);
- }
-
- while (1) {
- int r = std::min(noutput_items - out_index,
- std::min(d_residual,
- ninput_items[d_stream] - input_index[d_stream]));
- if(VERBOSE) {
- printf("mux: r=%d\n", r);
- printf("\tnoutput_items - out_index: %d\n",
- noutput_items - out_index);
- printf("\td_residual: %d\n",
- d_residual);
- printf("\tninput_items[d_stream] - input_index[d_stream]: %d\n",
- ninput_items[d_stream] - input_index[d_stream]);
- }
-
- if(r <= 0) {
- return out_index;
- }
-
- 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
deleted file mode 100644
index 742bf082d1..0000000000
--- a/gnuradio-core/src/lib/general/gr_stream_mux.h
+++ /dev/null
@@ -1,93 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifndef INCLUDED_GR_STREAM_MUX_H
-#define INCLUDED_GR_STREAM_MUX_H
-
-
-#include <gr_core_api.h>
-#include <gr_block.h>
-#include <vector>
-
-/*!
- * \brief Creates a stream muxing block to multiplex many streams into
- * one with a specified format.
- * \ingroup converter_blk
- *
- * \param itemsize the item size of the stream
- * \param length a vector (list/tuple) specifying the number of
- * items from each stream the mux together.
- * Warning: this requires that at least as many items
- * per stream are available or the system will wait
- * indefinitely for the items.
- *
- */
-class gr_stream_mux;
-typedef boost::shared_ptr<gr_stream_mux> 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:
- *
- * [N0, N1, N2, ..., Nm, N0, N1, ...]
- */
-
-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);
-
- private:
- size_t d_itemsize;
- 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:
- ~gr_stream_mux(void);
-
- void forecast (int noutput_items, gr_vector_int &ninput_items_required);
-
- int general_work(int noutput_items,
- gr_vector_int &ninput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items);
-
-};
-
-
-#endif
diff --git a/gnuradio-core/src/lib/general/gr_stream_mux.i b/gnuradio-core/src/lib/general/gr_stream_mux.i
deleted file mode 100644
index 7cc116a23b..0000000000
--- a/gnuradio-core/src/lib/general/gr_stream_mux.i
+++ /dev/null
@@ -1,42 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#include <vector>
-
-GR_SWIG_BLOCK_MAGIC(gr,stream_mux)
-
-gr_stream_mux_sptr
-gr_make_stream_mux (size_t itemsize,
- const std::vector<int> &lengths);
-
-class gr_stream_mux : public gr_block
-{
- protected:
- gr_make_stream_mux (size_t itemsize,
- const std::vector<int> &lengths);
-
- public:
- int general_work(int noutput_items,
- gr_vector_int &ninput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items);
-};
diff --git a/gnuradio-core/src/lib/general/gr_stream_to_streams.cc b/gnuradio-core/src/lib/general/gr_stream_to_streams.cc
deleted file mode 100644
index de72adb1dd..0000000000
--- a/gnuradio-core/src/lib/general/gr_stream_to_streams.cc
+++ /dev/null
@@ -1,66 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <gr_stream_to_streams.h>
-#include <gr_io_signature.h>
-#include <string.h>
-
-gr_stream_to_streams_sptr
-gr_make_stream_to_streams (size_t item_size, size_t nstreams)
-{
- return gnuradio::get_initial_sptr(new gr_stream_to_streams (item_size, nstreams));
-}
-
-gr_stream_to_streams::gr_stream_to_streams (size_t item_size, size_t nstreams)
- : gr_sync_decimator ("stream_to_streams",
- gr_make_io_signature (1, 1, item_size),
- gr_make_io_signature (nstreams,
- nstreams, item_size),
- nstreams)
-{
-}
-
-int
-gr_stream_to_streams::work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items)
-{
- size_t item_size = output_signature()->sizeof_stream_item (0);
-
- const char *in = (const char *) input_items[0];
- char **outv = (char **) &output_items[0];
- int nstreams = output_items.size();
-
- for (int i = 0; i < noutput_items; i++){
- for (int j = 0; j < nstreams; j++){
- memcpy(outv[j], in, item_size);
- outv[j] += item_size;
- in += item_size;
- }
- }
-
- return noutput_items;
-}
diff --git a/gnuradio-core/src/lib/general/gr_stream_to_streams.h b/gnuradio-core/src/lib/general/gr_stream_to_streams.h
deleted file mode 100644
index 117f57bf5e..0000000000
--- a/gnuradio-core/src/lib/general/gr_stream_to_streams.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-#ifndef INCLUDED_GR_STREAM_TO_STREAMS_H
-#define INCLUDED_GR_STREAM_TO_STREAMS_H
-
-#include <gr_core_api.h>
-#include <gr_sync_decimator.h>
-
-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_make_stream_to_streams (size_t item_size, size_t nstreams);
-
-
-/*!
- * \brief convert a stream of items into a N streams of items
- * \ingroup slicedice_blk
- *
- * Converts a stream of N items into N streams of 1 item.
- * Repeat ad infinitum.
- */
-class GR_CORE_API gr_stream_to_streams : public gr_sync_decimator
-{
- friend GR_CORE_API gr_stream_to_streams_sptr
- gr_make_stream_to_streams (size_t item_size, size_t nstreams);
-
- protected:
- gr_stream_to_streams (size_t item_size, size_t nstreams);
-
- public:
- int work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items);
-};
-
-#endif /* INCLUDED_GR_STREAM_TO_STREAMS_H */
diff --git a/gnuradio-core/src/lib/general/gr_stream_to_streams.i b/gnuradio-core/src/lib/general/gr_stream_to_streams.i
deleted file mode 100644
index 4d324372ee..0000000000
--- a/gnuradio-core/src/lib/general/gr_stream_to_streams.i
+++ /dev/null
@@ -1,34 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-GR_SWIG_BLOCK_MAGIC(gr,stream_to_streams)
-
-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
-{
- protected:
- gr_stream_to_streams (size_t itemsize, size_t nstreams);
-
- public:
-};
diff --git a/gnuradio-core/src/lib/general/gr_stream_to_vector.cc b/gnuradio-core/src/lib/general/gr_stream_to_vector.cc
deleted file mode 100644
index d38cdd4348..0000000000
--- a/gnuradio-core/src/lib/general/gr_stream_to_vector.cc
+++ /dev/null
@@ -1,58 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <gr_stream_to_vector.h>
-#include <gr_io_signature.h>
-#include <string.h>
-
-gr_stream_to_vector_sptr
-gr_make_stream_to_vector (size_t item_size, size_t nitems_per_block)
-{
- return gnuradio::get_initial_sptr(new gr_stream_to_vector (item_size, nitems_per_block));
-}
-
-gr_stream_to_vector::gr_stream_to_vector (size_t item_size, size_t nitems_per_block)
- : gr_sync_decimator ("stream_to_vector",
- gr_make_io_signature (1, 1, item_size),
- gr_make_io_signature (1, 1, item_size * nitems_per_block),
- nitems_per_block)
-{
-}
-
-int
-gr_stream_to_vector::work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items)
-{
- size_t block_size = output_signature()->sizeof_stream_item (0);
-
- const char *in = (const char *) input_items[0];
- char *out = (char *) output_items[0];
-
- memcpy (out, in, noutput_items * block_size);
-
- return noutput_items;
-}
diff --git a/gnuradio-core/src/lib/general/gr_stream_to_vector.h b/gnuradio-core/src/lib/general/gr_stream_to_vector.h
deleted file mode 100644
index 362349965f..0000000000
--- a/gnuradio-core/src/lib/general/gr_stream_to_vector.h
+++ /dev/null
@@ -1,55 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifndef INCLUDED_GR_STREAM_TO_VECTOR_H
-#define INCLUDED_GR_STREAM_TO_VECTOR_H
-
-#include <gr_core_api.h>
-#include <gr_sync_decimator.h>
-
-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_make_stream_to_vector (size_t item_size, size_t nitems_per_block);
-
-
-/*!
- * \brief convert a stream of items into a stream of blocks containing nitems_per_block
- * \ingroup slicedice_blk
- */
-class GR_CORE_API gr_stream_to_vector : public gr_sync_decimator
-{
- friend GR_CORE_API gr_stream_to_vector_sptr
- gr_make_stream_to_vector (size_t item_size, size_t nitems_per_block);
-
- protected:
- gr_stream_to_vector (size_t item_size, size_t nitems_per_block);
-
- public:
- int work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items);
-};
-
-
-#endif /* INCLUDED_GR_STREAM_TO_VECTOR_H */
diff --git a/gnuradio-core/src/lib/general/gr_stream_to_vector.i b/gnuradio-core/src/lib/general/gr_stream_to_vector.i
deleted file mode 100644
index ef867012ad..0000000000
--- a/gnuradio-core/src/lib/general/gr_stream_to_vector.i
+++ /dev/null
@@ -1,34 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-GR_SWIG_BLOCK_MAGIC(gr,stream_to_vector)
-
-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
-{
- protected:
- gr_stream_to_vector (size_t itemsize, size_t nitems_per_block);
-
- public:
-};
diff --git a/gnuradio-core/src/lib/general/gr_streams_to_stream.cc b/gnuradio-core/src/lib/general/gr_streams_to_stream.cc
deleted file mode 100644
index 8bce747227..0000000000
--- a/gnuradio-core/src/lib/general/gr_streams_to_stream.cc
+++ /dev/null
@@ -1,68 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <gr_streams_to_stream.h>
-#include <gr_io_signature.h>
-#include <string.h>
-
-gr_streams_to_stream_sptr
-gr_make_streams_to_stream (size_t item_size, size_t nstreams)
-{
- return gnuradio::get_initial_sptr(new gr_streams_to_stream (item_size, nstreams));
-}
-
-gr_streams_to_stream::gr_streams_to_stream (size_t item_size, size_t nstreams)
- : gr_sync_interpolator ("streams_to_stream",
- gr_make_io_signature (nstreams, nstreams, item_size),
- gr_make_io_signature (1, 1, item_size),
- nstreams)
-{
-}
-
-int
-gr_streams_to_stream::work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items)
-{
- size_t item_size = output_signature()->sizeof_stream_item (0);
-
- const char **inv = (const char **) &input_items[0];
- char *out = (char *) output_items[0];
- int nstreams = input_items.size();
-
- assert (noutput_items % nstreams == 0);
- int ni = noutput_items / nstreams;
-
- for (int i = 0; i < ni; i++){
- for (int j = 0; j < nstreams; j++){
- memcpy(out, inv[j], item_size);
- out += item_size;
- inv[j] += item_size;
- }
- }
-
- return noutput_items;
-}
diff --git a/gnuradio-core/src/lib/general/gr_streams_to_stream.h b/gnuradio-core/src/lib/general/gr_streams_to_stream.h
deleted file mode 100644
index f636837675..0000000000
--- a/gnuradio-core/src/lib/general/gr_streams_to_stream.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-#ifndef INCLUDED_GR_STREAMS_TO_STREAM_H
-#define INCLUDED_GR_STREAMS_TO_STREAM_H
-
-#include <gr_core_api.h>
-#include <gr_sync_interpolator.h>
-
-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_make_streams_to_stream (size_t item_size, size_t nstreams);
-
-
-/*!
- * \brief Convert N streams of 1 item into a 1 stream of N items
- * \ingroup slicedice_blk
- *
- * Convert N streams of 1 item into 1 stream of N items.
- * Repeat ad infinitum.
- */
-class GR_CORE_API gr_streams_to_stream : public gr_sync_interpolator
-{
- friend GR_CORE_API gr_streams_to_stream_sptr
- gr_make_streams_to_stream (size_t item_size, size_t nstreams);
-
- protected:
- gr_streams_to_stream (size_t item_size, size_t nstreams);
-
- public:
- int work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items);
-};
-
-#endif /* INCLUDED_GR_STREAMS_TO_STREAM_H */
diff --git a/gnuradio-core/src/lib/general/gr_streams_to_stream.i b/gnuradio-core/src/lib/general/gr_streams_to_stream.i
deleted file mode 100644
index a09ded0710..0000000000
--- a/gnuradio-core/src/lib/general/gr_streams_to_stream.i
+++ /dev/null
@@ -1,34 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-GR_SWIG_BLOCK_MAGIC(gr,streams_to_stream)
-
-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
-{
- protected:
- gr_streams_to_stream (size_t itemsize, size_t nstreams);
-
- public:
-};
diff --git a/gnuradio-core/src/lib/general/gr_streams_to_vector.cc b/gnuradio-core/src/lib/general/gr_streams_to_vector.cc
deleted file mode 100644
index cf862ca954..0000000000
--- a/gnuradio-core/src/lib/general/gr_streams_to_vector.cc
+++ /dev/null
@@ -1,64 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <gr_streams_to_vector.h>
-#include <gr_io_signature.h>
-#include <string.h>
-
-gr_streams_to_vector_sptr
-gr_make_streams_to_vector (size_t item_size, size_t nstreams)
-{
- return gnuradio::get_initial_sptr(new gr_streams_to_vector (item_size, nstreams));
-}
-
-gr_streams_to_vector::gr_streams_to_vector (size_t item_size, size_t nstreams)
- : gr_sync_block ("streams_to_vector",
- gr_make_io_signature (nstreams, nstreams, item_size),
- gr_make_io_signature (1, 1, nstreams * item_size))
-{
-}
-
-int
-gr_streams_to_vector::work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items)
-{
- size_t item_size = input_signature()->sizeof_stream_item(0);
- int nstreams = input_items.size();
-
- const char **inv = (const char **) &input_items[0];
- char *out = (char *) output_items[0];
-
- for (int i = 0; i < noutput_items; i++){
- for (int j = 0; j < nstreams; j++){
- memcpy(out, inv[j], item_size);
- inv[j] += item_size;
- out += item_size;
- }
- }
-
- return noutput_items;
-}
diff --git a/gnuradio-core/src/lib/general/gr_streams_to_vector.h b/gnuradio-core/src/lib/general/gr_streams_to_vector.h
deleted file mode 100644
index 1df2890999..0000000000
--- a/gnuradio-core/src/lib/general/gr_streams_to_vector.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifndef INCLUDED_GR_STREAMS_TO_VECTOR_H
-#define INCLUDED_GR_STREAMS_TO_VECTOR_H
-
-#include <gr_core_api.h>
-#include <gr_sync_interpolator.h>
-
-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_make_streams_to_vector (size_t item_size, size_t nstreams);
-
-
-/*!
- * \brief convert N streams of items to 1 stream of vector length N
- * \ingroup slicedice_blk
- */
-class GR_CORE_API gr_streams_to_vector : public gr_sync_block
-{
- friend GR_CORE_API gr_streams_to_vector_sptr
- gr_make_streams_to_vector (size_t item_size, size_t nstreams);
-
- protected:
- gr_streams_to_vector (size_t item_size, size_t nstreams);
-
- public:
- int work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items);
-};
-
-#endif /* INCLUDED_GR_STREAMS_TO_VECTOR_H */
diff --git a/gnuradio-core/src/lib/general/gr_streams_to_vector.i b/gnuradio-core/src/lib/general/gr_streams_to_vector.i
deleted file mode 100644
index 4d5eca45ef..0000000000
--- a/gnuradio-core/src/lib/general/gr_streams_to_vector.i
+++ /dev/null
@@ -1,34 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-GR_SWIG_BLOCK_MAGIC(gr,streams_to_vector)
-
-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
-{
- protected:
- gr_streams_to_vector (size_t itemsize, size_t nstreams);
-
- public:
-};
diff --git a/gnuradio-core/src/lib/general/gr_uchar_to_float.cc b/gnuradio-core/src/lib/general/gr_uchar_to_float.cc
deleted file mode 100644
index 981a934400..0000000000
--- a/gnuradio-core/src/lib/general/gr_uchar_to_float.cc
+++ /dev/null
@@ -1,55 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <gr_uchar_to_float.h>
-#include <gr_io_signature.h>
-#include <gri_uchar_to_float.h>
-
-gr_uchar_to_float_sptr
-gr_make_uchar_to_float ()
-{
- return gnuradio::get_initial_sptr(new gr_uchar_to_float ());
-}
-
-gr_uchar_to_float::gr_uchar_to_float ()
- : gr_sync_block ("gr_uchar_to_float",
- gr_make_io_signature (1, 1, sizeof (unsigned char)),
- gr_make_io_signature (1, 1, sizeof (float)))
-{
-}
-
-int
-gr_uchar_to_float::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];
- 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
deleted file mode 100644
index c02601cca6..0000000000
--- a/gnuradio-core/src/lib/general/gr_uchar_to_float.h
+++ /dev/null
@@ -1,52 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifndef INCLUDED_GR_UCHAR_TO_FLOAT_H
-#define INCLUDED_GR_UCHAR_TO_FLOAT_H
-
-#include <gr_core_api.h>
-#include <gr_sync_block.h>
-
-class gr_uchar_to_float;
-typedef boost::shared_ptr<gr_uchar_to_float> gr_uchar_to_float_sptr;
-
-GR_CORE_API gr_uchar_to_float_sptr
-gr_make_uchar_to_float ();
-
-/*!
- * \brief Convert stream of unsigned chars to a stream of float
- * \ingroup converter_blk
- */
-
-class GR_CORE_API gr_uchar_to_float : public gr_sync_block
-{
- friend GR_CORE_API gr_uchar_to_float_sptr gr_make_uchar_to_float ();
- gr_uchar_to_float ();
-
- public:
- virtual int work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items);
-};
-
-
-#endif /* INCLUDED_GR_UCHAR_TO_FLOAT_H */
diff --git a/gnuradio-core/src/lib/general/gr_uchar_to_float.i b/gnuradio-core/src/lib/general/gr_uchar_to_float.i
deleted file mode 100644
index b6cc353296..0000000000
--- a/gnuradio-core/src/lib/general/gr_uchar_to_float.i
+++ /dev/null
@@ -1,30 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-GR_SWIG_BLOCK_MAGIC(gr,uchar_to_float)
-
-gr_uchar_to_float_sptr gr_make_uchar_to_float ();
-
-class gr_uchar_to_float : public gr_sync_block
-{
- gr_uchar_to_float ();
-};
diff --git a/gnuradio-core/src/lib/general/gr_vector_to_stream.cc b/gnuradio-core/src/lib/general/gr_vector_to_stream.cc
deleted file mode 100644
index 621b7ec581..0000000000
--- a/gnuradio-core/src/lib/general/gr_vector_to_stream.cc
+++ /dev/null
@@ -1,58 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <gr_vector_to_stream.h>
-#include <gr_io_signature.h>
-#include <string.h>
-
-gr_vector_to_stream_sptr
-gr_make_vector_to_stream (size_t item_size, size_t nitems_per_block)
-{
- return gnuradio::get_initial_sptr(new gr_vector_to_stream (item_size, nitems_per_block));
-}
-
-gr_vector_to_stream::gr_vector_to_stream (size_t item_size, size_t nitems_per_block)
- : gr_sync_interpolator ("vector_to_stream",
- gr_make_io_signature (1, 1, item_size * nitems_per_block),
- gr_make_io_signature (1, 1, item_size),
- nitems_per_block)
-{
-}
-
-int
-gr_vector_to_stream::work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items)
-{
- size_t block_size = output_signature()->sizeof_stream_item (0);
-
- const char *in = (const char *) input_items[0];
- char *out = (char *) output_items[0];
-
- memcpy (out, in, noutput_items * block_size);
-
- return noutput_items;
-}
diff --git a/gnuradio-core/src/lib/general/gr_vector_to_stream.h b/gnuradio-core/src/lib/general/gr_vector_to_stream.h
deleted file mode 100644
index 9fc8030f5b..0000000000
--- a/gnuradio-core/src/lib/general/gr_vector_to_stream.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifndef INCLUDED_GR_VECTOR_TO_STREAM_H
-#define INCLUDED_GR_VECTOR_TO_STREAM_H
-
-#include <gr_core_api.h>
-#include <gr_sync_interpolator.h>
-
-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_make_vector_to_stream (size_t item_size, size_t nitems_per_block);
-
-
-/*!
- * \brief convert a stream of blocks of nitems_per_block items into a stream of items
- * \ingroup slicedice_blk
- */
-class GR_CORE_API gr_vector_to_stream : public gr_sync_interpolator
-{
- friend GR_CORE_API gr_vector_to_stream_sptr
- gr_make_vector_to_stream (size_t item_size, size_t nitems_per_block);
-
- protected:
- gr_vector_to_stream (size_t item_size, size_t nitems_per_block);
-
- public:
- int work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items);
-};
-
-#endif /* INCLUDED_GR_VECTOR_TO_STREAM_H */
diff --git a/gnuradio-core/src/lib/general/gr_vector_to_stream.i b/gnuradio-core/src/lib/general/gr_vector_to_stream.i
deleted file mode 100644
index 99776eeb86..0000000000
--- a/gnuradio-core/src/lib/general/gr_vector_to_stream.i
+++ /dev/null
@@ -1,34 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-GR_SWIG_BLOCK_MAGIC(gr,vector_to_stream)
-
-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
-{
- protected:
- gr_vector_to_stream (size_t itemsize, size_t nitems_per_block);
-
- public:
-};
diff --git a/gnuradio-core/src/lib/general/gr_vector_to_streams.cc b/gnuradio-core/src/lib/general/gr_vector_to_streams.cc
deleted file mode 100644
index 7ab352a4fb..0000000000
--- a/gnuradio-core/src/lib/general/gr_vector_to_streams.cc
+++ /dev/null
@@ -1,64 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <gr_vector_to_streams.h>
-#include <gr_io_signature.h>
-#include <string.h>
-
-gr_vector_to_streams_sptr
-gr_make_vector_to_streams (size_t item_size, size_t nstreams)
-{
- return gnuradio::get_initial_sptr(new gr_vector_to_streams (item_size, nstreams));
-}
-
-gr_vector_to_streams::gr_vector_to_streams (size_t item_size, size_t nstreams)
- : gr_sync_block ("vector_to_streams",
- gr_make_io_signature (1, 1, nstreams * item_size),
- gr_make_io_signature (nstreams, nstreams, item_size))
-{
-}
-
-int
-gr_vector_to_streams::work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items)
-{
- size_t item_size = output_signature()->sizeof_stream_item(0);
- int nstreams = output_items.size();
-
- const char *in = (const char *) input_items[0];
- char **outv = (char **) &output_items[0];
-
- for (int i = 0; i < noutput_items; i++){
- for (int j = 0; j < nstreams; j++){
- memcpy(outv[j], in, item_size);
- outv[j] += item_size;
- in += item_size;
- }
- }
-
- return noutput_items;
-}
diff --git a/gnuradio-core/src/lib/general/gr_vector_to_streams.h b/gnuradio-core/src/lib/general/gr_vector_to_streams.h
deleted file mode 100644
index 8db4230536..0000000000
--- a/gnuradio-core/src/lib/general/gr_vector_to_streams.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifndef INCLUDED_GR_VECTOR_TO_STREAMS_H
-#define INCLUDED_GR_VECTOR_TO_STREAMS_H
-
-#include <gr_core_api.h>
-#include <gr_sync_interpolator.h>
-
-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_make_vector_to_streams (size_t item_size, size_t nstreams);
-
-
-/*!
- * \brief Convert 1 stream of vectors of length N to N streams of items
- * \ingroup slicedice_blk
- */
-class GR_CORE_API gr_vector_to_streams : public gr_sync_block
-{
- friend GR_CORE_API gr_vector_to_streams_sptr
- gr_make_vector_to_streams (size_t item_size, size_t nstreams);
-
- protected:
- gr_vector_to_streams (size_t item_size, size_t nstreams);
-
- public:
- int work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items);
-};
-
-#endif /* INCLUDED_GR_VECTOR_TO_STREAMS_H */
diff --git a/gnuradio-core/src/lib/general/gr_vector_to_streams.i b/gnuradio-core/src/lib/general/gr_vector_to_streams.i
deleted file mode 100644
index d4123135bc..0000000000
--- a/gnuradio-core/src/lib/general/gr_vector_to_streams.i
+++ /dev/null
@@ -1,34 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-GR_SWIG_BLOCK_MAGIC(gr,vector_to_streams)
-
-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
-{
- protected:
- gr_vector_to_streams (size_t itemsize, size_t nstreams);
-
- public:
-};
diff --git a/gnuradio-core/src/lib/general/gri_char_to_float.cc b/gnuradio-core/src/lib/general/gri_char_to_float.cc
deleted file mode 100644
index fd9a6636a1..0000000000
--- a/gnuradio-core/src/lib/general/gri_char_to_float.cc
+++ /dev/null
@@ -1,40 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#include <gri_char_to_float.h>
-
-void
-gri_char_to_float (const char *in, float *out, int nsamples)
-{
- while (nsamples >= 4){
- out[0] = in[0];
- out[1] = in[1];
- out[2] = in[2];
- out[3] = in[3];
- out += 4;
- in += 4;
- nsamples -= 4;
- }
-
- while (nsamples-- > 0)
- *out++ = *in++;
-}
diff --git a/gnuradio-core/src/lib/general/gri_char_to_float.h b/gnuradio-core/src/lib/general/gri_char_to_float.h
deleted file mode 100644
index 8bd3bfde7d..0000000000
--- a/gnuradio-core/src/lib/general/gri_char_to_float.h
+++ /dev/null
@@ -1,34 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifndef INCLUDED_GRI_CHAR_TO_FLOAT_H
-#define INCLUDED_GRI_CHAR_TO_FLOAT_H
-
-#include <gr_core_api.h>
-
-/*
- * convert array of chars to floats
- */
-GR_CORE_API void gri_char_to_float (const char *in, float *out, int nsamples);
-
-
-#endif /* INCLUDED_GRI_CHAR_TO_FLOAT_H */ \ No newline at end of file
diff --git a/gnuradio-core/src/lib/general/gri_float_to_char.cc b/gnuradio-core/src/lib/general/gri_float_to_char.cc
deleted file mode 100644
index 3e779b0e70..0000000000
--- a/gnuradio-core/src/lib/general/gri_float_to_char.cc
+++ /dev/null
@@ -1,46 +0,0 @@
-/* -*- 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.
- */
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#define _ISOC9X_SOURCE
-#include <gri_float_to_char.h>
-#include <math.h>
-
-static const int MIN_CHAR = -128;
-static const int MAX_CHAR = 127;
-
-
-void
-gri_float_to_char (const float *in, char *out, int nsamples)
-{
- for (int i = 0; i < nsamples; i++){
- long int r = (long int) rint (in[i]);
- if (r < MIN_CHAR)
- r = MIN_CHAR;
- else if (r > MAX_CHAR)
- r = MAX_CHAR;
- out[i] = r;
- }
-}
diff --git a/gnuradio-core/src/lib/general/gri_float_to_char.h b/gnuradio-core/src/lib/general/gri_float_to_char.h
deleted file mode 100644
index 172a7da651..0000000000
--- a/gnuradio-core/src/lib/general/gri_float_to_char.h
+++ /dev/null
@@ -1,33 +0,0 @@
-/* -*- 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.
- */
-
-#ifndef INCLUDED_GRI_FLOAT_TO_CHAR_H
-#define INCLUDED_GRI_FLOAT_TO_CHAR_H
-
-#include <gr_core_api.h>
-
-/*!
- * convert array of floats to chars with rounding and saturation.
- */
-GR_CORE_API void gri_float_to_char (const float *in, char *out, int nsamples);
-
-#endif /* INCLUDED_GRI_FLOAT_TO_CHAR_H */
diff --git a/gnuradio-core/src/lib/general/gri_float_to_int.cc b/gnuradio-core/src/lib/general/gri_float_to_int.cc
deleted file mode 100644
index 525ea675d2..0000000000
--- a/gnuradio-core/src/lib/general/gri_float_to_int.cc
+++ /dev/null
@@ -1,47 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#define _ISOC9X_SOURCE
-#include <gri_float_to_int.h>
-#include <math.h>
-#include <stdint.h>
-
-static const int64_t MAX_INT = 2147483647; // (2^31)-1
-static const int64_t MIN_INT = -2147483647; // -(2^31)-1
-
-
-void
-gri_float_to_int (const float *in, int *out, float scale, int nsamples)
-{
- for (int i = 0; i < nsamples; i++){
- int64_t r = llrintf(scale * in[i]);
- if (r < MIN_INT)
- r = MIN_INT;
- else if (r > MAX_INT)
- r = MAX_INT;
- out[i] = static_cast<int>(r);
- }
-}
diff --git a/gnuradio-core/src/lib/general/gri_float_to_int.h b/gnuradio-core/src/lib/general/gri_float_to_int.h
deleted file mode 100644
index 84f72a420d..0000000000
--- a/gnuradio-core/src/lib/general/gri_float_to_int.h
+++ /dev/null
@@ -1,33 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifndef INCLUDED_GRI_FLOAT_TO_INT_H
-#define INCLUDED_GRI_FLOAT_TO_INT_H
-
-#include <gr_core_api.h>
-
-/*!
- * convert array of floats to int with rounding and saturation.
- */
-GR_CORE_API void gri_float_to_int (const float *in, int *out, float scale, int nsamples);
-
-#endif /* INCLUDED_GRI_FLOAT_TO_INT_H */
diff --git a/gnuradio-core/src/lib/general/gri_float_to_short.cc b/gnuradio-core/src/lib/general/gri_float_to_short.cc
deleted file mode 100644
index 4508e37a7d..0000000000
--- a/gnuradio-core/src/lib/general/gri_float_to_short.cc
+++ /dev/null
@@ -1,46 +0,0 @@
-/* -*- 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.
- */
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#define _ISOC9X_SOURCE
-#include <gri_float_to_short.h>
-#include <math.h>
-
-static const int MIN_SHORT = -32768;
-static const int MAX_SHORT = 32767;
-
-
-void
-gri_float_to_short (const float *in, short *out, int nsamples)
-{
- for (int i = 0; i < nsamples; i++){
- long int r = (long int) rint (in[i]);
- if (r < MIN_SHORT)
- r = MIN_SHORT;
- else if (r > MAX_SHORT)
- r = MAX_SHORT;
- out[i] = r;
- }
-}
diff --git a/gnuradio-core/src/lib/general/gri_float_to_short.h b/gnuradio-core/src/lib/general/gri_float_to_short.h
deleted file mode 100644
index b9cdf685be..0000000000
--- a/gnuradio-core/src/lib/general/gri_float_to_short.h
+++ /dev/null
@@ -1,33 +0,0 @@
-/* -*- 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.
- */
-
-#ifndef INCLUDED_GRI_FLOAT_TO_SHORT_H
-#define INCLUDED_GRI_FLOAT_TO_SHORT_H
-
-#include <gr_core_api.h>
-
-/*!
- * convert array of floats to shorts with rounding and saturation.
- */
-GR_CORE_API void gri_float_to_short (const float *in, short *out, int nsamples);
-
-#endif /* INCLUDED_GRI_FLOAT_TO_SHORT_H */
diff --git a/gnuradio-core/src/lib/general/gri_float_to_uchar.cc b/gnuradio-core/src/lib/general/gri_float_to_uchar.cc
deleted file mode 100644
index 9ea42a31b5..0000000000
--- a/gnuradio-core/src/lib/general/gri_float_to_uchar.cc
+++ /dev/null
@@ -1,46 +0,0 @@
-/* -*- 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.
- */
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#define _ISOC9X_SOURCE
-#include <gri_float_to_uchar.h>
-#include <math.h>
-
-static const int MIN_UCHAR = 0;
-static const int MAX_UCHAR = 255;
-
-
-void
-gri_float_to_uchar (const float *in, unsigned char *out, int nsamples)
-{
- for (int i = 0; i < nsamples; i++){
- long int r = (long int) rint (in[i]);
- if (r < MIN_UCHAR)
- r = MIN_UCHAR;
- else if (r > MAX_UCHAR)
- r = MAX_UCHAR;
- out[i] = r;
- }
-}
diff --git a/gnuradio-core/src/lib/general/gri_float_to_uchar.h b/gnuradio-core/src/lib/general/gri_float_to_uchar.h
deleted file mode 100644
index e24b1973fd..0000000000
--- a/gnuradio-core/src/lib/general/gri_float_to_uchar.h
+++ /dev/null
@@ -1,33 +0,0 @@
-/* -*- 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.
- */
-
-#ifndef INCLUDED_GRI_FLOAT_TO_UCHAR_H
-#define INCLUDED_GRI_FLOAT_TO_UCHAR_H
-
-#include <gr_core_api.h>
-
-/*!
- * convert array of floats to unsigned chars with rounding and saturation.
- */
-GR_CORE_API void gri_float_to_uchar (const float *in, unsigned char *out, int nsamples);
-
-#endif /* INCLUDED_GRI_FLOAT_TO_UCHAR_H */
diff --git a/gnuradio-core/src/lib/general/gri_int_to_float.cc b/gnuradio-core/src/lib/general/gri_int_to_float.cc
deleted file mode 100644
index 91da08897f..0000000000
--- a/gnuradio-core/src/lib/general/gri_int_to_float.cc
+++ /dev/null
@@ -1,37 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#define _ISOC9X_SOURCE
-#include <gri_int_to_float.h>
-#include <math.h>
-
-void
-gri_int_to_float (const int *in, float *out, int nsamples)
-{
- for (int i = 0; i < nsamples; i++){
- out[i] = static_cast<float>(in[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
deleted file mode 100644
index 4b08b7c6be..0000000000
--- a/gnuradio-core/src/lib/general/gri_int_to_float.h
+++ /dev/null
@@ -1,34 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifndef INCLUDED_GRI_INT_TO_FLOAT_H
-#define INCLUDED_GRI_INT_TO_FLOAT_H
-
-#include <gr_core_api.h>
-
-/*
- * convert array of ints to floats
- */
-GR_CORE_API void gri_int_to_float (const int *in, float *out, int nsamples);
-
-
-#endif /* INCLUDED_GRI_INT_TO_FLOAT_H */
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
deleted file mode 100644
index 7d0af0fc75..0000000000
--- a/gnuradio-core/src/lib/general/gri_interleaved_short_to_complex.cc
+++ /dev/null
@@ -1,39 +0,0 @@
-/* -*- 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.
- */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <gri_interleaved_short_to_complex.h>
-#include <assert.h>
-
-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
deleted file mode 100644
index 8d8a0d16ef..0000000000
--- a/gnuradio-core/src/lib/general/gri_interleaved_short_to_complex.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/* -*- 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.
- */
-
-#ifndef INCLUDED_GRI_INTERLEAVED_SHORT_TO_COMPLEX_H
-#define INCLUDED_GRI_INTERLEAVED_SHORT_TO_COMPLEX_H
-
-#include <gr_core_api.h>
-#include <gr_complex.h>
-
-/*
- * convert array of interleaved shorts to complex.
- * the shorts contains real, imaginary, real, imaginary...
- * nsamples is the number of shorts; it must be even.
- */
-GR_CORE_API void gri_interleaved_short_to_complex (const short *in, gr_complex *out, int nsamples);
-
-#endif /* INCLUDED_GRI_INTERLEAVED_SHORT_TO_COMPLEX_H */
-
-
diff --git a/gnuradio-core/src/lib/general/gri_short_to_float.cc b/gnuradio-core/src/lib/general/gri_short_to_float.cc
deleted file mode 100644
index d5d0e786e3..0000000000
--- a/gnuradio-core/src/lib/general/gri_short_to_float.cc
+++ /dev/null
@@ -1,40 +0,0 @@
-/* -*- 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.
- */
-
-#include <gri_short_to_float.h>
-
-void
-gri_short_to_float (const short *in, float *out, int nsamples)
-{
- while (nsamples >= 4){
- out[0] = in[0];
- out[1] = in[1];
- out[2] = in[2];
- out[3] = in[3];
- out += 4;
- in += 4;
- nsamples -= 4;
- }
-
- while (nsamples-- > 0)
- *out++ = *in++;
-}
diff --git a/gnuradio-core/src/lib/general/gri_short_to_float.h b/gnuradio-core/src/lib/general/gri_short_to_float.h
deleted file mode 100644
index 2ffdbb45b8..0000000000
--- a/gnuradio-core/src/lib/general/gri_short_to_float.h
+++ /dev/null
@@ -1,34 +0,0 @@
-/* -*- 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.
- */
-
-#ifndef INCLUDED_GRI_SHORT_TO_FLOAT_H
-#define INCLUDED_GRI_SHORT_TO_FLOAT_H
-
-#include <gr_core_api.h>
-
-/*
- * convert array of shorts to floats
- */
-GR_CORE_API void gri_short_to_float (const short *in, float *out, int nsamples);
-
-
-#endif /* INCLUDED_GRI_SHORT_TO_FLOAT_H */ \ No newline at end of file
diff --git a/gnuradio-core/src/lib/general/gri_uchar_to_float.cc b/gnuradio-core/src/lib/general/gri_uchar_to_float.cc
deleted file mode 100644
index 91f3e7336a..0000000000
--- a/gnuradio-core/src/lib/general/gri_uchar_to_float.cc
+++ /dev/null
@@ -1,40 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#include <gri_uchar_to_float.h>
-
-void
-gri_uchar_to_float (const unsigned char *in, float *out, int nsamples)
-{
- while (nsamples >= 4){
- out[0] = in[0];
- out[1] = in[1];
- out[2] = in[2];
- out[3] = in[3];
- out += 4;
- in += 4;
- nsamples -= 4;
- }
-
- while (nsamples-- > 0)
- *out++ = *in++;
-}
diff --git a/gnuradio-core/src/lib/general/gri_uchar_to_float.h b/gnuradio-core/src/lib/general/gri_uchar_to_float.h
deleted file mode 100644
index 633c5d4ce7..0000000000
--- a/gnuradio-core/src/lib/general/gri_uchar_to_float.h
+++ /dev/null
@@ -1,34 +0,0 @@
-/* -*- 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,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifndef INCLUDED_GRI_UCHAR_TO_FLOAT_H
-#define INCLUDED_GRI_UCHAR_TO_FLOAT_H
-
-#include <gr_core_api.h>
-
-/*
- * convert array of unsigned chars to floats
- */
-GR_CORE_API void gri_uchar_to_float (const unsigned char *in, float *out, int nsamples);
-
-
-#endif /* INCLUDED_GRI_UCHAR_TO_FLOAT_H */ \ No newline at end of file