Home
last modified time | relevance | path

Searched refs:t1 (Results 1 – 8 of 8) sorted by relevance

/redis-3.2.3/deps/jemalloc/test/src/
H A Dtimer.c38 uint64_t t0, t1; in timer_usec() local
41 t1 = (((uint64_t)timer->ft1.dwHighDateTime) << 32) | in timer_usec()
43 return ((t1 - t0) / 10); in timer_usec()
57 uint64_t t1 = timer_usec(b); in timer_ratio() local
64 n = malloc_snprintf(&buf[i], buflen-i, "%"FMTu64, t0 / t1); in timer_ratio()
78 uint64_t round = (i+1 == buflen-1 && ((t0 * mult * 10 / t1) % 10 in timer_ratio()
81 "%"FMTu64, (t0 * mult / t1) % 10 + round); in timer_ratio()
/redis-3.2.3/deps/lua/src/
H A Dlobject.c72 int luaO_rawequalObj (const TValue *t1, const TValue *t2) { in luaO_rawequalObj() argument
73 if (ttype(t1) != ttype(t2)) return 0; in luaO_rawequalObj()
74 else switch (ttype(t1)) { in luaO_rawequalObj()
78 return luai_numeq(nvalue(t1), nvalue(t2)); in luaO_rawequalObj()
80 return bvalue(t1) == bvalue(t2); /* boolean true must be 1 !! */ in luaO_rawequalObj()
82 return pvalue(t1) == pvalue(t2); in luaO_rawequalObj()
84 lua_assert(iscollectable(t1)); in luaO_rawequalObj()
85 return gcvalue(t1) == gcvalue(t2); in luaO_rawequalObj()
H A Dlvm.c255 int luaV_equalval (lua_State *L, const TValue *t1, const TValue *t2) { in luaV_equalval() argument
257 lua_assert(ttype(t1) == ttype(t2)); in luaV_equalval()
258 switch (ttype(t1)) { in luaV_equalval()
260 case LUA_TNUMBER: return luai_numeq(nvalue(t1), nvalue(t2)); in luaV_equalval()
262 case LUA_TLIGHTUSERDATA: return pvalue(t1) == pvalue(t2); in luaV_equalval()
264 if (uvalue(t1) == uvalue(t2)) return 1; in luaV_equalval()
265 tm = get_compTM(L, uvalue(t1)->metatable, uvalue(t2)->metatable, in luaV_equalval()
270 if (hvalue(t1) == hvalue(t2)) return 1; in luaV_equalval()
271 tm = get_compTM(L, hvalue(t1)->metatable, hvalue(t2)->metatable, TM_EQ); in luaV_equalval()
274 default: return gcvalue(t1) == gcvalue(t2); in luaV_equalval()
[all …]
H A Dlvm.h26 LUAI_FUNC int luaV_equalval (lua_State *L, const TValue *t1, const TValue *t2);
H A Dldebug.c597 const char *t1 = luaT_typenames[ttype(p1)]; in luaG_ordererror() local
599 if (t1[2] == t2[2]) in luaG_ordererror()
600 luaG_runerror(L, "attempt to compare two %s values", t1); in luaG_ordererror()
602 luaG_runerror(L, "attempt to compare %s with %s", t1, t2); in luaG_ordererror()
H A Dlobject.h372 LUAI_FUNC int luaO_rawequalObj (const TValue *t1, const TValue *t2);
/redis-3.2.3/deps/hiredis/
H A Dtest.c503 long long t1, t2; in test_throughput() local
511 t1 = usec(); in test_throughput()
519 printf("\t(%dx PING: %.3fs)\n", num, (t2-t1)/1000000.0); in test_throughput()
522 t1 = usec(); in test_throughput()
531 printf("\t(%dx LRANGE with 500 elements: %.3fs)\n", num, (t2-t1)/1000000.0); in test_throughput()
537 t1 = usec(); in test_throughput()
545 printf("\t(%dx PING (pipelined): %.3fs)\n", num, (t2-t1)/1000000.0); in test_throughput()
550 t1 = usec(); in test_throughput()
559 printf("\t(%dx LRANGE with 500 elements (pipelined): %.3fs)\n", num, (t2-t1)/1000000.0); in test_throughput()
/redis-3.2.3/src/
H A Ddict.c857 dictht *t0, *t1; in dictScan() local
876 t1 = &d->ht[1]; in dictScan()
879 if (t0->size > t1->size) { in dictScan()
881 t1 = &d->ht[0]; in dictScan()
885 m1 = t1->sizemask; in dictScan()
898 de = t1->table[v & m1]; in dictScan()