1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-04 19:17:37 +08:00

rf: remove sse2 check

This commit is contained in:
Mrs4s 2023-04-05 01:35:05 +08:00
parent 637d46f282
commit 7b2d1fd573
No known key found for this signature in database
GPG Key ID: 3186E98FA19CE3A7
3 changed files with 2 additions and 29 deletions

View File

@ -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
}()

View File

@ -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

View File

@ -24,10 +24,8 @@ var (
) )
func init() { func init() {
if canusesse2 { encryption.T544Signer["8.9.35.10440"] = sign
encryption.T544Signer["8.9.35.10440"] = sign encryption.T544Signer["8.9.38.10545"] = sign
encryption.T544Signer["8.9.38.10545"] = sign
}
} }
// sign t544 algorithm // sign t544 algorithm