github.com/pingcap/badger@v1.5.1-0.20230103063557-828f39b09b6d/surf/bits_amd64.go (about)

     1  // +build amd64
     2  
     3  package surf
     4  
     5  import "github.com/klauspost/cpuid"
     6  
     7  var hasBMI2 = cpuid.CPU.BMI2()
     8  
     9  // go:noescape
    10  func select64(x uint64, k int64) int64