Skip to content

Commit 3a56a17

Browse files
bjorn3gnzlbg
authored andcommitted
Use simd_fsqrt where possible
1 parent 3995e74 commit 3a56a17

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/core_arch/src/x86/avx.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ pub unsafe fn _mm256_sqrt_ps(a: __m256) -> __m256 {
513513
#[cfg_attr(test, assert_instr(vsqrtpd))]
514514
#[stable(feature = "simd_x86", since = "1.27.0")]
515515
pub unsafe fn _mm256_sqrt_pd(a: __m256d) -> __m256d {
516-
sqrtpd256(a)
516+
simd_fsqrt(a)
517517
}
518518

519519
/// Blends packed double-precision (64-bit) floating-point elements from

crates/core_arch/src/x86/sse2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1823,7 +1823,7 @@ pub unsafe fn _mm_sqrt_sd(a: __m128d, b: __m128d) -> __m128d {
18231823
#[cfg_attr(test, assert_instr(sqrtpd))]
18241824
#[stable(feature = "simd_x86", since = "1.27.0")]
18251825
pub unsafe fn _mm_sqrt_pd(a: __m128d) -> __m128d {
1826-
sqrtpd(a)
1826+
simd_fsqrt(a)
18271827
}
18281828

18291829
/// Returns a new vector with the low element of `a` replaced by subtracting the

0 commit comments

Comments
 (0)