# compiler_rt: Fix rounding/NaN handling for f80 add/sub · gitcafe/zig

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

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

Visibility: public

Requested revision: b2950866b18916fe5e6e458b62ec294244fa2c2f

Requested commit: b2950866b18916fe5e6e458b62ec294244fa2c2f

Commit: b2950866b18916fe5e6e458b62ec294244fa2c2f

Tree: b526acac45878f23ce71f8351e5ccc02ab69ee38

Author: Cody Tapscott

Committer: Cody Tapscott

## Message

```
compiler_rt: Fix rounding/NaN handling for f80 add/sub

There were a few minor bugs in the rounding behavior and Inf/NaN
handling for the f80 __addxf3 and __subtf3 functions.

This change updates the original generic implementation to correctly
handle f80 floats, including the explicit integer bit.

```

## Parents

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

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