Go to the source code of this file.
◆ get_hash_code()
Definition at line 2801 of file hashtable.c.
2806 st32 arg, ins_part2, hash_code;
2815 printf(
"opcode: 0x%x part: %d\n", opcode, ins_pos);
2816 printf(
"ins_len: 0x%x\n", ins_len);
2832 pos = (2 * opcode | (ins_part1 >> 31));
2837 ins_part2 |= (ins_part1 * 2);
2843 printf(
"hashfunc => %p 0x%x\n", get_hashcode_func,
pos);
2844 printf(
"hashargs => 0x%x 0x%x 0x%x\n", (
ut32)
arg, ins_part1, ins_part2);
2847 hash_code = get_hashcode_func(
arg, ins_part2);
2849 printf(
"ret hashcode: 0x%x\n", hash_code);
ut32 get_ins_len(ut8 opcode)
static const char * arg(RzAnalysis *a, csh *handle, cs_insn *insn, char *buf, int n)
_Use_decl_annotations_ int __cdecl printf(const char *const _Format,...)
static HASHCODE_ENTRY_T ins_hash[]
ut32 get_ins_part(ut32 pos, ut32 len)
st32(* hash_func)(st32 A1, st32 A2)
References arg(), C55PLUS_DEBUG, HASHCODE_ENTRY_T::code, get_ins_len(), get_ins_part(), HASHCODE_ENTRY_T::hash_func, ins_hash, len, pos, printf(), and st32.
Referenced by do_decode().