aboutsummaryrefslogtreecommitdiffstats
path: root/src/zcmpu.c
blob: 40e33b67ddde185e5303b5ca1514205884ab1ce5 (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.h"


int
zcmpu(z_t a, unsigned long long int b)
{
	if (unlikely(!b))
		return zsignum(a);
	if (unlikely(zsignum(a) <= 0))
		return -1;
	zsetu(libzahl_tmp_cmp, b);
	return zcmp(a, libzahl_tmp_cmp);
}