4 #if defined(CAPSTONE_HAS_OSXKERNEL)
5 #include <Availability.h>
6 #include <libkern/libkern.h>
16 #define MCINST_CACHE (ARR_SIZE(mcInst->Operands) - 1)
22 for (
i = 0;
i < 48;
i++) {
50 for(
i = inst->
size;
i > index;
i--)
98 return op->Kind != kInvalid;
103 return op->Kind == kRegister;
108 return op->Kind == kImmediate;
113 return op->Kind == kFPImmediate;
152 op->Kind = kRegister;
163 op->Kind = kRegister;
171 op->Kind = kImmediate;
182 op->Kind = kImmediate;
double MCOperand_getFPImm(const MCOperand *op)
unsigned MCInst_getOpcodePub(const MCInst *inst)
MCOperand * MCOperand_CreateReg1(MCInst *mcInst, unsigned Reg)
unsigned MCInst_getOpcode(const MCInst *inst)
void MCInst_clear(MCInst *inst)
void MCOperand_setReg(MCOperand *op, unsigned Reg)
setReg - Set the register number.
unsigned MCInst_getNumOperands(const MCInst *inst)
MCOperand * MCInst_getOperand(MCInst *inst, unsigned i)
void MCOperand_setImm(MCOperand *op, int64_t Val)
void MCOperand_setFPImm(MCOperand *op, double Val)
bool MCOperand_isReg(const MCOperand *op)
void MCInst_Init(MCInst *inst)
void MCInst_insert0(MCInst *inst, int index, MCOperand *Op)
void MCOperand_CreateReg0(MCInst *mcInst, unsigned Reg)
void MCInst_setOpcodePub(MCInst *inst, unsigned Op)
bool MCOperand_isValid(const MCOperand *op)
int64_t MCOperand_getImm(MCOperand *op)
unsigned MCOperand_getReg(const MCOperand *op)
getReg - Returns the register number.
void MCInst_addOperand2(MCInst *inst, MCOperand *Op)
void MCInst_setOpcode(MCInst *inst, unsigned Op)
bool MCOperand_isFPImm(const MCOperand *op)
MCOperand * MCOperand_CreateImm1(MCInst *mcInst, int64_t Val)
bool MCOperand_isImm(const MCOperand *op)
void MCOperand_CreateImm0(MCInst *mcInst, int64_t Val)
return memset(p, 0, total)