# zig libc: acosf: fix fp exceptions · gitcafe/zig

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

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

Visibility: public

Requested revision: 004872baec3fc71236ee6503a6e0885a4bae7dd0

Requested commit: 004872baec3fc71236ee6503a6e0885a4bae7dd0

Commit: 004872baec3fc71236ee6503a6e0885a4bae7dd0

Tree: aae7c591afd02265e8d23443089a0992f4fd311c

Author: kj4tmp@gmail.com

Committer: Andrew Kelley

## Message

```
zig libc: acosf: fix fp exceptions

some fp exceptions are prohibited by zig test-libc (libc-test).
Promoting to f64 prevents vectorization of some floating point
divisions. The vectorization has unused lanes which contain zero. On
division the lanes containing zero are divided and trigger the INVALID
fp flags.

```

## Parents

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

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