# update maxIntAlignment for x86 to 16 · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/200e06b2399d605c8d183e55649e39ba2c6b56f6)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 200e06b2399d605c8d183e55649e39ba2c6b56f6

Requested commit: 200e06b2399d605c8d183e55649e39ba2c6b56f6

Commit: 200e06b2399d605c8d183e55649e39ba2c6b56f6

Tree: 9bdd2acf67740b9de522545abb8684e602181d22

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
update maxIntAlignment for x86 to 16

LLVMABIAlignmentOfType(i128) reports 16 on this target, however the C
ABI uses align(4).

Clang in LLVM 17 does this:

%struct.foo = type { i32, i128 }

Clang in LLVM 18 does this:

%struct.foo = type <{ i32, i128 }>

Clang is working around the 16-byte alignment to use align(4) for the C
ABI by making the LLVM struct packed.

```

## Parents

- [927f24a6ff4af55f79df54c392b906413eae1459](https://git.cafe/gitcafe/zig/commit/927f24a6ff4af55f79df54c392b906413eae1459?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/200e06b2399d605c8d183e55649e39ba2c6b56f6?format=markdown)
