Home
last modified time | relevance | path

Searched refs:t2 (Results 1 – 6 of 6) sorted by relevance

/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()
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()
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()
260 case LUA_TNUMBER: return luai_numeq(nvalue(t1), nvalue(t2)); in luaV_equalval()
261 case LUA_TBOOLEAN: return bvalue(t1) == bvalue(t2); /* true must be 1 !! */ 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.c598 const char *t2 = luaT_typenames[ttype(p2)]; in luaG_ordererror() local
599 if (t1[2] == t2[2]) 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
516 t2 = usec(); in test_throughput()
519 printf("\t(%dx PING: %.3fs)\n", num, (t2-t1)/1000000.0); in test_throughput()
528 t2 = usec(); in test_throughput()
531 printf("\t(%dx LRANGE with 500 elements: %.3fs)\n", num, (t2-t1)/1000000.0); in test_throughput()
542 t2 = usec(); in test_throughput()
545 printf("\t(%dx PING (pipelined): %.3fs)\n", num, (t2-t1)/1000000.0); in test_throughput()
556 t2 = usec(); in test_throughput()
559 printf("\t(%dx LRANGE with 500 elements (pipelined): %.3fs)\n", num, (t2-t1)/1000000.0); in test_throughput()