# wasm: Implement \`@maximum\` & \`@minimum\` · gitcafe/zig

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

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

Visibility: public

Requested revision: 219fa192c6311c627d4b507c928ebcf2920af9e8

Requested commit: 219fa192c6311c627d4b507c928ebcf2920af9e8

Commit: 219fa192c6311c627d4b507c928ebcf2920af9e8

Tree: de3ef8a882d5b0abe840abaf9bd3a0c096e026ab

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm: Implement `@maximum` & `@minimum`

This implements the `max` and `min` AIR instructions by checking
whether LHS is great/lesser than RHS. If that's the case, we assign
LHS to the result, otherwise assign RHS to it instead.

```

## Parents

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

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