MCPcopy Create free account
hub / github.com/data61/MP-SPDZ / alloc

Method alloc

Compiler/allocator.py:118–123  ·  view source on GitHub ↗
(self, reg_type, size)

Source from the content-addressed store, hash-verified

116 self.parent = parent
117
118 def alloc(self, reg_type, size):
119 for r in self.ranges[reg_type]:
120 res = r.alloc(size)
121 if res is not None:
122 self.by_base[reg_type, res] = r
123 return res
124
125 def free(self, reg):
126 try:

Callers 1

alloc_regMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected