github.com/songzhibin97/go-baseutils@v0.0.2-0.20240302024150-487d8ce9c082/sys/xxhash3/internal/avo/gen.go (about)

     1  //go:build ignore
     2  // +build ignore
     3  
     4  package main
     5  
     6  import "flag"
     7  
     8  var (
     9  	avx = flag.Bool("avx2", false, "avx2")
    10  	sse = flag.Bool("sse2", false, "sse2")
    11  )
    12  
    13  func main() {
    14  	flag.Parse()
    15  
    16  	if *avx {
    17  		AVX2()
    18  	} else if *sse {
    19  		SSE2()
    20  	}
    21  }