Skip to content

Commit 0d2a371

Browse files
authored
zstd: sync xxhash with final accepted patch upstream (#707)
* [zstd] sync xxhash with final accepted patch upstream Syncs with cespare/xxhash#51 * asmfmt
1 parent a0c1f61 commit 0d2a371

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

zstd/internal/xxhash/xxhash_arm64.s

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@
4747
round(v1, x1) \
4848
LDP -16(p), (x3, x4) \
4949
round(v2, x2) \
50-
SUB $1, nblocks \
5150
round(v3, x3) \
5251
round(v4, x4) \
52+
SUB $1, nblocks \
5353
CBNZ nblocks, loop \
5454

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

7272
CMP $32, len
73-
CSEL LO, prime5, ZR, h // if len < 32 { h = prime5 } else { h = 0 }
74-
BLO afterLoop
73+
CSEL LT, prime5, ZR, h // if len < 32 { h = prime5 } else { h = 0 }
74+
BLT afterLoop
7575

7676
ADD prime1, prime2, v1
7777
MOVD prime2, v2

0 commit comments

Comments
 (0)