MCPcopy Create free account
hub / github.com/capstone-engine/capstone / MCInst_Init

Function MCInst_Init

MCInst.c:19–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17#define MCINST_CACHE (ARR_SIZE(mcInst->Operands) - 1)
18
19void MCInst_Init(MCInst *inst)
20{
21 // unnecessary to initialize in loop . its expensive and inst->size shuold be honored
22 inst->Operands[0].Kind = kInvalid;
23 inst->Operands[0].ImmVal = 0;
24
25 inst->Opcode = 0;
26 inst->OpcodePub = 0;
27 inst->size = 0;
28 inst->has_imm = false;
29 inst->op1_size = 0;
30 inst->writeback = false;
31 inst->ac_idx = 0;
32 inst->popcode_adjust = 0;
33 inst->assembly[0] = '\0';
34 inst->wasm_data.type = WASM_OP_INVALID;
35 inst->xAcquireRelease = 0;
36 for (int i = 0; i < MAX_MC_OPS; ++i)
37 inst->tied_op_idx[i] = -1;
38}
39
40void MCInst_clear(MCInst *inst)
41{

Callers 3

cs_disasmFunction · 0.85
cs_disasm_iterFunction · 0.85
ARM_printInstFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…