Lines Matching refs:buf_ptr
345 sljit_u8 *buf_ptr; in emit_x86_instruction() local
471 buf_ptr = inst + size; in emit_x86_instruction()
479 *buf_ptr = 0; in emit_x86_instruction()
481 *buf_ptr = reg_lmap[a] << 3; in emit_x86_instruction()
483 *buf_ptr = freg_lmap[a] << 3; in emit_x86_instruction()
493 *buf_ptr = 0; in emit_x86_instruction()
497 *buf_ptr++ |= MOD_REG + ((!(flags & EX86_SSE2_OP2)) ? reg_lmap[b] : freg_lmap[b]); in emit_x86_instruction()
502 *buf_ptr |= 0x40; in emit_x86_instruction()
504 *buf_ptr |= 0x80; in emit_x86_instruction()
508 *buf_ptr++ |= reg_lmap[b & REG_MASK]; in emit_x86_instruction()
510 *buf_ptr++ |= 0x04; in emit_x86_instruction()
511 *buf_ptr++ = reg_lmap[b & REG_MASK] | (reg_lmap[OFFS_REG(b)] << 3); in emit_x86_instruction()
516 *buf_ptr++ = immb; /* 8 bit displacement. */ in emit_x86_instruction()
518 sljit_unaligned_store_s32(buf_ptr, immb); /* 32 bit displacement. */ in emit_x86_instruction()
519 buf_ptr += sizeof(sljit_s32); in emit_x86_instruction()
525 *buf_ptr |= 0x40; in emit_x86_instruction()
526 *buf_ptr++ |= 0x04; in emit_x86_instruction()
527 *buf_ptr++ = reg_lmap[b & REG_MASK] | (reg_lmap[OFFS_REG(b)] << 3) | (immb << 6); in emit_x86_instruction()
529 *buf_ptr++ = 0; in emit_x86_instruction()
533 *buf_ptr++ |= 0x04; in emit_x86_instruction()
534 *buf_ptr++ = 0x25; in emit_x86_instruction()
535 sljit_unaligned_store_s32(buf_ptr, immb); /* 32 bit displacement. */ in emit_x86_instruction()
536 buf_ptr += sizeof(sljit_s32); in emit_x86_instruction()
541 *buf_ptr = imma; in emit_x86_instruction()
543 sljit_unaligned_store_s16(buf_ptr, imma); in emit_x86_instruction()
545 sljit_unaligned_store_s32(buf_ptr, imma); in emit_x86_instruction()