mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 06:53:37 +00:00
21 lines
No EOL
264 B
C
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;
|
|
} |