Skip to content

Commit

Permalink
generalize warning
Browse files Browse the repository at this point in the history
  • Loading branch information
fu5ha committed Oct 13, 2020
1 parent 72a5cbb commit a6d98d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 3 additions & 4 deletions library/std/src/f32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,10 @@ impl f32 {
/// Fused multiply-add. Computes `(self * a) + b` with only one rounding
/// error, yielding a more accurate result than an unfused multiply-add.
///
/// Using `mul_add` *can* be more performant than an unfused multiply-add if
/// Using `mul_add` *may* be more performant than an unfused multiply-add if
/// the target architecture has a dedicated `fma` CPU instruction. However,
/// this is not always true, and care must be taken not to overload the
/// architecture's available FMA units when using many FMA instructions
/// in a row, which can cause a stall and performance degradation.
/// this is not always true, and will be heavily dependant on designing
/// algorithms with specific target hardware in mind.
///
/// # Examples
///
Expand Down
7 changes: 3 additions & 4 deletions library/std/src/f64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,10 @@ impl f64 {
/// Fused multiply-add. Computes `(self * a) + b` with only one rounding
/// error, yielding a more accurate result than an unfused multiply-add.
///
/// Using `mul_add` *can* be more performant than an unfused multiply-add if
/// Using `mul_add` *may* be more performant than an unfused multiply-add if
/// the target architecture has a dedicated `fma` CPU instruction. However,
/// this is not always true, and care must be taken not to overload the
/// architecture's available FMA units when using many FMA instructions
/// in a row, which can cause a stall and performance degradation.
/// this is not always true, and will be heavily dependant on designing
/// algorithms with specific target hardware in mind.
///
/// # Examples
///
Expand Down

0 comments on commit a6d98d8

Please sign in to comment.