aboutsummaryrefslogtreecommitdiffstats
path: root/util/bit53.lua
blob: 06799a971e10d80ac1fbaf58a1e9aaa182cdb946 (plain)
1
2
3
4
5
6
7
8
9
-- Only the operators needed by net.websocket.frames are provided at this point
return {
	band   = function (a, b) return a & b end;
	bor    = function (a, b) return a | b end;
	bxor   = function (a, b) return a ~ b end;
	rshift = function (a, n) return a >> n end;
	lshift = function (a, n) return a << n end;
};