in include/yyjson/yyjson.c [4207:4218]
static_inline i32 bigint_cmp(bigint *a, bigint *b) {
u32 idx = a->used;
if (a->used < b->used) return -1;
if (a->used > b->used) return +1;
while (idx-- > 0) {
u64 av = a->bits[idx];
u64 bv = b->bits[idx];
if (av < bv) return -1;
if (av > bv) return +1;
}
return 0;
}