[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Galois-form LFSR now in trunk (r4613)
From: |
Johnathan Corgan |
Subject: |
Re: [Discuss-gnuradio] Galois-form LFSR now in trunk (r4613) |
Date: |
Fri, 23 Feb 2007 12:10:17 -0800 |
User-agent: |
Thunderbird 1.5.0.9 (X11/20070103) |
Trond Danielsen wrote:
> Is this correct?
> - - - - - - - - -
> gr_glfsr_source_b::gr_glfsr_source_b(int degree, bool repeat, int
> mask, int seed)
> : gr_sync_block ("glfsr_source_b",
> gr_make_io_signature (0, 0, 0),
> gr_make_io_signature (1, 1, sizeof(unsigned char))),
> d_repeat(repeat),
> d_index(0)
> {
> if (degree < 1 || degree > 32)
> throw std::runtime_error("gr_glfsr_source_b: degree must be
> between 1 and 32 inclusive");
> d_length = (int)(1ULL << degree)-1;
> ^
> - - - - -
Not sure I understand what you're questioning, the formatting is messed
up. But now that I stare at it, I think I misplaced a parenthesis; the
-1 should be inside.
--
Johnathan Corgan
Corgan Enterprises LLC
http://corganenterprises.com