[CRT:MATH] Implement _finite, _finitef

This commit is contained in:
Timo Kreuzer 2024-12-02 20:17:14 +02:00
parent 50028685dc
commit e01231bd49
5 changed files with 41 additions and 17 deletions

View file

@ -36,19 +36,3 @@ int CDECL _isnan(double __x)
x.__x = &__x;
return ( x.x->exponent == 0x7ff && ( x.x->mantissah != 0 || x.x->mantissal != 0 ));
}
/*
* @implemented
*/
int CDECL _finite(double __x)
{
union
{
double* __x;
double_s* x;
} x;
x.__x = &__x;
return ((x.x->exponent & 0x7ff) != 0x7ff);
}