Lines Matching refs:buf_ptr

53 	sljit_u8 *buf_ptr;  in emit_x86_instruction()  local
139 buf_ptr = inst + size; in emit_x86_instruction()
147 *buf_ptr = 0; in emit_x86_instruction()
149 *buf_ptr = U8(reg_map[a] << 3); in emit_x86_instruction()
151 *buf_ptr = U8(freg_map[a] << 3); in emit_x86_instruction()
160 *buf_ptr = 0; in emit_x86_instruction()
164 *buf_ptr = U8(*buf_ptr | MOD_REG | (!(flags & EX86_SSE2_OP2) ? reg_map[b] : freg_map[b])); in emit_x86_instruction()
165 buf_ptr++; in emit_x86_instruction()
172 *buf_ptr |= 0x40; in emit_x86_instruction()
174 *buf_ptr |= 0x80; in emit_x86_instruction()
178 *buf_ptr++ |= reg_map_b; in emit_x86_instruction()
180 buf_ptr[0] |= 0x04; in emit_x86_instruction()
181 buf_ptr[1] = U8(reg_map_b | (reg_map[OFFS_REG(b)] << 3)); in emit_x86_instruction()
182 buf_ptr += 2; in emit_x86_instruction()
187 *buf_ptr++ = U8(immb); /* 8 bit displacement. */ in emit_x86_instruction()
189 sljit_unaligned_store_sw(buf_ptr, immb); /* 32 bit displacement. */ in emit_x86_instruction()
190 buf_ptr += sizeof(sljit_sw); in emit_x86_instruction()
195 *buf_ptr |= 0x40; in emit_x86_instruction()
197 buf_ptr[0] |= 0x04; in emit_x86_instruction()
198 buf_ptr[1] = U8(reg_map_b | (reg_map[OFFS_REG(b)] << 3) | (immb << 6)); in emit_x86_instruction()
199 buf_ptr += 2; in emit_x86_instruction()
202 *buf_ptr++ = 0; in emit_x86_instruction()
205 *buf_ptr++ |= 0x05; in emit_x86_instruction()
206 sljit_unaligned_store_sw(buf_ptr, immb); /* 32 bit displacement. */ in emit_x86_instruction()
207 buf_ptr += sizeof(sljit_sw); in emit_x86_instruction()
212 *buf_ptr = U8(imma); in emit_x86_instruction()
214 sljit_unaligned_store_s16(buf_ptr, (sljit_s16)imma); in emit_x86_instruction()
216 sljit_unaligned_store_sw(buf_ptr, imma); in emit_x86_instruction()