Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 567096d

Browse files
authoredMay 24, 2024
Rollup merge of rust-lang#125497 - meesfrensel:patch-1, r=calebzulawski
Fix some SIMD intrinsics documentation Spotted some mistakes in the docs of some SIMD intrinsics.
2 parents 88f0106 + 2b1602a commit 567096d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎core/src/intrinsics/simd.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -152,15 +152,15 @@ extern "rust-intrinsic" {
152152
#[rustc_nounwind]
153153
pub fn simd_fabs<T>(x: T) -> T;
154154

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

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

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

408-
/// Check if all mask values are true.
408+
/// Check if any mask value is true.
409409
///
410410
/// `T` must be a vector of integer primitive types.
411411
///

0 commit comments

Comments
 (0)
Failed to load comments.