# wasm: Implement float_to_int · gitcafe/zig

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

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

Visibility: public

Requested revision: e7b7088056d55744694c304f95308ba6e1965455

Requested commit: e7b7088056d55744694c304f95308ba6e1965455

Commit: e7b7088056d55744694c304f95308ba6e1965455

Tree: dc5e34f2cb6a6d1da9738fe039f2cb0e5668f32a

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm: Implement float_to_int

- This implements the float_to_int AIR instruction.
- Lowering a decl_ref to a slice was previously assumed to contain a pointer
to a slice, rather than an array. This is now fixed, making `@src()` work as well.
- Some preliminary work on 128bit integers have been done to find out what needs to be done
to implement 128bit arithmetic.

```

## Parents

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

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