1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:47:35 +00:00

LibM: Add long double defines of Math Constants

This commit is contained in:
Hediadyoin1 2021-05-07 14:01:03 +02:00 committed by Andreas Kling
parent c74d7adac6
commit f4072a5038
2 changed files with 15 additions and 1 deletions

View file

@ -320,7 +320,7 @@ static FloatT internal_gamma(FloatT x) NOEXCEPT
}
// Stirling approximation
return sqrtl(2.0 * M_PI / static_cast<long double>(x)) * powl(static_cast<long double>(x) / M_E, static_cast<long double>(x));
return sqrtl(2.0 * M_PIl / static_cast<long double>(x)) * powl(static_cast<long double>(x) / M_El, static_cast<long double>(x));
}
extern "C" {