(lanes)
| 5717 | return lanes & -lanes; |
| 5718 | } |
| 5719 | function pickArbitraryLane(lanes) { |
| 5720 | // This wrapper function gets inlined. Only exists so to communicate that it |
| 5721 | // doesn't matter which bit is selected; you can pick any bit without |
| 5722 | // affecting the algorithms where its used. Here I'm using |
| 5723 | // getHighestPriorityLane because it requires the fewest operations. |
| 5724 | return getHighestPriorityLane(lanes); |
| 5725 | } |
| 5726 | |
| 5727 | function pickArbitraryLaneIndex(lanes) { |
| 5728 | return 31 - clz32(lanes); |
no test coverage detected
searching dependent graphs…