mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:08:10 +00:00
LibM: Add 'isnormal'
This commit is contained in:
parent
8a94622e54
commit
9054811ace
2 changed files with 12 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue