From 5dd3d17c201f83b853fa1f1bf5e459fb1582c3cf Mon Sep 17 00:00:00 2001 From: Robin Voetter Date: Sat, 6 Aug 2022 18:22:30 +0200 Subject: [PATCH] amdgpu: add amdhsa/amdpal ctype abi sizes --- src/type.zig | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/type.zig b/src/type.zig index ea2b6c30c2..5ac9726727 100644 --- 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,