# float\_\*\_ieee597: only swap bytes when targeting different endianness than native · gitcafe/zig

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

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

Visibility: public

Requested revision: 588e8287594803fdc06b6dfc3d7591075b88ff1e

Requested commit: 588e8287594803fdc06b6dfc3d7591075b88ff1e

Commit: 588e8287594803fdc06b6dfc3d7591075b88ff1e

Tree: b19204ab5de32e92eac2c9f8716071a8438c3e27

Author: Koakuma

Committer: Veikka Tuominen

## Message

```
float_*_ieee597: only swap bytes when targeting different endianness than native

float_*_ieee597 functions should fill the buffer with the target endianness,
instead of always filling it in LE ordering.

```

## Parents

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

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