MCPcopy Create free account
hub / github.com/AdRoll/baker / clearBit

Method clearBit

pkg/buffercache/bitmap.go:48–53  ·  view source on GitHub ↗

clearBit clears bit i (0-based, starting from LSB)

(i int)

Source from the content-addressed store, hash-verified

46
47// clearBit clears bit i (0-based, starting from LSB)
48func (bm *bitmap) clearBit(i int) {
49 index := i / 64
50 bit := i % 64
51
52 (*bm)[index] &= ^(1 << bit)
53}

Callers 2

moveToHotCacheMethod · 0.80
Test_bitmap_clearBitFunction · 0.80

Calls

no outgoing calls

Tested by 1

Test_bitmap_clearBitFunction · 0.64