summaryrefslogtreecommitdiff
path: root/Libraries
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries')
-rw-r--r--Libraries/LibM/math.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Libraries/LibM/math.cpp b/Libraries/LibM/math.cpp
index 27ee607e1f..43918923c8 100644
--- a/Libraries/LibM/math.cpp
+++ b/Libraries/LibM/math.cpp
@@ -233,6 +233,11 @@ double fmod(double index, double period)
return index - trunc(index / period) * period;
}
+float fmodf(float index, float period)
+{
+ return index - trunc(index / period) * period;
+}
+
double exp(double exponent)
{
double result = 1;