-
Notifications
You must be signed in to change notification settings - Fork 290
Add _MM_SHUFFLE macro for x86/x86_64 #475
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
Comments
Thanks for reporting this. Wanna send a PR? Should be pretty easy to implement (check the other macros and |
Will do. |
@gnzlbg it turns out this is not so straight forward. I've added the macro and a test in this commit bitshifter@727bc11 however it seems that coresimd is re-exported via stdsimd, but I do not know how to re-export the macro. I was reminded about binary literals when looking at the tests, which are reasonably readable. Perhaps if this macro issue is not easily solved adding and boolean literal example would help. |
@bitshifter you should add a |
Also, you should call it |
Otherwise it looks good! |
xmmintrin.h
defines a _MM_SHUFFLE macro which is use to generate the mask used for_mm_shuffle
and other similar instructions. https://clang.llvm.org/doxygen/xmmintrin_8h.html#a65a052b655bd49ff3fe128b61847df9f. I could not find this macro instd::arch::x86
, perhaps it is there but doesn't show up in the docs?In any case, if it's missing perhaps it would be good to add it. Creating masks by hand is cryptic and having an equivalent to
_MM_SHUFFLE
would make using the Rust intrinsics more like other languages.The text was updated successfully, but these errors were encountered: