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 a9fa14d commit a3d55e6Copy full SHA for a3d55e6
src/math/sqrtf.rs
@@ -29,9 +29,9 @@ pub fn sqrtf(x: f32) -> f32 {
29
}
30
#[cfg(target_feature = "sse")]
31
{
32
- // Note(Lokathor): If compile time settings allow, we just use SSE, since
33
- // the sqrt in `std` on these platforms also compiles down to an SSE
34
- // instruction.
+ // Note: This path is unlikely since LLVM will usually have already
+ // optimized sqrt calls into hardware instructions if sse is available,
+ // but if someone does end up here they'll apprected the speed increase.
35
#[cfg(target_arch = "x86")]
36
use core::arch::x86::*;
37
#[cfg(target_arch = "x86_64")]
0 commit comments