diff options
author | eb | 2008-09-08 15:37:55 +0000 |
---|---|---|
committer | eb | 2008-09-08 15:37:55 +0000 |
commit | 8282d43f2be31e3dbee12faf48c2bccaccea8323 (patch) | |
tree | cbc42ad022989065aed5820b23e0897ca3f02ac0 /gnuradio-core/src | |
parent | 231f1bcb9aa9f431a61869c9f2c5b6194b4768b9 (diff) | |
download | gnuradio-8282d43f2be31e3dbee12faf48c2bccaccea8323.tar.gz gnuradio-8282d43f2be31e3dbee12faf48c2bccaccea8323.tar.bz2 gnuradio-8282d43f2be31e3dbee12faf48c2bccaccea8323.zip |
added pre_shift method to gri_lfsr
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9533 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-core/src')
-rw-r--r-- | gnuradio-core/src/lib/general/gri_lfsr.h | 10 |
1 files changed, 10 insertions, 0 deletions
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<num; i++){ + next_bit(); + } + } + int mask() const { return d_mask; } }; |