feat(bytecode): add signed remainder operation

This commit is contained in:
Alain Zscheile 2022-09-28 15:28:44 +02:00
parent 14c7cbb08b
commit 5f77e04826

View file

@ -237,6 +237,10 @@ impl Process {
Some(x) => x,
None => return Err(Error::DivisionByZero),
},
B::Srem => match (a as i128).checked_rem(b as i128) {
Some(x) => x as u128,
None => return Err(Error::DivisionByZero),
},
});
}
}