]> git.gag.com Git - debian/gnuradio/commitdiff
added pre_shift method to gri_lfsr
authoreb <eb@221aa14e-8319-0410-a670-987f0aec2ac5>
Mon, 8 Sep 2008 15:37:55 +0000 (15:37 +0000)
committereb <eb@221aa14e-8319-0410-a670-987f0aec2ac5>
Mon, 8 Sep 2008 15:37:55 +0000 (15:37 +0000)
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9533 221aa14e-8319-0410-a670-987f0aec2ac5

gnuradio-core/src/lib/general/gri_lfsr.h

index c11eb048f8ca1067edc9c7c200e460f96479b2e2..29873698c178c8198bc5be4c59c7eb88c7cae1ac 100644 (file)
@@ -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; }
 };