@@ -36,7 +36,7 @@ extern "platform-intrinsic" {
36
36
/// Additionally for signed integers, `<int>::MIN / -1` is undefined behavior.
37
37
pub fn simd_rem < T > ( lhs : T , rhs : T ) -> T ;
38
38
39
- /// Elementwise vector left shift.
39
+ /// Elementwise vector left shift, with UB on overflow .
40
40
///
41
41
/// Shift `lhs` left by `rhs`, shifting in sign bits for signed types.
42
42
///
@@ -47,7 +47,7 @@ extern "platform-intrinsic" {
47
47
/// Each element of `rhs` must be less than `<int>::BITS`.
48
48
pub fn simd_shl < T > ( lhs : T , rhs : T ) -> T ;
49
49
50
- /// Elementwise vector right shift.
50
+ /// Elementwise vector right shift, with UB on overflow .
51
51
///
52
52
/// Shift `lhs` right by `rhs`, shifting in sign bits for signed types.
53
53
///
@@ -75,11 +75,11 @@ extern "platform-intrinsic" {
75
75
76
76
/// Numerically cast a vector, elementwise.
77
77
///
78
- /// When casting floats to integers, the result is truncated.
78
+ /// When casting floats to integers, the result is truncated. Out-of-bounds result lead to UB.
79
79
/// When casting integers to floats, the result is rounded.
80
80
/// Otherwise, truncates or extends the value, maintaining the sign for signed integers.
81
81
///
82
- /// `T` and `U` be a vectors of integer or floating point primitive types, and must have the
82
+ /// `T` and `U` must be vectors of integer or floating point primitive types, and must have the
83
83
/// same length.
84
84
///
85
85
/// # Safety
0 commit comments