flip the values in the range [firstOfRange,endx)
(firstOfRange, endx int)
| 2472 | |
| 2473 | // flip the values in the range [firstOfRange,endx) |
| 2474 | func (rc *runContainer16) inot(firstOfRange, endx int) container { |
| 2475 | if firstOfRange > endx { |
| 2476 | panic(fmt.Sprintf("invalid %v = endx > firstOfRange = %v", endx, firstOfRange)) |
| 2477 | } |
| 2478 | if firstOfRange > endx { |
| 2479 | return rc |
| 2480 | } |
| 2481 | // TODO: minimize copies, do it all inplace; not() makes a copy. |
| 2482 | rc = rc.Not(firstOfRange, endx) |
| 2483 | return rc.toEfficientContainer() |
| 2484 | } |
| 2485 | |
| 2486 | func (rc *runContainer16) rank(x uint16) int { |
| 2487 | n := len(rc.iv) |
nothing calls this directly
no test coverage detected