core::arch::riscv64

Function orc_b

Source
pub unsafe fn orc_b(rs: usize) -> usize
🔬This is a nightly-only experimental API. (riscv_ext_intrinsics #114544)
Available on RISC-V RV64 and target feature zbb only.
Expand description

Bitwise OR-Combine, byte granule

Combines the bits within every byte through a reciprocal bitwise logical OR. This sets the bits of each byte in the result rd to all zeros if no bit within the respective byte of rs is set, or to all ones if any bit within the respective byte of rs is set.

Source: RISC-V Bit-Manipulation ISA-extensions

Version: v1.0.0

Section: 2.24

§Safety

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