Software /
code /
prosody
Comparison
util/bit53.lua @ 12362:0fd58f54d653
Merge config-updates+check-turn from timber
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 04 Mar 2022 16:33:41 +0000 |
parent | 12358:d77d8fba44ad |
child | 12365:af02b033bd7f |
comparison
equal
deleted
inserted
replaced
12320:f0be98bab9dd | 12362:0fd58f54d653 |
---|---|
1 -- Only the operators needed by net.websocket.frames are provided at this point | 1 -- Only the operators needed by net.websocket.frames are provided at this point |
2 return { | 2 return { |
3 band = function (a, b) return a & b end; | 3 band = function (a, b) return a & b end; |
4 bor = function (a, b) return a | b end; | 4 bor = function (a, b) return a | b end; |
5 bxor = function (a, b) return a ~ b end; | 5 bxor = function (a, b) return a ~ b end; |
6 rshift = function (a, n) return a >> n end; | |
7 lshift = function (a, n) return a << n end; | |
6 }; | 8 }; |
7 | 9 |