add opt that doesn't make anything faster but might allow better opts later

This commit is contained in:
nora 2022-04-15 23:07:51 +02:00
parent 6575e09957
commit c3c24c73fe
7 changed files with 59 additions and 24 deletions

View file

@ -87,6 +87,9 @@ where
Stmt::SetNull => {
*self.elem_mut() = Wrapping(0);
}
Stmt::SetN(n) => {
*self.elem_mut() = Wrapping(n);
}
Stmt::JmpIfZero(pos) => {
if self.elem() == 0 {
self.ip = pos as usize;