| ... | @@ -7241,8 +7241,7 @@ fn readFile(allocator: *Allocator, filename: []const u8) ![]u8 { | ... | @@ -7241,8 +7241,7 @@ fn readFile(allocator: *Allocator, filename: []const u8) ![]u8 { |
| 7241 | Returns {#syntax#}a + b{#endsyntax#}. The result will be clamped between the type maximum and minimum. | 7241 | Returns {#syntax#}a + b{#endsyntax#}. The result will be clamped between the type maximum and minimum. |
| 7242 | </p> | 7242 | </p> |
| 7243 | <p> | 7243 | <p> |
| 7244 | Once <a href="https://github.com/ziglang/zig/issues/1284">Saturating arithmetic</a>. | 7244 | The syntax {#syntax#}a +| b{#endsyntax#} is equivalent to calling {#syntax#}@addWithSaturation(a, b){#endsyntax#}. |
| 7245 | is completed, the syntax {#syntax#}a +| b{#endsyntax#} will be equivalent to calling {#syntax#}@addWithSaturation(a, b){#endsyntax#}. | | |
| 7246 | </p> | 7245 | </p> |
| 7247 | {#header_close#} | 7246 | {#header_close#} |
| 7248 | {#header_open|@alignCast#} | 7247 | {#header_open|@alignCast#} |
| ... | @@ -8372,8 +8371,7 @@ test "@wasmMemoryGrow" { | ... | @@ -8372,8 +8371,7 @@ test "@wasmMemoryGrow" { |
| 8372 | Returns {#syntax#}a * b{#endsyntax#}. The result will be clamped between the type maximum and minimum. | 8371 | Returns {#syntax#}a * b{#endsyntax#}. The result will be clamped between the type maximum and minimum. |
| 8373 | </p> | 8372 | </p> |
| 8374 | <p> | 8373 | <p> |
| 8375 | Once <a href="https://github.com/ziglang/zig/issues/1284">Saturating arithmetic</a>. | 8374 | The syntax {#syntax#}a *| b{#endsyntax#} is equivalent to calling {#syntax#}@mulWithSaturation(a, b){#endsyntax#}. |
| 8376 | is completed, the syntax {#syntax#}a *| b{#endsyntax#} will be equivalent to calling {#syntax#}@mulWithSaturation(a, b){#endsyntax#}. | | |
| 8377 | </p> | 8375 | </p> |
| 8378 | <p> | 8376 | <p> |
| 8379 | NOTE: Currently there is a bug in the llvm.smul.fix.sat intrinsic which affects {#syntax#}@mulWithSaturation{#endsyntax#} of signed integers. | 8377 | NOTE: Currently there is a bug in the llvm.smul.fix.sat intrinsic which affects {#syntax#}@mulWithSaturation{#endsyntax#} of signed integers. |
| ... | @@ -8629,8 +8627,7 @@ test "@setRuntimeSafety" { | ... | @@ -8629,8 +8627,7 @@ test "@setRuntimeSafety" { |
| 8629 | Returns {#syntax#}a << b{#endsyntax#}. The result will be clamped between type minimum and maximum. | 8627 | Returns {#syntax#}a << b{#endsyntax#}. The result will be clamped between type minimum and maximum. |
| 8630 | </p> | 8628 | </p> |
| 8631 | <p> | 8629 | <p> |
| 8632 | Once <a href="https://github.com/ziglang/zig/issues/1284">Saturating arithmetic</a>. | 8630 | The syntax {#syntax#}a <<| b{#endsyntax#} is equivalent to calling {#syntax#}@shlWithSaturation(a, b){#endsyntax#}. |
| 8633 | is completed, the syntax {#syntax#}a <<| b{#endsyntax#} will be equivalent to calling {#syntax#}@shlWithSaturation(a, b){#endsyntax#}. | | |
| 8634 | </p> | 8631 | </p> |
| 8635 | <p> | 8632 | <p> |
| 8636 | Unlike other @shl builtins, shift_amt doesn't need to be a Log2T as saturated overshifting is well defined. | 8633 | Unlike other @shl builtins, shift_amt doesn't need to be a Log2T as saturated overshifting is well defined. |
| ... | @@ -8954,8 +8951,7 @@ fn doTheTest() !void { | ... | @@ -8954,8 +8951,7 @@ fn doTheTest() !void { |
| 8954 | Returns {#syntax#}a - b{#endsyntax#}. The result will be clamped between the type maximum and minimum. | 8951 | Returns {#syntax#}a - b{#endsyntax#}. The result will be clamped between the type maximum and minimum. |
| 8955 | </p> | 8952 | </p> |
| 8956 | <p> | 8953 | <p> |
| 8957 | Once <a href="https://github.com/ziglang/zig/issues/1284">Saturating arithmetic</a>. | 8954 | The syntax {#syntax#}a -| b{#endsyntax#} is equivalent to calling {#syntax#}@subWithSaturation(a, b){#endsyntax#}. |
| 8958 | is completed, the syntax {#syntax#}a -| b{#endsyntax#} will be equivalent to calling {#syntax#}@subWithSaturation(a, b){#endsyntax#}. | | |
| 8959 | </p> | 8955 | </p> |
| 8960 | {#header_close#} | 8956 | {#header_close#} |
| 8961 | | 8957 | |