Skip to content

Commit

Permalink
Merge pull request #291 from jfthuong/master
Browse files Browse the repository at this point in the history
Corrected English typos
  • Loading branch information
Amanieu authored Apr 10, 2024
2 parents f21d751 + 0c08511 commit 439db66
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/math/ceil.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub fn ceil(x: f64) -> f64 {
{
//use an alternative implementation on x86, because the
//main implementation fails with the x87 FPU used by
//debian i386, probablly due to excess precision issues.
//debian i386, probably due to excess precision issues.
//basic implementation taken from https://github.com/rust-lang/libm/issues/219
use super::fabs;
if fabs(x).to_bits() < 4503599627370496.0_f64.to_bits() {
Expand Down
2 changes: 1 addition & 1 deletion src/math/floor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub fn floor(x: f64) -> f64 {
{
//use an alternative implementation on x86, because the
//main implementation fails with the x87 FPU used by
//debian i386, probablly due to excess precision issues.
//debian i386, probably due to excess precision issues.
//basic implementation taken from https://github.com/rust-lang/libm/issues/219
use super::fabs;
if fabs(x).to_bits() < 4503599627370496.0_f64.to_bits() {
Expand Down
2 changes: 1 addition & 1 deletion src/math/pow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// 1. Compute and return log2(x) in two pieces:
// log2(x) = w1 + w2,
// where w1 has 53-24 = 29 bit trailing zeros.
// 2. Perform y*log2(x) = n+y' by simulating muti-precision
// 2. Perform y*log2(x) = n+y' by simulating multi-precision
// arithmetic, where |y'|<=0.5.
// 3. Return x**y = 2**n*exp(y'*log2)
//
Expand Down
2 changes: 1 addition & 1 deletion src/math/sqrt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ pub fn sqrt(x: f64) -> f64 {
{
// Note: This path is unlikely since LLVM will usually have already
// optimized sqrt calls into hardware instructions if sse2 is available,
// but if someone does end up here they'll apprected the speed increase.
// but if someone does end up here they'll appreciate the speed increase.
#[cfg(target_arch = "x86")]
use core::arch::x86::*;
#[cfg(target_arch = "x86_64")]
Expand Down
2 changes: 1 addition & 1 deletion src/math/sqrtf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub fn sqrtf(x: f32) -> f32 {
{
// 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.
// but if someone does end up here they'll appreciate the speed increase.
#[cfg(target_arch = "x86")]
use core::arch::x86::*;
#[cfg(target_arch = "x86_64")]
Expand Down

0 comments on commit 439db66

Please sign in to comment.