summaryrefslogtreecommitdiff
path: root/Libraries
diff options
context:
space:
mode:
authorValtteri Koskivuori <vkoskiv@gmail.com>2020-05-02 00:45:46 +0300
committerAndreas Kling <kling@serenityos.org>2020-05-02 01:23:30 +0200
commit61cea6a29d9f7da157c07a4bf01cfd30e84089b7 (patch)
tree9c8f2e1d1f07ec4cc05f6ac0fb040c215c12fb79 /Libraries
parent43c1fa99651eb4c2cd2632d716bd3e917d05c334 (diff)
downloadserenity-61cea6a29d9f7da157c07a4bf01cfd30e84089b7.zip
LibM: Implement fmodf()
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;