Function core::arch::riscv32::unzip

source ·
pub unsafe fn unzip(rs: u32) -> u32
🔬This is a nightly-only experimental API. (stdsimd #48556)
Available on RISC-V RV32 and target feature zbkb only.
Expand description

Place odd and even bits of the source word into upper/lower halves of the destination.

This instruction places the even bits of the source register into the low half of the destination, and the odd bits of the source into the high bits of the destination. It is the inverse of the zip instruction. This instruction is available only on RV32.

Source: RISC-V Cryptography Extensions Volume I: Scalar & Entropy Source Instructions

Version: v1.0.1

Section: 3.45

§Safety

This function is safe to use if the zbkb target feature is present.