| author | |
| committer | |
| log | a1d3e567635e79e0fbd8d56225d5098bc6cb8bbb |
| tree | 092a7ac2fcfab0e0cf4deebccdc213ab2e7f4377 |
| parent | 606d011acf8c2a75ea1485174c2c1d24a612c86b |
| signature |
This value was correct for the old SPIR, but not for SPIR-V.1 files changed, 1 insertions(+), 3 deletions(-)
lib/std/Target.zig+1-3| ... | ... | @@ -2264,9 +2264,7 @@ pub fn c_type_bit_size(target: Target, c_type: CType) u16 { |
| 2264 | 2264 | .short, .ushort => return 16, |
| 2265 | 2265 | .int, .uint, .float => return 32, |
| 2266 | 2266 | .long, .ulong, .longlong, .ulonglong, .double => return 64, |
| 2267 | // Note: The OpenCL specification does not guarantee a particular size for long double, | |
| 2268 | // but clang uses 128 bits. | |
| 2269 | .longdouble => return 128, | |
| 2267 | .longdouble => return 64, | |
| 2270 | 2268 | }, |
| 2271 | 2269 | |
| 2272 | 2270 | .ps4, .ps5 => switch (c_type) { |