Skip to content

Commit 3c0d69f

Browse files
committed
blake2s: fix frame size of hashBlocksSSE4
The frame is actually 16 bytes plus alignment, not 0. This fixes the build on Go 1.6. Change-Id: Id3dcf4e1628791ed55a38a819dcf3c11ecc2f488 Reviewed-on: https://go-review.googlesource.com/31711 Run-TryBot: Austin Clements <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Cherry Zhang <[email protected]>
1 parent a9ecc67 commit 3c0d69f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blake2s/blake2s_amd64.s

+1-1
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ TEXT ·hashBlocksSSSE3(SB), 0, $672-48 // frame = 656 + 16 byte alignment
433433
RET
434434

435435
// func hashBlocksSSE4(h *[8]uint32, c *[2]uint32, flag uint32, blocks []byte)
436-
TEXT ·hashBlocksSSE4(SB), 0, $16-48 // frame = 0 + 16 byte alignment
436+
TEXT ·hashBlocksSSE4(SB), 0, $32-48 // frame = 16 + 16 byte alignment
437437
HASH_BLOCKS(h+0(FP), c+8(FP), flag+16(FP), blocks_base+24(FP), blocks_len+32(FP), BLAKE2s_SSE4)
438438
RET
439439

0 commit comments

Comments
 (0)