update comments

This commit is contained in:
Lokathor 2019-08-08 18:21:10 -06:00 committed by GitHub
parent 887fca89c2
commit e247c599cc

View file

@ -29,9 +29,9 @@ pub fn sqrtf(x: f32) -> f32 {
}
#[cfg(target_feature = "sse")]
{
// Note(Lokathor): If compile time settings allow, we just use SSE, since
// the sqrt in `std` on these platforms also compiles down to an SSE
// 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.
#[cfg(target_arch = "x86")]
use core::arch::x86::*;
#[cfg(target_arch = "x86_64")]