fixed typo
This commit is contained in:
parent
e5c19866eb
commit
e98a670850
|
@ -17,7 +17,7 @@ floor(x)
|
||||||
extern double _fif();
|
extern double _fif();
|
||||||
double val;
|
double val;
|
||||||
|
|
||||||
return _fif(x, 1,0, &val) < 0 ? val - 1.0 : val ;
|
return _fif(x, 1.0, &val) < 0 ? val - 1.0 : val ;
|
||||||
/* this also works if _fif always returns a positive
|
/* this also works if _fif always returns a positive
|
||||||
fractional part
|
fractional part
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -42,7 +42,7 @@ exp(x)
|
||||||
return M_MIN_D;
|
return M_MIN_D;
|
||||||
}
|
}
|
||||||
if (x >= M_LN_MAX_D) {
|
if (x >= M_LN_MAX_D) {
|
||||||
if (x < M_LN_MAX_D) errno = ERANGE;
|
if (x > M_LN_MAX_D) errno = ERANGE;
|
||||||
return M_MAX_D;
|
return M_MAX_D;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ floor(x)
|
||||||
extern double _fif();
|
extern double _fif();
|
||||||
double val;
|
double val;
|
||||||
|
|
||||||
return _fif(x, 1,0, &val) < 0 ? val - 1.0 : val ;
|
return _fif(x, 1.0, &val) < 0 ? val - 1.0 : val ;
|
||||||
/* this also works if _fif always returns a positive
|
/* this also works if _fif always returns a positive
|
||||||
fractional part
|
fractional part
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue