Add in signed and unsigned mul div, and add a mod

This commit is contained in:
Nathan Braswell
2018-03-12 20:17:26 -04:00
parent ef516891ca
commit 378a81602a
2 changed files with 135 additions and 89 deletions

View File

@@ -267,5 +267,19 @@ obj type (Object) {
}
return false
}
fun is_signed_type(): bool {
match (base) {
base_type::character() return true
base_type::short_int() return true
base_type::integer() return true
base_type::long_int() return true
base_type::ucharacter() return false
base_type::ushort_int() return false
base_type::uinteger() return false
base_type::ulong_int() return false
}
return false
}
}