Skip to content

Commit 3bc490d

Browse files
committed
various docs tweaks
1 parent aa64c73 commit 3bc490d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

library/core/src/intrinsics/simd.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ extern "platform-intrinsic" {
204204
///
205205
/// `T` must be a vector.
206206
///
207-
/// `V` must be a vector with the same element type as `T` and the same length as `IDX`.
207+
/// `U` must be a vector with the same element type as `T` and the same length as `IDX`.
208208
///
209209
/// Returns a new vector such that element `i` is selected from `xy[IDX[i]]`, where `xy`
210210
/// is the concatenation of `x` and `y`. It is a compile-time error if `IDX[i]` is out-of-bounds
@@ -485,24 +485,24 @@ extern "platform-intrinsic" {
485485
/// `T` must be a vector of integers.
486486
pub fn simd_cttz<T>(x: T) -> T;
487487

488-
/// Round up each element to the next highest integer.
488+
/// Round up each element to the next highest integer-valued float.
489489
///
490490
/// `T` must be a vector of floats.
491491
pub fn simd_ceil<T>(x: T) -> T;
492492

493-
/// Round down each element to the next lowest integer.
493+
/// Round down each element to the next lowest integer-valued float.
494494
///
495495
/// `T` must be a vector of floats.
496496
pub fn simd_floor<T>(x: T) -> T;
497497

498-
/// Round each element to the closest integer.
499-
/// Ties are resolving by rounding away from 0.
498+
/// Round each element to the closest integer-valued float.
499+
/// Ties are resolved by rounding away from 0.
500500
///
501501
/// `T` must be a vector of floats.
502502
pub fn simd_round<T>(x: T) -> T;
503503

504-
/// Return the integer part of each element.
505-
/// This means that non-integer numbers are always truncated towards zero.
504+
/// Return the integer part of each element as an integer-valued float.
505+
/// In other words, non-integer values are truncated towards zero.
506506
///
507507
/// `T` must be a vector of floats.
508508
pub fn simd_trunc<T>(x: T) -> T;

0 commit comments

Comments
 (0)