# compiler: Update defaultFunctionAlignment\(\)/minFunctionAlignment\(\) for more targets\. · gitcafe/zig

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

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

Visibility: public

Requested revision: d2f04e919c833288d5cf1efa97c25bbaae101168

Requested commit: d2f04e919c833288d5cf1efa97c25bbaae101168

Commit: d2f04e919c833288d5cf1efa97c25bbaae101168

Tree: 5baba1c48ae636d1611d23b4b5ed310df7ae7951

Author: Alex Rønne Petersen

Committer: Alex Rønne Petersen

## Message

```
compiler: Update defaultFunctionAlignment()/minFunctionAlignment() for more targets.

defaultFunctionAlignment() can be made more sophisticated over time based on the
CPU model and/or features. For now, I've picked some reasonable values for the
CPUs that are most commonly used in practice. (Values are sourced from LLVM.)

```

## Parents

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

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