Searched refs:ref (Results 1 – 7 of 7) sorted by relevance
| /redis-3.2.3/src/ |
| H A D | lzf_c.c | 113 const u8 *ref; in lzf_compress() local 152 && (off = ip - ref - 1) < MAX_OFF in lzf_compress() 153 && ref > (u8 *)in_data in lzf_compress() 154 && ref[2] == ip[2] in lzf_compress() 156 && ((ref[1] << 8) | ref[0]) == ((ip[1] << 8) | ip[0]) in lzf_compress() 158 && *(u16 *)ref == *(u16 *)ip in lzf_compress() 178 len++; if (ref [len] != ip [len]) break; in lzf_compress() 179 len++; if (ref [len] != ip [len]) break; in lzf_compress() 180 len++; if (ref [len] != ip [len]) break; in lzf_compress() 181 len++; if (ref [len] != ip [len]) break; in lzf_compress() [all …]
|
| H A D | lzf_d.c | 127 ref -= *ip++; in lzf_decompress() 135 if (ref < (u8 *)out_data) in lzf_decompress() 143 lzf_movsb (op, ref, len); in lzf_decompress() 150 if (op >= ref + len) in lzf_decompress() 160 *op++ = *ref++; in lzf_decompress() 166 case 9: *op++ = *ref++; in lzf_decompress() 167 case 8: *op++ = *ref++; in lzf_decompress() 168 case 7: *op++ = *ref++; in lzf_decompress() 169 case 6: *op++ = *ref++; in lzf_decompress() 170 case 5: *op++ = *ref++; in lzf_decompress() [all …]
|
| H A D | mkreleasehdr.sh | 2 GIT_SHA1=`(git show-ref --head --hash=8 2> /dev/null || echo 00000000) | head -n1`
|
| H A D | ziplist.c | 1683 list *ref; in ziplistTest() local 1693 ref = listCreate(); in ziplistTest() 1694 listSetFreeMethod(ref,(void (*)(void*))sdsfree); in ziplistTest() 1723 listAddNodeHead(ref,sdsnewlen(buf, buflen)); in ziplistTest() 1725 listAddNodeTail(ref,sdsnewlen(buf, buflen)); in ziplistTest() 1731 assert(listLength(ref) == ziplistLen(zl)); in ziplistTest() 1736 refnode = listIndex(ref,j); in ziplistTest() 1749 listRelease(ref); in ziplistTest()
|
| H A D | sentinel.c | 4172 sentinelRedisInstance *ref = master->promoted_slave ? in sentinelFailoverSwitchToPromotedSlave() local 4177 ref->addr->ip, ref->addr->port); in sentinelFailoverSwitchToPromotedSlave() 4179 sentinelResetMasterAndChangeAddress(master,ref->addr->ip,ref->addr->port); in sentinelFailoverSwitchToPromotedSlave()
|
| /redis-3.2.3/deps/lua/src/ |
| H A D | lauxlib.h | 75 LUALIB_API void (luaL_unref) (lua_State *L, int t, int ref); 165 #define lua_unref(L,ref) luaL_unref(L, LUA_REGISTRYINDEX, (ref)) argument 167 #define lua_getref(L,ref) lua_rawgeti(L, LUA_REGISTRYINDEX, (ref)) argument
|
| H A D | lauxlib.c | 482 int ref; in luaL_ref() local 491 if (ref != 0) { /* any free element? */ in luaL_ref() 492 lua_rawgeti(L, t, ref); /* remove it from list */ in luaL_ref() 496 ref = (int)lua_objlen(L, t); in luaL_ref() 497 ref++; /* create new reference */ in luaL_ref() 499 lua_rawseti(L, t, ref); in luaL_ref() 500 return ref; in luaL_ref() 504 LUALIB_API void luaL_unref (lua_State *L, int t, int ref) { in luaL_unref() argument 505 if (ref >= 0) { in luaL_unref() 508 lua_rawseti(L, t, ref); /* t[ref] = t[FREELIST_REF] */ in luaL_unref() [all …]
|