Home
last modified time | relevance | path

Searched refs:l1 (Results 1 – 11 of 11) sorted by relevance

/redis-3.2.3/src/
H A Dmemtest.c148 l1 = l+off; in memtest_fill_random()
149 l2 = l1+words; in memtest_fill_random()
153 l1 += step; in memtest_fill_random()
173 l1 = l+off; in memtest_fill_value()
174 l2 = l1+words; in memtest_fill_value()
186 l1 += step; in memtest_fill_value()
199 l1 = l; in memtest_compare()
200 l2 = l1+words; in memtest_compare()
202 if (*l1 != *l2) { in memtest_compare()
205 (void*)l1, (void*)l2, *l1, *l2); in memtest_compare()
[all …]
H A Dsds.c768 size_t l1, l2, minlen; in sdscmp() local
771 l1 = sdslen(s1); in sdscmp()
773 minlen = (l1 < l2) ? l1 : l2; in sdscmp()
775 if (cmp == 0) return l1-l2; in sdscmp()
H A Dserver.c440 int l1,l2; in dictSdsKeyCompare() local
443 l1 = sdslen((sds)key1); in dictSdsKeyCompare()
445 if (l1 != l2) return 0; in dictSdsKeyCompare()
446 return memcmp(key1, key2, l1) == 0; in dictSdsKeyCompare()
/redis-3.2.3/deps/lua/src/
H A Dlstring.c79 size_t l1; in luaS_newlstr() local
80 for (l1=l; l1>=step; l1-=step) /* compute hash */ in luaS_newlstr()
81 h = h ^ ((h<<5)+(h>>2)+cast(unsigned char, str[l1-1])); in luaS_newlstr()
H A Dlstrlib.c444 static const char *lmemfind (const char *s1, size_t l1, in lmemfind() argument
447 else if (l2 > l1) return NULL; /* avoids a negative `l1' */ in lmemfind()
451 l1 = l1-l2; /* `s2' cannot be found after that */ in lmemfind()
452 while (l1 > 0 && (init = (const char *)memchr(s1, *s2, l1)) != NULL) { in lmemfind()
457 l1 -= init-s1; in lmemfind()
496 size_t l1, l2; in str_find_aux() local
497 const char *s = luaL_checklstring(L, 1, &l1); in str_find_aux()
499 ptrdiff_t init = posrelat(luaL_optinteger(L, 3, 1), l1) - 1; in str_find_aux()
501 else if ((size_t)(init) > l1) init = (ptrdiff_t)l1; in str_find_aux()
505 const char *s2 = lmemfind(s+init, l1-init, p, l2); in str_find_aux()
[all …]
H A Dlcode.h68 LUAI_FUNC void luaK_concat (FuncState *fs, int *l1, int l2);
H A Dlcode.c185 void luaK_concat (FuncState *fs, int *l1, int l2) { in luaK_concat() argument
187 else if (*l1 == NO_JUMP) in luaK_concat()
188 *l1 = l2; in luaK_concat()
190 int list = *l1; in luaK_concat()
/redis-3.2.3/deps/hiredis/
H A Dasync.c77 int l1, l2; in callbackKeyCompare() local
80 l1 = sdslen((const sds)key1); in callbackKeyCompare()
82 if (l1 != l2) return 0; in callbackKeyCompare()
83 return memcmp(key1,key2,l1) == 0; in callbackKeyCompare()
H A Dsds.c768 size_t l1, l2, minlen; in sdscmp() local
771 l1 = sdslen(s1); in sdscmp()
773 minlen = (l1 < l2) ? l1 : l2; in sdscmp()
775 if (cmp == 0) return l1-l2; in sdscmp()
/redis-3.2.3/tests/unit/
H A Dsort.tcl74 set l1 [r sort tosort GET # GET weight_*]
76 foreach {id1 w1} $l1 {id2 w2} $l2 {
/redis-3.2.3/tests/unit/type/
H A Dzset.tcl988 set l1 [r zrange myzset 0 -1]
990 for {set j 0} {$j < [llength $l1]} {incr j} {
991 if {[lindex $l1 $j] ne [lindex $l2 end-$j]} {