mirror of
https://github.com/ziglang/zig.git
synced 2026-02-15 05:48:31 +00:00
target.zig adds ps4 and ps5 type sizes.
This commit is contained in:
parent
f5043ad6a3
commit
1253d591be
@ -2236,6 +2236,15 @@ pub const Target = struct {
|
||||
.longdouble => return 128,
|
||||
},
|
||||
|
||||
.ps4, .ps5 => switch (c_type) {
|
||||
.char => return 8,
|
||||
.short, .ushort => return 16,
|
||||
.int, .uint, .float => return 32,
|
||||
.long, .ulong => return 64,
|
||||
.longlong, .ulonglong, .double => return 64,
|
||||
.longdouble => return 80,
|
||||
},
|
||||
|
||||
.cloudabi,
|
||||
.kfreebsd,
|
||||
.lv2,
|
||||
@ -2243,8 +2252,6 @@ pub const Target = struct {
|
||||
.rtems,
|
||||
.nacl,
|
||||
.aix,
|
||||
.ps4,
|
||||
.ps5,
|
||||
.elfiamcu,
|
||||
.mesa3d,
|
||||
.contiki,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user