introduce bitloops
This commit is contained in:
@@ -250,7 +250,7 @@ public final class Masker {
|
||||
}
|
||||
if ((bitCount(rLo) + bitCount(rHi)) < MIN_LEN) penalty += 8000;
|
||||
int wordLen = bitCount(rLo) + bitCount(rHi);
|
||||
if (wordLen > 5) penalty += (wordLen - 5) * 1000L;
|
||||
if (wordLen > 6) penalty += (wordLen - 6) * 1000L;
|
||||
} else penalty += 25000;
|
||||
}
|
||||
for (long bits = hi_cl; bits != X; bits &= bits - 1) {
|
||||
@@ -294,7 +294,7 @@ public final class Masker {
|
||||
}
|
||||
if ((bitCount(rLo) + bitCount(rHi)) < MIN_LEN) penalty += 8000;
|
||||
int wordLen = bitCount(rLo) + bitCount(rHi);
|
||||
if (wordLen > 5) penalty += (wordLen - 5) * 1000L;
|
||||
if (wordLen > 6) penalty += (wordLen - 6) * 1000L;
|
||||
} else penalty += 25000;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user