mirror of
https://github.com/aicodix/code.git
synced 2026-04-27 14:30:36 +00:00
added length() method
This commit is contained in:
parent
1188defd08
commit
7f0bdda536
1 changed files with 5 additions and 1 deletions
6
mls.hh
6
mls.hh
|
|
@ -26,10 +26,14 @@ public:
|
|||
{
|
||||
reg = r;
|
||||
}
|
||||
int length()
|
||||
{
|
||||
return hibit(poly) - 1;
|
||||
}
|
||||
bool bad(int r = 1)
|
||||
{
|
||||
reg = r;
|
||||
int len = hibit(poly) - 1;
|
||||
int len = length();
|
||||
for (int i = 1; i < len; ++i) {
|
||||
(*this)();
|
||||
if (reg == r)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue