| /redis-3.2.3/deps/lua/src/ |
| H A D | ltable.c | 50 #define hashpow2(t,n) (gnode(t, lmod((n), sizenode(t)))) argument 52 #define hashstr(t,str) hashpow2(t, (str)->tsv.hash) argument 53 #define hashboolean(t,p) hashpow2(t, p) argument 60 #define hashmod(t,n) (gnode(t, ((n) % ((sizenode(t)-1)|1)))) argument 63 #define hashpointer(t,p) hashmod(t, IntPoint(p)) argument 311 setobjt2t(L, luaH_setnum(L, t, i+1), &t->array[i]); in resize() 328 int nsize = (t->node == dummynode) ? 0 : sizenode(t); in luaH_resizearray() 370 return t; in luaH_new() 376 luaM_freearray(L, t->node, sizenode(t), Node); in luaH_free() 377 luaM_freearray(L, t->array, t->sizearray, TValue); in luaH_free() [all …]
|
| H A D | lmem.h | 26 #define luaM_freearray(L, b, n, t) luaM_reallocv(L, (b), n, 0, sizeof(t)) argument 28 #define luaM_malloc(L,t) luaM_realloc_(L, NULL, 0, (t)) argument 29 #define luaM_new(L,t) cast(t *, luaM_malloc(L, sizeof(t))) argument 30 #define luaM_newvector(L,n,t) \ argument 31 cast(t *, luaM_reallocv(L, NULL, 0, n, sizeof(t))) 33 #define luaM_growvector(L,v,nelems,size,t,limit,e) \ argument 35 ((v)=cast(t *, luaM_growaux_(L,v,&(size),sizeof(t),limit,e))) 37 #define luaM_reallocvector(L, v,oldn,n,t) \ argument 38 ((v)=cast(t *, luaM_reallocv(L, v, oldn, n, sizeof(t))))
|
| H A D | ltable.h | 13 #define gnode(t,i) (&(t)->node[i]) argument 21 LUAI_FUNC const TValue *luaH_getnum (Table *t, int key); 22 LUAI_FUNC TValue *luaH_setnum (lua_State *L, Table *t, int key); 23 LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key); 24 LUAI_FUNC TValue *luaH_setstr (lua_State *L, Table *t, TString *key); 25 LUAI_FUNC const TValue *luaH_get (Table *t, const TValue *key); 26 LUAI_FUNC TValue *luaH_set (lua_State *L, Table *t, const TValue *key); 28 LUAI_FUNC void luaH_resizearray (lua_State *L, Table *t, int nasize); 29 LUAI_FUNC void luaH_free (lua_State *L, Table *t); 30 LUAI_FUNC int luaH_next (lua_State *L, Table *t, StkId key); [all …]
|
| H A D | lauxlib.c | 148 tag_error(L, narg, t); in luaL_checktype() 303 t = abs_index(L, t); in luaL_setn() 305 lua_rawget(L, t); in luaL_setn() 309 lua_rawset(L, t); in luaL_setn() 313 lua_pushvalue(L, t); in luaL_setn() 323 t = abs_index(L, t); in luaL_getn() 325 lua_rawget(L, t); in luaL_getn() 328 lua_pushvalue(L, t); in luaL_getn() 483 t = abs_index(L, t); in luaL_ref() 499 lua_rawseti(L, t, ref); in luaL_ref() [all …]
|
| H A D | lgc.h | 89 #define luaC_barriert(L,t,v) { if (valiswhite(v) && isblack(obj2gco(t))) \ argument 90 luaC_barrierback(L,t); } 96 #define luaC_objbarriert(L,t,o) \ argument 97 { if (iswhite(obj2gco(o)) && isblack(obj2gco(t))) luaC_barrierback(L,t); } 107 LUAI_FUNC void luaC_barrierback (lua_State *L, Table *t);
|
| H A D | lapi.c | 250 return (t == LUA_TNONE) ? "no value" : luaT_typenames[t]; in lua_typename() 269 return (t == LUA_TSTRING || t == LUA_TNUMBER); in lua_isstring() 535 StkId t; in lua_gettable() local 537 t = index2adr(L, idx); in lua_gettable() 545 StkId t; in lua_getfield() local 548 t = index2adr(L, idx); in lua_getfield() 558 StkId t; in lua_rawget() local 646 StkId t; in lua_settable() local 658 StkId t; in lua_setfield() local 672 StkId t; in lua_rawset() local [all …]
|
| H A D | lparser.c | 58 if (ls->t.token == TK_NAME || ls->t.token == TK_STRING) { in anchor_token() 81 if (ls->t.token == c) { in testnext() 90 if (ls->t.token != c) in check() 120 ts = ls->t.seminfo.ts; in str_checkname() 127 e->f = e->t = NO_JUMP; in init_exp() 505 cc.t = t; in constructor() 514 switch(ls->t.token) { in constructor() 614 switch (ls->t.token) { in funcargs() 669 switch (ls->t.token) { in prefixexp() 730 switch (ls->t.token) { in simpleexp() [all …]
|
| H A D | loslib.c | 126 time_t t = luaL_opt(L, (time_t)luaL_checknumber, 2, time(NULL)); in os_date() local 129 stm = gmtime(&t); in os_date() 133 stm = localtime(&t); in os_date() 171 time_t t; in os_time() local 173 t = time(NULL); /* get current time */ in os_time() 185 t = mktime(&ts); in os_time() 187 if (t == (time_t)(-1)) in os_time() 190 lua_pushnumber(L, (lua_Number)t); in os_time()
|
| /redis-3.2.3/deps/jemalloc/test/unit/ |
| H A D | atomic.c | 13 {(t)-1, (t)-1, (t)-2}, \ 14 {(t)-1, (t) 0, (t)-2}, \ 15 {(t)-1, (t) 1, (t)-2}, \ 17 {(t) 0, (t)-1, (t)-2}, \ 18 {(t) 0, (t) 0, (t)-2}, \ 19 {(t) 0, (t) 1, (t)-2}, \ 21 {(t) 1, (t)-1, (t)-2}, \ 22 {(t) 1, (t) 0, (t)-2}, \ 23 {(t) 1, (t) 1, (t)-2}, \ 25 {(t)0, (t)-(1 << 22), (t)-2}, \ [all …]
|
| H A D | qr.c | 29 ring_t *t; in test_independent_entries() local 34 qr_foreach(t, &entries[i], link) { in test_independent_entries() 51 t = qr_next(&entries[i], link); in test_independent_entries() 52 assert_ptr_eq(t, &entries[i], in test_independent_entries() 57 t = qr_prev(&entries[i], link); in test_independent_entries() 58 assert_ptr_eq(t, &entries[i], in test_independent_entries() 76 ring_t *t; in test_entries_ring() local 122 ring_t *t; in TEST_BEGIN() local 151 ring_t *t; in TEST_BEGIN() local 189 ring_t *t; in test_split_entries() local [all …]
|
| H A D | ql.c | 17 list_t *t; in test_empty_list() local 25 ql_foreach(t, head, link) { in test_empty_list() 31 ql_reverse_foreach(t, head, link) { in test_empty_list() 60 list_t *t; in test_entries_list() local 68 ql_foreach(t, head, link) { in test_entries_list() 69 assert_c_eq(t->id, entries[i].id, "Element id mismatch"); in test_entries_list() 74 ql_reverse_foreach(t, head, link) { in test_entries_list() 75 assert_c_eq(t->id, entries[nentries-i-1].id, in test_entries_list() 81 t = ql_next(head, &entries[i], link); in test_entries_list() 82 assert_c_eq(t->id, entries[i+1].id, "Element id mismatch"); in test_entries_list() [all …]
|
| H A D | mallctl.c | 153 t oldval; \ in TEST_BEGIN() 499 t name; \ in TEST_BEGIN() 500 size_t sz = sizeof(t); \ in TEST_BEGIN() 520 t name; \ in TEST_BEGIN() 521 size_t sz = sizeof(t); \ in TEST_BEGIN() 539 t name; \ in TEST_BEGIN() 540 size_t sz = sizeof(t); \ in TEST_BEGIN() 556 t name; \ in TEST_BEGIN() 557 size_t sz = sizeof(t); \ in TEST_BEGIN() 591 t name; \ in TEST_BEGIN() [all …]
|
| /redis-3.2.3/deps/lua/test/ |
| H A D | trace-calls.lua | 7 local t=debug.getinfo(3) 9 if t~=nil and t.currentline>=0 then io.write(t.short_src,":",t.currentline," ") end 10 t=debug.getinfo(2) 16 if t.what=="main" then 18 io.write("begin ",t.short_src) 20 io.write("end ",t.short_src) 22 elseif t.what=="Lua" then 24 io.write(event," ",t.name or "(Lua)"," <",t.linedefined,":",t.short_src,">") 26 io.write(event," ",t.name or "(C)"," [",t.what,"] ")
|
| H A D | trace-globals.lua | 15 local t=debug.getinfo(3,"Sl") 16 local line=t.currentline 17 io.write(t.short_src) 23 local set=function (t,name,value)
|
| H A D | life.lua | 17 local t = {w=w,h=h} 19 t[y] = {} 21 t[y][x]=0 24 return t
|
| /redis-3.2.3/src/ |
| H A D | endianconv.c | 52 t = x[0]; in memrev16() 54 x[1] = t; in memrev16() 62 t = x[0]; in memrev32() 64 x[3] = t; in memrev32() 65 t = x[1]; in memrev32() 67 x[2] = t; in memrev32() 75 t = x[0]; in memrev64() 77 x[7] = t; in memrev64() 78 t = x[1]; in memrev64() 80 x[6] = t; in memrev64() [all …]
|
| H A D | rdb.h | 89 #define rdbIsObjectType(t) ((t >= 0 && t <= 4) || (t >= 9 && t <= 14)) argument 101 int rdbSaveTime(rio *rdb, time_t t);
|
| H A D | sds.c | 381 memcpy(s+curlen, t, len); in sdscatlen() 391 sds sdscat(sds s, const char *t) { in sdscat() argument 392 return sdscatlen(s, t, strlen(t)); in sdscat() 400 return sdscatlen(s, t, sdslen(t)); in sdscatsds() 410 memcpy(s, t, len); in sdscpylen() 419 return sdscpylen(s, t, strlen(t)); in sdscpy() 533 t = sdscat(s, buf); in sdscatvprintf() 535 return t; in sdscatvprintf() 556 char *t; in sdscatprintf() local 558 t = sdscatvprintf(s,fmt,ap); in sdscatprintf() [all …]
|
| /redis-3.2.3/deps/lua/etc/ |
| H A D | strict.lua | 24 mt.__newindex = function (t, n, v) 32 rawset(t, n, v) 35 mt.__index = function (t, n) 39 return rawget(t, n)
|
| /redis-3.2.3/deps/jemalloc/test/src/ |
| H A D | test.c | 64 p_test(test_t *t, ...) in p_test() argument 82 va_start(ap, t); in p_test() 83 for (; t != NULL; t = va_arg(ap, test_t *)) { in p_test() 84 t(); in p_test()
|
| /redis-3.2.3/deps/jemalloc/test/ |
| H A D | test.sh.in | 22 for t in $@; do 26 echo "=== ${t} ===" 27 ${t}@exe@ @abs_srcroot@ @abs_objroot@
|
| /redis-3.2.3/deps/jemalloc/test/include/test/ |
| H A D | math.h | 224 double e, aa, xx, c, ch, a, q, p1, p2, t, x, b, s1, s2, s3, s4, s5, s6; in pt_chi2() local 262 t = -0.5 + (4.67 + 2.0 * ch) / p1 - (6.73 + ch in pt_chi2() 265 c * aa) * p2 / p1) / t; in pt_chi2() 279 t = p2 * exp(xx * aa + ln_gamma_df_2 + p1 - c * log(ch)); in pt_chi2() 280 b = t / ch; in pt_chi2() 281 a = 0.5 * t - b * c; in pt_chi2() 291 ch += t * (1.0 + 0.5 * t * s1 - b * c * (s1 - b * (s2 - b * (s3 in pt_chi2()
|
| /redis-3.2.3/deps/jemalloc/include/jemalloc/internal/ |
| H A D | atomic.h | 74 uint64_t t = x; in atomic_add_uint64() local 78 : "+r" (t), "=m" (*p) /* Outputs. */ in atomic_add_uint64() 82 return (t + x); in atomic_add_uint64() 88 uint64_t t; in atomic_sub_uint64() local 91 t = x; in atomic_sub_uint64() 98 return (t + x); in atomic_sub_uint64() 298 uint32_t t = x; in atomic_add_uint32() local 306 return (t + x); in atomic_add_uint32() 312 uint32_t t; in atomic_sub_uint32() local 315 t = x; in atomic_sub_uint32() [all …]
|
| H A D | ql.h | 68 a_type *t = ql_first(a_head); \ 69 ql_remove((a_head), t, a_field); \ 73 a_type *t = ql_last(a_head, a_field); \ 74 ql_remove((a_head), t, a_field); \
|
| /redis-3.2.3/deps/hiredis/ |
| H A D | sds.c | 381 memcpy(s+curlen, t, len); in sdscatlen() 391 sds sdscat(sds s, const char *t) { in sdscat() argument 392 return sdscatlen(s, t, strlen(t)); in sdscat() 400 return sdscatlen(s, t, sdslen(t)); in sdscatsds() 410 memcpy(s, t, len); in sdscpylen() 419 return sdscpylen(s, t, strlen(t)); in sdscpy() 533 t = sdscat(s, buf); in sdscatvprintf() 535 return t; in sdscatvprintf() 556 char *t; in sdscatprintf() local 558 t = sdscatvprintf(s,fmt,ap); in sdscatprintf() [all …]
|