Commit 5dd3d17c20

Robin Voetter <robin@voetter.nl>
2022-08-06 18:22:30
amdgpu: add amdhsa/amdpal ctype abi sizes
1 parent 0b47e69
Changed files (1)
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,