authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-17 02:54:33+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-17 05:23:05+02:00
logedb39e9afce9c77142dd1559cbdfbcecfab250ec
treef904be3d59b7c3209d335b00b57016fad580fb3c
parent13727041dd4c4e02e671e77053bea8d2859a759e
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.Target: merge some Nintendo console prongs in cTypeBitSize()


1 files changed, 2 insertions(+), 17 deletions(-)

lib/std/Target.zig+2-17
......@@ -3481,21 +3481,12 @@ pub fn cTypeBitSize(target: *const Target, c_type: CType) ?u16 {
34813481 .longlong, .ulonglong, .double, .longdouble => 64,
34823482 },
34833483
3484
3485 .@"3ds" => switch (c_type) {
3484 .gba, .@"3ds", .wiiu => switch (c_type) {
34863485 .char => 8,
34873486 .short, .ushort => 16,
34883487 .int, .uint, .float, .long, .ulong => 32,
34893488 .longlong, .ulonglong, .double, .longdouble => 64,
34903489 },
3491
3492 .wiiu => switch (c_type) {
3493 .char => 8,
3494 .short, .ushort => 16,
3495 .int, .uint, .float, .long, .ulong => 32,
3496 .longlong, .ulonglong, .double, .longdouble => 64,
3497 },
3498
34993490 .@"switch" => switch (c_type) {
35003491 .char => 8,
35013492 .short, .ushort => 16,
......@@ -3504,13 +3495,6 @@ pub fn cTypeBitSize(target: *const Target, c_type: CType) ?u16 {
35043495 .longdouble => 128,
35053496 },
35063497
3507 .gba => switch (c_type) {
3508 .char => return 8,
3509 .short, .ushort => return 16,
3510 .int, .uint, .long, .ulong, .float => return 32,
3511 .longlong, .ulonglong, .double, .longdouble => return 64,
3512 },
3513
35143498 .psx => switch (c_type) {
35153499 .char => 8,
35163500 .short, .ushort => 16,
......@@ -3532,6 +3516,7 @@ pub fn cTypeBitSize(target: *const Target, c_type: CType) ?u16 {
35323516 .long, .ulong => 64,
35333517 .longlong, .ulonglong, .double, .longdouble => 64,
35343518 },
3519
35353520 .tios => switch (c_type) {
35363521 .char => 8,
35373522 .short, .ushort => 16,