rust-lang / miri

An interpreter for Rust's mid-level intermediate representation
Apache License 2.0
4.13k stars 318 forks source link

add the `pext` and `pdep` intrinsics #3676

Closed folkertdev closed 1 week ago

folkertdev commented 1 week ago

Adds support for parallel bit extraction and deposition.

These are useful in low-level parsing code.

Wikipedia has an explanation of what these do.

folkertdev commented 1 week ago

whoops, https://github.com/rust-lang/miri/pull/3674 exists

RalfJung commented 1 week ago

Ah, that is an unfortunate coincidence that you both wrote the same PR at the same time...

If you could take a look at the other PR, some help with reviewing is always appreciated. :)