pub trait CSubEmitter<T0, T1> {
// Required method
fn c_sub(&mut self, rd: T0, rs2: T1);
}Expand description
Subtract
Subtract the value in rs2 from rd, and store the result in rd.
The rd and rs2 register indexes should be used as rd+8 and rs2+8 (registers x8-x15).
C.SUB expands into sub rd, rd, rs2.
§Forms
Assembly: c.sub xd, rs2
Rust: c_sub(rd, rs2)
§Arguments
rd— Destination/source register.rs2— Source register.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".