4 #if defined(CAPSTONE_HAS_OSXKERNEL)
5 #include <Availability.h>
6 #include <libkern/libkern.h>
18 unsigned short max_id =
insns[
size - 1].id;
21 unsigned short *cache = (
unsigned short *)
cs_mem_calloc(max_id + 1,
sizeof(*cache));
46 for (
i = 0;
i <
max;
i++) {
60 for (
i = 0;
i <
max;
i++) {
61 if (
map[
i].
id ==
id) {
94 size_t len = strlen(
str)+ 1;
100 return (
char *)memmove(
new,
str,
len);
120 for (
i = 0;
i <
max;
i++) {
132 for (
i = 0;
i <
max;
i++) {
cs_malloc_t cs_mem_malloc
cs_vsnprintf_t cs_vsnprintf
cs_calloc_t cs_mem_calloc
size_t map(int syms, int left, int len)
static void list(RzEgg *egg)
int cs_snprintf(char *buffer, size_t size, const char *fmt,...)
int name2id(const name_map *map, int max, const char *name)
bool arr_exist8(unsigned char *arr, unsigned char max, unsigned int id)
static unsigned short * make_id2insn(const insn_map *insns, unsigned int size)
bool arr_exist(uint16_t *arr, unsigned char max, unsigned int id)
unsigned int count_positive(const uint16_t *list)
unsigned int count_positive8(const unsigned char *list)
char * cs_strdup(const char *str)
unsigned short insn_find(const insn_map *insns, unsigned int max, unsigned int id, unsigned short **cache)
const char * id2name(const name_map *map, int max, const unsigned int id)
static struct insnlist * insns[64]