From 8282d43f2be31e3dbee12faf48c2bccaccea8323 Mon Sep 17 00:00:00 2001 From: eb Date: Mon, 8 Sep 2008 15:37:55 +0000 Subject: added pre_shift method to gri_lfsr git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9533 221aa14e-8319-0410-a670-987f0aec2ac5 --- gnuradio-core/src/lib/general/gri_lfsr.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'gnuradio-core/src/lib/general') diff --git a/gnuradio-core/src/lib/general/gri_lfsr.h b/gnuradio-core/src/lib/general/gri_lfsr.h index c11eb048f..29873698c 100644 --- a/gnuradio-core/src/lib/general/gri_lfsr.h +++ b/gnuradio-core/src/lib/general/gri_lfsr.h @@ -98,6 +98,16 @@ class gri_lfsr return bit; } + /*! + * Rotate the register through x number of bits + * where we are just throwing away the results to get queued up correctly + */ + void pre_shift(int num){ + for(int i=0; i