mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-05 03:23:49 +08:00
rf: remove sse2 check
This commit is contained in:
parent
637d46f282
commit
7b2d1fd573
@ -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
|
|
||||||
}()
|
|
@ -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
|
|
@ -24,11 +24,9 @@ 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
|
||||||
// special thanks to the anonymous contributor who provided the algorithm
|
// special thanks to the anonymous contributor who provided the algorithm
|
||||||
|
Loading…
x
Reference in New Issue
Block a user