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 a3d55e6 commit b0f666eCopy full SHA for b0f666e
src/math/sqrt.rs
@@ -94,9 +94,9 @@ pub fn sqrt(x: f64) -> f64 {
94
}
95
#[cfg(target_feature = "sse2")]
96
{
97
- // Note(Lokathor): If compile time settings allow, we just use SSE2, since
98
- // the sqrt in `std` on these platforms also compiles down to an SSE2
99
- // instruction.
+ // Note: This path is unlikely since LLVM will usually have already
+ // optimized sqrt calls into hardware instructions if sse2 is available,
+ // but if someone does end up here they'll apprected the speed increase.
100
#[cfg(target_arch = "x86")]
101
use core::arch::x86::*;
102
#[cfg(target_arch = "x86_64")]
0 commit comments