reactos/reactos/lib/crtdll/float/isnan.c
Boudewijn Dekker ed08466464 Added various files.
--> failed to pass test printing a simple string

svn path=/trunk/; revision=380
1999-04-14 21:27:02 +00:00

21 lines
No EOL
264 B
C

#include <crtdll/math.h>
#include <crtdll/float.h>
int _isnan(double x)
{
if ( x>= 0.0 && x < HUGE_VAL )
return 0;
else if ( x <= 0.0 && x > HUGE_VAL )
return 0;
return 1;
}
int _isinf(double x)
{
if ( fabs(x) == HUGE_VAL )
return 1;
return 0;
}