mirror of
https://github.com/golang/go
synced 2024-11-23 10:10:02 -07:00
runtime: fix fallback logic for aeshash on 32/64 bit
We were using the fallback hash unconditionally. Oops. Fixes #37212 Change-Id: Id37d4f5c08806fdda12a3148ba4dbc46676eeb54 Reviewed-on: https://go-review.googlesource.com/c/go/+/219337 Run-TryBot: Keith Randall <khr@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Cherry Zhang <cherryyz@google.com>
This commit is contained in:
parent
363bcd0068
commit
e237df5b53
@ -1244,7 +1244,6 @@ aesloop:
|
||||
TEXT runtime·memhash32(SB),NOSPLIT,$0-24
|
||||
CMPB runtime·useAeshash(SB), $0
|
||||
JEQ noaes
|
||||
JMP runtime·memhash32Fallback(SB)
|
||||
MOVQ p+0(FP), AX // ptr to data
|
||||
MOVQ h+8(FP), X0 // seed
|
||||
PINSRD $2, (AX), X0 // data
|
||||
@ -1260,7 +1259,6 @@ noaes:
|
||||
TEXT runtime·memhash64(SB),NOSPLIT,$0-24
|
||||
CMPB runtime·useAeshash(SB), $0
|
||||
JEQ noaes
|
||||
JMP runtime·memhash64Fallback(SB)
|
||||
MOVQ p+0(FP), AX // ptr to data
|
||||
MOVQ h+8(FP), X0 // seed
|
||||
PINSRQ $1, (AX), X0 // data
|
||||
|
Loading…
Reference in New Issue
Block a user