# std.target: mark helper functions inline · gitcafe/zig

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

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

Visibility: public

Requested revision: 88fb4dab81ab67b66600868f9a72892ed77bbb21

Requested commit: 88fb4dab81ab67b66600868f9a72892ed77bbb21

Commit: 88fb4dab81ab67b66600868f9a72892ed77bbb21

Tree: 80a8c9772f26a54509f3b3834f1f21d82f1eb03e

Author: mlugg

Committer: Andrew Kelley

## Message

```
std.target: mark helper functions inline

This was discussed in #16597. It makes sense for most of the functions
in this file to be marked inline: many are simple helper functions so
inlining is likely a strict win, and having the return values be
comptime-known may improve userspace code in some cases by preventing it
from unintentionally checking properties of the target at runtime.

This changeset is somewhat conservative: the functions marked inline are
generally returning booleans or simple integers, and many are simple
one-line checks.

```

## Parents

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

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