From caa8f3d3bfefb57c787d4f70039b019be801c3cd Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sat, 13 Mar 2021 22:04:01 +0100 Subject: [PATCH] LibM: Implement tanf() in terms of tan() with casts Lazy, but it works for now. :^) --- Userland/Libraries/LibM/math.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Userland/Libraries/LibM/math.cpp b/Userland/Libraries/LibM/math.cpp index 2ccdac6272..1bf898d7ae 100644 --- a/Userland/Libraries/LibM/math.cpp +++ b/Userland/Libraries/LibM/math.cpp @@ -445,6 +445,11 @@ double tan(double angle) NOEXCEPT return ampsin(angle) / ampsin(M_PI_2 + angle); } +float tanf(float angle) NOEXCEPT +{ + return (float)tan((double)angle); +} + double sqrt(double x) NOEXCEPT { double res;