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

Function bit_bswap

app/redis-6.2.6/deps/lua/src/lua_bit.c:120–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118BIT_SH(bit_ror, bror)
119
120static int bit_bswap(lua_State *L)
121{
122 UBits b = barg(L, 1);
123 b = (b >> 24) | ((b >> 8) & 0xff00) | ((b & 0xff00) << 8) | (b << 24);
124 BRET(b)
125}
126
127static int bit_tohex(lua_State *L)
128{

Callers

nothing calls this directly

Calls 1

bargFunction · 0.85

Tested by

no test coverage detected