mirror of
https://github.com/ziglang/zig.git
synced 2025-12-16 03:03:09 +00:00
std.Target: Fix C type alignment calculation for ve.
This commit is contained in:
parent
e678862520
commit
5dd66cd964
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user