zig

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

commit 5dd66cd964dba48709a817e86dc004ed703e5ab1 (tree)
parent e6788625209adeeb06d0dde516f0cb8e25e338bf
Author: Alex Rønne Petersen <alex@alexrp.com>
Date:   Tue,  6 Aug 2024 17:02:20 +0200

std.Target: Fix C type alignment calculation for ve.

Diffstat:
Mlib/std/Target.zig | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/std/Target.zig b/lib/std/Target.zig @@ -2345,7 +2345,6 @@ pub fn c_type_alignment(target: Target, c_type: CType) u16 { .xcore, .loongarch32, .kalimba, - .ve, .spu_2, .xtensa, => 4, @@ -2380,6 +2379,7 @@ pub fn c_type_alignment(target: Target, c_type: CType) u16 { .riscv64, .sparc64, .x86_64, + .ve, .wasm32, .wasm64, => 16, @@ -2450,7 +2450,6 @@ pub fn c_type_preferred_alignment(target: Target, c_type: CType) u16 { .xcore, .loongarch32, .kalimba, - .ve, .spu_2, .xtensa, => 4, @@ -2492,6 +2491,7 @@ pub fn c_type_preferred_alignment(target: Target, c_type: CType) u16 { .riscv64, .sparc64, .x86_64, + .ve, .wasm32, .wasm64, => 16,