Lines Matching refs:v1
53 static lua_Integer intarith (lua_State *L, int op, lua_Integer v1, in intarith() argument
56 case LUA_OPADD: return intop(+, v1, v2); in intarith()
57 case LUA_OPSUB:return intop(-, v1, v2); in intarith()
58 case LUA_OPMUL:return intop(*, v1, v2); in intarith()
59 case LUA_OPMOD: return luaV_mod(L, v1, v2); in intarith()
60 case LUA_OPIDIV: return luaV_idiv(L, v1, v2); in intarith()
61 case LUA_OPBAND: return intop(&, v1, v2); in intarith()
62 case LUA_OPBOR: return intop(|, v1, v2); in intarith()
63 case LUA_OPBXOR: return intop(^, v1, v2); in intarith()
64 case LUA_OPSHL: return luaV_shiftl(v1, v2); in intarith()
65 case LUA_OPSHR: return luaV_shiftl(v1, -v2); in intarith()
66 case LUA_OPUNM: return intop(-, 0, v1); in intarith()
67 case LUA_OPBNOT: return intop(^, ~l_castS2U(0), v1); in intarith()
73 static lua_Number numarith (lua_State *L, int op, lua_Number v1, in numarith() argument
76 case LUA_OPADD: return luai_numadd(L, v1, v2); in numarith()
77 case LUA_OPSUB: return luai_numsub(L, v1, v2); in numarith()
78 case LUA_OPMUL: return luai_nummul(L, v1, v2); in numarith()
79 case LUA_OPDIV: return luai_numdiv(L, v1, v2); in numarith()
80 case LUA_OPPOW: return luai_numpow(L, v1, v2); in numarith()
81 case LUA_OPIDIV: return luai_numidiv(L, v1, v2); in numarith()
82 case LUA_OPUNM: return luai_numunm(L, v1); in numarith()
83 case LUA_OPMOD: return luaV_modf(L, v1, v2); in numarith()