diff options
author | 2023-05-29 13:47:11 +0100 | |
---|---|---|
committer | 2023-05-29 13:47:11 +0100 | |
commit | 9ed96bc57083b4261a9e6571d86ec94b1e771e40 (patch) | |
tree | 87b6521816ed4d1242f47a731895cd5a8c6cabc6 /vendor/github.com/minio/sha256-simd/cpuid_other.go | |
parent | [bugfix/chore] Inbox post updates (#1821) (diff) | |
download | gotosocial-9ed96bc57083b4261a9e6571d86ec94b1e771e40.tar.xz |
[chore]: Bump github.com/minio/minio-go/v7 from 7.0.53 to 7.0.55 (#1844)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Diffstat (limited to 'vendor/github.com/minio/sha256-simd/cpuid_other.go')
-rw-r--r-- | vendor/github.com/minio/sha256-simd/cpuid_other.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/vendor/github.com/minio/sha256-simd/cpuid_other.go b/vendor/github.com/minio/sha256-simd/cpuid_other.go index cd9fbf2d9..97af6a195 100644 --- a/vendor/github.com/minio/sha256-simd/cpuid_other.go +++ b/vendor/github.com/minio/sha256-simd/cpuid_other.go @@ -23,6 +23,11 @@ import ( "github.com/klauspost/cpuid/v2" ) +var ( + hasIntelSha = runtime.GOARCH == "amd64" && cpuid.CPU.Supports(cpuid.SHA, cpuid.SSSE3, cpuid.SSE4) + hasAvx512 = cpuid.CPU.Supports(cpuid.AVX512F, cpuid.AVX512DQ, cpuid.AVX512BW, cpuid.AVX512VL) +) + func hasArmSha2() bool { if cpuid.CPU.Has(cpuid.SHA2) { return true @@ -42,5 +47,4 @@ func hasArmSha2() bool { return false } return bytes.Contains(cpuInfo, []byte(sha256Feature)) - } |