Skip to content

Commit

Permalink
move code around
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Rubin committed Jun 17, 2015
1 parent ff7d2de commit 54327ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions bitset.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,7 @@ func NewBitSet(l uint64) BitSet {
numBlocks := uint64(math.Floor(float64(l)/8)) + 1
return make(BitSet, int(numBlocks))
}

func flipBits(b byte) byte {
return math.MaxUint8 &^ b
}
4 changes: 0 additions & 4 deletions sieve.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,3 @@ type Sieve interface {
func sqrt(val uint64) uint64 {
return uint64(math.Sqrt(float64(val)))
}

func flipBits(b byte) byte {
return math.MaxUint8 &^ b
}

0 comments on commit 54327ac

Please sign in to comment.