aboutsummaryrefslogtreecommitdiffstats
path: root/src/zcmpu.c
blob: 577a0f43229be4e5f932abef77c2d24fbf12c50b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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);
}