Skip to content

Commit b78a39a

Browse files
committed
Add central documentation.
1 parent a15736f commit b78a39a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

library/core/src/primitive_docs.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,6 +1317,15 @@ mod prim_f16 {}
13171317
/// | `wasm32`, `wasm64` | If all input NaNs are quiet with all-zero payload: None.<br> Otherwise: all possible payloads. |
13181318
///
13191319
/// For targets not in this table, all payloads are possible.
1320+
///
1321+
/// # Algebraic operators
1322+
///
1323+
/// Algebraic operators of the form `a.*_algebraic(b)` allow the compiler to reassociate individual
1324+
/// floating point operations for better vectorization. Because of the unpredictable nature of
1325+
/// compiler optimizations, the same inputs may produce different results even within a single
1326+
/// program run. **Unsafe code must not rely on any property of the return value for soundness.**
1327+
/// However, implementations will generally do their best to pick a reasonable tradeoff between
1328+
/// performance and accuracy of the result.
13201329
13211330
#[stable(feature = "rust1", since = "1.0.0")]
13221331
mod prim_f32 {}

0 commit comments

Comments
 (0)