Lines Matching refs:buf_ptr
353 sljit_u8 *buf_ptr; in emit_x86_instruction() local
434 buf_ptr = inst + size; in emit_x86_instruction()
442 *buf_ptr = 0; in emit_x86_instruction()
444 *buf_ptr = reg_map[a] << 3; in emit_x86_instruction()
446 *buf_ptr = a << 3; in emit_x86_instruction()
456 *buf_ptr = 0; in emit_x86_instruction()
460 *buf_ptr++ |= MOD_REG + ((!(flags & EX86_SSE2_OP2)) ? reg_map[b] : b); in emit_x86_instruction()
465 *buf_ptr |= 0x40; in emit_x86_instruction()
467 *buf_ptr |= 0x80; in emit_x86_instruction()
471 *buf_ptr++ |= reg_map[b & REG_MASK]; in emit_x86_instruction()
473 *buf_ptr++ |= 0x04; in emit_x86_instruction()
474 *buf_ptr++ = reg_map[b & REG_MASK] | (reg_map[OFFS_REG(b)] << 3); in emit_x86_instruction()
479 *buf_ptr++ = immb; /* 8 bit displacement. */ in emit_x86_instruction()
481 sljit_unaligned_store_sw(buf_ptr, immb); /* 32 bit displacement. */ in emit_x86_instruction()
482 buf_ptr += sizeof(sljit_sw); in emit_x86_instruction()
487 *buf_ptr++ |= 0x04; in emit_x86_instruction()
488 *buf_ptr++ = reg_map[b & REG_MASK] | (reg_map[OFFS_REG(b)] << 3) | (immb << 6); in emit_x86_instruction()
492 *buf_ptr++ |= 0x05; in emit_x86_instruction()
493 sljit_unaligned_store_sw(buf_ptr, immb); /* 32 bit displacement. */ in emit_x86_instruction()
494 buf_ptr += sizeof(sljit_sw); in emit_x86_instruction()
499 *buf_ptr = imma; in emit_x86_instruction()
501 sljit_unaligned_store_s16(buf_ptr, imma); in emit_x86_instruction()
503 sljit_unaligned_store_sw(buf_ptr, imma); in emit_x86_instruction()