mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-06 02:55:49 +03:00
LibM: Implement pow()
This commit is contained in:
parent
d8daa08359
commit
b8ac14a873
Notes:
sideshowbarker
2024-07-19 10:54:03 +09:00
Author: https://github.com/vkoskiv 🔰 Commit: https://github.com/SerenityOS/serenity/commit/b8ac14a8731 Pull-request: https://github.com/SerenityOS/serenity/pull/862
@ -60,10 +60,8 @@ double sin(double angle)
|
||||
|
||||
double pow(double x, double y)
|
||||
{
|
||||
(void)x;
|
||||
(void)y;
|
||||
ASSERT_NOT_REACHED();
|
||||
return 0;
|
||||
//FIXME: Extremely unlikely to be standards compliant.
|
||||
return exp(y * log(x));
|
||||
}
|
||||
|
||||
double ldexp(double, int exp)
|
||||
|
Loading…
Reference in New Issue
Block a user