| ... | ... | @@ -7241,8 +7241,7 @@ fn readFile(allocator: *Allocator, filename: []const u8) ![]u8 { |
| 7241 | 7241 | Returns {#syntax#}a + b{#endsyntax#}. The result will be clamped between the type maximum and minimum. |
| 7242 | 7242 | </p> |
| 7243 | 7243 | <p> |
| 7244 | | Once <a href="https://github.com/ziglang/zig/issues/1284">Saturating arithmetic</a>. |
| 7245 | | is completed, the syntax {#syntax#}a +| b{#endsyntax#} will be equivalent to calling {#syntax#}@addWithSaturation(a, b){#endsyntax#}. |
| 7244 | The syntax {#syntax#}a +| b{#endsyntax#} is equivalent to calling {#syntax#}@addWithSaturation(a, b){#endsyntax#}. |
| 7246 | 7245 | </p> |
| 7247 | 7246 | {#header_close#} |
| 7248 | 7247 | {#header_open|@alignCast#} |
| ... | ... | @@ -8372,8 +8371,7 @@ test "@wasmMemoryGrow" { |
| 8372 | 8371 | Returns {#syntax#}a * b{#endsyntax#}. The result will be clamped between the type maximum and minimum. |
| 8373 | 8372 | </p> |
| 8374 | 8373 | <p> |
| 8375 | | Once <a href="https://github.com/ziglang/zig/issues/1284">Saturating arithmetic</a>. |
| 8376 | | is completed, the syntax {#syntax#}a *| b{#endsyntax#} will be equivalent to calling {#syntax#}@mulWithSaturation(a, b){#endsyntax#}. |
| 8374 | The syntax {#syntax#}a *| b{#endsyntax#} is equivalent to calling {#syntax#}@mulWithSaturation(a, b){#endsyntax#}. |
| 8377 | 8375 | </p> |
| 8378 | 8376 | <p> |
| 8379 | 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 | 8627 | Returns {#syntax#}a << b{#endsyntax#}. The result will be clamped between type minimum and maximum. |
| 8630 | 8628 | </p> |
| 8631 | 8629 | <p> |
| 8632 | | Once <a href="https://github.com/ziglang/zig/issues/1284">Saturating arithmetic</a>. |
| 8633 | | is completed, the syntax {#syntax#}a <<| b{#endsyntax#} will be equivalent to calling {#syntax#}@shlWithSaturation(a, b){#endsyntax#}. |
| 8630 | The syntax {#syntax#}a <<| b{#endsyntax#} is equivalent to calling {#syntax#}@shlWithSaturation(a, b){#endsyntax#}. |
| 8634 | 8631 | </p> |
| 8635 | 8632 | <p> |
| 8636 | 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 | 8951 | Returns {#syntax#}a - b{#endsyntax#}. The result will be clamped between the type maximum and minimum. |
| 8955 | 8952 | </p> |
| 8956 | 8953 | <p> |
| 8957 | | Once <a href="https://github.com/ziglang/zig/issues/1284">Saturating arithmetic</a>. |
| 8958 | | is completed, the syntax {#syntax#}a -| b{#endsyntax#} will be equivalent to calling {#syntax#}@subWithSaturation(a, b){#endsyntax#}. |
| 8954 | The syntax {#syntax#}a -| b{#endsyntax#} is equivalent to calling {#syntax#}@subWithSaturation(a, b){#endsyntax#}. |
| 8959 | 8955 | </p> |
| 8960 | 8956 | {#header_close#} |
| 8961 | 8957 | |