diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-01-29 14:25:43 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-01-29 14:27:28 -0700 |
| commit | f8e418c47d13189674bdf5f131c19fd811964579 (patch) | |
| tree | 7695c4d6ef606bae5f58c6a978b2f5642b298078 /src/codegen | |
| parent | 5e60ee41272579bc5fef3d95c59180df6ab824c1 (diff) | |
| download | zig-f8e418c47d13189674bdf5f131c19fd811964579.tar.gz zig-f8e418c47d13189674bdf5f131c19fd811964579.zip | |
Sema: improved comptime `%` syntax
* comptime known 0 as a numerator returns comptime 0 independent of
denominator.
* negative numerator and denominator are allowed when the remainder is
zero because that means the modulus would be also zero.
* organize math behavior tests
Diffstat (limited to 'src/codegen')
0 files changed, 0 insertions, 0 deletions
