authorgravatar for krkk@serenityos.orgKarol Kosek <krkk@serenityos.org> 2026-03-24 10:04:08+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-03-25 00:53:36+01:00
log5861afb1897872c9054ffbc36a221090a2228863
tree831a38937c748a82025d50cdf875cf959438b235
parent3de16858f703271419e25c8cec16e619c032bec4

langref: make float mode fields lowercase

Reflects the change made in aab84a3decd784a275c0bb694c7717d3c73ae4b1.

1 files changed, 7 insertions(+), 7 deletions(-)

doc/langref.html.in+7-7
......@@ -1118,8 +1118,8 @@
11181118
11191119 {#header_close#}
11201120 {#header_open|Floating Point Operations#}
1121 <p>By default floating point operations use {#syntax#}Strict{#endsyntax#} mode,
1122 but you can switch to {#syntax#}Optimized{#endsyntax#} mode on a per-block basis:</p>
1121 <p>By default floating point operations use {#syntax#}.strict{#endsyntax#} mode,
1122 but you can switch to {#syntax#}.optimized{#endsyntax#} mode on a per-block basis:</p>
11231123 {#code|float_mode_obj.zig#}
11241124
11251125 <p>For this test we have to separate code into two object files -
......@@ -1374,7 +1374,7 @@ a /= b{#endsyntax#}</pre></td>
13741374 <ul>
13751375 <li>Can cause {#link|overflow|Default Operations#} for integers.</li>
13761376 <li>Can cause {#link|Division by Zero#} for integers.</li>
1377 <li>Can cause {#link|Division by Zero#} for floats in {#link|FloatMode.Optimized Mode|Floating Point Operations#}.</li>
1377 <li>Can cause {#link|Division by Zero#} for floats in {#link|FloatMode.optimized Mode|Floating Point Operations#}.</li>
13781378 <li>Signed integer operands must be comptime-known and positive. In other cases, use
13791379 {#link|@divTrunc#},
13801380 {#link|@divFloor#}, or
......@@ -1400,7 +1400,7 @@ a %= b{#endsyntax#}</pre></td>
14001400 <td>
14011401 <ul>
14021402 <li>Can cause {#link|Division by Zero#} for integers.</li>
1403 <li>Can cause {#link|Division by Zero#} for floats in {#link|FloatMode.Optimized Mode|Floating Point Operations#}.</li>
1403 <li>Can cause {#link|Division by Zero#} for floats in {#link|FloatMode.optimized Mode|Floating Point Operations#}.</li>
14041404 <li>Signed or floating-point operands must be comptime-known and positive. In other cases, use
14051405 {#link|@rem#} or
14061406 {#link|@mod#} instead.
......@@ -5423,10 +5423,10 @@ fn cmpxchgWeakButNotAtomic(comptime T: type, ptr: *T, expected_value: T, new_val
54235423 <p>Changes the current scope's rules about how floating point operations are defined.</p>
54245424 <ul>
54255425 <li>
5426 {#syntax#}Strict{#endsyntax#} (default) - Floating point operations follow strict IEEE compliance.
5426 {#syntax#}.strict{#endsyntax#} (default) - Floating point operations follow strict IEEE compliance.
54275427 </li>
54285428 <li>
5429 {#syntax#}Optimized{#endsyntax#} - Floating point operations may do all of the following:
5429 {#syntax#}.optimized{#endsyntax#} - Floating point operations may do all of the following:
54305430 <ul>
54315431 <li>Assume the arguments and result are not NaN. Optimizations are required to retain legal behavior over NaNs, but the value of the result is undefined.</li>
54325432 <li>Assume the arguments and result are not +/-Inf. Optimizations are required to retain legal behavior over +/-Inf, but the value of the result is undefined.</li>
......@@ -5600,7 +5600,7 @@ fn cmpxchgWeakButNotAtomic(comptime T: type, ptr: *T, expected_value: T, new_val
56005600 Note that {#syntax#}.Add{#endsyntax#} and {#syntax#}.Mul{#endsyntax#}
56015601 reductions on integral types are wrapping; when applied on floating point
56025602 types the operation associativity is preserved, unless the float mode is
5603 set to {#syntax#}Optimized{#endsyntax#}.
5603 set to {#syntax#}.optimized{#endsyntax#}.
56045604 </p>
56055605 {#code|test_reduce_builtin.zig#}
56065606