Skip to content

Add _MM_SHUFFLE macro for x86/x86_64 #475

Closed
@bitshifter

Description

@bitshifter

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 in std::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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions