File tree 5 files changed +5
-5
lines changed 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 {
20
20
{
21
21
//use an alternative implementation on x86, because the
22
22
//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.
24
24
//basic implementation taken from https://github.com/rust-lang/libm/issues/219
25
25
use super :: fabs;
26
26
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 {
20
20
{
21
21
//use an alternative implementation on x86, because the
22
22
//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.
24
24
//basic implementation taken from https://github.com/rust-lang/libm/issues/219
25
25
use super :: fabs;
26
26
if fabs ( x) . to_bits ( ) < 4503599627370496.0_f64 . to_bits ( ) {
Original file line number Diff line number Diff line change 16
16
// 1. Compute and return log2(x) in two pieces:
17
17
// log2(x) = w1 + w2,
18
18
// 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
20
20
// arithmetic, where |y'|<=0.5.
21
21
// 3. Return x**y = 2**n*exp(y'*log2)
22
22
//
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ pub fn sqrt(x: f64) -> f64 {
96
96
{
97
97
// Note: This path is unlikely since LLVM will usually have already
98
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.
99
+ // but if someone does end up here they'll appreciate the speed increase.
100
100
#[ cfg( target_arch = "x86" ) ]
101
101
use core:: arch:: x86:: * ;
102
102
#[ 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 {
31
31
{
32
32
// Note: This path is unlikely since LLVM will usually have already
33
33
// 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.
35
35
#[ cfg( target_arch = "x86" ) ]
36
36
use core:: arch:: x86:: * ;
37
37
#[ cfg( target_arch = "x86_64" ) ]
You can’t perform that action at this time.
0 commit comments