Skip to content

Commit 1253d59

Browse files
dstavilaandrewrk
authored andcommitted
target.zig adds ps4 and ps5 type sizes.
1 parent f5043ad commit 1253d59

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

lib/std/target.zig

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2236,15 +2236,22 @@ pub const Target = struct {
22362236
.longdouble => return 128,
22372237
},
22382238

2239+
.ps4, .ps5 => switch (c_type) {
2240+
.char => return 8,
2241+
.short, .ushort => return 16,
2242+
.int, .uint, .float => return 32,
2243+
.long, .ulong => return 64,
2244+
.longlong, .ulonglong, .double => return 64,
2245+
.longdouble => return 80,
2246+
},
2247+
22392248
.cloudabi,
22402249
.kfreebsd,
22412250
.lv2,
22422251
.zos,
22432252
.rtems,
22442253
.nacl,
22452254
.aix,
2246-
.ps4,
2247-
.ps5,
22482255
.elfiamcu,
22492256
.mesa3d,
22502257
.contiki,

0 commit comments

Comments
 (0)