合并依赖

This commit is contained in:
2025-12-03 20:04:49 +08:00
parent 9b08975480
commit 16ec3295ce
1346 changed files with 629638 additions and 0 deletions

17
vendor/github.com/chenzhuoyu/base64x/cpuid.go generated vendored Normal file
View File

@@ -0,0 +1,17 @@
package base64x
import (
`fmt`
`os`
`github.com/klauspost/cpuid/v2`
)
func hasAVX2() bool {
switch v := os.Getenv("B64X_MODE"); v {
case "" : fallthrough
case "auto" : return cpuid.CPU.Has(cpuid.AVX2)
case "noavx2" : return false
default : panic(fmt.Sprintf("invalid mode: '%s', should be one of 'auto', 'noavx2'", v))
}
}