core/x86/instr.c
/* Stores 32-bit value word in positions pos through pos+3 in
 * modified_bits.
 * Must call instr_allocate_raw_bits before calling this function.
 */
Stores 32-bit value word in positions pos through pos+3 in
modified_bits.
Must call instr_allocate_raw_bits before calling this function.
Stores 32 - bit value word in positions pos through pos + 3 in modified_bits . Must call instr_allocate_raw_bits before calling this function .
void
instr_set_raw_word(instr_t *instr, uint pos, uint word)
{
    CLIENT_ASSERT((instr->flags & INSTR_RAW_BITS_ALLOCATED) != 0,
                  "instr_set_raw_word: no raw bits");
    CLIENT_ASSERT(pos >= 0 && pos+3 < instr->length && instr->bytes != NULL,
                  "instr_set_raw_word: ordinal invalid, or no raw bits");
    *((uint *)(instr->bytes+pos)) = word;
#ifdef X64
    instr_set_rip_rel_valid(instr, false); 
#endif
}
void instr_set_raw_word ( instr_t * instr , uint pos , uint word ) { CLIENT_ASSERT ( ( instr -> flags & INSTR_RAW_BITS_ALLOCATED ) != 0 , " " ) ; CLIENT_ASSERT ( pos >= 0 && pos + 3 < instr -> length && instr -> bytes != NULL , " " ) ; * ( ( uint * ) ( instr -> bytes + pos ) ) = word ; #ifdef X64 instr_set_rip_rel_valid ( instr , false ) ; #endif }
Stores 32-bit value word in positions pos through pos+3 in
 modified_bits.
Stores 32 - bit value word in positions pos through pos + 3 in modified_bits .
/* relies on original raw bits */