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

Divide by 32 on HashByteSlice #16

Merged
merged 3 commits into from
Jan 29, 2024
Merged

Divide by 32 on HashByteSlice #16

merged 3 commits into from
Jan 29, 2024

Conversation

potuz
Copy link
Collaborator

@potuz potuz commented Jan 29, 2024

On HashByteSlice we multiply by 32 instead of dividing the length of the slices.

Use also unsafe as reflect is deprecated

Also check for CPU support in HashChunks that is exported.

fixes prysmaticlabs/prysm#13485

potuz added 2 commits January 29, 2024 11:59
On HashByteSlice we multiply by 32 instead of dividing the length of the
slices.

Use also unsafe as reflect is deprecated
Copy link
Member

@prestonvanloon prestonvanloon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add regression test

Copy link
Member

@prestonvanloon prestonvanloon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed offline that the regression test would be CPU dependent and is not feasible to implement a test

@potuz potuz merged commit f61e0ca into main Jan 29, 2024
4 checks passed
@delete-merged-branch delete-merged-branch bot deleted the divide branch January 29, 2024 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

prysm 4.2.0 shuts down with an error "SIGILL: illegal instruction"
4 participants