From b8ac14a8731fc75670eadd80b48d0f4beea38392 Mon Sep 17 00:00:00 2001 From: Valtteri Koskivuori Date: Tue, 10 Dec 2019 16:37:09 +0200 Subject: [PATCH] LibM: Implement pow() --- Libraries/LibM/math.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Libraries/LibM/math.cpp b/Libraries/LibM/math.cpp index a8c9b747e2..24810ffcd7 100644 --- a/Libraries/LibM/math.cpp +++ b/Libraries/LibM/math.cpp @@ -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)