1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 06:48:12 +00:00

LibM: Add implementation of ldexpf

This commit is contained in:
Alex Studer 2020-12-07 17:45:26 -05:00 committed by Andreas Kling
parent 809a8ee693
commit 30ee597056

View file

@ -144,6 +144,13 @@ double ldexp(double x, int exp) NOEXCEPT
return x * val;
}
float ldexpf(float x, int exp) NOEXCEPT
{
// FIXME: Please fix me. I am naive.
float val = powf(2, exp);
return x * val;
}
double tanh(double x) NOEXCEPT
{
if (x > 0) {