Function core::arch::riscv32::zip

source ·
pub unsafe fn zip(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 upper/lower halves of the source register into odd/even bits of the destination respectivley.

This instruction places bits in the low half of the source register into the even bit positions of the destination, and bits in the high half of the source register into the odd bit positions of the destination. It is the inverse of the unzip 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.49

Safety

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