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

Function decimal_is_zero

strings/decimal.c:2055–2063  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2053}
2054
2055int decimal_is_zero(const decimal_t *from)
2056{
2057 dec1 *buf1=from->buf,
2058 *end=buf1+ROUND_UP(from->intg)+ROUND_UP(from->frac);
2059 while (buf1 < end)
2060 if (*buf1++)
2061 return 0;
2062 return 1;
2063}
2064
2065/*
2066 multiply two decimals

Callers 2

my_decimal_is_zeroFunction · 0.85
my_decimal_negFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected