Skip to content

Commit 6e7b1d5

Browse files
committed
correct the docs on simd_ comparison operators
these all also accept integer vectors as arguments
1 parent 96cfc75 commit 6e7b1d5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: library/core/src/intrinsics/simd.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ pub unsafe fn simd_fmax<T>(_x: T, _y: T) -> T;
187187

188188
/// Tests elementwise equality of two vectors.
189189
///
190-
/// `T` must be a vector of floating-point primitive types.
190+
/// `T` must be a vector of integer or floating-point primitive types.
191191
///
192192
/// `U` must be a vector of integers with the same number of elements and element size as `T`.
193193
///
@@ -198,7 +198,7 @@ pub unsafe fn simd_eq<T, U>(_x: T, _y: T) -> U;
198198

199199
/// Tests elementwise inequality equality of two vectors.
200200
///
201-
/// `T` must be a vector of floating-point primitive types.
201+
/// `T` must be a vector of integer or floating-point primitive types.
202202
///
203203
/// `U` must be a vector of integers with the same number of elements and element size as `T`.
204204
///
@@ -209,7 +209,7 @@ pub unsafe fn simd_ne<T, U>(_x: T, _y: T) -> U;
209209

210210
/// Tests if `x` is less than `y`, elementwise.
211211
///
212-
/// `T` must be a vector of floating-point primitive types.
212+
/// `T` must be a vector of integer or floating-point primitive types.
213213
///
214214
/// `U` must be a vector of integers with the same number of elements and element size as `T`.
215215
///
@@ -220,7 +220,7 @@ pub unsafe fn simd_lt<T, U>(_x: T, _y: T) -> U;
220220

221221
/// Tests if `x` is less than or equal to `y`, elementwise.
222222
///
223-
/// `T` must be a vector of floating-point primitive types.
223+
/// `T` must be a vector of integer or floating-point primitive types.
224224
///
225225
/// `U` must be a vector of integers with the same number of elements and element size as `T`.
226226
///
@@ -231,7 +231,7 @@ pub unsafe fn simd_le<T, U>(_x: T, _y: T) -> U;
231231

232232
/// Tests if `x` is greater than `y`, elementwise.
233233
///
234-
/// `T` must be a vector of floating-point primitive types.
234+
/// `T` must be a vector of integer or floating-point primitive types.
235235
///
236236
/// `U` must be a vector of integers with the same number of elements and element size as `T`.
237237
///
@@ -242,7 +242,7 @@ pub unsafe fn simd_gt<T, U>(_x: T, _y: T) -> U;
242242

243243
/// Tests if `x` is greater than or equal to `y`, elementwise.
244244
///
245-
/// `T` must be a vector of floating-point primitive types.
245+
/// `T` must be a vector of integer or floating-point primitive types.
246246
///
247247
/// `U` must be a vector of integers with the same number of elements and element size as `T`.
248248
///

0 commit comments

Comments
 (0)