MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / b_xor

Function b_xor

src/Chain/libraries/glua/lbitlib.cpp:81–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79
80
81static int b_xor(lua_State *L) {
82 int i, n = lua_gettop(L);
83 lua_Unsigned r = 0;
84 for (i = 1; i <= n; i++)
85 r ^= checkunsigned(L, i);
86 pushunsigned(L, trim(r));
87 return 1;
88}
89
90
91static int b_not(lua_State *L) {

Callers

nothing calls this directly

Calls 2

lua_gettopFunction · 0.85
trimFunction · 0.50

Tested by

no test coverage detected