mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 06:09:08 +00:00
LibM: Add 'isnormal'
This commit is contained in:
parent
8a94622e54
commit
9054811ace
Notes:
sideshowbarker
2024-07-19 04:54:50 +09:00
Author: https://github.com/alimpfard
Commit: 9054811ace
Pull-request: https://github.com/SerenityOS/serenity/pull/2771
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