MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaO_arith

Function luaO_arith

third-party/lua-5.2.4/src/lobject.c:73–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71
72
73lua_Number luaO_arith (int op, lua_Number v1, lua_Number v2) {
74 switch (op) {
75 case LUA_OPADD: return luai_numadd(NULL, v1, v2);
76 case LUA_OPSUB: return luai_numsub(NULL, v1, v2);
77 case LUA_OPMUL: return luai_nummul(NULL, v1, v2);
78 case LUA_OPDIV: return luai_numdiv(NULL, v1, v2);
79 case LUA_OPMOD: return luai_nummod(NULL, v1, v2);
80 case LUA_OPPOW: return luai_numpow(NULL, v1, v2);
81 case LUA_OPUNM: return luai_numunm(NULL, v1);
82 default: lua_assert(0); return 0;
83 }
84}
85
86
87int luaO_hexavalue (int c) {

Callers 3

luaV_arithFunction · 0.70
lua_arithFunction · 0.70
constfoldingFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected