Skip to main content

add

Function add 

Source
pub const fn add(a: u64, b: u64) -> Result<u64, Exception>
Expand description

ADD — 32-bit signed add, traps on overflow.

§Errors

Exception::Overflow when the signed 32-bit addition overflows. The register is left unmodified in that case (the trap precedes the write-back).