# std: Improve spinloop hint · gitcafe/zig

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

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

Visibility: public

Requested revision: 807bb7c03fc98e3792ece7e0573e226727c18129

Requested commit: 807bb7c03fc98e3792ece7e0573e226727c18129

Commit: 807bb7c03fc98e3792ece7e0573e226727c18129

Tree: 91563f5b460b932576cc754feb51ad4fa5147bc8

Author: LemonBoy

Committer: LemonBoy

## Message

```
std: Improve spinloop hint

* Add a yield pattern for PowerPC64
* Fix compile error on pre-v6 ARM targets
* Use isb instead of yield on AArch64 to give the CPU a chance to enter
  low-power states.
* Make the hint an inline function, the call overhead can be avoided.

```

## Parents

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

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