mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-19 13:53:02 -06:00
[chore] Update gin to v1.9.0 (#1553)
This commit is contained in:
parent
689a10fe17
commit
ecdc8379fa
347 changed files with 166814 additions and 3671 deletions
17
vendor/github.com/chenzhuoyu/base64x/cpuid.go
generated
vendored
Normal file
17
vendor/github.com/chenzhuoyu/base64x/cpuid.go
generated
vendored
Normal 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))
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue