Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase sector root performance #151

Merged
merged 1 commit into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions internal/blake2b/blake2b_amd64.s
Original file line number Diff line number Diff line change
Expand Up @@ -1643,4 +1643,6 @@ TEXT ·hashBlocksAVX2(SB), NOSPLIT, $320-24
VMOVDQU Y1, 32(CX)
VMOVDQU Y2, 64(CX)
VMOVDQU Y3, 96(CX)
// Clear the upper YMM registers to avoid performance penalties
VZEROUPPER
RET
2 changes: 2 additions & 0 deletions internal/blake2b/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@ func genHashBlocksAVX2() {
}
}

Comment("Clear the upper YMM registers to avoid performance penalties")
VZEROUPPER()
RET()
}

Expand Down