| 36 | }; |
| 37 | |
| 38 | ASMJIT_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] |
no outgoing calls
no test coverage detected