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 _MM_SHUFFLE utility function. #479

Merged
merged 1 commit into from
Jun 18, 2018

Conversation

bitshifter
Copy link
Contributor

Mimics the macro defined in xmmintrin.h defines a _MM_SHUFFLE macro which is use to generate the mask used for _mm_shuffle and other similar instructions. Fixes issue #475.

/// A utility function for creating masks to use with Intel shuffle and permute intrinsics.
#[inline]
#[allow(non_snake_case)]
#[stable(feature = "simd_x86", since = "1.27.0")]
Copy link
Contributor

Choose a reason for hiding this comment

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

This will probably need to be 1.28.0 since 1.27 is in beta already and I don't think this will be back ported to beta.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@gnzlbg gnzlbg merged commit 0eebfde into rust-lang:master Jun 18, 2018
@gnzlbg
Copy link
Contributor

gnzlbg commented Jun 18, 2018

Thanks!

@bitshifter bitshifter deleted the _mm_shuffle_macro branch June 18, 2018 12:12
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