Home
last modified time | relevance | path

Searched refs:idx (Results 1 – 25 of 26) sorted by relevance

12

/redis-3.2.3/deps/lua/src/
H A Dlapi.c50 if (idx > 0) { in index2adr()
57 api_check(L, idx != 0 && -idx <= L->top - L->base); in index2adr()
58 return L->top + idx; in index2adr()
70 idx = LUA_GLOBALSINDEX - idx; in index2adr()
166 if (idx >= 0) { in lua_settop()
183 p = index2adr(L, idx); in lua_remove()
195 p = index2adr(L, idx); in lua_insert()
210 o = index2adr(L, idx); in lua_replace()
537 t = index2adr(L, idx); in lua_gettable()
548 t = index2adr(L, idx); in lua_getfield()
[all …]
H A Dlua.h121 LUA_API void (lua_settop) (lua_State *L, int idx);
122 LUA_API void (lua_pushvalue) (lua_State *L, int idx);
123 LUA_API void (lua_remove) (lua_State *L, int idx);
124 LUA_API void (lua_insert) (lua_State *L, int idx);
125 LUA_API void (lua_replace) (lua_State *L, int idx);
177 LUA_API void (lua_gettable) (lua_State *L, int idx);
179 LUA_API void (lua_rawget) (lua_State *L, int idx);
184 LUA_API void (lua_getfenv) (lua_State *L, int idx);
192 LUA_API void (lua_rawset) (lua_State *L, int idx);
195 LUA_API int (lua_setfenv) (lua_State *L, int idx);
[all …]
H A Dlua_bit.c57 static UBits barg(lua_State *L, int idx) in barg() argument
62 bn.n = lua_tonumber(L, idx); in barg()
64 bn.n = luaL_checknumber(L, idx); in barg()
86 if (b == 0 && !lua_isnumber(L, idx)) { in barg()
87 luaL_typerror(L, idx, "number"); in barg()
H A Dluaconf.h278 #define lua_saveline(L,idx) \ argument
279 if (lua_strlen(L,idx) > 0) /* non-empty line? */ \
280 add_history(lua_tostring(L, idx)); /* add it to history */
286 #define lua_saveline(L,idx) { (void)L; (void)idx; } argument
H A Dlcode.c231 TValue *idx = luaH_set(L, fs->h, k); in addk() local
234 if (ttisnumber(idx)) { in addk()
235 lua_assert(luaO_rawequalObj(&fs->f->k[cast_int(nvalue(idx))], v)); in addk()
236 return cast_int(nvalue(idx)); in addk()
239 setnvalue(idx, cast_num(fs->nk)); in addk()
H A Dlvm.c656 lua_Number idx = luai_numadd(nvalue(ra), step); /* increment index */ in luaV_execute() local
658 if (luai_numlt(0, step) ? luai_numle(idx, limit) in luaV_execute()
659 : luai_numle(limit, idx)) { in luaV_execute()
661 setnvalue(ra, idx); /* update internal index... */ in luaV_execute()
662 setnvalue(ra+3, idx); /* ...and external index */ in luaV_execute()
H A Dliolib.c234 static void aux_lines (lua_State *L, int idx, int toclose) { in aux_lines() argument
235 lua_pushvalue(L, idx); in aux_lines()
H A Dlauxlib.h88 LUALIB_API const char *(luaL_findtable) (lua_State *L, int idx,
H A Dlauxlib.c357 LUALIB_API const char *luaL_findtable (lua_State *L, int idx, in luaL_findtable() argument
360 lua_pushvalue(L, idx); in luaL_findtable()
/redis-3.2.3/deps/jemalloc/test/src/
H A DSFMT.c103 int idx; member
452 if (ctx->idx >= N32) { in gen_rand32()
454 ctx->idx = 0; in gen_rand32()
494 if (ctx->idx >= N32) { in gen_rand64()
496 ctx->idx = 0; in gen_rand64()
501 ctx->idx += 2; in gen_rand64()
505 ctx->idx += 2; in gen_rand64()
558 ctx->idx = N32; in fill_array32()
594 ctx->idx = N32; in fill_array64()
625 ctx->idx = N32; in init_gen_rand()
[all …]
/redis-3.2.3/src/
H A Dlatency.c106 ts->idx = 0; in latencyAddSample()
114 prev = (ts->idx + LATENCY_TS_LEN - 1) % LATENCY_TS_LEN; in latencyAddSample()
121 ts->samples[ts->idx].time = time(NULL); in latencyAddSample()
122 ts->samples[ts->idx].latency = latency; in latencyAddSample()
125 ts->idx++; in latencyAddSample()
126 if (ts->idx == LATENCY_TS_LEN) ts->idx = 0; in latencyAddSample()
482 int i = (ts->idx + j) % LATENCY_TS_LEN; in latencyCommandReplyWithSamples()
504 int last = (ts->idx + LATENCY_TS_LEN - 1) % LATENCY_TS_LEN; in latencyCommandReplyWithLatestEvents()
523 int i = (ts->idx + j) % LATENCY_TS_LEN; in latencyCommandGenSparkeline()
H A Ddict.c414 unsigned int h, idx; in dictGenericDelete() local
423 idx = h & d->ht[table].sizemask; in dictGenericDelete()
424 he = d->ht[table].table[idx]; in dictGenericDelete()
432 d->ht[table].table[idx] = he->next; in dictGenericDelete()
495 unsigned int h, idx, table; in dictFind() local
501 idx = h & d->ht[table].sizemask; in dictFind()
502 he = d->ht[table].table[idx]; in dictFind()
968 unsigned int h, idx, table; in _dictKeyIndex() local
977 idx = h & d->ht[table].sizemask; in _dictKeyIndex()
979 he = d->ht[table].table[idx]; in _dictKeyIndex()
[all …]
H A Dhyperloglog.c571 int idx = 0, runlen, regval; in hllSparseToDense() local
592 idx += runlen; in hllSparseToDense()
596 idx += runlen; in hllSparseToDense()
602 HLL_DENSE_SET_REGISTER(hdr->registers,idx,regval); in hllSparseToDense()
603 idx++; in hllSparseToDense()
611 if (idx != HLL_REGISTERS) { in hllSparseToDense()
890 int ez = 0, idx = 0, runlen, regval; in hllSparseSum() local
896 idx += runlen; in hllSparseSum()
902 idx += runlen; in hllSparseSum()
909 idx += runlen; in hllSparseSum()
[all …]
H A Dredis-trib.rb1500 idx = 1 ; # Current index into ARGV
1502 while idx < ARGV.length && ARGV[idx][0..1] == '--'
1503 if ARGV[idx][0..1] == "--"
1504 option = ARGV[idx][2..-1]
1505 idx += 1
1518 value = ARGV[idx]
1519 idx += 1
1548 return options,idx
H A Dlatency.h48 int idx; /* Index of the next sample to store. */ member
H A Dscripting.c55 sds ldbCatStackValue(sds s, lua_State *lua, int idx);
1723 int idx = line-1; in ldbGetSourceLine() local
1724 if (idx < 0 || idx >= ldb.lines) return "<out of range source code line>"; in ldbGetSourceLine()
1725 return ldb.src[idx]; in ldbGetSourceLine()
1855 int t = lua_type(lua,idx); in ldbCatStackValueRec()
1864 char *strp = (char*)lua_tolstring(lua,idx,&strl); in ldbCatStackValueRec()
1872 s = sdscatprintf(s,"%g",(double)lua_tonumber(lua,idx)); in ldbCatStackValueRec()
1887 while (lua_next(lua,idx-1)) { in ldbCatStackValueRec()
1921 const void *p = lua_topointer(lua,idx); in ldbCatStackValueRec()
1939 sds ldbCatStackValue(sds s, lua_State *lua, int idx) { in ldbCatStackValue() argument
[all …]
H A Dquicklist.h143 int direction, const long long idx);
H A Dgeo.c706 int idx = (hash.bits >> (52-((i+1)*5))) & 0x1f; in geohashCommand() local
707 buf[i] = geoalphabet[idx]; in geohashCommand()
H A Dquicklist.c1073 const long long idx) { in quicklistGetIteratorAtIdx() argument
1076 if (quicklistIndex(quicklist, idx, &entry)) { in quicklistGetIteratorAtIdx()
1225 int quicklistIndex(const quicklist *quicklist, const long long idx, in quicklistIndex() argument
1230 int forward = idx < 0 ? 0 : 1; /* < 0 -> reverse, 0+ -> forward */ in quicklistIndex()
1236 index = (-idx) - 1; in quicklistIndex()
1239 index = idx; in quicklistIndex()
H A Dserver.c902 server.inst_metric[metric].samples[server.inst_metric[metric].idx] = in trackInstantaneousMetric()
904 server.inst_metric[metric].idx++; in trackInstantaneousMetric()
905 server.inst_metric[metric].idx %= STATS_METRIC_SAMPLES; in trackInstantaneousMetric()
1840 server.inst_metric[j].idx = 0; in resetServerStats()
/redis-3.2.3/tests/support/
H A Dcluster.tcl58 set idx 0; # Index of the node that will respond.
69 incr idx
79 if {$idx == [llength $::redis_cluster::startup_nodes($id)]} {
85 if {$idx != 0} {
89 set l [concat [lindex $l $idx] $left $right]
/redis-3.2.3/tests/unit/
H A Dpubsub.tcl13 set idx [lsearch -exact $channels [lindex $msg 1]]
15 assert {$idx >= 0}
17 assert {$idx == 0}
19 set channels [lreplace $channels $idx $idx]
/redis-3.2.3/deps/hiredis/
H A Dhiredis.c124 parent->element[task->idx] = r; in createStringObject()
149 parent->element[task->idx] = r; in createArrayObject()
166 parent->element[task->idx] = r; in createIntegerObject()
181 parent->element[task->idx] = r; in createNilObject()
342 if (cur->idx == prv->elements-1) { in moveToNextTask()
346 assert(cur->idx < prv->elements); in moveToNextTask()
349 cur->idx++; in moveToNextTask()
490 r->rstack[r->ridx].idx = 0; in processMultiBulkItem()
634 r->rstack[0].idx = -1; in redisReaderGetReply()
H A Dhiredis.h110 int idx; /* index in parent (array) object */ member
/redis-3.2.3/deps/jemalloc/bin/
H A Djeprof.in1229 my $idx = $map->{$val};
1233 } elsif (defined($idx)) {
1234 return "$key=($idx)\n";
1237 $idx = scalar(keys(%{$map})) + 1;
1238 $map->{$val} = $idx;
1239 return "$key=($idx) $val\n";
3630 my ($self, $idx) = @_;
3633 if ($idx < $self->{base}) {
3640 } elsif ($idx > $self->{base} + $#$slots) {
3643 return $slots->[$idx - $self->{base}];

12