Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 9ec4805

Browse files
authored
update comments
1 parent 7249f78 commit 9ec4805

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libm/src/math/sqrt.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ pub fn sqrt(x: f64) -> f64 {
9494
}
9595
#[cfg(target_feature = "sse2")]
9696
{
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.
97+
// Note: This path is unlikely since LLVM will usually have already
98+
// optimized sqrt calls into hardware instructions if sse2 is available,
99+
// but if someone does end up here they'll apprected the speed increase.
100100
#[cfg(target_arch = "x86")]
101101
use core::arch::x86::*;
102102
#[cfg(target_arch = "x86_64")]

0 commit comments

Comments
 (0)