mirror of
https://github.com/reactos/reactos.git
synced 2025-06-06 01:40:36 +00:00
[CRT]
Reimplemented _finite properly. Removed unused _isinf function. svn path=/trunk/; revision=54426
This commit is contained in:
parent
73d88a5f6f
commit
a31cce0995
1 changed files with 5 additions and 9 deletions
|
@ -54,7 +54,10 @@ int _isnanl(long double __x)
|
|||
&& ( (x.x->mantissah & (unsigned int)0x7fffffff) != 0 || x.x->mantissal != 0 ));
|
||||
}
|
||||
|
||||
int _isinf(double __x)
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
int _finite(double __x)
|
||||
{
|
||||
union
|
||||
{
|
||||
|
@ -63,15 +66,8 @@ int _isinf(double __x)
|
|||
} x;
|
||||
|
||||
x.__x = &__x;
|
||||
return ( x.x->exponent == 0x7ff && ( x.x->mantissah == 0 && x.x->mantissal == 0 ));
|
||||
}
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
int _finite( double x )
|
||||
{
|
||||
return !_isinf(x);
|
||||
return ((x.x->exponent & 0x7ff) != 0x7ff);
|
||||
}
|
||||
|
||||
int _isinfl(long double __x)
|
||||
|
|
Loading…
Reference in a new issue