Skip to content

Commit

Permalink
zstd: sync xxhash with final accepted patch upstream (#707)
Browse files Browse the repository at this point in the history
* [zstd] sync xxhash with final accepted patch upstream

Syncs with cespare/xxhash#51

* asmfmt
  • Loading branch information
lizthegrey authored Dec 4, 2022
1 parent a0c1f61 commit 0d2a371
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zstd/internal/xxhash/xxhash_arm64.s
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
round(v1, x1) \
LDP -16(p), (x3, x4) \
round(v2, x2) \
SUB $1, nblocks \
round(v3, x3) \
round(v4, x4) \
SUB $1, nblocks \
CBNZ nblocks, loop \

// The primes are repeated here to ensure that they're stored
Expand All @@ -70,8 +70,8 @@ TEXT ·Sum64(SB), NOFRAME+NOSPLIT, $0-32
MOVD primes<>+32(SB), prime5

CMP $32, len
CSEL LO, prime5, ZR, h // if len < 32 { h = prime5 } else { h = 0 }
BLO afterLoop
CSEL LT, prime5, ZR, h // if len < 32 { h = prime5 } else { h = 0 }
BLT afterLoop

ADD prime1, prime2, v1
MOVD prime2, v2
Expand Down

0 comments on commit 0d2a371

Please sign in to comment.