diff --git a/internal/encryption/t544/cpuid_amd64.go b/internal/encryption/t544/cpuid_amd64.go deleted file mode 100644 index a8e21a9..0000000 --- a/internal/encryption/t544/cpuid_amd64.go +++ /dev/null @@ -1,10 +0,0 @@ -//go:build amd64 - -package t544 - -func cpuid(op uint32) (eax, ebx, ecx, edx uint32) - -var canusesse2 = func() bool { - _, _, _, d := cpuid(1) - return d&(1<<26) > 0 -}() diff --git a/internal/encryption/t544/cpuid_amd64.s b/internal/encryption/t544/cpuid_amd64.s deleted file mode 100644 index 98f50a2..0000000 --- a/internal/encryption/t544/cpuid_amd64.s +++ /dev/null @@ -1,15 +0,0 @@ -//go:build amd64 -// +build amd64 - -// Copyright (c) 2015 Klaus Post, released under MIT License. See LICENSE file. - -// func cpuid(op uint32) (eax, ebx, ecx, edx uint32) -TEXT ·cpuid(SB), 7, $0 - XORQ CX, CX - MOVL op+0(FP), AX - CPUID - MOVL AX, eax+8(FP) - MOVL BX, ebx+12(FP) - MOVL CX, ecx+16(FP) - MOVL DX, edx+20(FP) - RET diff --git a/internal/encryption/t544/t544.go b/internal/encryption/t544/t544.go index 9cb99f1..321fcb1 100644 --- a/internal/encryption/t544/t544.go +++ b/internal/encryption/t544/t544.go @@ -24,10 +24,8 @@ var ( ) func init() { - if canusesse2 { - encryption.T544Signer["8.9.35.10440"] = sign - encryption.T544Signer["8.9.38.10545"] = sign - } + encryption.T544Signer["8.9.35.10440"] = sign + encryption.T544Signer["8.9.38.10545"] = sign } // sign t544 algorithm