Skip to main content

RemEmitter

Trait RemEmitter 

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

Signed remainder

Calculate the remainder of signed division of rs1 by rs2, and store the result in rd.

If the value in register rs2 is zero, write the value in rs1 into rd;

If the result of the division overflows, write zero into rd;

§Forms

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

§Arguments

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

Required Methods§

Source

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