3 ms·
> There's no transmute. That crate calls transmute twice, for every single instruction. https://github.com/rust-lang-nursery/stdsimd/blob/master/crates/core_a
by Const-me 7y ago
> There's no transmute.
That crate calls transmute twice, for every single instruction.
https://github.com/rust-lang-nursery/stdsimd/blob/master/crates/core_arch/src/x86/sse2.rs#L94-L103 https://github.com/rust-lang-nursery/stdsimd/blob/master/cra...
https://github.com/rust-lang-nursery/stdsimd/blob/master/crates/core_arch/src/x86/mod.rs#L389-L392 https://github.com/rust-lang-nursery/stdsimd/blob/master/cra...
- adamnemecek 7y agoCheck the actual compiler output.
- steveklabnik 7y agoWhat he’s trying to say is that transmute is also an intrinsic. They correspond to the machine instructions, that’s their entire purpose. That’s also why they’re intrinsics.