mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-26 04:06:18 +08:00
internal/subtle: s390x, add quick end checking
This commit is contained in:
parent
eb36af59e5
commit
a2295b993d
@ -1,6 +1,3 @@
|
|||||||
// The original code (non-vector) is ported from Golang
|
|
||||||
// https://github.com/golang/go/blob/master/src/crypto/aes/ctr_s390x.go
|
|
||||||
|
|
||||||
//go:build !purego
|
//go:build !purego
|
||||||
|
|
||||||
#include "textflag.h"
|
#include "textflag.h"
|
||||||
@ -25,6 +22,7 @@ loop16b:
|
|||||||
CMPBGE R4, $16, loop16b
|
CMPBGE R4, $16, loop16b
|
||||||
|
|
||||||
tail:
|
tail:
|
||||||
|
CMPBEQ R4, $0, done
|
||||||
CMPBLT R4, $8, less_than8
|
CMPBLT R4, $8, less_than8
|
||||||
MOVD 0(R2)(R5*1), R7
|
MOVD 0(R2)(R5*1), R7
|
||||||
MOVD 0(R3)(R5*1), R8
|
MOVD 0(R3)(R5*1), R8
|
||||||
|
Loading…
x
Reference in New Issue
Block a user