# Implement \`@mod\` and fix bugs with \`divFloor\` for wasm · gitcafe/zig

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

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

Visibility: public

Requested revision: 383e6ffc7b9e22613f4c4b15ebdcd2bf487573d6

Requested commit: 383e6ffc7b9e22613f4c4b15ebdcd2bf487573d6

Commit: 383e6ffc7b9e22613f4c4b15ebdcd2bf487573d6

Tree: 02012e9546a082e0f347d6039c5c5b029fc1bc72

Author: riverbl

Committer: riverbl

## Message

```
Implement `@mod` and fix bugs with `divFloor` for wasm

Implement lowering code for `@mod` on integers in the stage2 wasm backend

Fix invalid wasm being produced for `@divFloor` on signed integers by the stage2 wasm backend

```

## Parents

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

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