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

Added .min and .max for integers #260

Merged
merged 2 commits into from
Mar 10, 2022
Merged

Added .min and .max for integers #260

merged 2 commits into from
Mar 10, 2022

Conversation

jorgecarleitao
Copy link
Contributor

This PR adds explicit implementations for min and max for integers.

Closes #247 and rust-lang/rust#94682

LaneCount<LANES>: SupportedLaneCount,
{
/// Returns the lane-wise minimum with other
#[must_use = "method returns a new mask and does not mutate the original value"]
Copy link
Member

Choose a reason for hiding this comment

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

This comment isn't quite right

@calebzulawski
Copy link
Member

Looks good to me other than that small comment

crates/core_simd/src/comparisons.rs Outdated Show resolved Hide resolved
crates/core_simd/src/comparisons.rs Outdated Show resolved Hide resolved
@jorgecarleitao
Copy link
Contributor Author

Thank you both for the review. 🤦 Indeed. Pushed a fix to both of them.

@workingjubilee
Copy link
Member

Thank you!

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.

Confusing difference between float and integer in min and max
4 participants