| 472 | |
| 473 | |
| 474 | forceinline bool |
| 475 | PosSet::in(int p) const { |
| 476 | for (const PosSet* ps = this; ps != nullptr; ps = ps->next) |
| 477 | if (ps->pos == p) { |
| 478 | return true; |
| 479 | } else if (ps->pos < p) { |
| 480 | return false; |
| 481 | } |
| 482 | return false; |
| 483 | } |
| 484 | |
| 485 | forceinline PosSetCmp |
| 486 | PosSet::cmp(PosSet* ps1, PosSet* ps2) { |