MCPcopy Create free account
hub / github.com/ZDoom/Raze / init

Method init

libraries/asmjit/asmjit/base/arch.cpp:38–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36};
37
38ASMJIT_FAVOR_SIZE void ArchInfo::init(uint32_t type, uint32_t subType) noexcept {
39 uint32_t index = type < ASMJIT_ARRAY_SIZE(archInfoTable) ? type : uint32_t(0);
40
41 // Make sure the `archInfoTable` array is correctly indexed.
42 _signature = archInfoTable[index];
43 ASMJIT_ASSERT(_type == index);
44
45 // Even if the architecture is not known we setup its type and sub-type,
46 // however, such architecture is not really useful.
47 _type = type;
48 _subType = subType;
49}
50
51// ============================================================================
52// [asmjit::ArchUtils]

Callers 10

setExtraRegFunction · 0.45
newFuncMethod · 0.45
newCallMethod · 0.45
setExtraRegMethod · 0.45
UNITFunction · 0.45
setSignatureFunction · 0.45
x86DetectCpuInfoFunction · 0.45
DetailClass · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected