Skip to content

Adding bit manipulation intrinsics: #20

@gnzlbg

Description

@gnzlbg

I could add the bit manipulation intrinsics from the bitintr library to this one. I have two questions:

  • IIUC the intrinsics here should be marked with #[target_feature] and be unsafe, that is, they are guaranteed to generate the right CPU instructions on the targets that support a feature. Portability is left to third-party crates, is this correct?
  • Given the organization in this crate, I would be adding the following modules (do they make sense?):
    • x86::{bmi1, bmi2, abm, tbm}
    • arm::{v5, v6, v7, v8}
  • Should the crate be renamed to something else?

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