mirror of
https://github.com/aicodix/code.git
synced 2026-04-27 14:30:36 +00:00
added bad() to test sequence
This commit is contained in:
parent
2a4681aa74
commit
33d34555ae
1 changed files with 12 additions and 0 deletions
12
mls.hh
12
mls.hh
|
|
@ -26,6 +26,18 @@ public:
|
|||
{
|
||||
reg = r;
|
||||
}
|
||||
bool bad(int r = 1)
|
||||
{
|
||||
reg = r;
|
||||
int len = hibit(poly) - 1;
|
||||
for (int i = 1; i < len; ++i) {
|
||||
(*this)();
|
||||
if (reg == r)
|
||||
return true;
|
||||
}
|
||||
(*this)();
|
||||
return reg != r;
|
||||
}
|
||||
bool operator()()
|
||||
{
|
||||
bool fb = reg & test;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue