add various optimizations
This commit is contained in:
14
sim/gate.lua
14
sim/gate.lua
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user