Skip to content

Commit

Permalink
Rollup merge of rust-lang#125497 - meesfrensel:patch-1, r=calebzulawski
Browse files Browse the repository at this point in the history
Fix some SIMD intrinsics documentation

Spotted some mistakes in the docs of some SIMD intrinsics.
  • Loading branch information
matthiaskrgr authored May 24, 2024
2 parents 88f0106 + 2b1602a commit 567096d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/src/intrinsics/simd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,15 +152,15 @@ extern "rust-intrinsic" {
#[rustc_nounwind]
pub fn simd_fabs<T>(x: T) -> T;

/// Elementwise minimum of a vector.
/// Elementwise minimum of two vectors.
///
/// `T` must be a vector of floating-point primitive types.
///
/// Follows IEEE-754 `minNum` semantics.
#[rustc_nounwind]
pub fn simd_fmin<T>(x: T, y: T) -> T;

/// Elementwise maximum of a vector.
/// Elementwise maximum of two vectors.
///
/// `T` must be a vector of floating-point primitive types.
///
Expand Down Expand Up @@ -387,7 +387,7 @@ extern "rust-intrinsic" {
#[rustc_nounwind]
pub fn simd_reduce_mul_ordered<T, U>(x: T, y: U) -> U;

/// Add elements within a vector in arbitrary order. May also be re-associated with
/// Multiply elements within a vector in arbitrary order. May also be re-associated with
/// unordered additions on the inputs/outputs.
///
/// `T` must be a vector of integer or floating-point primitive types.
Expand All @@ -405,7 +405,7 @@ extern "rust-intrinsic" {
#[rustc_nounwind]
pub fn simd_reduce_all<T>(x: T) -> bool;

/// Check if all mask values are true.
/// Check if any mask value is true.
///
/// `T` must be a vector of integer primitive types.
///
Expand Down

0 comments on commit 567096d

Please sign in to comment.