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

Function weight_cmp

strings/uca-dump.c:472–482  ·  view source on GitHub ↗

Compare two weight strings. Return 1 if weight string differ Return 0 if weigh string are equal */

Source from the content-addressed store, hash-verified

470 Return 0 if weigh string are equal
471*/
472static int
473weight_cmp(uint16 *w1, uint16 *w2, size_t len)
474{
475 size_t i;
476 for (i= 0; i < len; i++)
477 {
478 if (w1[i] != w2[i])
479 return 1;
480 }
481 return 0;
482}
483
484
485static void

Callers 1

print_contractionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected