aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2024-03-01 17:22:29 +0000
committerMatthew Wild <mwild1@gmail.com>2024-03-01 17:22:29 +0000
commit876162b9cfe58a6e2df12006263d344d80531332 (patch)
treea5f36c7014cab5a4b5dfa9032eb497a5ccd8ef59 /util
parent36a958306911d054086b0be3a15b5212a163525d (diff)
downloadprosody-876162b9cfe58a6e2df12006263d344d80531332.tar.gz
prosody-876162b9cfe58a6e2df12006263d344d80531332.zip
util.bit53: Add bnot() method
Diffstat (limited to 'util')
-rw-r--r--util/bit53.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/bit53.lua b/util/bit53.lua
index b5c473a3..42f17ce8 100644
--- a/util/bit53.lua
+++ b/util/bit53.lua
@@ -27,6 +27,9 @@ return {
end
return ret;
end;
+ bnot = function (x)
+ return ~x;
+ end;
rshift = function (a, n) return a >> n end;
lshift = function (a, n) return a << n end;
};