diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-09-28 18:55:43 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-09-28 19:19:28 -0700 |
| commit | 54675824449d16029fdf6a1873e78cb8f2147f60 (patch) | |
| tree | a3495ecdbbca9a963f514938f20003f1aeb69b64 /src/stage1/tokenizer.cpp | |
| parent | 71da169c67ad544bd1d4dfc4bfff9fe302e8284d (diff) | |
| download | zig-54675824449d16029fdf6a1873e78cb8f2147f60.tar.gz zig-54675824449d16029fdf6a1873e78cb8f2147f60.zip | |
saturating arithmetic modifications
* Remove the builtins `@addWithSaturation`, `@subWithSaturation`,
`@mulWithSaturation`, and `@shlWithSaturation` now that we have
first-class syntax for saturating arithmetic.
* langref: Clarify the behavior of `@shlExact`.
* Ast: rename `bit_shift_left` to `shl` and `bit_shift_right` to `shr`
for consistency.
* Air: rename to include underscore separator with consistency with
the rest of the ops.
* Air: add shl_exact instruction
* Use non-extended tags for saturating arithmetic, to keep it
simple so that all the arithmetic operations can be done the same
way.
- Sema: unify analyzeArithmetic with analyzeSatArithmetic
- implement comptime `+|`, `-|`, and `*|`
- allow float operands to saturating arithmetic
* `<<|` allows any integer type for the RHS.
* C backend: fix rebase conflicts
* LLVM backend: reduce the amount of branching for arithmetic ops
* zig.h: fix magic number not matching actual size of C integer types
Diffstat (limited to 'src/stage1/tokenizer.cpp')
0 files changed, 0 insertions, 0 deletions
