mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-08 20:32:56 +03:00
LibM: Implement the frexp family
This commit is contained in:
parent
b274120b3c
commit
88d342d007
Notes:
sideshowbarker
2024-07-18 21:35:46 +09:00
Author: https://github.com/RealKC Commit: https://github.com/SerenityOS/serenity/commit/88d342d0075 Pull-request: https://github.com/SerenityOS/serenity/pull/5688 Issue: https://github.com/SerenityOS/serenity/issues/4282 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/BenWiederhake Reviewed-by: https://github.com/awesomekling
@ -663,22 +663,22 @@ long double log2l(long double x) NOEXCEPT
|
||||
return log2(x);
|
||||
}
|
||||
|
||||
double frexp(double, int*) NOEXCEPT
|
||||
double frexp(double x, int* exp) NOEXCEPT
|
||||
{
|
||||
VERIFY_NOT_REACHED();
|
||||
return 0;
|
||||
*exp = (x == 0) ? 0 : (1 + ilogb(x));
|
||||
return scalbn(x, -(*exp));
|
||||
}
|
||||
|
||||
float frexpf(float, int*) NOEXCEPT
|
||||
float frexpf(float x, int* exp) NOEXCEPT
|
||||
{
|
||||
VERIFY_NOT_REACHED();
|
||||
return 0;
|
||||
*exp = (x == 0) ? 0 : (1 + ilogbf(x));
|
||||
return scalbnf(x, -(*exp));
|
||||
}
|
||||
|
||||
long double frexpl(long double, int*) NOEXCEPT
|
||||
long double frexpl(long double x, int* exp) NOEXCEPT
|
||||
{
|
||||
VERIFY_NOT_REACHED();
|
||||
return 0;
|
||||
*exp = (x == 0) ? 0 : (1 + ilogbl(x));
|
||||
return scalbnl(x, -(*exp));
|
||||
}
|
||||
|
||||
double round(double value) NOEXCEPT
|
||||
|
Loading…
Reference in New Issue
Block a user