about summary refs log tree commit diff
path: root/src/stdlib/llabs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdlib/llabs.c')
-rw-r--r--src/stdlib/llabs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/stdlib/llabs.c b/src/stdlib/llabs.c
new file mode 100644
index 00000000..bec4a03d
--- /dev/null
+++ b/src/stdlib/llabs.c
@@ -0,0 +1,4 @@
+long long llabs(long long a)
+{
+	return a>0 ? a : -a;
+}