diff options
Diffstat (limited to 'src/types.cpp')
| -rw-r--r-- | src/types.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/types.cpp b/src/types.cpp index 83918bc37..68912adbb 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -14,8 +14,6 @@ enum BasicKind { Basic_u32, Basic_i64, Basic_u64, - Basic_i128, - Basic_u128, Basic_rune, @@ -249,8 +247,6 @@ gb_global Type basic_types[] = { {Type_Basic, {Basic_u32, BasicFlag_Integer | BasicFlag_Unsigned, 4, STR_LIT("u32")}}, {Type_Basic, {Basic_i64, BasicFlag_Integer, 8, STR_LIT("i64")}}, {Type_Basic, {Basic_u64, BasicFlag_Integer | BasicFlag_Unsigned, 8, STR_LIT("u64")}}, - {Type_Basic, {Basic_i128, BasicFlag_Integer, 16, STR_LIT("i128")}}, - {Type_Basic, {Basic_u128, BasicFlag_Integer | BasicFlag_Unsigned, 16, STR_LIT("u128")}}, {Type_Basic, {Basic_rune, BasicFlag_Integer | BasicFlag_Rune, 4, STR_LIT("rune")}}, @@ -296,8 +292,6 @@ gb_global Type *t_i32 = &basic_types[Basic_i32]; gb_global Type *t_u32 = &basic_types[Basic_u32]; gb_global Type *t_i64 = &basic_types[Basic_i64]; gb_global Type *t_u64 = &basic_types[Basic_u64]; -gb_global Type *t_i128 = &basic_types[Basic_i128]; -gb_global Type *t_u128 = &basic_types[Basic_u128]; gb_global Type *t_rune = &basic_types[Basic_rune]; @@ -331,7 +325,6 @@ gb_global Type *t_untyped_undef = &basic_types[Basic_UntypedUndef]; gb_global Type *t_u8_ptr = nullptr; gb_global Type *t_int_ptr = nullptr; gb_global Type *t_i64_ptr = nullptr; -gb_global Type *t_i128_ptr = nullptr; gb_global Type *t_f64_ptr = nullptr; gb_global Type *t_u8_slice = nullptr; gb_global Type *t_string_slice = nullptr; @@ -756,12 +749,6 @@ bool is_type_uintptr(Type *t) { } return false; } -bool is_type_i128_or_u128(Type *t) { - if (t->kind == Type_Basic) { - return (t->Basic.kind == Basic_i128) || (t->Basic.kind == Basic_u128); - } - return false; -} bool is_type_rawptr(Type *t) { if (t->kind == Type_Basic) { return t->Basic.kind == Basic_rawptr; @@ -1264,7 +1251,6 @@ Type *default_bit_field_value_type(Type *type) { case 16: return t_u16; case 32: return t_u32; case 64: return t_u64; - case 128: return t_u128; default: GB_PANIC("Too big of a bit size!"); break; } } @@ -1385,7 +1371,6 @@ Type *union_tag_type(gbAllocator a, Type *u) { case 2: return t_u16; case 4: return t_u32; case 8: return t_u64; - case 16: return t_u128; } GB_PANIC("Invalid union_tag_size"); return t_uint; |