summaryrefslogtreecommitdiff
path: root/LibM
diff options
context:
space:
mode:
Diffstat (limited to 'LibM')
-rw-r--r--LibM/math.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/LibM/math.cpp b/LibM/math.cpp
index d707c51c86..3637da62ab 100644
--- a/LibM/math.cpp
+++ b/LibM/math.cpp
@@ -91,4 +91,9 @@ double acos(double)
ASSERT_NOT_REACHED();
}
+double fabs(double value)
+{
+ return value < 0 ? -value : value;
+}
+
}