Use simd intrinsics for max and min #1357
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Copied from wasm32 implementaions
stdarch/crates/core_arch/src/wasm32/simd128.rs
Lines 2543 to 2554 in 547e3b0
Affected functions:
sse2:
_mm_max_epi16
_mm_max_epu8
_mm_min_epi16
_mm_min_epu8
sse41:
_mm_max_epi8
_mm_max_epu16
_mm_max_epi32
_mm_max_epu32
_mm_min_epi8
_mm_min_epu16
_mm_min_epi32
_mm_min_epu32
avx2:
_mm256_max_epi16
_mm256_max_epi32
_mm256_max_epi8
_mm256_max_epu16
_mm256_max_epu32
_mm256_max_epu8
_mm256_min_epi16
_mm256_min_epi32
_mm256_min_epi8
_mm256_min_epu16
_mm256_min_epu32
_mm256_min_epu8