MCPcopy Create free account
hub / github.com/ZDoom/gzdoom / RAGetDefaultAlignment

Function RAGetDefaultAlignment

libraries/asmjit/asmjit/base/regalloc.cpp:147–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145// ============================================================================
146
147static ASMJIT_INLINE uint32_t RAGetDefaultAlignment(uint32_t size) {
148 if (size > 32)
149 return 64;
150 else if (size > 16)
151 return 32;
152 else if (size > 8)
153 return 16;
154 else if (size > 4)
155 return 8;
156 else if (size > 2)
157 return 4;
158 else if (size > 1)
159 return 2;
160 else
161 return 1;
162}
163
164RACell* RAPass::_newVarCell(VirtReg* vreg) {
165 ASMJIT_ASSERT(vreg->_memCell == nullptr);

Callers 1

_newStackCellMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected