From: eb Date: Mon, 8 Sep 2008 15:37:55 +0000 (+0000) Subject: added pre_shift method to gri_lfsr X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=8282d43f2be31e3dbee12faf48c2bccaccea8323;p=debian%2Fgnuradio added pre_shift method to gri_lfsr git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9533 221aa14e-8319-0410-a670-987f0aec2ac5 --- diff --git a/gnuradio-core/src/lib/general/gri_lfsr.h b/gnuradio-core/src/lib/general/gri_lfsr.h index c11eb048..29873698 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