Skip to content

Conversation

hebasto
Copy link
Owner

@hebasto hebasto commented Jul 18, 2024

This PR ports bitcoin#28893. All commits from there are picked here to avoid conflicts and CI failures.

hebasto added 3 commits July 18, 2024 18:26
This change uses the `_mm_blend_epi16` SSE4.1 function used in our code
and fixes false-positive cases, for example, when CXXFLAGS="-mno-sse4.1"
provided.
The code in `sha_x86_shani.cpp` uses the `_mm_blend_epi16` function from
the SSE4.1 instruction set. However, it is possible that SHA-NI is
enabled even when SSE4.1 is disabled.

This changes avoid compilation errors in such a condition.
@hebasto
Copy link
Owner Author

hebasto commented Jul 18, 2024

Friendly ping @theuni @fanquake :)

Copy link

@theuni theuni left a comment

Choose a reason for hiding this comment

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

utACK 07e7fdc

@theuni
Copy link

theuni commented Jul 18, 2024

This looks right, but can't really test until sha2 optims are fixed :)

@hebasto hebasto merged commit 9b4aa92 into cmake-staging Jul 18, 2024
38 of 40 checks passed
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.

2 participants