blob: 71391b10f07b2652d23900a69b8e828756393d56 (
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
zcmpi(z_t a, int64_t b)
{
if (unlikely(!b))
return zsignum(a);
if (unlikely(zzero(a)))
return b > 0 ? -1 : b < 0;
zseti(libzahl_tmp_cmp, b);
return zcmp(a, libzahl_tmp_cmp);
}
|