Skip to content

Commit

Permalink
Fix arm64 vet issues
Browse files Browse the repository at this point in the history
  • Loading branch information
klauspost committed May 30, 2024
1 parent 8bd3916 commit 0598afb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion s2/decode_arm64.s
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
//
// The d variable is implicitly R_DST - R_DBASE, and len(dst)-d is R_DEND - R_DST.
// The s variable is implicitly R_SRC - R_SBASE, and len(src)-s is R_SEND - R_SRC.
TEXT ·s2Decode(SB), NOSPLIT, $56-64
TEXT ·s2Decode(SB), NOSPLIT, $56-56
// Initialize R_SRC, R_DST and R_DBASE-R_SEND.
MOVD dst_base+0(FP), R_DBASE
MOVD dst_len+8(FP), R_DLEN
Expand Down
8 changes: 4 additions & 4 deletions zstd/internal/xxhash/xxhash_arm64.s
Original file line number Diff line number Diff line change
Expand Up @@ -168,16 +168,16 @@ TEXT ·writeBlocks(SB), NOSPLIT|NOFRAME, $0-40

// Load state. Assume v[1-4] are stored contiguously.
MOVD d+0(FP), digest
LDP 0(digest), (v1, v2)
LDP 16(digest), (v3, v4)
LDP 0(d), (v1, v2)
LDP 16(d), (v3, v4)

LDP b_base+8(FP), (p, n)

blockLoop()

// Store updated state.
STP (v1, v2), 0(digest)
STP (v3, v4), 16(digest)
STP (v1, v2), 0(d)
STP (v3, v4), 16(d)

BIC $31, n
MOVD n, ret+32(FP)
Expand Down

0 comments on commit 0598afb

Please sign in to comment.