Skip to main content

## orc_b

# Function orc_b

Source

    pub fn orc_b(rs: usize) -> usize

🔬This is a nightly-only experimental API. (`riscv_ext_intrinsics` #114544)
Available on target feature `zbb` and (RISC-V RV32) and (RISC-V RV32 or RISC-V RV64) 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