# spirv: div, rem, intcast, some strange integer masking · gitcafe/zig

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

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

Visibility: public

Requested revision: 8608d6e23573a6d7d4d1ce92bf461b035970c592

Requested commit: 8608d6e23573a6d7d4d1ce92bf461b035970c592

Commit: 8608d6e23573a6d7d4d1ce92bf461b035970c592

Tree: e0586808156fc6340a63d354c76a1b2952eddf5a

Author: Robin Voetter

Committer: Robin Voetter

## Message

```
spirv: div, rem, intcast, some strange integer masking

Implements the div-family and intcast AIR instructions, and starts
implementing a mechanism for masking the value of 'strange' integers
before they are used in an operation that does not hold under modulo.

```

## Parents

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

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