gnzlbg / bitwise

Portable high-level bitwise manipulation algorithms
https://gnzlbg.github.io/bitwise
MIT License
50 stars 9 forks source link

Compile error due to missing instrinsic - fixed by update to bitintr 0.3.0 in Cargo.toml #24

Open apps4uco opened 3 years ago

apps4uco commented 3 years ago

Problem: error: unrecognized platform-specific intrinsic function: x86_bmi_bextr_32 src/x86/intrinsics/bmi/bextr.rs:11:9 | 11 | fn x86_bmi_bextr_32(x: u32, y: u32) -> u32;

Solution: update Cargo.toml to

[dependencies] bitintr = "0.3"

apps4uco commented 2 years ago

Hi there, by the way this also affects builds on Apple Mac Silicon M1 processor. Any chance it can be fixed on crates.io?

apps4uco commented 11 months ago

Hi, just a note for anyone encountering this. The workaround is to change your Cargo.toml adding the following, until the pull request is merged.

[dependencies]
bitwise = "0.2.0"

[patch.crates-io]
bitwise={git="https://github.com/unbrice/bitwise.git"}