MCPcopy Create free account
hub / github.com/F-Stack/f-stack / luaO_arith

Function luaO_arith

freebsd/contrib/openzfs/module/lua/lobject.c:69–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 3

luaV_arithFunction · 0.85
lua_arithFunction · 0.85
constfoldingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected