From 876162b9cfe58a6e2df12006263d344d80531332 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 1 Mar 2024 17:22:29 +0000 Subject: util.bit53: Add bnot() method --- util/bit53.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'util') 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; }; -- cgit v1.2.3