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