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
Notes: sideshowbarker 2024-07-19 00:59:46 +09:00

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) {