Support 128-bit integers i128 u128

This commit is contained in:
gingerBill
2019-05-28 20:27:45 +01:00
parent 2b080dbbc2
commit 3d2279fba0
10 changed files with 582 additions and 51 deletions

View File

@@ -946,7 +946,22 @@ deferred_procedure_associations :: proc() {
}
main :: proc() {
when true {
x: u128 = 1233456453347654617;
y: u128 = 19;
z := x * y;
w := z / 120;
assert(z == 23435672613605437723);
// assert(w == 195297271780045314);
fmt.println(x);
fmt.println(y);
fmt.println(z, u128(23435672613605437723));
fmt.println(w, u128(195297271780045314));
fmt.println(x % 33774564533476546);
when false {
general_stuff();
union_type();
parametric_polymorphism();