@@ -204,7 +204,7 @@ extern "platform-intrinsic" {
204
204
///
205
205
/// `T` must be a vector.
206
206
///
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`.
208
208
///
209
209
/// Returns a new vector such that element `i` is selected from `xy[IDX[i]]`, where `xy`
210
210
/// 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" {
485
485
/// `T` must be a vector of integers.
486
486
pub fn simd_cttz < T > ( x : T ) -> T ;
487
487
488
- /// Round up each element to the next highest integer.
488
+ /// Round up each element to the next highest integer-valued float .
489
489
///
490
490
/// `T` must be a vector of floats.
491
491
pub fn simd_ceil < T > ( x : T ) -> T ;
492
492
493
- /// Round down each element to the next lowest integer.
493
+ /// Round down each element to the next lowest integer-valued float .
494
494
///
495
495
/// `T` must be a vector of floats.
496
496
pub fn simd_floor < T > ( x : T ) -> T ;
497
497
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.
500
500
///
501
501
/// `T` must be a vector of floats.
502
502
pub fn simd_round < T > ( x : T ) -> T ;
503
503
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.
506
506
///
507
507
/// `T` must be a vector of floats.
508
508
pub fn simd_trunc < T > ( x : T ) -> T ;
0 commit comments