Module fuel_vm::arith

source ·
Expand description

Arithmetic functions for the Fuel VM

Functions

Add two numbers. Should be used only in compile-time evaluations so the code won’t compile in case of unexpected overflow.
Add two checked words. Might wrap if overflow
Add two unchecked numbers, returning an error if overflow
Add two unchecked words, returning an error if overflow
Subtract two unchecked numbers, returning an error if overflow
Subtract two unchecked words, returning an error if overflow
Subtract two checked words. Might wrap if overflow