mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
Always use 16B alignment for 128-bit ints
This commit is contained in:
parent
7c043e2039
commit
b9dbfa8c33
1 changed files with 5 additions and 5 deletions
|
@ -132,11 +132,11 @@ impl IntWidth {
|
|||
| Architecture::Wasm32 => 8,
|
||||
Architecture::X86_32 => 4,
|
||||
},
|
||||
U128 | I128 => match target_info.architecture {
|
||||
Architecture::Aarch64 => 16,
|
||||
Architecture::X86_64 | Architecture::Arm | Architecture::Wasm32 => 8,
|
||||
Architecture::X86_32 => 4,
|
||||
},
|
||||
U128 | I128 => {
|
||||
// the C ABI defines 128-bit integers to always be 16B aligned,
|
||||
// according to https://reviews.llvm.org/D28990#655487
|
||||
16
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue