MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / decimal_cmp

Function decimal_cmp

strings/decimal.c:2048–2053  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2046}
2047
2048int decimal_cmp(const decimal_t *from1, const decimal_t *from2)
2049{
2050 if (likely(from1->sign == from2->sign))
2051 return do_sub(from1, from2, 0);
2052 return from1->sign > from2->sign ? -1 : 1;
2053}
2054
2055int decimal_is_zero(const decimal_t *from)
2056{

Callers 1

my_decimal_cmpFunction · 0.85

Calls 1

do_subFunction · 0.85

Tested by

no test coverage detected