Skip to content

Commit

Permalink
s390x: reduce one VN call
Browse files Browse the repository at this point in the history
  • Loading branch information
emmansun authored Nov 11, 2024
1 parent f9322d2 commit 81d389d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions base64_s390x.s
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,7 @@ TEXT ·decodeStdAsm(SB),NOSPLIT,$0
loop:
VL (R2), X0
// validate the input
VESRLF $4, X0, X1
VN X1, NIBBLE_MASK, X1 // high nibbles
VESRLB $4, X0, X1 // high nibbles
VN X0, NIBBLE_MASK, X2
VPERM LUT_HI, LUT_HI, X1, X3
VPERM LUT_LO, LUT_LO, X2, X2
Expand Down Expand Up @@ -216,8 +215,7 @@ TEXT ·decodeUrlAsm(SB),NOSPLIT,$0
loop:
VL (R2), X0
// validate the input
VESRLF $4, X0, X1
VN X1, NIBBLE_MASK, X1 // high nibbles
VESRLB $4, X0, X1 // high nibbles
VN X0, NIBBLE_MASK, X2
VPERM LUT_HI, LUT_HI, X1, X3
VPERM LUT_LO, LUT_LO, X2, X2
Expand Down

0 comments on commit 81d389d

Please sign in to comment.