# std: Fix complex ldexp implementation · gitcafe/zig

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

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

Visibility: public

Requested revision: 5c9eb94a2b22162758643c396d5e2cad4b764c09

Requested commit: 5c9eb94a2b22162758643c396d5e2cad4b764c09

Commit: 5c9eb94a2b22162758643c396d5e2cad4b764c09

Tree: 39bf8bcae21e60bcf4f18d69921252557aeeb36c

Author: LemonBoy

Committer: Andrew Kelley

## Message

```
std: Fix complex ldexp implementation

Two bugs in the implementation ported from musl made all the complex
functions relying on ldexp return incorrect results in some cases.

Spotted in #9047

```

## Parents

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

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