Skip to main content

BextEmitter

Trait BextEmitter 

Source
pub trait BextEmitter<T0, T1, T2> {
    // Required method
    fn bext(&mut self, rd: T0, rs1: T1, rs2: T2);
}
Expand description

Single-Bit extract (Register)

This instruction returns a single bit extracted from rs1 at the index specified in rs2. The index is read from the lower log2(XLEN) bits of rs2.

§Forms

Assembly: bext xd, xs1, xs2 Rust: bext(rd, rs1, rs2)

§Arguments

  • rd — Destination register.
  • rs1 — Source register.
  • rs2 — Source register.

Required Methods§

Source

fn bext(&mut self, rd: T0, rs1: T1, rs2: T2)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§