We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0751f0e commit 81da73aCopy full SHA for 81da73a
crates/core_arch/src/x86/sse.rs
@@ -3,6 +3,7 @@
3
use crate::{
4
core_arch::{simd::*, x86::*},
5
intrinsics::simd::*,
6
+ intrinsics::sqrtf32,
7
mem, ptr,
8
};
9
@@ -110,7 +111,7 @@ pub unsafe fn _mm_div_ps(a: __m128, b: __m128) -> __m128 {
110
111
#[cfg_attr(test, assert_instr(sqrtss))]
112
#[stable(feature = "simd_x86", since = "1.27.0")]
113
pub unsafe fn _mm_sqrt_ss(a: __m128) -> __m128 {
- simd_insert!(a, 0, _mm_cvtss_f32(a).sqrt())
114
+ simd_insert!(a, 0, sqrtf32(_mm_cvtss_f32(a)))
115
}
116
117
/// Returns the square root of packed single-precision (32-bit) floating-point
0 commit comments