| /redis-3.2.3/src/ |
| H A D | dict.c | 171 dict *d = zmalloc(sizeof(*d)); in dictCreate() local 259 de = d->ht[0].table[d->rehashidx]; in dictRehash() 280 d->ht[0] = d->ht[1]; in dictRehash() 318 if (d->iterators == 0) dictRehash(d,1); in _dictRehashStep() 363 ht = dictIsRehashing(d) ? &d->ht[1] : &d->ht[0]; in dictAddRaw() 487 _dictClear(d,&d->ht[0],NULL); in dictRelease() 488 _dictClear(d,&d->ht[1],NULL); in dictRelease() 562 iter->d = d; in dictGetIterator() 641 he = (h >= d->ht[0].size) ? d->ht[1].table[h - d->ht[0].size] : in dictGetRandomKey() 991 _dictClear(d,&d->ht[0],callback); in dictEmpty() [all …]
|
| H A D | dict.h | 53 double d; member 89 dict *d; member 105 (d)->type->valDestructor((d)->privdata, (entry)->v.val) 109 entry->v.val = (d)->type->valDup((d)->privdata, _val_); \ 125 (d)->type->keyDestructor((d)->privdata, (entry)->key) 129 entry->key = (d)->type->keyDup((d)->privdata, _key_); \ 136 (d)->type->keyCompare((d)->privdata, key1, key2) : \ 139 #define dictHashKey(d, key) (d)->type->hashFunction(key) argument 145 #define dictSlots(d) ((d)->ht[0].size+(d)->ht[1].size) argument 146 #define dictSize(d) ((d)->ht[0].used+(d)->ht[1].used) argument [all …]
|
| H A D | sha1.c | 81 R0(a,b,c,d,e, 0); R0(e,a,b,c,d, 1); R0(d,e,a,b,c, 2); R0(c,d,e,a,b, 3); in SHA1Transform() 82 R0(b,c,d,e,a, 4); R0(a,b,c,d,e, 5); R0(e,a,b,c,d, 6); R0(d,e,a,b,c, 7); in SHA1Transform() 83 R0(c,d,e,a,b, 8); R0(b,c,d,e,a, 9); R0(a,b,c,d,e,10); R0(e,a,b,c,d,11); in SHA1Transform() 84 R0(d,e,a,b,c,12); R0(c,d,e,a,b,13); R0(b,c,d,e,a,14); R0(a,b,c,d,e,15); in SHA1Transform() 85 R1(e,a,b,c,d,16); R1(d,e,a,b,c,17); R1(c,d,e,a,b,18); R1(b,c,d,e,a,19); in SHA1Transform() 86 R2(a,b,c,d,e,20); R2(e,a,b,c,d,21); R2(d,e,a,b,c,22); R2(c,d,e,a,b,23); in SHA1Transform() 87 R2(b,c,d,e,a,24); R2(a,b,c,d,e,25); R2(e,a,b,c,d,26); R2(d,e,a,b,c,27); in SHA1Transform() 88 R2(c,d,e,a,b,28); R2(b,c,d,e,a,29); R2(a,b,c,d,e,30); R2(e,a,b,c,d,31); in SHA1Transform() 89 R2(d,e,a,b,c,32); R2(c,d,e,a,b,33); R2(b,c,d,e,a,34); R2(a,b,c,d,e,35); in SHA1Transform() 90 R2(e,a,b,c,d,36); R2(d,e,a,b,c,37); R2(c,d,e,a,b,38); R2(b,c,d,e,a,39); in SHA1Transform() [all …]
|
| H A D | pqsort.c | 103 size_t d, r; in _pqsort() local 119 d = (n / 8) * es; in _pqsort() 120 pl = med3(pl, pl + d, pl + 2 * d, cmp); in _pqsort() 121 pm = med3(pm - d, pm, pm + d, cmp); in _pqsort() 122 pn = med3(pn - 2 * d, pn - d, pn, cmp); in _pqsort()
|
| H A D | t_set.c | 249 dict *d = dictCreate(&setDictType,NULL); in setTypeConvert() local 253 dictExpand(d,intsetLen(setobj->ptr)); in setTypeConvert() 266 setobj->ptr = d; in setTypeConvert() 630 dict *d; in srandmemberWithCountCommand() local 678 d = dictCreate(&setDictType,NULL); in srandmemberWithCountCommand() 705 serverAssert(dictSize(d) == size); in srandmemberWithCountCommand() 711 de = dictGetRandomKey(d); in srandmemberWithCountCommand() 712 dictDelete(d,dictGetKey(de)); in srandmemberWithCountCommand() 734 if (dictAdd(d,ele,NULL) == DICT_OK) in srandmemberWithCountCommand() 747 di = dictGetIterator(d); in srandmemberWithCountCommand() [all …]
|
| H A D | object.c | 164 robj *d; in dupStringObject() local 174 d = createObject(OBJ_STRING, NULL); in dupStringObject() 175 d->encoding = OBJ_ENCODING_INT; in dupStringObject() 176 d->ptr = o->ptr; in dupStringObject() 177 return d; in dupStringObject() 199 dict *d = dictCreate(&setDictType,NULL); in createSetObject() local 200 robj *o = createObject(OBJ_SET,d); in createSetObject()
|
| /redis-3.2.3/utils/hashtable/ |
| H A D | rehashing.c | 48 void show(dict *d) { in show() argument 50 if (d->rehashidx != -1) { in show() 57 showBuckets(d->ht[0]); in show() 59 showBuckets(d->ht[1]); in show() 108 show(d); in main() 113 dictDelete(d,(void*)i); in main() 114 dictResize(d); in main() 115 show(d); in main() 117 dictRelease(d); in main() 131 dictResize(d); in main() [all …]
|
| /redis-3.2.3/tests/unit/ |
| H A D | aofrw.tcl | 79 foreach d {string int} { 81 test "AOF rewrite of list with $e encoding, $d data" { 85 if {$d eq {string}} { 105 foreach d {string int} { 107 test "AOF rewrite of set with $e encoding, $d data" { 111 if {$d eq {string}} { 118 if {$d ne {string}} { 133 foreach d {string int} { 139 if {$d eq {string}} { 159 foreach d {string int} { [all …]
|
| H A D | sort.tcl | 123 r zadd zset 10 d 126 } {e d c b a} 133 r zadd zset 10 d 139 } {{a c e b d} {d b e c a}} 146 r zadd zset 10 d 161 r zadd zset 10 d 167 } {{a c e b d} {d b e c a}} 174 r zadd zset 1000000 d 178 } {min c a b d max} 213 } {a aa aaa azz b c d e f g h i l m n o p q r s t u v z} [all …]
|
| H A D | dump.tcl | 99 r lpush list a b c d 118 r lpush list a b c d 278 r mset a 1 b 2 c 3 d 4 c 5 e 6 f 7 g 8 h 9 i 10 l 11 m 12 n 13 o 14 p 15 q 16 284 … set ret [r -1 migrate $second_host $second_port "" 9 5000 keys a b c d e f g h i l m n o p q] 294 r mset a 1 b 2 c 3 d 4 c 5 e 6 f 7 g 8 h 9 i 10 l 11 m 12 n 13 o 14 p 15 q 16 300 $second mset c _ d _; # Two busy keys and no REPLACE used 302 … catch {r -1 migrate $second_host $second_port "" 9 5000 keys a b c d e f g h i l m n o p q} e 307 assert {[$first exists d] == 1}
|
| H A D | scripting.tcl | 38 r eval {return {KEYS[1],KEYS[2],ARGV[1],ARGV[2]}} 2 a b c d 39 } {a b c d} 303 r sadd myset a b c d e f g h i l m n o p q r s t u v z aa aaa azz 305 } {a aa aaa azz b c d e f g h i l m n o p q r s t u v z} 317 } {a aa aaa azz b c d e f g h i l m n o p q r s t u v z} 419 r mset a 1 b 2 c 3 d 4 423 assert {[r mget a b c d] eq {1 2 3 4}} 676 r del a b c d 689 [r -1 mget a b c d] eq {1 {} {} 4} 695 assert {[r mget a b c d] eq {1 2 3 4}} [all …]
|
| /redis-3.2.3/tests/unit/type/ |
| H A D | zset.tcl | 188 r zrem ztmp a b c d e f g 196 r zadd ztmp 4 d 200 assert_equal {b c d} [r zrange ztmp 1 -1] 202 assert_equal {c d} [r zrange ztmp -2 -1] 212 assert_equal {a b c d} [r zrange ztmp 0 5] 213 assert_equal {b c d} [r zrange ztmp 1 5] 226 r zadd ztmp 4 d 237 assert_equal {d c} [r zrevrange ztmp -5 1] 466 assert_equal {d e} [r zrange zset 0 -1] 486 assert_equal {d e} [r zrange zset 0 -1] [all …]
|
| /redis-3.2.3/deps/lua/src/ |
| H A D | lauxlib.h | 103 #define luaL_optstring(L,n,d) (luaL_optlstring(L, (n), (d), NULL)) argument 105 #define luaL_optint(L,n,d) ((int)luaL_optinteger(L, (n), (d))) argument 107 #define luaL_optlong(L,n,d) ((long)luaL_optinteger(L, (n), (d))) argument 119 #define luaL_opt(L,f,n,d) (lua_isnoneornil(L,(n)) ? (d) : f(L,(n))) argument
|
| H A D | lua_struct.c | 67 double d; member 240 double d = luaL_checknumber(L, arg++); in b_pack() local 241 correctbytes((char *)&d, size, h.endian); in b_pack() 242 luaL_addlstring(&b, (char *)&d, size); in b_pack() 326 double d; in b_unpack() local 327 memcpy(&d, data+pos, size); in b_unpack() 328 correctbytes((char *)&d, sizeof(d), h.endian); in b_unpack() 329 lua_pushnumber(L, d); in b_unpack()
|
| H A D | luaconf.h | 563 #define lua_number2int(i,d) __asm fld d __asm fistp i argument 571 #define lua_number2int(i,d) \ argument 572 { volatile union luai_Cast u; u.l_d = (d) + 6755399441055744.0; (i) = u.l_l; } 580 #define lua_number2int(i,d) ((i)=(int)(d)) argument 581 #define lua_number2integer(i,d) ((i)=(lua_Integer)(d)) argument
|
| H A D | lmathlib.c | 158 lua_Number d = luaL_checknumber(L, i); in math_min() local 159 if (d < dmin) in math_min() 160 dmin = d; in math_min() 172 lua_Number d = luaL_checknumber(L, i); in math_max() local 173 if (d > dmax) in math_max() 174 dmax = d; in math_max()
|
| H A D | lua_cmsgpack.c | 203 void mp_encode_double(lua_State *L, mp_buf *buf, double d) { in mp_encode_double() argument 205 float f = d; in mp_encode_double() 207 assert(sizeof(f) == 4 && sizeof(d) == 8); in mp_encode_double() 208 if (d == (double)f) { in mp_encode_double() 213 } else if (sizeof(d) == 8) { in mp_encode_double() 215 memcpy(b+1,&d,8); in mp_encode_double() 684 double d; in mp_decode_to_lua_type() local 685 memcpy(&d,c->p+1,8); in mp_decode_to_lua_type() 686 memrevifle(&d,8); in mp_decode_to_lua_type() 687 lua_pushnumber(L,d); in mp_decode_to_lua_type()
|
| /redis-3.2.3/deps/jemalloc/test/unit/ |
| H A D | tsd.c | 58 data_t d = (data_t)(uintptr_t)arg; in malloc_tsd_externs() local 67 data_tsd_set(&d); in malloc_tsd_externs() 68 assert_x_eq(*data_tsd_get(), d, in malloc_tsd_externs() 71 d = 0; in malloc_tsd_externs()
|
| /redis-3.2.3/tests/support/ |
| H A D | util.tcl | 175 set d [expr {rand()}] 177 set d [expr {rand()}] 179 set d [expr {rand()}] 181 set d [expr {rand()}] 183 set d [expr {rand()}] 185 randpath {set d +inf} {set d -inf} 197 {*}$r zadd $k $d $v 234 randpath {{*}$r zadd $k $d $v} \
|
| /redis-3.2.3/deps/lua/etc/ |
| H A D | strict.lua | 20 local d = getinfo(3, "S") 21 return d and d.what or "C"
|
| /redis-3.2.3/deps/jemalloc/ |
| H A D | Makefile.in | 204 -include $(C_OBJS:%.$(O)=%.d) 205 -include $(C_PIC_OBJS:%.$(O)=%.d) 206 -include $(C_JET_OBJS:%.$(O)=%.d) 208 -include $(TESTS_OBJS:%.$(O)=%.d) 322 @for d in $(DOCS_HTML); do \ 329 @for d in $(DOCS_MAN3); do \ 400 rm -f $(C_OBJS:%.$(O)=%.d) 403 rm -f $(C_PIC_OBJS:%.$(O)=%.d) 406 rm -f $(C_JET_OBJS:%.$(O)=%.d) 409 rm -f $(C_TESTLIB_OBJS:%.$(O)=%.d) [all …]
|
| /redis-3.2.3/deps/geohash-int/ |
| H A D | geohash.c | 224 static void geohash_move_x(GeoHashBits *hash, int8_t d) { in geohash_move_x() argument 225 if (d == 0) in geohash_move_x() 233 if (d > 0) { in geohash_move_x() 244 static void geohash_move_y(GeoHashBits *hash, int8_t d) { in geohash_move_y() argument 245 if (d == 0) in geohash_move_y() 252 if (d > 0) { in geohash_move_y()
|
| /redis-3.2.3/utils/ |
| H A D | install_server.sh | 234 elif command -v update-rc.d >/dev/null 2>&1; then 236 update-rc.d redis_${REDIS_PORT} defaults && echo "Success!" 241 /etc/init.d/redis_$REDIS_PORT start || die "Failed starting service..."
|
| /redis-3.2.3/deps/jemalloc/test/src/ |
| H A D | SFMT.c | 245 w128_t *d) { in do_recursion() argument 252 ^ (d->u[0] << SL1); in do_recursion() 254 ^ (d->u[1] << SL1); in do_recursion() 256 ^ (d->u[2] << SL1); in do_recursion() 258 ^ (d->u[3] << SL1); in do_recursion() 262 w128_t *d) { in do_recursion() argument 269 ^ (d->u[0] << SL1); in do_recursion() 271 ^ (d->u[1] << SL1); in do_recursion() 273 ^ (d->u[2] << SL1); in do_recursion() 275 ^ (d->u[3] << SL1); in do_recursion()
|
| /redis-3.2.3/deps/jemalloc/bin/ |
| H A D | jeprof.in | 3439 if (! -d $profile_dir) { 3872 $i += $d; 3893 $i += $d; 4964 my $d = shift; 4967 return $d; 5332 printf STDERR "AddressAdd 32-bit tests: %d passes, %d failures\n", 5352 printf STDERR "AddressAdd 64-bit tests: %d passes, %d failures\n", 5384 printf STDERR "AddressSub 32-bit tests: %d passes, %d failures\n", 5403 printf STDERR "AddressSub 64-bit tests: %d passes, %d failures\n", 5435 printf STDERR "AddressInc 32-bit tests: %d passes, %d failures\n", [all …]
|