Skip to content

Commit

Permalink
internal/subtle: s390x, add quick end checking
Browse files Browse the repository at this point in the history
  • Loading branch information
emmansun authored Aug 28, 2024
1 parent eb36af5 commit a2295b9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/subtle/xor_s390x.s
Original file line number Diff line number Diff line change
@@ -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

#include "textflag.h"
Expand All @@ -25,6 +22,7 @@ loop16b:
CMPBGE R4, $16, loop16b

tail:
CMPBEQ R4, $0, done
CMPBLT R4, $8, less_than8
MOVD 0(R2)(R5*1), R7
MOVD 0(R3)(R5*1), R8
Expand Down

1 comment on commit a2295b9

@emmansun
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.