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:
parent
809a8ee693
commit
30ee597056
1 changed files with 7 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue