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

LibM: Add exp2() and exp2f()

This commit is contained in:
Linus Groh 2020-06-04 14:38:44 +01:00 committed by Andreas Kling
parent ead76377b0
commit c883bab62a
2 changed files with 12 additions and 0 deletions

View file

@ -279,6 +279,16 @@ float expf(float exponent)
return (float)exp(exponent);
}
double exp2(double exponent)
{
return pow(2.0, exponent);
}
float exp2f(float exponent)
{
return pow(2.0f, exponent);
}
double cosh(double x)
{
double exponentiated = exp(-x);