add various optimizations

This commit is contained in:
Redo0
2021-06-05 17:37:52 -05:00
parent bdcf2b384a
commit 5b8a1ea850
6 changed files with 71 additions and 32 deletions

View File

@@ -1,14 +1,20 @@
local ffi = FFI
Gate = {}
function Gate.new(objref, definition)
local o = {
--in_queue = ffi.new("bool", false),
--in_queue = false,
--in_queue = ffi.new("long long", 0),
in_queue = 0,
port_nets = {},
logic = definition.logic,
ports = {},
objref = objref,
definition = definition,
ports = {},
port_nets = {},
in_queue = false,
logic = definition.logic,
}
return o
end