Author: pschweitzer Date: Fri Nov 18 22:53:13 2011 New Revision: 54426
URL: http://svn.reactos.org/svn/reactos?rev=54426&view=rev Log: [CRT] Reimplemented _finite properly. Removed unused _isinf function.
Modified: trunk/reactos/lib/sdk/crt/float/isnan.c
Modified: trunk/reactos/lib/sdk/crt/float/isnan.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/float/isnan.c?r... ============================================================================== --- trunk/reactos/lib/sdk/crt/float/isnan.c [iso-8859-1] (original) +++ trunk/reactos/lib/sdk/crt/float/isnan.c [iso-8859-1] Fri Nov 18 22:53:13 2011 @@ -54,7 +54,10 @@ && ( (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 @@ } 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)