This repository was archived by the owner on Apr 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ pub fn ceil(x: f64) -> f64 {
2020 {
2121 //use an alternative implementation on x86, because the
2222 //main implementation fails with the x87 FPU used by
23- //debian i386, probablly due to excess precision issues.
23+ //debian i386, probably due to excess precision issues.
2424 //basic implementation taken from https://github.com/rust-lang/libm/issues/219
2525 use super :: fabs;
2626 if fabs ( x) . to_bits ( ) < 4503599627370496.0_f64 . to_bits ( ) {
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ pub fn floor(x: f64) -> f64 {
2020 {
2121 //use an alternative implementation on x86, because the
2222 //main implementation fails with the x87 FPU used by
23- //debian i386, probablly due to excess precision issues.
23+ //debian i386, probably due to excess precision issues.
2424 //basic implementation taken from https://github.com/rust-lang/libm/issues/219
2525 use super :: fabs;
2626 if fabs ( x) . to_bits ( ) < 4503599627370496.0_f64 . to_bits ( ) {
Original file line number Diff line number Diff line change 1616// 1. Compute and return log2(x) in two pieces:
1717// log2(x) = w1 + w2,
1818// where w1 has 53-24 = 29 bit trailing zeros.
19- // 2. Perform y*log2(x) = n+y' by simulating muti -precision
19+ // 2. Perform y*log2(x) = n+y' by simulating multi -precision
2020// arithmetic, where |y'|<=0.5.
2121// 3. Return x**y = 2**n*exp(y'*log2)
2222//
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ pub fn sqrt(x: f64) -> f64 {
9696 {
9797 // Note: This path is unlikely since LLVM will usually have already
9898 // optimized sqrt calls into hardware instructions if sse2 is available,
99- // but if someone does end up here they'll apprected the speed increase.
99+ // but if someone does end up here they'll appreciate the speed increase.
100100 #[ cfg( target_arch = "x86" ) ]
101101 use core:: arch:: x86:: * ;
102102 #[ cfg( target_arch = "x86_64" ) ]
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ pub fn sqrtf(x: f32) -> f32 {
3131 {
3232 // Note: This path is unlikely since LLVM will usually have already
3333 // optimized sqrt calls into hardware instructions if sse is available,
34- // but if someone does end up here they'll apprected the speed increase.
34+ // but if someone does end up here they'll appreciate the speed increase.
3535 #[ cfg( target_arch = "x86" ) ]
3636 use core:: arch:: x86:: * ;
3737 #[ cfg( target_arch = "x86_64" ) ]
You can’t perform that action at this time.
0 commit comments