mirror of
https://github.com/aicodix/modem.git
synced 2026-04-27 14:30:34 +00:00
reserve seed value of zero
This commit is contained in:
parent
4b12986dc0
commit
8067d65477
2 changed files with 4 additions and 0 deletions
|
|
@ -325,6 +325,8 @@ struct Decoder : Common
|
|||
comb = combination();
|
||||
int poly_index = comb & 15;
|
||||
int seed_value = comb >> 4;
|
||||
if (seed_value == 0)
|
||||
std::cerr << "reserved seed value detected" << std::endl;
|
||||
CODE::MLS seq(slm_poly[poly_index], seed_value);
|
||||
for (int i = 0; i < tone_count; ++i)
|
||||
if (i % block_length != meta_off && i % block_length != seed_off)
|
||||
|
|
|
|||
|
|
@ -93,6 +93,8 @@ struct Encoder : public Common
|
|||
hadamard_encoder(seed, seed_data);
|
||||
int poly_index = comb & 15;
|
||||
int seed_value = comb >> 4;
|
||||
if (seed_value == 0)
|
||||
continue;
|
||||
CODE::MLS seq(slm_poly[poly_index], seed_value);
|
||||
for (int i = 0, m = 0, s = 0; i < tone_count; ++i)
|
||||
if (i % block_length == meta_off)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue