MCPcopy Index your code
hub / github.com/Workiva/go-datastructures / setLowest

Method setLowest

bitarray/bitarray.go:37–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35}
36
37func (ba *bitArray) setLowest() {
38 for i := uint64(0); i < uint64(len(ba.blocks)); i++ {
39 if ba.blocks[i] == 0 {
40 continue
41 }
42
43 pos := ba.blocks[i].findRightPosition()
44 ba.lowest = (i * s) + pos
45 ba.anyset = true
46 return
47 }
48
49 ba.anyset = false
50 ba.lowest = 0
51 ba.highest = 0
52}
53
54func (ba *bitArray) setHighest() {
55 for i := len(ba.blocks) - 1; i >= 0; i-- {

Callers 7

ClearBitMethod · 0.95
complementMethod · 0.95
orDenseWithDenseBitArrayFunction · 0.80

Calls 1

findRightPositionMethod · 0.80

Tested by

no test coverage detected