fix: row_mask
This commit is contained in:
parent
a9fe57bf38
commit
30b8be208b
@ -354,10 +354,10 @@ find_row_mask(std::vector<set_t> &sets,
|
||||
step_count = cur_pos - base_pos;
|
||||
my_pos = cur_pos.fetch_add(1);
|
||||
}
|
||||
while (row_mask < last_mask && step_count > 0) {
|
||||
while (cur_mask < last_mask && step_count > 0) {
|
||||
--step_count;
|
||||
for (int i = 0; i < step && row_mask < last_mask; ++i) {
|
||||
row_mask = next_bit_permutation(row_mask);
|
||||
for (int i = 0; i < step && cur_mask < last_mask; ++i) {
|
||||
cur_mask = next_bit_permutation(cur_mask);
|
||||
}
|
||||
}
|
||||
// update pos
|
||||
|
Loading…
x
Reference in New Issue
Block a user