bucketStep is the number of buckets to step over in the buckets directory to reach the next different bucket. A bucket occupies 1 or more contiguous entries in the buckets directory specified by the range: [b.index:b.index+bucketStep(m.globalDepth(), b.localDepth)]
(globalDepth, localDepth uint32)
| 880 | // |
| 881 | // [b.index:b.index+bucketStep(m.globalDepth(), b.localDepth)] |
| 882 | func bucketStep(globalDepth, localDepth uint32) uint32 { |
| 883 | const shiftMask = 31 |
| 884 | return uint32(1) << ((globalDepth - localDepth) & shiftMask) |
| 885 | } |
| 886 | |
| 887 | // adjustBucketIndex adjusts the index of a bucket to account for the growth |
| 888 | // of the directory where index was captured at originalGlobalDepth and we're |
no outgoing calls
no test coverage detected
searching dependent graphs…