Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
gaissmai committed Dec 20, 2024
1 parent c9c06ea commit f64c8ac
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions internal/bitset/bitset.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ import "math/bits"
type BitSet []uint64

// xIdx calculates the index of i in a []uint64
func wIdx(i uint) int {
return int(i >> 6) // (i / 64) but faster
}
// func wIdx(i uint) int {
// return int(i >> 6) // like (i / 64) but faster
// }

// bIdx calculates the index of i in a `uint64`
func bIdx(i uint) uint {
return i & 63 // (i % 64) but faster
}
// func bIdx(i uint) uint {
// return i & 63 // like (i % 64) but faster
// }

// Set bit i to 1, the capacity of the bitset is increased accordingly.
func (b BitSet) Set(i uint) BitSet {
Expand Down

0 comments on commit f64c8ac

Please sign in to comment.