Merge pull request rust-lang/libm#291 from jfthuong/master

Corrected English typos
This commit is contained in:
Amanieu d'Antras 2024-04-10 13:44:41 +02:00 committed by GitHub
commit 0d42276ea9
5 changed files with 5 additions and 5 deletions

View file

@ -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() {

View file

@ -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() {

View file

@ -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)
//

View file

@ -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")]

View file

@ -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")]