Home | History | Annotate | Download | only in include

Lines Matching refs:ptr

30 static inline uint8_t get_u8(void *bios, int ptr)
32 return ((unsigned char *)bios)[ptr];
34 #define U8(ptr) get_u8(ctx->ctx->bios, (ptr))
35 #define CU8(ptr) get_u8(ctx->bios, (ptr))
36 static inline uint16_t get_u16(void *bios, int ptr)
38 return get_u8(bios ,ptr)|(((uint16_t)get_u8(bios, ptr+1))<<8);
40 #define U16(ptr) get_u16(ctx->ctx->bios, (ptr))
41 #define CU16(ptr) get_u16(ctx->bios, (ptr))
42 static inline uint32_t get_u32(void *bios, int ptr)
44 return get_u16(bios, ptr)|(((uint32_t)get_u16(bios, ptr+2))<<16);
46 #define U32(ptr) get_u32(ctx->ctx->bios, (ptr))
47 #define CU32(ptr) get_u32(ctx->bios, (ptr))
48 #define CSTR(ptr) (((char *)(ctx->bios))+(ptr))