mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
LibM: Add implementation of ldexpf
This commit is contained in:
parent
809a8ee693
commit
30ee597056
Notes:
sideshowbarker
2024-07-19 00:59:46 +09:00
Author: https://github.com/thatoddmailbox 🔰 Commit: https://github.com/SerenityOS/serenity/commit/30ee5970564 Pull-request: https://github.com/SerenityOS/serenity/pull/4353
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…
Reference in a new issue