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

Function ptr_compare_2

mysys/ptr_cmp.c:152–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152static int ptr_compare_2(size_t *compare_length,uchar **a, uchar **b)
153{
154 reg3 int length= *compare_length-2;
155 reg1 uchar *first,*last;
156
157 first= *a +2 ; last= *b +2;
158 cmp(-2);
159 cmp(-1);
160 loop:
161 cmp(0);
162 cmp(1);
163 cmp(2);
164 cmp(3);
165 if ((length-=4))
166 {
167 first+=4;
168 last+=4;
169 goto loop;
170 }
171 return (0);
172}
173
174static int ptr_compare_3(size_t *compare_length,uchar **a, uchar **b)
175{

Callers

nothing calls this directly

Calls 1

cmpFunction · 0.85

Tested by

no test coverage detected