MCPcopy Create free account
hub / github.com/TASEmulators/fceux / bit_bswap

Function bit_bswap

src/lua-engine.cpp:5823–5828  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5821BIT_SH(bit_ror, bror)
5822
5823static int bit_bswap(lua_State *L)
5824{
5825 UBits b = barg(L, 1);
5826 b = (b >> 24) | ((b >> 8) & 0xff00) | ((b & 0xff00) << 8) | (b << 24);
5827 BRET(b)
5828}
5829
5830static int bit_tohex(lua_State *L)
5831{

Callers

nothing calls this directly

Calls 1

bargFunction · 0.85

Tested by

no test coverage detected