Path compression for hall pointer structure
| 528 | } |
| 529 | /// Path compression for hall pointer structure |
| 530 | forceinline void |
| 531 | pathset_h(HallInfo hall[], int start, int end, int to) { |
| 532 | int k, l; |
| 533 | for (l=start; (k=l) != end; hall[k].h=to) { |
| 534 | l = hall[k].h; |
| 535 | assert(l != k); |
| 536 | } |
| 537 | } |
| 538 | //@} |
| 539 | |
| 540 | /** |