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 @@...@@ -1118,8 +1118,8 @@
11181118
1119 {#header_close#}1119 {#header_close#}
1120 {#header_open|Floating Point Operations#}1120 {#header_open|Floating Point Operations#}
1121 <p>By default floating point operations use {#syntax#}Strict{#endsyntax#} mode,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>1122 but you can switch to {#syntax#}.optimized{#endsyntax#} mode on a per-block basis:</p>
1123 {#code|float_mode_obj.zig#}1123 {#code|float_mode_obj.zig#}
11241124
1125 <p>For this test we have to separate code into two object files -1125 <p>For this test we have to separate code into two object files -
...@@ -1374,7 +1374,7 @@ a /= b{#endsyntax#}</pre></td>...@@ -1374,7 +1374,7 @@ a /= b{#endsyntax#}</pre></td>
1374 <ul>1374 <ul>
1375 <li>Can cause {#link|overflow|Default Operations#} for integers.</li>1375 <li>Can cause {#link|overflow|Default Operations#} for integers.</li>
1376 <li>Can cause {#link|Division by Zero#} for integers.</li>1376 <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>
1378 <li>Signed integer operands must be comptime-known and positive. In other cases, use1378 <li>Signed integer operands must be comptime-known and positive. In other cases, use
1379 {#link|@divTrunc#},1379 {#link|@divTrunc#},
1380 {#link|@divFloor#}, or1380 {#link|@divFloor#}, or
...@@ -1400,7 +1400,7 @@ a %= b{#endsyntax#}</pre></td>...@@ -1400,7 +1400,7 @@ a %= b{#endsyntax#}</pre></td>
1400 <td>1400 <td>
1401 <ul>1401 <ul>
1402 <li>Can cause {#link|Division by Zero#} for integers.</li>1402 <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>
1404 <li>Signed or floating-point operands must be comptime-known and positive. In other cases, use1404 <li>Signed or floating-point operands must be comptime-known and positive. In other cases, use
1405 {#link|@rem#} or1405 {#link|@rem#} or
1406 {#link|@mod#} instead.1406 {#link|@mod#} instead.
...@@ -5423,10 +5423,10 @@ fn cmpxchgWeakButNotAtomic(comptime T: type, ptr: *T, expected_value: T, new_val...@@ -5423,10 +5423,10 @@ fn cmpxchgWeakButNotAtomic(comptime T: type, ptr: *T, expected_value: T, new_val
5423 <p>Changes the current scope's rules about how floating point operations are defined.</p>5423 <p>Changes the current scope's rules about how floating point operations are defined.</p>
5424 <ul>5424 <ul>
5425 <li>5425 <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.
5427 </li>5427 </li>
5428 <li>5428 <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:
5430 <ul>5430 <ul>
5431 <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>5431 <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>
5432 <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>5432 <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...@@ -5600,7 +5600,7 @@ fn cmpxchgWeakButNotAtomic(comptime T: type, ptr: *T, expected_value: T, new_val
5600 Note that {#syntax#}.Add{#endsyntax#} and {#syntax#}.Mul{#endsyntax#}5600 Note that {#syntax#}.Add{#endsyntax#} and {#syntax#}.Mul{#endsyntax#}
5601 reductions on integral types are wrapping; when applied on floating point5601 reductions on integral types are wrapping; when applied on floating point
5602 types the operation associativity is preserved, unless the float mode is5602 types the operation associativity is preserved, unless the float mode is
5603 set to {#syntax#}Optimized{#endsyntax#}.5603 set to {#syntax#}.optimized{#endsyntax#}.
5604 </p>5604 </p>
5605 {#code|test_reduce_builtin.zig#}5605 {#code|test_reduce_builtin.zig#}
56065606