LibM: Add 'isnormal'

This commit is contained in:
AnotherTest 2020-07-12 03:27:42 +04:30 committed by Andreas Kling
commit 9054811ace
Notes: sideshowbarker 2024-07-19 04:54:50 +09:00
2 changed files with 12 additions and 0 deletions

View file

@ -536,4 +536,11 @@ double erfc(double x)
{
return 1 - erf(x);
}
int isnormal(double x)
{
if (x < 0)
x = -x;
return x >= DOUBLE_MIN && x <= DOUBLE_MAX;
}
}