MCPcopy Index your code
hub / github.com/dropbox/godropbox / OrEquals

Method OrEquals

container/bitarray/bitarray.go:196–207  ·  view source on GitHub ↗
(b2 *BitArray)

Source from the content-addressed store, hash-verified

194}
195
196func (b *BitArray) OrEquals(b2 *BitArray) {
197 var n int
198 if b.n <= b2.n {
199 n = b.n
200 } else {
201 n = b2.n
202 }
203 endIdx := size(n) // Note the trailing zeroes don't matter.
204 for idx := 0; idx < endIdx; idx++ {
205 b.vs[idx] |= b2.vs[idx]
206 }
207}

Callers 1

TestOrEqualsFunction · 0.80

Calls 1

sizeFunction · 0.85

Tested by 1

TestOrEqualsFunction · 0.64