Skip to content

Commit

Permalink
atg. elim unused cpuid checks
Browse files Browse the repository at this point in the history
  • Loading branch information
glycerine committed Dec 21, 2016
1 parent 7b368bf commit a0cbc24
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions ctz.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

package roaring

import (
"github.com/klauspost/cpuid"
)

const deBruijn32 = 0x077CB531

var deBruijn32Lookup = []byte{
Expand All @@ -22,13 +18,6 @@ var deBruijn64Lookup = []byte{
54, 26, 40, 15, 34, 20, 31, 10, 25, 14, 19, 9, 13, 8, 7, 6,
}

var useSSE42 bool

// Detect SSE 4.2 feature.
func init() {
useSSE42 = cpuid.CPU.SSE42()
}

// countTrailingZeros counts the number of zeros
// from the least-significant bit up to the
// first set (1) bit. if x is 0, 64 is returned.
Expand Down

0 comments on commit a0cbc24

Please sign in to comment.