# std: Fix complex ldexp implementation · gitcafe/zig

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

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

Visibility: public

Requested revision: 44cdafd9d46bed36f08effb99aa0bb7fc2145efa

Requested commit: 44cdafd9d46bed36f08effb99aa0bb7fc2145efa

Commit: 44cdafd9d46bed36f08effb99aa0bb7fc2145efa

Tree: a4c988e36af2aac626644b1c080d652e943bbdc1

Author: LemonBoy

Committer: Veikka Tuominen

## 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

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

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