Skip to main content

SrawEmitter

Trait SrawEmitter 

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

Shift right arithmetic word

Arithmetic shift the 32-bit value in rs1 right by the value in the lower 5 bits of rs2, and store the sign-extended result in rd.

§Forms

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

§Arguments

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

Required Methods§

Source

fn sraw(&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§