瀏覽代碼

LibM: Implement fmodf()

Valtteri Koskivuori 5 年之前
父節點
當前提交
61cea6a29d
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      Libraries/LibM/math.cpp

+ 5 - 0
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;