aboutsummaryrefslogtreecommitdiffstats
path: root/math/fabsf.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/fabsf.c')
-rw-r--r--math/fabsf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/math/fabsf.c b/math/fabsf.c
new file mode 100644
index 0000000..c783069
--- /dev/null
+++ b/math/fabsf.c
@@ -0,0 +1,3 @@
+#include "maths.h"
+
+float fabsf(float n) { return n < 0 ? -n : n; }