Skip to content

Commit 00f88e7

Browse files
djallen89gnzlbg
authored andcommitted
Corrected the documentation for _mm256_mul_pd and _mm256_mul_ps to state that they multiply vectors rather than adding them.
1 parent 9b24a52 commit 00f88e7

File tree

1 file changed

+2
-2
lines changed
  • crates/core_arch/src/x86

1 file changed

+2
-2
lines changed

crates/core_arch/src/x86/avx.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ pub unsafe fn _mm256_min_ps(a: __m256, b: __m256) -> __m256 {
296296
minps256(a, b)
297297
}
298298

299-
/// Add packed double-precision (64-bit) floating-point elements
299+
/// Multiply packed double-precision (64-bit) floating-point elements
300300
/// in `a` and `b`.
301301
///
302302
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm256_mul_pd)
@@ -308,7 +308,7 @@ pub unsafe fn _mm256_mul_pd(a: __m256d, b: __m256d) -> __m256d {
308308
simd_mul(a, b)
309309
}
310310

311-
/// Add packed single-precision (32-bit) floating-point elements in `a` and
311+
/// Multiply packed single-precision (32-bit) floating-point elements in `a` and
312312
/// `b`.
313313
///
314314
/// [Intel's documentation](https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm256_mul_ps)

0 commit comments

Comments
 (0)