blob: 22f44bd48df60f9209c78224100fbc34a20a3544 (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
package commitquery
// hasAnyMarks reports whether one internal node has any requested bit.
func (query *query) hasAnyMarks(idx nodeIndex, bits markBits) bool {
return query.nodes[idx].marks&bits != 0
}
// hasAllMarks reports whether one internal node already has all requested bits.
func (query *query) hasAllMarks(idx nodeIndex, bits markBits) bool {
return query.nodes[idx].marks&bits == bits
}
|