mirror of
https://github.com/golang/go
synced 2024-11-24 05:40:15 -07:00
crypto/aes: minor ppc64 assembly naming improvements
doEncryptKeyAsm is tail-called from other assembly routines. Give it a proper prototype so that vet can check it. Adjust one assembly FP reference accordingly. Change-Id: I263fcb0191529214b16e6bd67330fadee492eef4 Reviewed-on: https://go-review.googlesource.com/37305 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
2774085bdc
commit
e51737aea1
@ -439,7 +439,7 @@ TEXT ·decryptBlockAsm(SB),NOSPLIT|NOFRAME,$0
|
|||||||
// Load the arguments inside the registers
|
// Load the arguments inside the registers
|
||||||
MOVD dst+0(FP), BLK_OUT
|
MOVD dst+0(FP), BLK_OUT
|
||||||
MOVD src+8(FP), BLK_INP
|
MOVD src+8(FP), BLK_INP
|
||||||
MOVD enc+16(FP), BLK_KEY
|
MOVD dec+16(FP), BLK_KEY
|
||||||
|
|
||||||
MOVWZ 240(BLK_KEY), BLK_ROUNDS // lwz 6,240(5)
|
MOVWZ 240(BLK_KEY), BLK_ROUNDS // lwz 6,240(5)
|
||||||
MOVD $15, BLK_IDX // li 7,15
|
MOVD $15, BLK_IDX // li 7,15
|
||||||
|
@ -20,7 +20,7 @@ func setDecryptKeyAsm(key *byte, keylen int, dec *uint32) int
|
|||||||
|
|
||||||
//go:noescape
|
//go:noescape
|
||||||
|
|
||||||
func doEncryptKeyAsm()
|
func doEncryptKeyAsm(key *byte, keylen int, dec *uint32) int
|
||||||
|
|
||||||
//go:noescape
|
//go:noescape
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user