@@ -26,28 +26,28 @@ pub unsafe fn simd_extract<T, U>(_x: T, _idx: u32) -> U;
26
26
27
27
/// Adds two simd vectors elementwise.
28
28
///
29
- /// `T` must be a vector of integer or floating point primitive types .
29
+ /// `T` must be a vector of integers or floats .
30
30
#[ rustc_intrinsic]
31
31
#[ rustc_nounwind]
32
32
pub unsafe fn simd_add < T > ( _x : T , _y : T ) -> T ;
33
33
34
34
/// Subtracts `rhs` from `lhs` elementwise.
35
35
///
36
- /// `T` must be a vector of integer or floating point primitive types .
36
+ /// `T` must be a vector of integers or floats .
37
37
#[ rustc_intrinsic]
38
38
#[ rustc_nounwind]
39
39
pub unsafe fn simd_sub < T > ( _lhs : T , _rhs : T ) -> T ;
40
40
41
41
/// Multiplies two simd vectors elementwise.
42
42
///
43
- /// `T` must be a vector of integer or floating point primitive types .
43
+ /// `T` must be a vector of integers or floats .
44
44
#[ rustc_intrinsic]
45
45
#[ rustc_nounwind]
46
46
pub unsafe fn simd_mul < T > ( _x : T , _y : T ) -> T ;
47
47
48
48
/// Divides `lhs` by `rhs` elementwise.
49
49
///
50
- /// `T` must be a vector of integer or floating point primitive types .
50
+ /// `T` must be a vector of integers or floats .
51
51
///
52
52
/// # Safety
53
53
/// For integers, `rhs` must not contain any zero elements.
@@ -58,7 +58,7 @@ pub unsafe fn simd_div<T>(_lhs: T, _rhs: T) -> T;
58
58
59
59
/// Returns remainder of two vectors elementwise.
60
60
///
61
- /// `T` must be a vector of integer or floating point primitive types .
61
+ /// `T` must be a vector of integers or floats .
62
62
///
63
63
/// # Safety
64
64
/// For integers, `rhs` must not contain any zero elements.
@@ -116,8 +116,7 @@ pub unsafe fn simd_xor<T>(_x: T, _y: T) -> T;
116
116
117
117
/// Numerically casts a vector, elementwise.
118
118
///
119
- /// `T` and `U` must be vectors of integer or floating point primitive types, and must have the
120
- /// same length.
119
+ /// `T` and `U` must be vectors of integers or floats, and must have the same length.
121
120
///
122
121
/// When casting floats to integers, the result is truncated. Out-of-bounds result lead to UB.
123
122
/// When casting integers to floats, the result is rounded.
@@ -138,8 +137,7 @@ pub unsafe fn simd_cast<T, U>(_x: T) -> U;
138
137
139
138
/// Numerically casts a vector, elementwise.
140
139
///
141
- /// `T` and `U` be a vectors of integer or floating point primitive types, and must have the
142
- /// same length.
140
+ /// `T` and `U` be a vectors of integers or floats, and must have the same length.
143
141
///
144
142
/// Like `simd_cast`, but saturates float-to-integer conversions (NaN becomes 0).
145
143
/// This matches regular `as` and is always safe.
@@ -187,7 +185,7 @@ pub unsafe fn simd_fmax<T>(_x: T, _y: T) -> T;
187
185
188
186
/// Tests elementwise equality of two vectors.
189
187
///
190
- /// `T` must be a vector of floating-point primitive types.
188
+ /// `T` must be a vector of integer or floating-point primitive types.
191
189
///
192
190
/// `U` must be a vector of integers with the same number of elements and element size as `T`.
193
191
///
@@ -198,7 +196,7 @@ pub unsafe fn simd_eq<T, U>(_x: T, _y: T) -> U;
198
196
199
197
/// Tests elementwise inequality equality of two vectors.
200
198
///
201
- /// `T` must be a vector of floating-point primitive types.
199
+ /// `T` must be a vector of integer or floating-point primitive types.
202
200
///
203
201
/// `U` must be a vector of integers with the same number of elements and element size as `T`.
204
202
///
@@ -209,7 +207,7 @@ pub unsafe fn simd_ne<T, U>(_x: T, _y: T) -> U;
209
207
210
208
/// Tests if `x` is less than `y`, elementwise.
211
209
///
212
- /// `T` must be a vector of floating-point primitive types.
210
+ /// `T` must be a vector of integer or floating-point primitive types.
213
211
///
214
212
/// `U` must be a vector of integers with the same number of elements and element size as `T`.
215
213
///
@@ -220,7 +218,7 @@ pub unsafe fn simd_lt<T, U>(_x: T, _y: T) -> U;
220
218
221
219
/// Tests if `x` is less than or equal to `y`, elementwise.
222
220
///
223
- /// `T` must be a vector of floating-point primitive types.
221
+ /// `T` must be a vector of integer or floating-point primitive types.
224
222
///
225
223
/// `U` must be a vector of integers with the same number of elements and element size as `T`.
226
224
///
@@ -231,7 +229,7 @@ pub unsafe fn simd_le<T, U>(_x: T, _y: T) -> U;
231
229
232
230
/// Tests if `x` is greater than `y`, elementwise.
233
231
///
234
- /// `T` must be a vector of floating-point primitive types.
232
+ /// `T` must be a vector of integer or floating-point primitive types.
235
233
///
236
234
/// `U` must be a vector of integers with the same number of elements and element size as `T`.
237
235
///
@@ -242,7 +240,7 @@ pub unsafe fn simd_gt<T, U>(_x: T, _y: T) -> U;
242
240
243
241
/// Tests if `x` is greater than or equal to `y`, elementwise.
244
242
///
245
- /// `T` must be a vector of floating-point primitive types.
243
+ /// `T` must be a vector of integer or floating-point primitive types.
246
244
///
247
245
/// `U` must be a vector of integers with the same number of elements and element size as `T`.
248
246
///
0 commit comments