zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 5dd3d17c201f83b853fa1f1bf5e459fb1582c3cf (tree)
parent 0b47e69b7c0aedbc142400305cda86ef58b41656
Author: Robin Voetter <robin@voetter.nl>
Date:   Sat,  6 Aug 2022 18:22:30 +0200

amdgpu: add amdhsa/amdpal ctype abi sizes

Diffstat:
Msrc/type.zig | 9+++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/type.zig b/src/type.zig @@ -6728,6 +6728,13 @@ pub const CType = enum { }, }, + .amdhsa, .amdpal => switch (self) { + .short, .ushort => return 16, + .int, .uint => return 32, + .long, .ulong, .longlong, .ulonglong => return 64, + .longdouble => return 128, + }, + .cloudabi, .kfreebsd, .lv2, @@ -6737,13 +6744,11 @@ pub const CType = enum { .aix, .cuda, .nvcl, - .amdhsa, .ps4, .ps5, .elfiamcu, .mesa3d, .contiki, - .amdpal, .hermit, .hurd, .opencl,