aboutsummaryrefslogtreecommitdiffstats
path: root/src/zcmpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/zcmpu.c')
-rw-r--r--src/zcmpu.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/zcmpu.c b/src/zcmpu.c
new file mode 100644
index 0000000..577a0f4
--- /dev/null
+++ b/src/zcmpu.c
@@ -0,0 +1,14 @@
+/* See LICENSE file for copyright and license details. */
+#include "internals"
+
+
+int
+zcmpu(z_t a, unsigned long long int b)
+{
+ if (!b)
+ return zsignum(a);
+ if (zsignum(a) <= 0)
+ return -1;
+ zsetu(zahl_tmp_cmp, b);
+ return zcmp(a, zahl_tmp_cmp);
+}