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